K2.6 patches and update.
[tomato.git] / release / src / router / libid3tag / autom4te.cache / output.0
blob1da46ad3aadd4da9be1a52a2e143cd61a98f9536
1 @%:@! /bin/sh
2 @%:@ From configure.ac Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp .
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.68 for ID3 Tag 0.15.1b.
5 @%:@
6 @%:@ Report bugs to <support@underbit.com>.
7 @%:@ 
8 @%:@ 
9 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 @%:@ Foundation, Inc.
12 @%:@ 
13 @%:@ 
14 @%:@ This configure script is free software; the Free Software Foundation
15 @%:@ gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in @%:@(
31   *posix*) :
32     set -o posix ;; @%:@(
33   *) :
34      ;;
35 esac
39 as_nl='
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in @%:@(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
94 # Find who we are.  Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in @%:@((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in @%:@(
150   *posix*) :
151     set -o posix ;; @%:@(
152   *) :
153      ;;
154 esac
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169   
170 else
171   exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179   if (eval "$as_required") 2>/dev/null; then :
180   as_have_required=yes
181 else
182   as_have_required=no
184   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185   
186 else
187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191   IFS=$as_save_IFS
192   test -z "$as_dir" && as_dir=.
193   as_found=:
194   case $as_dir in @%:@(
195          /*)
196            for as_base in sh bash ksh sh5; do
197              # Try only shells that exist, to save several forks.
198              as_shell=$as_dir/$as_base
199              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   CONFIG_SHELL=$as_shell as_have_required=yes
202                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   break 2
206            done;;
207        esac
208   as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212   CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
217       if test "x$CONFIG_SHELL" != x; then :
218   # We cannot yet assume a decent shell, so we have to provide a
219         # neutralization value for shells without unset; and this also
220         # works around shells that cannot unset nonexistent variables.
221         # Preserve -v and -x to the replacement shell.
222         BASH_ENV=/dev/null
223         ENV=/dev/null
224         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225         export CONFIG_SHELL
226         case $- in @%:@ ((((
227           *v*x* | *x*v* ) as_opts=-vx ;;
228           *v* ) as_opts=-v ;;
229           *x* ) as_opts=-x ;;
230           * ) as_opts= ;;
231         esac
232         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235     if test x$as_have_required = xno; then :
236   $as_echo "$0: This script requires a shell more modern than all"
237   $as_echo "$0: the shells that I found on your system."
238   if test x${ZSH_VERSION+set} = xset ; then
239     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241   else
242     $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: support@underbit.com about your system, including any
244 $0: error possibly output before this message. Then install
245 $0: a modern shell, or manually run the script under such a
246 $0: shell if you do have one."
247   fi
248   exit 1
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 @%:@ as_fn_unset VAR
262 @%:@ ---------------
263 @%:@ Portably unset VAR.
264 as_fn_unset ()
266   { eval $1=; unset $1;}
268 as_unset=as_fn_unset
270 @%:@ as_fn_set_status STATUS
271 @%:@ -----------------------
272 @%:@ Set @S|@? to STATUS, without forking.
273 as_fn_set_status ()
275   return $1
276 } @%:@ as_fn_set_status
278 @%:@ as_fn_exit STATUS
279 @%:@ -----------------
280 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
283   set +e
284   as_fn_set_status $1
285   exit $1
286 } @%:@ as_fn_exit
288 @%:@ as_fn_mkdir_p
289 @%:@ -------------
290 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
294   case $as_dir in #(
295   -*) as_dir=./$as_dir;;
296   esac
297   test -d "$as_dir" || eval $as_mkdir_p || {
298     as_dirs=
299     while :; do
300       case $as_dir in #(
301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302       *) as_qdir=$as_dir;;
303       esac
304       as_dirs="'$as_qdir' $as_dirs"
305       as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307          X"$as_dir" : 'X\(//\)[^/]' \| \
308          X"$as_dir" : 'X\(//\)$' \| \
309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)[^/].*/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\).*/{
324             s//\1/
325             q
326           }
327           s/.*/./; q'`
328       test -d "$as_dir" && break
329     done
330     test -z "$as_dirs" || eval "mkdir $as_dirs"
331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 } @%:@ as_fn_mkdir_p
335 @%:@ as_fn_append VAR VALUE
336 @%:@ ----------------------
337 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
338 @%:@ advantage of any shell optimizations that allow amortized linear growth over
339 @%:@ repeated appends, instead of the typical quadratic growth present in naive
340 @%:@ implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342   eval 'as_fn_append ()
343   {
344     eval $1+=\$2
345   }'
346 else
347   as_fn_append ()
348   {
349     eval $1=\$$1\$2
350   }
351 fi # as_fn_append
353 @%:@ as_fn_arith ARG...
354 @%:@ ------------------
355 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
356 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
357 @%:@ must be portable across @S|@(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359   eval 'as_fn_arith ()
360   {
361     as_val=$(( $* ))
362   }'
363 else
364   as_fn_arith ()
365   {
366     as_val=`expr "$@" || test $? -eq 1`
367   }
368 fi # as_fn_arith
371 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
372 @%:@ ----------------------------------------
373 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 @%:@ script with STATUS, using 1 if that was 0.
376 as_fn_error ()
378   as_status=$1; test $as_status -eq 0 && as_status=1
379   if test "$4"; then
380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382   fi
383   $as_echo "$as_me: error: $2" >&2
384   as_fn_exit $as_status
385 } @%:@ as_fn_error
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
389   as_expr=expr
390 else
391   as_expr=false
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395   as_basename=basename
396 else
397   as_basename=false
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401   as_dirname=dirname
402 else
403   as_dirname=false
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408          X"$0" : 'X\(//\)$' \| \
409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411     sed '/^.*\/\([^/][^/]*\)\/*$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\/\)$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\).*/{
420             s//\1/
421             q
422           }
423           s/.*/./; q'`
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456   # Don't try to exec as it changes $[0], causing all sort of problems
457   # (the dirname of $[0] is not the place where we might find the
458   # original and so on.  Autoconf is especially sensitive to this).
459   . "./$as_me.lineno"
460   # Exit status is that of the last command.
461   exit
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in @%:@(((((
466 -n*)
467   case `echo 'xy\c'` in
468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469   xy)  ECHO_C='\c';;
470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471        ECHO_T=' ';;
472   esac;;
474   ECHO_N='-n';;
475 esac
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479   rm -f conf$$.dir/conf$$.file
480 else
481   rm -f conf$$.dir
482   mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485   if ln -s conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s='ln -s'
487     # ... but there are two gotchas:
488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490     # In both cases, we have to default to `cp -p'.
491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492       as_ln_s='cp -p'
493   elif ln conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s=ln
495   else
496     as_ln_s='cp -p'
497   fi
498 else
499   as_ln_s='cp -p'
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505   as_mkdir_p='mkdir -p "$as_dir"'
506 else
507   test -d ./-p && rmdir ./-p
508   as_mkdir_p=false
511 if test -x / >/dev/null 2>&1; then
512   as_test_x='test -x'
513 else
514   if ls -dL / >/dev/null 2>&1; then
515     as_ls_L_option=L
516   else
517     as_ls_L_option=
518   fi
519   as_test_x='
520     eval sh -c '\''
521       if test -d "$1"; then
522         test -d "$1/.";
523       else
524         case $1 in @%:@(
525         -*)set "./$1";;
526         esac;
527         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
528         ???[sx]*):;;*)false;;esac;fi
529     '\'' sh
530   '
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
573   exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
586        echo_test_string="`eval $cmd`" &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 test -n "$DJDIR" || exec 7<&0 </dev/null
696 exec 6>&1
698 # Name of the host.
699 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
700 # so uname gets run too.
701 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
704 # Initializations.
706 ac_default_prefix=/usr/local
707 ac_clean_files=
708 ac_config_libobj_dir=.
709 LIB@&t@OBJS=
710 cross_compiling=no
711 subdirs=
712 MFLAGS=
713 MAKEFLAGS=
715 # Identity of this package.
716 PACKAGE_NAME='ID3 Tag'
717 PACKAGE_TARNAME='libid3tag'
718 PACKAGE_VERSION='0.15.1b'
719 PACKAGE_STRING='ID3 Tag 0.15.1b'
720 PACKAGE_BUGREPORT='support@underbit.com'
721 PACKAGE_URL=''
723 ac_unique_file="id3tag.h"
724 # Factoring default headers for most tests.
725 ac_includes_default="\
726 #include <stdio.h>
727 #ifdef HAVE_SYS_TYPES_H
728 # include <sys/types.h>
729 #endif
730 #ifdef HAVE_SYS_STAT_H
731 # include <sys/stat.h>
732 #endif
733 #ifdef STDC_HEADERS
734 # include <stdlib.h>
735 # include <stddef.h>
736 #else
737 # ifdef HAVE_STDLIB_H
738 #  include <stdlib.h>
739 # endif
740 #endif
741 #ifdef HAVE_STRING_H
742 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
743 #  include <memory.h>
744 # endif
745 # include <string.h>
746 #endif
747 #ifdef HAVE_STRINGS_H
748 # include <strings.h>
749 #endif
750 #ifdef HAVE_INTTYPES_H
751 # include <inttypes.h>
752 #endif
753 #ifdef HAVE_STDINT_H
754 # include <stdint.h>
755 #endif
756 #ifdef HAVE_UNISTD_H
757 # include <unistd.h>
758 #endif"
760 ac_subst_vars='LTLIBOBJS
761 LIB@&t@OBJS
762 DEBUG_FALSE
763 DEBUG_TRUE
764 LIBTOOL_DEPS
765 LIBTOOL
766 ac_ct_F77
767 FFLAGS
769 CXXCPP
770 am__fastdepCXX_FALSE
771 am__fastdepCXX_TRUE
772 CXXDEPMODE
773 ac_ct_CXX
774 CXXFLAGS
777 RANLIB
779 ECHO
780 LN_S
781 EGREP
782 GREP
783 am__fastdepCC_FALSE
784 am__fastdepCC_TRUE
785 CCDEPMODE
786 AMDEPBACKSLASH
787 AMDEP_FALSE
788 AMDEP_TRUE
789 am__quote
790 am__include
791 DEPDIR
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
799 host_os
800 host_vendor
801 host_cpu
802 host
803 build_os
804 build_vendor
805 build_cpu
806 build
807 am__leading_dot
808 SET_MAKE
810 mkdir_p
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 AMTAR
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_dependency_tracking
868 enable_shared
869 enable_static
870 enable_fast_install
871 with_gnu_ld
872 enable_libtool_lock
873 with_pic
874 with_tags
875 enable_profiling
876 enable_debugging
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
888 CXXFLAGS
890 CXXCPP
892 FFLAGS'
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
943 ac_prev=
944 ac_dashdash=
945 for ac_option
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
954   case $ac_option in
955   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *=)   ac_optarg= ;;
957   *)    ac_optarg=yes ;;
958   esac
960   # Accept the important Cygnus configure options, so we can diagnose typos.
962   case $ac_dashdash$ac_option in
963   --)
964     ac_dashdash=yes ;;
966   -bindir | --bindir | --bindi | --bind | --bin | --bi)
967     ac_prev=bindir ;;
968   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969     bindir=$ac_optarg ;;
971   -build | --build | --buil | --bui | --bu)
972     ac_prev=build_alias ;;
973   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974     build_alias=$ac_optarg ;;
976   -cache-file | --cache-file | --cache-fil | --cache-fi \
977   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978     ac_prev=cache_file ;;
979   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981     cache_file=$ac_optarg ;;
983   --config-cache | -C)
984     cache_file=config.cache ;;
986   -datadir | --datadir | --datadi | --datad)
987     ac_prev=datadir ;;
988   -datadir=* | --datadir=* | --datadi=* | --datad=*)
989     datadir=$ac_optarg ;;
991   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992   | --dataroo | --dataro | --datar)
993     ac_prev=datarootdir ;;
994   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996     datarootdir=$ac_optarg ;;
998   -disable-* | --disable-*)
999     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002       as_fn_error $? "invalid feature name: $ac_useropt"
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=no ;;
1014   -docdir | --docdir | --docdi | --doc | --do)
1015     ac_prev=docdir ;;
1016   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017     docdir=$ac_optarg ;;
1019   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020     ac_prev=dvidir ;;
1021   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022     dvidir=$ac_optarg ;;
1024   -enable-* | --enable-*)
1025     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028       as_fn_error $? "invalid feature name: $ac_useropt"
1029     ac_useropt_orig=$ac_useropt
1030     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031     case $ac_user_opts in
1032       *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036          ac_unrecognized_sep=', ';;
1037     esac
1038     eval enable_$ac_useropt=\$ac_optarg ;;
1040   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042   | --exec | --exe | --ex)
1043     ac_prev=exec_prefix ;;
1044   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046   | --exec=* | --exe=* | --ex=*)
1047     exec_prefix=$ac_optarg ;;
1049   -gas | --gas | --ga | --g)
1050     # Obsolete; use --with-gas.
1051     with_gas=yes ;;
1053   -help | --help | --hel | --he | -h)
1054     ac_init_help=long ;;
1055   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056     ac_init_help=recursive ;;
1057   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058     ac_init_help=short ;;
1060   -host | --host | --hos | --ho)
1061     ac_prev=host_alias ;;
1062   -host=* | --host=* | --hos=* | --ho=*)
1063     host_alias=$ac_optarg ;;
1065   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066     ac_prev=htmldir ;;
1067   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068   | --ht=*)
1069     htmldir=$ac_optarg ;;
1071   -includedir | --includedir | --includedi | --included | --include \
1072   | --includ | --inclu | --incl | --inc)
1073     ac_prev=includedir ;;
1074   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075   | --includ=* | --inclu=* | --incl=* | --inc=*)
1076     includedir=$ac_optarg ;;
1078   -infodir | --infodir | --infodi | --infod | --info | --inf)
1079     ac_prev=infodir ;;
1080   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081     infodir=$ac_optarg ;;
1083   -libdir | --libdir | --libdi | --libd)
1084     ac_prev=libdir ;;
1085   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086     libdir=$ac_optarg ;;
1088   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089   | --libexe | --libex | --libe)
1090     ac_prev=libexecdir ;;
1091   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092   | --libexe=* | --libex=* | --libe=*)
1093     libexecdir=$ac_optarg ;;
1095   -localedir | --localedir | --localedi | --localed | --locale)
1096     ac_prev=localedir ;;
1097   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098     localedir=$ac_optarg ;;
1100   -localstatedir | --localstatedir | --localstatedi | --localstated \
1101   | --localstate | --localstat | --localsta | --localst | --locals)
1102     ac_prev=localstatedir ;;
1103   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105     localstatedir=$ac_optarg ;;
1107   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108     ac_prev=mandir ;;
1109   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110     mandir=$ac_optarg ;;
1112   -nfp | --nfp | --nf)
1113     # Obsolete; use --without-fp.
1114     with_fp=no ;;
1116   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117   | --no-cr | --no-c | -n)
1118     no_create=yes ;;
1120   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122     no_recursion=yes ;;
1124   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126   | --oldin | --oldi | --old | --ol | --o)
1127     ac_prev=oldincludedir ;;
1128   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131     oldincludedir=$ac_optarg ;;
1133   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134     ac_prev=prefix ;;
1135   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136     prefix=$ac_optarg ;;
1138   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139   | --program-pre | --program-pr | --program-p)
1140     ac_prev=program_prefix ;;
1141   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143     program_prefix=$ac_optarg ;;
1145   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146   | --program-suf | --program-su | --program-s)
1147     ac_prev=program_suffix ;;
1148   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150     program_suffix=$ac_optarg ;;
1152   -program-transform-name | --program-transform-name \
1153   | --program-transform-nam | --program-transform-na \
1154   | --program-transform-n | --program-transform- \
1155   | --program-transform | --program-transfor \
1156   | --program-transfo | --program-transf \
1157   | --program-trans | --program-tran \
1158   | --progr-tra | --program-tr | --program-t)
1159     ac_prev=program_transform_name ;;
1160   -program-transform-name=* | --program-transform-name=* \
1161   | --program-transform-nam=* | --program-transform-na=* \
1162   | --program-transform-n=* | --program-transform-=* \
1163   | --program-transform=* | --program-transfor=* \
1164   | --program-transfo=* | --program-transf=* \
1165   | --program-trans=* | --program-tran=* \
1166   | --progr-tra=* | --program-tr=* | --program-t=*)
1167     program_transform_name=$ac_optarg ;;
1169   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170     ac_prev=pdfdir ;;
1171   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172     pdfdir=$ac_optarg ;;
1174   -psdir | --psdir | --psdi | --psd | --ps)
1175     ac_prev=psdir ;;
1176   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177     psdir=$ac_optarg ;;
1179   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180   | -silent | --silent | --silen | --sile | --sil)
1181     silent=yes ;;
1183   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184     ac_prev=sbindir ;;
1185   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186   | --sbi=* | --sb=*)
1187     sbindir=$ac_optarg ;;
1189   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191   | --sharedst | --shareds | --shared | --share | --shar \
1192   | --sha | --sh)
1193     ac_prev=sharedstatedir ;;
1194   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197   | --sha=* | --sh=*)
1198     sharedstatedir=$ac_optarg ;;
1200   -site | --site | --sit)
1201     ac_prev=site ;;
1202   -site=* | --site=* | --sit=*)
1203     site=$ac_optarg ;;
1205   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206     ac_prev=srcdir ;;
1207   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208     srcdir=$ac_optarg ;;
1210   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211   | --syscon | --sysco | --sysc | --sys | --sy)
1212     ac_prev=sysconfdir ;;
1213   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215     sysconfdir=$ac_optarg ;;
1217   -target | --target | --targe | --targ | --tar | --ta | --t)
1218     ac_prev=target_alias ;;
1219   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220     target_alias=$ac_optarg ;;
1222   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223     verbose=yes ;;
1225   -version | --version | --versio | --versi | --vers | -V)
1226     ac_init_version=: ;;
1228   -with-* | --with-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error $? "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=\$ac_optarg ;;
1244   -without-* | --without-*)
1245     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248       as_fn_error $? "invalid package name: $ac_useropt"
1249     ac_useropt_orig=$ac_useropt
1250     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251     case $ac_user_opts in
1252       *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256          ac_unrecognized_sep=', ';;
1257     esac
1258     eval with_$ac_useropt=no ;;
1260   --x)
1261     # Obsolete; use --with-x.
1262     with_x=yes ;;
1264   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265   | --x-incl | --x-inc | --x-in | --x-i)
1266     ac_prev=x_includes ;;
1267   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269     x_includes=$ac_optarg ;;
1271   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273     ac_prev=x_libraries ;;
1274   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276     x_libraries=$ac_optarg ;;
1278   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1280     ;;
1282   *=*)
1283     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284     # Reject names that are not valid shell variable names.
1285     case $ac_envvar in #(
1286       '' | [0-9]* | *[!_$as_cr_alnum]* )
1287       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288     esac
1289     eval $ac_envvar=\$ac_optarg
1290     export $ac_envvar ;;
1292   *)
1293     # FIXME: should be removed in autoconf 3.0.
1294     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298     ;;
1300   esac
1301 done
1303 if test -n "$ac_prev"; then
1304   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305   as_fn_error $? "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309   case $enable_option_checking in
1310     no) ;;
1311     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313   esac
1316 # Check all directory arguments for consistency.
1317 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318                 datadir sysconfdir sharedstatedir localstatedir includedir \
1319                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320                 libdir localedir mandir
1322   eval ac_val=\$$ac_var
1323   # Remove trailing slashes.
1324   case $ac_val in
1325     */ )
1326       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327       eval $ac_var=\$ac_val;;
1328   esac
1329   # Be sure to have absolute directory names.
1330   case $ac_val in
1331     [\\/$]* | ?:[\\/]* )  continue;;
1332     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333   esac
1334   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346   if test "x$build_alias" = x; then
1347     cross_compiling=maybe
1348     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349     If a cross compiler is detected then cross compile mode will be used" >&2
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366   as_fn_error $? "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$as_myself" : 'X\(//\)[^/]' \| \
1376          X"$as_myself" : 'X\(//\)$' \| \
1377          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410         pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413   srcdir=.
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_env_${ac_var}_value=\$${ac_var}
1424   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432   # Omit some internal or obsolete options to make the list less imposing.
1433   # This message is too long to be a string in the A/UX 3.1 sh.
1434   cat <<_ACEOF
1435 \`configure' configures ID3 Tag 0.15.1b to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE.  See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1444 Configuration:
1445   -h, --help              display this help and exit
1446       --help=short        display options specific to this package
1447       --help=recursive    display the short help of all the included packages
1448   -V, --version           display version information and exit
1449   -q, --quiet, --silent   do not print \`checking ...' messages
1450       --cache-file=FILE   cache test results in FILE [disabled]
1451   -C, --config-cache      alias for \`--cache-file=config.cache'
1452   -n, --no-create         do not create output files
1453       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456   --prefix=PREFIX         install architecture-independent files in PREFIX
1457                           @<:@@S|@ac_default_prefix@:>@
1458   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459                           @<:@PREFIX@:>@
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469   --bindir=DIR            user executables [EPREFIX/bin]
1470   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1471   --libexecdir=DIR        program executables [EPREFIX/libexec]
1472   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1473   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1474   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1475   --libdir=DIR            object code libraries [EPREFIX/lib]
1476   --includedir=DIR        C header files [PREFIX/include]
1477   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1478   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1479   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1480   --infodir=DIR           info documentation [DATAROOTDIR/info]
1481   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1482   --mandir=DIR            man documentation [DATAROOTDIR/man]
1483   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libid3tag@:>@
1484   --htmldir=DIR           html documentation [DOCDIR]
1485   --dvidir=DIR            dvi documentation [DOCDIR]
1486   --pdfdir=DIR            pdf documentation [DOCDIR]
1487   --psdir=DIR             ps documentation [DOCDIR]
1488 _ACEOF
1490   cat <<\_ACEOF
1492 Program names:
1493   --program-prefix=PREFIX            prepend PREFIX to installed program names
1494   --program-suffix=SUFFIX            append SUFFIX to installed program names
1495   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of ID3 Tag 0.15.1b:";;
1506    esac
1507   cat <<\_ACEOF
1509 Optional Features:
1510   --disable-option-checking  ignore unrecognized --enable/--with options
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --disable-dependency-tracking  speeds up one-time build
1514   --enable-dependency-tracking   do not reject slow dependency extractors
1515   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1516   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1517   --enable-fast-install@<:@=PKGS@:>@ 
1518                           optimize for fast installation @<:@default=yes@:>@
1519   --disable-libtool-lock  avoid locking (might break parallel builds)
1520   --enable-profiling      generate profiling code
1521   --enable-debugging      enable diagnostic debugging support
1522   --disable-debugging     do not enable debugging and use more optimization
1524 Optional Packages:
1525   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1528   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1529                           both@:>@
1530   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CPP         C preprocessor
1541   CXX         C++ compiler command
1542   CXXFLAGS    C++ compiler flags
1543   CXXCPP      C++ preprocessor
1544   F77         Fortran 77 compiler command
1545   FFLAGS      Fortran 77 compiler flags
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to <support@underbit.com>.
1551 _ACEOF
1552 ac_status=$?
1555 if test "$ac_init_help" = "recursive"; then
1556   # If there are subdirs, report their specific --help.
1557   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558     test -d "$ac_dir" ||
1559       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560       continue
1561     ac_builddir=.
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567   # A ".." for each directory in $ac_dir_suffix.
1568   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569   case $ac_top_builddir_sub in
1570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572   esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1579 case $srcdir in
1580   .)  # We are building in place.
1581     ac_srcdir=.
1582     ac_top_srcdir=$ac_top_builddir_sub
1583     ac_abs_top_srcdir=$ac_pwd ;;
1584   [\\/]* | ?:[\\/]* )  # Absolute name.
1585     ac_srcdir=$srcdir$ac_dir_suffix;
1586     ac_top_srcdir=$srcdir
1587     ac_abs_top_srcdir=$srcdir ;;
1588   *) # Relative name.
1589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590     ac_top_srcdir=$ac_top_build_prefix$srcdir
1591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595     cd "$ac_dir" || { ac_status=$?; continue; }
1596     # Check for guested configure.
1597     if test -f "$ac_srcdir/configure.gnu"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600     elif test -f "$ac_srcdir/configure"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure" --help=recursive
1603     else
1604       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605     fi || ac_status=$?
1606     cd "$ac_pwd" || { ac_status=$?; break; }
1607   done
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612   cat <<\_ACEOF
1613 ID3 Tag configure 0.15.1b
1614 generated by GNU Autoconf 2.68
1616 Copyright (C) 2010 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620   exit
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 @%:@ ac_fn_c_try_compile LINENO
1628 @%:@ --------------------------
1629 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   rm -f conftest.$ac_objext
1634   if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637   *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641   (eval "$ac_compile") 2>conftest.err
1642   ac_status=$?
1643   if test -s conftest.err; then
1644     grep -v '^ *+' conftest.err >conftest.er1
1645     cat conftest.er1 >&5
1646     mv -f conftest.er1 conftest.err
1647   fi
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } && {
1650          test -z "$ac_c_werror_flag" ||
1651          test ! -s conftest.err
1652        } && test -s conftest.$ac_objext; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658         ac_retval=1
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1663 } @%:@ ac_fn_c_try_compile
1665 @%:@ ac_fn_c_try_link LINENO
1666 @%:@ -----------------------
1667 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   rm -f conftest.$ac_objext conftest$ac_exeext
1672   if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_link") 2>conftest.err
1680   ac_status=$?
1681   if test -s conftest.err; then
1682     grep -v '^ *+' conftest.err >conftest.er1
1683     cat conftest.er1 >&5
1684     mv -f conftest.er1 conftest.err
1685   fi
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; } && {
1688          test -z "$ac_c_werror_flag" ||
1689          test ! -s conftest.err
1690        } && test -s conftest$ac_exeext && {
1691          test "$cross_compiling" = yes ||
1692          $as_test_x conftest$ac_exeext
1693        }; then :
1694   ac_retval=0
1695 else
1696   $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699         ac_retval=1
1701   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703   # interfere with the next link command; also delete a directory that is
1704   # left behind by Apple's compiler.  We do this before executing the actions.
1705   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707   as_fn_set_status $ac_retval
1709 } @%:@ ac_fn_c_try_link
1711 @%:@ ac_fn_c_try_cpp LINENO
1712 @%:@ ----------------------
1713 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } > conftest.i && {
1733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741     ac_retval=1
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1746 } @%:@ ac_fn_c_try_cpp
1748 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749 @%:@ -------------------------------------------------------
1750 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1751 @%:@ the include files in INCLUDES and setting the cache variable VAR
1752 @%:@ accordingly.
1753 ac_fn_c_check_header_mongrel ()
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   if eval \${$3+:} false; then :
1757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760   $as_echo_n "(cached) " >&6
1762 eval ac_res=\$$3
1763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 else
1766   # Is the header compilable?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1768 $as_echo_n "checking $2 usability... " >&6; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1772 @%:@include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775   ac_header_compiler=yes
1776 else
1777   ac_header_compiler=no
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1781 $as_echo "$ac_header_compiler" >&6; }
1783 # Is the header present?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1785 $as_echo_n "checking $2 presence... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 @%:@include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_cpp "$LINENO"; then :
1791   ac_header_preproc=yes
1792 else
1793   ac_header_preproc=no
1795 rm -f conftest.err conftest.i conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1797 $as_echo "$ac_header_preproc" >&6; }
1799 # So?  What about this header?
1800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1801   yes:no: )
1802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1803 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806     ;;
1807   no:yes:* )
1808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1809 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1811 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1813 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1815 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ( $as_echo "## ----------------------------------- ##
1819 ## Report this to support@underbit.com ##
1820 ## ----------------------------------- ##"
1821      ) | sed "s/^/$as_me: WARNING:     /" >&2
1822     ;;
1823 esac
1824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827   $as_echo_n "(cached) " >&6
1828 else
1829   eval "$3=\$ac_header_compiler"
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } @%:@ ac_fn_c_check_header_mongrel
1839 @%:@ ac_fn_c_try_run LINENO
1840 @%:@ ----------------------
1841 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1842 @%:@ that executables *can* be run.
1843 ac_fn_c_try_run ()
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   if { { ac_try="$ac_link"
1847 case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_link") 2>&5
1854   ac_status=$?
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857   { { case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_try") 2>&5
1864   ac_status=$?
1865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866   test $ac_status = 0; }; }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: program exited with status $ac_status" >&5
1870        $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873        ac_retval=$ac_status
1875   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877   as_fn_set_status $ac_retval
1879 } @%:@ ac_fn_c_try_run
1881 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882 @%:@ -------------------------------------------------------
1883 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1884 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1885 ac_fn_c_check_header_compile ()
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h.  */
1896 @%:@include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899   eval "$3=yes"
1900 else
1901   eval "$3=no"
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } @%:@ ac_fn_c_check_header_compile
1912 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1913 @%:@ ----------------------------------
1914 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1915 ac_fn_c_check_func ()
1917   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1927 #define $2 innocuous_$2
1929 /* System header to define __stub macros and hopefully few prototypes,
1930     which can conflict with char $2 (); below.
1931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932     <limits.h> exists even on freestanding compilers.  */
1934 #ifdef __STDC__
1935 # include <limits.h>
1936 #else
1937 # include <assert.h>
1938 #endif
1940 #undef $2
1942 /* Override any GCC internal prototype to avoid an error.
1943    Use char because int might match the return type of a GCC
1944    builtin and then its argument prototype would still apply.  */
1945 #ifdef __cplusplus
1946 extern "C"
1947 #endif
1948 char $2 ();
1949 /* The GNU C library defines this for functions which it implements
1950     to always fail with ENOSYS.  Some functions are actually named
1951     something starting with __ and the normal name is an alias.  */
1952 #if defined __stub_$2 || defined __stub___$2
1953 choke me
1954 #endif
1957 main ()
1959 return $2 ();
1960   ;
1961   return 0;
1963 _ACEOF
1964 if ac_fn_c_try_link "$LINENO"; then :
1965   eval "$3=yes"
1966 else
1967   eval "$3=no"
1969 rm -f core conftest.err conftest.$ac_objext \
1970     conftest$ac_exeext conftest.$ac_ext
1972 eval ac_res=\$$3
1973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 } @%:@ ac_fn_c_check_func
1979 @%:@ ac_fn_cxx_try_compile LINENO
1980 @%:@ ----------------------------
1981 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_compile ()
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   rm -f conftest.$ac_objext
1986   if { { ac_try="$ac_compile"
1987 case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_compile") 2>conftest.err
1994   ac_status=$?
1995   if test -s conftest.err; then
1996     grep -v '^ *+' conftest.err >conftest.er1
1997     cat conftest.er1 >&5
1998     mv -f conftest.er1 conftest.err
1999   fi
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; } && {
2002          test -z "$ac_cxx_werror_flag" ||
2003          test ! -s conftest.err
2004        } && test -s conftest.$ac_objext; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010         ac_retval=1
2012   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013   as_fn_set_status $ac_retval
2015 } @%:@ ac_fn_cxx_try_compile
2017 @%:@ ac_fn_cxx_try_cpp LINENO
2018 @%:@ ------------------------
2019 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_cpp ()
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   if { { ac_try="$ac_cpp conftest.$ac_ext"
2024 case "(($ac_try" in
2025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026   *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2031   ac_status=$?
2032   if test -s conftest.err; then
2033     grep -v '^ *+' conftest.err >conftest.er1
2034     cat conftest.er1 >&5
2035     mv -f conftest.er1 conftest.err
2036   fi
2037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038   test $ac_status = 0; } > conftest.i && {
2039          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2040          test ! -s conftest.err
2041        }; then :
2042   ac_retval=0
2043 else
2044   $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047     ac_retval=1
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050   as_fn_set_status $ac_retval
2052 } @%:@ ac_fn_cxx_try_cpp
2054 @%:@ ac_fn_cxx_try_link LINENO
2055 @%:@ -------------------------
2056 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_link ()
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   rm -f conftest.$ac_objext conftest$ac_exeext
2061   if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064   *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068   (eval "$ac_link") 2>conftest.err
2069   ac_status=$?
2070   if test -s conftest.err; then
2071     grep -v '^ *+' conftest.err >conftest.er1
2072     cat conftest.er1 >&5
2073     mv -f conftest.er1 conftest.err
2074   fi
2075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076   test $ac_status = 0; } && {
2077          test -z "$ac_cxx_werror_flag" ||
2078          test ! -s conftest.err
2079        } && test -s conftest$ac_exeext && {
2080          test "$cross_compiling" = yes ||
2081          $as_test_x conftest$ac_exeext
2082        }; then :
2083   ac_retval=0
2084 else
2085   $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088         ac_retval=1
2090   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2091   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2092   # interfere with the next link command; also delete a directory that is
2093   # left behind by Apple's compiler.  We do this before executing the actions.
2094   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096   as_fn_set_status $ac_retval
2098 } @%:@ ac_fn_cxx_try_link
2100 @%:@ ac_fn_cxx_check_func LINENO FUNC VAR
2101 @%:@ ------------------------------------
2102 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2103 ac_fn_cxx_check_func ()
2105   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109   $as_echo_n "(cached) " >&6
2110 else
2111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2115 #define $2 innocuous_$2
2117 /* System header to define __stub macros and hopefully few prototypes,
2118     which can conflict with char $2 (); below.
2119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2120     <limits.h> exists even on freestanding compilers.  */
2122 #ifdef __STDC__
2123 # include <limits.h>
2124 #else
2125 # include <assert.h>
2126 #endif
2128 #undef $2
2130 /* Override any GCC internal prototype to avoid an error.
2131    Use char because int might match the return type of a GCC
2132    builtin and then its argument prototype would still apply.  */
2133 #ifdef __cplusplus
2134 extern "C"
2135 #endif
2136 char $2 ();
2137 /* The GNU C library defines this for functions which it implements
2138     to always fail with ENOSYS.  Some functions are actually named
2139     something starting with __ and the normal name is an alias.  */
2140 #if defined __stub_$2 || defined __stub___$2
2141 choke me
2142 #endif
2145 main ()
2147 return $2 ();
2148   ;
2149   return 0;
2151 _ACEOF
2152 if ac_fn_cxx_try_link "$LINENO"; then :
2153   eval "$3=yes"
2154 else
2155   eval "$3=no"
2157 rm -f core conftest.err conftest.$ac_objext \
2158     conftest$ac_exeext conftest.$ac_ext
2160 eval ac_res=\$$3
2161                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } @%:@ ac_fn_cxx_check_func
2167 @%:@ ac_fn_f77_try_compile LINENO
2168 @%:@ ----------------------------
2169 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2170 ac_fn_f77_try_compile ()
2172   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173   rm -f conftest.$ac_objext
2174   if { { ac_try="$ac_compile"
2175 case "(($ac_try" in
2176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177   *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181   (eval "$ac_compile") 2>conftest.err
2182   ac_status=$?
2183   if test -s conftest.err; then
2184     grep -v '^ *+' conftest.err >conftest.er1
2185     cat conftest.er1 >&5
2186     mv -f conftest.er1 conftest.err
2187   fi
2188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189   test $ac_status = 0; } && {
2190          test -z "$ac_f77_werror_flag" ||
2191          test ! -s conftest.err
2192        } && test -s conftest.$ac_objext; then :
2193   ac_retval=0
2194 else
2195   $as_echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198         ac_retval=1
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201   as_fn_set_status $ac_retval
2203 } @%:@ ac_fn_f77_try_compile
2205 @%:@ ac_fn_f77_try_link LINENO
2206 @%:@ -------------------------
2207 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2208 ac_fn_f77_try_link ()
2210   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211   rm -f conftest.$ac_objext conftest$ac_exeext
2212   if { { ac_try="$ac_link"
2213 case "(($ac_try" in
2214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215   *) ac_try_echo=$ac_try;;
2216 esac
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 $as_echo "$ac_try_echo"; } >&5
2219   (eval "$ac_link") 2>conftest.err
2220   ac_status=$?
2221   if test -s conftest.err; then
2222     grep -v '^ *+' conftest.err >conftest.er1
2223     cat conftest.er1 >&5
2224     mv -f conftest.er1 conftest.err
2225   fi
2226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227   test $ac_status = 0; } && {
2228          test -z "$ac_f77_werror_flag" ||
2229          test ! -s conftest.err
2230        } && test -s conftest$ac_exeext && {
2231          test "$cross_compiling" = yes ||
2232          $as_test_x conftest$ac_exeext
2233        }; then :
2234   ac_retval=0
2235 else
2236   $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2239         ac_retval=1
2241   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2242   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2243   # interfere with the next link command; also delete a directory that is
2244   # left behind by Apple's compiler.  We do this before executing the actions.
2245   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247   as_fn_set_status $ac_retval
2249 } @%:@ ac_fn_f77_try_link
2250 cat >config.log <<_ACEOF
2251 This file contains any messages produced by compilers while
2252 running configure, to aid debugging if configure makes a mistake.
2254 It was created by ID3 Tag $as_me 0.15.1b, which was
2255 generated by GNU Autoconf 2.68.  Invocation command line was
2257   $ $0 $@
2259 _ACEOF
2260 exec 5>>config.log
2262 cat <<_ASUNAME
2263 ## --------- ##
2264 ## Platform. ##
2265 ## --------- ##
2267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2276 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2277 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2280 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2281 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2282 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2284 _ASUNAME
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291     $as_echo "PATH: $as_dir"
2292   done
2293 IFS=$as_save_IFS
2295 } >&5
2297 cat >&5 <<_ACEOF
2300 ## ----------- ##
2301 ## Core tests. ##
2302 ## ----------- ##
2304 _ACEOF
2307 # Keep a trace of the command line.
2308 # Strip out --no-create and --no-recursion so they do not pile up.
2309 # Strip out --silent because we don't want to record it for future runs.
2310 # Also quote any args containing shell meta-characters.
2311 # Make two passes to allow for proper duplicate-argument suppression.
2312 ac_configure_args=
2313 ac_configure_args0=
2314 ac_configure_args1=
2315 ac_must_keep_next=false
2316 for ac_pass in 1 2
2318   for ac_arg
2319   do
2320     case $ac_arg in
2321     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323     | -silent | --silent | --silen | --sile | --sil)
2324       continue ;;
2325     *\'*)
2326       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327     esac
2328     case $ac_pass in
2329     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330     2)
2331       as_fn_append ac_configure_args1 " '$ac_arg'"
2332       if test $ac_must_keep_next = true; then
2333         ac_must_keep_next=false # Got value, back to normal.
2334       else
2335         case $ac_arg in
2336           *=* | --config-cache | -C | -disable-* | --disable-* \
2337           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339           | -with-* | --with-* | -without-* | --without-* | --x)
2340             case "$ac_configure_args0 " in
2341               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342             esac
2343             ;;
2344           -* ) ac_must_keep_next=true ;;
2345         esac
2346       fi
2347       as_fn_append ac_configure_args " '$ac_arg'"
2348       ;;
2349     esac
2350   done
2351 done
2352 { ac_configure_args0=; unset ac_configure_args0;}
2353 { ac_configure_args1=; unset ac_configure_args1;}
2355 # When interrupted or exit'd, cleanup temporary files, and complete
2356 # config.log.  We remove comments because anyway the quotes in there
2357 # would cause problems or look ugly.
2358 # WARNING: Use '\'' to represent an apostrophe within the trap.
2359 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360 trap 'exit_status=$?
2361   # Save into config.log some information that might help in debugging.
2362   {
2363     echo
2365     $as_echo "## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##"
2368     echo
2369     # The following way of writing the cache mishandles newlines in values,
2371   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372     eval ac_val=\$$ac_var
2373     case $ac_val in #(
2374     *${as_nl}*)
2375       case $ac_var in #(
2376       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378       esac
2379       case $ac_var in #(
2380       _ | IFS | as_nl) ;; #(
2381       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382       *) { eval $ac_var=; unset $ac_var;} ;;
2383       esac ;;
2384     esac
2385   done
2386   (set) 2>&1 |
2387     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388     *${as_nl}ac_space=\ *)
2389       sed -n \
2390         "s/'\''/'\''\\\\'\'''\''/g;
2391           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392       ;; #(
2393     *)
2394       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395       ;;
2396     esac |
2397     sort
2399     echo
2401     $as_echo "## ----------------- ##
2402 ## Output variables. ##
2403 ## ----------------- ##"
2404     echo
2405     for ac_var in $ac_subst_vars
2406     do
2407       eval ac_val=\$$ac_var
2408       case $ac_val in
2409       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410       esac
2411       $as_echo "$ac_var='\''$ac_val'\''"
2412     done | sort
2413     echo
2415     if test -n "$ac_subst_files"; then
2416       $as_echo "## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##"
2419       echo
2420       for ac_var in $ac_subst_files
2421       do
2422         eval ac_val=\$$ac_var
2423         case $ac_val in
2424         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425         esac
2426         $as_echo "$ac_var='\''$ac_val'\''"
2427       done | sort
2428       echo
2429     fi
2431     if test -s confdefs.h; then
2432       $as_echo "## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##"
2435       echo
2436       cat confdefs.h
2437       echo
2438     fi
2439     test "$ac_signal" != 0 &&
2440       $as_echo "$as_me: caught signal $ac_signal"
2441     $as_echo "$as_me: exit $exit_status"
2442   } >&5
2443   rm -f core *.core core.conftest.* &&
2444     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445     exit $exit_status
2446 ' 0
2447 for ac_signal in 1 2 13 15; do
2448   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 done
2450 ac_signal=0
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2455 $as_echo "/* confdefs.h */" > confdefs.h
2457 # Predefined preprocessor variables.
2459 cat >>confdefs.h <<_ACEOF
2460 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 @%:@define PACKAGE_URL "$PACKAGE_URL"
2481 _ACEOF
2484 # Let the site file select an alternate cache file if it wants to.
2485 # Prefer an explicitly selected file to automatically selected ones.
2486 ac_site_file1=NONE
2487 ac_site_file2=NONE
2488 if test -n "$CONFIG_SITE"; then
2489   # We do not want a PATH search for config.site.
2490   case $CONFIG_SITE in @%:@((
2491     -*)  ac_site_file1=./$CONFIG_SITE;;
2492     */*) ac_site_file1=$CONFIG_SITE;;
2493     *)   ac_site_file1=./$CONFIG_SITE;;
2494   esac
2495 elif test "x$prefix" != xNONE; then
2496   ac_site_file1=$prefix/share/config.site
2497   ac_site_file2=$prefix/etc/config.site
2498 else
2499   ac_site_file1=$ac_default_prefix/share/config.site
2500   ac_site_file2=$ac_default_prefix/etc/config.site
2502 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2504   test "x$ac_site_file" = xNONE && continue
2505   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2506     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2508     sed 's/^/| /' "$ac_site_file" >&5
2509     . "$ac_site_file" \
2510       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 as_fn_error $? "failed to load site script $ac_site_file
2513 See \`config.log' for more details" "$LINENO" 5; }
2514   fi
2515 done
2517 if test -r "$cache_file"; then
2518   # Some versions of bash will fail to source /dev/null (special files
2519   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2520   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523     case $cache_file in
2524       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525       *)                      . "./$cache_file";;
2526     esac
2527   fi
2528 else
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531   >$cache_file
2534 # Check that the precious variables saved in the cache have kept the same
2535 # value.
2536 ac_cache_corrupted=false
2537 for ac_var in $ac_precious_vars; do
2538   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539   eval ac_new_set=\$ac_env_${ac_var}_set
2540   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541   eval ac_new_val=\$ac_env_${ac_var}_value
2542   case $ac_old_set,$ac_new_set in
2543     set,)
2544       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546       ac_cache_corrupted=: ;;
2547     ,set)
2548       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550       ac_cache_corrupted=: ;;
2551     ,);;
2552     *)
2553       if test "x$ac_old_val" != "x$ac_new_val"; then
2554         # differences in whitespace do not lead to failure.
2555         ac_old_val_w=`echo x $ac_old_val`
2556         ac_new_val_w=`echo x $ac_new_val`
2557         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560           ac_cache_corrupted=:
2561         else
2562           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564           eval $ac_var=\$ac_old_val
2565         fi
2566         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2567 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2568         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2569 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2570       fi;;
2571   esac
2572   # Pass precious variables to config.status.
2573   if test "$ac_new_set" = set; then
2574     case $ac_new_val in
2575     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576     *) ac_arg=$ac_var=$ac_new_val ;;
2577     esac
2578     case " $ac_configure_args " in
2579       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2580       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581     esac
2582   fi
2583 done
2584 if $ac_cache_corrupted; then
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 am__api_version="1.8"
2607 ac_aux_dir=
2608 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609   if test -f "$ac_dir/install-sh"; then
2610     ac_aux_dir=$ac_dir
2611     ac_install_sh="$ac_aux_dir/install-sh -c"
2612     break
2613   elif test -f "$ac_dir/install.sh"; then
2614     ac_aux_dir=$ac_dir
2615     ac_install_sh="$ac_aux_dir/install.sh -c"
2616     break
2617   elif test -f "$ac_dir/shtool"; then
2618     ac_aux_dir=$ac_dir
2619     ac_install_sh="$ac_aux_dir/shtool install -c"
2620     break
2621   fi
2622 done
2623 if test -z "$ac_aux_dir"; then
2624   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2636 # Find a good install program.  We prefer a C program (faster),
2637 # so one script is as good as another.  But avoid the broken or
2638 # incompatible versions:
2639 # SysV /etc/install, /usr/sbin/install
2640 # SunOS /usr/etc/install
2641 # IRIX /sbin/install
2642 # AIX /bin/install
2643 # AmigaOS /C/install, which installs bootblocks on floppy discs
2644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647 # OS/2's system install, which has a completely different semantic
2648 # ./install, which can be erroneously created by make from ./install.sh.
2649 # Reject install programs that cannot install multiple files.
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2652 if test -z "$INSTALL"; then
2653 if ${ac_cv_path_install+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     # Account for people who put trailing slashes in PATH elements.
2662 case $as_dir/ in @%:@((
2663   ./ | .// | /[cC]/* | \
2664   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2666   /usr/ucb/* ) ;;
2667   *)
2668     # OSF1 and SCO ODT 3.0 have their own names for install.
2669     # Don't use installbsd from OSF since it installs stuff as root
2670     # by default.
2671     for ac_prog in ginstall scoinst install; do
2672       for ac_exec_ext in '' $ac_executable_extensions; do
2673         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2674           if test $ac_prog = install &&
2675             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676             # AIX install.  It has an incompatible calling convention.
2677             :
2678           elif test $ac_prog = install &&
2679             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680             # program-specific install script used by HP pwplus--don't use.
2681             :
2682           else
2683             rm -rf conftest.one conftest.two conftest.dir
2684             echo one > conftest.one
2685             echo two > conftest.two
2686             mkdir conftest.dir
2687             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2688               test -s conftest.one && test -s conftest.two &&
2689               test -s conftest.dir/conftest.one &&
2690               test -s conftest.dir/conftest.two
2691             then
2692               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2693               break 3
2694             fi
2695           fi
2696         fi
2697       done
2698     done
2699     ;;
2700 esac
2702   done
2703 IFS=$as_save_IFS
2705 rm -rf conftest.one conftest.two conftest.dir
2708   if test "${ac_cv_path_install+set}" = set; then
2709     INSTALL=$ac_cv_path_install
2710   else
2711     # As a last resort, use the slow shell script.  Don't cache a
2712     # value for INSTALL within a source directory, because that will
2713     # break other packages using the cache if that directory is
2714     # removed, or if the value is a relative name.
2715     INSTALL=$ac_install_sh
2716   fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2719 $as_echo "$INSTALL" >&6; }
2721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722 # It thinks the first close brace ends the variable substitution.
2723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2730 $as_echo_n "checking whether build environment is sane... " >&6; }
2731 # Just in case
2732 sleep 1
2733 echo timestamp > conftest.file
2734 # Do `set' in a subshell so we don't clobber the current shell's
2735 # arguments.  Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2738 # directory).
2739 if (
2740    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2741    if test "$*" = "X"; then
2742       # -L didn't work.
2743       set X `ls -t $srcdir/configure conftest.file`
2744    fi
2745    rm -f conftest.file
2746    if test "$*" != "X $srcdir/configure conftest.file" \
2747       && test "$*" != "X conftest.file $srcdir/configure"; then
2749       # If neither matched, then we have a broken ls.  This can happen
2750       # if, for instance, CONFIG_SHELL is bash and it inherits a
2751       # broken ls alias from the environment.  This has actually
2752       # happened.  Such a system could not be considered "sane".
2753       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2755    fi
2757    test "$2" = conftest.file
2758    )
2759 then
2760    # Ok.
2761    :
2762 else
2763    as_fn_error $? "newly created file is older than distributed files!
2764 Check your system clock" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 test "$program_prefix" != NONE &&
2769   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2770 # Use a double $ so make ignores it.
2771 test "$program_suffix" != NONE &&
2772   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2773 # Double any \ or $.
2774 # By default was `s,x,x', remove it if useless.
2775 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2776 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2778 # expand $ac_aux_dir to an absolute path
2779 am_aux_dir=`cd $ac_aux_dir && pwd`
2781 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2782 # Use eval to expand $SHELL
2783 if eval "$MISSING --run true"; then
2784   am_missing_run="$MISSING --run "
2785 else
2786   am_missing_run=
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2788 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791 if mkdir -p -- . 2>/dev/null; then
2792   # Keeping the `.' argument allows $(mkdir_p) to be used without
2793   # argument.  Indeed, we sometimes output rules like
2794   #   $(mkdir_p) $(somedir)
2795   # where $(somedir) is conditionally defined.
2796   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2797   # expensive solution, as it forces Make to start a sub-shell.)
2798   mkdir_p='mkdir -p -- .'
2799 else
2800   # On NextStep and OpenStep, the `mkdir' command does not
2801   # recognize any option.  It will interpret all options as
2802   # directories to create, and then abort because `.' already
2803   # exists.
2804   for d in ./-p ./--;
2805   do
2806     test -d $d && rmdir $d
2807   done
2808   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2809   if test -f "$ac_aux_dir/mkinstalldirs"; then
2810     mkdir_p='$(mkinstalldirs)'
2811   else
2812     mkdir_p='$(install_sh) -d'
2813   fi
2816 for ac_prog in gawk mawk nawk awk
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_AWK+:} false; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$AWK"; then
2826   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_AWK="$ac_prog"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855   test -n "$AWK" && break
2856 done
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868         @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872   *@@@%%%=?*=@@@%%%*)
2873     eval ac_cv_prog_make_${ac_make}_set=yes;;
2874   *)
2875     eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882   SET_MAKE=
2883 else
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886   SET_MAKE="MAKE=${MAKE-make}"
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892   am__leading_dot=.
2893 else
2894   am__leading_dot=_
2896 rmdir .tst 2>/dev/null
2898 # test to see if srcdir already configured
2899 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2900    test -f $srcdir/config.status; then
2901   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2904 # test whether we have cygpath
2905 if test -z "$CYGPATH_W"; then
2906   if (cygpath --version) >/dev/null 2>/dev/null; then
2907     CYGPATH_W='cygpath -w'
2908   else
2909     CYGPATH_W=echo
2910   fi
2914 # Define the identity of the package.
2915  PACKAGE='libid3tag'
2916  VERSION='0.15.1b'
2919 cat >>confdefs.h <<_ACEOF
2920 @%:@define PACKAGE "$PACKAGE"
2921 _ACEOF
2924 cat >>confdefs.h <<_ACEOF
2925 @%:@define VERSION "$VERSION"
2926 _ACEOF
2928 # Some tools Automake needs.
2930 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945 AMTAR=${AMTAR-"${am_missing_run}tar"}
2947 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2949 # Installed binaries are usually stripped using `strip' when the user
2950 # run `make install-strip'.  However `strip' might not be the right
2951 # tool to use in cross-compilation environments, therefore Automake
2952 # will honor the `STRIP' environment variable to overrule this program.
2953 if test "$cross_compiling" != no; then
2954   if test -n "$ac_tool_prefix"; then
2955   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_STRIP+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$STRIP"; then
2963   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2982 STRIP=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2993 if test -z "$ac_cv_prog_STRIP"; then
2994   ac_ct_STRIP=$STRIP
2995   # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$ac_ct_STRIP"; then
3003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_ac_ct_STRIP="strip"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3031   if test "x$ac_ct_STRIP" = x; then
3032     STRIP=":"
3033   else
3034     case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040     STRIP=$ac_ct_STRIP
3041   fi
3042 else
3043   STRIP="$ac_cv_prog_STRIP"
3047 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3049 # We need awk for the "check" target.  The system "awk" is bad on
3050 # some platforms.
3055 ac_config_headers="$ac_config_headers config.h"
3059 # Make sure we can run config.sub.
3060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3061   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3064 $as_echo_n "checking build system type... " >&6; }
3065 if ${ac_cv_build+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   ac_build_alias=$build_alias
3069 test "x$ac_build_alias" = x &&
3070   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3071 test "x$ac_build_alias" = x &&
3072   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3074   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3078 $as_echo "$ac_cv_build" >&6; }
3079 case $ac_cv_build in
3080 *-*-*) ;;
3081 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3082 esac
3083 build=$ac_cv_build
3084 ac_save_IFS=$IFS; IFS='-'
3085 set x $ac_cv_build
3086 shift
3087 build_cpu=$1
3088 build_vendor=$2
3089 shift; shift
3090 # Remember, the first character of IFS is used to create $*,
3091 # except with old shells:
3092 build_os=$*
3093 IFS=$ac_save_IFS
3094 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3098 $as_echo_n "checking host system type... " >&6; }
3099 if ${ac_cv_host+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test "x$host_alias" = x; then
3103   ac_cv_host=$ac_cv_build
3104 else
3105   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3106     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3111 $as_echo "$ac_cv_host" >&6; }
3112 case $ac_cv_host in
3113 *-*-*) ;;
3114 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3115 esac
3116 host=$ac_cv_host
3117 ac_save_IFS=$IFS; IFS='-'
3118 set x $ac_cv_host
3119 shift
3120 host_cpu=$1
3121 host_vendor=$2
3122 shift; shift
3123 # Remember, the first character of IFS is used to create $*,
3124 # except with old shells:
3125 host_os=$*
3126 IFS=$ac_save_IFS
3127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$CC"; then
3146   ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3177   ac_ct_CC=$CC
3178   # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   if test -n "$ac_ct_CC"; then
3186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191   IFS=$as_save_IFS
3192   test -z "$as_dir" && as_dir=.
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195     ac_cv_prog_ac_ct_CC="gcc"
3196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197     break 2
3198   fi
3199 done
3200   done
3201 IFS=$as_save_IFS
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223     CC=$ac_ct_CC
3224   fi
3225 else
3226   CC="$ac_cv_prog_CC"
3229 if test -z "$CC"; then
3230           if test -n "$ac_tool_prefix"; then
3231     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$CC"; then
3239   ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248     ac_cv_prog_CC="${ac_tool_prefix}cc"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3268   fi
3270 if test -z "$CC"; then
3271   # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281   ac_prog_rejected=no
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285   IFS=$as_save_IFS
3286   test -z "$as_dir" && as_dir=.
3287     for ac_exec_ext in '' $ac_executable_extensions; do
3288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290        ac_prog_rejected=yes
3291        continue
3292      fi
3293     ac_cv_prog_CC="cc"
3294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298   done
3299 IFS=$as_save_IFS
3301 if test $ac_prog_rejected = yes; then
3302   # We found a bogon in the path, so make sure we never use it.
3303   set dummy $ac_cv_prog_CC
3304   shift
3305   if test $@%:@ != 0; then
3306     # We chose a different compiler from the bogus one.
3307     # However, it has the same basename, so the bogon will be chosen
3308     # first if we set CC to just the basename; use the full file name.
3309     shift
3310     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3311   fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327   if test -n "$ac_tool_prefix"; then
3328   for ac_prog in cl.exe
3329   do
3330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test -n "$CC"; then
3338   ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345     for ac_exec_ext in '' $ac_executable_extensions; do
3346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352   done
3353 IFS=$as_save_IFS
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367     test -n "$CC" && break
3368   done
3370 if test -z "$CC"; then
3371   ac_ct_CC=$CC
3372   for ac_prog in cl.exe
3374   # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$ac_ct_CC"; then
3382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391     ac_cv_prog_ac_ct_CC="$ac_prog"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411   test -n "$ac_ct_CC" && break
3412 done
3414   if test "x$ac_ct_CC" = x; then
3415     CC=""
3416   else
3417     case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423     CC=$ac_ct_CC
3424   fi
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3437 set X $ac_compile
3438 ac_compiler=$2
3439 for ac_option in --version -v -V -qversion; do
3440   { { ac_try="$ac_compiler $ac_option >&5"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448   ac_status=$?
3449   if test -s conftest.err; then
3450     sed '10a\
3451 ... rest of stderr output deleted ...
3452          10q' conftest.err >conftest.er1
3453     cat conftest.er1 >&5
3454   fi
3455   rm -f conftest.er1 conftest.err
3456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457   test $ac_status = 0; }
3458 done
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3464 main ()
3467   ;
3468   return 0;
3470 _ACEOF
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3475 # of exeext.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 ac_rmfiles=
3484 for ac_file in $ac_files
3486   case $ac_file in
3487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3489   esac
3490 done
3491 rm -f $ac_rmfiles
3493 if { { ac_try="$ac_link_default"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500   (eval "$ac_link_default") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503   test $ac_status = 0; }; then :
3504   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3508 # Autoconf.
3509 for ac_file in $ac_files ''
3511   test -f "$ac_file" || continue
3512   case $ac_file in
3513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3514         ;;
3515     [ab].out )
3516         # We found the default executable, but exeext='' is most
3517         # certainly right.
3518         break;;
3519     *.* )
3520         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521         then :; else
3522            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523         fi
3524         # We set ac_cv_exeext here because the later test for it is not
3525         # safe: cross compilers may not add the suffix if given an `-o'
3526         # argument, so we may need to know it at that point already.
3527         # Even if this section looks crufty: it has the advantage of
3528         # actually working.
3529         break;;
3530     * )
3531         break;;
3532   esac
3533 done
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3536 else
3537   ac_file=''
3539 if test -z "$ac_file"; then :
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_link") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; then :
3574   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 # `rm'.
3578 for ac_file in conftest.exe conftest conftest.*; do
3579   test -f "$ac_file" || continue
3580   case $ac_file in
3581     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583           break;;
3584     * ) break;;
3585   esac
3586 done
3587 else
3588   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3599 ac_exeext=$EXEEXT
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602 @%:@include <stdio.h>
3604 main ()
3606 FILE *f = fopen ("conftest.out", "w");
3607  return ferror (f) || fclose (f) != 0;
3609   ;
3610   return 0;
3612 _ACEOF
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run.  If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619   { { ac_try="$ac_link"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_link") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }
3630   if { ac_try='./conftest$ac_cv_exeext'
3631   { { case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640   test $ac_status = 0; }; }; then
3641     cross_compiling=no
3642   else
3643     if test "$cross_compiling" = maybe; then
3644         cross_compiling=yes
3645     else
3646         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3651     fi
3652   fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3668 main ()
3671   ;
3672   return 0;
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_compile") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; }; then :
3687   for ac_file in conftest.o conftest.obj conftest.*; do
3688   test -f "$ac_file" || continue;
3689   case $ac_file in
3690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692        break;;
3693   esac
3694 done
3695 else
3696   $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3719 main ()
3721 #ifndef __GNUC__
3722        choke me
3723 #endif
3725   ;
3726   return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730   ac_compiler_gnu=yes
3731 else
3732   ac_compiler_gnu=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741   GCC=yes
3742 else
3743   GCC=
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   ac_save_c_werror_flag=$ac_c_werror_flag
3753    ac_c_werror_flag=yes
3754    ac_cv_prog_cc_g=no
3755    CFLAGS="-g"
3756    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3760 main ()
3763   ;
3764   return 0;
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768   ac_cv_prog_cc_g=yes
3769 else
3770   CFLAGS=""
3771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3775 main ()
3778   ;
3779   return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783   
3784 else
3785   ac_c_werror_flag=$ac_save_c_werror_flag
3786          CFLAGS="-g"
3787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3791 main ()
3794   ;
3795   return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799   ac_cv_prog_cc_g=yes
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806    ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811   CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813   if test "$GCC" = yes; then
3814     CFLAGS="-g -O2"
3815   else
3816     CFLAGS="-g"
3817   fi
3818 else
3819   if test "$GCC" = yes; then
3820     CFLAGS="-O2"
3821   else
3822     CFLAGS=
3823   fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842      char **p;
3843      int i;
3845   return p[i];
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3849   char *s;
3850   va_list v;
3851   va_start (v,p);
3852   s = g (p, va_arg (v,int));
3853   va_end (v);
3854   return s;
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3858    function prototypes and stuff, but not '\xHH' hex character constants.
3859    These don't provoke an error unfortunately, instead are silently treated
3860    as 'x'.  The following induces an error, until -std is added to get
3861    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3862    array size at least.  It's necessary to write '\x00'==0 to get something
3863    that's true only with -std.  */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867    inside strings and character constants.  */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3878 main ()
3880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3881   ;
3882   return 0;
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888   CC="$ac_save_CC $ac_arg"
3889   if ac_fn_c_try_compile "$LINENO"; then :
3890   ac_cv_prog_cc_c89=$ac_arg
3892 rm -f core conftest.err conftest.$ac_objext
3893   test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 done
3895 rm -f conftest.$ac_ext
3896 CC=$ac_save_CC
3899 # AC_CACHE_VAL
3900 case "x$ac_cv_prog_cc_c89" in
3901   x)
3902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3904   xno)
3905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3907   *)
3908     CC="$CC $ac_cv_prog_cc_c89"
3909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 esac
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3913   
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 DEPDIR="${am__leading_dot}deps"
3923 ac_config_commands="$ac_config_commands depfiles"
3926 am_make=${MAKE-make}
3927 cat > confinc << 'END'
3928 am__doit:
3929         @echo done
3930 .PHONY: am__doit
3932 # If we don't find an include directive, just comment out the code.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3935 am__include="#"
3936 am__quote=
3937 _am_result=none
3938 # First try GNU make style include.
3939 echo "include confinc" > confmf
3940 # We grep out `Entering directory' and `Leaving directory'
3941 # messages which can occur if `w' ends up in MAKEFLAGS.
3942 # In particular we don't look at `^make:' because GNU make might
3943 # be invoked under some other name (usually "gmake"), in which
3944 # case it prints its new name instead of `make'.
3945 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3946    am__include=include
3947    am__quote=
3948    _am_result=GNU
3950 # Now try BSD make style include.
3951 if test "$am__include" = "#"; then
3952    echo '.include "confinc"' > confmf
3953    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3954       am__include=.include
3955       am__quote="\""
3956       _am_result=BSD
3957    fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962 $as_echo "$_am_result" >&6; }
3963 rm -f confinc confmf
3965 @%:@ Check whether --enable-dependency-tracking was given.
3966 if test "${enable_dependency_tracking+set}" = set; then :
3967   enableval=$enable_dependency_tracking; 
3970 if test "x$enable_dependency_tracking" != xno; then
3971   am_depcomp="$ac_aux_dir/depcomp"
3972   AMDEPBACKSLASH='\'
3976 if test "x$enable_dependency_tracking" != xno; then
3977   AMDEP_TRUE=
3978   AMDEP_FALSE='#'
3979 else
3980   AMDEP_TRUE='#'
3981   AMDEP_FALSE=
3987 depcc="$CC"   am_compiler_list=
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3990 $as_echo_n "checking dependency style of $depcc... " >&6; }
3991 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3995   # We make a subdir and do the tests there.  Otherwise we can end up
3996   # making bogus files that we don't know about and never remove.  For
3997   # instance it was reported that on HP-UX the gcc test will end up
3998   # making a dummy file named `D' -- because `-MD' means `put the output
3999   # in D'.
4000   mkdir conftest.dir
4001   # Copy depcomp to subdir because otherwise we won't find it if we're
4002   # using a relative directory.
4003   cp "$am_depcomp" conftest.dir
4004   cd conftest.dir
4005   # We will build objects and dependencies in a subdirectory because
4006   # it helps to detect inapplicable dependency modes.  For instance
4007   # both Tru64's cc and ICC support -MD to output dependencies as a
4008   # side effect of compilation, but ICC will put the dependencies in
4009   # the current directory while Tru64 will put them in the object
4010   # directory.
4011   mkdir sub
4013   am_cv_CC_dependencies_compiler_type=none
4014   if test "$am_compiler_list" = ""; then
4015      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4016   fi
4017   for depmode in $am_compiler_list; do
4018     # Setup a source with many dependencies, because some compilers
4019     # like to wrap large dependency lists on column 80 (with \), and
4020     # we should not choose a depcomp mode which is confused by this.
4021     #
4022     # We need to recreate these files for each test, as the compiler may
4023     # overwrite some of them when testing with obscure command lines.
4024     # This happens at least with the AIX C compiler.
4025     : > sub/conftest.c
4026     for i in 1 2 3 4 5 6; do
4027       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4028       : > sub/conftst$i.h
4029     done
4030     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032     case $depmode in
4033     nosideeffect)
4034       # after this tag, mechanisms are not by side-effect, so they'll
4035       # only be used when explicitly requested
4036       if test "x$enable_dependency_tracking" = xyes; then
4037         continue
4038       else
4039         break
4040       fi
4041       ;;
4042     none) break ;;
4043     esac
4044     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045     # mode.  It turns out that the SunPro C++ compiler does not properly
4046     # handle `-M -o', and we need to detect this.
4047     if depmode=$depmode \
4048        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4049        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4051          >/dev/null 2>conftest.err &&
4052        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4053        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4054        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4055       # icc doesn't choke on unknown options, it will just issue warnings
4056       # (even with -Werror).  So we grep stderr for any message
4057       # that says an option was ignored.
4058       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4059         am_cv_CC_dependencies_compiler_type=$depmode
4060         break
4061       fi
4062     fi
4063   done
4065   cd ..
4066   rm -rf conftest.dir
4067 else
4068   am_cv_CC_dependencies_compiler_type=none
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4073 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4078 if 
4079   test "x$enable_dependency_tracking" != xno \
4080   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4081   am__fastdepCC_TRUE=
4082   am__fastdepCC_FALSE='#'
4083 else
4084   am__fastdepCC_TRUE='#'
4085   am__fastdepCC_FALSE=
4090 if test "$GCC" = yes
4091 then
4092     case "$host" in
4093         *-*-mingw*)
4094             case "$build" in
4095                 *-*-cygwin*)
4096                     CPPFLAGS="$CPPFLAGS -mno-cygwin"
4097                     LDFLAGS="$LDFLAGS -mno-cygwin"
4098                     ;;
4099             esac
4100     esac
4105 @%:@ Check whether --enable-shared was given.
4106 if test "${enable_shared+set}" = set; then :
4107   enableval=$enable_shared; p=${PACKAGE-default}
4108     case $enableval in
4109     yes) enable_shared=yes ;;
4110     no) enable_shared=no ;;
4111     *)
4112       enable_shared=no
4113       # Look at the argument we got.  We use all the common list separators.
4114       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4115       for pkg in $enableval; do
4116         IFS="$lt_save_ifs"
4117         if test "X$pkg" = "X$p"; then
4118           enable_shared=yes
4119         fi
4120       done
4121       IFS="$lt_save_ifs"
4122       ;;
4123     esac
4124 else
4125   enable_shared=yes
4129 @%:@ Check whether --enable-static was given.
4130 if test "${enable_static+set}" = set; then :
4131   enableval=$enable_static; p=${PACKAGE-default}
4132     case $enableval in
4133     yes) enable_static=yes ;;
4134     no) enable_static=no ;;
4135     *)
4136      enable_static=no
4137       # Look at the argument we got.  We use all the common list separators.
4138       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4139       for pkg in $enableval; do
4140         IFS="$lt_save_ifs"
4141         if test "X$pkg" = "X$p"; then
4142           enable_static=yes
4143         fi
4144       done
4145       IFS="$lt_save_ifs"
4146       ;;
4147     esac
4148 else
4149   enable_static=yes
4153 @%:@ Check whether --enable-fast-install was given.
4154 if test "${enable_fast_install+set}" = set; then :
4155   enableval=$enable_fast_install; p=${PACKAGE-default}
4156     case $enableval in
4157     yes) enable_fast_install=yes ;;
4158     no) enable_fast_install=no ;;
4159     *)
4160       enable_fast_install=no
4161       # Look at the argument we got.  We use all the common list separators.
4162       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4163       for pkg in $enableval; do
4164         IFS="$lt_save_ifs"
4165         if test "X$pkg" = "X$p"; then
4166           enable_fast_install=yes
4167         fi
4168       done
4169       IFS="$lt_save_ifs"
4170       ;;
4171     esac
4172 else
4173   enable_fast_install=yes
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4178 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4179 if ${lt_cv_path_SED+:} false; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   # Loop through the user's path and test for sed and gsed.
4183 # Then use that list of sed's as ones to test for truncation.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for lt_ac_prog in sed gsed; do
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4192         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4193       fi
4194     done
4195   done
4196 done
4197 lt_ac_max=0
4198 lt_ac_count=0
4199 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4200 # along with /bin/sed that truncates output.
4201 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4202   test ! -f $lt_ac_sed && break
4203   cat /dev/null > conftest.in
4204   lt_ac_count=0
4205   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4206   # Check for GNU sed and select it if it is found.
4207   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4208     lt_cv_path_SED=$lt_ac_sed
4209     break
4210   fi
4211   while true; do
4212     cat conftest.in conftest.in >conftest.tmp
4213     mv conftest.tmp conftest.in
4214     cp conftest.in conftest.nl
4215     echo >>conftest.nl
4216     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4217     cmp -s conftest.out conftest.nl || break
4218     # 10000 chars as input seems more than enough
4219     test $lt_ac_count -gt 10 && break
4220     lt_ac_count=`expr $lt_ac_count + 1`
4221     if test $lt_ac_count -gt $lt_ac_max; then
4222       lt_ac_max=$lt_ac_count
4223       lt_cv_path_SED=$lt_ac_sed
4224     fi
4225   done
4226 done
4227 SED=$lt_cv_path_SED
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4232 $as_echo "$SED" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4236 if ${ac_cv_path_GREP+:} false; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   if test -z "$GREP"; then
4240   ac_path_GREP_found=false
4241   # Loop through the user's path and test for each of PROGNAME-LIST
4242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247     for ac_prog in grep ggrep; do
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251 # Check for GNU ac_path_GREP and select it if it is found.
4252   # Check for GNU $ac_path_GREP
4253 case `"$ac_path_GREP" --version 2>&1` in
4254 *GNU*)
4255   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257   ac_count=0
4258   $as_echo_n 0123456789 >"conftest.in"
4259   while :
4260   do
4261     cat "conftest.in" "conftest.in" >"conftest.tmp"
4262     mv "conftest.tmp" "conftest.in"
4263     cp "conftest.in" "conftest.nl"
4264     $as_echo 'GREP' >> "conftest.nl"
4265     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267     as_fn_arith $ac_count + 1 && ac_count=$as_val
4268     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269       # Best one so far, save it but keep looking for a better one
4270       ac_cv_path_GREP="$ac_path_GREP"
4271       ac_path_GREP_max=$ac_count
4272     fi
4273     # 10*(2^10) chars as input seems more than enough
4274     test $ac_count -gt 10 && break
4275   done
4276   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 esac
4279       $ac_path_GREP_found && break 3
4280     done
4281   done
4282   done
4283 IFS=$as_save_IFS
4284   if test -z "$ac_cv_path_GREP"; then
4285     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4286   fi
4287 else
4288   ac_cv_path_GREP=$GREP
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294  GREP="$ac_cv_path_GREP"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if ${ac_cv_path_EGREP+:} false; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303    then ac_cv_path_EGREP="$GREP -E"
4304    else
4305      if test -z "$EGREP"; then
4306   ac_path_EGREP_found=false
4307   # Loop through the user's path and test for each of PROGNAME-LIST
4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313     for ac_prog in egrep; do
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318   # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4320 *GNU*)
4321   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4323   ac_count=0
4324   $as_echo_n 0123456789 >"conftest.in"
4325   while :
4326   do
4327     cat "conftest.in" "conftest.in" >"conftest.tmp"
4328     mv "conftest.tmp" "conftest.in"
4329     cp "conftest.in" "conftest.nl"
4330     $as_echo 'EGREP' >> "conftest.nl"
4331     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333     as_fn_arith $ac_count + 1 && ac_count=$as_val
4334     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335       # Best one so far, save it but keep looking for a better one
4336       ac_cv_path_EGREP="$ac_path_EGREP"
4337       ac_path_EGREP_max=$ac_count
4338     fi
4339     # 10*(2^10) chars as input seems more than enough
4340     test $ac_count -gt 10 && break
4341   done
4342   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4345       $ac_path_EGREP_found && break 3
4346     done
4347   done
4348   done
4349 IFS=$as_save_IFS
4350   if test -z "$ac_cv_path_EGREP"; then
4351     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352   fi
4353 else
4354   ac_cv_path_EGREP=$EGREP
4357    fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4360 $as_echo "$ac_cv_path_EGREP" >&6; }
4361  EGREP="$ac_cv_path_EGREP"
4365 @%:@ Check whether --with-gnu-ld was given.
4366 if test "${with_gnu_ld+set}" = set; then :
4367   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4368 else
4369   with_gnu_ld=no
4372 ac_prog=ld
4373 if test "$GCC" = yes; then
4374   # Check if gcc -print-prog-name=ld gives a path.
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4376 $as_echo_n "checking for ld used by $CC... " >&6; }
4377   case $host in
4378   *-*-mingw*)
4379     # gcc leaves a trailing carriage return which upsets mingw
4380     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381   *)
4382     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4383   esac
4384   case $ac_prog in
4385     # Accept absolute paths.
4386     [\\/]* | ?:[\\/]*)
4387       re_direlt='/[^/][^/]*/\.\./'
4388       # Canonicalize the pathname of ld
4389       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4390       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4391         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4392       done
4393       test -z "$LD" && LD="$ac_prog"
4394       ;;
4395   "")
4396     # If it fails, then pretend we aren't using GCC.
4397     ac_prog=ld
4398     ;;
4399   *)
4400     # If it is relative, then search for the first ld in PATH.
4401     with_gnu_ld=unknown
4402     ;;
4403   esac
4404 elif test "$with_gnu_ld" = yes; then
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4406 $as_echo_n "checking for GNU ld... " >&6; }
4407 else
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4409 $as_echo_n "checking for non-GNU ld... " >&6; }
4411 if ${lt_cv_path_LD+:} false; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -z "$LD"; then
4415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4416   for ac_dir in $PATH; do
4417     IFS="$lt_save_ifs"
4418     test -z "$ac_dir" && ac_dir=.
4419     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4420       lt_cv_path_LD="$ac_dir/$ac_prog"
4421       # Check to see if the program is GNU ld.  I'd rather use --version,
4422       # but apparently some GNU ld's only accept -v.
4423       # Break only if it was the GNU/non-GNU ld that we prefer.
4424       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4425       *GNU* | *'with BFD'*)
4426         test "$with_gnu_ld" != no && break
4427         ;;
4428       *)
4429         test "$with_gnu_ld" != yes && break
4430         ;;
4431       esac
4432     fi
4433   done
4434   IFS="$lt_save_ifs"
4435 else
4436   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4440 LD="$lt_cv_path_LD"
4441 if test -n "$LD"; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4443 $as_echo "$LD" >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4448 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4450 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4451 if ${lt_cv_prog_gnu_ld+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4455 case `$LD -v 2>&1 </dev/null` in
4456 *GNU* | *'with BFD'*)
4457   lt_cv_prog_gnu_ld=yes
4458   ;;
4460   lt_cv_prog_gnu_ld=no
4461   ;;
4462 esac
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4465 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4466 with_gnu_ld=$lt_cv_prog_gnu_ld
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4470 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4471 if ${lt_cv_ld_reload_flag+:} false; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   lt_cv_ld_reload_flag='-r'
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4477 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4478 reload_flag=$lt_cv_ld_reload_flag
4479 case $reload_flag in
4480 "" | " "*) ;;
4481 *) reload_flag=" $reload_flag" ;;
4482 esac
4483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4486 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4487 if ${lt_cv_path_NM+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if test -n "$NM"; then
4491   # Let the user override the test.
4492   lt_cv_path_NM="$NM"
4493 else
4494   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4495   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4496     IFS="$lt_save_ifs"
4497     test -z "$ac_dir" && ac_dir=.
4498     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4499     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4500       # Check to see if the nm accepts a BSD-compat flag.
4501       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4502       #   nm: unknown option "B" ignored
4503       # Tru64's nm complains that /dev/null is an invalid object file
4504       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4505       */dev/null* | *'Invalid file or object type'*)
4506         lt_cv_path_NM="$tmp_nm -B"
4507         break
4508         ;;
4509       *)
4510         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4511         */dev/null*)
4512           lt_cv_path_NM="$tmp_nm -p"
4513           break
4514           ;;
4515         *)
4516           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4517           continue # so that we can try to find one that supports BSD flags
4518           ;;
4519         esac
4520       esac
4521     fi
4522   done
4523   IFS="$lt_save_ifs"
4524   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4528 $as_echo "$lt_cv_path_NM" >&6; }
4529 NM="$lt_cv_path_NM"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4532 $as_echo_n "checking whether ln -s works... " >&6; }
4533 LN_S=$as_ln_s
4534 if test "$LN_S" = "ln -s"; then
4535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536 $as_echo "yes" >&6; }
4537 else
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4539 $as_echo "no, using $LN_S" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4543 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4544 if ${lt_cv_deplibs_check_method+:} false; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   lt_cv_file_magic_cmd='$MAGIC_CMD'
4548 lt_cv_file_magic_test_file=
4549 lt_cv_deplibs_check_method='unknown'
4550 # Need to set the preceding variable on all platforms that support
4551 # interlibrary dependencies.
4552 # 'none' -- dependencies not supported.
4553 # `unknown' -- same as none, but documents that we really don't know.
4554 # 'pass_all' -- all dependencies passed with no checks.
4555 # 'test_compile' -- check by making test program.
4556 # 'file_magic [[regex]]' -- check by looking for files in library path
4557 # which responds to the $file_magic_cmd with a given extended regex.
4558 # If you have `file' or equivalent on your system and you're not sure
4559 # whether `pass_all' will *always* work, you probably want this one.
4561 case $host_os in
4562 aix4* | aix5*)
4563   lt_cv_deplibs_check_method=pass_all
4564   ;;
4566 beos*)
4567   lt_cv_deplibs_check_method=pass_all
4568   ;;
4570 bsdi4*)
4571   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4572   lt_cv_file_magic_cmd='/usr/bin/file -L'
4573   lt_cv_file_magic_test_file=/shlib/libc.so
4574   ;;
4576 cygwin*)
4577   # win32_libid is a shell function defined in ltmain.sh
4578   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4579   lt_cv_file_magic_cmd='win32_libid'
4580   ;;
4582 mingw* | pw32*)
4583   # Base MSYS/MinGW do not provide the 'file' command needed by
4584   # win32_libid shell function, so use a weaker test based on 'objdump'.
4585   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4586   lt_cv_file_magic_cmd='$OBJDUMP -f'
4587   ;;
4589 darwin* | rhapsody*)
4590   lt_cv_deplibs_check_method=pass_all
4591   ;;
4593 freebsd* | kfreebsd*-gnu)
4594   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4595     case $host_cpu in
4596     i*86 )
4597       # Not sure whether the presence of OpenBSD here was a mistake.
4598       # Let's accept both of them until this is cleared up.
4599       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4600       lt_cv_file_magic_cmd=/usr/bin/file
4601       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4602       ;;
4603     esac
4604   else
4605     lt_cv_deplibs_check_method=pass_all
4606   fi
4607   ;;
4609 gnu*)
4610   lt_cv_deplibs_check_method=pass_all
4611   ;;
4613 hpux10.20* | hpux11*)
4614   lt_cv_file_magic_cmd=/usr/bin/file
4615   case "$host_cpu" in
4616   ia64*)
4617     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4618     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4619     ;;
4620   hppa*64*)
4621     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4622     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4623     ;;
4624   *)
4625     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4626     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4627     ;;
4628   esac
4629   ;;
4631 irix5* | irix6* | nonstopux*)
4632   case $LD in
4633   *-32|*"-32 ") libmagic=32-bit;;
4634   *-n32|*"-n32 ") libmagic=N32;;
4635   *-64|*"-64 ") libmagic=64-bit;;
4636   *) libmagic=never-match;;
4637   esac
4638   lt_cv_deplibs_check_method=pass_all
4639   ;;
4641 # This must be Linux ELF.
4642 linux*)
4643   lt_cv_deplibs_check_method=pass_all
4644   ;;
4646 netbsd* | knetbsd*-gnu)
4647   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4649   else
4650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4651   fi
4652   ;;
4654 newos6*)
4655   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4656   lt_cv_file_magic_cmd=/usr/bin/file
4657   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4658   ;;
4660 nto-qnx*)
4661   lt_cv_deplibs_check_method=unknown
4662   ;;
4664 openbsd*)
4665   lt_cv_file_magic_cmd=/usr/bin/file
4666   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4667   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4668     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4669   else
4670     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4671   fi
4672   ;;
4674 osf3* | osf4* | osf5*)
4675   lt_cv_deplibs_check_method=pass_all
4676   ;;
4678 sco3.2v5*)
4679   lt_cv_deplibs_check_method=pass_all
4680   ;;
4682 solaris*)
4683   lt_cv_deplibs_check_method=pass_all
4684   ;;
4686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4687   case $host_vendor in
4688   motorola)
4689     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]'
4690     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4691     ;;
4692   ncr)
4693     lt_cv_deplibs_check_method=pass_all
4694     ;;
4695   sequent)
4696     lt_cv_file_magic_cmd='/bin/file'
4697     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4698     ;;
4699   sni)
4700     lt_cv_file_magic_cmd='/bin/file'
4701     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4702     lt_cv_file_magic_test_file=/lib/libc.so
4703     ;;
4704   siemens)
4705     lt_cv_deplibs_check_method=pass_all
4706     ;;
4707   esac
4708   ;;
4710 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4711   lt_cv_deplibs_check_method=pass_all
4712   ;;
4713 esac
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4718 file_magic_cmd=$lt_cv_file_magic_cmd
4719 deplibs_check_method=$lt_cv_deplibs_check_method
4720 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4725 # If no C compiler was specified, use CC.
4726 LTCC=${LTCC-"$CC"}
4728 # Allow CC to be a program name with arguments.
4729 compiler=$CC
4732 @%:@ Check whether --enable-libtool-lock was given.
4733 if test "${enable_libtool_lock+set}" = set; then :
4734   enableval=$enable_libtool_lock; 
4737 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4739 # Some flags need to be propagated to the compiler or linker for good
4740 # libtool support.
4741 case $host in
4742 ia64-*-hpux*)
4743   # Find out which ABI we are using.
4744   echo 'int i;' > conftest.$ac_ext
4745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4746   (eval $ac_compile) 2>&5
4747   ac_status=$?
4748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749   test $ac_status = 0; }; then
4750     case `/usr/bin/file conftest.$ac_objext` in
4751     *ELF-32*)
4752       HPUX_IA64_MODE="32"
4753       ;;
4754     *ELF-64*)
4755       HPUX_IA64_MODE="64"
4756       ;;
4757     esac
4758   fi
4759   rm -rf conftest*
4760   ;;
4761 *-*-irix6*)
4762   # Find out which ABI we are using.
4763   echo '#line __oline__ "configure"' > conftest.$ac_ext
4764   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4765   (eval $ac_compile) 2>&5
4766   ac_status=$?
4767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768   test $ac_status = 0; }; then
4769    if test "$lt_cv_prog_gnu_ld" = yes; then
4770     case `/usr/bin/file conftest.$ac_objext` in
4771     *32-bit*)
4772       LD="${LD-ld} -melf32bsmip"
4773       ;;
4774     *N32*)
4775       LD="${LD-ld} -melf32bmipn32"
4776       ;;
4777     *64-bit*)
4778       LD="${LD-ld} -melf64bmip"
4779       ;;
4780     esac
4781    else
4782     case `/usr/bin/file conftest.$ac_objext` in
4783     *32-bit*)
4784       LD="${LD-ld} -32"
4785       ;;
4786     *N32*)
4787       LD="${LD-ld} -n32"
4788       ;;
4789     *64-bit*)
4790       LD="${LD-ld} -64"
4791       ;;
4792     esac
4793    fi
4794   fi
4795   rm -rf conftest*
4796   ;;
4798 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4799   # Find out which ABI we are using.
4800   echo 'int i;' > conftest.$ac_ext
4801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4802   (eval $ac_compile) 2>&5
4803   ac_status=$?
4804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805   test $ac_status = 0; }; then
4806     case "`/usr/bin/file conftest.o`" in
4807     *32-bit*)
4808       case $host in
4809         x86_64-*linux*)
4810           LD="${LD-ld} -m elf_i386"
4811           ;;
4812         ppc64-*linux*|powerpc64-*linux*)
4813           LD="${LD-ld} -m elf32ppclinux"
4814           ;;
4815         s390x-*linux*)
4816           LD="${LD-ld} -m elf_s390"
4817           ;;
4818         sparc64-*linux*)
4819           LD="${LD-ld} -m elf32_sparc"
4820           ;;
4821       esac
4822       ;;
4823     *64-bit*)
4824       case $host in
4825         x86_64-*linux*)
4826           LD="${LD-ld} -m elf_x86_64"
4827           ;;
4828         ppc*-*linux*|powerpc*-*linux*)
4829           LD="${LD-ld} -m elf64ppc"
4830           ;;
4831         s390*-*linux*)
4832           LD="${LD-ld} -m elf64_s390"
4833           ;;
4834         sparc*-*linux*)
4835           LD="${LD-ld} -m elf64_sparc"
4836           ;;
4837       esac
4838       ;;
4839     esac
4840   fi
4841   rm -rf conftest*
4842   ;;
4844 *-*-sco3.2v5*)
4845   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4846   SAVE_CFLAGS="$CFLAGS"
4847   CFLAGS="$CFLAGS -belf"
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4849 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4850 if ${lt_cv_cc_needs_belf+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4863 main ()
4866   ;
4867   return 0;
4869 _ACEOF
4870 if ac_fn_c_try_link "$LINENO"; then :
4871   lt_cv_cc_needs_belf=yes
4872 else
4873   lt_cv_cc_needs_belf=no
4875 rm -f core conftest.err conftest.$ac_objext \
4876     conftest$ac_exeext conftest.$ac_ext
4877      ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4885 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4886   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4887     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4888     CFLAGS="$SAVE_CFLAGS"
4889   fi
4890   ;;
4892 esac
4894 need_locks="$enable_libtool_lock"
4897 ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4904 # On Suns, sometimes $CPP names a directory.
4905 if test -n "$CPP" && test -d "$CPP"; then
4906   CPP=
4908 if test -z "$CPP"; then
4909   if ${ac_cv_prog_CPP+:} false; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912       # Double quotes because CPP needs to be expanded
4913     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4914     do
4915       ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4918   # Use a header file that comes with gcc, so configuring glibc
4919   # with a fresh cross-compiler works.
4920   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921   # <limits.h> exists even on freestanding compilers.
4922   # On the NeXT, cc -E runs the code through the compiler's parser,
4923   # not just through cpp. "Syntax error" is here to catch this case.
4924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h.  */
4926 @%:@ifdef __STDC__
4927 @%:@ include <limits.h>
4928 @%:@else
4929 @%:@ include <assert.h>
4930 @%:@endif
4931                      Syntax error
4932 _ACEOF
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4934   
4935 else
4936   # Broken: fails on valid input.
4937 continue
4939 rm -f conftest.err conftest.i conftest.$ac_ext
4941   # OK, works on sane cases.  Now check whether nonexistent headers
4942   # can be detected and how.
4943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 @%:@include <ac_nonexistent.h>
4946 _ACEOF
4947 if ac_fn_c_try_cpp "$LINENO"; then :
4948   # Broken: success on invalid input.
4949 continue
4950 else
4951   # Passes both tests.
4952 ac_preproc_ok=:
4953 break
4955 rm -f conftest.err conftest.i conftest.$ac_ext
4957 done
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.i conftest.err conftest.$ac_ext
4960 if $ac_preproc_ok; then :
4961   break
4964     done
4965     ac_cv_prog_CPP=$CPP
4966   
4968   CPP=$ac_cv_prog_CPP
4969 else
4970   ac_cv_prog_CPP=$CPP
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4973 $as_echo "$CPP" >&6; }
4974 ac_preproc_ok=false
4975 for ac_c_preproc_warn_flag in '' yes
4977   # Use a header file that comes with gcc, so configuring glibc
4978   # with a fresh cross-compiler works.
4979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980   # <limits.h> exists even on freestanding compilers.
4981   # On the NeXT, cc -E runs the code through the compiler's parser,
4982   # not just through cpp. "Syntax error" is here to catch this case.
4983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h.  */
4985 @%:@ifdef __STDC__
4986 @%:@ include <limits.h>
4987 @%:@else
4988 @%:@ include <assert.h>
4989 @%:@endif
4990                      Syntax error
4991 _ACEOF
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993   
4994 else
4995   # Broken: fails on valid input.
4996 continue
4998 rm -f conftest.err conftest.i conftest.$ac_ext
5000   # OK, works on sane cases.  Now check whether nonexistent headers
5001   # can be detected and how.
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 @%:@include <ac_nonexistent.h>
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007   # Broken: success on invalid input.
5008 continue
5009 else
5010   # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5014 rm -f conftest.err conftest.i conftest.$ac_ext
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.i conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then :
5020   
5021 else
5022   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5024 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5025 See \`config.log' for more details" "$LINENO" 5; }
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5036 $as_echo_n "checking for ANSI C header files... " >&6; }
5037 if ${ac_cv_header_stdc+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h.  */
5042 #include <stdlib.h>
5043 #include <stdarg.h>
5044 #include <string.h>
5045 #include <float.h>
5048 main ()
5051   ;
5052   return 0;
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056   ac_cv_header_stdc=yes
5057 else
5058   ac_cv_header_stdc=no
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 if test $ac_cv_header_stdc = yes; then
5063   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h.  */
5066 #include <string.h>
5068 _ACEOF
5069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5070   $EGREP "memchr" >/dev/null 2>&1; then :
5071   
5072 else
5073   ac_cv_header_stdc=no
5075 rm -f conftest*
5079 if test $ac_cv_header_stdc = yes; then
5080   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h.  */
5083 #include <stdlib.h>
5085 _ACEOF
5086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087   $EGREP "free" >/dev/null 2>&1; then :
5088   
5089 else
5090   ac_cv_header_stdc=no
5092 rm -f conftest*
5096 if test $ac_cv_header_stdc = yes; then
5097   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5098   if test "$cross_compiling" = yes; then :
5099   :
5100 else
5101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h.  */
5103 #include <ctype.h>
5104 #include <stdlib.h>
5105 #if ((' ' & 0x0FF) == 0x020)
5106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5108 #else
5109 # define ISLOWER(c) \
5110                    (('a' <= (c) && (c) <= 'i') \
5111                      || ('j' <= (c) && (c) <= 'r') \
5112                      || ('s' <= (c) && (c) <= 'z'))
5113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5114 #endif
5116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5118 main ()
5120   int i;
5121   for (i = 0; i < 256; i++)
5122     if (XOR (islower (i), ISLOWER (i))
5123         || toupper (i) != TOUPPER (i))
5124       return 2;
5125   return 0;
5127 _ACEOF
5128 if ac_fn_c_try_run "$LINENO"; then :
5129   
5130 else
5131   ac_cv_header_stdc=no
5133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5134   conftest.$ac_objext conftest.beam conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5140 $as_echo "$ac_cv_header_stdc" >&6; }
5141 if test $ac_cv_header_stdc = yes; then
5142   
5143 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5149                   inttypes.h stdint.h unistd.h
5150 do :
5151   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5155   cat >>confdefs.h <<_ACEOF
5156 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157 _ACEOF
5161 done
5164 for ac_header in dlfcn.h
5165 do :
5166   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5167 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5168   cat >>confdefs.h <<_ACEOF
5169 @%:@define HAVE_DLFCN_H 1
5170 _ACEOF
5174 done
5176 ac_ext=cpp
5177 ac_cpp='$CXXCPP $CPPFLAGS'
5178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5181 if test -z "$CXX"; then
5182   if test -n "$CCC"; then
5183     CXX=$CCC
5184   else
5185     if test -n "$ac_tool_prefix"; then
5186   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5187   do
5188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_CXX+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   if test -n "$CXX"; then
5196   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203     for ac_exec_ext in '' $ac_executable_extensions; do
5204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210   done
5211 IFS=$as_save_IFS
5215 CXX=$ac_cv_prog_CXX
5216 if test -n "$CXX"; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5218 $as_echo "$CXX" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5225     test -n "$CXX" && break
5226   done
5228 if test -z "$CXX"; then
5229   ac_ct_CXX=$CXX
5230   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5232   # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy $ac_prog; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5237   $as_echo_n "(cached) " >&6
5238 else
5239   if test -n "$ac_ct_CXX"; then
5240   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249     ac_cv_prog_ac_ct_CXX="$ac_prog"
5250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254   done
5255 IFS=$as_save_IFS
5259 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5260 if test -n "$ac_ct_CXX"; then
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5262 $as_echo "$ac_ct_CXX" >&6; }
5263 else
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5269   test -n "$ac_ct_CXX" && break
5270 done
5272   if test "x$ac_ct_CXX" = x; then
5273     CXX="g++"
5274   else
5275     case $cross_compiling:$ac_tool_warned in
5276 yes:)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279 ac_tool_warned=yes ;;
5280 esac
5281     CXX=$ac_ct_CXX
5282   fi
5285   fi
5287 # Provide some information about the compiler.
5288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5289 set X $ac_compile
5290 ac_compiler=$2
5291 for ac_option in --version -v -V -qversion; do
5292   { { ac_try="$ac_compiler $ac_option >&5"
5293 case "(($ac_try" in
5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295   *) ac_try_echo=$ac_try;;
5296 esac
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5300   ac_status=$?
5301   if test -s conftest.err; then
5302     sed '10a\
5303 ... rest of stderr output deleted ...
5304          10q' conftest.err >conftest.er1
5305     cat conftest.er1 >&5
5306   fi
5307   rm -f conftest.er1 conftest.err
5308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309   test $ac_status = 0; }
5310 done
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5313 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5314 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h.  */
5321 main ()
5323 #ifndef __GNUC__
5324        choke me
5325 #endif
5327   ;
5328   return 0;
5330 _ACEOF
5331 if ac_fn_cxx_try_compile "$LINENO"; then :
5332   ac_compiler_gnu=yes
5333 else
5334   ac_compiler_gnu=no
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5341 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5342 if test $ac_compiler_gnu = yes; then
5343   GXX=yes
5344 else
5345   GXX=
5347 ac_test_CXXFLAGS=${CXXFLAGS+set}
5348 ac_save_CXXFLAGS=$CXXFLAGS
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5350 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5351 if ${ac_cv_prog_cxx_g+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5355    ac_cxx_werror_flag=yes
5356    ac_cv_prog_cxx_g=no
5357    CXXFLAGS="-g"
5358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h.  */
5362 main ()
5365   ;
5366   return 0;
5368 _ACEOF
5369 if ac_fn_cxx_try_compile "$LINENO"; then :
5370   ac_cv_prog_cxx_g=yes
5371 else
5372   CXXFLAGS=""
5373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h.  */
5377 main ()
5380   ;
5381   return 0;
5383 _ACEOF
5384 if ac_fn_cxx_try_compile "$LINENO"; then :
5385   
5386 else
5387   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5388          CXXFLAGS="-g"
5389          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h.  */
5393 main ()
5396   ;
5397   return 0;
5399 _ACEOF
5400 if ac_fn_cxx_try_compile "$LINENO"; then :
5401   ac_cv_prog_cxx_g=yes
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5411 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5412 if test "$ac_test_CXXFLAGS" = set; then
5413   CXXFLAGS=$ac_save_CXXFLAGS
5414 elif test $ac_cv_prog_cxx_g = yes; then
5415   if test "$GXX" = yes; then
5416     CXXFLAGS="-g -O2"
5417   else
5418     CXXFLAGS="-g"
5419   fi
5420 else
5421   if test "$GXX" = yes; then
5422     CXXFLAGS="-O2"
5423   else
5424     CXXFLAGS=
5425   fi
5427 ac_ext=cpp
5428 ac_cpp='$CXXCPP $CPPFLAGS'
5429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5433 depcc="$CXX"  am_compiler_list=
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5436 $as_echo_n "checking dependency style of $depcc... " >&6; }
5437 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5441   # We make a subdir and do the tests there.  Otherwise we can end up
5442   # making bogus files that we don't know about and never remove.  For
5443   # instance it was reported that on HP-UX the gcc test will end up
5444   # making a dummy file named `D' -- because `-MD' means `put the output
5445   # in D'.
5446   mkdir conftest.dir
5447   # Copy depcomp to subdir because otherwise we won't find it if we're
5448   # using a relative directory.
5449   cp "$am_depcomp" conftest.dir
5450   cd conftest.dir
5451   # We will build objects and dependencies in a subdirectory because
5452   # it helps to detect inapplicable dependency modes.  For instance
5453   # both Tru64's cc and ICC support -MD to output dependencies as a
5454   # side effect of compilation, but ICC will put the dependencies in
5455   # the current directory while Tru64 will put them in the object
5456   # directory.
5457   mkdir sub
5459   am_cv_CXX_dependencies_compiler_type=none
5460   if test "$am_compiler_list" = ""; then
5461      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5462   fi
5463   for depmode in $am_compiler_list; do
5464     # Setup a source with many dependencies, because some compilers
5465     # like to wrap large dependency lists on column 80 (with \), and
5466     # we should not choose a depcomp mode which is confused by this.
5467     #
5468     # We need to recreate these files for each test, as the compiler may
5469     # overwrite some of them when testing with obscure command lines.
5470     # This happens at least with the AIX C compiler.
5471     : > sub/conftest.c
5472     for i in 1 2 3 4 5 6; do
5473       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5474       : > sub/conftst$i.h
5475     done
5476     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5478     case $depmode in
5479     nosideeffect)
5480       # after this tag, mechanisms are not by side-effect, so they'll
5481       # only be used when explicitly requested
5482       if test "x$enable_dependency_tracking" = xyes; then
5483         continue
5484       else
5485         break
5486       fi
5487       ;;
5488     none) break ;;
5489     esac
5490     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5491     # mode.  It turns out that the SunPro C++ compiler does not properly
5492     # handle `-M -o', and we need to detect this.
5493     if depmode=$depmode \
5494        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5495        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5496        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5497          >/dev/null 2>conftest.err &&
5498        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5499        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5500        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5501       # icc doesn't choke on unknown options, it will just issue warnings
5502       # (even with -Werror).  So we grep stderr for any message
5503       # that says an option was ignored.
5504       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5505         am_cv_CXX_dependencies_compiler_type=$depmode
5506         break
5507       fi
5508     fi
5509   done
5511   cd ..
5512   rm -rf conftest.dir
5513 else
5514   am_cv_CXX_dependencies_compiler_type=none
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5519 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5520 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5524 if 
5525   test "x$enable_dependency_tracking" != xno \
5526   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5527   am__fastdepCXX_TRUE=
5528   am__fastdepCXX_FALSE='#'
5529 else
5530   am__fastdepCXX_TRUE='#'
5531   am__fastdepCXX_FALSE=
5535 ac_ext=cpp
5536 ac_cpp='$CXXCPP $CPPFLAGS'
5537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5542 if test -z "$CXXCPP"; then
5543   if ${ac_cv_prog_CXXCPP+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546       # Double quotes because CXXCPP needs to be expanded
5547     for CXXCPP in "$CXX -E" "/lib/cpp"
5548     do
5549       ac_preproc_ok=false
5550 for ac_cxx_preproc_warn_flag in '' yes
5552   # Use a header file that comes with gcc, so configuring glibc
5553   # with a fresh cross-compiler works.
5554   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555   # <limits.h> exists even on freestanding compilers.
5556   # On the NeXT, cc -E runs the code through the compiler's parser,
5557   # not just through cpp. "Syntax error" is here to catch this case.
5558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h.  */
5560 @%:@ifdef __STDC__
5561 @%:@ include <limits.h>
5562 @%:@else
5563 @%:@ include <assert.h>
5564 @%:@endif
5565                      Syntax error
5566 _ACEOF
5567 if ac_fn_cxx_try_cpp "$LINENO"; then :
5568   
5569 else
5570   # Broken: fails on valid input.
5571 continue
5573 rm -f conftest.err conftest.i conftest.$ac_ext
5575   # OK, works on sane cases.  Now check whether nonexistent headers
5576   # can be detected and how.
5577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h.  */
5579 @%:@include <ac_nonexistent.h>
5580 _ACEOF
5581 if ac_fn_cxx_try_cpp "$LINENO"; then :
5582   # Broken: success on invalid input.
5583 continue
5584 else
5585   # Passes both tests.
5586 ac_preproc_ok=:
5587 break
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5591 done
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.i conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then :
5595   break
5598     done
5599     ac_cv_prog_CXXCPP=$CXXCPP
5600   
5602   CXXCPP=$ac_cv_prog_CXXCPP
5603 else
5604   ac_cv_prog_CXXCPP=$CXXCPP
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5607 $as_echo "$CXXCPP" >&6; }
5608 ac_preproc_ok=false
5609 for ac_cxx_preproc_warn_flag in '' yes
5611   # Use a header file that comes with gcc, so configuring glibc
5612   # with a fresh cross-compiler works.
5613   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614   # <limits.h> exists even on freestanding compilers.
5615   # On the NeXT, cc -E runs the code through the compiler's parser,
5616   # not just through cpp. "Syntax error" is here to catch this case.
5617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h.  */
5619 @%:@ifdef __STDC__
5620 @%:@ include <limits.h>
5621 @%:@else
5622 @%:@ include <assert.h>
5623 @%:@endif
5624                      Syntax error
5625 _ACEOF
5626 if ac_fn_cxx_try_cpp "$LINENO"; then :
5627   
5628 else
5629   # Broken: fails on valid input.
5630 continue
5632 rm -f conftest.err conftest.i conftest.$ac_ext
5634   # OK, works on sane cases.  Now check whether nonexistent headers
5635   # can be detected and how.
5636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h.  */
5638 @%:@include <ac_nonexistent.h>
5639 _ACEOF
5640 if ac_fn_cxx_try_cpp "$LINENO"; then :
5641   # Broken: success on invalid input.
5642 continue
5643 else
5644   # Passes both tests.
5645 ac_preproc_ok=:
5646 break
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5650 done
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.i conftest.err conftest.$ac_ext
5653 if $ac_preproc_ok; then :
5654   
5655 else
5656   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5659 See \`config.log' for more details" "$LINENO" 5; }
5662 ac_ext=cpp
5663 ac_cpp='$CXXCPP $CPPFLAGS'
5664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5669 ac_ext=f
5670 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5671 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5673 if test -n "$ac_tool_prefix"; then
5674   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5675   do
5676     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_F77+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$F77"; then
5684   ac_cv_prog_F77="$F77" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5703 F77=$ac_cv_prog_F77
5704 if test -n "$F77"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5706 $as_echo "$F77" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713     test -n "$F77" && break
5714   done
5716 if test -z "$F77"; then
5717   ac_ct_F77=$F77
5718   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5720   # Extract the first word of "$ac_prog", so it can be a program name with args.
5721 set dummy $ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   if test -n "$ac_ct_F77"; then
5728   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735     for ac_exec_ext in '' $ac_executable_extensions; do
5736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737     ac_cv_prog_ac_ct_F77="$ac_prog"
5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739     break 2
5740   fi
5741 done
5742   done
5743 IFS=$as_save_IFS
5747 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5748 if test -n "$ac_ct_F77"; then
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5750 $as_echo "$ac_ct_F77" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5757   test -n "$ac_ct_F77" && break
5758 done
5760   if test "x$ac_ct_F77" = x; then
5761     F77=""
5762   else
5763     case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769     F77=$ac_ct_F77
5770   fi
5774 # Provide some information about the compiler.
5775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5776 set X $ac_compile
5777 ac_compiler=$2
5778 for ac_option in --version -v -V -qversion; do
5779   { { ac_try="$ac_compiler $ac_option >&5"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785 $as_echo "$ac_try_echo"; } >&5
5786   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5787   ac_status=$?
5788   if test -s conftest.err; then
5789     sed '10a\
5790 ... rest of stderr output deleted ...
5791          10q' conftest.err >conftest.er1
5792     cat conftest.er1 >&5
5793   fi
5794   rm -f conftest.er1 conftest.err
5795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796   test $ac_status = 0; }
5797 done
5798 rm -f a.out
5800 # If we don't use `.F' as extension, the preprocessor is not run on the
5801 # input file.  (Note that this only needs to work for GNU compilers.)
5802 ac_save_ext=$ac_ext
5803 ac_ext=F
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5805 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5806 if ${ac_cv_f77_compiler_gnu+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   cat > conftest.$ac_ext <<_ACEOF
5810       program main
5811 #ifndef __GNUC__
5812        choke me
5813 #endif
5815       end
5816 _ACEOF
5817 if ac_fn_f77_try_compile "$LINENO"; then :
5818   ac_compiler_gnu=yes
5819 else
5820   ac_compiler_gnu=no
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5827 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5828 ac_ext=$ac_save_ext
5829 ac_test_FFLAGS=${FFLAGS+set}
5830 ac_save_FFLAGS=$FFLAGS
5831 FFLAGS=
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5833 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5834 if ${ac_cv_prog_f77_g+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   FFLAGS=-g
5838 cat > conftest.$ac_ext <<_ACEOF
5839       program main
5841       end
5842 _ACEOF
5843 if ac_fn_f77_try_compile "$LINENO"; then :
5844   ac_cv_prog_f77_g=yes
5845 else
5846   ac_cv_prog_f77_g=no
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5852 $as_echo "$ac_cv_prog_f77_g" >&6; }
5853 if test "$ac_test_FFLAGS" = set; then
5854   FFLAGS=$ac_save_FFLAGS
5855 elif test $ac_cv_prog_f77_g = yes; then
5856   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5857     FFLAGS="-g -O2"
5858   else
5859     FFLAGS="-g"
5860   fi
5861 else
5862   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5863     FFLAGS="-O2"
5864   else
5865     FFLAGS=
5866   fi
5869 if test $ac_compiler_gnu = yes; then
5870   G77=yes
5871 else
5872   G77=
5874 ac_ext=c
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5884 # find the maximum length of command line arguments
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5886 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5887 if ${lt_cv_sys_max_cmd_len+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890     i=0
5891   testring="ABCD"
5893   case $build_os in
5894   msdosdjgpp*)
5895     # On DJGPP, this test can blow up pretty badly due to problems in libc
5896     # (any single argument exceeding 2000 bytes causes a buffer overrun
5897     # during glob expansion).  Even if it were fixed, the result of this
5898     # check would be larger than it should be.
5899     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5900     ;;
5902   gnu*)
5903     # Under GNU Hurd, this test is not required because there is
5904     # no limit to the length of command line arguments.
5905     # Libtool will interpret -1 as no limit whatsoever
5906     lt_cv_sys_max_cmd_len=-1;
5907     ;;
5909   cygwin* | mingw*)
5910     # On Win9x/ME, this test blows up -- it succeeds, but takes
5911     # about 5 minutes as the teststring grows exponentially.
5912     # Worse, since 9x/ME are not pre-emptively multitasking,
5913     # you end up with a "frozen" computer, even though with patience
5914     # the test eventually succeeds (with a max line length of 256k).
5915     # Instead, let's just punt: use the minimum linelength reported by
5916     # all of the supported platforms: 8192 (on NT/2K/XP).
5917     lt_cv_sys_max_cmd_len=8192;
5918     ;;
5920   amigaos*)
5921     # On AmigaOS with pdksh, this test takes hours, literally.
5922     # So we just punt and use a minimum line length of 8192.
5923     lt_cv_sys_max_cmd_len=8192;
5924     ;;
5926  *)
5927     # If test is not a shell built-in, we'll probably end up computing a
5928     # maximum length that is only half of the actual maximum length, but
5929     # we can't tell.
5930     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5931                = "XX$testring") >/dev/null 2>&1 &&
5932             new_result=`expr "X$testring" : ".*" 2>&1` &&
5933             lt_cv_sys_max_cmd_len=$new_result &&
5934             test $i != 17 # 1/2 MB should be enough
5935     do
5936       i=`expr $i + 1`
5937       testring=$testring$testring
5938     done
5939     testring=
5940     # Add a significant safety factor because C++ compilers can tack on massive
5941     # amounts of additional arguments before passing them to the linker.
5942     # It appears as though 1/2 is a usable value.
5943     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5944     ;;
5945   esac
5949 if test -n $lt_cv_sys_max_cmd_len ; then
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5951 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5952 else
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5954 $as_echo "none" >&6; }
5960 # Check for command to grab the raw symbol name followed by C symbol from nm.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5962 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5963 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   
5967 # These are sane defaults that work on at least a few old systems.
5968 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5970 # Character class describing NM global symbol codes.
5971 symcode='[BCDEGRST]'
5973 # Regexp to match symbols that can be accessed directly from C.
5974 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5976 # Transform the above into a raw symbol and a C symbol.
5977 symxfrm='\1 \2\3 \3'
5979 # Transform an extracted symbol line into a proper C declaration
5980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5982 # Transform an extracted symbol line into symbol name and symbol address
5983 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5985 # Define system-specific variables.
5986 case $host_os in
5987 aix*)
5988   symcode='[BCDT]'
5989   ;;
5990 cygwin* | mingw* | pw32*)
5991   symcode='[ABCDGISTW]'
5992   ;;
5993 hpux*) # Its linker distinguishes data from code symbols
5994   if test "$host_cpu" = ia64; then
5995     symcode='[ABCDEGRST]'
5996   fi
5997   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5998   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5999   ;;
6000 irix* | nonstopux*)
6001   symcode='[BCDEGRST]'
6002   ;;
6003 osf*)
6004   symcode='[BCDEGQRST]'
6005   ;;
6006 solaris* | sysv5*)
6007   symcode='[BDRT]'
6008   ;;
6009 sysv4)
6010   symcode='[DFNSTU]'
6011   ;;
6012 esac
6014 # Handle CRLF in mingw tool chain
6015 opt_cr=
6016 case $build_os in
6017 mingw*)
6018   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6019   ;;
6020 esac
6022 # If we're using GNU nm, then use its standard symbol codes.
6023 case `$NM -V 2>&1` in
6024 *GNU* | *'with BFD'*)
6025   symcode='[ABCDGIRSTW]' ;;
6026 esac
6028 # Try without a prefix undercore, then with it.
6029 for ac_symprfx in "" "_"; do
6031   # Write the raw and C identifiers.
6032   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6034   # Check to see that the pipe works correctly.
6035   pipe_works=no
6037   rm -f conftest*
6038   cat > conftest.$ac_ext <<EOF
6039 #ifdef __cplusplus
6040 extern "C" {
6041 #endif
6042 char nm_test_var;
6043 void nm_test_func(){}
6044 #ifdef __cplusplus
6046 #endif
6047 int main(){nm_test_var='a';nm_test_func();return(0);}
6050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051   (eval $ac_compile) 2>&5
6052   ac_status=$?
6053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054   test $ac_status = 0; }; then
6055     # Now try to grab the symbols.
6056     nlist=conftest.nm
6057     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6058   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6059   ac_status=$?
6060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061   test $ac_status = 0; } && test -s "$nlist"; then
6062       # Try sorting and uniquifying the output.
6063       if sort "$nlist" | uniq > "$nlist"T; then
6064         mv -f "$nlist"T "$nlist"
6065       else
6066         rm -f "$nlist"T
6067       fi
6069       # Make sure that we snagged all the symbols we need.
6070       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6071         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6072           cat <<EOF > conftest.$ac_ext
6073 #ifdef __cplusplus
6074 extern "C" {
6075 #endif
6078           # Now generate the symbol file.
6079           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6081           cat <<EOF >> conftest.$ac_ext
6082 #if defined (__STDC__) && __STDC__
6083 # define lt_ptr_t void *
6084 #else
6085 # define lt_ptr_t char *
6086 # define const
6087 #endif
6089 /* The mapping between symbol names and symbols. */
6090 const struct {
6091   const char *name;
6092   lt_ptr_t address;
6094 lt_preloaded_symbols[] =
6097           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6098           cat <<\EOF >> conftest.$ac_ext
6099   {0, (lt_ptr_t) 0}
6102 #ifdef __cplusplus
6104 #endif
6106           # Now try linking the two files.
6107           mv conftest.$ac_objext conftstm.$ac_objext
6108           lt_save_LIBS="$LIBS"
6109           lt_save_CFLAGS="$CFLAGS"
6110           LIBS="conftstm.$ac_objext"
6111           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113   (eval $ac_link) 2>&5
6114   ac_status=$?
6115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6117             pipe_works=yes
6118           fi
6119           LIBS="$lt_save_LIBS"
6120           CFLAGS="$lt_save_CFLAGS"
6121         else
6122           echo "cannot find nm_test_func in $nlist" >&5
6123         fi
6124       else
6125         echo "cannot find nm_test_var in $nlist" >&5
6126       fi
6127     else
6128       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6129     fi
6130   else
6131     echo "$progname: failed program was:" >&5
6132     cat conftest.$ac_ext >&5
6133   fi
6134   rm -f conftest* conftst*
6136   # Do not use the global_symbol_pipe unless it works.
6137   if test "$pipe_works" = yes; then
6138     break
6139   else
6140     lt_cv_sys_global_symbol_pipe=
6141   fi
6142 done
6146 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147   lt_cv_sys_global_symbol_to_cdecl=
6149 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151 $as_echo "failed" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154 $as_echo "ok" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6158 $as_echo_n "checking for objdir... " >&6; }
6159 if ${lt_cv_objdir+:} false; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   rm -f .libs 2>/dev/null
6163 mkdir .libs 2>/dev/null
6164 if test -d .libs; then
6165   lt_cv_objdir=.libs
6166 else
6167   # MS-DOS does not allow filenames that begin with a dot.
6168   lt_cv_objdir=_libs
6170 rmdir .libs 2>/dev/null
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6173 $as_echo "$lt_cv_objdir" >&6; }
6174 objdir=$lt_cv_objdir
6180 case $host_os in
6181 aix3*)
6182   # AIX sometimes has problems with the GCC collect2 program.  For some
6183   # reason, if we set the COLLECT_NAMES environment variable, the problems
6184   # vanish in a puff of smoke.
6185   if test "X${COLLECT_NAMES+set}" != Xset; then
6186     COLLECT_NAMES=
6187     export COLLECT_NAMES
6188   fi
6189   ;;
6190 esac
6192 # Sed substitution that helps us do robust quoting.  It backslashifies
6193 # metacharacters that are still active within double-quoted strings.
6194 Xsed='sed -e s/^X//'
6195 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6197 # Same as above, but do not quote variable references.
6198 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6200 # Sed substitution to delay expansion of an escaped shell variable in a
6201 # double_quote_subst'ed string.
6202 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6204 # Sed substitution to avoid accidental globbing in evaled expressions
6205 no_glob_subst='s/\*/\\\*/g'
6207 # Constants:
6208 rm="rm -f"
6210 # Global variables:
6211 default_ofile=libtool
6212 can_build_shared=yes
6214 # All known linkers require a `.a' archive for static linking (except M$VC,
6215 # which needs '.lib').
6216 libext=a
6217 ltmain="$ac_aux_dir/ltmain.sh"
6218 ofile="$default_ofile"
6219 with_gnu_ld="$lt_cv_prog_gnu_ld"
6221 if test -n "$ac_tool_prefix"; then
6222   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}ar; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_AR+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   if test -n "$AR"; then
6230   ac_cv_prog_AR="$AR" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237     for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_prog_AR="${ac_tool_prefix}ar"
6240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244   done
6245 IFS=$as_save_IFS
6249 AR=$ac_cv_prog_AR
6250 if test -n "$AR"; then
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6252 $as_echo "$AR" >&6; }
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6260 if test -z "$ac_cv_prog_AR"; then
6261   ac_ct_AR=$AR
6262   # Extract the first word of "ar", so it can be a program name with args.
6263 set dummy ar; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   if test -n "$ac_ct_AR"; then
6270   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277     for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_prog_ac_ct_AR="ar"
6280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284   done
6285 IFS=$as_save_IFS
6289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6290 if test -n "$ac_ct_AR"; then
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6292 $as_echo "$ac_ct_AR" >&6; }
6293 else
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6298   if test "x$ac_ct_AR" = x; then
6299     AR="false"
6300   else
6301     case $cross_compiling:$ac_tool_warned in
6302 yes:)
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6306 esac
6307     AR=$ac_ct_AR
6308   fi
6309 else
6310   AR="$ac_cv_prog_AR"
6313 if test -n "$ac_tool_prefix"; then
6314   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_RANLIB+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$RANLIB"; then
6322   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329     for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336   done
6337 IFS=$as_save_IFS
6341 RANLIB=$ac_cv_prog_RANLIB
6342 if test -n "$RANLIB"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6344 $as_echo "$RANLIB" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6352 if test -z "$ac_cv_prog_RANLIB"; then
6353   ac_ct_RANLIB=$RANLIB
6354   # Extract the first word of "ranlib", so it can be a program name with args.
6355 set dummy ranlib; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   if test -n "$ac_ct_RANLIB"; then
6362   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369     for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_prog_ac_ct_RANLIB="ranlib"
6372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376   done
6377 IFS=$as_save_IFS
6381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382 if test -n "$ac_ct_RANLIB"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6384 $as_echo "$ac_ct_RANLIB" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6390   if test "x$ac_ct_RANLIB" = x; then
6391     RANLIB=":"
6392   else
6393     case $cross_compiling:$ac_tool_warned in
6394 yes:)
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6398 esac
6399     RANLIB=$ac_ct_RANLIB
6400   fi
6401 else
6402   RANLIB="$ac_cv_prog_RANLIB"
6405 if test -n "$ac_tool_prefix"; then
6406   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$STRIP"; then
6414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_STRIP"; then
6445   ac_ct_STRIP=$STRIP
6446   # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$ac_ct_STRIP"; then
6454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_ac_ct_STRIP="strip"
6464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468   done
6469 IFS=$as_save_IFS
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6482   if test "x$ac_ct_STRIP" = x; then
6483     STRIP=":"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     STRIP=$ac_ct_STRIP
6492   fi
6493 else
6494   STRIP="$ac_cv_prog_STRIP"
6498 old_CC="$CC"
6499 old_CFLAGS="$CFLAGS"
6501 # Set sane defaults for various variables
6502 test -z "$AR" && AR=ar
6503 test -z "$AR_FLAGS" && AR_FLAGS=cru
6504 test -z "$AS" && AS=as
6505 test -z "$CC" && CC=cc
6506 test -z "$LTCC" && LTCC=$CC
6507 test -z "$DLLTOOL" && DLLTOOL=dlltool
6508 test -z "$LD" && LD=ld
6509 test -z "$LN_S" && LN_S="ln -s"
6510 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6511 test -z "$NM" && NM=nm
6512 test -z "$SED" && SED=sed
6513 test -z "$OBJDUMP" && OBJDUMP=objdump
6514 test -z "$RANLIB" && RANLIB=:
6515 test -z "$STRIP" && STRIP=:
6516 test -z "$ac_objext" && ac_objext=o
6518 # Determine commands to create old-style static archives.
6519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6520 old_postinstall_cmds='chmod 644 $oldlib'
6521 old_postuninstall_cmds=
6523 if test -n "$RANLIB"; then
6524   case $host_os in
6525   openbsd*)
6526     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6527     ;;
6528   *)
6529     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6530     ;;
6531   esac
6532   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6535 # Only perform the check for file, if the check method requires it
6536 case $deplibs_check_method in
6537 file_magic*)
6538   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6540 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   case $MAGIC_CMD in
6545 [\\/*] |  ?:[\\/]*)
6546   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6547   ;;
6549   lt_save_MAGIC_CMD="$MAGIC_CMD"
6550   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6552   for ac_dir in $ac_dummy; do
6553     IFS="$lt_save_ifs"
6554     test -z "$ac_dir" && ac_dir=.
6555     if test -f $ac_dir/${ac_tool_prefix}file; then
6556       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6557       if test -n "$file_magic_test_file"; then
6558         case $deplibs_check_method in
6559         "file_magic "*)
6560           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6561           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6562           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6563             $EGREP "$file_magic_regex" > /dev/null; then
6564             :
6565           else
6566             cat <<EOF 1>&2
6568 *** Warning: the command libtool uses to detect shared libraries,
6569 *** $file_magic_cmd, produces output that libtool cannot recognize.
6570 *** The result is that libtool may fail to recognize shared libraries
6571 *** as such.  This will affect the creation of libtool libraries that
6572 *** depend on shared libraries, but programs linked with such libtool
6573 *** libraries will work regardless of this problem.  Nevertheless, you
6574 *** may want to report the problem to your system manager and/or to
6575 *** bug-libtool@gnu.org
6578           fi ;;
6579         esac
6580       fi
6581       break
6582     fi
6583   done
6584   IFS="$lt_save_ifs"
6585   MAGIC_CMD="$lt_save_MAGIC_CMD"
6586   ;;
6587 esac
6590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6591 if test -n "$MAGIC_CMD"; then
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6593 $as_echo "$MAGIC_CMD" >&6; }
6594 else
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6599 if test -z "$lt_cv_path_MAGIC_CMD"; then
6600   if test -n "$ac_tool_prefix"; then
6601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6602 $as_echo_n "checking for file... " >&6; }
6603 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   case $MAGIC_CMD in
6607 [\\/*] |  ?:[\\/]*)
6608   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6609   ;;
6611   lt_save_MAGIC_CMD="$MAGIC_CMD"
6612   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6613   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6614   for ac_dir in $ac_dummy; do
6615     IFS="$lt_save_ifs"
6616     test -z "$ac_dir" && ac_dir=.
6617     if test -f $ac_dir/file; then
6618       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6619       if test -n "$file_magic_test_file"; then
6620         case $deplibs_check_method in
6621         "file_magic "*)
6622           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6623           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6624           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6625             $EGREP "$file_magic_regex" > /dev/null; then
6626             :
6627           else
6628             cat <<EOF 1>&2
6630 *** Warning: the command libtool uses to detect shared libraries,
6631 *** $file_magic_cmd, produces output that libtool cannot recognize.
6632 *** The result is that libtool may fail to recognize shared libraries
6633 *** as such.  This will affect the creation of libtool libraries that
6634 *** depend on shared libraries, but programs linked with such libtool
6635 *** libraries will work regardless of this problem.  Nevertheless, you
6636 *** may want to report the problem to your system manager and/or to
6637 *** bug-libtool@gnu.org
6640           fi ;;
6641         esac
6642       fi
6643       break
6644     fi
6645   done
6646   IFS="$lt_save_ifs"
6647   MAGIC_CMD="$lt_save_MAGIC_CMD"
6648   ;;
6649 esac
6652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653 if test -n "$MAGIC_CMD"; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6655 $as_echo "$MAGIC_CMD" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6661   else
6662     MAGIC_CMD=:
6663   fi
6666   fi
6667   ;;
6668 esac
6670 enable_dlopen=no
6671 enable_win32_dll=no
6673 @%:@ Check whether --enable-libtool-lock was given.
6674 if test "${enable_libtool_lock+set}" = set; then :
6675   enableval=$enable_libtool_lock; 
6678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6681 @%:@ Check whether --with-pic was given.
6682 if test "${with_pic+set}" = set; then :
6683   withval=$with_pic; pic_mode="$withval"
6684 else
6685   pic_mode=default
6688 test -z "$pic_mode" && pic_mode=default
6690 # Use C for the default configuration in the libtool script
6691 tagname=
6692 lt_save_CC="$CC"
6693 ac_ext=c
6694 ac_cpp='$CPP $CPPFLAGS'
6695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6700 # Source file extension for C test sources.
6701 ac_ext=c
6703 # Object file extension for compiled C test sources.
6704 objext=o
6705 objext=$objext
6707 # Code to be used in simple compile tests
6708 lt_simple_compile_test_code="int some_variable = 0;\n"
6710 # Code to be used in simple link tests
6711 lt_simple_link_test_code='int main(){return(0);}\n'
6714 # If no C compiler was specified, use CC.
6715 LTCC=${LTCC-"$CC"}
6717 # Allow CC to be a program name with arguments.
6718 compiler=$CC
6722 # Check for any special shared library compilation flags.
6724 lt_prog_cc_shlib=
6725 if test "$GCC" = no; then
6726   case $host_os in
6727   sco3.2v5*)
6728     lt_prog_cc_shlib='-belf'
6729     ;;
6730   esac
6732 if test -n "$lt_prog_cc_shlib"; then
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6734 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6735   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6736   else
6737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6738 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6739     lt_cv_prog_cc_can_build_shared=no
6740   fi
6745 # Check to make sure the static flag actually works.
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6748 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6749 if ${lt_prog_compiler_static_works+:} false; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   lt_prog_compiler_static_works=no
6753    save_LDFLAGS="$LDFLAGS"
6754    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6755    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6756    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6757      # The compiler can only warn and ignore the option if not recognized
6758      # So say no if there are warnings
6759      if test -s conftest.err; then
6760        # Append any errors to the config.log.
6761        cat conftest.err 1>&5
6762      else
6763        lt_prog_compiler_static_works=yes
6764      fi
6765    fi
6766    $rm conftest*
6767    LDFLAGS="$save_LDFLAGS"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6771 $as_echo "$lt_prog_compiler_static_works" >&6; }
6773 if test x"$lt_prog_compiler_static_works" = xyes; then
6774     :
6775 else
6776     lt_prog_compiler_static=
6782 lt_prog_compiler_no_builtin_flag=
6784 if test "$GCC" = yes; then
6785   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6787   
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6789 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6790 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   lt_cv_prog_compiler_rtti_exceptions=no
6794   ac_outfile=conftest.$ac_objext
6795    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6796    lt_compiler_flag="-fno-rtti -fno-exceptions"
6797    # Insert the option either (1) after the last *FLAGS variable, or
6798    # (2) before a word containing "conftest.", or (3) at the end.
6799    # Note that $ac_compile itself does not contain backslashes and begins
6800    # with a dollar sign (not a hyphen), so the echo should work correctly.
6801    # The option is referenced via a variable to avoid confusing sed.
6802    lt_compile=`echo "$ac_compile" | $SED \
6803    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6805    -e 's:$: $lt_compiler_flag:'`
6806    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6807    (eval "$lt_compile" 2>conftest.err)
6808    ac_status=$?
6809    cat conftest.err >&5
6810    echo "$as_me:__oline__: \$? = $ac_status" >&5
6811    if (exit $ac_status) && test -s "$ac_outfile"; then
6812      # The compiler can only warn and ignore the option if not recognized
6813      # So say no if there are warnings
6814      if test ! -s conftest.err; then
6815        lt_cv_prog_compiler_rtti_exceptions=yes
6816      fi
6817    fi
6818    $rm conftest*
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6822 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6824 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6825     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6826 else
6827     :
6832 lt_prog_compiler_wl=
6833 lt_prog_compiler_pic=
6834 lt_prog_compiler_static=
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6839   if test "$GCC" = yes; then
6840     lt_prog_compiler_wl='-Wl,'
6841     lt_prog_compiler_static='-static'
6843     case $host_os in
6844       aix*)
6845       # All AIX code is PIC.
6846       if test "$host_cpu" = ia64; then
6847         # AIX 5 now supports IA64 processor
6848         lt_prog_compiler_static='-Bstatic'
6849       fi
6850       ;;
6852     amigaos*)
6853       # FIXME: we need at least 68020 code to build shared libraries, but
6854       # adding the `-m68020' flag to GCC prevents building anything better,
6855       # like `-m68040'.
6856       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6857       ;;
6859     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6860       # PIC is the default for these OSes.
6861       ;;
6863     mingw* | pw32* | os2*)
6864       # This hack is so that the source file can tell whether it is being
6865       # built for inclusion in a dll (and should export symbols for example).
6866       lt_prog_compiler_pic='-DDLL_EXPORT'
6867       ;;
6869     darwin* | rhapsody*)
6870       # PIC is the default on this platform
6871       # Common symbols not allowed in MH_DYLIB files
6872       lt_prog_compiler_pic='-fno-common'
6873       ;;
6875     msdosdjgpp*)
6876       # Just because we use GCC doesn't mean we suddenly get shared libraries
6877       # on systems that don't support them.
6878       lt_prog_compiler_can_build_shared=no
6879       enable_shared=no
6880       ;;
6882     sysv4*MP*)
6883       if test -d /usr/nec; then
6884         lt_prog_compiler_pic=-Kconform_pic
6885       fi
6886       ;;
6888     hpux*)
6889       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6890       # not for PA HP-UX.
6891       case "$host_cpu" in
6892       hppa*64*|ia64*)
6893         # +Z the default
6894         ;;
6895       *)
6896         lt_prog_compiler_pic='-fPIC'
6897         ;;
6898       esac
6899       ;;
6901     *)
6902       lt_prog_compiler_pic='-fPIC'
6903       ;;
6904     esac
6905   else
6906     # PORTME Check for flag to pass linker flags through the system compiler.
6907     case $host_os in
6908     aix*)
6909       lt_prog_compiler_wl='-Wl,'
6910       if test "$host_cpu" = ia64; then
6911         # AIX 5 now supports IA64 processor
6912         lt_prog_compiler_static='-Bstatic'
6913       else
6914         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6915       fi
6916       ;;
6918     mingw* | pw32* | os2*)
6919       # This hack is so that the source file can tell whether it is being
6920       # built for inclusion in a dll (and should export symbols for example).
6921       lt_prog_compiler_pic='-DDLL_EXPORT'
6922       ;;
6924     hpux9* | hpux10* | hpux11*)
6925       lt_prog_compiler_wl='-Wl,'
6926       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6927       # not for PA HP-UX.
6928       case "$host_cpu" in
6929       hppa*64*|ia64*)
6930         # +Z the default
6931         ;;
6932       *)
6933         lt_prog_compiler_pic='+Z'
6934         ;;
6935       esac
6936       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6937       lt_prog_compiler_static='${wl}-a ${wl}archive'
6938       ;;
6940     irix5* | irix6* | nonstopux*)
6941       lt_prog_compiler_wl='-Wl,'
6942       # PIC (with -KPIC) is the default.
6943       lt_prog_compiler_static='-non_shared'
6944       ;;
6946     newsos6)
6947       lt_prog_compiler_pic='-KPIC'
6948       lt_prog_compiler_static='-Bstatic'
6949       ;;
6951     linux*)
6952       case $CC in
6953       icc* | ecc*)
6954         lt_prog_compiler_wl='-Wl,'
6955         lt_prog_compiler_pic='-KPIC'
6956         lt_prog_compiler_static='-static'
6957         ;;
6958       ccc*)
6959         lt_prog_compiler_wl='-Wl,'
6960         # All Alpha code is PIC.
6961         lt_prog_compiler_static='-non_shared'
6962         ;;
6963       esac
6964       ;;
6966     osf3* | osf4* | osf5*)
6967       lt_prog_compiler_wl='-Wl,'
6968       # All OSF/1 code is PIC.
6969       lt_prog_compiler_static='-non_shared'
6970       ;;
6972     sco3.2v5*)
6973       lt_prog_compiler_pic='-Kpic'
6974       lt_prog_compiler_static='-dn'
6975       ;;
6977     solaris*)
6978       lt_prog_compiler_wl='-Wl,'
6979       lt_prog_compiler_pic='-KPIC'
6980       lt_prog_compiler_static='-Bstatic'
6981       ;;
6983     sunos4*)
6984       lt_prog_compiler_wl='-Qoption ld '
6985       lt_prog_compiler_pic='-PIC'
6986       lt_prog_compiler_static='-Bstatic'
6987       ;;
6989     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6990       lt_prog_compiler_wl='-Wl,'
6991       lt_prog_compiler_pic='-KPIC'
6992       lt_prog_compiler_static='-Bstatic'
6993       ;;
6995     sysv4*MP*)
6996       if test -d /usr/nec ;then
6997         lt_prog_compiler_pic='-Kconform_pic'
6998         lt_prog_compiler_static='-Bstatic'
6999       fi
7000       ;;
7002     uts4*)
7003       lt_prog_compiler_pic='-pic'
7004       lt_prog_compiler_static='-Bstatic'
7005       ;;
7007     *)
7008       lt_prog_compiler_can_build_shared=no
7009       ;;
7010     esac
7011   fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7014 $as_echo "$lt_prog_compiler_pic" >&6; }
7017 # Check to make sure the PIC flag actually works.
7019 if test -n "$lt_prog_compiler_pic"; then
7020   
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7022 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7023 if ${lt_prog_compiler_pic_works+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   lt_prog_compiler_pic_works=no
7027   ac_outfile=conftest.$ac_objext
7028    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7029    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7030    # Insert the option either (1) after the last *FLAGS variable, or
7031    # (2) before a word containing "conftest.", or (3) at the end.
7032    # Note that $ac_compile itself does not contain backslashes and begins
7033    # with a dollar sign (not a hyphen), so the echo should work correctly.
7034    # The option is referenced via a variable to avoid confusing sed.
7035    lt_compile=`echo "$ac_compile" | $SED \
7036    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038    -e 's:$: $lt_compiler_flag:'`
7039    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7040    (eval "$lt_compile" 2>conftest.err)
7041    ac_status=$?
7042    cat conftest.err >&5
7043    echo "$as_me:__oline__: \$? = $ac_status" >&5
7044    if (exit $ac_status) && test -s "$ac_outfile"; then
7045      # The compiler can only warn and ignore the option if not recognized
7046      # So say no if there are warnings
7047      if test ! -s conftest.err; then
7048        lt_prog_compiler_pic_works=yes
7049      fi
7050    fi
7051    $rm conftest*
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7055 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7057 if test x"$lt_prog_compiler_pic_works" = xyes; then
7058     case $lt_prog_compiler_pic in
7059      "" | " "*) ;;
7060      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7061      esac
7062 else
7063     lt_prog_compiler_pic=
7064      lt_prog_compiler_can_build_shared=no
7068 case "$host_os" in
7069   # For platforms which do not support PIC, -DPIC is meaningless:
7070   *djgpp*)
7071     lt_prog_compiler_pic=
7072     ;;
7073   *)
7074     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7075     ;;
7076 esac
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7080 if ${lt_cv_prog_compiler_c_o+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   lt_cv_prog_compiler_c_o=no
7084    $rm -r conftest 2>/dev/null
7085    mkdir conftest
7086    cd conftest
7087    mkdir out
7088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7090    lt_compiler_flag="-o out/conftest2.$ac_objext"
7091    # Insert the option either (1) after the last *FLAGS variable, or
7092    # (2) before a word containing "conftest.", or (3) at the end.
7093    # Note that $ac_compile itself does not contain backslashes and begins
7094    # with a dollar sign (not a hyphen), so the echo should work correctly.
7095    lt_compile=`echo "$ac_compile" | $SED \
7096    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098    -e 's:$: $lt_compiler_flag:'`
7099    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7100    (eval "$lt_compile" 2>out/conftest.err)
7101    ac_status=$?
7102    cat out/conftest.err >&5
7103    echo "$as_me:__oline__: \$? = $ac_status" >&5
7104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7105    then
7106      # The compiler can only warn and ignore the option if not recognized
7107      # So say no if there are warnings
7108      if test ! -s out/conftest.err; then
7109        lt_cv_prog_compiler_c_o=yes
7110      fi
7111    fi
7112    chmod u+w .
7113    $rm conftest*
7114    # SGI C++ compiler will create directory out/ii_files/ for
7115    # template instantiation
7116    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7117    $rm out/* && rmdir out
7118    cd ..
7119    rmdir conftest
7120    $rm conftest*
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7124 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7127 hard_links="nottested"
7128 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7129   # do not overwrite the value of need_locks provided by the user
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7131 $as_echo_n "checking if we can lock with hard links... " >&6; }
7132   hard_links=yes
7133   $rm conftest*
7134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7135   touch conftest.a
7136   ln conftest.a conftest.b 2>&5 || hard_links=no
7137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7139 $as_echo "$hard_links" >&6; }
7140   if test "$hard_links" = no; then
7141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7142 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7143     need_locks=warn
7144   fi
7145 else
7146   need_locks=no
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7152   runpath_var=
7153   allow_undefined_flag=
7154   enable_shared_with_static_runtimes=no
7155   archive_cmds=
7156   archive_expsym_cmds=
7157   old_archive_From_new_cmds=
7158   old_archive_from_expsyms_cmds=
7159   export_dynamic_flag_spec=
7160   whole_archive_flag_spec=
7161   thread_safe_flag_spec=
7162   hardcode_libdir_flag_spec=
7163   hardcode_libdir_flag_spec_ld=
7164   hardcode_libdir_separator=
7165   hardcode_direct=no
7166   hardcode_minus_L=no
7167   hardcode_shlibpath_var=unsupported
7168   link_all_deplibs=unknown
7169   hardcode_automatic=no
7170   module_cmds=
7171   module_expsym_cmds=
7172   always_export_symbols=no
7173   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7174   # include_expsyms should be a list of space-separated symbols to be *always*
7175   # included in the symbol list
7176   include_expsyms=
7177   # exclude_expsyms can be an extended regexp of symbols to exclude
7178   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7179   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7180   # as well as any symbol that contains `d'.
7181   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7182   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7183   # platforms (ab)use it in PIC code, but their linkers get confused if
7184   # the symbol is explicitly referenced.  Since portable code cannot
7185   # rely on this symbol name, it's probably fine to never include it in
7186   # preloaded symbol tables.
7187   extract_expsyms_cmds=
7189   case $host_os in
7190   cygwin* | mingw* | pw32*)
7191     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7192     # When not using gcc, we currently assume that we are using
7193     # Microsoft Visual C++.
7194     if test "$GCC" != yes; then
7195       with_gnu_ld=no
7196     fi
7197     ;;
7198   openbsd*)
7199     with_gnu_ld=no
7200     ;;
7201   esac
7203   ld_shlibs=yes
7204   if test "$with_gnu_ld" = yes; then
7205     # If archive_cmds runs LD, not CC, wlarc should be empty
7206     wlarc='${wl}'
7208     # See if GNU ld supports shared libraries.
7209     case $host_os in
7210     aix3* | aix4* | aix5*)
7211       # On AIX/PPC, the GNU linker is very broken
7212       if test "$host_cpu" != ia64; then
7213         ld_shlibs=no
7214         cat <<EOF 1>&2
7216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7217 *** to be unable to reliably create shared libraries on AIX.
7218 *** Therefore, libtool is disabling shared libraries support.  If you
7219 *** really care for shared libraries, you may want to modify your PATH
7220 *** so that a non-GNU linker is found, and then restart.
7223       fi
7224       ;;
7226     amigaos*)
7227       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)'
7228       hardcode_libdir_flag_spec='-L$libdir'
7229       hardcode_minus_L=yes
7231       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7232       # that the semantics of dynamic libraries on AmigaOS, at least up
7233       # to version 4, is to share data among multiple programs linked
7234       # with the same dynamic library.  Since this doesn't match the
7235       # behavior of shared libraries on other platforms, we can't use
7236       # them.
7237       ld_shlibs=no
7238       ;;
7240     beos*)
7241       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7242         allow_undefined_flag=unsupported
7243         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7244         # support --undefined.  This deserves some investigation.  FIXME
7245         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7246       else
7247         ld_shlibs=no
7248       fi
7249       ;;
7251     cygwin* | mingw* | pw32*)
7252       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7253       # as there is no search path for DLLs.
7254       hardcode_libdir_flag_spec='-L$libdir'
7255       allow_undefined_flag=unsupported
7256       always_export_symbols=no
7257       enable_shared_with_static_runtimes=yes
7258       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7260       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7261         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7262         # If the export-symbols file already is a .def file (1st line
7263         # is EXPORTS), use it as is; otherwise, prepend...
7264         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7265           cp $export_symbols $output_objdir/$soname.def;
7266         else
7267           echo EXPORTS > $output_objdir/$soname.def;
7268           cat $export_symbols >> $output_objdir/$soname.def;
7269         fi~
7270         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7271       else
7272         ld_shlibs=no
7273       fi
7274       ;;
7276     netbsd* | knetbsd*-gnu)
7277       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7279         wlarc=
7280       else
7281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7282         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7283       fi
7284       ;;
7286     solaris* | sysv5*)
7287       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7288         ld_shlibs=no
7289         cat <<EOF 1>&2
7291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7292 *** create shared libraries on Solaris systems.  Therefore, libtool
7293 *** is disabling shared libraries support.  We urge you to upgrade GNU
7294 *** binutils to release 2.9.1 or newer.  Another option is to modify
7295 *** your PATH or compiler configuration so that the native linker is
7296 *** used, and then restart.
7299       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7300         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7301         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7302       else
7303         ld_shlibs=no
7304       fi
7305       ;;
7307     sunos4*)
7308       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7309       wlarc=
7310       hardcode_direct=yes
7311       hardcode_shlibpath_var=no
7312       ;;
7314   linux*)
7315     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7316         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317         archive_cmds="$tmp_archive_cmds"
7318       supports_anon_versioning=no
7319       case `$LD -v 2>/dev/null` in
7320         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7321         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7322         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7323         *\ 2.11.*) ;; # other 2.11 versions
7324         *) supports_anon_versioning=yes ;;
7325       esac
7326       if test $supports_anon_versioning = yes; then
7327         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7329 $echo "local: *; };" >> $output_objdir/$libname.ver~
7330         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7331       else
7332         archive_expsym_cmds="$tmp_archive_cmds"
7333       fi
7334     else
7335       ld_shlibs=no
7336     fi
7337     ;;
7339     *)
7340       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7341         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7342         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7343       else
7344         ld_shlibs=no
7345       fi
7346       ;;
7347     esac
7349     if test "$ld_shlibs" = yes; then
7350       runpath_var=LD_RUN_PATH
7351       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7352       export_dynamic_flag_spec='${wl}--export-dynamic'
7353       # ancient GNU ld didn't support --whole-archive et. al.
7354       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7355         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7356       else
7357         whole_archive_flag_spec=
7358       fi
7359     fi
7360   else
7361     # PORTME fill in a description of your system's linker (not GNU ld)
7362     case $host_os in
7363     aix3*)
7364       allow_undefined_flag=unsupported
7365       always_export_symbols=yes
7366       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'
7367       # Note: this linker hardcodes the directories in LIBPATH if there
7368       # are no directories specified by -L.
7369       hardcode_minus_L=yes
7370       if test "$GCC" = yes && test -z "$link_static_flag"; then
7371         # Neither direct hardcoding nor static linking is supported with a
7372         # broken collect2.
7373         hardcode_direct=unsupported
7374       fi
7375       ;;
7377     aix4* | aix5*)
7378       if test "$host_cpu" = ia64; then
7379         # On IA64, the linker does run time linking by default, so we don't
7380         # have to do anything special.
7381         aix_use_runtimelinking=no
7382         exp_sym_flag='-Bexport'
7383         no_entry_flag=""
7384       else
7385         # If we're using GNU nm, then we don't want the "-C" option.
7386         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7387         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7388           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7389         else
7390           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'
7391         fi
7392         aix_use_runtimelinking=no
7394         # Test if we are trying to use run time linking or normal
7395         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7396         # need to do runtime linking.
7397         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7398           for ld_flag in $LDFLAGS; do
7399           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7400             aix_use_runtimelinking=yes
7401             break
7402           fi
7403           done
7404         esac
7406         exp_sym_flag='-bexport'
7407         no_entry_flag='-bnoentry'
7408       fi
7410       # When large executables or shared objects are built, AIX ld can
7411       # have problems creating the table of contents.  If linking a library
7412       # or program results in "error TOC overflow" add -mminimal-toc to
7413       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7414       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7416       archive_cmds=''
7417       hardcode_direct=yes
7418       hardcode_libdir_separator=':'
7419       link_all_deplibs=yes
7421       if test "$GCC" = yes; then
7422         case $host_os in aix4.012|aix4.012.*)
7423         # We only want to do this on AIX 4.2 and lower, the check
7424         # below for broken collect2 doesn't work under 4.3+
7425           collect2name=`${CC} -print-prog-name=collect2`
7426           if test -f "$collect2name" && \
7427            strings "$collect2name" | grep resolve_lib_name >/dev/null
7428           then
7429           # We have reworked collect2
7430           hardcode_direct=yes
7431           else
7432           # We have old collect2
7433           hardcode_direct=unsupported
7434           # It fails to find uninstalled libraries when the uninstalled
7435           # path is not listed in the libpath.  Setting hardcode_minus_L
7436           # to unsupported forces relinking
7437           hardcode_minus_L=yes
7438           hardcode_libdir_flag_spec='-L$libdir'
7439           hardcode_libdir_separator=
7440           fi
7441         esac
7442         shared_flag='-shared'
7443       else
7444         # not using gcc
7445         if test "$host_cpu" = ia64; then
7446         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7447         # chokes on -Wl,-G. The following line is correct:
7448           shared_flag='-G'
7449         else
7450         if test "$aix_use_runtimelinking" = yes; then
7451             shared_flag='${wl}-G'
7452           else
7453             shared_flag='${wl}-bM:SRE'
7454         fi
7455         fi
7456       fi
7458       # It seems that -bexpall does not export symbols beginning with
7459       # underscore (_), so it is better to generate a list of symbols to export.
7460       always_export_symbols=yes
7461       if test "$aix_use_runtimelinking" = yes; then
7462         # Warning - without using the other runtime loading flags (-brtl),
7463         # -berok will link without error, but may produce a broken library.
7464         allow_undefined_flag='-berok'
7465        # Determine the default libpath from the value encoded in an empty executable.
7466        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h.  */
7470 main ()
7473   ;
7474   return 0;
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478   
7479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7481 # Check for a 64-bit object if we didn't find anything.
7482 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7483 }'`; fi
7485 rm -f core conftest.err conftest.$ac_objext \
7486     conftest$ac_exeext conftest.$ac_ext
7487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7489        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7490         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7491        else
7492         if test "$host_cpu" = ia64; then
7493           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7494           allow_undefined_flag="-z nodefs"
7495           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7496         else
7497          # Determine the default libpath from the value encoded in an empty executable.
7498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7502 main ()
7505   ;
7506   return 0;
7508 _ACEOF
7509 if ac_fn_c_try_link "$LINENO"; then :
7510   
7511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7513 # Check for a 64-bit object if we didn't find anything.
7514 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7515 }'`; fi
7517 rm -f core conftest.err conftest.$ac_objext \
7518     conftest$ac_exeext conftest.$ac_ext
7519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7521          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7522           # Warning - without using the other run time loading flags,
7523           # -berok will link without error, but may produce a broken library.
7524           no_undefined_flag=' ${wl}-bernotok'
7525           allow_undefined_flag=' ${wl}-berok'
7526           # -bexpall does not export symbols beginning with underscore (_)
7527           always_export_symbols=yes
7528           # Exported symbols can be pulled into shared objects from archives
7529           whole_archive_flag_spec=' '
7530           archive_cmds_need_lc=yes
7531           # This is similar to how AIX traditionally builds it's shared libraries.
7532           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7533         fi
7534       fi
7535       ;;
7537     amigaos*)
7538       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)'
7539       hardcode_libdir_flag_spec='-L$libdir'
7540       hardcode_minus_L=yes
7541       # see comment about different semantics on the GNU ld section
7542       ld_shlibs=no
7543       ;;
7545     bsdi4*)
7546       export_dynamic_flag_spec=-rdynamic
7547       ;;
7549     cygwin* | mingw* | pw32*)
7550       # When not using gcc, we currently assume that we are using
7551       # Microsoft Visual C++.
7552       # hardcode_libdir_flag_spec is actually meaningless, as there is
7553       # no search path for DLLs.
7554       hardcode_libdir_flag_spec=' '
7555       allow_undefined_flag=unsupported
7556       # Tell ltmain to make .lib files, not .a files.
7557       libext=lib
7558       # Tell ltmain to make .dll files, not .so files.
7559       shrext=".dll"
7560       # FIXME: Setting linknames here is a bad hack.
7561       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7562       # The linker will automatically build a .lib file if we build a DLL.
7563       old_archive_From_new_cmds='true'
7564       # FIXME: Should let the user specify the lib program.
7565       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7566       fix_srcfile_path='`cygpath -w "$srcfile"`'
7567       enable_shared_with_static_runtimes=yes
7568       ;;
7570     darwin* | rhapsody*)
7571     if test "$GXX" = yes ; then
7572       archive_cmds_need_lc=no
7573       case "$host_os" in
7574       rhapsody* | darwin1.[012])
7575         allow_undefined_flag='-undefined suppress'
7576         ;;
7577       *) # Darwin 1.3 on
7578       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7579         allow_undefined_flag='-flat_namespace -undefined suppress'
7580       else
7581         case ${MACOSX_DEPLOYMENT_TARGET} in
7582           10.[012])
7583             allow_undefined_flag='-flat_namespace -undefined suppress'
7584             ;;
7585           10.*)
7586             allow_undefined_flag='-undefined dynamic_lookup'
7587             ;;
7588         esac
7589       fi
7590         ;;
7591       esac
7592         lt_int_apple_cc_single_mod=no
7593         output_verbose_link_cmd='echo'
7594         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7595           lt_int_apple_cc_single_mod=yes
7596         fi
7597         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7598           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7599         else
7600         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7601       fi
7602       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7603       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7604         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7605           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606         else
7607           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7608         fi
7609           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610       hardcode_direct=no
7611       hardcode_automatic=yes
7612       hardcode_shlibpath_var=unsupported
7613       whole_archive_flag_spec='-all_load $convenience'
7614       link_all_deplibs=yes
7615     else
7616       ld_shlibs=no
7617     fi
7618       ;;
7620     dgux*)
7621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622       hardcode_libdir_flag_spec='-L$libdir'
7623       hardcode_shlibpath_var=no
7624       ;;
7626     freebsd1*)
7627       ld_shlibs=no
7628       ;;
7630     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7631     # support.  Future versions do this automatically, but an explicit c++rt0.o
7632     # does not break anything, and helps significantly (at the cost of a little
7633     # extra space).
7634     freebsd2.2*)
7635       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7636       hardcode_libdir_flag_spec='-R$libdir'
7637       hardcode_direct=yes
7638       hardcode_shlibpath_var=no
7639       ;;
7641     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7642     freebsd2*)
7643       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7644       hardcode_direct=yes
7645       hardcode_minus_L=yes
7646       hardcode_shlibpath_var=no
7647       ;;
7649     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7650     freebsd* | kfreebsd*-gnu)
7651       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7652       hardcode_libdir_flag_spec='-R$libdir'
7653       hardcode_direct=yes
7654       hardcode_shlibpath_var=no
7655       ;;
7657     hpux9*)
7658       if test "$GCC" = yes; then
7659         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7660       else
7661         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'
7662       fi
7663       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7664       hardcode_libdir_separator=:
7665       hardcode_direct=yes
7667       # hardcode_minus_L: Not really in the search PATH,
7668       # but as the default location of the library.
7669       hardcode_minus_L=yes
7670       export_dynamic_flag_spec='${wl}-E'
7671       ;;
7673     hpux10* | hpux11*)
7674       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7675         case "$host_cpu" in
7676         hppa*64*|ia64*)
7677           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7678           ;;
7679         *)
7680           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7681           ;;
7682         esac
7683       else
7684         case "$host_cpu" in
7685         hppa*64*|ia64*)
7686           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7687           ;;
7688         *)
7689           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7690           ;;
7691         esac
7692       fi
7693       if test "$with_gnu_ld" = no; then
7694         case "$host_cpu" in
7695         hppa*64*)
7696           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7697           hardcode_libdir_flag_spec_ld='+b $libdir'
7698           hardcode_libdir_separator=:
7699           hardcode_direct=no
7700           hardcode_shlibpath_var=no
7701           ;;
7702         ia64*)
7703           hardcode_libdir_flag_spec='-L$libdir'
7704           hardcode_direct=no
7705           hardcode_shlibpath_var=no
7707           # hardcode_minus_L: Not really in the search PATH,
7708           # but as the default location of the library.
7709           hardcode_minus_L=yes
7710           ;;
7711         *)
7712           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7713           hardcode_libdir_separator=:
7714           hardcode_direct=yes
7715           export_dynamic_flag_spec='${wl}-E'
7717           # hardcode_minus_L: Not really in the search PATH,
7718           # but as the default location of the library.
7719           hardcode_minus_L=yes
7720           ;;
7721         esac
7722       fi
7723       ;;
7725     irix5* | irix6* | nonstopux*)
7726       if test "$GCC" = yes; then
7727         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7728       else
7729         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7730         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7731       fi
7732       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7733       hardcode_libdir_separator=:
7734       link_all_deplibs=yes
7735       ;;
7737     netbsd* | knetbsd*-gnu)
7738       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7739         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7740       else
7741         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7742       fi
7743       hardcode_libdir_flag_spec='-R$libdir'
7744       hardcode_direct=yes
7745       hardcode_shlibpath_var=no
7746       ;;
7748     newsos6)
7749       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7750       hardcode_direct=yes
7751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752       hardcode_libdir_separator=:
7753       hardcode_shlibpath_var=no
7754       ;;
7756     openbsd*)
7757       hardcode_direct=yes
7758       hardcode_shlibpath_var=no
7759       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7760         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7761         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762         export_dynamic_flag_spec='${wl}-E'
7763       else
7764        case $host_os in
7765          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7766            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7767            hardcode_libdir_flag_spec='-R$libdir'
7768            ;;
7769          *)
7770            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7771            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7772            ;;
7773        esac
7774       fi
7775       ;;
7777     os2*)
7778       hardcode_libdir_flag_spec='-L$libdir'
7779       hardcode_minus_L=yes
7780       allow_undefined_flag=unsupported
7781       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'
7782       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7783       ;;
7785     osf3*)
7786       if test "$GCC" = yes; then
7787         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7788         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7789       else
7790         allow_undefined_flag=' -expect_unresolved \*'
7791         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7792       fi
7793       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7794       hardcode_libdir_separator=:
7795       ;;
7797     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7798       if test "$GCC" = yes; then
7799         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7800         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7801         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7802       else
7803         allow_undefined_flag=' -expect_unresolved \*'
7804         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7805         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7806         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7808         # Both c and cxx compiler support -rpath directly
7809         hardcode_libdir_flag_spec='-rpath $libdir'
7810       fi
7811       hardcode_libdir_separator=:
7812       ;;
7814     sco3.2v5*)
7815       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816       hardcode_shlibpath_var=no
7817       export_dynamic_flag_spec='${wl}-Bexport'
7818       runpath_var=LD_RUN_PATH
7819       hardcode_runpath_var=yes
7820       ;;
7822     solaris*)
7823       no_undefined_flag=' -z text'
7824       if test "$GCC" = yes; then
7825         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7826         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7827           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7828       else
7829         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7831         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7832       fi
7833       hardcode_libdir_flag_spec='-R$libdir'
7834       hardcode_shlibpath_var=no
7835       case $host_os in
7836       solaris2.[0-5] | solaris2.[0-5].*) ;;
7837       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7838         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7839       esac
7840       link_all_deplibs=yes
7841       ;;
7843     sunos4*)
7844       if test "x$host_vendor" = xsequent; then
7845         # Use $CC to link under sequent, because it throws in some extra .o
7846         # files that make .init and .fini sections work.
7847         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7848       else
7849         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7850       fi
7851       hardcode_libdir_flag_spec='-L$libdir'
7852       hardcode_direct=yes
7853       hardcode_minus_L=yes
7854       hardcode_shlibpath_var=no
7855       ;;
7857     sysv4)
7858       case $host_vendor in
7859         sni)
7860           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7861           hardcode_direct=yes # is this really true???
7862         ;;
7863         siemens)
7864           ## LD is ld it makes a PLAMLIB
7865           ## CC just makes a GrossModule.
7866           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7867           reload_cmds='$CC -r -o $output$reload_objs'
7868           hardcode_direct=no
7869         ;;
7870         motorola)
7871           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7872           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7873         ;;
7874       esac
7875       runpath_var='LD_RUN_PATH'
7876       hardcode_shlibpath_var=no
7877       ;;
7879     sysv4.3*)
7880       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881       hardcode_shlibpath_var=no
7882       export_dynamic_flag_spec='-Bexport'
7883       ;;
7885     sysv4*MP*)
7886       if test -d /usr/nec; then
7887         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888         hardcode_shlibpath_var=no
7889         runpath_var=LD_RUN_PATH
7890         hardcode_runpath_var=yes
7891         ld_shlibs=yes
7892       fi
7893       ;;
7895     sysv4.2uw2*)
7896       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7897       hardcode_direct=yes
7898       hardcode_minus_L=no
7899       hardcode_shlibpath_var=no
7900       hardcode_runpath_var=yes
7901       runpath_var=LD_RUN_PATH
7902       ;;
7904    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7905       no_undefined_flag='${wl}-z ${wl}text'
7906       if test "$GCC" = yes; then
7907         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7908       else
7909         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7910       fi
7911       runpath_var='LD_RUN_PATH'
7912       hardcode_shlibpath_var=no
7913       ;;
7915     sysv5*)
7916       no_undefined_flag=' -z text'
7917       # $CC -shared without GNU ld will not create a library from C++
7918       # object files and a static libstdc++, better avoid it by now
7919       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7920       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7921                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7922       hardcode_libdir_flag_spec=
7923       hardcode_shlibpath_var=no
7924       runpath_var='LD_RUN_PATH'
7925       ;;
7927     uts4*)
7928       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7929       hardcode_libdir_flag_spec='-L$libdir'
7930       hardcode_shlibpath_var=no
7931       ;;
7933     *)
7934       ld_shlibs=no
7935       ;;
7936     esac
7937   fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7940 $as_echo "$ld_shlibs" >&6; }
7941 test "$ld_shlibs" = no && can_build_shared=no
7943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7944 if test "$GCC" = yes; then
7945   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7949 # Do we need to explicitly link libc?
7951 case "x$archive_cmds_need_lc" in
7952 x|xyes)
7953   # Assume -lc should be added
7954   archive_cmds_need_lc=yes
7956   if test "$enable_shared" = yes && test "$GCC" = yes; then
7957     case $archive_cmds in
7958     *'~'*)
7959       # FIXME: we may have to deal with multi-command sequences.
7960       ;;
7961     '$CC '*)
7962       # Test whether the compiler implicitly links with -lc since on some
7963       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7964       # to ld, don't add -lc before -lgcc.
7965       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7966 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7967       $rm conftest*
7968       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7970       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7971   (eval $ac_compile) 2>&5
7972   ac_status=$?
7973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974   test $ac_status = 0; } 2>conftest.err; then
7975         soname=conftest
7976         lib=conftest
7977         libobjs=conftest.$ac_objext
7978         deplibs=
7979         wl=$lt_prog_compiler_wl
7980         compiler_flags=-v
7981         linker_flags=-v
7982         verstring=
7983         output_objdir=.
7984         libname=conftest
7985         lt_save_allow_undefined_flag=$allow_undefined_flag
7986         allow_undefined_flag=
7987         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7988   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7989   ac_status=$?
7990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991   test $ac_status = 0; }
7992         then
7993           archive_cmds_need_lc=no
7994         else
7995           archive_cmds_need_lc=yes
7996         fi
7997         allow_undefined_flag=$lt_save_allow_undefined_flag
7998       else
7999         cat conftest.err 1>&5
8000       fi
8001       $rm conftest*
8002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8003 $as_echo "$archive_cmds_need_lc" >&6; }
8004       ;;
8005     esac
8006   fi
8007   ;;
8008 esac
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8012 library_names_spec=
8013 libname_spec='lib$name'
8014 soname_spec=
8015 shrext=".so"
8016 postinstall_cmds=
8017 postuninstall_cmds=
8018 finish_cmds=
8019 finish_eval=
8020 shlibpath_var=
8021 shlibpath_overrides_runpath=unknown
8022 version_type=none
8023 dynamic_linker="$host_os ld.so"
8024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8025 if test "$GCC" = yes; then
8026   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8027   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8028     # if the path contains ";" then we assume it to be the separator
8029     # otherwise default to the standard path separator (i.e. ":") - it is
8030     # assumed that no part of a normal pathname contains ";" but that should
8031     # okay in the real world where ";" in dirpaths is itself problematic.
8032     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8033   else
8034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8035   fi
8036 else
8037   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8039 need_lib_prefix=unknown
8040 hardcode_into_libs=no
8042 # when you set need_version to no, make sure it does not cause -set_version
8043 # flags to be left without arguments
8044 need_version=unknown
8046 case $host_os in
8047 aix3*)
8048   version_type=linux
8049   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8050   shlibpath_var=LIBPATH
8052   # AIX 3 has no versioning support, so we append a major version to the name.
8053   soname_spec='${libname}${release}${shared_ext}$major'
8054   ;;
8056 aix4* | aix5*)
8057   version_type=linux
8058   need_lib_prefix=no
8059   need_version=no
8060   hardcode_into_libs=yes
8061   if test "$host_cpu" = ia64; then
8062     # AIX 5 supports IA64
8063     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8064     shlibpath_var=LD_LIBRARY_PATH
8065   else
8066     # With GCC up to 2.95.x, collect2 would create an import file
8067     # for dependence libraries.  The import file would start with
8068     # the line `#! .'.  This would cause the generated library to
8069     # depend on `.', always an invalid library.  This was fixed in
8070     # development snapshots of GCC prior to 3.0.
8071     case $host_os in
8072       aix4 | aix4.[01] | aix4.[01].*)
8073       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8074            echo ' yes '
8075            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8076         :
8077       else
8078         can_build_shared=no
8079       fi
8080       ;;
8081     esac
8082     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8083     # soname into executable. Probably we can add versioning support to
8084     # collect2, so additional links can be useful in future.
8085     if test "$aix_use_runtimelinking" = yes; then
8086       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8087       # instead of lib<name>.a to let people know that these are not
8088       # typical AIX shared libraries.
8089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8090     else
8091       # We preserve .a as extension for shared libraries through AIX4.2
8092       # and later when we are not doing run time linking.
8093       library_names_spec='${libname}${release}.a $libname.a'
8094       soname_spec='${libname}${release}${shared_ext}$major'
8095     fi
8096     shlibpath_var=LIBPATH
8097   fi
8098   ;;
8100 amigaos*)
8101   library_names_spec='$libname.ixlibrary $libname.a'
8102   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8103   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8104   ;;
8106 beos*)
8107   library_names_spec='${libname}${shared_ext}'
8108   dynamic_linker="$host_os ld.so"
8109   shlibpath_var=LIBRARY_PATH
8110   ;;
8112 bsdi4*)
8113   version_type=linux
8114   need_version=no
8115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116   soname_spec='${libname}${release}${shared_ext}$major'
8117   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8118   shlibpath_var=LD_LIBRARY_PATH
8119   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8120   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8121   # the default ld.so.conf also contains /usr/contrib/lib and
8122   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8123   # libtool to hard-code these into programs
8124   ;;
8126 cygwin* | mingw* | pw32*)
8127   version_type=windows
8128   shrext=".dll"
8129   need_version=no
8130   need_lib_prefix=no
8132   case $GCC,$host_os in
8133   yes,cygwin* | yes,mingw* | yes,pw32*)
8134     library_names_spec='$libname.dll.a'
8135     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8136     postinstall_cmds='base_file=`basename \${file}`~
8137       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8138       dldir=$destdir/`dirname \$dlpath`~
8139       test -d \$dldir || mkdir -p \$dldir~
8140       $install_prog $dir/$dlname \$dldir/$dlname'
8141     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8142       dlpath=$dir/\$dldll~
8143        $rm \$dlpath'
8144     shlibpath_overrides_runpath=yes
8146     case $host_os in
8147     cygwin*)
8148       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8149       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8150       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8151       ;;
8152     mingw*)
8153       # MinGW DLLs use traditional 'lib' prefix
8154       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8155       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8156       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8157         # It is most probably a Windows format PATH printed by
8158         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8159         # path with ; separators, and with drive letters. We can handle the
8160         # drive letters (cygwin fileutils understands them), so leave them,
8161         # especially as we might pass files found there to a mingw objdump,
8162         # which wouldn't understand a cygwinified path. Ahh.
8163         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8164       else
8165         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8166       fi
8167       ;;
8168     pw32*)
8169       # pw32 DLLs use 'pw' prefix rather than 'lib'
8170       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8171       ;;
8172     esac
8173     ;;
8175   *)
8176     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8177     ;;
8178   esac
8179   dynamic_linker='Win32 ld.exe'
8180   # FIXME: first we should search . and the directory the executable is in
8181   shlibpath_var=PATH
8182   ;;
8184 darwin* | rhapsody*)
8185   dynamic_linker="$host_os dyld"
8186   version_type=darwin
8187   need_lib_prefix=no
8188   need_version=no
8189   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8190   soname_spec='${libname}${release}${major}$shared_ext'
8191   shlibpath_overrides_runpath=yes
8192   shlibpath_var=DYLD_LIBRARY_PATH
8193   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8194   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8195   if test "$GCC" = yes; then
8196     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8197   else
8198     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8199   fi
8200   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8201   ;;
8203 dgux*)
8204   version_type=linux
8205   need_lib_prefix=no
8206   need_version=no
8207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8208   soname_spec='${libname}${release}${shared_ext}$major'
8209   shlibpath_var=LD_LIBRARY_PATH
8210   ;;
8212 freebsd1*)
8213   dynamic_linker=no
8214   ;;
8216 kfreebsd*-gnu)
8217   version_type=linux
8218   need_lib_prefix=no
8219   need_version=no
8220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8221   soname_spec='${libname}${release}${shared_ext}$major'
8222   shlibpath_var=LD_LIBRARY_PATH
8223   shlibpath_overrides_runpath=no
8224   hardcode_into_libs=yes
8225   dynamic_linker='GNU ld.so'
8226   ;;
8228 freebsd*)
8229   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8230   version_type=freebsd-$objformat
8231   case $version_type in
8232     freebsd-elf*)
8233       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8234       need_version=no
8235       need_lib_prefix=no
8236       ;;
8237     freebsd-*)
8238       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8239       need_version=yes
8240       ;;
8241   esac
8242   shlibpath_var=LD_LIBRARY_PATH
8243   case $host_os in
8244   freebsd2*)
8245     shlibpath_overrides_runpath=yes
8246     ;;
8247   freebsd3.01* | freebsdelf3.01*)
8248     shlibpath_overrides_runpath=yes
8249     hardcode_into_libs=yes
8250     ;;
8251   *) # from 3.2 on
8252     shlibpath_overrides_runpath=no
8253     hardcode_into_libs=yes
8254     ;;
8255   esac
8256   ;;
8258 gnu*)
8259   version_type=linux
8260   need_lib_prefix=no
8261   need_version=no
8262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8263   soname_spec='${libname}${release}${shared_ext}$major'
8264   shlibpath_var=LD_LIBRARY_PATH
8265   hardcode_into_libs=yes
8266   ;;
8268 hpux9* | hpux10* | hpux11*)
8269   # Give a soname corresponding to the major version so that dld.sl refuses to
8270   # link against other versions.
8271   version_type=sunos
8272   need_lib_prefix=no
8273   need_version=no
8274   case "$host_cpu" in
8275   ia64*)
8276     shrext='.so'
8277     hardcode_into_libs=yes
8278     dynamic_linker="$host_os dld.so"
8279     shlibpath_var=LD_LIBRARY_PATH
8280     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282     soname_spec='${libname}${release}${shared_ext}$major'
8283     if test "X$HPUX_IA64_MODE" = X32; then
8284       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8285     else
8286       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8287     fi
8288     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8289     ;;
8290    hppa*64*)
8291      shrext='.sl'
8292      hardcode_into_libs=yes
8293      dynamic_linker="$host_os dld.sl"
8294      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8295      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8297      soname_spec='${libname}${release}${shared_ext}$major'
8298      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8299      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8300      ;;
8301    *)
8302     shrext='.sl'
8303     dynamic_linker="$host_os dld.sl"
8304     shlibpath_var=SHLIB_PATH
8305     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307     soname_spec='${libname}${release}${shared_ext}$major'
8308     ;;
8309   esac
8310   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8311   postinstall_cmds='chmod 555 $lib'
8312   ;;
8314 irix5* | irix6* | nonstopux*)
8315   case $host_os in
8316     nonstopux*) version_type=nonstopux ;;
8317     *)
8318         if test "$lt_cv_prog_gnu_ld" = yes; then
8319                 version_type=linux
8320         else
8321                 version_type=irix
8322         fi ;;
8323   esac
8324   need_lib_prefix=no
8325   need_version=no
8326   soname_spec='${libname}${release}${shared_ext}$major'
8327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8328   case $host_os in
8329   irix5* | nonstopux*)
8330     libsuff= shlibsuff=
8331     ;;
8332   *)
8333     case $LD in # libtool.m4 will add one of these switches to LD
8334     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8335       libsuff= shlibsuff= libmagic=32-bit;;
8336     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8337       libsuff=32 shlibsuff=N32 libmagic=N32;;
8338     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8339       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8340     *) libsuff= shlibsuff= libmagic=never-match;;
8341     esac
8342     ;;
8343   esac
8344   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8345   shlibpath_overrides_runpath=no
8346   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8347   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8348   hardcode_into_libs=yes
8349   ;;
8351 # No shared lib support for Linux oldld, aout, or coff.
8352 linux*oldld* | linux*aout* | linux*coff*)
8353   dynamic_linker=no
8354   ;;
8356 # This must be Linux ELF.
8357 linux*)
8358   version_type=linux
8359   need_lib_prefix=no
8360   need_version=no
8361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362   soname_spec='${libname}${release}${shared_ext}$major'
8363   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8364   shlibpath_var=LD_LIBRARY_PATH
8365   shlibpath_overrides_runpath=no
8366   # This implies no fast_install, which is unacceptable.
8367   # Some rework will be needed to allow for fast_install
8368   # before this can be enabled.
8369   hardcode_into_libs=yes
8371   # Append ld.so.conf contents to the search path
8372   if test -f /etc/ld.so.conf; then
8373     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8374     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8375   fi
8377   # We used to test for /lib/ld.so.1 and disable shared libraries on
8378   # powerpc, because MkLinux only supported shared libraries with the
8379   # GNU dynamic linker.  Since this was broken with cross compilers,
8380   # most powerpc-linux boxes support dynamic linking these days and
8381   # people can always --disable-shared, the test was removed, and we
8382   # assume the GNU/Linux dynamic linker is in use.
8383   dynamic_linker='GNU/Linux ld.so'
8384   ;;
8386 knetbsd*-gnu)
8387   version_type=linux
8388   need_lib_prefix=no
8389   need_version=no
8390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391   soname_spec='${libname}${release}${shared_ext}$major'
8392   shlibpath_var=LD_LIBRARY_PATH
8393   shlibpath_overrides_runpath=no
8394   hardcode_into_libs=yes
8395   dynamic_linker='GNU ld.so'
8396   ;;
8398 netbsd*)
8399   version_type=sunos
8400   need_lib_prefix=no
8401   need_version=no
8402   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8404     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8405     dynamic_linker='NetBSD (a.out) ld.so'
8406   else
8407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8408     soname_spec='${libname}${release}${shared_ext}$major'
8409     dynamic_linker='NetBSD ld.elf_so'
8410   fi
8411   shlibpath_var=LD_LIBRARY_PATH
8412   shlibpath_overrides_runpath=yes
8413   hardcode_into_libs=yes
8414   ;;
8416 newsos6)
8417   version_type=linux
8418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419   shlibpath_var=LD_LIBRARY_PATH
8420   shlibpath_overrides_runpath=yes
8421   ;;
8423 nto-qnx*)
8424   version_type=linux
8425   need_lib_prefix=no
8426   need_version=no
8427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428   soname_spec='${libname}${release}${shared_ext}$major'
8429   shlibpath_var=LD_LIBRARY_PATH
8430   shlibpath_overrides_runpath=yes
8431   ;;
8433 openbsd*)
8434   version_type=sunos
8435   need_lib_prefix=no
8436   need_version=yes
8437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8439   shlibpath_var=LD_LIBRARY_PATH
8440   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8441     case $host_os in
8442       openbsd2.[89] | openbsd2.[89].*)
8443         shlibpath_overrides_runpath=no
8444         ;;
8445       *)
8446         shlibpath_overrides_runpath=yes
8447         ;;
8448       esac
8449   else
8450     shlibpath_overrides_runpath=yes
8451   fi
8452   ;;
8454 os2*)
8455   libname_spec='$name'
8456   shrext=".dll"
8457   need_lib_prefix=no
8458   library_names_spec='$libname${shared_ext} $libname.a'
8459   dynamic_linker='OS/2 ld.exe'
8460   shlibpath_var=LIBPATH
8461   ;;
8463 osf3* | osf4* | osf5*)
8464   version_type=osf
8465   need_lib_prefix=no
8466   need_version=no
8467   soname_spec='${libname}${release}${shared_ext}$major'
8468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469   shlibpath_var=LD_LIBRARY_PATH
8470   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8471   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8472   ;;
8474 sco3.2v5*)
8475   version_type=osf
8476   soname_spec='${libname}${release}${shared_ext}$major'
8477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478   shlibpath_var=LD_LIBRARY_PATH
8479   ;;
8481 solaris*)
8482   version_type=linux
8483   need_lib_prefix=no
8484   need_version=no
8485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486   soname_spec='${libname}${release}${shared_ext}$major'
8487   shlibpath_var=LD_LIBRARY_PATH
8488   shlibpath_overrides_runpath=yes
8489   hardcode_into_libs=yes
8490   # ldd complains unless libraries are executable
8491   postinstall_cmds='chmod +x $lib'
8492   ;;
8494 sunos4*)
8495   version_type=sunos
8496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8497   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8498   shlibpath_var=LD_LIBRARY_PATH
8499   shlibpath_overrides_runpath=yes
8500   if test "$with_gnu_ld" = yes; then
8501     need_lib_prefix=no
8502   fi
8503   need_version=yes
8504   ;;
8506 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8507   version_type=linux
8508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8509   soname_spec='${libname}${release}${shared_ext}$major'
8510   shlibpath_var=LD_LIBRARY_PATH
8511   case $host_vendor in
8512     sni)
8513       shlibpath_overrides_runpath=no
8514       need_lib_prefix=no
8515       export_dynamic_flag_spec='${wl}-Blargedynsym'
8516       runpath_var=LD_RUN_PATH
8517       ;;
8518     siemens)
8519       need_lib_prefix=no
8520       ;;
8521     motorola)
8522       need_lib_prefix=no
8523       need_version=no
8524       shlibpath_overrides_runpath=no
8525       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8526       ;;
8527   esac
8528   ;;
8530 sysv4*MP*)
8531   if test -d /usr/nec ;then
8532     version_type=linux
8533     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8534     soname_spec='$libname${shared_ext}.$major'
8535     shlibpath_var=LD_LIBRARY_PATH
8536   fi
8537   ;;
8539 uts4*)
8540   version_type=linux
8541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542   soname_spec='${libname}${release}${shared_ext}$major'
8543   shlibpath_var=LD_LIBRARY_PATH
8544   ;;
8547   dynamic_linker=no
8548   ;;
8549 esac
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8551 $as_echo "$dynamic_linker" >&6; }
8552 test "$dynamic_linker" = no && can_build_shared=no
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8556 hardcode_action=
8557 if test -n "$hardcode_libdir_flag_spec" || \
8558    test -n "$runpath_var " || \
8559    test "X$hardcode_automatic"="Xyes" ; then
8561   # We can hardcode non-existant directories.
8562   if test "$hardcode_direct" != no &&
8563      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8564      # have to relink, otherwise we might link with an installed library
8565      # when we should be linking with a yet-to-be-installed one
8566      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8567      test "$hardcode_minus_L" != no; then
8568     # Linking always hardcodes the temporary library directory.
8569     hardcode_action=relink
8570   else
8571     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8572     hardcode_action=immediate
8573   fi
8574 else
8575   # We cannot hardcode anything, or else we can only hardcode existing
8576   # directories.
8577   hardcode_action=unsupported
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8580 $as_echo "$hardcode_action" >&6; }
8582 if test "$hardcode_action" = relink; then
8583   # Fast installation is not supported
8584   enable_fast_install=no
8585 elif test "$shlibpath_overrides_runpath" = yes ||
8586      test "$enable_shared" = no; then
8587   # Fast installation is not necessary
8588   enable_fast_install=needless
8591 striplib=
8592 old_striplib=
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8595 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8596   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8597   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8599 $as_echo "yes" >&6; }
8600 else
8601 # FIXME - insert some real tests, host_os isn't really good enough
8602   case $host_os in
8603    darwin*)
8604        if test -n "$STRIP" ; then
8605          striplib="$STRIP -x"
8606          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8607 $as_echo "yes" >&6; }
8608        else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8612        ;;
8613    *)
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616     ;;
8617   esac
8620 if test "x$enable_dlopen" != xyes; then
8621   enable_dlopen=unknown
8622   enable_dlopen_self=unknown
8623   enable_dlopen_self_static=unknown
8624 else
8625   lt_cv_dlopen=no
8626   lt_cv_dlopen_libs=
8628   case $host_os in
8629   beos*)
8630     lt_cv_dlopen="load_add_on"
8631     lt_cv_dlopen_libs=
8632     lt_cv_dlopen_self=yes
8633     ;;
8635   mingw* | pw32*)
8636     lt_cv_dlopen="LoadLibrary"
8637     lt_cv_dlopen_libs=
8638    ;;
8640   cygwin*)
8641     lt_cv_dlopen="dlopen"
8642     lt_cv_dlopen_libs=
8643    ;;
8645   darwin*)
8646   # if libdl is installed we need to link against it
8647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8649 if ${ac_cv_lib_dl_dlopen+:} false; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652   ac_check_lib_save_LIBS=$LIBS
8653 LIBS="-ldl  $LIBS"
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h.  */
8657 /* Override any GCC internal prototype to avoid an error.
8658    Use char because int might match the return type of a GCC
8659    builtin and then its argument prototype would still apply.  */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 char dlopen ();
8665 main ()
8667 return dlopen ();
8668   ;
8669   return 0;
8671 _ACEOF
8672 if ac_fn_c_try_link "$LINENO"; then :
8673   ac_cv_lib_dl_dlopen=yes
8674 else
8675   ac_cv_lib_dl_dlopen=no
8677 rm -f core conftest.err conftest.$ac_objext \
8678     conftest$ac_exeext conftest.$ac_ext
8679 LIBS=$ac_check_lib_save_LIBS
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8683 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8685 else
8686   
8687     lt_cv_dlopen="dyld"
8688     lt_cv_dlopen_libs=
8689     lt_cv_dlopen_self=yes
8690     
8693    ;;
8695   *)
8696     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8697 if test "x$ac_cv_func_shl_load" = xyes; then :
8698   lt_cv_dlopen="shl_load"
8699 else
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8701 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8702 if ${ac_cv_lib_dld_shl_load+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   ac_check_lib_save_LIBS=$LIBS
8706 LIBS="-ldld  $LIBS"
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h.  */
8710 /* Override any GCC internal prototype to avoid an error.
8711    Use char because int might match the return type of a GCC
8712    builtin and then its argument prototype would still apply.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 char shl_load ();
8718 main ()
8720 return shl_load ();
8721   ;
8722   return 0;
8724 _ACEOF
8725 if ac_fn_c_try_link "$LINENO"; then :
8726   ac_cv_lib_dld_shl_load=yes
8727 else
8728   ac_cv_lib_dld_shl_load=no
8730 rm -f core conftest.err conftest.$ac_objext \
8731     conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8735 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8736 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8737   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8738 else
8739   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8740 if test "x$ac_cv_func_dlopen" = xyes; then :
8741   lt_cv_dlopen="dlopen"
8742 else
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8745 if ${ac_cv_lib_dl_dlopen+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   ac_check_lib_save_LIBS=$LIBS
8749 LIBS="-ldl  $LIBS"
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h.  */
8753 /* Override any GCC internal prototype to avoid an error.
8754    Use char because int might match the return type of a GCC
8755    builtin and then its argument prototype would still apply.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 char dlopen ();
8761 main ()
8763 return dlopen ();
8764   ;
8765   return 0;
8767 _ACEOF
8768 if ac_fn_c_try_link "$LINENO"; then :
8769   ac_cv_lib_dl_dlopen=yes
8770 else
8771   ac_cv_lib_dl_dlopen=no
8773 rm -f core conftest.err conftest.$ac_objext \
8774     conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8779 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8780   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8781 else
8782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8783 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8784 if ${ac_cv_lib_svld_dlopen+:} false; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   ac_check_lib_save_LIBS=$LIBS
8788 LIBS="-lsvld  $LIBS"
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h.  */
8792 /* Override any GCC internal prototype to avoid an error.
8793    Use char because int might match the return type of a GCC
8794    builtin and then its argument prototype would still apply.  */
8795 #ifdef __cplusplus
8796 extern "C"
8797 #endif
8798 char dlopen ();
8800 main ()
8802 return dlopen ();
8803   ;
8804   return 0;
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808   ac_cv_lib_svld_dlopen=yes
8809 else
8810   ac_cv_lib_svld_dlopen=no
8812 rm -f core conftest.err conftest.$ac_objext \
8813     conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8817 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8818 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8820 else
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8822 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8823 if ${ac_cv_lib_dld_dld_link+:} false; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   ac_check_lib_save_LIBS=$LIBS
8827 LIBS="-ldld  $LIBS"
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h.  */
8831 /* Override any GCC internal prototype to avoid an error.
8832    Use char because int might match the return type of a GCC
8833    builtin and then its argument prototype would still apply.  */
8834 #ifdef __cplusplus
8835 extern "C"
8836 #endif
8837 char dld_link ();
8839 main ()
8841 return dld_link ();
8842   ;
8843   return 0;
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"; then :
8847   ac_cv_lib_dld_dld_link=yes
8848 else
8849   ac_cv_lib_dld_dld_link=no
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8856 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8857 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8858   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8861               
8864             
8867           
8870         
8873       
8876     ;;
8877   esac
8879   if test "x$lt_cv_dlopen" != xno; then
8880     enable_dlopen=yes
8881   else
8882     enable_dlopen=no
8883   fi
8885   case $lt_cv_dlopen in
8886   dlopen)
8887     save_CPPFLAGS="$CPPFLAGS"
8888     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8890     save_LDFLAGS="$LDFLAGS"
8891     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8893     save_LIBS="$LIBS"
8894     LIBS="$lt_cv_dlopen_libs $LIBS"
8896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8897 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8898 if ${lt_cv_dlopen_self+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901           if test "$cross_compiling" = yes; then :
8902   lt_cv_dlopen_self=cross
8903 else
8904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8905   lt_status=$lt_dlunknown
8906   cat > conftest.$ac_ext <<EOF
8907 #line __oline__ "configure"
8908 #include "confdefs.h"
8910 #if HAVE_DLFCN_H
8911 #include <dlfcn.h>
8912 #endif
8914 #include <stdio.h>
8916 #ifdef RTLD_GLOBAL
8917 #  define LT_DLGLOBAL           RTLD_GLOBAL
8918 #else
8919 #  ifdef DL_GLOBAL
8920 #    define LT_DLGLOBAL         DL_GLOBAL
8921 #  else
8922 #    define LT_DLGLOBAL         0
8923 #  endif
8924 #endif
8926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8927    find out it does not work in some platform. */
8928 #ifndef LT_DLLAZY_OR_NOW
8929 #  ifdef RTLD_LAZY
8930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8931 #  else
8932 #    ifdef DL_LAZY
8933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8934 #    else
8935 #      ifdef RTLD_NOW
8936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8937 #      else
8938 #        ifdef DL_NOW
8939 #          define LT_DLLAZY_OR_NOW      DL_NOW
8940 #        else
8941 #          define LT_DLLAZY_OR_NOW      0
8942 #        endif
8943 #      endif
8944 #    endif
8945 #  endif
8946 #endif
8948 #ifdef __cplusplus
8949 extern "C" void exit (int);
8950 #endif
8952 void fnord() { int i=42;}
8953 int main ()
8955   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8956   int status = $lt_dlunknown;
8958   if (self)
8959     {
8960       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8961       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8962       /* dlclose (self); */
8963     }
8965     exit (status);
8968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8969   (eval $ac_link) 2>&5
8970   ac_status=$?
8971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8972   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8973     (./conftest; exit; ) 2>/dev/null
8974     lt_status=$?
8975     case x$lt_status in
8976       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8977       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8978       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8979     esac
8980   else :
8981     # compilation failed
8982     lt_cv_dlopen_self=no
8983   fi
8985 rm -fr conftest*
8987     
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8990 $as_echo "$lt_cv_dlopen_self" >&6; }
8992     if test "x$lt_cv_dlopen_self" = xyes; then
8993       LDFLAGS="$LDFLAGS $link_static_flag"
8994       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8995 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8996 if ${lt_cv_dlopen_self_static+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999           if test "$cross_compiling" = yes; then :
9000   lt_cv_dlopen_self_static=cross
9001 else
9002   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9003   lt_status=$lt_dlunknown
9004   cat > conftest.$ac_ext <<EOF
9005 #line __oline__ "configure"
9006 #include "confdefs.h"
9008 #if HAVE_DLFCN_H
9009 #include <dlfcn.h>
9010 #endif
9012 #include <stdio.h>
9014 #ifdef RTLD_GLOBAL
9015 #  define LT_DLGLOBAL           RTLD_GLOBAL
9016 #else
9017 #  ifdef DL_GLOBAL
9018 #    define LT_DLGLOBAL         DL_GLOBAL
9019 #  else
9020 #    define LT_DLGLOBAL         0
9021 #  endif
9022 #endif
9024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9025    find out it does not work in some platform. */
9026 #ifndef LT_DLLAZY_OR_NOW
9027 #  ifdef RTLD_LAZY
9028 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9029 #  else
9030 #    ifdef DL_LAZY
9031 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9032 #    else
9033 #      ifdef RTLD_NOW
9034 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9035 #      else
9036 #        ifdef DL_NOW
9037 #          define LT_DLLAZY_OR_NOW      DL_NOW
9038 #        else
9039 #          define LT_DLLAZY_OR_NOW      0
9040 #        endif
9041 #      endif
9042 #    endif
9043 #  endif
9044 #endif
9046 #ifdef __cplusplus
9047 extern "C" void exit (int);
9048 #endif
9050 void fnord() { int i=42;}
9051 int main ()
9053   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9054   int status = $lt_dlunknown;
9056   if (self)
9057     {
9058       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9059       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9060       /* dlclose (self); */
9061     }
9063     exit (status);
9066   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9067   (eval $ac_link) 2>&5
9068   ac_status=$?
9069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9070   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9071     (./conftest; exit; ) 2>/dev/null
9072     lt_status=$?
9073     case x$lt_status in
9074       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9075       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9076       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9077     esac
9078   else :
9079     # compilation failed
9080     lt_cv_dlopen_self_static=no
9081   fi
9083 rm -fr conftest*
9085       
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9088 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9089     fi
9091     CPPFLAGS="$save_CPPFLAGS"
9092     LDFLAGS="$save_LDFLAGS"
9093     LIBS="$save_LIBS"
9094     ;;
9095   esac
9097   case $lt_cv_dlopen_self in
9098   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9099   *) enable_dlopen_self=unknown ;;
9100   esac
9102   case $lt_cv_dlopen_self_static in
9103   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9104   *) enable_dlopen_self_static=unknown ;;
9105   esac
9109 # Report which librarie types wil actually be built
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9111 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9113 $as_echo "$can_build_shared" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9116 $as_echo_n "checking whether to build shared libraries... " >&6; }
9117 test "$can_build_shared" = "no" && enable_shared=no
9119 # On AIX, shared libraries and static libraries use the same namespace, and
9120 # are all built from PIC.
9121 case "$host_os" in
9122 aix3*)
9123   test "$enable_shared" = yes && enable_static=no
9124   if test -n "$RANLIB"; then
9125     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9126     postinstall_cmds='$RANLIB $lib'
9127   fi
9128   ;;
9130 aix4*)
9131   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9132     test "$enable_shared" = yes && enable_static=no
9133   fi
9134   ;;
9135   darwin* | rhapsody*)
9136   if test "$GCC" = yes; then
9137     archive_cmds_need_lc=no
9138     case "$host_os" in
9139     rhapsody* | darwin1.[012])
9140       allow_undefined_flag='-undefined suppress'
9141       ;;
9142     *) # Darwin 1.3 on
9143       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9144         allow_undefined_flag='-flat_namespace -undefined suppress'
9145       else
9146         case ${MACOSX_DEPLOYMENT_TARGET} in
9147           10.[012])
9148             allow_undefined_flag='-flat_namespace -undefined suppress'
9149             ;;
9150           10.*)
9151             allow_undefined_flag='-undefined dynamic_lookup'
9152             ;;
9153         esac
9154       fi
9155       ;;
9156     esac
9157     output_verbose_link_cmd='echo'
9158     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9159     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9160     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9161     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9162     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9163     hardcode_direct=no
9164     hardcode_automatic=yes
9165     hardcode_shlibpath_var=unsupported
9166     whole_archive_flag_spec='-all_load $convenience'
9167     link_all_deplibs=yes
9168   else
9169     ld_shlibs=no
9170   fi
9171     ;;
9172 esac
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9174 $as_echo "$enable_shared" >&6; }
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9177 $as_echo_n "checking whether to build static libraries... " >&6; }
9178 # Make sure either enable_shared or enable_static is yes.
9179 test "$enable_shared" = yes || enable_static=yes
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9181 $as_echo "$enable_static" >&6; }
9183 # The else clause should only fire when bootstrapping the
9184 # libtool distribution, otherwise you forgot to ship ltmain.sh
9185 # with your package, and you will get complaints that there are
9186 # no rules to generate ltmain.sh.
9187 if test -f "$ltmain"; then
9188   # See if we are running on zsh, and set the options which allow our commands through
9189   # without removal of \ escapes.
9190   if test -n "${ZSH_VERSION+set}" ; then
9191     setopt NO_GLOB_SUBST
9192   fi
9193   # Now quote all the things that may contain metacharacters while being
9194   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9195   # variables and quote the copies for generation of the libtool script.
9196   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9197     SED SHELL STRIP \
9198     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9199     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9200     deplibs_check_method reload_flag reload_cmds need_locks \
9201     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9202     lt_cv_sys_global_symbol_to_c_name_address \
9203     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9204     old_postinstall_cmds old_postuninstall_cmds \
9205     compiler \
9206     CC \
9207     LD \
9208     lt_prog_compiler_wl \
9209     lt_prog_compiler_pic \
9210     lt_prog_compiler_static \
9211     lt_prog_compiler_no_builtin_flag \
9212     export_dynamic_flag_spec \
9213     thread_safe_flag_spec \
9214     whole_archive_flag_spec \
9215     enable_shared_with_static_runtimes \
9216     old_archive_cmds \
9217     old_archive_from_new_cmds \
9218     predep_objects \
9219     postdep_objects \
9220     predeps \
9221     postdeps \
9222     compiler_lib_search_path \
9223     archive_cmds \
9224     archive_expsym_cmds \
9225     postinstall_cmds \
9226     postuninstall_cmds \
9227     old_archive_from_expsyms_cmds \
9228     allow_undefined_flag \
9229     no_undefined_flag \
9230     export_symbols_cmds \
9231     hardcode_libdir_flag_spec \
9232     hardcode_libdir_flag_spec_ld \
9233     hardcode_libdir_separator \
9234     hardcode_automatic \
9235     module_cmds \
9236     module_expsym_cmds \
9237     lt_cv_prog_compiler_c_o \
9238     exclude_expsyms \
9239     include_expsyms; do
9241     case $var in
9242     old_archive_cmds | \
9243     old_archive_from_new_cmds | \
9244     archive_cmds | \
9245     archive_expsym_cmds | \
9246     module_cmds | \
9247     module_expsym_cmds | \
9248     old_archive_from_expsyms_cmds | \
9249     export_symbols_cmds | \
9250     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9251     postinstall_cmds | postuninstall_cmds | \
9252     old_postinstall_cmds | old_postuninstall_cmds | \
9253     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9254       # Double-quote double-evaled strings.
9255       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9256       ;;
9257     *)
9258       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9259       ;;
9260     esac
9261   done
9263   case $lt_echo in
9264   *'\$0 --fallback-echo"')
9265     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9266     ;;
9267   esac
9269 cfgfile="${ofile}T"
9270   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9271   $rm -f "$cfgfile"
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9273 $as_echo "$as_me: creating $ofile" >&6;}
9275   cat <<__EOF__ >> "$cfgfile"
9276 #! $SHELL
9278 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9279 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9280 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9282 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9283 # Free Software Foundation, Inc.
9285 # This file is part of GNU Libtool:
9286 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9288 # This program is free software; you can redistribute it and/or modify
9289 # it under the terms of the GNU General Public License as published by
9290 # the Free Software Foundation; either version 2 of the License, or
9291 # (at your option) any later version.
9293 # This program is distributed in the hope that it will be useful, but
9294 # WITHOUT ANY WARRANTY; without even the implied warranty of
9295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9296 # General Public License for more details.
9298 # You should have received a copy of the GNU General Public License
9299 # along with this program; if not, write to the Free Software
9300 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9302 # As a special exception to the GNU General Public License, if you
9303 # distribute this file as part of a program that contains a
9304 # configuration script generated by Autoconf, you may include it under
9305 # the same distribution terms that you use for the rest of that program.
9307 # A sed program that does not truncate output.
9308 SED=$lt_SED
9310 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9311 Xsed="$SED -e s/^X//"
9313 # The HP-UX ksh and POSIX shell print the target directory to stdout
9314 # if CDPATH is set.
9315 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9317 # The names of the tagged configurations supported by this script.
9318 available_tags=
9320 # ### BEGIN LIBTOOL CONFIG
9322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9324 # Shell to use when invoking shell scripts.
9325 SHELL=$lt_SHELL
9327 # Whether or not to build shared libraries.
9328 build_libtool_libs=$enable_shared
9330 # Whether or not to build static libraries.
9331 build_old_libs=$enable_static
9333 # Whether or not to add -lc for building shared libraries.
9334 build_libtool_need_lc=$archive_cmds_need_lc
9336 # Whether or not to disallow shared libs when runtime libs are static
9337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9339 # Whether or not to optimize for fast installation.
9340 fast_install=$enable_fast_install
9342 # The host system.
9343 host_alias=$host_alias
9344 host=$host
9346 # An echo program that does not interpret backslashes.
9347 echo=$lt_echo
9349 # The archiver.
9350 AR=$lt_AR
9351 AR_FLAGS=$lt_AR_FLAGS
9353 # A C compiler.
9354 LTCC=$lt_LTCC
9356 # A language-specific compiler.
9357 CC=$lt_compiler
9359 # Is the compiler the GNU C compiler?
9360 with_gcc=$GCC
9362 # An ERE matcher.
9363 EGREP=$lt_EGREP
9365 # The linker used to build libraries.
9366 LD=$lt_LD
9368 # Whether we need hard or soft links.
9369 LN_S=$lt_LN_S
9371 # A BSD-compatible nm program.
9372 NM=$lt_NM
9374 # A symbol stripping program
9375 STRIP=$lt_STRIP
9377 # Used to examine libraries when file_magic_cmd begins "file"
9378 MAGIC_CMD=$MAGIC_CMD
9380 # Used on cygwin: DLL creation program.
9381 DLLTOOL="$DLLTOOL"
9383 # Used on cygwin: object dumper.
9384 OBJDUMP="$OBJDUMP"
9386 # Used on cygwin: assembler.
9387 AS="$AS"
9389 # The name of the directory that contains temporary libtool files.
9390 objdir=$objdir
9392 # How to create reloadable object files.
9393 reload_flag=$lt_reload_flag
9394 reload_cmds=$lt_reload_cmds
9396 # How to pass a linker flag through the compiler.
9397 wl=$lt_lt_prog_compiler_wl
9399 # Object file suffix (normally "o").
9400 objext="$ac_objext"
9402 # Old archive suffix (normally "a").
9403 libext="$libext"
9405 # Shared library suffix (normally ".so").
9406 shrext='$shrext'
9408 # Executable file suffix (normally "").
9409 exeext="$exeext"
9411 # Additional compiler flags for building library objects.
9412 pic_flag=$lt_lt_prog_compiler_pic
9413 pic_mode=$pic_mode
9415 # What is the maximum length of a command?
9416 max_cmd_len=$lt_cv_sys_max_cmd_len
9418 # Does compiler simultaneously support -c and -o options?
9419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9421 # Must we lock files when doing compilation ?
9422 need_locks=$lt_need_locks
9424 # Do we need the lib prefix for modules?
9425 need_lib_prefix=$need_lib_prefix
9427 # Do we need a version for libraries?
9428 need_version=$need_version
9430 # Whether dlopen is supported.
9431 dlopen_support=$enable_dlopen
9433 # Whether dlopen of programs is supported.
9434 dlopen_self=$enable_dlopen_self
9436 # Whether dlopen of statically linked programs is supported.
9437 dlopen_self_static=$enable_dlopen_self_static
9439 # Compiler flag to prevent dynamic linking.
9440 link_static_flag=$lt_lt_prog_compiler_static
9442 # Compiler flag to turn off builtin functions.
9443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9445 # Compiler flag to allow reflexive dlopens.
9446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9448 # Compiler flag to generate shared objects directly from archives.
9449 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9451 # Compiler flag to generate thread-safe objects.
9452 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9454 # Library versioning type.
9455 version_type=$version_type
9457 # Format of library name prefix.
9458 libname_spec=$lt_libname_spec
9460 # List of archive names.  First name is the real one, the rest are links.
9461 # The last name is the one that the linker finds with -lNAME.
9462 library_names_spec=$lt_library_names_spec
9464 # The coded name of the library, if different from the real name.
9465 soname_spec=$lt_soname_spec
9467 # Commands used to build and install an old-style archive.
9468 RANLIB=$lt_RANLIB
9469 old_archive_cmds=$lt_old_archive_cmds
9470 old_postinstall_cmds=$lt_old_postinstall_cmds
9471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9473 # Create an old-style archive from a shared archive.
9474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9476 # Create a temporary old-style archive to link instead of a shared archive.
9477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9479 # Commands used to build and install a shared archive.
9480 archive_cmds=$lt_archive_cmds
9481 archive_expsym_cmds=$lt_archive_expsym_cmds
9482 postinstall_cmds=$lt_postinstall_cmds
9483 postuninstall_cmds=$lt_postuninstall_cmds
9485 # Commands used to build a loadable module (assumed same as above if empty)
9486 module_cmds=$lt_module_cmds
9487 module_expsym_cmds=$lt_module_expsym_cmds
9489 # Commands to strip libraries.
9490 old_striplib=$lt_old_striplib
9491 striplib=$lt_striplib
9493 # Dependencies to place before the objects being linked to create a
9494 # shared library.
9495 predep_objects=$lt_predep_objects
9497 # Dependencies to place after the objects being linked to create a
9498 # shared library.
9499 postdep_objects=$lt_postdep_objects
9501 # Dependencies to place before the objects being linked to create a
9502 # shared library.
9503 predeps=$lt_predeps
9505 # Dependencies to place after the objects being linked to create a
9506 # shared library.
9507 postdeps=$lt_postdeps
9509 # The library search path used internally by the compiler when linking
9510 # a shared library.
9511 compiler_lib_search_path=$lt_compiler_lib_search_path
9513 # Method to check whether dependent libraries are shared objects.
9514 deplibs_check_method=$lt_deplibs_check_method
9516 # Command to use when deplibs_check_method == file_magic.
9517 file_magic_cmd=$lt_file_magic_cmd
9519 # Flag that allows shared libraries with undefined symbols to be built.
9520 allow_undefined_flag=$lt_allow_undefined_flag
9522 # Flag that forces no undefined symbols.
9523 no_undefined_flag=$lt_no_undefined_flag
9525 # Commands used to finish a libtool library installation in a directory.
9526 finish_cmds=$lt_finish_cmds
9528 # Same as above, but a single script fragment to be evaled but not shown.
9529 finish_eval=$lt_finish_eval
9531 # Take the output of nm and produce a listing of raw symbols and C names.
9532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9534 # Transform the output of nm in a proper C declaration
9535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9537 # Transform the output of nm in a C name address pair
9538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9540 # This is the shared library runtime path variable.
9541 runpath_var=$runpath_var
9543 # This is the shared library path variable.
9544 shlibpath_var=$shlibpath_var
9546 # Is shlibpath searched before the hard-coded library search path?
9547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9549 # How to hardcode a shared library path into an executable.
9550 hardcode_action=$hardcode_action
9552 # Whether we should hardcode library paths into libraries.
9553 hardcode_into_libs=$hardcode_into_libs
9555 # Flag to hardcode \$libdir into a binary during linking.
9556 # This must work even if \$libdir does not exist.
9557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9559 # If ld is used when linking, flag to hardcode \$libdir into
9560 # a binary during linking. This must work even if \$libdir does
9561 # not exist.
9562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9564 # Whether we need a single -rpath flag with a separated argument.
9565 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9568 # resulting binary.
9569 hardcode_direct=$hardcode_direct
9571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9572 # resulting binary.
9573 hardcode_minus_L=$hardcode_minus_L
9575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9576 # the resulting binary.
9577 hardcode_shlibpath_var=$hardcode_shlibpath_var
9579 # Set to yes if building a shared library automatically hardcodes DIR into the library
9580 # and all subsequent libraries and executables linked against it.
9581 hardcode_automatic=$hardcode_automatic
9583 # Variables whose values should be saved in libtool wrapper scripts and
9584 # restored at relink time.
9585 variables_saved_for_relink="$variables_saved_for_relink"
9587 # Whether libtool must link a program against all its dependency libraries.
9588 link_all_deplibs=$link_all_deplibs
9590 # Compile-time system search path for libraries
9591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9593 # Run-time system search path for libraries
9594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9596 # Fix the shell variable \$srcfile for the compiler.
9597 fix_srcfile_path="$fix_srcfile_path"
9599 # Set to yes if exported symbols are required.
9600 always_export_symbols=$always_export_symbols
9602 # The commands to list exported symbols.
9603 export_symbols_cmds=$lt_export_symbols_cmds
9605 # The commands to extract the exported symbol list from a shared archive.
9606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9608 # Symbols that should not be listed in the preloaded symbols.
9609 exclude_expsyms=$lt_exclude_expsyms
9611 # Symbols that must always be exported.
9612 include_expsyms=$lt_include_expsyms
9614 # ### END LIBTOOL CONFIG
9616 __EOF__
9619   case $host_os in
9620   aix3*)
9621     cat <<\EOF >> "$cfgfile"
9623 # AIX sometimes has problems with the GCC collect2 program.  For some
9624 # reason, if we set the COLLECT_NAMES environment variable, the problems
9625 # vanish in a puff of smoke.
9626 if test "X${COLLECT_NAMES+set}" != Xset; then
9627   COLLECT_NAMES=
9628   export COLLECT_NAMES
9631     ;;
9632   esac
9634   # We use sed instead of cat because bash on DJGPP gets confused if
9635   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9636   # text mode, it properly converts lines to CR/LF.  This bash problem
9637   # is reportedly fixed, but why not run on old versions too?
9638   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9640   mv -f "$cfgfile" "$ofile" || \
9641     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9642   chmod +x "$ofile"
9644 else
9645   # If there is no Makefile yet, we rely on a make rule to execute
9646   # `config.status --recheck' to rerun these tests and create the
9647   # libtool script then.
9648   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9649   if test -f "$ltmain_in"; then
9650     test -f Makefile && make "$ltmain"
9651   fi
9655 ac_ext=c
9656 ac_cpp='$CPP $CPPFLAGS'
9657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9661 CC="$lt_save_CC"
9664 @%:@ Check whether --with-tags was given.
9665 if test "${with_tags+set}" = set; then :
9666   withval=$with_tags; tagnames="$withval"
9670 if test -f "$ltmain" && test -n "$tagnames"; then
9671   if test ! -f "${ofile}"; then
9672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9673 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9674   fi
9676   if test -z "$LTCC"; then
9677     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9678     if test -z "$LTCC"; then
9679       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9680 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9681     else
9682       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9683 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9684     fi
9685   fi
9687   # Extract list of available tagged configurations in $ofile.
9688   # Note that this assumes the entire list is on one line.
9689   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9691   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9692   for tagname in $tagnames; do
9693     IFS="$lt_save_ifs"
9694     # Check whether tagname contains only valid characters
9695     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9696     "") ;;
9697     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9698         ;;
9699     esac
9701     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9702     then
9703       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9704     fi
9706     # Update the list of available tags.
9707     if test -n "$tagname"; then
9708       echo appending configuration tag \"$tagname\" to $ofile
9710       case $tagname in
9711       CXX)
9712         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9713           ac_ext=cpp
9714 ac_cpp='$CXXCPP $CPPFLAGS'
9715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9722 archive_cmds_need_lc_CXX=no
9723 allow_undefined_flag_CXX=
9724 always_export_symbols_CXX=no
9725 archive_expsym_cmds_CXX=
9726 export_dynamic_flag_spec_CXX=
9727 hardcode_direct_CXX=no
9728 hardcode_libdir_flag_spec_CXX=
9729 hardcode_libdir_flag_spec_ld_CXX=
9730 hardcode_libdir_separator_CXX=
9731 hardcode_minus_L_CXX=no
9732 hardcode_automatic_CXX=no
9733 module_cmds_CXX=
9734 module_expsym_cmds_CXX=
9735 link_all_deplibs_CXX=unknown
9736 old_archive_cmds_CXX=$old_archive_cmds
9737 no_undefined_flag_CXX=
9738 whole_archive_flag_spec_CXX=
9739 enable_shared_with_static_runtimes_CXX=no
9741 # Dependencies to place before and after the object being linked:
9742 predep_objects_CXX=
9743 postdep_objects_CXX=
9744 predeps_CXX=
9745 postdeps_CXX=
9746 compiler_lib_search_path_CXX=
9748 # Source file extension for C++ test sources.
9749 ac_ext=cc
9751 # Object file extension for compiled C++ test sources.
9752 objext=o
9753 objext_CXX=$objext
9755 # Code to be used in simple compile tests
9756 lt_simple_compile_test_code="int some_variable = 0;\n"
9758 # Code to be used in simple link tests
9759 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9761 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9763 # If no C compiler was specified, use CC.
9764 LTCC=${LTCC-"$CC"}
9766 # Allow CC to be a program name with arguments.
9767 compiler=$CC
9770 # Allow CC to be a program name with arguments.
9771 lt_save_CC=$CC
9772 lt_save_LD=$LD
9773 lt_save_GCC=$GCC
9774 GCC=$GXX
9775 lt_save_with_gnu_ld=$with_gnu_ld
9776 lt_save_path_LD=$lt_cv_path_LD
9777 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9778   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9779 else
9780   unset lt_cv_prog_gnu_ld
9782 if test -n "${lt_cv_path_LDCXX+set}"; then
9783   lt_cv_path_LD=$lt_cv_path_LDCXX
9784 else
9785   unset lt_cv_path_LD
9787 test -z "${LDCXX+set}" || LD=$LDCXX
9788 CC=${CXX-"c++"}
9789 compiler=$CC
9790 compiler_CXX=$CC
9791 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9793 # We don't want -fno-exception wen compiling C++ code, so set the
9794 # no_builtin_flag separately
9795 if test "$GXX" = yes; then
9796   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9797 else
9798   lt_prog_compiler_no_builtin_flag_CXX=
9801 if test "$GXX" = yes; then
9802   # Set up default GNU C++ configuration
9804   
9805 @%:@ Check whether --with-gnu-ld was given.
9806 if test "${with_gnu_ld+set}" = set; then :
9807   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9808 else
9809   with_gnu_ld=no
9812 ac_prog=ld
9813 if test "$GCC" = yes; then
9814   # Check if gcc -print-prog-name=ld gives a path.
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9816 $as_echo_n "checking for ld used by $CC... " >&6; }
9817   case $host in
9818   *-*-mingw*)
9819     # gcc leaves a trailing carriage return which upsets mingw
9820     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9821   *)
9822     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9823   esac
9824   case $ac_prog in
9825     # Accept absolute paths.
9826     [\\/]* | ?:[\\/]*)
9827       re_direlt='/[^/][^/]*/\.\./'
9828       # Canonicalize the pathname of ld
9829       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9830       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9831         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9832       done
9833       test -z "$LD" && LD="$ac_prog"
9834       ;;
9835   "")
9836     # If it fails, then pretend we aren't using GCC.
9837     ac_prog=ld
9838     ;;
9839   *)
9840     # If it is relative, then search for the first ld in PATH.
9841     with_gnu_ld=unknown
9842     ;;
9843   esac
9844 elif test "$with_gnu_ld" = yes; then
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9846 $as_echo_n "checking for GNU ld... " >&6; }
9847 else
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9849 $as_echo_n "checking for non-GNU ld... " >&6; }
9851 if ${lt_cv_path_LD+:} false; then :
9852   $as_echo_n "(cached) " >&6
9853 else
9854   if test -z "$LD"; then
9855   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9856   for ac_dir in $PATH; do
9857     IFS="$lt_save_ifs"
9858     test -z "$ac_dir" && ac_dir=.
9859     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9860       lt_cv_path_LD="$ac_dir/$ac_prog"
9861       # Check to see if the program is GNU ld.  I'd rather use --version,
9862       # but apparently some GNU ld's only accept -v.
9863       # Break only if it was the GNU/non-GNU ld that we prefer.
9864       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9865       *GNU* | *'with BFD'*)
9866         test "$with_gnu_ld" != no && break
9867         ;;
9868       *)
9869         test "$with_gnu_ld" != yes && break
9870         ;;
9871       esac
9872     fi
9873   done
9874   IFS="$lt_save_ifs"
9875 else
9876   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9880 LD="$lt_cv_path_LD"
9881 if test -n "$LD"; then
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9883 $as_echo "$LD" >&6; }
9884 else
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9888 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9890 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9891 if ${lt_cv_prog_gnu_ld+:} false; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9895 case `$LD -v 2>&1 </dev/null` in
9896 *GNU* | *'with BFD'*)
9897   lt_cv_prog_gnu_ld=yes
9898   ;;
9900   lt_cv_prog_gnu_ld=no
9901   ;;
9902 esac
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9905 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9906 with_gnu_ld=$lt_cv_prog_gnu_ld
9910   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9911   # archiving commands below assume that GNU ld is being used.
9912   if test "$with_gnu_ld" = yes; then
9913     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9917     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9919     # If archive_cmds runs LD, not CC, wlarc should be empty
9920     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9921     #     investigate it a little bit more. (MM)
9922     wlarc='${wl}'
9924     # ancient GNU ld didn't support --whole-archive et. al.
9925     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9926         grep 'no-whole-archive' > /dev/null; then
9927       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9928     else
9929       whole_archive_flag_spec_CXX=
9930     fi
9931   else
9932     with_gnu_ld=no
9933     wlarc=
9935     # A generic and very simple default shared library creation
9936     # command for GNU C++ for the case where it uses the native
9937     # linker, instead of GNU ld.  If possible, this setting should
9938     # overridden to take advantage of the native linker features on
9939     # the platform it is being used on.
9940     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9941   fi
9943   # Commands to make compiler produce verbose output that lists
9944   # what "hidden" libraries, object files and flags are used when
9945   # linking a shared library.
9946   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9948 else
9949   GXX=no
9950   with_gnu_ld=no
9951   wlarc=
9954 # PORTME: fill in a description of your system's C++ link characteristics
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9957 ld_shlibs_CXX=yes
9958 case $host_os in
9959   aix3*)
9960     # FIXME: insert proper C++ library support
9961     ld_shlibs_CXX=no
9962     ;;
9963   aix4* | aix5*)
9964     if test "$host_cpu" = ia64; then
9965       # On IA64, the linker does run time linking by default, so we don't
9966       # have to do anything special.
9967       aix_use_runtimelinking=no
9968       exp_sym_flag='-Bexport'
9969       no_entry_flag=""
9970     else
9971       aix_use_runtimelinking=no
9973       # Test if we are trying to use run time linking or normal
9974       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975       # need to do runtime linking.
9976       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9977         for ld_flag in $LDFLAGS; do
9978           case $ld_flag in
9979           *-brtl*)
9980             aix_use_runtimelinking=yes
9981             break
9982             ;;
9983           esac
9984         done
9985       esac
9987       exp_sym_flag='-bexport'
9988       no_entry_flag='-bnoentry'
9989     fi
9991     # When large executables or shared objects are built, AIX ld can
9992     # have problems creating the table of contents.  If linking a library
9993     # or program results in "error TOC overflow" add -mminimal-toc to
9994     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9995     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9997     archive_cmds_CXX=''
9998     hardcode_direct_CXX=yes
9999     hardcode_libdir_separator_CXX=':'
10000     link_all_deplibs_CXX=yes
10002     if test "$GXX" = yes; then
10003       case $host_os in aix4.012|aix4.012.*)
10004       # We only want to do this on AIX 4.2 and lower, the check
10005       # below for broken collect2 doesn't work under 4.3+
10006         collect2name=`${CC} -print-prog-name=collect2`
10007         if test -f "$collect2name" && \
10008            strings "$collect2name" | grep resolve_lib_name >/dev/null
10009         then
10010           # We have reworked collect2
10011           hardcode_direct_CXX=yes
10012         else
10013           # We have old collect2
10014           hardcode_direct_CXX=unsupported
10015           # It fails to find uninstalled libraries when the uninstalled
10016           # path is not listed in the libpath.  Setting hardcode_minus_L
10017           # to unsupported forces relinking
10018           hardcode_minus_L_CXX=yes
10019           hardcode_libdir_flag_spec_CXX='-L$libdir'
10020           hardcode_libdir_separator_CXX=
10021         fi
10022       esac
10023       shared_flag='-shared'
10024     else
10025       # not using gcc
10026       if test "$host_cpu" = ia64; then
10027         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10028         # chokes on -Wl,-G. The following line is correct:
10029         shared_flag='-G'
10030       else
10031         if test "$aix_use_runtimelinking" = yes; then
10032           shared_flag='${wl}-G'
10033         else
10034           shared_flag='${wl}-bM:SRE'
10035         fi
10036       fi
10037     fi
10039     # It seems that -bexpall does not export symbols beginning with
10040     # underscore (_), so it is better to generate a list of symbols to export.
10041     always_export_symbols_CXX=yes
10042     if test "$aix_use_runtimelinking" = yes; then
10043       # Warning - without using the other runtime loading flags (-brtl),
10044       # -berok will link without error, but may produce a broken library.
10045       allow_undefined_flag_CXX='-berok'
10046       # Determine the default libpath from the value encoded in an empty executable.
10047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h.  */
10051 main ()
10054   ;
10055   return 0;
10057 _ACEOF
10058 if ac_fn_cxx_try_link "$LINENO"; then :
10059   
10060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10062 # Check for a 64-bit object if we didn't find anything.
10063 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10064 }'`; fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067     conftest$ac_exeext conftest.$ac_ext
10068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10070       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10072       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10073      else
10074       if test "$host_cpu" = ia64; then
10075         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10076         allow_undefined_flag_CXX="-z nodefs"
10077         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10078       else
10079         # Determine the default libpath from the value encoded in an empty executable.
10080         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h.  */
10084 main ()
10087   ;
10088   return 0;
10090 _ACEOF
10091 if ac_fn_cxx_try_link "$LINENO"; then :
10092   
10093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10095 # Check for a 64-bit object if we didn't find anything.
10096 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10097 }'`; fi
10099 rm -f core conftest.err conftest.$ac_objext \
10100     conftest$ac_exeext conftest.$ac_ext
10101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10103         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10104         # Warning - without using the other run time loading flags,
10105         # -berok will link without error, but may produce a broken library.
10106         no_undefined_flag_CXX=' ${wl}-bernotok'
10107         allow_undefined_flag_CXX=' ${wl}-berok'
10108         # -bexpall does not export symbols beginning with underscore (_)
10109         always_export_symbols_CXX=yes
10110         # Exported symbols can be pulled into shared objects from archives
10111         whole_archive_flag_spec_CXX=' '
10112         archive_cmds_need_lc_CXX=yes
10113         # This is similar to how AIX traditionally builds it's shared libraries.
10114         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10115       fi
10116     fi
10117     ;;
10118   chorus*)
10119     case $cc_basename in
10120       *)
10121         # FIXME: insert proper C++ library support
10122         ld_shlibs_CXX=no
10123         ;;
10124     esac
10125     ;;
10127   cygwin* | mingw* | pw32*)
10128     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10129     # as there is no search path for DLLs.
10130     hardcode_libdir_flag_spec_CXX='-L$libdir'
10131     allow_undefined_flag_CXX=unsupported
10132     always_export_symbols_CXX=no
10133     enable_shared_with_static_runtimes_CXX=yes
10135     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10136       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10137       # If the export-symbols file already is a .def file (1st line
10138       # is EXPORTS), use it as is; otherwise, prepend...
10139       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140         cp $export_symbols $output_objdir/$soname.def;
10141       else
10142         echo EXPORTS > $output_objdir/$soname.def;
10143         cat $export_symbols >> $output_objdir/$soname.def;
10144       fi~
10145       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10146     else
10147       ld_shlibs_CXX=no
10148     fi
10149   ;;
10151   darwin* | rhapsody*)
10152   if test "$GXX" = yes; then
10153     archive_cmds_need_lc_CXX=no
10154     case "$host_os" in
10155     rhapsody* | darwin1.[012])
10156       allow_undefined_flag_CXX='-undefined suppress'
10157       ;;
10158     *) # Darwin 1.3 on
10159       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10160         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10161       else
10162         case ${MACOSX_DEPLOYMENT_TARGET} in
10163           10.[012])
10164             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10165             ;;
10166           10.*)
10167             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10168             ;;
10169         esac
10170       fi
10171       ;;
10172     esac
10173     lt_int_apple_cc_single_mod=no
10174     output_verbose_link_cmd='echo'
10175     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10176       lt_int_apple_cc_single_mod=yes
10177     fi
10178     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10179       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10180     else
10181       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10182     fi
10183     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10185     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10186     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10187       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10188     else
10189       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10190     fi
10191     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10192     hardcode_direct_CXX=no
10193     hardcode_automatic_CXX=yes
10194     hardcode_shlibpath_var_CXX=unsupported
10195     whole_archive_flag_spec_CXX='-all_load $convenience'
10196     link_all_deplibs_CXX=yes
10197   else
10198     ld_shlibs_CXX=no
10199   fi
10200     ;;
10202   dgux*)
10203     case $cc_basename in
10204       ec++)
10205         # FIXME: insert proper C++ library support
10206         ld_shlibs_CXX=no
10207         ;;
10208       ghcx)
10209         # Green Hills C++ Compiler
10210         # FIXME: insert proper C++ library support
10211         ld_shlibs_CXX=no
10212         ;;
10213       *)
10214         # FIXME: insert proper C++ library support
10215         ld_shlibs_CXX=no
10216         ;;
10217     esac
10218     ;;
10219   freebsd12*)
10220     # C++ shared libraries reported to be fairly broken before switch to ELF
10221     ld_shlibs_CXX=no
10222     ;;
10223   freebsd-elf*)
10224     archive_cmds_need_lc_CXX=no
10225     ;;
10226   freebsd* | kfreebsd*-gnu)
10227     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10228     # conventions
10229     ld_shlibs_CXX=yes
10230     ;;
10231   gnu*)
10232     ;;
10233   hpux9*)
10234     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10235     hardcode_libdir_separator_CXX=:
10236     export_dynamic_flag_spec_CXX='${wl}-E'
10237     hardcode_direct_CXX=yes
10238     hardcode_minus_L_CXX=yes # Not in the search PATH,
10239                                 # but as the default
10240                                 # location of the library.
10242     case $cc_basename in
10243     CC)
10244       # FIXME: insert proper C++ library support
10245       ld_shlibs_CXX=no
10246       ;;
10247     aCC)
10248       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10249       # Commands to make compiler produce verbose output that lists
10250       # what "hidden" libraries, object files and flags are used when
10251       # linking a shared library.
10252       #
10253       # There doesn't appear to be a way to prevent this compiler from
10254       # explicitly linking system object files so we need to strip them
10255       # from the output so that they don't get included in the library
10256       # dependencies.
10257       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10258       ;;
10259     *)
10260       if test "$GXX" = yes; then
10261         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10262       else
10263         # FIXME: insert proper C++ library support
10264         ld_shlibs_CXX=no
10265       fi
10266       ;;
10267     esac
10268     ;;
10269   hpux10*|hpux11*)
10270     if test $with_gnu_ld = no; then
10271       case "$host_cpu" in
10272       hppa*64*)
10273         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10274         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10275         hardcode_libdir_separator_CXX=:
10276         ;;
10277       ia64*)
10278         hardcode_libdir_flag_spec_CXX='-L$libdir'
10279         ;;
10280       *)
10281         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10282         hardcode_libdir_separator_CXX=:
10283         export_dynamic_flag_spec_CXX='${wl}-E'
10284         ;;
10285       esac
10286     fi
10287     case "$host_cpu" in
10288     hppa*64*)
10289       hardcode_direct_CXX=no
10290       hardcode_shlibpath_var_CXX=no
10291       ;;
10292     ia64*)
10293       hardcode_direct_CXX=no
10294       hardcode_shlibpath_var_CXX=no
10295       hardcode_minus_L_CXX=yes # Not in the search PATH,
10296                                               # but as the default
10297                                               # location of the library.
10298       ;;
10299     *)
10300       hardcode_direct_CXX=yes
10301       hardcode_minus_L_CXX=yes # Not in the search PATH,
10302                                               # but as the default
10303                                               # location of the library.
10304       ;;
10305     esac
10307     case $cc_basename in
10308       CC)
10309         # FIXME: insert proper C++ library support
10310         ld_shlibs_CXX=no
10311         ;;
10312       aCC)
10313         case "$host_cpu" in
10314         hppa*64*|ia64*)
10315           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10316           ;;
10317         *)
10318           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10319           ;;
10320         esac
10321         # Commands to make compiler produce verbose output that lists
10322         # what "hidden" libraries, object files and flags are used when
10323         # linking a shared library.
10324         #
10325         # There doesn't appear to be a way to prevent this compiler from
10326         # explicitly linking system object files so we need to strip them
10327         # from the output so that they don't get included in the library
10328         # dependencies.
10329         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10330         ;;
10331       *)
10332         if test "$GXX" = yes; then
10333           if test $with_gnu_ld = no; then
10334             case "$host_cpu" in
10335             ia64*|hppa*64*)
10336               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10337               ;;
10338             *)
10339               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10340               ;;
10341             esac
10342           fi
10343         else
10344           # FIXME: insert proper C++ library support
10345           ld_shlibs_CXX=no
10346         fi
10347         ;;
10348     esac
10349     ;;
10350   irix5* | irix6*)
10351     case $cc_basename in
10352       CC)
10353         # SGI C++
10354         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10356         # Archives containing C++ object files must be created using
10357         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10358         # necessary to make sure instantiated templates are included
10359         # in the archive.
10360         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10361         ;;
10362       *)
10363         if test "$GXX" = yes; then
10364           if test "$with_gnu_ld" = no; then
10365             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10366           else
10367             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10368           fi
10369         fi
10370         link_all_deplibs_CXX=yes
10371         ;;
10372     esac
10373     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10374     hardcode_libdir_separator_CXX=:
10375     ;;
10376   linux*)
10377     case $cc_basename in
10378       KCC)
10379         # Kuck and Associates, Inc. (KAI) C++ Compiler
10381         # KCC will only create a shared library if the output file
10382         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10383         # to its proper name (with version) after linking.
10384         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10385         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10386         # Commands to make compiler produce verbose output that lists
10387         # what "hidden" libraries, object files and flags are used when
10388         # linking a shared library.
10389         #
10390         # There doesn't appear to be a way to prevent this compiler from
10391         # explicitly linking system object files so we need to strip them
10392         # from the output so that they don't get included in the library
10393         # dependencies.
10394         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10396         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10397         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10399         # Archives containing C++ object files must be created using
10400         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10401         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10402         ;;
10403       icpc)
10404         # Intel C++
10405         with_gnu_ld=yes
10406         archive_cmds_need_lc_CXX=no
10407         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10409         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10410         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10412         ;;
10413       cxx)
10414         # Compaq C++
10415         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10418         runpath_var=LD_RUN_PATH
10419         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10420         hardcode_libdir_separator_CXX=:
10422         # Commands to make compiler produce verbose output that lists
10423         # what "hidden" libraries, object files and flags are used when
10424         # linking a shared library.
10425         #
10426         # There doesn't appear to be a way to prevent this compiler from
10427         # explicitly linking system object files so we need to strip them
10428         # from the output so that they don't get included in the library
10429         # dependencies.
10430         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10431         ;;
10432     esac
10433     ;;
10434   lynxos*)
10435     # FIXME: insert proper C++ library support
10436     ld_shlibs_CXX=no
10437     ;;
10438   m88k*)
10439     # FIXME: insert proper C++ library support
10440     ld_shlibs_CXX=no
10441     ;;
10442   mvs*)
10443     case $cc_basename in
10444       cxx)
10445         # FIXME: insert proper C++ library support
10446         ld_shlibs_CXX=no
10447         ;;
10448       *)
10449         # FIXME: insert proper C++ library support
10450         ld_shlibs_CXX=no
10451         ;;
10452     esac
10453     ;;
10454   netbsd* | knetbsd*-gnu)
10455     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10456       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10457       wlarc=
10458       hardcode_libdir_flag_spec_CXX='-R$libdir'
10459       hardcode_direct_CXX=yes
10460       hardcode_shlibpath_var_CXX=no
10461     fi
10462     # Workaround some broken pre-1.5 toolchains
10463     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10464     ;;
10465   osf3*)
10466     case $cc_basename in
10467       KCC)
10468         # Kuck and Associates, Inc. (KAI) C++ Compiler
10470         # KCC will only create a shared library if the output file
10471         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10472         # to its proper name (with version) after linking.
10473         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10475         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10476         hardcode_libdir_separator_CXX=:
10478         # Archives containing C++ object files must be created using
10479         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10480         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10482         ;;
10483       RCC)
10484         # Rational C++ 2.4.1
10485         # FIXME: insert proper C++ library support
10486         ld_shlibs_CXX=no
10487         ;;
10488       cxx)
10489         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10490         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10492         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10493         hardcode_libdir_separator_CXX=:
10495         # Commands to make compiler produce verbose output that lists
10496         # what "hidden" libraries, object files and flags are used when
10497         # linking a shared library.
10498         #
10499         # There doesn't appear to be a way to prevent this compiler from
10500         # explicitly linking system object files so we need to strip them
10501         # from the output so that they don't get included in the library
10502         # dependencies.
10503         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10504         ;;
10505       *)
10506         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10507           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10508           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10510           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10511           hardcode_libdir_separator_CXX=:
10513           # Commands to make compiler produce verbose output that lists
10514           # what "hidden" libraries, object files and flags are used when
10515           # linking a shared library.
10516           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10518         else
10519           # FIXME: insert proper C++ library support
10520           ld_shlibs_CXX=no
10521         fi
10522         ;;
10523     esac
10524     ;;
10525   osf4* | osf5*)
10526     case $cc_basename in
10527       KCC)
10528         # Kuck and Associates, Inc. (KAI) C++ Compiler
10530         # KCC will only create a shared library if the output file
10531         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10532         # to its proper name (with version) after linking.
10533         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10535         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10536         hardcode_libdir_separator_CXX=:
10538         # Archives containing C++ object files must be created using
10539         # the KAI C++ compiler.
10540         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10541         ;;
10542       RCC)
10543         # Rational C++ 2.4.1
10544         # FIXME: insert proper C++ library support
10545         ld_shlibs_CXX=no
10546         ;;
10547       cxx)
10548         allow_undefined_flag_CXX=' -expect_unresolved \*'
10549         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10550         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10551           echo "-hidden">> $lib.exp~
10552           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10553           $rm $lib.exp'
10555         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10556         hardcode_libdir_separator_CXX=:
10558         # Commands to make compiler produce verbose output that lists
10559         # what "hidden" libraries, object files and flags are used when
10560         # linking a shared library.
10561         #
10562         # There doesn't appear to be a way to prevent this compiler from
10563         # explicitly linking system object files so we need to strip them
10564         # from the output so that they don't get included in the library
10565         # dependencies.
10566         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10567         ;;
10568       *)
10569         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10570           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10571          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10573           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10574           hardcode_libdir_separator_CXX=:
10576           # Commands to make compiler produce verbose output that lists
10577           # what "hidden" libraries, object files and flags are used when
10578           # linking a shared library.
10579           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10581         else
10582           # FIXME: insert proper C++ library support
10583           ld_shlibs_CXX=no
10584         fi
10585         ;;
10586     esac
10587     ;;
10588   psos*)
10589     # FIXME: insert proper C++ library support
10590     ld_shlibs_CXX=no
10591     ;;
10592   sco*)
10593     archive_cmds_need_lc_CXX=no
10594     case $cc_basename in
10595       CC)
10596         # FIXME: insert proper C++ library support
10597         ld_shlibs_CXX=no
10598         ;;
10599       *)
10600         # FIXME: insert proper C++ library support
10601         ld_shlibs_CXX=no
10602         ;;
10603     esac
10604     ;;
10605   sunos4*)
10606     case $cc_basename in
10607       CC)
10608         # Sun C++ 4.x
10609         # FIXME: insert proper C++ library support
10610         ld_shlibs_CXX=no
10611         ;;
10612       lcc)
10613         # Lucid
10614         # FIXME: insert proper C++ library support
10615         ld_shlibs_CXX=no
10616         ;;
10617       *)
10618         # FIXME: insert proper C++ library support
10619         ld_shlibs_CXX=no
10620         ;;
10621     esac
10622     ;;
10623   solaris*)
10624     case $cc_basename in
10625       CC)
10626         # Sun C++ 4.2, 5.x and Centerline C++
10627         no_undefined_flag_CXX=' -zdefs'
10628         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10629         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10630         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10632         hardcode_libdir_flag_spec_CXX='-R$libdir'
10633         hardcode_shlibpath_var_CXX=no
10634         case $host_os in
10635           solaris2.0-5 | solaris2.0-5.*) ;;
10636           *)
10637             # The C++ compiler is used as linker so we must use $wl
10638             # flag to pass the commands to the underlying system
10639             # linker.
10640             # Supported since Solaris 2.6 (maybe 2.5.1?)
10641             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10642             ;;
10643         esac
10644         link_all_deplibs_CXX=yes
10646         # Commands to make compiler produce verbose output that lists
10647         # what "hidden" libraries, object files and flags are used when
10648         # linking a shared library.
10649         #
10650         # There doesn't appear to be a way to prevent this compiler from
10651         # explicitly linking system object files so we need to strip them
10652         # from the output so that they don't get included in the library
10653         # dependencies.
10654         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10656         # Archives containing C++ object files must be created using
10657         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10658         # necessary to make sure instantiated templates are included
10659         # in the archive.
10660         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10661         ;;
10662       gcx)
10663         # Green Hills C++ Compiler
10664         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10666         # The C++ compiler must be used to create the archive.
10667         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10668         ;;
10669       *)
10670         # GNU C++ compiler with Solaris linker
10671         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10672           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10673           if $CC --version | grep -v '^2\.7' > /dev/null; then
10674             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10675             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10676                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10678             # Commands to make compiler produce verbose output that lists
10679             # what "hidden" libraries, object files and flags are used when
10680             # linking a shared library.
10681             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10682           else
10683             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10684             # platform.
10685             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10686             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10687                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10689             # Commands to make compiler produce verbose output that lists
10690             # what "hidden" libraries, object files and flags are used when
10691             # linking a shared library.
10692             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10693           fi
10695           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10696         fi
10697         ;;
10698     esac
10699     ;;
10700   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10701     archive_cmds_need_lc_CXX=no
10702     ;;
10703   tandem*)
10704     case $cc_basename in
10705       NCC)
10706         # NonStop-UX NCC 3.20
10707         # FIXME: insert proper C++ library support
10708         ld_shlibs_CXX=no
10709         ;;
10710       *)
10711         # FIXME: insert proper C++ library support
10712         ld_shlibs_CXX=no
10713         ;;
10714     esac
10715     ;;
10716   vxworks*)
10717     # FIXME: insert proper C++ library support
10718     ld_shlibs_CXX=no
10719     ;;
10720   *)
10721     # FIXME: insert proper C++ library support
10722     ld_shlibs_CXX=no
10723     ;;
10724 esac
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10726 $as_echo "$ld_shlibs_CXX" >&6; }
10727 test "$ld_shlibs_CXX" = no && can_build_shared=no
10729 GCC_CXX="$GXX"
10730 LD_CXX="$LD"
10733 cat > conftest.$ac_ext <<EOF
10734 class Foo
10736 public:
10737   Foo (void) { a = 0; }
10738 private:
10739   int a;
10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10744   (eval $ac_compile) 2>&5
10745   ac_status=$?
10746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747   test $ac_status = 0; }; then
10748   # Parse the compiler output and extract the necessary
10749   # objects, libraries and library flags.
10751   # Sentinel used to keep track of whether or not we are before
10752   # the conftest object file.
10753   pre_test_object_deps_done=no
10755   # The `*' in the case matches for architectures that use `case' in
10756   # $output_verbose_cmd can trigger glob expansion during the loop
10757   # eval without this substitution.
10758   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10760   for p in `eval $output_verbose_link_cmd`; do
10761     case $p in
10763     -L* | -R* | -l*)
10764        # Some compilers place space between "-{L,R}" and the path.
10765        # Remove the space.
10766        if test $p = "-L" \
10767           || test $p = "-R"; then
10768          prev=$p
10769          continue
10770        else
10771          prev=
10772        fi
10774        if test "$pre_test_object_deps_done" = no; then
10775          case $p in
10776          -L* | -R*)
10777            # Internal compiler library paths should come after those
10778            # provided the user.  The postdeps already come after the
10779            # user supplied libs so there is no need to process them.
10780            if test -z "$compiler_lib_search_path_CXX"; then
10781              compiler_lib_search_path_CXX="${prev}${p}"
10782            else
10783              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10784            fi
10785            ;;
10786          # The "-l" case would never come before the object being
10787          # linked, so don't bother handling this case.
10788          esac
10789        else
10790          if test -z "$postdeps_CXX"; then
10791            postdeps_CXX="${prev}${p}"
10792          else
10793            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10794          fi
10795        fi
10796        ;;
10798     *.$objext)
10799        # This assumes that the test object file only shows up
10800        # once in the compiler output.
10801        if test "$p" = "conftest.$objext"; then
10802          pre_test_object_deps_done=yes
10803          continue
10804        fi
10806        if test "$pre_test_object_deps_done" = no; then
10807          if test -z "$predep_objects_CXX"; then
10808            predep_objects_CXX="$p"
10809          else
10810            predep_objects_CXX="$predep_objects_CXX $p"
10811          fi
10812        else
10813          if test -z "$postdep_objects_CXX"; then
10814            postdep_objects_CXX="$p"
10815          else
10816            postdep_objects_CXX="$postdep_objects_CXX $p"
10817          fi
10818        fi
10819        ;;
10821     *) ;; # Ignore the rest.
10823     esac
10824   done
10826   # Clean up.
10827   rm -f a.out a.exe
10828 else
10829   echo "libtool.m4: error: problem compiling CXX test program"
10832 $rm -f confest.$objext
10834 case " $postdeps_CXX " in
10835 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10836 esac
10838 lt_prog_compiler_wl_CXX=
10839 lt_prog_compiler_pic_CXX=
10840 lt_prog_compiler_static_CXX=
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10845   # C++ specific cases for pic, static, wl, etc.
10846   if test "$GXX" = yes; then
10847     lt_prog_compiler_wl_CXX='-Wl,'
10848     lt_prog_compiler_static_CXX='-static'
10850     case $host_os in
10851     aix*)
10852       # All AIX code is PIC.
10853       if test "$host_cpu" = ia64; then
10854         # AIX 5 now supports IA64 processor
10855         lt_prog_compiler_static_CXX='-Bstatic'
10856       fi
10857       ;;
10858     amigaos*)
10859       # FIXME: we need at least 68020 code to build shared libraries, but
10860       # adding the `-m68020' flag to GCC prevents building anything better,
10861       # like `-m68040'.
10862       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10863       ;;
10864     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10865       # PIC is the default for these OSes.
10866       ;;
10867     mingw* | os2* | pw32*)
10868       # This hack is so that the source file can tell whether it is being
10869       # built for inclusion in a dll (and should export symbols for example).
10870       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10871       ;;
10872     darwin* | rhapsody*)
10873       # PIC is the default on this platform
10874       # Common symbols not allowed in MH_DYLIB files
10875       lt_prog_compiler_pic_CXX='-fno-common'
10876       ;;
10877     *djgpp*)
10878       # DJGPP does not support shared libraries at all
10879       lt_prog_compiler_pic_CXX=
10880       ;;
10881     sysv4*MP*)
10882       if test -d /usr/nec; then
10883         lt_prog_compiler_pic_CXX=-Kconform_pic
10884       fi
10885       ;;
10886     hpux*)
10887       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10888       # not for PA HP-UX.
10889       case "$host_cpu" in
10890       hppa*64*|ia64*)
10891         ;;
10892       *)
10893         lt_prog_compiler_pic_CXX='-fPIC'
10894         ;;
10895       esac
10896       ;;
10897     *)
10898       lt_prog_compiler_pic_CXX='-fPIC'
10899       ;;
10900     esac
10901   else
10902     case $host_os in
10903       aix4* | aix5*)
10904         # All AIX code is PIC.
10905         if test "$host_cpu" = ia64; then
10906           # AIX 5 now supports IA64 processor
10907           lt_prog_compiler_static_CXX='-Bstatic'
10908         else
10909           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10910         fi
10911         ;;
10912       chorus*)
10913         case $cc_basename in
10914         cxch68)
10915           # Green Hills C++ Compiler
10916           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10917           ;;
10918         esac
10919         ;;
10920       dgux*)
10921         case $cc_basename in
10922           ec++)
10923             lt_prog_compiler_pic_CXX='-KPIC'
10924             ;;
10925           ghcx)
10926             # Green Hills C++ Compiler
10927             lt_prog_compiler_pic_CXX='-pic'
10928             ;;
10929           *)
10930             ;;
10931         esac
10932         ;;
10933       freebsd* | kfreebsd*-gnu)
10934         # FreeBSD uses GNU C++
10935         ;;
10936       hpux9* | hpux10* | hpux11*)
10937         case $cc_basename in
10938           CC)
10939             lt_prog_compiler_wl_CXX='-Wl,'
10940             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10941             if test "$host_cpu" != ia64; then
10942               lt_prog_compiler_pic_CXX='+Z'
10943             fi
10944             ;;
10945           aCC)
10946             lt_prog_compiler_wl_CXX='-Wl,'
10947             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10948             case "$host_cpu" in
10949             hppa*64*|ia64*)
10950               # +Z the default
10951               ;;
10952             *)
10953               lt_prog_compiler_pic_CXX='+Z'
10954               ;;
10955             esac
10956             ;;
10957           *)
10958             ;;
10959         esac
10960         ;;
10961       irix5* | irix6* | nonstopux*)
10962         case $cc_basename in
10963           CC)
10964             lt_prog_compiler_wl_CXX='-Wl,'
10965             lt_prog_compiler_static_CXX='-non_shared'
10966             # CC pic flag -KPIC is the default.
10967             ;;
10968           *)
10969             ;;
10970         esac
10971         ;;
10972       linux*)
10973         case $cc_basename in
10974           KCC)
10975             # KAI C++ Compiler
10976             lt_prog_compiler_wl_CXX='--backend -Wl,'
10977             lt_prog_compiler_pic_CXX='-fPIC'
10978             ;;
10979           icpc)
10980             # Intel C++
10981             lt_prog_compiler_wl_CXX='-Wl,'
10982             lt_prog_compiler_pic_CXX='-KPIC'
10983             lt_prog_compiler_static_CXX='-static'
10984             ;;
10985           cxx)
10986             # Compaq C++
10987             # Make sure the PIC flag is empty.  It appears that all Alpha
10988             # Linux and Compaq Tru64 Unix objects are PIC.
10989             lt_prog_compiler_pic_CXX=
10990             lt_prog_compiler_static_CXX='-non_shared'
10991             ;;
10992           *)
10993             ;;
10994         esac
10995         ;;
10996       lynxos*)
10997         ;;
10998       m88k*)
10999         ;;
11000       mvs*)
11001         case $cc_basename in
11002           cxx)
11003             lt_prog_compiler_pic_CXX='-W c,exportall'
11004             ;;
11005           *)
11006             ;;
11007         esac
11008         ;;
11009       netbsd* | knetbsd*-gnu)
11010         ;;
11011       osf3* | osf4* | osf5*)
11012         case $cc_basename in
11013           KCC)
11014             lt_prog_compiler_wl_CXX='--backend -Wl,'
11015             ;;
11016           RCC)
11017             # Rational C++ 2.4.1
11018             lt_prog_compiler_pic_CXX='-pic'
11019             ;;
11020           cxx)
11021             # Digital/Compaq C++
11022             lt_prog_compiler_wl_CXX='-Wl,'
11023             # Make sure the PIC flag is empty.  It appears that all Alpha
11024             # Linux and Compaq Tru64 Unix objects are PIC.
11025             lt_prog_compiler_pic_CXX=
11026             lt_prog_compiler_static_CXX='-non_shared'
11027             ;;
11028           *)
11029             ;;
11030         esac
11031         ;;
11032       psos*)
11033         ;;
11034       sco*)
11035         case $cc_basename in
11036           CC)
11037             lt_prog_compiler_pic_CXX='-fPIC'
11038             ;;
11039           *)
11040             ;;
11041         esac
11042         ;;
11043       solaris*)
11044         case $cc_basename in
11045           CC)
11046             # Sun C++ 4.2, 5.x and Centerline C++
11047             lt_prog_compiler_pic_CXX='-KPIC'
11048             lt_prog_compiler_static_CXX='-Bstatic'
11049             lt_prog_compiler_wl_CXX='-Qoption ld '
11050             ;;
11051           gcx)
11052             # Green Hills C++ Compiler
11053             lt_prog_compiler_pic_CXX='-PIC'
11054             ;;
11055           *)
11056             ;;
11057         esac
11058         ;;
11059       sunos4*)
11060         case $cc_basename in
11061           CC)
11062             # Sun C++ 4.x
11063             lt_prog_compiler_pic_CXX='-pic'
11064             lt_prog_compiler_static_CXX='-Bstatic'
11065             ;;
11066           lcc)
11067             # Lucid
11068             lt_prog_compiler_pic_CXX='-pic'
11069             ;;
11070           *)
11071             ;;
11072         esac
11073         ;;
11074       tandem*)
11075         case $cc_basename in
11076           NCC)
11077             # NonStop-UX NCC 3.20
11078             lt_prog_compiler_pic_CXX='-KPIC'
11079             ;;
11080           *)
11081             ;;
11082         esac
11083         ;;
11084       unixware*)
11085         ;;
11086       vxworks*)
11087         ;;
11088       *)
11089         lt_prog_compiler_can_build_shared_CXX=no
11090         ;;
11091     esac
11092   fi
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11095 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11098 # Check to make sure the PIC flag actually works.
11100 if test -n "$lt_prog_compiler_pic_CXX"; then
11101   
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11103 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11104 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11105   $as_echo_n "(cached) " >&6
11106 else
11107   lt_prog_compiler_pic_works_CXX=no
11108   ac_outfile=conftest.$ac_objext
11109    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11110    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11111    # Insert the option either (1) after the last *FLAGS variable, or
11112    # (2) before a word containing "conftest.", or (3) at the end.
11113    # Note that $ac_compile itself does not contain backslashes and begins
11114    # with a dollar sign (not a hyphen), so the echo should work correctly.
11115    # The option is referenced via a variable to avoid confusing sed.
11116    lt_compile=`echo "$ac_compile" | $SED \
11117    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11119    -e 's:$: $lt_compiler_flag:'`
11120    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11121    (eval "$lt_compile" 2>conftest.err)
11122    ac_status=$?
11123    cat conftest.err >&5
11124    echo "$as_me:__oline__: \$? = $ac_status" >&5
11125    if (exit $ac_status) && test -s "$ac_outfile"; then
11126      # The compiler can only warn and ignore the option if not recognized
11127      # So say no if there are warnings
11128      if test ! -s conftest.err; then
11129        lt_prog_compiler_pic_works_CXX=yes
11130      fi
11131    fi
11132    $rm conftest*
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11136 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11138 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11139     case $lt_prog_compiler_pic_CXX in
11140      "" | " "*) ;;
11141      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11142      esac
11143 else
11144     lt_prog_compiler_pic_CXX=
11145      lt_prog_compiler_can_build_shared_CXX=no
11149 case "$host_os" in
11150   # For platforms which do not support PIC, -DPIC is meaningless:
11151   *djgpp*)
11152     lt_prog_compiler_pic_CXX=
11153     ;;
11154   *)
11155     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11156     ;;
11157 esac
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11161 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   lt_cv_prog_compiler_c_o_CXX=no
11165    $rm -r conftest 2>/dev/null
11166    mkdir conftest
11167    cd conftest
11168    mkdir out
11169    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11171    lt_compiler_flag="-o out/conftest2.$ac_objext"
11172    # Insert the option either (1) after the last *FLAGS variable, or
11173    # (2) before a word containing "conftest.", or (3) at the end.
11174    # Note that $ac_compile itself does not contain backslashes and begins
11175    # with a dollar sign (not a hyphen), so the echo should work correctly.
11176    lt_compile=`echo "$ac_compile" | $SED \
11177    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11178    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11179    -e 's:$: $lt_compiler_flag:'`
11180    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11181    (eval "$lt_compile" 2>out/conftest.err)
11182    ac_status=$?
11183    cat out/conftest.err >&5
11184    echo "$as_me:__oline__: \$? = $ac_status" >&5
11185    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11186    then
11187      # The compiler can only warn and ignore the option if not recognized
11188      # So say no if there are warnings
11189      if test ! -s out/conftest.err; then
11190        lt_cv_prog_compiler_c_o_CXX=yes
11191      fi
11192    fi
11193    chmod u+w .
11194    $rm conftest*
11195    # SGI C++ compiler will create directory out/ii_files/ for
11196    # template instantiation
11197    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11198    $rm out/* && rmdir out
11199    cd ..
11200    rmdir conftest
11201    $rm conftest*
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11208 hard_links="nottested"
11209 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11210   # do not overwrite the value of need_locks provided by the user
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11212 $as_echo_n "checking if we can lock with hard links... " >&6; }
11213   hard_links=yes
11214   $rm conftest*
11215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11216   touch conftest.a
11217   ln conftest.a conftest.b 2>&5 || hard_links=no
11218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11220 $as_echo "$hard_links" >&6; }
11221   if test "$hard_links" = no; then
11222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11223 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11224     need_locks=warn
11225   fi
11226 else
11227   need_locks=no
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11233   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11234   case $host_os in
11235   aix4* | aix5*)
11236     # If we're using GNU nm, then we don't want the "-C" option.
11237     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11238     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11239       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11240     else
11241       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11242     fi
11243     ;;
11244   pw32*)
11245     export_symbols_cmds_CXX="$ltdll_cmds"
11246   ;;
11247   cygwin* | mingw*)
11248     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11249   ;;
11250   *)
11251     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11252   ;;
11253   esac
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11256 $as_echo "$ld_shlibs_CXX" >&6; }
11257 test "$ld_shlibs_CXX" = no && can_build_shared=no
11259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11260 if test "$GCC" = yes; then
11261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11265 # Do we need to explicitly link libc?
11267 case "x$archive_cmds_need_lc_CXX" in
11268 x|xyes)
11269   # Assume -lc should be added
11270   archive_cmds_need_lc_CXX=yes
11272   if test "$enable_shared" = yes && test "$GCC" = yes; then
11273     case $archive_cmds_CXX in
11274     *'~'*)
11275       # FIXME: we may have to deal with multi-command sequences.
11276       ;;
11277     '$CC '*)
11278       # Test whether the compiler implicitly links with -lc since on some
11279       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11280       # to ld, don't add -lc before -lgcc.
11281       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11282 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11283       $rm conftest*
11284       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11286       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11287   (eval $ac_compile) 2>&5
11288   ac_status=$?
11289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290   test $ac_status = 0; } 2>conftest.err; then
11291         soname=conftest
11292         lib=conftest
11293         libobjs=conftest.$ac_objext
11294         deplibs=
11295         wl=$lt_prog_compiler_wl_CXX
11296         compiler_flags=-v
11297         linker_flags=-v
11298         verstring=
11299         output_objdir=.
11300         libname=conftest
11301         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11302         allow_undefined_flag_CXX=
11303         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11304   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11305   ac_status=$?
11306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307   test $ac_status = 0; }
11308         then
11309           archive_cmds_need_lc_CXX=no
11310         else
11311           archive_cmds_need_lc_CXX=yes
11312         fi
11313         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11314       else
11315         cat conftest.err 1>&5
11316       fi
11317       $rm conftest*
11318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11319 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11320       ;;
11321     esac
11322   fi
11323   ;;
11324 esac
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11328 library_names_spec=
11329 libname_spec='lib$name'
11330 soname_spec=
11331 shrext=".so"
11332 postinstall_cmds=
11333 postuninstall_cmds=
11334 finish_cmds=
11335 finish_eval=
11336 shlibpath_var=
11337 shlibpath_overrides_runpath=unknown
11338 version_type=none
11339 dynamic_linker="$host_os ld.so"
11340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11341 if test "$GCC" = yes; then
11342   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11343   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11344     # if the path contains ";" then we assume it to be the separator
11345     # otherwise default to the standard path separator (i.e. ":") - it is
11346     # assumed that no part of a normal pathname contains ";" but that should
11347     # okay in the real world where ";" in dirpaths is itself problematic.
11348     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11349   else
11350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11351   fi
11352 else
11353   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11355 need_lib_prefix=unknown
11356 hardcode_into_libs=no
11358 # when you set need_version to no, make sure it does not cause -set_version
11359 # flags to be left without arguments
11360 need_version=unknown
11362 case $host_os in
11363 aix3*)
11364   version_type=linux
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11366   shlibpath_var=LIBPATH
11368   # AIX 3 has no versioning support, so we append a major version to the name.
11369   soname_spec='${libname}${release}${shared_ext}$major'
11370   ;;
11372 aix4* | aix5*)
11373   version_type=linux
11374   need_lib_prefix=no
11375   need_version=no
11376   hardcode_into_libs=yes
11377   if test "$host_cpu" = ia64; then
11378     # AIX 5 supports IA64
11379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11380     shlibpath_var=LD_LIBRARY_PATH
11381   else
11382     # With GCC up to 2.95.x, collect2 would create an import file
11383     # for dependence libraries.  The import file would start with
11384     # the line `#! .'.  This would cause the generated library to
11385     # depend on `.', always an invalid library.  This was fixed in
11386     # development snapshots of GCC prior to 3.0.
11387     case $host_os in
11388       aix4 | aix4.[01] | aix4.[01].*)
11389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11390            echo ' yes '
11391            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11392         :
11393       else
11394         can_build_shared=no
11395       fi
11396       ;;
11397     esac
11398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11399     # soname into executable. Probably we can add versioning support to
11400     # collect2, so additional links can be useful in future.
11401     if test "$aix_use_runtimelinking" = yes; then
11402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11403       # instead of lib<name>.a to let people know that these are not
11404       # typical AIX shared libraries.
11405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406     else
11407       # We preserve .a as extension for shared libraries through AIX4.2
11408       # and later when we are not doing run time linking.
11409       library_names_spec='${libname}${release}.a $libname.a'
11410       soname_spec='${libname}${release}${shared_ext}$major'
11411     fi
11412     shlibpath_var=LIBPATH
11413   fi
11414   ;;
11416 amigaos*)
11417   library_names_spec='$libname.ixlibrary $libname.a'
11418   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11419   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11420   ;;
11422 beos*)
11423   library_names_spec='${libname}${shared_ext}'
11424   dynamic_linker="$host_os ld.so"
11425   shlibpath_var=LIBRARY_PATH
11426   ;;
11428 bsdi4*)
11429   version_type=linux
11430   need_version=no
11431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432   soname_spec='${libname}${release}${shared_ext}$major'
11433   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11434   shlibpath_var=LD_LIBRARY_PATH
11435   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11436   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11437   # the default ld.so.conf also contains /usr/contrib/lib and
11438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11439   # libtool to hard-code these into programs
11440   ;;
11442 cygwin* | mingw* | pw32*)
11443   version_type=windows
11444   shrext=".dll"
11445   need_version=no
11446   need_lib_prefix=no
11448   case $GCC,$host_os in
11449   yes,cygwin* | yes,mingw* | yes,pw32*)
11450     library_names_spec='$libname.dll.a'
11451     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11452     postinstall_cmds='base_file=`basename \${file}`~
11453       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11454       dldir=$destdir/`dirname \$dlpath`~
11455       test -d \$dldir || mkdir -p \$dldir~
11456       $install_prog $dir/$dlname \$dldir/$dlname'
11457     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11458       dlpath=$dir/\$dldll~
11459        $rm \$dlpath'
11460     shlibpath_overrides_runpath=yes
11462     case $host_os in
11463     cygwin*)
11464       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11465       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11466       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11467       ;;
11468     mingw*)
11469       # MinGW DLLs use traditional 'lib' prefix
11470       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11472       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11473         # It is most probably a Windows format PATH printed by
11474         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11475         # path with ; separators, and with drive letters. We can handle the
11476         # drive letters (cygwin fileutils understands them), so leave them,
11477         # especially as we might pass files found there to a mingw objdump,
11478         # which wouldn't understand a cygwinified path. Ahh.
11479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11480       else
11481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11482       fi
11483       ;;
11484     pw32*)
11485       # pw32 DLLs use 'pw' prefix rather than 'lib'
11486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11487       ;;
11488     esac
11489     ;;
11491   *)
11492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11493     ;;
11494   esac
11495   dynamic_linker='Win32 ld.exe'
11496   # FIXME: first we should search . and the directory the executable is in
11497   shlibpath_var=PATH
11498   ;;
11500 darwin* | rhapsody*)
11501   dynamic_linker="$host_os dyld"
11502   version_type=darwin
11503   need_lib_prefix=no
11504   need_version=no
11505   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11506   soname_spec='${libname}${release}${major}$shared_ext'
11507   shlibpath_overrides_runpath=yes
11508   shlibpath_var=DYLD_LIBRARY_PATH
11509   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11510   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11511   if test "$GCC" = yes; then
11512     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11513   else
11514     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11515   fi
11516   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11517   ;;
11519 dgux*)
11520   version_type=linux
11521   need_lib_prefix=no
11522   need_version=no
11523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11524   soname_spec='${libname}${release}${shared_ext}$major'
11525   shlibpath_var=LD_LIBRARY_PATH
11526   ;;
11528 freebsd1*)
11529   dynamic_linker=no
11530   ;;
11532 kfreebsd*-gnu)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   shlibpath_overrides_runpath=no
11540   hardcode_into_libs=yes
11541   dynamic_linker='GNU ld.so'
11542   ;;
11544 freebsd*)
11545   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11546   version_type=freebsd-$objformat
11547   case $version_type in
11548     freebsd-elf*)
11549       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11550       need_version=no
11551       need_lib_prefix=no
11552       ;;
11553     freebsd-*)
11554       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11555       need_version=yes
11556       ;;
11557   esac
11558   shlibpath_var=LD_LIBRARY_PATH
11559   case $host_os in
11560   freebsd2*)
11561     shlibpath_overrides_runpath=yes
11562     ;;
11563   freebsd3.01* | freebsdelf3.01*)
11564     shlibpath_overrides_runpath=yes
11565     hardcode_into_libs=yes
11566     ;;
11567   *) # from 3.2 on
11568     shlibpath_overrides_runpath=no
11569     hardcode_into_libs=yes
11570     ;;
11571   esac
11572   ;;
11574 gnu*)
11575   version_type=linux
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   shlibpath_var=LD_LIBRARY_PATH
11581   hardcode_into_libs=yes
11582   ;;
11584 hpux9* | hpux10* | hpux11*)
11585   # Give a soname corresponding to the major version so that dld.sl refuses to
11586   # link against other versions.
11587   version_type=sunos
11588   need_lib_prefix=no
11589   need_version=no
11590   case "$host_cpu" in
11591   ia64*)
11592     shrext='.so'
11593     hardcode_into_libs=yes
11594     dynamic_linker="$host_os dld.so"
11595     shlibpath_var=LD_LIBRARY_PATH
11596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598     soname_spec='${libname}${release}${shared_ext}$major'
11599     if test "X$HPUX_IA64_MODE" = X32; then
11600       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11601     else
11602       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11603     fi
11604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11605     ;;
11606    hppa*64*)
11607      shrext='.sl'
11608      hardcode_into_libs=yes
11609      dynamic_linker="$host_os dld.sl"
11610      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11611      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613      soname_spec='${libname}${release}${shared_ext}$major'
11614      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11615      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11616      ;;
11617    *)
11618     shrext='.sl'
11619     dynamic_linker="$host_os dld.sl"
11620     shlibpath_var=SHLIB_PATH
11621     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623     soname_spec='${libname}${release}${shared_ext}$major'
11624     ;;
11625   esac
11626   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11627   postinstall_cmds='chmod 555 $lib'
11628   ;;
11630 irix5* | irix6* | nonstopux*)
11631   case $host_os in
11632     nonstopux*) version_type=nonstopux ;;
11633     *)
11634         if test "$lt_cv_prog_gnu_ld" = yes; then
11635                 version_type=linux
11636         else
11637                 version_type=irix
11638         fi ;;
11639   esac
11640   need_lib_prefix=no
11641   need_version=no
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11644   case $host_os in
11645   irix5* | nonstopux*)
11646     libsuff= shlibsuff=
11647     ;;
11648   *)
11649     case $LD in # libtool.m4 will add one of these switches to LD
11650     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11651       libsuff= shlibsuff= libmagic=32-bit;;
11652     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11653       libsuff=32 shlibsuff=N32 libmagic=N32;;
11654     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11655       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11656     *) libsuff= shlibsuff= libmagic=never-match;;
11657     esac
11658     ;;
11659   esac
11660   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11661   shlibpath_overrides_runpath=no
11662   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11663   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11664   hardcode_into_libs=yes
11665   ;;
11667 # No shared lib support for Linux oldld, aout, or coff.
11668 linux*oldld* | linux*aout* | linux*coff*)
11669   dynamic_linker=no
11670   ;;
11672 # This must be Linux ELF.
11673 linux*)
11674   version_type=linux
11675   need_lib_prefix=no
11676   need_version=no
11677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678   soname_spec='${libname}${release}${shared_ext}$major'
11679   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11680   shlibpath_var=LD_LIBRARY_PATH
11681   shlibpath_overrides_runpath=no
11682   # This implies no fast_install, which is unacceptable.
11683   # Some rework will be needed to allow for fast_install
11684   # before this can be enabled.
11685   hardcode_into_libs=yes
11687   # Append ld.so.conf contents to the search path
11688   if test -f /etc/ld.so.conf; then
11689     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11690     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11691   fi
11693   # We used to test for /lib/ld.so.1 and disable shared libraries on
11694   # powerpc, because MkLinux only supported shared libraries with the
11695   # GNU dynamic linker.  Since this was broken with cross compilers,
11696   # most powerpc-linux boxes support dynamic linking these days and
11697   # people can always --disable-shared, the test was removed, and we
11698   # assume the GNU/Linux dynamic linker is in use.
11699   dynamic_linker='GNU/Linux ld.so'
11700   ;;
11702 knetbsd*-gnu)
11703   version_type=linux
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=no
11710   hardcode_into_libs=yes
11711   dynamic_linker='GNU ld.so'
11712   ;;
11714 netbsd*)
11715   version_type=sunos
11716   need_lib_prefix=no
11717   need_version=no
11718   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11720     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721     dynamic_linker='NetBSD (a.out) ld.so'
11722   else
11723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11724     soname_spec='${libname}${release}${shared_ext}$major'
11725     dynamic_linker='NetBSD ld.elf_so'
11726   fi
11727   shlibpath_var=LD_LIBRARY_PATH
11728   shlibpath_overrides_runpath=yes
11729   hardcode_into_libs=yes
11730   ;;
11732 newsos6)
11733   version_type=linux
11734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735   shlibpath_var=LD_LIBRARY_PATH
11736   shlibpath_overrides_runpath=yes
11737   ;;
11739 nto-qnx*)
11740   version_type=linux
11741   need_lib_prefix=no
11742   need_version=no
11743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744   soname_spec='${libname}${release}${shared_ext}$major'
11745   shlibpath_var=LD_LIBRARY_PATH
11746   shlibpath_overrides_runpath=yes
11747   ;;
11749 openbsd*)
11750   version_type=sunos
11751   need_lib_prefix=no
11752   need_version=yes
11753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11755   shlibpath_var=LD_LIBRARY_PATH
11756   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11757     case $host_os in
11758       openbsd2.[89] | openbsd2.[89].*)
11759         shlibpath_overrides_runpath=no
11760         ;;
11761       *)
11762         shlibpath_overrides_runpath=yes
11763         ;;
11764       esac
11765   else
11766     shlibpath_overrides_runpath=yes
11767   fi
11768   ;;
11770 os2*)
11771   libname_spec='$name'
11772   shrext=".dll"
11773   need_lib_prefix=no
11774   library_names_spec='$libname${shared_ext} $libname.a'
11775   dynamic_linker='OS/2 ld.exe'
11776   shlibpath_var=LIBPATH
11777   ;;
11779 osf3* | osf4* | osf5*)
11780   version_type=osf
11781   need_lib_prefix=no
11782   need_version=no
11783   soname_spec='${libname}${release}${shared_ext}$major'
11784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11787   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11788   ;;
11790 sco3.2v5*)
11791   version_type=osf
11792   soname_spec='${libname}${release}${shared_ext}$major'
11793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794   shlibpath_var=LD_LIBRARY_PATH
11795   ;;
11797 solaris*)
11798   version_type=linux
11799   need_lib_prefix=no
11800   need_version=no
11801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   shlibpath_var=LD_LIBRARY_PATH
11804   shlibpath_overrides_runpath=yes
11805   hardcode_into_libs=yes
11806   # ldd complains unless libraries are executable
11807   postinstall_cmds='chmod +x $lib'
11808   ;;
11810 sunos4*)
11811   version_type=sunos
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11813   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=yes
11816   if test "$with_gnu_ld" = yes; then
11817     need_lib_prefix=no
11818   fi
11819   need_version=yes
11820   ;;
11822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11823   version_type=linux
11824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825   soname_spec='${libname}${release}${shared_ext}$major'
11826   shlibpath_var=LD_LIBRARY_PATH
11827   case $host_vendor in
11828     sni)
11829       shlibpath_overrides_runpath=no
11830       need_lib_prefix=no
11831       export_dynamic_flag_spec='${wl}-Blargedynsym'
11832       runpath_var=LD_RUN_PATH
11833       ;;
11834     siemens)
11835       need_lib_prefix=no
11836       ;;
11837     motorola)
11838       need_lib_prefix=no
11839       need_version=no
11840       shlibpath_overrides_runpath=no
11841       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11842       ;;
11843   esac
11844   ;;
11846 sysv4*MP*)
11847   if test -d /usr/nec ;then
11848     version_type=linux
11849     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11850     soname_spec='$libname${shared_ext}.$major'
11851     shlibpath_var=LD_LIBRARY_PATH
11852   fi
11853   ;;
11855 uts4*)
11856   version_type=linux
11857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858   soname_spec='${libname}${release}${shared_ext}$major'
11859   shlibpath_var=LD_LIBRARY_PATH
11860   ;;
11863   dynamic_linker=no
11864   ;;
11865 esac
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11867 $as_echo "$dynamic_linker" >&6; }
11868 test "$dynamic_linker" = no && can_build_shared=no
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11871 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11872 hardcode_action_CXX=
11873 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11874    test -n "$runpath_var CXX" || \
11875    test "X$hardcode_automatic_CXX"="Xyes" ; then
11877   # We can hardcode non-existant directories.
11878   if test "$hardcode_direct_CXX" != no &&
11879      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11880      # have to relink, otherwise we might link with an installed library
11881      # when we should be linking with a yet-to-be-installed one
11882      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11883      test "$hardcode_minus_L_CXX" != no; then
11884     # Linking always hardcodes the temporary library directory.
11885     hardcode_action_CXX=relink
11886   else
11887     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11888     hardcode_action_CXX=immediate
11889   fi
11890 else
11891   # We cannot hardcode anything, or else we can only hardcode existing
11892   # directories.
11893   hardcode_action_CXX=unsupported
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11896 $as_echo "$hardcode_action_CXX" >&6; }
11898 if test "$hardcode_action_CXX" = relink; then
11899   # Fast installation is not supported
11900   enable_fast_install=no
11901 elif test "$shlibpath_overrides_runpath" = yes ||
11902      test "$enable_shared" = no; then
11903   # Fast installation is not necessary
11904   enable_fast_install=needless
11907 striplib=
11908 old_striplib=
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11910 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11911 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11912   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11913   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916 else
11917 # FIXME - insert some real tests, host_os isn't really good enough
11918   case $host_os in
11919    darwin*)
11920        if test -n "$STRIP" ; then
11921          striplib="$STRIP -x"
11922          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923 $as_echo "yes" >&6; }
11924        else
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11928        ;;
11929    *)
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932     ;;
11933   esac
11936 if test "x$enable_dlopen" != xyes; then
11937   enable_dlopen=unknown
11938   enable_dlopen_self=unknown
11939   enable_dlopen_self_static=unknown
11940 else
11941   lt_cv_dlopen=no
11942   lt_cv_dlopen_libs=
11944   case $host_os in
11945   beos*)
11946     lt_cv_dlopen="load_add_on"
11947     lt_cv_dlopen_libs=
11948     lt_cv_dlopen_self=yes
11949     ;;
11951   mingw* | pw32*)
11952     lt_cv_dlopen="LoadLibrary"
11953     lt_cv_dlopen_libs=
11954    ;;
11956   cygwin*)
11957     lt_cv_dlopen="dlopen"
11958     lt_cv_dlopen_libs=
11959    ;;
11961   darwin*)
11962   # if libdl is installed we need to link against it
11963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11965 if ${ac_cv_lib_dl_dlopen+:} false; then :
11966   $as_echo_n "(cached) " >&6
11967 else
11968   ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-ldl  $LIBS"
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h.  */
11973 /* Override any GCC internal prototype to avoid an error.
11974    Use char because int might match the return type of a GCC
11975    builtin and then its argument prototype would still apply.  */
11976 #ifdef __cplusplus
11977 extern "C"
11978 #endif
11979 char dlopen ();
11981 main ()
11983 return dlopen ();
11984   ;
11985   return 0;
11987 _ACEOF
11988 if ac_fn_cxx_try_link "$LINENO"; then :
11989   ac_cv_lib_dl_dlopen=yes
11990 else
11991   ac_cv_lib_dl_dlopen=no
11993 rm -f core conftest.err conftest.$ac_objext \
11994     conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11998 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11999 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12000   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12001 else
12002   
12003     lt_cv_dlopen="dyld"
12004     lt_cv_dlopen_libs=
12005     lt_cv_dlopen_self=yes
12006     
12009    ;;
12011   *)
12012     ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12013 if test "x$ac_cv_func_shl_load" = xyes; then :
12014   lt_cv_dlopen="shl_load"
12015 else
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12017 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12018 if ${ac_cv_lib_dld_shl_load+:} false; then :
12019   $as_echo_n "(cached) " >&6
12020 else
12021   ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-ldld  $LIBS"
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h.  */
12026 /* Override any GCC internal prototype to avoid an error.
12027    Use char because int might match the return type of a GCC
12028    builtin and then its argument prototype would still apply.  */
12029 #ifdef __cplusplus
12030 extern "C"
12031 #endif
12032 char shl_load ();
12034 main ()
12036 return shl_load ();
12037   ;
12038   return 0;
12040 _ACEOF
12041 if ac_fn_cxx_try_link "$LINENO"; then :
12042   ac_cv_lib_dld_shl_load=yes
12043 else
12044   ac_cv_lib_dld_shl_load=no
12046 rm -f core conftest.err conftest.$ac_objext \
12047     conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12051 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12052 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12053   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12054 else
12055   ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12056 if test "x$ac_cv_func_dlopen" = xyes; then :
12057   lt_cv_dlopen="dlopen"
12058 else
12059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12060 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12061 if ${ac_cv_lib_dl_dlopen+:} false; then :
12062   $as_echo_n "(cached) " >&6
12063 else
12064   ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-ldl  $LIBS"
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h.  */
12069 /* Override any GCC internal prototype to avoid an error.
12070    Use char because int might match the return type of a GCC
12071    builtin and then its argument prototype would still apply.  */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 char dlopen ();
12077 main ()
12079 return dlopen ();
12080   ;
12081   return 0;
12083 _ACEOF
12084 if ac_fn_cxx_try_link "$LINENO"; then :
12085   ac_cv_lib_dl_dlopen=yes
12086 else
12087   ac_cv_lib_dl_dlopen=no
12089 rm -f core conftest.err conftest.$ac_objext \
12090     conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12094 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12095 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12096   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12097 else
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12099 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12100 if ${ac_cv_lib_svld_dlopen+:} false; then :
12101   $as_echo_n "(cached) " >&6
12102 else
12103   ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-lsvld  $LIBS"
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h.  */
12108 /* Override any GCC internal prototype to avoid an error.
12109    Use char because int might match the return type of a GCC
12110    builtin and then its argument prototype would still apply.  */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 char dlopen ();
12116 main ()
12118 return dlopen ();
12119   ;
12120   return 0;
12122 _ACEOF
12123 if ac_fn_cxx_try_link "$LINENO"; then :
12124   ac_cv_lib_svld_dlopen=yes
12125 else
12126   ac_cv_lib_svld_dlopen=no
12128 rm -f core conftest.err conftest.$ac_objext \
12129     conftest$ac_exeext conftest.$ac_ext
12130 LIBS=$ac_check_lib_save_LIBS
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12133 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12134 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12135   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12136 else
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12138 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12139 if ${ac_cv_lib_dld_dld_link+:} false; then :
12140   $as_echo_n "(cached) " >&6
12141 else
12142   ac_check_lib_save_LIBS=$LIBS
12143 LIBS="-ldld  $LIBS"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12147 /* Override any GCC internal prototype to avoid an error.
12148    Use char because int might match the return type of a GCC
12149    builtin and then its argument prototype would still apply.  */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char dld_link ();
12155 main ()
12157 return dld_link ();
12158   ;
12159   return 0;
12161 _ACEOF
12162 if ac_fn_cxx_try_link "$LINENO"; then :
12163   ac_cv_lib_dld_dld_link=yes
12164 else
12165   ac_cv_lib_dld_dld_link=no
12167 rm -f core conftest.err conftest.$ac_objext \
12168     conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12172 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12173 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12174   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12177               
12180             
12183           
12186         
12189       
12192     ;;
12193   esac
12195   if test "x$lt_cv_dlopen" != xno; then
12196     enable_dlopen=yes
12197   else
12198     enable_dlopen=no
12199   fi
12201   case $lt_cv_dlopen in
12202   dlopen)
12203     save_CPPFLAGS="$CPPFLAGS"
12204     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12206     save_LDFLAGS="$LDFLAGS"
12207     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12209     save_LIBS="$LIBS"
12210     LIBS="$lt_cv_dlopen_libs $LIBS"
12212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12213 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12214 if ${lt_cv_dlopen_self+:} false; then :
12215   $as_echo_n "(cached) " >&6
12216 else
12217           if test "$cross_compiling" = yes; then :
12218   lt_cv_dlopen_self=cross
12219 else
12220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221   lt_status=$lt_dlunknown
12222   cat > conftest.$ac_ext <<EOF
12223 #line __oline__ "configure"
12224 #include "confdefs.h"
12226 #if HAVE_DLFCN_H
12227 #include <dlfcn.h>
12228 #endif
12230 #include <stdio.h>
12232 #ifdef RTLD_GLOBAL
12233 #  define LT_DLGLOBAL           RTLD_GLOBAL
12234 #else
12235 #  ifdef DL_GLOBAL
12236 #    define LT_DLGLOBAL         DL_GLOBAL
12237 #  else
12238 #    define LT_DLGLOBAL         0
12239 #  endif
12240 #endif
12242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243    find out it does not work in some platform. */
12244 #ifndef LT_DLLAZY_OR_NOW
12245 #  ifdef RTLD_LAZY
12246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12247 #  else
12248 #    ifdef DL_LAZY
12249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12250 #    else
12251 #      ifdef RTLD_NOW
12252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12253 #      else
12254 #        ifdef DL_NOW
12255 #          define LT_DLLAZY_OR_NOW      DL_NOW
12256 #        else
12257 #          define LT_DLLAZY_OR_NOW      0
12258 #        endif
12259 #      endif
12260 #    endif
12261 #  endif
12262 #endif
12264 #ifdef __cplusplus
12265 extern "C" void exit (int);
12266 #endif
12268 void fnord() { int i=42;}
12269 int main ()
12271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272   int status = $lt_dlunknown;
12274   if (self)
12275     {
12276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12277       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278       /* dlclose (self); */
12279     }
12281     exit (status);
12284   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12285   (eval $ac_link) 2>&5
12286   ac_status=$?
12287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12289     (./conftest; exit; ) 2>/dev/null
12290     lt_status=$?
12291     case x$lt_status in
12292       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12293       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12294       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12295     esac
12296   else :
12297     # compilation failed
12298     lt_cv_dlopen_self=no
12299   fi
12301 rm -fr conftest*
12303     
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12306 $as_echo "$lt_cv_dlopen_self" >&6; }
12308     if test "x$lt_cv_dlopen_self" = xyes; then
12309       LDFLAGS="$LDFLAGS $link_static_flag"
12310       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12311 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12312 if ${lt_cv_dlopen_self_static+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315           if test "$cross_compiling" = yes; then :
12316   lt_cv_dlopen_self_static=cross
12317 else
12318   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319   lt_status=$lt_dlunknown
12320   cat > conftest.$ac_ext <<EOF
12321 #line __oline__ "configure"
12322 #include "confdefs.h"
12324 #if HAVE_DLFCN_H
12325 #include <dlfcn.h>
12326 #endif
12328 #include <stdio.h>
12330 #ifdef RTLD_GLOBAL
12331 #  define LT_DLGLOBAL           RTLD_GLOBAL
12332 #else
12333 #  ifdef DL_GLOBAL
12334 #    define LT_DLGLOBAL         DL_GLOBAL
12335 #  else
12336 #    define LT_DLGLOBAL         0
12337 #  endif
12338 #endif
12340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341    find out it does not work in some platform. */
12342 #ifndef LT_DLLAZY_OR_NOW
12343 #  ifdef RTLD_LAZY
12344 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12345 #  else
12346 #    ifdef DL_LAZY
12347 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12348 #    else
12349 #      ifdef RTLD_NOW
12350 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12351 #      else
12352 #        ifdef DL_NOW
12353 #          define LT_DLLAZY_OR_NOW      DL_NOW
12354 #        else
12355 #          define LT_DLLAZY_OR_NOW      0
12356 #        endif
12357 #      endif
12358 #    endif
12359 #  endif
12360 #endif
12362 #ifdef __cplusplus
12363 extern "C" void exit (int);
12364 #endif
12366 void fnord() { int i=42;}
12367 int main ()
12369   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370   int status = $lt_dlunknown;
12372   if (self)
12373     {
12374       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12375       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12376       /* dlclose (self); */
12377     }
12379     exit (status);
12382   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12383   (eval $ac_link) 2>&5
12384   ac_status=$?
12385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12387     (./conftest; exit; ) 2>/dev/null
12388     lt_status=$?
12389     case x$lt_status in
12390       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12391       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12392       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12393     esac
12394   else :
12395     # compilation failed
12396     lt_cv_dlopen_self_static=no
12397   fi
12399 rm -fr conftest*
12401       
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12405     fi
12407     CPPFLAGS="$save_CPPFLAGS"
12408     LDFLAGS="$save_LDFLAGS"
12409     LIBS="$save_LIBS"
12410     ;;
12411   esac
12413   case $lt_cv_dlopen_self in
12414   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12415   *) enable_dlopen_self=unknown ;;
12416   esac
12418   case $lt_cv_dlopen_self_static in
12419   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12420   *) enable_dlopen_self_static=unknown ;;
12421   esac
12425 # The else clause should only fire when bootstrapping the
12426 # libtool distribution, otherwise you forgot to ship ltmain.sh
12427 # with your package, and you will get complaints that there are
12428 # no rules to generate ltmain.sh.
12429 if test -f "$ltmain"; then
12430   # See if we are running on zsh, and set the options which allow our commands through
12431   # without removal of \ escapes.
12432   if test -n "${ZSH_VERSION+set}" ; then
12433     setopt NO_GLOB_SUBST
12434   fi
12435   # Now quote all the things that may contain metacharacters while being
12436   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12437   # variables and quote the copies for generation of the libtool script.
12438   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12439     SED SHELL STRIP \
12440     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12441     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12442     deplibs_check_method reload_flag reload_cmds need_locks \
12443     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12444     lt_cv_sys_global_symbol_to_c_name_address \
12445     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12446     old_postinstall_cmds old_postuninstall_cmds \
12447     compiler_CXX \
12448     CC_CXX \
12449     LD_CXX \
12450     lt_prog_compiler_wl_CXX \
12451     lt_prog_compiler_pic_CXX \
12452     lt_prog_compiler_static_CXX \
12453     lt_prog_compiler_no_builtin_flag_CXX \
12454     export_dynamic_flag_spec_CXX \
12455     thread_safe_flag_spec_CXX \
12456     whole_archive_flag_spec_CXX \
12457     enable_shared_with_static_runtimes_CXX \
12458     old_archive_cmds_CXX \
12459     old_archive_from_new_cmds_CXX \
12460     predep_objects_CXX \
12461     postdep_objects_CXX \
12462     predeps_CXX \
12463     postdeps_CXX \
12464     compiler_lib_search_path_CXX \
12465     archive_cmds_CXX \
12466     archive_expsym_cmds_CXX \
12467     postinstall_cmds_CXX \
12468     postuninstall_cmds_CXX \
12469     old_archive_from_expsyms_cmds_CXX \
12470     allow_undefined_flag_CXX \
12471     no_undefined_flag_CXX \
12472     export_symbols_cmds_CXX \
12473     hardcode_libdir_flag_spec_CXX \
12474     hardcode_libdir_flag_spec_ld_CXX \
12475     hardcode_libdir_separator_CXX \
12476     hardcode_automatic_CXX \
12477     module_cmds_CXX \
12478     module_expsym_cmds_CXX \
12479     lt_cv_prog_compiler_c_o_CXX \
12480     exclude_expsyms_CXX \
12481     include_expsyms_CXX; do
12483     case $var in
12484     old_archive_cmds_CXX | \
12485     old_archive_from_new_cmds_CXX | \
12486     archive_cmds_CXX | \
12487     archive_expsym_cmds_CXX | \
12488     module_cmds_CXX | \
12489     module_expsym_cmds_CXX | \
12490     old_archive_from_expsyms_cmds_CXX | \
12491     export_symbols_cmds_CXX | \
12492     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12493     postinstall_cmds | postuninstall_cmds | \
12494     old_postinstall_cmds | old_postuninstall_cmds | \
12495     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12496       # Double-quote double-evaled strings.
12497       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12498       ;;
12499     *)
12500       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12501       ;;
12502     esac
12503   done
12505   case $lt_echo in
12506   *'\$0 --fallback-echo"')
12507     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12508     ;;
12509   esac
12511 cfgfile="$ofile"
12513   cat <<__EOF__ >> "$cfgfile"
12514 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12518 # Shell to use when invoking shell scripts.
12519 SHELL=$lt_SHELL
12521 # Whether or not to build shared libraries.
12522 build_libtool_libs=$enable_shared
12524 # Whether or not to build static libraries.
12525 build_old_libs=$enable_static
12527 # Whether or not to add -lc for building shared libraries.
12528 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12530 # Whether or not to disallow shared libs when runtime libs are static
12531 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12533 # Whether or not to optimize for fast installation.
12534 fast_install=$enable_fast_install
12536 # The host system.
12537 host_alias=$host_alias
12538 host=$host
12540 # An echo program that does not interpret backslashes.
12541 echo=$lt_echo
12543 # The archiver.
12544 AR=$lt_AR
12545 AR_FLAGS=$lt_AR_FLAGS
12547 # A C compiler.
12548 LTCC=$lt_LTCC
12550 # A language-specific compiler.
12551 CC=$lt_compiler_CXX
12553 # Is the compiler the GNU C compiler?
12554 with_gcc=$GCC_CXX
12556 # An ERE matcher.
12557 EGREP=$lt_EGREP
12559 # The linker used to build libraries.
12560 LD=$lt_LD_CXX
12562 # Whether we need hard or soft links.
12563 LN_S=$lt_LN_S
12565 # A BSD-compatible nm program.
12566 NM=$lt_NM
12568 # A symbol stripping program
12569 STRIP=$lt_STRIP
12571 # Used to examine libraries when file_magic_cmd begins "file"
12572 MAGIC_CMD=$MAGIC_CMD
12574 # Used on cygwin: DLL creation program.
12575 DLLTOOL="$DLLTOOL"
12577 # Used on cygwin: object dumper.
12578 OBJDUMP="$OBJDUMP"
12580 # Used on cygwin: assembler.
12581 AS="$AS"
12583 # The name of the directory that contains temporary libtool files.
12584 objdir=$objdir
12586 # How to create reloadable object files.
12587 reload_flag=$lt_reload_flag
12588 reload_cmds=$lt_reload_cmds
12590 # How to pass a linker flag through the compiler.
12591 wl=$lt_lt_prog_compiler_wl_CXX
12593 # Object file suffix (normally "o").
12594 objext="$ac_objext"
12596 # Old archive suffix (normally "a").
12597 libext="$libext"
12599 # Shared library suffix (normally ".so").
12600 shrext='$shrext'
12602 # Executable file suffix (normally "").
12603 exeext="$exeext"
12605 # Additional compiler flags for building library objects.
12606 pic_flag=$lt_lt_prog_compiler_pic_CXX
12607 pic_mode=$pic_mode
12609 # What is the maximum length of a command?
12610 max_cmd_len=$lt_cv_sys_max_cmd_len
12612 # Does compiler simultaneously support -c and -o options?
12613 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12615 # Must we lock files when doing compilation ?
12616 need_locks=$lt_need_locks
12618 # Do we need the lib prefix for modules?
12619 need_lib_prefix=$need_lib_prefix
12621 # Do we need a version for libraries?
12622 need_version=$need_version
12624 # Whether dlopen is supported.
12625 dlopen_support=$enable_dlopen
12627 # Whether dlopen of programs is supported.
12628 dlopen_self=$enable_dlopen_self
12630 # Whether dlopen of statically linked programs is supported.
12631 dlopen_self_static=$enable_dlopen_self_static
12633 # Compiler flag to prevent dynamic linking.
12634 link_static_flag=$lt_lt_prog_compiler_static_CXX
12636 # Compiler flag to turn off builtin functions.
12637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12639 # Compiler flag to allow reflexive dlopens.
12640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12642 # Compiler flag to generate shared objects directly from archives.
12643 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12645 # Compiler flag to generate thread-safe objects.
12646 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12648 # Library versioning type.
12649 version_type=$version_type
12651 # Format of library name prefix.
12652 libname_spec=$lt_libname_spec
12654 # List of archive names.  First name is the real one, the rest are links.
12655 # The last name is the one that the linker finds with -lNAME.
12656 library_names_spec=$lt_library_names_spec
12658 # The coded name of the library, if different from the real name.
12659 soname_spec=$lt_soname_spec
12661 # Commands used to build and install an old-style archive.
12662 RANLIB=$lt_RANLIB
12663 old_archive_cmds=$lt_old_archive_cmds_CXX
12664 old_postinstall_cmds=$lt_old_postinstall_cmds
12665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12667 # Create an old-style archive from a shared archive.
12668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12670 # Create a temporary old-style archive to link instead of a shared archive.
12671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12673 # Commands used to build and install a shared archive.
12674 archive_cmds=$lt_archive_cmds_CXX
12675 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12676 postinstall_cmds=$lt_postinstall_cmds
12677 postuninstall_cmds=$lt_postuninstall_cmds
12679 # Commands used to build a loadable module (assumed same as above if empty)
12680 module_cmds=$lt_module_cmds_CXX
12681 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12683 # Commands to strip libraries.
12684 old_striplib=$lt_old_striplib
12685 striplib=$lt_striplib
12687 # Dependencies to place before the objects being linked to create a
12688 # shared library.
12689 predep_objects=$lt_predep_objects_CXX
12691 # Dependencies to place after the objects being linked to create a
12692 # shared library.
12693 postdep_objects=$lt_postdep_objects_CXX
12695 # Dependencies to place before the objects being linked to create a
12696 # shared library.
12697 predeps=$lt_predeps_CXX
12699 # Dependencies to place after the objects being linked to create a
12700 # shared library.
12701 postdeps=$lt_postdeps_CXX
12703 # The library search path used internally by the compiler when linking
12704 # a shared library.
12705 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12707 # Method to check whether dependent libraries are shared objects.
12708 deplibs_check_method=$lt_deplibs_check_method
12710 # Command to use when deplibs_check_method == file_magic.
12711 file_magic_cmd=$lt_file_magic_cmd
12713 # Flag that allows shared libraries with undefined symbols to be built.
12714 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12716 # Flag that forces no undefined symbols.
12717 no_undefined_flag=$lt_no_undefined_flag_CXX
12719 # Commands used to finish a libtool library installation in a directory.
12720 finish_cmds=$lt_finish_cmds
12722 # Same as above, but a single script fragment to be evaled but not shown.
12723 finish_eval=$lt_finish_eval
12725 # Take the output of nm and produce a listing of raw symbols and C names.
12726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12728 # Transform the output of nm in a proper C declaration
12729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12731 # Transform the output of nm in a C name address pair
12732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12734 # This is the shared library runtime path variable.
12735 runpath_var=$runpath_var
12737 # This is the shared library path variable.
12738 shlibpath_var=$shlibpath_var
12740 # Is shlibpath searched before the hard-coded library search path?
12741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12743 # How to hardcode a shared library path into an executable.
12744 hardcode_action=$hardcode_action_CXX
12746 # Whether we should hardcode library paths into libraries.
12747 hardcode_into_libs=$hardcode_into_libs
12749 # Flag to hardcode \$libdir into a binary during linking.
12750 # This must work even if \$libdir does not exist.
12751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12753 # If ld is used when linking, flag to hardcode \$libdir into
12754 # a binary during linking. This must work even if \$libdir does
12755 # not exist.
12756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12758 # Whether we need a single -rpath flag with a separated argument.
12759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12761 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12762 # resulting binary.
12763 hardcode_direct=$hardcode_direct_CXX
12765 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12766 # resulting binary.
12767 hardcode_minus_L=$hardcode_minus_L_CXX
12769 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12770 # the resulting binary.
12771 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12773 # Set to yes if building a shared library automatically hardcodes DIR into the library
12774 # and all subsequent libraries and executables linked against it.
12775 hardcode_automatic=$hardcode_automatic_CXX
12777 # Variables whose values should be saved in libtool wrapper scripts and
12778 # restored at relink time.
12779 variables_saved_for_relink="$variables_saved_for_relink"
12781 # Whether libtool must link a program against all its dependency libraries.
12782 link_all_deplibs=$link_all_deplibs_CXX
12784 # Compile-time system search path for libraries
12785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12787 # Run-time system search path for libraries
12788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12790 # Fix the shell variable \$srcfile for the compiler.
12791 fix_srcfile_path="$fix_srcfile_path_CXX"
12793 # Set to yes if exported symbols are required.
12794 always_export_symbols=$always_export_symbols_CXX
12796 # The commands to list exported symbols.
12797 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12799 # The commands to extract the exported symbol list from a shared archive.
12800 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12802 # Symbols that should not be listed in the preloaded symbols.
12803 exclude_expsyms=$lt_exclude_expsyms_CXX
12805 # Symbols that must always be exported.
12806 include_expsyms=$lt_include_expsyms_CXX
12808 # ### END LIBTOOL TAG CONFIG: $tagname
12810 __EOF__
12813 else
12814   # If there is no Makefile yet, we rely on a make rule to execute
12815   # `config.status --recheck' to rerun these tests and create the
12816   # libtool script then.
12817   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12818   if test -f "$ltmain_in"; then
12819     test -f Makefile && make "$ltmain"
12820   fi
12824 ac_ext=c
12825 ac_cpp='$CPP $CPPFLAGS'
12826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12830 CC=$lt_save_CC
12831 LDCXX=$LD
12832 LD=$lt_save_LD
12833 GCC=$lt_save_GCC
12834 with_gnu_ldcxx=$with_gnu_ld
12835 with_gnu_ld=$lt_save_with_gnu_ld
12836 lt_cv_path_LDCXX=$lt_cv_path_LD
12837 lt_cv_path_LD=$lt_save_path_LD
12838 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12839 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12841         else
12842           tagname=""
12843         fi
12844         ;;
12846       F77)
12847         if test -n "$F77" && test "X$F77" != "Xno"; then
12848           
12849 ac_ext=f
12850 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12851 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12855 archive_cmds_need_lc_F77=no
12856 allow_undefined_flag_F77=
12857 always_export_symbols_F77=no
12858 archive_expsym_cmds_F77=
12859 export_dynamic_flag_spec_F77=
12860 hardcode_direct_F77=no
12861 hardcode_libdir_flag_spec_F77=
12862 hardcode_libdir_flag_spec_ld_F77=
12863 hardcode_libdir_separator_F77=
12864 hardcode_minus_L_F77=no
12865 hardcode_automatic_F77=no
12866 module_cmds_F77=
12867 module_expsym_cmds_F77=
12868 link_all_deplibs_F77=unknown
12869 old_archive_cmds_F77=$old_archive_cmds
12870 no_undefined_flag_F77=
12871 whole_archive_flag_spec_F77=
12872 enable_shared_with_static_runtimes_F77=no
12874 # Source file extension for f77 test sources.
12875 ac_ext=f
12877 # Object file extension for compiled f77 test sources.
12878 objext=o
12879 objext_F77=$objext
12881 # Code to be used in simple compile tests
12882 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12884 # Code to be used in simple link tests
12885 lt_simple_link_test_code="      program t\n      end\n"
12887 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12889 # If no C compiler was specified, use CC.
12890 LTCC=${LTCC-"$CC"}
12892 # Allow CC to be a program name with arguments.
12893 compiler=$CC
12896 # Allow CC to be a program name with arguments.
12897 lt_save_CC="$CC"
12898 CC=${F77-"f77"}
12899 compiler=$CC
12900 compiler_F77=$CC
12901 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12904 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12906 $as_echo "$can_build_shared" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12909 $as_echo_n "checking whether to build shared libraries... " >&6; }
12910 test "$can_build_shared" = "no" && enable_shared=no
12912 # On AIX, shared libraries and static libraries use the same namespace, and
12913 # are all built from PIC.
12914 case "$host_os" in
12915 aix3*)
12916   test "$enable_shared" = yes && enable_static=no
12917   if test -n "$RANLIB"; then
12918     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12919     postinstall_cmds='$RANLIB $lib'
12920   fi
12921   ;;
12922 aix4*)
12923   test "$enable_shared" = yes && enable_static=no
12924   ;;
12925 esac
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12927 $as_echo "$enable_shared" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12930 $as_echo_n "checking whether to build static libraries... " >&6; }
12931 # Make sure either enable_shared or enable_static is yes.
12932 test "$enable_shared" = yes || enable_static=yes
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12934 $as_echo "$enable_static" >&6; }
12936 test "$ld_shlibs_F77" = no && can_build_shared=no
12938 GCC_F77="$G77"
12939 LD_F77="$LD"
12941 lt_prog_compiler_wl_F77=
12942 lt_prog_compiler_pic_F77=
12943 lt_prog_compiler_static_F77=
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12948   if test "$GCC" = yes; then
12949     lt_prog_compiler_wl_F77='-Wl,'
12950     lt_prog_compiler_static_F77='-static'
12952     case $host_os in
12953       aix*)
12954       # All AIX code is PIC.
12955       if test "$host_cpu" = ia64; then
12956         # AIX 5 now supports IA64 processor
12957         lt_prog_compiler_static_F77='-Bstatic'
12958       fi
12959       ;;
12961     amigaos*)
12962       # FIXME: we need at least 68020 code to build shared libraries, but
12963       # adding the `-m68020' flag to GCC prevents building anything better,
12964       # like `-m68040'.
12965       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12966       ;;
12968     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12969       # PIC is the default for these OSes.
12970       ;;
12972     mingw* | pw32* | os2*)
12973       # This hack is so that the source file can tell whether it is being
12974       # built for inclusion in a dll (and should export symbols for example).
12975       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12976       ;;
12978     darwin* | rhapsody*)
12979       # PIC is the default on this platform
12980       # Common symbols not allowed in MH_DYLIB files
12981       lt_prog_compiler_pic_F77='-fno-common'
12982       ;;
12984     msdosdjgpp*)
12985       # Just because we use GCC doesn't mean we suddenly get shared libraries
12986       # on systems that don't support them.
12987       lt_prog_compiler_can_build_shared_F77=no
12988       enable_shared=no
12989       ;;
12991     sysv4*MP*)
12992       if test -d /usr/nec; then
12993         lt_prog_compiler_pic_F77=-Kconform_pic
12994       fi
12995       ;;
12997     hpux*)
12998       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12999       # not for PA HP-UX.
13000       case "$host_cpu" in
13001       hppa*64*|ia64*)
13002         # +Z the default
13003         ;;
13004       *)
13005         lt_prog_compiler_pic_F77='-fPIC'
13006         ;;
13007       esac
13008       ;;
13010     *)
13011       lt_prog_compiler_pic_F77='-fPIC'
13012       ;;
13013     esac
13014   else
13015     # PORTME Check for flag to pass linker flags through the system compiler.
13016     case $host_os in
13017     aix*)
13018       lt_prog_compiler_wl_F77='-Wl,'
13019       if test "$host_cpu" = ia64; then
13020         # AIX 5 now supports IA64 processor
13021         lt_prog_compiler_static_F77='-Bstatic'
13022       else
13023         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13024       fi
13025       ;;
13027     mingw* | pw32* | os2*)
13028       # This hack is so that the source file can tell whether it is being
13029       # built for inclusion in a dll (and should export symbols for example).
13030       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13031       ;;
13033     hpux9* | hpux10* | hpux11*)
13034       lt_prog_compiler_wl_F77='-Wl,'
13035       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13036       # not for PA HP-UX.
13037       case "$host_cpu" in
13038       hppa*64*|ia64*)
13039         # +Z the default
13040         ;;
13041       *)
13042         lt_prog_compiler_pic_F77='+Z'
13043         ;;
13044       esac
13045       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13046       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13047       ;;
13049     irix5* | irix6* | nonstopux*)
13050       lt_prog_compiler_wl_F77='-Wl,'
13051       # PIC (with -KPIC) is the default.
13052       lt_prog_compiler_static_F77='-non_shared'
13053       ;;
13055     newsos6)
13056       lt_prog_compiler_pic_F77='-KPIC'
13057       lt_prog_compiler_static_F77='-Bstatic'
13058       ;;
13060     linux*)
13061       case $CC in
13062       icc* | ecc*)
13063         lt_prog_compiler_wl_F77='-Wl,'
13064         lt_prog_compiler_pic_F77='-KPIC'
13065         lt_prog_compiler_static_F77='-static'
13066         ;;
13067       ccc*)
13068         lt_prog_compiler_wl_F77='-Wl,'
13069         # All Alpha code is PIC.
13070         lt_prog_compiler_static_F77='-non_shared'
13071         ;;
13072       esac
13073       ;;
13075     osf3* | osf4* | osf5*)
13076       lt_prog_compiler_wl_F77='-Wl,'
13077       # All OSF/1 code is PIC.
13078       lt_prog_compiler_static_F77='-non_shared'
13079       ;;
13081     sco3.2v5*)
13082       lt_prog_compiler_pic_F77='-Kpic'
13083       lt_prog_compiler_static_F77='-dn'
13084       ;;
13086     solaris*)
13087       lt_prog_compiler_wl_F77='-Wl,'
13088       lt_prog_compiler_pic_F77='-KPIC'
13089       lt_prog_compiler_static_F77='-Bstatic'
13090       ;;
13092     sunos4*)
13093       lt_prog_compiler_wl_F77='-Qoption ld '
13094       lt_prog_compiler_pic_F77='-PIC'
13095       lt_prog_compiler_static_F77='-Bstatic'
13096       ;;
13098     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13099       lt_prog_compiler_wl_F77='-Wl,'
13100       lt_prog_compiler_pic_F77='-KPIC'
13101       lt_prog_compiler_static_F77='-Bstatic'
13102       ;;
13104     sysv4*MP*)
13105       if test -d /usr/nec ;then
13106         lt_prog_compiler_pic_F77='-Kconform_pic'
13107         lt_prog_compiler_static_F77='-Bstatic'
13108       fi
13109       ;;
13111     uts4*)
13112       lt_prog_compiler_pic_F77='-pic'
13113       lt_prog_compiler_static_F77='-Bstatic'
13114       ;;
13116     *)
13117       lt_prog_compiler_can_build_shared_F77=no
13118       ;;
13119     esac
13120   fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13123 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13126 # Check to make sure the PIC flag actually works.
13128 if test -n "$lt_prog_compiler_pic_F77"; then
13129   
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13131 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13132 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13133   $as_echo_n "(cached) " >&6
13134 else
13135   lt_prog_compiler_pic_works_F77=no
13136   ac_outfile=conftest.$ac_objext
13137    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13138    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13139    # Insert the option either (1) after the last *FLAGS variable, or
13140    # (2) before a word containing "conftest.", or (3) at the end.
13141    # Note that $ac_compile itself does not contain backslashes and begins
13142    # with a dollar sign (not a hyphen), so the echo should work correctly.
13143    # The option is referenced via a variable to avoid confusing sed.
13144    lt_compile=`echo "$ac_compile" | $SED \
13145    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13146    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13147    -e 's:$: $lt_compiler_flag:'`
13148    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13149    (eval "$lt_compile" 2>conftest.err)
13150    ac_status=$?
13151    cat conftest.err >&5
13152    echo "$as_me:__oline__: \$? = $ac_status" >&5
13153    if (exit $ac_status) && test -s "$ac_outfile"; then
13154      # The compiler can only warn and ignore the option if not recognized
13155      # So say no if there are warnings
13156      if test ! -s conftest.err; then
13157        lt_prog_compiler_pic_works_F77=yes
13158      fi
13159    fi
13160    $rm conftest*
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13164 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13166 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13167     case $lt_prog_compiler_pic_F77 in
13168      "" | " "*) ;;
13169      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13170      esac
13171 else
13172     lt_prog_compiler_pic_F77=
13173      lt_prog_compiler_can_build_shared_F77=no
13177 case "$host_os" in
13178   # For platforms which do not support PIC, -DPIC is meaningless:
13179   *djgpp*)
13180     lt_prog_compiler_pic_F77=
13181     ;;
13182   *)
13183     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13184     ;;
13185 esac
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13189 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   lt_cv_prog_compiler_c_o_F77=no
13193    $rm -r conftest 2>/dev/null
13194    mkdir conftest
13195    cd conftest
13196    mkdir out
13197    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13199    lt_compiler_flag="-o out/conftest2.$ac_objext"
13200    # Insert the option either (1) after the last *FLAGS variable, or
13201    # (2) before a word containing "conftest.", or (3) at the end.
13202    # Note that $ac_compile itself does not contain backslashes and begins
13203    # with a dollar sign (not a hyphen), so the echo should work correctly.
13204    lt_compile=`echo "$ac_compile" | $SED \
13205    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13207    -e 's:$: $lt_compiler_flag:'`
13208    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13209    (eval "$lt_compile" 2>out/conftest.err)
13210    ac_status=$?
13211    cat out/conftest.err >&5
13212    echo "$as_me:__oline__: \$? = $ac_status" >&5
13213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13214    then
13215      # The compiler can only warn and ignore the option if not recognized
13216      # So say no if there are warnings
13217      if test ! -s out/conftest.err; then
13218        lt_cv_prog_compiler_c_o_F77=yes
13219      fi
13220    fi
13221    chmod u+w .
13222    $rm conftest*
13223    # SGI C++ compiler will create directory out/ii_files/ for
13224    # template instantiation
13225    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13226    $rm out/* && rmdir out
13227    cd ..
13228    rmdir conftest
13229    $rm conftest*
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13233 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13236 hard_links="nottested"
13237 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13238   # do not overwrite the value of need_locks provided by the user
13239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13240 $as_echo_n "checking if we can lock with hard links... " >&6; }
13241   hard_links=yes
13242   $rm conftest*
13243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13244   touch conftest.a
13245   ln conftest.a conftest.b 2>&5 || hard_links=no
13246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13248 $as_echo "$hard_links" >&6; }
13249   if test "$hard_links" = no; then
13250     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13251 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13252     need_locks=warn
13253   fi
13254 else
13255   need_locks=no
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13259 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13261   runpath_var=
13262   allow_undefined_flag_F77=
13263   enable_shared_with_static_runtimes_F77=no
13264   archive_cmds_F77=
13265   archive_expsym_cmds_F77=
13266   old_archive_From_new_cmds_F77=
13267   old_archive_from_expsyms_cmds_F77=
13268   export_dynamic_flag_spec_F77=
13269   whole_archive_flag_spec_F77=
13270   thread_safe_flag_spec_F77=
13271   hardcode_libdir_flag_spec_F77=
13272   hardcode_libdir_flag_spec_ld_F77=
13273   hardcode_libdir_separator_F77=
13274   hardcode_direct_F77=no
13275   hardcode_minus_L_F77=no
13276   hardcode_shlibpath_var_F77=unsupported
13277   link_all_deplibs_F77=unknown
13278   hardcode_automatic_F77=no
13279   module_cmds_F77=
13280   module_expsym_cmds_F77=
13281   always_export_symbols_F77=no
13282   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13283   # include_expsyms should be a list of space-separated symbols to be *always*
13284   # included in the symbol list
13285   include_expsyms_F77=
13286   # exclude_expsyms can be an extended regexp of symbols to exclude
13287   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13288   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13289   # as well as any symbol that contains `d'.
13290   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13291   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13292   # platforms (ab)use it in PIC code, but their linkers get confused if
13293   # the symbol is explicitly referenced.  Since portable code cannot
13294   # rely on this symbol name, it's probably fine to never include it in
13295   # preloaded symbol tables.
13296   extract_expsyms_cmds=
13298   case $host_os in
13299   cygwin* | mingw* | pw32*)
13300     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13301     # When not using gcc, we currently assume that we are using
13302     # Microsoft Visual C++.
13303     if test "$GCC" != yes; then
13304       with_gnu_ld=no
13305     fi
13306     ;;
13307   openbsd*)
13308     with_gnu_ld=no
13309     ;;
13310   esac
13312   ld_shlibs_F77=yes
13313   if test "$with_gnu_ld" = yes; then
13314     # If archive_cmds runs LD, not CC, wlarc should be empty
13315     wlarc='${wl}'
13317     # See if GNU ld supports shared libraries.
13318     case $host_os in
13319     aix3* | aix4* | aix5*)
13320       # On AIX/PPC, the GNU linker is very broken
13321       if test "$host_cpu" != ia64; then
13322         ld_shlibs_F77=no
13323         cat <<EOF 1>&2
13325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13326 *** to be unable to reliably create shared libraries on AIX.
13327 *** Therefore, libtool is disabling shared libraries support.  If you
13328 *** really care for shared libraries, you may want to modify your PATH
13329 *** so that a non-GNU linker is found, and then restart.
13332       fi
13333       ;;
13335     amigaos*)
13336       archive_cmds_F77='$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)'
13337       hardcode_libdir_flag_spec_F77='-L$libdir'
13338       hardcode_minus_L_F77=yes
13340       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13341       # that the semantics of dynamic libraries on AmigaOS, at least up
13342       # to version 4, is to share data among multiple programs linked
13343       # with the same dynamic library.  Since this doesn't match the
13344       # behavior of shared libraries on other platforms, we can't use
13345       # them.
13346       ld_shlibs_F77=no
13347       ;;
13349     beos*)
13350       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13351         allow_undefined_flag_F77=unsupported
13352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13353         # support --undefined.  This deserves some investigation.  FIXME
13354         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355       else
13356         ld_shlibs_F77=no
13357       fi
13358       ;;
13360     cygwin* | mingw* | pw32*)
13361       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13362       # as there is no search path for DLLs.
13363       hardcode_libdir_flag_spec_F77='-L$libdir'
13364       allow_undefined_flag_F77=unsupported
13365       always_export_symbols_F77=no
13366       enable_shared_with_static_runtimes_F77=yes
13367       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13369       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13370         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13371         # If the export-symbols file already is a .def file (1st line
13372         # is EXPORTS), use it as is; otherwise, prepend...
13373         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13374           cp $export_symbols $output_objdir/$soname.def;
13375         else
13376           echo EXPORTS > $output_objdir/$soname.def;
13377           cat $export_symbols >> $output_objdir/$soname.def;
13378         fi~
13379         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13380       else
13381         ld_shlibs=no
13382       fi
13383       ;;
13385     netbsd* | knetbsd*-gnu)
13386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13387         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13388         wlarc=
13389       else
13390         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13392       fi
13393       ;;
13395     solaris* | sysv5*)
13396       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13397         ld_shlibs_F77=no
13398         cat <<EOF 1>&2
13400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13401 *** create shared libraries on Solaris systems.  Therefore, libtool
13402 *** is disabling shared libraries support.  We urge you to upgrade GNU
13403 *** binutils to release 2.9.1 or newer.  Another option is to modify
13404 *** your PATH or compiler configuration so that the native linker is
13405 *** used, and then restart.
13408       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13409         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13410         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13411       else
13412         ld_shlibs_F77=no
13413       fi
13414       ;;
13416     sunos4*)
13417       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13418       wlarc=
13419       hardcode_direct_F77=yes
13420       hardcode_shlibpath_var_F77=no
13421       ;;
13423   linux*)
13424     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13425         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426         archive_cmds_F77="$tmp_archive_cmds"
13427       supports_anon_versioning=no
13428       case `$LD -v 2>/dev/null` in
13429         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13430         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13431         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13432         *\ 2.11.*) ;; # other 2.11 versions
13433         *) supports_anon_versioning=yes ;;
13434       esac
13435       if test $supports_anon_versioning = yes; then
13436         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13438 $echo "local: *; };" >> $output_objdir/$libname.ver~
13439         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13440       else
13441         archive_expsym_cmds_F77="$tmp_archive_cmds"
13442       fi
13443     else
13444       ld_shlibs_F77=no
13445     fi
13446     ;;
13448     *)
13449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13450         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13452       else
13453         ld_shlibs_F77=no
13454       fi
13455       ;;
13456     esac
13458     if test "$ld_shlibs_F77" = yes; then
13459       runpath_var=LD_RUN_PATH
13460       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13461       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13462       # ancient GNU ld didn't support --whole-archive et. al.
13463       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13464         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13465       else
13466         whole_archive_flag_spec_F77=
13467       fi
13468     fi
13469   else
13470     # PORTME fill in a description of your system's linker (not GNU ld)
13471     case $host_os in
13472     aix3*)
13473       allow_undefined_flag_F77=unsupported
13474       always_export_symbols_F77=yes
13475       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13476       # Note: this linker hardcodes the directories in LIBPATH if there
13477       # are no directories specified by -L.
13478       hardcode_minus_L_F77=yes
13479       if test "$GCC" = yes && test -z "$link_static_flag"; then
13480         # Neither direct hardcoding nor static linking is supported with a
13481         # broken collect2.
13482         hardcode_direct_F77=unsupported
13483       fi
13484       ;;
13486     aix4* | aix5*)
13487       if test "$host_cpu" = ia64; then
13488         # On IA64, the linker does run time linking by default, so we don't
13489         # have to do anything special.
13490         aix_use_runtimelinking=no
13491         exp_sym_flag='-Bexport'
13492         no_entry_flag=""
13493       else
13494         # If we're using GNU nm, then we don't want the "-C" option.
13495         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13496         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13497           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13498         else
13499           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13500         fi
13501         aix_use_runtimelinking=no
13503         # Test if we are trying to use run time linking or normal
13504         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13505         # need to do runtime linking.
13506         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13507           for ld_flag in $LDFLAGS; do
13508           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13509             aix_use_runtimelinking=yes
13510             break
13511           fi
13512           done
13513         esac
13515         exp_sym_flag='-bexport'
13516         no_entry_flag='-bnoentry'
13517       fi
13519       # When large executables or shared objects are built, AIX ld can
13520       # have problems creating the table of contents.  If linking a library
13521       # or program results in "error TOC overflow" add -mminimal-toc to
13522       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13523       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13525       archive_cmds_F77=''
13526       hardcode_direct_F77=yes
13527       hardcode_libdir_separator_F77=':'
13528       link_all_deplibs_F77=yes
13530       if test "$GCC" = yes; then
13531         case $host_os in aix4.012|aix4.012.*)
13532         # We only want to do this on AIX 4.2 and lower, the check
13533         # below for broken collect2 doesn't work under 4.3+
13534           collect2name=`${CC} -print-prog-name=collect2`
13535           if test -f "$collect2name" && \
13536            strings "$collect2name" | grep resolve_lib_name >/dev/null
13537           then
13538           # We have reworked collect2
13539           hardcode_direct_F77=yes
13540           else
13541           # We have old collect2
13542           hardcode_direct_F77=unsupported
13543           # It fails to find uninstalled libraries when the uninstalled
13544           # path is not listed in the libpath.  Setting hardcode_minus_L
13545           # to unsupported forces relinking
13546           hardcode_minus_L_F77=yes
13547           hardcode_libdir_flag_spec_F77='-L$libdir'
13548           hardcode_libdir_separator_F77=
13549           fi
13550         esac
13551         shared_flag='-shared'
13552       else
13553         # not using gcc
13554         if test "$host_cpu" = ia64; then
13555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13556         # chokes on -Wl,-G. The following line is correct:
13557           shared_flag='-G'
13558         else
13559         if test "$aix_use_runtimelinking" = yes; then
13560             shared_flag='${wl}-G'
13561           else
13562             shared_flag='${wl}-bM:SRE'
13563         fi
13564         fi
13565       fi
13567       # It seems that -bexpall does not export symbols beginning with
13568       # underscore (_), so it is better to generate a list of symbols to export.
13569       always_export_symbols_F77=yes
13570       if test "$aix_use_runtimelinking" = yes; then
13571         # Warning - without using the other runtime loading flags (-brtl),
13572         # -berok will link without error, but may produce a broken library.
13573         allow_undefined_flag_F77='-berok'
13574        # Determine the default libpath from the value encoded in an empty executable.
13575        cat > conftest.$ac_ext <<_ACEOF
13576       program main
13578       end
13579 _ACEOF
13580 if ac_fn_f77_try_link "$LINENO"; then :
13581   
13582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13584 # Check for a 64-bit object if we didn't find anything.
13585 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13586 }'`; fi
13588 rm -f core conftest.err conftest.$ac_objext \
13589     conftest$ac_exeext conftest.$ac_ext
13590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13592        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13593         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13594        else
13595         if test "$host_cpu" = ia64; then
13596           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13597           allow_undefined_flag_F77="-z nodefs"
13598           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13599         else
13600          # Determine the default libpath from the value encoded in an empty executable.
13601          cat > conftest.$ac_ext <<_ACEOF
13602       program main
13604       end
13605 _ACEOF
13606 if ac_fn_f77_try_link "$LINENO"; then :
13607   
13608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13610 # Check for a 64-bit object if we didn't find anything.
13611 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13612 }'`; fi
13614 rm -f core conftest.err conftest.$ac_objext \
13615     conftest$ac_exeext conftest.$ac_ext
13616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13618          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13619           # Warning - without using the other run time loading flags,
13620           # -berok will link without error, but may produce a broken library.
13621           no_undefined_flag_F77=' ${wl}-bernotok'
13622           allow_undefined_flag_F77=' ${wl}-berok'
13623           # -bexpall does not export symbols beginning with underscore (_)
13624           always_export_symbols_F77=yes
13625           # Exported symbols can be pulled into shared objects from archives
13626           whole_archive_flag_spec_F77=' '
13627           archive_cmds_need_lc_F77=yes
13628           # This is similar to how AIX traditionally builds it's shared libraries.
13629           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13630         fi
13631       fi
13632       ;;
13634     amigaos*)
13635       archive_cmds_F77='$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)'
13636       hardcode_libdir_flag_spec_F77='-L$libdir'
13637       hardcode_minus_L_F77=yes
13638       # see comment about different semantics on the GNU ld section
13639       ld_shlibs_F77=no
13640       ;;
13642     bsdi4*)
13643       export_dynamic_flag_spec_F77=-rdynamic
13644       ;;
13646     cygwin* | mingw* | pw32*)
13647       # When not using gcc, we currently assume that we are using
13648       # Microsoft Visual C++.
13649       # hardcode_libdir_flag_spec is actually meaningless, as there is
13650       # no search path for DLLs.
13651       hardcode_libdir_flag_spec_F77=' '
13652       allow_undefined_flag_F77=unsupported
13653       # Tell ltmain to make .lib files, not .a files.
13654       libext=lib
13655       # Tell ltmain to make .dll files, not .so files.
13656       shrext=".dll"
13657       # FIXME: Setting linknames here is a bad hack.
13658       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13659       # The linker will automatically build a .lib file if we build a DLL.
13660       old_archive_From_new_cmds_F77='true'
13661       # FIXME: Should let the user specify the lib program.
13662       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13663       fix_srcfile_path='`cygpath -w "$srcfile"`'
13664       enable_shared_with_static_runtimes_F77=yes
13665       ;;
13667     darwin* | rhapsody*)
13668     if test "$GXX" = yes ; then
13669       archive_cmds_need_lc_F77=no
13670       case "$host_os" in
13671       rhapsody* | darwin1.[012])
13672         allow_undefined_flag_F77='-undefined suppress'
13673         ;;
13674       *) # Darwin 1.3 on
13675       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13676         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13677       else
13678         case ${MACOSX_DEPLOYMENT_TARGET} in
13679           10.[012])
13680             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13681             ;;
13682           10.*)
13683             allow_undefined_flag_F77='-undefined dynamic_lookup'
13684             ;;
13685         esac
13686       fi
13687         ;;
13688       esac
13689         lt_int_apple_cc_single_mod=no
13690         output_verbose_link_cmd='echo'
13691         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13692           lt_int_apple_cc_single_mod=yes
13693         fi
13694         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13695           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13696         else
13697         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13698       fi
13699       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13700       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13701         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13702           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13703         else
13704           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13705         fi
13706           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13707       hardcode_direct_F77=no
13708       hardcode_automatic_F77=yes
13709       hardcode_shlibpath_var_F77=unsupported
13710       whole_archive_flag_spec_F77='-all_load $convenience'
13711       link_all_deplibs_F77=yes
13712     else
13713       ld_shlibs_F77=no
13714     fi
13715       ;;
13717     dgux*)
13718       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13719       hardcode_libdir_flag_spec_F77='-L$libdir'
13720       hardcode_shlibpath_var_F77=no
13721       ;;
13723     freebsd1*)
13724       ld_shlibs_F77=no
13725       ;;
13727     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13728     # support.  Future versions do this automatically, but an explicit c++rt0.o
13729     # does not break anything, and helps significantly (at the cost of a little
13730     # extra space).
13731     freebsd2.2*)
13732       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13733       hardcode_libdir_flag_spec_F77='-R$libdir'
13734       hardcode_direct_F77=yes
13735       hardcode_shlibpath_var_F77=no
13736       ;;
13738     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13739     freebsd2*)
13740       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741       hardcode_direct_F77=yes
13742       hardcode_minus_L_F77=yes
13743       hardcode_shlibpath_var_F77=no
13744       ;;
13746     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13747     freebsd* | kfreebsd*-gnu)
13748       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13749       hardcode_libdir_flag_spec_F77='-R$libdir'
13750       hardcode_direct_F77=yes
13751       hardcode_shlibpath_var_F77=no
13752       ;;
13754     hpux9*)
13755       if test "$GCC" = yes; then
13756         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13757       else
13758         archive_cmds_F77='$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'
13759       fi
13760       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13761       hardcode_libdir_separator_F77=:
13762       hardcode_direct_F77=yes
13764       # hardcode_minus_L: Not really in the search PATH,
13765       # but as the default location of the library.
13766       hardcode_minus_L_F77=yes
13767       export_dynamic_flag_spec_F77='${wl}-E'
13768       ;;
13770     hpux10* | hpux11*)
13771       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13772         case "$host_cpu" in
13773         hppa*64*|ia64*)
13774           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13775           ;;
13776         *)
13777           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13778           ;;
13779         esac
13780       else
13781         case "$host_cpu" in
13782         hppa*64*|ia64*)
13783           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13784           ;;
13785         *)
13786           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13787           ;;
13788         esac
13789       fi
13790       if test "$with_gnu_ld" = no; then
13791         case "$host_cpu" in
13792         hppa*64*)
13793           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13794           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13795           hardcode_libdir_separator_F77=:
13796           hardcode_direct_F77=no
13797           hardcode_shlibpath_var_F77=no
13798           ;;
13799         ia64*)
13800           hardcode_libdir_flag_spec_F77='-L$libdir'
13801           hardcode_direct_F77=no
13802           hardcode_shlibpath_var_F77=no
13804           # hardcode_minus_L: Not really in the search PATH,
13805           # but as the default location of the library.
13806           hardcode_minus_L_F77=yes
13807           ;;
13808         *)
13809           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13810           hardcode_libdir_separator_F77=:
13811           hardcode_direct_F77=yes
13812           export_dynamic_flag_spec_F77='${wl}-E'
13814           # hardcode_minus_L: Not really in the search PATH,
13815           # but as the default location of the library.
13816           hardcode_minus_L_F77=yes
13817           ;;
13818         esac
13819       fi
13820       ;;
13822     irix5* | irix6* | nonstopux*)
13823       if test "$GCC" = yes; then
13824         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13825       else
13826         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13827         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13828       fi
13829       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13830       hardcode_libdir_separator_F77=:
13831       link_all_deplibs_F77=yes
13832       ;;
13834     netbsd* | knetbsd*-gnu)
13835       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13836         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13837       else
13838         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13839       fi
13840       hardcode_libdir_flag_spec_F77='-R$libdir'
13841       hardcode_direct_F77=yes
13842       hardcode_shlibpath_var_F77=no
13843       ;;
13845     newsos6)
13846       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847       hardcode_direct_F77=yes
13848       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13849       hardcode_libdir_separator_F77=:
13850       hardcode_shlibpath_var_F77=no
13851       ;;
13853     openbsd*)
13854       hardcode_direct_F77=yes
13855       hardcode_shlibpath_var_F77=no
13856       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13857         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13858         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13859         export_dynamic_flag_spec_F77='${wl}-E'
13860       else
13861        case $host_os in
13862          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13863            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13864            hardcode_libdir_flag_spec_F77='-R$libdir'
13865            ;;
13866          *)
13867            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13868            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13869            ;;
13870        esac
13871       fi
13872       ;;
13874     os2*)
13875       hardcode_libdir_flag_spec_F77='-L$libdir'
13876       hardcode_minus_L_F77=yes
13877       allow_undefined_flag_F77=unsupported
13878       archive_cmds_F77='$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'
13879       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13880       ;;
13882     osf3*)
13883       if test "$GCC" = yes; then
13884         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13885         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13886       else
13887         allow_undefined_flag_F77=' -expect_unresolved \*'
13888         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13889       fi
13890       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13891       hardcode_libdir_separator_F77=:
13892       ;;
13894     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13895       if test "$GCC" = yes; then
13896         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13897         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13898         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13899       else
13900         allow_undefined_flag_F77=' -expect_unresolved \*'
13901         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13902         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13903         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13905         # Both c and cxx compiler support -rpath directly
13906         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13907       fi
13908       hardcode_libdir_separator_F77=:
13909       ;;
13911     sco3.2v5*)
13912       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913       hardcode_shlibpath_var_F77=no
13914       export_dynamic_flag_spec_F77='${wl}-Bexport'
13915       runpath_var=LD_RUN_PATH
13916       hardcode_runpath_var=yes
13917       ;;
13919     solaris*)
13920       no_undefined_flag_F77=' -z text'
13921       if test "$GCC" = yes; then
13922         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13923         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13924           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13925       else
13926         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13927         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13928         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13929       fi
13930       hardcode_libdir_flag_spec_F77='-R$libdir'
13931       hardcode_shlibpath_var_F77=no
13932       case $host_os in
13933       solaris2.[0-5] | solaris2.[0-5].*) ;;
13934       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13935         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13936       esac
13937       link_all_deplibs_F77=yes
13938       ;;
13940     sunos4*)
13941       if test "x$host_vendor" = xsequent; then
13942         # Use $CC to link under sequent, because it throws in some extra .o
13943         # files that make .init and .fini sections work.
13944         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13945       else
13946         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13947       fi
13948       hardcode_libdir_flag_spec_F77='-L$libdir'
13949       hardcode_direct_F77=yes
13950       hardcode_minus_L_F77=yes
13951       hardcode_shlibpath_var_F77=no
13952       ;;
13954     sysv4)
13955       case $host_vendor in
13956         sni)
13957           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958           hardcode_direct_F77=yes # is this really true???
13959         ;;
13960         siemens)
13961           ## LD is ld it makes a PLAMLIB
13962           ## CC just makes a GrossModule.
13963           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13964           reload_cmds_F77='$CC -r -o $output$reload_objs'
13965           hardcode_direct_F77=no
13966         ;;
13967         motorola)
13968           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13969           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13970         ;;
13971       esac
13972       runpath_var='LD_RUN_PATH'
13973       hardcode_shlibpath_var_F77=no
13974       ;;
13976     sysv4.3*)
13977       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13978       hardcode_shlibpath_var_F77=no
13979       export_dynamic_flag_spec_F77='-Bexport'
13980       ;;
13982     sysv4*MP*)
13983       if test -d /usr/nec; then
13984         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13985         hardcode_shlibpath_var_F77=no
13986         runpath_var=LD_RUN_PATH
13987         hardcode_runpath_var=yes
13988         ld_shlibs_F77=yes
13989       fi
13990       ;;
13992     sysv4.2uw2*)
13993       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13994       hardcode_direct_F77=yes
13995       hardcode_minus_L_F77=no
13996       hardcode_shlibpath_var_F77=no
13997       hardcode_runpath_var=yes
13998       runpath_var=LD_RUN_PATH
13999       ;;
14001    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14002       no_undefined_flag_F77='${wl}-z ${wl}text'
14003       if test "$GCC" = yes; then
14004         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14005       else
14006         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14007       fi
14008       runpath_var='LD_RUN_PATH'
14009       hardcode_shlibpath_var_F77=no
14010       ;;
14012     sysv5*)
14013       no_undefined_flag_F77=' -z text'
14014       # $CC -shared without GNU ld will not create a library from C++
14015       # object files and a static libstdc++, better avoid it by now
14016       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14018                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14019       hardcode_libdir_flag_spec_F77=
14020       hardcode_shlibpath_var_F77=no
14021       runpath_var='LD_RUN_PATH'
14022       ;;
14024     uts4*)
14025       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026       hardcode_libdir_flag_spec_F77='-L$libdir'
14027       hardcode_shlibpath_var_F77=no
14028       ;;
14030     *)
14031       ld_shlibs_F77=no
14032       ;;
14033     esac
14034   fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14037 $as_echo "$ld_shlibs_F77" >&6; }
14038 test "$ld_shlibs_F77" = no && can_build_shared=no
14040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14041 if test "$GCC" = yes; then
14042   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14046 # Do we need to explicitly link libc?
14048 case "x$archive_cmds_need_lc_F77" in
14049 x|xyes)
14050   # Assume -lc should be added
14051   archive_cmds_need_lc_F77=yes
14053   if test "$enable_shared" = yes && test "$GCC" = yes; then
14054     case $archive_cmds_F77 in
14055     *'~'*)
14056       # FIXME: we may have to deal with multi-command sequences.
14057       ;;
14058     '$CC '*)
14059       # Test whether the compiler implicitly links with -lc since on some
14060       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14061       # to ld, don't add -lc before -lgcc.
14062       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14063 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14064       $rm conftest*
14065       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14067       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14068   (eval $ac_compile) 2>&5
14069   ac_status=$?
14070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071   test $ac_status = 0; } 2>conftest.err; then
14072         soname=conftest
14073         lib=conftest
14074         libobjs=conftest.$ac_objext
14075         deplibs=
14076         wl=$lt_prog_compiler_wl_F77
14077         compiler_flags=-v
14078         linker_flags=-v
14079         verstring=
14080         output_objdir=.
14081         libname=conftest
14082         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14083         allow_undefined_flag_F77=
14084         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14085   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14086   ac_status=$?
14087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088   test $ac_status = 0; }
14089         then
14090           archive_cmds_need_lc_F77=no
14091         else
14092           archive_cmds_need_lc_F77=yes
14093         fi
14094         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14095       else
14096         cat conftest.err 1>&5
14097       fi
14098       $rm conftest*
14099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14100 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14101       ;;
14102     esac
14103   fi
14104   ;;
14105 esac
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14108 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14109 library_names_spec=
14110 libname_spec='lib$name'
14111 soname_spec=
14112 shrext=".so"
14113 postinstall_cmds=
14114 postuninstall_cmds=
14115 finish_cmds=
14116 finish_eval=
14117 shlibpath_var=
14118 shlibpath_overrides_runpath=unknown
14119 version_type=none
14120 dynamic_linker="$host_os ld.so"
14121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14122 if test "$GCC" = yes; then
14123   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14124   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14125     # if the path contains ";" then we assume it to be the separator
14126     # otherwise default to the standard path separator (i.e. ":") - it is
14127     # assumed that no part of a normal pathname contains ";" but that should
14128     # okay in the real world where ";" in dirpaths is itself problematic.
14129     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14130   else
14131     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14132   fi
14133 else
14134   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14136 need_lib_prefix=unknown
14137 hardcode_into_libs=no
14139 # when you set need_version to no, make sure it does not cause -set_version
14140 # flags to be left without arguments
14141 need_version=unknown
14143 case $host_os in
14144 aix3*)
14145   version_type=linux
14146   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14147   shlibpath_var=LIBPATH
14149   # AIX 3 has no versioning support, so we append a major version to the name.
14150   soname_spec='${libname}${release}${shared_ext}$major'
14151   ;;
14153 aix4* | aix5*)
14154   version_type=linux
14155   need_lib_prefix=no
14156   need_version=no
14157   hardcode_into_libs=yes
14158   if test "$host_cpu" = ia64; then
14159     # AIX 5 supports IA64
14160     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14161     shlibpath_var=LD_LIBRARY_PATH
14162   else
14163     # With GCC up to 2.95.x, collect2 would create an import file
14164     # for dependence libraries.  The import file would start with
14165     # the line `#! .'.  This would cause the generated library to
14166     # depend on `.', always an invalid library.  This was fixed in
14167     # development snapshots of GCC prior to 3.0.
14168     case $host_os in
14169       aix4 | aix4.[01] | aix4.[01].*)
14170       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14171            echo ' yes '
14172            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14173         :
14174       else
14175         can_build_shared=no
14176       fi
14177       ;;
14178     esac
14179     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14180     # soname into executable. Probably we can add versioning support to
14181     # collect2, so additional links can be useful in future.
14182     if test "$aix_use_runtimelinking" = yes; then
14183       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14184       # instead of lib<name>.a to let people know that these are not
14185       # typical AIX shared libraries.
14186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187     else
14188       # We preserve .a as extension for shared libraries through AIX4.2
14189       # and later when we are not doing run time linking.
14190       library_names_spec='${libname}${release}.a $libname.a'
14191       soname_spec='${libname}${release}${shared_ext}$major'
14192     fi
14193     shlibpath_var=LIBPATH
14194   fi
14195   ;;
14197 amigaos*)
14198   library_names_spec='$libname.ixlibrary $libname.a'
14199   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14200   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14201   ;;
14203 beos*)
14204   library_names_spec='${libname}${shared_ext}'
14205   dynamic_linker="$host_os ld.so"
14206   shlibpath_var=LIBRARY_PATH
14207   ;;
14209 bsdi4*)
14210   version_type=linux
14211   need_version=no
14212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213   soname_spec='${libname}${release}${shared_ext}$major'
14214   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14215   shlibpath_var=LD_LIBRARY_PATH
14216   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14217   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14218   # the default ld.so.conf also contains /usr/contrib/lib and
14219   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14220   # libtool to hard-code these into programs
14221   ;;
14223 cygwin* | mingw* | pw32*)
14224   version_type=windows
14225   shrext=".dll"
14226   need_version=no
14227   need_lib_prefix=no
14229   case $GCC,$host_os in
14230   yes,cygwin* | yes,mingw* | yes,pw32*)
14231     library_names_spec='$libname.dll.a'
14232     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14233     postinstall_cmds='base_file=`basename \${file}`~
14234       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14235       dldir=$destdir/`dirname \$dlpath`~
14236       test -d \$dldir || mkdir -p \$dldir~
14237       $install_prog $dir/$dlname \$dldir/$dlname'
14238     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14239       dlpath=$dir/\$dldll~
14240        $rm \$dlpath'
14241     shlibpath_overrides_runpath=yes
14243     case $host_os in
14244     cygwin*)
14245       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14246       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14248       ;;
14249     mingw*)
14250       # MinGW DLLs use traditional 'lib' prefix
14251       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14252       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14253       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14254         # It is most probably a Windows format PATH printed by
14255         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14256         # path with ; separators, and with drive letters. We can handle the
14257         # drive letters (cygwin fileutils understands them), so leave them,
14258         # especially as we might pass files found there to a mingw objdump,
14259         # which wouldn't understand a cygwinified path. Ahh.
14260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14261       else
14262         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14263       fi
14264       ;;
14265     pw32*)
14266       # pw32 DLLs use 'pw' prefix rather than 'lib'
14267       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14268       ;;
14269     esac
14270     ;;
14272   *)
14273     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14274     ;;
14275   esac
14276   dynamic_linker='Win32 ld.exe'
14277   # FIXME: first we should search . and the directory the executable is in
14278   shlibpath_var=PATH
14279   ;;
14281 darwin* | rhapsody*)
14282   dynamic_linker="$host_os dyld"
14283   version_type=darwin
14284   need_lib_prefix=no
14285   need_version=no
14286   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14287   soname_spec='${libname}${release}${major}$shared_ext'
14288   shlibpath_overrides_runpath=yes
14289   shlibpath_var=DYLD_LIBRARY_PATH
14290   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14291   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14292   if test "$GCC" = yes; then
14293     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14294   else
14295     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14296   fi
14297   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14298   ;;
14300 dgux*)
14301   version_type=linux
14302   need_lib_prefix=no
14303   need_version=no
14304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14305   soname_spec='${libname}${release}${shared_ext}$major'
14306   shlibpath_var=LD_LIBRARY_PATH
14307   ;;
14309 freebsd1*)
14310   dynamic_linker=no
14311   ;;
14313 kfreebsd*-gnu)
14314   version_type=linux
14315   need_lib_prefix=no
14316   need_version=no
14317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14318   soname_spec='${libname}${release}${shared_ext}$major'
14319   shlibpath_var=LD_LIBRARY_PATH
14320   shlibpath_overrides_runpath=no
14321   hardcode_into_libs=yes
14322   dynamic_linker='GNU ld.so'
14323   ;;
14325 freebsd*)
14326   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14327   version_type=freebsd-$objformat
14328   case $version_type in
14329     freebsd-elf*)
14330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14331       need_version=no
14332       need_lib_prefix=no
14333       ;;
14334     freebsd-*)
14335       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14336       need_version=yes
14337       ;;
14338   esac
14339   shlibpath_var=LD_LIBRARY_PATH
14340   case $host_os in
14341   freebsd2*)
14342     shlibpath_overrides_runpath=yes
14343     ;;
14344   freebsd3.01* | freebsdelf3.01*)
14345     shlibpath_overrides_runpath=yes
14346     hardcode_into_libs=yes
14347     ;;
14348   *) # from 3.2 on
14349     shlibpath_overrides_runpath=no
14350     hardcode_into_libs=yes
14351     ;;
14352   esac
14353   ;;
14355 gnu*)
14356   version_type=linux
14357   need_lib_prefix=no
14358   need_version=no
14359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14360   soname_spec='${libname}${release}${shared_ext}$major'
14361   shlibpath_var=LD_LIBRARY_PATH
14362   hardcode_into_libs=yes
14363   ;;
14365 hpux9* | hpux10* | hpux11*)
14366   # Give a soname corresponding to the major version so that dld.sl refuses to
14367   # link against other versions.
14368   version_type=sunos
14369   need_lib_prefix=no
14370   need_version=no
14371   case "$host_cpu" in
14372   ia64*)
14373     shrext='.so'
14374     hardcode_into_libs=yes
14375     dynamic_linker="$host_os dld.so"
14376     shlibpath_var=LD_LIBRARY_PATH
14377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379     soname_spec='${libname}${release}${shared_ext}$major'
14380     if test "X$HPUX_IA64_MODE" = X32; then
14381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14382     else
14383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14384     fi
14385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14386     ;;
14387    hppa*64*)
14388      shrext='.sl'
14389      hardcode_into_libs=yes
14390      dynamic_linker="$host_os dld.sl"
14391      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14392      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394      soname_spec='${libname}${release}${shared_ext}$major'
14395      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14396      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14397      ;;
14398    *)
14399     shrext='.sl'
14400     dynamic_linker="$host_os dld.sl"
14401     shlibpath_var=SHLIB_PATH
14402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404     soname_spec='${libname}${release}${shared_ext}$major'
14405     ;;
14406   esac
14407   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14408   postinstall_cmds='chmod 555 $lib'
14409   ;;
14411 irix5* | irix6* | nonstopux*)
14412   case $host_os in
14413     nonstopux*) version_type=nonstopux ;;
14414     *)
14415         if test "$lt_cv_prog_gnu_ld" = yes; then
14416                 version_type=linux
14417         else
14418                 version_type=irix
14419         fi ;;
14420   esac
14421   need_lib_prefix=no
14422   need_version=no
14423   soname_spec='${libname}${release}${shared_ext}$major'
14424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14425   case $host_os in
14426   irix5* | nonstopux*)
14427     libsuff= shlibsuff=
14428     ;;
14429   *)
14430     case $LD in # libtool.m4 will add one of these switches to LD
14431     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14432       libsuff= shlibsuff= libmagic=32-bit;;
14433     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14434       libsuff=32 shlibsuff=N32 libmagic=N32;;
14435     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14436       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14437     *) libsuff= shlibsuff= libmagic=never-match;;
14438     esac
14439     ;;
14440   esac
14441   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14442   shlibpath_overrides_runpath=no
14443   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14444   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14445   hardcode_into_libs=yes
14446   ;;
14448 # No shared lib support for Linux oldld, aout, or coff.
14449 linux*oldld* | linux*aout* | linux*coff*)
14450   dynamic_linker=no
14451   ;;
14453 # This must be Linux ELF.
14454 linux*)
14455   version_type=linux
14456   need_lib_prefix=no
14457   need_version=no
14458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459   soname_spec='${libname}${release}${shared_ext}$major'
14460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   shlibpath_overrides_runpath=no
14463   # This implies no fast_install, which is unacceptable.
14464   # Some rework will be needed to allow for fast_install
14465   # before this can be enabled.
14466   hardcode_into_libs=yes
14468   # Append ld.so.conf contents to the search path
14469   if test -f /etc/ld.so.conf; then
14470     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14471     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14472   fi
14474   # We used to test for /lib/ld.so.1 and disable shared libraries on
14475   # powerpc, because MkLinux only supported shared libraries with the
14476   # GNU dynamic linker.  Since this was broken with cross compilers,
14477   # most powerpc-linux boxes support dynamic linking these days and
14478   # people can always --disable-shared, the test was removed, and we
14479   # assume the GNU/Linux dynamic linker is in use.
14480   dynamic_linker='GNU/Linux ld.so'
14481   ;;
14483 knetbsd*-gnu)
14484   version_type=linux
14485   need_lib_prefix=no
14486   need_version=no
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14488   soname_spec='${libname}${release}${shared_ext}$major'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   shlibpath_overrides_runpath=no
14491   hardcode_into_libs=yes
14492   dynamic_linker='GNU ld.so'
14493   ;;
14495 netbsd*)
14496   version_type=sunos
14497   need_lib_prefix=no
14498   need_version=no
14499   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502     dynamic_linker='NetBSD (a.out) ld.so'
14503   else
14504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505     soname_spec='${libname}${release}${shared_ext}$major'
14506     dynamic_linker='NetBSD ld.elf_so'
14507   fi
14508   shlibpath_var=LD_LIBRARY_PATH
14509   shlibpath_overrides_runpath=yes
14510   hardcode_into_libs=yes
14511   ;;
14513 newsos6)
14514   version_type=linux
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516   shlibpath_var=LD_LIBRARY_PATH
14517   shlibpath_overrides_runpath=yes
14518   ;;
14520 nto-qnx*)
14521   version_type=linux
14522   need_lib_prefix=no
14523   need_version=no
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525   soname_spec='${libname}${release}${shared_ext}$major'
14526   shlibpath_var=LD_LIBRARY_PATH
14527   shlibpath_overrides_runpath=yes
14528   ;;
14530 openbsd*)
14531   version_type=sunos
14532   need_lib_prefix=no
14533   need_version=yes
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14536   shlibpath_var=LD_LIBRARY_PATH
14537   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14538     case $host_os in
14539       openbsd2.[89] | openbsd2.[89].*)
14540         shlibpath_overrides_runpath=no
14541         ;;
14542       *)
14543         shlibpath_overrides_runpath=yes
14544         ;;
14545       esac
14546   else
14547     shlibpath_overrides_runpath=yes
14548   fi
14549   ;;
14551 os2*)
14552   libname_spec='$name'
14553   shrext=".dll"
14554   need_lib_prefix=no
14555   library_names_spec='$libname${shared_ext} $libname.a'
14556   dynamic_linker='OS/2 ld.exe'
14557   shlibpath_var=LIBPATH
14558   ;;
14560 osf3* | osf4* | osf5*)
14561   version_type=osf
14562   need_lib_prefix=no
14563   need_version=no
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14568   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14569   ;;
14571 sco3.2v5*)
14572   version_type=osf
14573   soname_spec='${libname}${release}${shared_ext}$major'
14574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575   shlibpath_var=LD_LIBRARY_PATH
14576   ;;
14578 solaris*)
14579   version_type=linux
14580   need_lib_prefix=no
14581   need_version=no
14582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   shlibpath_overrides_runpath=yes
14586   hardcode_into_libs=yes
14587   # ldd complains unless libraries are executable
14588   postinstall_cmds='chmod +x $lib'
14589   ;;
14591 sunos4*)
14592   version_type=sunos
14593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14595   shlibpath_var=LD_LIBRARY_PATH
14596   shlibpath_overrides_runpath=yes
14597   if test "$with_gnu_ld" = yes; then
14598     need_lib_prefix=no
14599   fi
14600   need_version=yes
14601   ;;
14603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14604   version_type=linux
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   case $host_vendor in
14609     sni)
14610       shlibpath_overrides_runpath=no
14611       need_lib_prefix=no
14612       export_dynamic_flag_spec='${wl}-Blargedynsym'
14613       runpath_var=LD_RUN_PATH
14614       ;;
14615     siemens)
14616       need_lib_prefix=no
14617       ;;
14618     motorola)
14619       need_lib_prefix=no
14620       need_version=no
14621       shlibpath_overrides_runpath=no
14622       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14623       ;;
14624   esac
14625   ;;
14627 sysv4*MP*)
14628   if test -d /usr/nec ;then
14629     version_type=linux
14630     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14631     soname_spec='$libname${shared_ext}.$major'
14632     shlibpath_var=LD_LIBRARY_PATH
14633   fi
14634   ;;
14636 uts4*)
14637   version_type=linux
14638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639   soname_spec='${libname}${release}${shared_ext}$major'
14640   shlibpath_var=LD_LIBRARY_PATH
14641   ;;
14644   dynamic_linker=no
14645   ;;
14646 esac
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14648 $as_echo "$dynamic_linker" >&6; }
14649 test "$dynamic_linker" = no && can_build_shared=no
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14653 hardcode_action_F77=
14654 if test -n "$hardcode_libdir_flag_spec_F77" || \
14655    test -n "$runpath_var F77" || \
14656    test "X$hardcode_automatic_F77"="Xyes" ; then
14658   # We can hardcode non-existant directories.
14659   if test "$hardcode_direct_F77" != no &&
14660      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661      # have to relink, otherwise we might link with an installed library
14662      # when we should be linking with a yet-to-be-installed one
14663      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14664      test "$hardcode_minus_L_F77" != no; then
14665     # Linking always hardcodes the temporary library directory.
14666     hardcode_action_F77=relink
14667   else
14668     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669     hardcode_action_F77=immediate
14670   fi
14671 else
14672   # We cannot hardcode anything, or else we can only hardcode existing
14673   # directories.
14674   hardcode_action_F77=unsupported
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14677 $as_echo "$hardcode_action_F77" >&6; }
14679 if test "$hardcode_action_F77" = relink; then
14680   # Fast installation is not supported
14681   enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683      test "$enable_shared" = no; then
14684   # Fast installation is not necessary
14685   enable_fast_install=needless
14688 striplib=
14689 old_striplib=
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14691 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14692 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14693   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14694   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14696 $as_echo "yes" >&6; }
14697 else
14698 # FIXME - insert some real tests, host_os isn't really good enough
14699   case $host_os in
14700    darwin*)
14701        if test -n "$STRIP" ; then
14702          striplib="$STRIP -x"
14703          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14704 $as_echo "yes" >&6; }
14705        else
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14709        ;;
14710    *)
14711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14713     ;;
14714   esac
14719 # The else clause should only fire when bootstrapping the
14720 # libtool distribution, otherwise you forgot to ship ltmain.sh
14721 # with your package, and you will get complaints that there are
14722 # no rules to generate ltmain.sh.
14723 if test -f "$ltmain"; then
14724   # See if we are running on zsh, and set the options which allow our commands through
14725   # without removal of \ escapes.
14726   if test -n "${ZSH_VERSION+set}" ; then
14727     setopt NO_GLOB_SUBST
14728   fi
14729   # Now quote all the things that may contain metacharacters while being
14730   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14731   # variables and quote the copies for generation of the libtool script.
14732   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14733     SED SHELL STRIP \
14734     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14735     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14736     deplibs_check_method reload_flag reload_cmds need_locks \
14737     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14738     lt_cv_sys_global_symbol_to_c_name_address \
14739     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14740     old_postinstall_cmds old_postuninstall_cmds \
14741     compiler_F77 \
14742     CC_F77 \
14743     LD_F77 \
14744     lt_prog_compiler_wl_F77 \
14745     lt_prog_compiler_pic_F77 \
14746     lt_prog_compiler_static_F77 \
14747     lt_prog_compiler_no_builtin_flag_F77 \
14748     export_dynamic_flag_spec_F77 \
14749     thread_safe_flag_spec_F77 \
14750     whole_archive_flag_spec_F77 \
14751     enable_shared_with_static_runtimes_F77 \
14752     old_archive_cmds_F77 \
14753     old_archive_from_new_cmds_F77 \
14754     predep_objects_F77 \
14755     postdep_objects_F77 \
14756     predeps_F77 \
14757     postdeps_F77 \
14758     compiler_lib_search_path_F77 \
14759     archive_cmds_F77 \
14760     archive_expsym_cmds_F77 \
14761     postinstall_cmds_F77 \
14762     postuninstall_cmds_F77 \
14763     old_archive_from_expsyms_cmds_F77 \
14764     allow_undefined_flag_F77 \
14765     no_undefined_flag_F77 \
14766     export_symbols_cmds_F77 \
14767     hardcode_libdir_flag_spec_F77 \
14768     hardcode_libdir_flag_spec_ld_F77 \
14769     hardcode_libdir_separator_F77 \
14770     hardcode_automatic_F77 \
14771     module_cmds_F77 \
14772     module_expsym_cmds_F77 \
14773     lt_cv_prog_compiler_c_o_F77 \
14774     exclude_expsyms_F77 \
14775     include_expsyms_F77; do
14777     case $var in
14778     old_archive_cmds_F77 | \
14779     old_archive_from_new_cmds_F77 | \
14780     archive_cmds_F77 | \
14781     archive_expsym_cmds_F77 | \
14782     module_cmds_F77 | \
14783     module_expsym_cmds_F77 | \
14784     old_archive_from_expsyms_cmds_F77 | \
14785     export_symbols_cmds_F77 | \
14786     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14787     postinstall_cmds | postuninstall_cmds | \
14788     old_postinstall_cmds | old_postuninstall_cmds | \
14789     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14790       # Double-quote double-evaled strings.
14791       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14792       ;;
14793     *)
14794       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14795       ;;
14796     esac
14797   done
14799   case $lt_echo in
14800   *'\$0 --fallback-echo"')
14801     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14802     ;;
14803   esac
14805 cfgfile="$ofile"
14807   cat <<__EOF__ >> "$cfgfile"
14808 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14810 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14812 # Shell to use when invoking shell scripts.
14813 SHELL=$lt_SHELL
14815 # Whether or not to build shared libraries.
14816 build_libtool_libs=$enable_shared
14818 # Whether or not to build static libraries.
14819 build_old_libs=$enable_static
14821 # Whether or not to add -lc for building shared libraries.
14822 build_libtool_need_lc=$archive_cmds_need_lc_F77
14824 # Whether or not to disallow shared libs when runtime libs are static
14825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14827 # Whether or not to optimize for fast installation.
14828 fast_install=$enable_fast_install
14830 # The host system.
14831 host_alias=$host_alias
14832 host=$host
14834 # An echo program that does not interpret backslashes.
14835 echo=$lt_echo
14837 # The archiver.
14838 AR=$lt_AR
14839 AR_FLAGS=$lt_AR_FLAGS
14841 # A C compiler.
14842 LTCC=$lt_LTCC
14844 # A language-specific compiler.
14845 CC=$lt_compiler_F77
14847 # Is the compiler the GNU C compiler?
14848 with_gcc=$GCC_F77
14850 # An ERE matcher.
14851 EGREP=$lt_EGREP
14853 # The linker used to build libraries.
14854 LD=$lt_LD_F77
14856 # Whether we need hard or soft links.
14857 LN_S=$lt_LN_S
14859 # A BSD-compatible nm program.
14860 NM=$lt_NM
14862 # A symbol stripping program
14863 STRIP=$lt_STRIP
14865 # Used to examine libraries when file_magic_cmd begins "file"
14866 MAGIC_CMD=$MAGIC_CMD
14868 # Used on cygwin: DLL creation program.
14869 DLLTOOL="$DLLTOOL"
14871 # Used on cygwin: object dumper.
14872 OBJDUMP="$OBJDUMP"
14874 # Used on cygwin: assembler.
14875 AS="$AS"
14877 # The name of the directory that contains temporary libtool files.
14878 objdir=$objdir
14880 # How to create reloadable object files.
14881 reload_flag=$lt_reload_flag
14882 reload_cmds=$lt_reload_cmds
14884 # How to pass a linker flag through the compiler.
14885 wl=$lt_lt_prog_compiler_wl_F77
14887 # Object file suffix (normally "o").
14888 objext="$ac_objext"
14890 # Old archive suffix (normally "a").
14891 libext="$libext"
14893 # Shared library suffix (normally ".so").
14894 shrext='$shrext'
14896 # Executable file suffix (normally "").
14897 exeext="$exeext"
14899 # Additional compiler flags for building library objects.
14900 pic_flag=$lt_lt_prog_compiler_pic_F77
14901 pic_mode=$pic_mode
14903 # What is the maximum length of a command?
14904 max_cmd_len=$lt_cv_sys_max_cmd_len
14906 # Does compiler simultaneously support -c and -o options?
14907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14909 # Must we lock files when doing compilation ?
14910 need_locks=$lt_need_locks
14912 # Do we need the lib prefix for modules?
14913 need_lib_prefix=$need_lib_prefix
14915 # Do we need a version for libraries?
14916 need_version=$need_version
14918 # Whether dlopen is supported.
14919 dlopen_support=$enable_dlopen
14921 # Whether dlopen of programs is supported.
14922 dlopen_self=$enable_dlopen_self
14924 # Whether dlopen of statically linked programs is supported.
14925 dlopen_self_static=$enable_dlopen_self_static
14927 # Compiler flag to prevent dynamic linking.
14928 link_static_flag=$lt_lt_prog_compiler_static_F77
14930 # Compiler flag to turn off builtin functions.
14931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14933 # Compiler flag to allow reflexive dlopens.
14934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14936 # Compiler flag to generate shared objects directly from archives.
14937 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14939 # Compiler flag to generate thread-safe objects.
14940 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14942 # Library versioning type.
14943 version_type=$version_type
14945 # Format of library name prefix.
14946 libname_spec=$lt_libname_spec
14948 # List of archive names.  First name is the real one, the rest are links.
14949 # The last name is the one that the linker finds with -lNAME.
14950 library_names_spec=$lt_library_names_spec
14952 # The coded name of the library, if different from the real name.
14953 soname_spec=$lt_soname_spec
14955 # Commands used to build and install an old-style archive.
14956 RANLIB=$lt_RANLIB
14957 old_archive_cmds=$lt_old_archive_cmds_F77
14958 old_postinstall_cmds=$lt_old_postinstall_cmds
14959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14961 # Create an old-style archive from a shared archive.
14962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14964 # Create a temporary old-style archive to link instead of a shared archive.
14965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14967 # Commands used to build and install a shared archive.
14968 archive_cmds=$lt_archive_cmds_F77
14969 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14970 postinstall_cmds=$lt_postinstall_cmds
14971 postuninstall_cmds=$lt_postuninstall_cmds
14973 # Commands used to build a loadable module (assumed same as above if empty)
14974 module_cmds=$lt_module_cmds_F77
14975 module_expsym_cmds=$lt_module_expsym_cmds_F77
14977 # Commands to strip libraries.
14978 old_striplib=$lt_old_striplib
14979 striplib=$lt_striplib
14981 # Dependencies to place before the objects being linked to create a
14982 # shared library.
14983 predep_objects=$lt_predep_objects_F77
14985 # Dependencies to place after the objects being linked to create a
14986 # shared library.
14987 postdep_objects=$lt_postdep_objects_F77
14989 # Dependencies to place before the objects being linked to create a
14990 # shared library.
14991 predeps=$lt_predeps_F77
14993 # Dependencies to place after the objects being linked to create a
14994 # shared library.
14995 postdeps=$lt_postdeps_F77
14997 # The library search path used internally by the compiler when linking
14998 # a shared library.
14999 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15001 # Method to check whether dependent libraries are shared objects.
15002 deplibs_check_method=$lt_deplibs_check_method
15004 # Command to use when deplibs_check_method == file_magic.
15005 file_magic_cmd=$lt_file_magic_cmd
15007 # Flag that allows shared libraries with undefined symbols to be built.
15008 allow_undefined_flag=$lt_allow_undefined_flag_F77
15010 # Flag that forces no undefined symbols.
15011 no_undefined_flag=$lt_no_undefined_flag_F77
15013 # Commands used to finish a libtool library installation in a directory.
15014 finish_cmds=$lt_finish_cmds
15016 # Same as above, but a single script fragment to be evaled but not shown.
15017 finish_eval=$lt_finish_eval
15019 # Take the output of nm and produce a listing of raw symbols and C names.
15020 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15022 # Transform the output of nm in a proper C declaration
15023 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15025 # Transform the output of nm in a C name address pair
15026 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15028 # This is the shared library runtime path variable.
15029 runpath_var=$runpath_var
15031 # This is the shared library path variable.
15032 shlibpath_var=$shlibpath_var
15034 # Is shlibpath searched before the hard-coded library search path?
15035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15037 # How to hardcode a shared library path into an executable.
15038 hardcode_action=$hardcode_action_F77
15040 # Whether we should hardcode library paths into libraries.
15041 hardcode_into_libs=$hardcode_into_libs
15043 # Flag to hardcode \$libdir into a binary during linking.
15044 # This must work even if \$libdir does not exist.
15045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15047 # If ld is used when linking, flag to hardcode \$libdir into
15048 # a binary during linking. This must work even if \$libdir does
15049 # not exist.
15050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15052 # Whether we need a single -rpath flag with a separated argument.
15053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15055 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15056 # resulting binary.
15057 hardcode_direct=$hardcode_direct_F77
15059 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15060 # resulting binary.
15061 hardcode_minus_L=$hardcode_minus_L_F77
15063 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15064 # the resulting binary.
15065 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15067 # Set to yes if building a shared library automatically hardcodes DIR into the library
15068 # and all subsequent libraries and executables linked against it.
15069 hardcode_automatic=$hardcode_automatic_F77
15071 # Variables whose values should be saved in libtool wrapper scripts and
15072 # restored at relink time.
15073 variables_saved_for_relink="$variables_saved_for_relink"
15075 # Whether libtool must link a program against all its dependency libraries.
15076 link_all_deplibs=$link_all_deplibs_F77
15078 # Compile-time system search path for libraries
15079 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15081 # Run-time system search path for libraries
15082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15084 # Fix the shell variable \$srcfile for the compiler.
15085 fix_srcfile_path="$fix_srcfile_path_F77"
15087 # Set to yes if exported symbols are required.
15088 always_export_symbols=$always_export_symbols_F77
15090 # The commands to list exported symbols.
15091 export_symbols_cmds=$lt_export_symbols_cmds_F77
15093 # The commands to extract the exported symbol list from a shared archive.
15094 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15096 # Symbols that should not be listed in the preloaded symbols.
15097 exclude_expsyms=$lt_exclude_expsyms_F77
15099 # Symbols that must always be exported.
15100 include_expsyms=$lt_include_expsyms_F77
15102 # ### END LIBTOOL TAG CONFIG: $tagname
15104 __EOF__
15107 else
15108   # If there is no Makefile yet, we rely on a make rule to execute
15109   # `config.status --recheck' to rerun these tests and create the
15110   # libtool script then.
15111   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15112   if test -f "$ltmain_in"; then
15113     test -f Makefile && make "$ltmain"
15114   fi
15118 ac_ext=c
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15124 CC="$lt_save_CC"
15126         else
15127           tagname=""
15128         fi
15129         ;;
15131       GCJ)
15132         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15133           
15135 # Source file extension for Java test sources.
15136 ac_ext=java
15138 # Object file extension for compiled Java test sources.
15139 objext=o
15140 objext_GCJ=$objext
15142 # Code to be used in simple compile tests
15143 lt_simple_compile_test_code="class foo {}\n"
15145 # Code to be used in simple link tests
15146 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15150 # If no C compiler was specified, use CC.
15151 LTCC=${LTCC-"$CC"}
15153 # Allow CC to be a program name with arguments.
15154 compiler=$CC
15157 # Allow CC to be a program name with arguments.
15158 lt_save_CC="$CC"
15159 CC=${GCJ-"gcj"}
15160 compiler=$CC
15161 compiler_GCJ=$CC
15163 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15164 archive_cmds_need_lc_GCJ=no
15167 lt_prog_compiler_no_builtin_flag_GCJ=
15169 if test "$GCC" = yes; then
15170   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15172   
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15175 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15176   $as_echo_n "(cached) " >&6
15177 else
15178   lt_cv_prog_compiler_rtti_exceptions=no
15179   ac_outfile=conftest.$ac_objext
15180    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15181    lt_compiler_flag="-fno-rtti -fno-exceptions"
15182    # Insert the option either (1) after the last *FLAGS variable, or
15183    # (2) before a word containing "conftest.", or (3) at the end.
15184    # Note that $ac_compile itself does not contain backslashes and begins
15185    # with a dollar sign (not a hyphen), so the echo should work correctly.
15186    # The option is referenced via a variable to avoid confusing sed.
15187    lt_compile=`echo "$ac_compile" | $SED \
15188    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15190    -e 's:$: $lt_compiler_flag:'`
15191    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15192    (eval "$lt_compile" 2>conftest.err)
15193    ac_status=$?
15194    cat conftest.err >&5
15195    echo "$as_me:__oline__: \$? = $ac_status" >&5
15196    if (exit $ac_status) && test -s "$ac_outfile"; then
15197      # The compiler can only warn and ignore the option if not recognized
15198      # So say no if there are warnings
15199      if test ! -s conftest.err; then
15200        lt_cv_prog_compiler_rtti_exceptions=yes
15201      fi
15202    fi
15203    $rm conftest*
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15210     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15211 else
15212     :
15217 lt_prog_compiler_wl_GCJ=
15218 lt_prog_compiler_pic_GCJ=
15219 lt_prog_compiler_static_GCJ=
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15224   if test "$GCC" = yes; then
15225     lt_prog_compiler_wl_GCJ='-Wl,'
15226     lt_prog_compiler_static_GCJ='-static'
15228     case $host_os in
15229       aix*)
15230       # All AIX code is PIC.
15231       if test "$host_cpu" = ia64; then
15232         # AIX 5 now supports IA64 processor
15233         lt_prog_compiler_static_GCJ='-Bstatic'
15234       fi
15235       ;;
15237     amigaos*)
15238       # FIXME: we need at least 68020 code to build shared libraries, but
15239       # adding the `-m68020' flag to GCC prevents building anything better,
15240       # like `-m68040'.
15241       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15242       ;;
15244     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15245       # PIC is the default for these OSes.
15246       ;;
15248     mingw* | pw32* | os2*)
15249       # This hack is so that the source file can tell whether it is being
15250       # built for inclusion in a dll (and should export symbols for example).
15251       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15252       ;;
15254     darwin* | rhapsody*)
15255       # PIC is the default on this platform
15256       # Common symbols not allowed in MH_DYLIB files
15257       lt_prog_compiler_pic_GCJ='-fno-common'
15258       ;;
15260     msdosdjgpp*)
15261       # Just because we use GCC doesn't mean we suddenly get shared libraries
15262       # on systems that don't support them.
15263       lt_prog_compiler_can_build_shared_GCJ=no
15264       enable_shared=no
15265       ;;
15267     sysv4*MP*)
15268       if test -d /usr/nec; then
15269         lt_prog_compiler_pic_GCJ=-Kconform_pic
15270       fi
15271       ;;
15273     hpux*)
15274       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15275       # not for PA HP-UX.
15276       case "$host_cpu" in
15277       hppa*64*|ia64*)
15278         # +Z the default
15279         ;;
15280       *)
15281         lt_prog_compiler_pic_GCJ='-fPIC'
15282         ;;
15283       esac
15284       ;;
15286     *)
15287       lt_prog_compiler_pic_GCJ='-fPIC'
15288       ;;
15289     esac
15290   else
15291     # PORTME Check for flag to pass linker flags through the system compiler.
15292     case $host_os in
15293     aix*)
15294       lt_prog_compiler_wl_GCJ='-Wl,'
15295       if test "$host_cpu" = ia64; then
15296         # AIX 5 now supports IA64 processor
15297         lt_prog_compiler_static_GCJ='-Bstatic'
15298       else
15299         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15300       fi
15301       ;;
15303     mingw* | pw32* | os2*)
15304       # This hack is so that the source file can tell whether it is being
15305       # built for inclusion in a dll (and should export symbols for example).
15306       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15307       ;;
15309     hpux9* | hpux10* | hpux11*)
15310       lt_prog_compiler_wl_GCJ='-Wl,'
15311       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15312       # not for PA HP-UX.
15313       case "$host_cpu" in
15314       hppa*64*|ia64*)
15315         # +Z the default
15316         ;;
15317       *)
15318         lt_prog_compiler_pic_GCJ='+Z'
15319         ;;
15320       esac
15321       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15322       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15323       ;;
15325     irix5* | irix6* | nonstopux*)
15326       lt_prog_compiler_wl_GCJ='-Wl,'
15327       # PIC (with -KPIC) is the default.
15328       lt_prog_compiler_static_GCJ='-non_shared'
15329       ;;
15331     newsos6)
15332       lt_prog_compiler_pic_GCJ='-KPIC'
15333       lt_prog_compiler_static_GCJ='-Bstatic'
15334       ;;
15336     linux*)
15337       case $CC in
15338       icc* | ecc*)
15339         lt_prog_compiler_wl_GCJ='-Wl,'
15340         lt_prog_compiler_pic_GCJ='-KPIC'
15341         lt_prog_compiler_static_GCJ='-static'
15342         ;;
15343       ccc*)
15344         lt_prog_compiler_wl_GCJ='-Wl,'
15345         # All Alpha code is PIC.
15346         lt_prog_compiler_static_GCJ='-non_shared'
15347         ;;
15348       esac
15349       ;;
15351     osf3* | osf4* | osf5*)
15352       lt_prog_compiler_wl_GCJ='-Wl,'
15353       # All OSF/1 code is PIC.
15354       lt_prog_compiler_static_GCJ='-non_shared'
15355       ;;
15357     sco3.2v5*)
15358       lt_prog_compiler_pic_GCJ='-Kpic'
15359       lt_prog_compiler_static_GCJ='-dn'
15360       ;;
15362     solaris*)
15363       lt_prog_compiler_wl_GCJ='-Wl,'
15364       lt_prog_compiler_pic_GCJ='-KPIC'
15365       lt_prog_compiler_static_GCJ='-Bstatic'
15366       ;;
15368     sunos4*)
15369       lt_prog_compiler_wl_GCJ='-Qoption ld '
15370       lt_prog_compiler_pic_GCJ='-PIC'
15371       lt_prog_compiler_static_GCJ='-Bstatic'
15372       ;;
15374     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15375       lt_prog_compiler_wl_GCJ='-Wl,'
15376       lt_prog_compiler_pic_GCJ='-KPIC'
15377       lt_prog_compiler_static_GCJ='-Bstatic'
15378       ;;
15380     sysv4*MP*)
15381       if test -d /usr/nec ;then
15382         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15383         lt_prog_compiler_static_GCJ='-Bstatic'
15384       fi
15385       ;;
15387     uts4*)
15388       lt_prog_compiler_pic_GCJ='-pic'
15389       lt_prog_compiler_static_GCJ='-Bstatic'
15390       ;;
15392     *)
15393       lt_prog_compiler_can_build_shared_GCJ=no
15394       ;;
15395     esac
15396   fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15399 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15402 # Check to make sure the PIC flag actually works.
15404 if test -n "$lt_prog_compiler_pic_GCJ"; then
15405   
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15407 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15408 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411   lt_prog_compiler_pic_works_GCJ=no
15412   ac_outfile=conftest.$ac_objext
15413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15414    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15415    # Insert the option either (1) after the last *FLAGS variable, or
15416    # (2) before a word containing "conftest.", or (3) at the end.
15417    # Note that $ac_compile itself does not contain backslashes and begins
15418    # with a dollar sign (not a hyphen), so the echo should work correctly.
15419    # The option is referenced via a variable to avoid confusing sed.
15420    lt_compile=`echo "$ac_compile" | $SED \
15421    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423    -e 's:$: $lt_compiler_flag:'`
15424    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15425    (eval "$lt_compile" 2>conftest.err)
15426    ac_status=$?
15427    cat conftest.err >&5
15428    echo "$as_me:__oline__: \$? = $ac_status" >&5
15429    if (exit $ac_status) && test -s "$ac_outfile"; then
15430      # The compiler can only warn and ignore the option if not recognized
15431      # So say no if there are warnings
15432      if test ! -s conftest.err; then
15433        lt_prog_compiler_pic_works_GCJ=yes
15434      fi
15435    fi
15436    $rm conftest*
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15440 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15442 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15443     case $lt_prog_compiler_pic_GCJ in
15444      "" | " "*) ;;
15445      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15446      esac
15447 else
15448     lt_prog_compiler_pic_GCJ=
15449      lt_prog_compiler_can_build_shared_GCJ=no
15453 case "$host_os" in
15454   # For platforms which do not support PIC, -DPIC is meaningless:
15455   *djgpp*)
15456     lt_prog_compiler_pic_GCJ=
15457     ;;
15458   *)
15459     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15460     ;;
15461 esac
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15465 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
15466   $as_echo_n "(cached) " >&6
15467 else
15468   lt_cv_prog_compiler_c_o_GCJ=no
15469    $rm -r conftest 2>/dev/null
15470    mkdir conftest
15471    cd conftest
15472    mkdir out
15473    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15475    lt_compiler_flag="-o out/conftest2.$ac_objext"
15476    # Insert the option either (1) after the last *FLAGS variable, or
15477    # (2) before a word containing "conftest.", or (3) at the end.
15478    # Note that $ac_compile itself does not contain backslashes and begins
15479    # with a dollar sign (not a hyphen), so the echo should work correctly.
15480    lt_compile=`echo "$ac_compile" | $SED \
15481    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483    -e 's:$: $lt_compiler_flag:'`
15484    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15485    (eval "$lt_compile" 2>out/conftest.err)
15486    ac_status=$?
15487    cat out/conftest.err >&5
15488    echo "$as_me:__oline__: \$? = $ac_status" >&5
15489    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15490    then
15491      # The compiler can only warn and ignore the option if not recognized
15492      # So say no if there are warnings
15493      if test ! -s out/conftest.err; then
15494        lt_cv_prog_compiler_c_o_GCJ=yes
15495      fi
15496    fi
15497    chmod u+w .
15498    $rm conftest*
15499    # SGI C++ compiler will create directory out/ii_files/ for
15500    # template instantiation
15501    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15502    $rm out/* && rmdir out
15503    cd ..
15504    rmdir conftest
15505    $rm conftest*
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15509 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15512 hard_links="nottested"
15513 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15514   # do not overwrite the value of need_locks provided by the user
15515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15516 $as_echo_n "checking if we can lock with hard links... " >&6; }
15517   hard_links=yes
15518   $rm conftest*
15519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15520   touch conftest.a
15521   ln conftest.a conftest.b 2>&5 || hard_links=no
15522   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15524 $as_echo "$hard_links" >&6; }
15525   if test "$hard_links" = no; then
15526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15527 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15528     need_locks=warn
15529   fi
15530 else
15531   need_locks=no
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15537   runpath_var=
15538   allow_undefined_flag_GCJ=
15539   enable_shared_with_static_runtimes_GCJ=no
15540   archive_cmds_GCJ=
15541   archive_expsym_cmds_GCJ=
15542   old_archive_From_new_cmds_GCJ=
15543   old_archive_from_expsyms_cmds_GCJ=
15544   export_dynamic_flag_spec_GCJ=
15545   whole_archive_flag_spec_GCJ=
15546   thread_safe_flag_spec_GCJ=
15547   hardcode_libdir_flag_spec_GCJ=
15548   hardcode_libdir_flag_spec_ld_GCJ=
15549   hardcode_libdir_separator_GCJ=
15550   hardcode_direct_GCJ=no
15551   hardcode_minus_L_GCJ=no
15552   hardcode_shlibpath_var_GCJ=unsupported
15553   link_all_deplibs_GCJ=unknown
15554   hardcode_automatic_GCJ=no
15555   module_cmds_GCJ=
15556   module_expsym_cmds_GCJ=
15557   always_export_symbols_GCJ=no
15558   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15559   # include_expsyms should be a list of space-separated symbols to be *always*
15560   # included in the symbol list
15561   include_expsyms_GCJ=
15562   # exclude_expsyms can be an extended regexp of symbols to exclude
15563   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15564   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15565   # as well as any symbol that contains `d'.
15566   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15567   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15568   # platforms (ab)use it in PIC code, but their linkers get confused if
15569   # the symbol is explicitly referenced.  Since portable code cannot
15570   # rely on this symbol name, it's probably fine to never include it in
15571   # preloaded symbol tables.
15572   extract_expsyms_cmds=
15574   case $host_os in
15575   cygwin* | mingw* | pw32*)
15576     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15577     # When not using gcc, we currently assume that we are using
15578     # Microsoft Visual C++.
15579     if test "$GCC" != yes; then
15580       with_gnu_ld=no
15581     fi
15582     ;;
15583   openbsd*)
15584     with_gnu_ld=no
15585     ;;
15586   esac
15588   ld_shlibs_GCJ=yes
15589   if test "$with_gnu_ld" = yes; then
15590     # If archive_cmds runs LD, not CC, wlarc should be empty
15591     wlarc='${wl}'
15593     # See if GNU ld supports shared libraries.
15594     case $host_os in
15595     aix3* | aix4* | aix5*)
15596       # On AIX/PPC, the GNU linker is very broken
15597       if test "$host_cpu" != ia64; then
15598         ld_shlibs_GCJ=no
15599         cat <<EOF 1>&2
15601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15602 *** to be unable to reliably create shared libraries on AIX.
15603 *** Therefore, libtool is disabling shared libraries support.  If you
15604 *** really care for shared libraries, you may want to modify your PATH
15605 *** so that a non-GNU linker is found, and then restart.
15608       fi
15609       ;;
15611     amigaos*)
15612       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15613       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15614       hardcode_minus_L_GCJ=yes
15616       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15617       # that the semantics of dynamic libraries on AmigaOS, at least up
15618       # to version 4, is to share data among multiple programs linked
15619       # with the same dynamic library.  Since this doesn't match the
15620       # behavior of shared libraries on other platforms, we can't use
15621       # them.
15622       ld_shlibs_GCJ=no
15623       ;;
15625     beos*)
15626       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15627         allow_undefined_flag_GCJ=unsupported
15628         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15629         # support --undefined.  This deserves some investigation.  FIXME
15630         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631       else
15632         ld_shlibs_GCJ=no
15633       fi
15634       ;;
15636     cygwin* | mingw* | pw32*)
15637       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15638       # as there is no search path for DLLs.
15639       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640       allow_undefined_flag_GCJ=unsupported
15641       always_export_symbols_GCJ=no
15642       enable_shared_with_static_runtimes_GCJ=yes
15643       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15645       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15646         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15647         # If the export-symbols file already is a .def file (1st line
15648         # is EXPORTS), use it as is; otherwise, prepend...
15649         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15650           cp $export_symbols $output_objdir/$soname.def;
15651         else
15652           echo EXPORTS > $output_objdir/$soname.def;
15653           cat $export_symbols >> $output_objdir/$soname.def;
15654         fi~
15655         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15656       else
15657         ld_shlibs=no
15658       fi
15659       ;;
15661     netbsd* | knetbsd*-gnu)
15662       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15664         wlarc=
15665       else
15666         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15667         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15668       fi
15669       ;;
15671     solaris* | sysv5*)
15672       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15673         ld_shlibs_GCJ=no
15674         cat <<EOF 1>&2
15676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15677 *** create shared libraries on Solaris systems.  Therefore, libtool
15678 *** is disabling shared libraries support.  We urge you to upgrade GNU
15679 *** binutils to release 2.9.1 or newer.  Another option is to modify
15680 *** your PATH or compiler configuration so that the native linker is
15681 *** used, and then restart.
15684       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15685         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15687       else
15688         ld_shlibs_GCJ=no
15689       fi
15690       ;;
15692     sunos4*)
15693       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15694       wlarc=
15695       hardcode_direct_GCJ=yes
15696       hardcode_shlibpath_var_GCJ=no
15697       ;;
15699   linux*)
15700     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15701         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702         archive_cmds_GCJ="$tmp_archive_cmds"
15703       supports_anon_versioning=no
15704       case `$LD -v 2>/dev/null` in
15705         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15706         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15707         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15708         *\ 2.11.*) ;; # other 2.11 versions
15709         *) supports_anon_versioning=yes ;;
15710       esac
15711       if test $supports_anon_versioning = yes; then
15712         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15714 $echo "local: *; };" >> $output_objdir/$libname.ver~
15715         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15716       else
15717         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15718       fi
15719     else
15720       ld_shlibs_GCJ=no
15721     fi
15722     ;;
15724     *)
15725       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15726         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15727         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15728       else
15729         ld_shlibs_GCJ=no
15730       fi
15731       ;;
15732     esac
15734     if test "$ld_shlibs_GCJ" = yes; then
15735       runpath_var=LD_RUN_PATH
15736       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15737       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15738       # ancient GNU ld didn't support --whole-archive et. al.
15739       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15740         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15741       else
15742         whole_archive_flag_spec_GCJ=
15743       fi
15744     fi
15745   else
15746     # PORTME fill in a description of your system's linker (not GNU ld)
15747     case $host_os in
15748     aix3*)
15749       allow_undefined_flag_GCJ=unsupported
15750       always_export_symbols_GCJ=yes
15751       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15752       # Note: this linker hardcodes the directories in LIBPATH if there
15753       # are no directories specified by -L.
15754       hardcode_minus_L_GCJ=yes
15755       if test "$GCC" = yes && test -z "$link_static_flag"; then
15756         # Neither direct hardcoding nor static linking is supported with a
15757         # broken collect2.
15758         hardcode_direct_GCJ=unsupported
15759       fi
15760       ;;
15762     aix4* | aix5*)
15763       if test "$host_cpu" = ia64; then
15764         # On IA64, the linker does run time linking by default, so we don't
15765         # have to do anything special.
15766         aix_use_runtimelinking=no
15767         exp_sym_flag='-Bexport'
15768         no_entry_flag=""
15769       else
15770         # If we're using GNU nm, then we don't want the "-C" option.
15771         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15772         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15773           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15774         else
15775           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15776         fi
15777         aix_use_runtimelinking=no
15779         # Test if we are trying to use run time linking or normal
15780         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15781         # need to do runtime linking.
15782         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15783           for ld_flag in $LDFLAGS; do
15784           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15785             aix_use_runtimelinking=yes
15786             break
15787           fi
15788           done
15789         esac
15791         exp_sym_flag='-bexport'
15792         no_entry_flag='-bnoentry'
15793       fi
15795       # When large executables or shared objects are built, AIX ld can
15796       # have problems creating the table of contents.  If linking a library
15797       # or program results in "error TOC overflow" add -mminimal-toc to
15798       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15799       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15801       archive_cmds_GCJ=''
15802       hardcode_direct_GCJ=yes
15803       hardcode_libdir_separator_GCJ=':'
15804       link_all_deplibs_GCJ=yes
15806       if test "$GCC" = yes; then
15807         case $host_os in aix4.012|aix4.012.*)
15808         # We only want to do this on AIX 4.2 and lower, the check
15809         # below for broken collect2 doesn't work under 4.3+
15810           collect2name=`${CC} -print-prog-name=collect2`
15811           if test -f "$collect2name" && \
15812            strings "$collect2name" | grep resolve_lib_name >/dev/null
15813           then
15814           # We have reworked collect2
15815           hardcode_direct_GCJ=yes
15816           else
15817           # We have old collect2
15818           hardcode_direct_GCJ=unsupported
15819           # It fails to find uninstalled libraries when the uninstalled
15820           # path is not listed in the libpath.  Setting hardcode_minus_L
15821           # to unsupported forces relinking
15822           hardcode_minus_L_GCJ=yes
15823           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15824           hardcode_libdir_separator_GCJ=
15825           fi
15826         esac
15827         shared_flag='-shared'
15828       else
15829         # not using gcc
15830         if test "$host_cpu" = ia64; then
15831         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15832         # chokes on -Wl,-G. The following line is correct:
15833           shared_flag='-G'
15834         else
15835         if test "$aix_use_runtimelinking" = yes; then
15836             shared_flag='${wl}-G'
15837           else
15838             shared_flag='${wl}-bM:SRE'
15839         fi
15840         fi
15841       fi
15843       # It seems that -bexpall does not export symbols beginning with
15844       # underscore (_), so it is better to generate a list of symbols to export.
15845       always_export_symbols_GCJ=yes
15846       if test "$aix_use_runtimelinking" = yes; then
15847         # Warning - without using the other runtime loading flags (-brtl),
15848         # -berok will link without error, but may produce a broken library.
15849         allow_undefined_flag_GCJ='-berok'
15850        # Determine the default libpath from the value encoded in an empty executable.
15851        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h.  */
15855 main ()
15858   ;
15859   return 0;
15861 _ACEOF
15862 if ac_fn_c_try_link "$LINENO"; then :
15863   
15864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15866 # Check for a 64-bit object if we didn't find anything.
15867 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15868 }'`; fi
15870 rm -f core conftest.err conftest.$ac_objext \
15871     conftest$ac_exeext conftest.$ac_ext
15872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15874        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15875         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15876        else
15877         if test "$host_cpu" = ia64; then
15878           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15879           allow_undefined_flag_GCJ="-z nodefs"
15880           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15881         else
15882          # Determine the default libpath from the value encoded in an empty executable.
15883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h.  */
15887 main ()
15890   ;
15891   return 0;
15893 _ACEOF
15894 if ac_fn_c_try_link "$LINENO"; then :
15895   
15896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15898 # Check for a 64-bit object if we didn't find anything.
15899 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15900 }'`; fi
15902 rm -f core conftest.err conftest.$ac_objext \
15903     conftest$ac_exeext conftest.$ac_ext
15904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15906          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15907           # Warning - without using the other run time loading flags,
15908           # -berok will link without error, but may produce a broken library.
15909           no_undefined_flag_GCJ=' ${wl}-bernotok'
15910           allow_undefined_flag_GCJ=' ${wl}-berok'
15911           # -bexpall does not export symbols beginning with underscore (_)
15912           always_export_symbols_GCJ=yes
15913           # Exported symbols can be pulled into shared objects from archives
15914           whole_archive_flag_spec_GCJ=' '
15915           archive_cmds_need_lc_GCJ=yes
15916           # This is similar to how AIX traditionally builds it's shared libraries.
15917           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15918         fi
15919       fi
15920       ;;
15922     amigaos*)
15923       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15924       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15925       hardcode_minus_L_GCJ=yes
15926       # see comment about different semantics on the GNU ld section
15927       ld_shlibs_GCJ=no
15928       ;;
15930     bsdi4*)
15931       export_dynamic_flag_spec_GCJ=-rdynamic
15932       ;;
15934     cygwin* | mingw* | pw32*)
15935       # When not using gcc, we currently assume that we are using
15936       # Microsoft Visual C++.
15937       # hardcode_libdir_flag_spec is actually meaningless, as there is
15938       # no search path for DLLs.
15939       hardcode_libdir_flag_spec_GCJ=' '
15940       allow_undefined_flag_GCJ=unsupported
15941       # Tell ltmain to make .lib files, not .a files.
15942       libext=lib
15943       # Tell ltmain to make .dll files, not .so files.
15944       shrext=".dll"
15945       # FIXME: Setting linknames here is a bad hack.
15946       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15947       # The linker will automatically build a .lib file if we build a DLL.
15948       old_archive_From_new_cmds_GCJ='true'
15949       # FIXME: Should let the user specify the lib program.
15950       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15951       fix_srcfile_path='`cygpath -w "$srcfile"`'
15952       enable_shared_with_static_runtimes_GCJ=yes
15953       ;;
15955     darwin* | rhapsody*)
15956     if test "$GXX" = yes ; then
15957       archive_cmds_need_lc_GCJ=no
15958       case "$host_os" in
15959       rhapsody* | darwin1.[012])
15960         allow_undefined_flag_GCJ='-undefined suppress'
15961         ;;
15962       *) # Darwin 1.3 on
15963       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15964         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15965       else
15966         case ${MACOSX_DEPLOYMENT_TARGET} in
15967           10.[012])
15968             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15969             ;;
15970           10.*)
15971             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15972             ;;
15973         esac
15974       fi
15975         ;;
15976       esac
15977         lt_int_apple_cc_single_mod=no
15978         output_verbose_link_cmd='echo'
15979         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15980           lt_int_apple_cc_single_mod=yes
15981         fi
15982         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15983           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15984         else
15985         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15986       fi
15987       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15988       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15989         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15990           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15991         else
15992           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15993         fi
15994           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15995       hardcode_direct_GCJ=no
15996       hardcode_automatic_GCJ=yes
15997       hardcode_shlibpath_var_GCJ=unsupported
15998       whole_archive_flag_spec_GCJ='-all_load $convenience'
15999       link_all_deplibs_GCJ=yes
16000     else
16001       ld_shlibs_GCJ=no
16002     fi
16003       ;;
16005     dgux*)
16006       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16007       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16008       hardcode_shlibpath_var_GCJ=no
16009       ;;
16011     freebsd1*)
16012       ld_shlibs_GCJ=no
16013       ;;
16015     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16016     # support.  Future versions do this automatically, but an explicit c++rt0.o
16017     # does not break anything, and helps significantly (at the cost of a little
16018     # extra space).
16019     freebsd2.2*)
16020       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16021       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16022       hardcode_direct_GCJ=yes
16023       hardcode_shlibpath_var_GCJ=no
16024       ;;
16026     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16027     freebsd2*)
16028       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16029       hardcode_direct_GCJ=yes
16030       hardcode_minus_L_GCJ=yes
16031       hardcode_shlibpath_var_GCJ=no
16032       ;;
16034     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16035     freebsd* | kfreebsd*-gnu)
16036       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16037       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16038       hardcode_direct_GCJ=yes
16039       hardcode_shlibpath_var_GCJ=no
16040       ;;
16042     hpux9*)
16043       if test "$GCC" = yes; then
16044         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16045       else
16046         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16047       fi
16048       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16049       hardcode_libdir_separator_GCJ=:
16050       hardcode_direct_GCJ=yes
16052       # hardcode_minus_L: Not really in the search PATH,
16053       # but as the default location of the library.
16054       hardcode_minus_L_GCJ=yes
16055       export_dynamic_flag_spec_GCJ='${wl}-E'
16056       ;;
16058     hpux10* | hpux11*)
16059       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16060         case "$host_cpu" in
16061         hppa*64*|ia64*)
16062           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16063           ;;
16064         *)
16065           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16066           ;;
16067         esac
16068       else
16069         case "$host_cpu" in
16070         hppa*64*|ia64*)
16071           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16072           ;;
16073         *)
16074           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16075           ;;
16076         esac
16077       fi
16078       if test "$with_gnu_ld" = no; then
16079         case "$host_cpu" in
16080         hppa*64*)
16081           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16082           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16083           hardcode_libdir_separator_GCJ=:
16084           hardcode_direct_GCJ=no
16085           hardcode_shlibpath_var_GCJ=no
16086           ;;
16087         ia64*)
16088           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16089           hardcode_direct_GCJ=no
16090           hardcode_shlibpath_var_GCJ=no
16092           # hardcode_minus_L: Not really in the search PATH,
16093           # but as the default location of the library.
16094           hardcode_minus_L_GCJ=yes
16095           ;;
16096         *)
16097           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16098           hardcode_libdir_separator_GCJ=:
16099           hardcode_direct_GCJ=yes
16100           export_dynamic_flag_spec_GCJ='${wl}-E'
16102           # hardcode_minus_L: Not really in the search PATH,
16103           # but as the default location of the library.
16104           hardcode_minus_L_GCJ=yes
16105           ;;
16106         esac
16107       fi
16108       ;;
16110     irix5* | irix6* | nonstopux*)
16111       if test "$GCC" = yes; then
16112         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16113       else
16114         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16115         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16116       fi
16117       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16118       hardcode_libdir_separator_GCJ=:
16119       link_all_deplibs_GCJ=yes
16120       ;;
16122     netbsd* | knetbsd*-gnu)
16123       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16124         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16125       else
16126         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16127       fi
16128       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16129       hardcode_direct_GCJ=yes
16130       hardcode_shlibpath_var_GCJ=no
16131       ;;
16133     newsos6)
16134       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135       hardcode_direct_GCJ=yes
16136       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16137       hardcode_libdir_separator_GCJ=:
16138       hardcode_shlibpath_var_GCJ=no
16139       ;;
16141     openbsd*)
16142       hardcode_direct_GCJ=yes
16143       hardcode_shlibpath_var_GCJ=no
16144       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16147         export_dynamic_flag_spec_GCJ='${wl}-E'
16148       else
16149        case $host_os in
16150          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16151            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16153            ;;
16154          *)
16155            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16156            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16157            ;;
16158        esac
16159       fi
16160       ;;
16162     os2*)
16163       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164       hardcode_minus_L_GCJ=yes
16165       allow_undefined_flag_GCJ=unsupported
16166       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16167       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16168       ;;
16170     osf3*)
16171       if test "$GCC" = yes; then
16172         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16173         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16174       else
16175         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16176         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16177       fi
16178       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16179       hardcode_libdir_separator_GCJ=:
16180       ;;
16182     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16183       if test "$GCC" = yes; then
16184         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16185         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16186         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16187       else
16188         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16189         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16190         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16191         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16193         # Both c and cxx compiler support -rpath directly
16194         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16195       fi
16196       hardcode_libdir_separator_GCJ=:
16197       ;;
16199     sco3.2v5*)
16200       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201       hardcode_shlibpath_var_GCJ=no
16202       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16203       runpath_var=LD_RUN_PATH
16204       hardcode_runpath_var=yes
16205       ;;
16207     solaris*)
16208       no_undefined_flag_GCJ=' -z text'
16209       if test "$GCC" = yes; then
16210         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16211         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16212           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16213       else
16214         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16216         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16217       fi
16218       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16219       hardcode_shlibpath_var_GCJ=no
16220       case $host_os in
16221       solaris2.[0-5] | solaris2.[0-5].*) ;;
16222       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16223         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16224       esac
16225       link_all_deplibs_GCJ=yes
16226       ;;
16228     sunos4*)
16229       if test "x$host_vendor" = xsequent; then
16230         # Use $CC to link under sequent, because it throws in some extra .o
16231         # files that make .init and .fini sections work.
16232         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16233       else
16234         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16235       fi
16236       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16237       hardcode_direct_GCJ=yes
16238       hardcode_minus_L_GCJ=yes
16239       hardcode_shlibpath_var_GCJ=no
16240       ;;
16242     sysv4)
16243       case $host_vendor in
16244         sni)
16245           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246           hardcode_direct_GCJ=yes # is this really true???
16247         ;;
16248         siemens)
16249           ## LD is ld it makes a PLAMLIB
16250           ## CC just makes a GrossModule.
16251           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16252           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16253           hardcode_direct_GCJ=no
16254         ;;
16255         motorola)
16256           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16258         ;;
16259       esac
16260       runpath_var='LD_RUN_PATH'
16261       hardcode_shlibpath_var_GCJ=no
16262       ;;
16264     sysv4.3*)
16265       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266       hardcode_shlibpath_var_GCJ=no
16267       export_dynamic_flag_spec_GCJ='-Bexport'
16268       ;;
16270     sysv4*MP*)
16271       if test -d /usr/nec; then
16272         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273         hardcode_shlibpath_var_GCJ=no
16274         runpath_var=LD_RUN_PATH
16275         hardcode_runpath_var=yes
16276         ld_shlibs_GCJ=yes
16277       fi
16278       ;;
16280     sysv4.2uw2*)
16281       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16282       hardcode_direct_GCJ=yes
16283       hardcode_minus_L_GCJ=no
16284       hardcode_shlibpath_var_GCJ=no
16285       hardcode_runpath_var=yes
16286       runpath_var=LD_RUN_PATH
16287       ;;
16289    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16290       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16291       if test "$GCC" = yes; then
16292         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16293       else
16294         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295       fi
16296       runpath_var='LD_RUN_PATH'
16297       hardcode_shlibpath_var_GCJ=no
16298       ;;
16300     sysv5*)
16301       no_undefined_flag_GCJ=' -z text'
16302       # $CC -shared without GNU ld will not create a library from C++
16303       # object files and a static libstdc++, better avoid it by now
16304       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16305       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16306                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16307       hardcode_libdir_flag_spec_GCJ=
16308       hardcode_shlibpath_var_GCJ=no
16309       runpath_var='LD_RUN_PATH'
16310       ;;
16312     uts4*)
16313       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16315       hardcode_shlibpath_var_GCJ=no
16316       ;;
16318     *)
16319       ld_shlibs_GCJ=no
16320       ;;
16321     esac
16322   fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16325 $as_echo "$ld_shlibs_GCJ" >&6; }
16326 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16329 if test "$GCC" = yes; then
16330   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16334 # Do we need to explicitly link libc?
16336 case "x$archive_cmds_need_lc_GCJ" in
16337 x|xyes)
16338   # Assume -lc should be added
16339   archive_cmds_need_lc_GCJ=yes
16341   if test "$enable_shared" = yes && test "$GCC" = yes; then
16342     case $archive_cmds_GCJ in
16343     *'~'*)
16344       # FIXME: we may have to deal with multi-command sequences.
16345       ;;
16346     '$CC '*)
16347       # Test whether the compiler implicitly links with -lc since on some
16348       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16349       # to ld, don't add -lc before -lgcc.
16350       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16351 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16352       $rm conftest*
16353       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16355       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16356   (eval $ac_compile) 2>&5
16357   ac_status=$?
16358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359   test $ac_status = 0; } 2>conftest.err; then
16360         soname=conftest
16361         lib=conftest
16362         libobjs=conftest.$ac_objext
16363         deplibs=
16364         wl=$lt_prog_compiler_wl_GCJ
16365         compiler_flags=-v
16366         linker_flags=-v
16367         verstring=
16368         output_objdir=.
16369         libname=conftest
16370         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16371         allow_undefined_flag_GCJ=
16372         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16373   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16374   ac_status=$?
16375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16376   test $ac_status = 0; }
16377         then
16378           archive_cmds_need_lc_GCJ=no
16379         else
16380           archive_cmds_need_lc_GCJ=yes
16381         fi
16382         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16383       else
16384         cat conftest.err 1>&5
16385       fi
16386       $rm conftest*
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
16388 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16389       ;;
16390     esac
16391   fi
16392   ;;
16393 esac
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16396 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16397 library_names_spec=
16398 libname_spec='lib$name'
16399 soname_spec=
16400 shrext=".so"
16401 postinstall_cmds=
16402 postuninstall_cmds=
16403 finish_cmds=
16404 finish_eval=
16405 shlibpath_var=
16406 shlibpath_overrides_runpath=unknown
16407 version_type=none
16408 dynamic_linker="$host_os ld.so"
16409 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16410 if test "$GCC" = yes; then
16411   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16412   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16413     # if the path contains ";" then we assume it to be the separator
16414     # otherwise default to the standard path separator (i.e. ":") - it is
16415     # assumed that no part of a normal pathname contains ";" but that should
16416     # okay in the real world where ";" in dirpaths is itself problematic.
16417     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16418   else
16419     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16420   fi
16421 else
16422   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16424 need_lib_prefix=unknown
16425 hardcode_into_libs=no
16427 # when you set need_version to no, make sure it does not cause -set_version
16428 # flags to be left without arguments
16429 need_version=unknown
16431 case $host_os in
16432 aix3*)
16433   version_type=linux
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16435   shlibpath_var=LIBPATH
16437   # AIX 3 has no versioning support, so we append a major version to the name.
16438   soname_spec='${libname}${release}${shared_ext}$major'
16439   ;;
16441 aix4* | aix5*)
16442   version_type=linux
16443   need_lib_prefix=no
16444   need_version=no
16445   hardcode_into_libs=yes
16446   if test "$host_cpu" = ia64; then
16447     # AIX 5 supports IA64
16448     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16449     shlibpath_var=LD_LIBRARY_PATH
16450   else
16451     # With GCC up to 2.95.x, collect2 would create an import file
16452     # for dependence libraries.  The import file would start with
16453     # the line `#! .'.  This would cause the generated library to
16454     # depend on `.', always an invalid library.  This was fixed in
16455     # development snapshots of GCC prior to 3.0.
16456     case $host_os in
16457       aix4 | aix4.[01] | aix4.[01].*)
16458       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16459            echo ' yes '
16460            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16461         :
16462       else
16463         can_build_shared=no
16464       fi
16465       ;;
16466     esac
16467     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16468     # soname into executable. Probably we can add versioning support to
16469     # collect2, so additional links can be useful in future.
16470     if test "$aix_use_runtimelinking" = yes; then
16471       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16472       # instead of lib<name>.a to let people know that these are not
16473       # typical AIX shared libraries.
16474       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475     else
16476       # We preserve .a as extension for shared libraries through AIX4.2
16477       # and later when we are not doing run time linking.
16478       library_names_spec='${libname}${release}.a $libname.a'
16479       soname_spec='${libname}${release}${shared_ext}$major'
16480     fi
16481     shlibpath_var=LIBPATH
16482   fi
16483   ;;
16485 amigaos*)
16486   library_names_spec='$libname.ixlibrary $libname.a'
16487   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16488   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16489   ;;
16491 beos*)
16492   library_names_spec='${libname}${shared_ext}'
16493   dynamic_linker="$host_os ld.so"
16494   shlibpath_var=LIBRARY_PATH
16495   ;;
16497 bsdi4*)
16498   version_type=linux
16499   need_version=no
16500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501   soname_spec='${libname}${release}${shared_ext}$major'
16502   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16505   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16506   # the default ld.so.conf also contains /usr/contrib/lib and
16507   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16508   # libtool to hard-code these into programs
16509   ;;
16511 cygwin* | mingw* | pw32*)
16512   version_type=windows
16513   shrext=".dll"
16514   need_version=no
16515   need_lib_prefix=no
16517   case $GCC,$host_os in
16518   yes,cygwin* | yes,mingw* | yes,pw32*)
16519     library_names_spec='$libname.dll.a'
16520     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16521     postinstall_cmds='base_file=`basename \${file}`~
16522       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16523       dldir=$destdir/`dirname \$dlpath`~
16524       test -d \$dldir || mkdir -p \$dldir~
16525       $install_prog $dir/$dlname \$dldir/$dlname'
16526     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527       dlpath=$dir/\$dldll~
16528        $rm \$dlpath'
16529     shlibpath_overrides_runpath=yes
16531     case $host_os in
16532     cygwin*)
16533       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16535       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16536       ;;
16537     mingw*)
16538       # MinGW DLLs use traditional 'lib' prefix
16539       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16541       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16542         # It is most probably a Windows format PATH printed by
16543         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16544         # path with ; separators, and with drive letters. We can handle the
16545         # drive letters (cygwin fileutils understands them), so leave them,
16546         # especially as we might pass files found there to a mingw objdump,
16547         # which wouldn't understand a cygwinified path. Ahh.
16548         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16549       else
16550         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16551       fi
16552       ;;
16553     pw32*)
16554       # pw32 DLLs use 'pw' prefix rather than 'lib'
16555       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16556       ;;
16557     esac
16558     ;;
16560   *)
16561     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16562     ;;
16563   esac
16564   dynamic_linker='Win32 ld.exe'
16565   # FIXME: first we should search . and the directory the executable is in
16566   shlibpath_var=PATH
16567   ;;
16569 darwin* | rhapsody*)
16570   dynamic_linker="$host_os dyld"
16571   version_type=darwin
16572   need_lib_prefix=no
16573   need_version=no
16574   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16575   soname_spec='${libname}${release}${major}$shared_ext'
16576   shlibpath_overrides_runpath=yes
16577   shlibpath_var=DYLD_LIBRARY_PATH
16578   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16579   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16580   if test "$GCC" = yes; then
16581     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16582   else
16583     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16584   fi
16585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16586   ;;
16588 dgux*)
16589   version_type=linux
16590   need_lib_prefix=no
16591   need_version=no
16592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16593   soname_spec='${libname}${release}${shared_ext}$major'
16594   shlibpath_var=LD_LIBRARY_PATH
16595   ;;
16597 freebsd1*)
16598   dynamic_linker=no
16599   ;;
16601 kfreebsd*-gnu)
16602   version_type=linux
16603   need_lib_prefix=no
16604   need_version=no
16605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606   soname_spec='${libname}${release}${shared_ext}$major'
16607   shlibpath_var=LD_LIBRARY_PATH
16608   shlibpath_overrides_runpath=no
16609   hardcode_into_libs=yes
16610   dynamic_linker='GNU ld.so'
16611   ;;
16613 freebsd*)
16614   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16615   version_type=freebsd-$objformat
16616   case $version_type in
16617     freebsd-elf*)
16618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16619       need_version=no
16620       need_lib_prefix=no
16621       ;;
16622     freebsd-*)
16623       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16624       need_version=yes
16625       ;;
16626   esac
16627   shlibpath_var=LD_LIBRARY_PATH
16628   case $host_os in
16629   freebsd2*)
16630     shlibpath_overrides_runpath=yes
16631     ;;
16632   freebsd3.01* | freebsdelf3.01*)
16633     shlibpath_overrides_runpath=yes
16634     hardcode_into_libs=yes
16635     ;;
16636   *) # from 3.2 on
16637     shlibpath_overrides_runpath=no
16638     hardcode_into_libs=yes
16639     ;;
16640   esac
16641   ;;
16643 gnu*)
16644   version_type=linux
16645   need_lib_prefix=no
16646   need_version=no
16647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16648   soname_spec='${libname}${release}${shared_ext}$major'
16649   shlibpath_var=LD_LIBRARY_PATH
16650   hardcode_into_libs=yes
16651   ;;
16653 hpux9* | hpux10* | hpux11*)
16654   # Give a soname corresponding to the major version so that dld.sl refuses to
16655   # link against other versions.
16656   version_type=sunos
16657   need_lib_prefix=no
16658   need_version=no
16659   case "$host_cpu" in
16660   ia64*)
16661     shrext='.so'
16662     hardcode_into_libs=yes
16663     dynamic_linker="$host_os dld.so"
16664     shlibpath_var=LD_LIBRARY_PATH
16665     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667     soname_spec='${libname}${release}${shared_ext}$major'
16668     if test "X$HPUX_IA64_MODE" = X32; then
16669       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16670     else
16671       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16672     fi
16673     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16674     ;;
16675    hppa*64*)
16676      shrext='.sl'
16677      hardcode_into_libs=yes
16678      dynamic_linker="$host_os dld.sl"
16679      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16680      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16681      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682      soname_spec='${libname}${release}${shared_ext}$major'
16683      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16684      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16685      ;;
16686    *)
16687     shrext='.sl'
16688     dynamic_linker="$host_os dld.sl"
16689     shlibpath_var=SHLIB_PATH
16690     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692     soname_spec='${libname}${release}${shared_ext}$major'
16693     ;;
16694   esac
16695   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16696   postinstall_cmds='chmod 555 $lib'
16697   ;;
16699 irix5* | irix6* | nonstopux*)
16700   case $host_os in
16701     nonstopux*) version_type=nonstopux ;;
16702     *)
16703         if test "$lt_cv_prog_gnu_ld" = yes; then
16704                 version_type=linux
16705         else
16706                 version_type=irix
16707         fi ;;
16708   esac
16709   need_lib_prefix=no
16710   need_version=no
16711   soname_spec='${libname}${release}${shared_ext}$major'
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16713   case $host_os in
16714   irix5* | nonstopux*)
16715     libsuff= shlibsuff=
16716     ;;
16717   *)
16718     case $LD in # libtool.m4 will add one of these switches to LD
16719     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16720       libsuff= shlibsuff= libmagic=32-bit;;
16721     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16722       libsuff=32 shlibsuff=N32 libmagic=N32;;
16723     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16724       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16725     *) libsuff= shlibsuff= libmagic=never-match;;
16726     esac
16727     ;;
16728   esac
16729   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16730   shlibpath_overrides_runpath=no
16731   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16732   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16733   hardcode_into_libs=yes
16734   ;;
16736 # No shared lib support for Linux oldld, aout, or coff.
16737 linux*oldld* | linux*aout* | linux*coff*)
16738   dynamic_linker=no
16739   ;;
16741 # This must be Linux ELF.
16742 linux*)
16743   version_type=linux
16744   need_lib_prefix=no
16745   need_version=no
16746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747   soname_spec='${libname}${release}${shared_ext}$major'
16748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16749   shlibpath_var=LD_LIBRARY_PATH
16750   shlibpath_overrides_runpath=no
16751   # This implies no fast_install, which is unacceptable.
16752   # Some rework will be needed to allow for fast_install
16753   # before this can be enabled.
16754   hardcode_into_libs=yes
16756   # Append ld.so.conf contents to the search path
16757   if test -f /etc/ld.so.conf; then
16758     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16759     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16760   fi
16762   # We used to test for /lib/ld.so.1 and disable shared libraries on
16763   # powerpc, because MkLinux only supported shared libraries with the
16764   # GNU dynamic linker.  Since this was broken with cross compilers,
16765   # most powerpc-linux boxes support dynamic linking these days and
16766   # people can always --disable-shared, the test was removed, and we
16767   # assume the GNU/Linux dynamic linker is in use.
16768   dynamic_linker='GNU/Linux ld.so'
16769   ;;
16771 knetbsd*-gnu)
16772   version_type=linux
16773   need_lib_prefix=no
16774   need_version=no
16775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16776   soname_spec='${libname}${release}${shared_ext}$major'
16777   shlibpath_var=LD_LIBRARY_PATH
16778   shlibpath_overrides_runpath=no
16779   hardcode_into_libs=yes
16780   dynamic_linker='GNU ld.so'
16781   ;;
16783 netbsd*)
16784   version_type=sunos
16785   need_lib_prefix=no
16786   need_version=no
16787   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16790     dynamic_linker='NetBSD (a.out) ld.so'
16791   else
16792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16793     soname_spec='${libname}${release}${shared_ext}$major'
16794     dynamic_linker='NetBSD ld.elf_so'
16795   fi
16796   shlibpath_var=LD_LIBRARY_PATH
16797   shlibpath_overrides_runpath=yes
16798   hardcode_into_libs=yes
16799   ;;
16801 newsos6)
16802   version_type=linux
16803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   shlibpath_overrides_runpath=yes
16806   ;;
16808 nto-qnx*)
16809   version_type=linux
16810   need_lib_prefix=no
16811   need_version=no
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   shlibpath_overrides_runpath=yes
16816   ;;
16818 openbsd*)
16819   version_type=sunos
16820   need_lib_prefix=no
16821   need_version=yes
16822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16826     case $host_os in
16827       openbsd2.[89] | openbsd2.[89].*)
16828         shlibpath_overrides_runpath=no
16829         ;;
16830       *)
16831         shlibpath_overrides_runpath=yes
16832         ;;
16833       esac
16834   else
16835     shlibpath_overrides_runpath=yes
16836   fi
16837   ;;
16839 os2*)
16840   libname_spec='$name'
16841   shrext=".dll"
16842   need_lib_prefix=no
16843   library_names_spec='$libname${shared_ext} $libname.a'
16844   dynamic_linker='OS/2 ld.exe'
16845   shlibpath_var=LIBPATH
16846   ;;
16848 osf3* | osf4* | osf5*)
16849   version_type=osf
16850   need_lib_prefix=no
16851   need_version=no
16852   soname_spec='${libname}${release}${shared_ext}$major'
16853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854   shlibpath_var=LD_LIBRARY_PATH
16855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16857   ;;
16859 sco3.2v5*)
16860   version_type=osf
16861   soname_spec='${libname}${release}${shared_ext}$major'
16862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863   shlibpath_var=LD_LIBRARY_PATH
16864   ;;
16866 solaris*)
16867   version_type=linux
16868   need_lib_prefix=no
16869   need_version=no
16870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871   soname_spec='${libname}${release}${shared_ext}$major'
16872   shlibpath_var=LD_LIBRARY_PATH
16873   shlibpath_overrides_runpath=yes
16874   hardcode_into_libs=yes
16875   # ldd complains unless libraries are executable
16876   postinstall_cmds='chmod +x $lib'
16877   ;;
16879 sunos4*)
16880   version_type=sunos
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16882   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   shlibpath_overrides_runpath=yes
16885   if test "$with_gnu_ld" = yes; then
16886     need_lib_prefix=no
16887   fi
16888   need_version=yes
16889   ;;
16891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16892   version_type=linux
16893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894   soname_spec='${libname}${release}${shared_ext}$major'
16895   shlibpath_var=LD_LIBRARY_PATH
16896   case $host_vendor in
16897     sni)
16898       shlibpath_overrides_runpath=no
16899       need_lib_prefix=no
16900       export_dynamic_flag_spec='${wl}-Blargedynsym'
16901       runpath_var=LD_RUN_PATH
16902       ;;
16903     siemens)
16904       need_lib_prefix=no
16905       ;;
16906     motorola)
16907       need_lib_prefix=no
16908       need_version=no
16909       shlibpath_overrides_runpath=no
16910       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16911       ;;
16912   esac
16913   ;;
16915 sysv4*MP*)
16916   if test -d /usr/nec ;then
16917     version_type=linux
16918     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16919     soname_spec='$libname${shared_ext}.$major'
16920     shlibpath_var=LD_LIBRARY_PATH
16921   fi
16922   ;;
16924 uts4*)
16925   version_type=linux
16926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927   soname_spec='${libname}${release}${shared_ext}$major'
16928   shlibpath_var=LD_LIBRARY_PATH
16929   ;;
16932   dynamic_linker=no
16933   ;;
16934 esac
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16936 $as_echo "$dynamic_linker" >&6; }
16937 test "$dynamic_linker" = no && can_build_shared=no
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16940 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16941 hardcode_action_GCJ=
16942 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16943    test -n "$runpath_var GCJ" || \
16944    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16946   # We can hardcode non-existant directories.
16947   if test "$hardcode_direct_GCJ" != no &&
16948      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16949      # have to relink, otherwise we might link with an installed library
16950      # when we should be linking with a yet-to-be-installed one
16951      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16952      test "$hardcode_minus_L_GCJ" != no; then
16953     # Linking always hardcodes the temporary library directory.
16954     hardcode_action_GCJ=relink
16955   else
16956     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16957     hardcode_action_GCJ=immediate
16958   fi
16959 else
16960   # We cannot hardcode anything, or else we can only hardcode existing
16961   # directories.
16962   hardcode_action_GCJ=unsupported
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16965 $as_echo "$hardcode_action_GCJ" >&6; }
16967 if test "$hardcode_action_GCJ" = relink; then
16968   # Fast installation is not supported
16969   enable_fast_install=no
16970 elif test "$shlibpath_overrides_runpath" = yes ||
16971      test "$enable_shared" = no; then
16972   # Fast installation is not necessary
16973   enable_fast_install=needless
16976 striplib=
16977 old_striplib=
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16979 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16980 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16981   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16982   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16984 $as_echo "yes" >&6; }
16985 else
16986 # FIXME - insert some real tests, host_os isn't really good enough
16987   case $host_os in
16988    darwin*)
16989        if test -n "$STRIP" ; then
16990          striplib="$STRIP -x"
16991          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16992 $as_echo "yes" >&6; }
16993        else
16994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16997        ;;
16998    *)
16999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17000 $as_echo "no" >&6; }
17001     ;;
17002   esac
17005 if test "x$enable_dlopen" != xyes; then
17006   enable_dlopen=unknown
17007   enable_dlopen_self=unknown
17008   enable_dlopen_self_static=unknown
17009 else
17010   lt_cv_dlopen=no
17011   lt_cv_dlopen_libs=
17013   case $host_os in
17014   beos*)
17015     lt_cv_dlopen="load_add_on"
17016     lt_cv_dlopen_libs=
17017     lt_cv_dlopen_self=yes
17018     ;;
17020   mingw* | pw32*)
17021     lt_cv_dlopen="LoadLibrary"
17022     lt_cv_dlopen_libs=
17023    ;;
17025   cygwin*)
17026     lt_cv_dlopen="dlopen"
17027     lt_cv_dlopen_libs=
17028    ;;
17030   darwin*)
17031   # if libdl is installed we need to link against it
17032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17034 if ${ac_cv_lib_dl_dlopen+:} false; then :
17035   $as_echo_n "(cached) " >&6
17036 else
17037   ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-ldl  $LIBS"
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h.  */
17042 /* Override any GCC internal prototype to avoid an error.
17043    Use char because int might match the return type of a GCC
17044    builtin and then its argument prototype would still apply.  */
17045 #ifdef __cplusplus
17046 extern "C"
17047 #endif
17048 char dlopen ();
17050 main ()
17052 return dlopen ();
17053   ;
17054   return 0;
17056 _ACEOF
17057 if ac_fn_c_try_link "$LINENO"; then :
17058   ac_cv_lib_dl_dlopen=yes
17059 else
17060   ac_cv_lib_dl_dlopen=no
17062 rm -f core conftest.err conftest.$ac_objext \
17063     conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17068 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17069   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17070 else
17071   
17072     lt_cv_dlopen="dyld"
17073     lt_cv_dlopen_libs=
17074     lt_cv_dlopen_self=yes
17075     
17078    ;;
17080   *)
17081     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17082 if test "x$ac_cv_func_shl_load" = xyes; then :
17083   lt_cv_dlopen="shl_load"
17084 else
17085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17086 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17087 if ${ac_cv_lib_dld_shl_load+:} false; then :
17088   $as_echo_n "(cached) " >&6
17089 else
17090   ac_check_lib_save_LIBS=$LIBS
17091 LIBS="-ldld  $LIBS"
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h.  */
17095 /* Override any GCC internal prototype to avoid an error.
17096    Use char because int might match the return type of a GCC
17097    builtin and then its argument prototype would still apply.  */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char shl_load ();
17103 main ()
17105 return shl_load ();
17106   ;
17107   return 0;
17109 _ACEOF
17110 if ac_fn_c_try_link "$LINENO"; then :
17111   ac_cv_lib_dld_shl_load=yes
17112 else
17113   ac_cv_lib_dld_shl_load=no
17115 rm -f core conftest.err conftest.$ac_objext \
17116     conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17120 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17121 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17122   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17123 else
17124   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17125 if test "x$ac_cv_func_dlopen" = xyes; then :
17126   lt_cv_dlopen="dlopen"
17127 else
17128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17130 if ${ac_cv_lib_dl_dlopen+:} false; then :
17131   $as_echo_n "(cached) " >&6
17132 else
17133   ac_check_lib_save_LIBS=$LIBS
17134 LIBS="-ldl  $LIBS"
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h.  */
17138 /* Override any GCC internal prototype to avoid an error.
17139    Use char because int might match the return type of a GCC
17140    builtin and then its argument prototype would still apply.  */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 char dlopen ();
17146 main ()
17148 return dlopen ();
17149   ;
17150   return 0;
17152 _ACEOF
17153 if ac_fn_c_try_link "$LINENO"; then :
17154   ac_cv_lib_dl_dlopen=yes
17155 else
17156   ac_cv_lib_dl_dlopen=no
17158 rm -f core conftest.err conftest.$ac_objext \
17159     conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17164 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17165   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17166 else
17167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17169 if ${ac_cv_lib_svld_dlopen+:} false; then :
17170   $as_echo_n "(cached) " >&6
17171 else
17172   ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-lsvld  $LIBS"
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h.  */
17177 /* Override any GCC internal prototype to avoid an error.
17178    Use char because int might match the return type of a GCC
17179    builtin and then its argument prototype would still apply.  */
17180 #ifdef __cplusplus
17181 extern "C"
17182 #endif
17183 char dlopen ();
17185 main ()
17187 return dlopen ();
17188   ;
17189   return 0;
17191 _ACEOF
17192 if ac_fn_c_try_link "$LINENO"; then :
17193   ac_cv_lib_svld_dlopen=yes
17194 else
17195   ac_cv_lib_svld_dlopen=no
17197 rm -f core conftest.err conftest.$ac_objext \
17198     conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17204   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17205 else
17206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17208 if ${ac_cv_lib_dld_dld_link+:} false; then :
17209   $as_echo_n "(cached) " >&6
17210 else
17211   ac_check_lib_save_LIBS=$LIBS
17212 LIBS="-ldld  $LIBS"
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h.  */
17216 /* Override any GCC internal prototype to avoid an error.
17217    Use char because int might match the return type of a GCC
17218    builtin and then its argument prototype would still apply.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char dld_link ();
17224 main ()
17226 return dld_link ();
17227   ;
17228   return 0;
17230 _ACEOF
17231 if ac_fn_c_try_link "$LINENO"; then :
17232   ac_cv_lib_dld_dld_link=yes
17233 else
17234   ac_cv_lib_dld_dld_link=no
17236 rm -f core conftest.err conftest.$ac_objext \
17237     conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17241 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17242 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17243   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17246               
17249             
17252           
17255         
17258       
17261     ;;
17262   esac
17264   if test "x$lt_cv_dlopen" != xno; then
17265     enable_dlopen=yes
17266   else
17267     enable_dlopen=no
17268   fi
17270   case $lt_cv_dlopen in
17271   dlopen)
17272     save_CPPFLAGS="$CPPFLAGS"
17273     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17275     save_LDFLAGS="$LDFLAGS"
17276     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17278     save_LIBS="$LIBS"
17279     LIBS="$lt_cv_dlopen_libs $LIBS"
17281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17282 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17283 if ${lt_cv_dlopen_self+:} false; then :
17284   $as_echo_n "(cached) " >&6
17285 else
17286           if test "$cross_compiling" = yes; then :
17287   lt_cv_dlopen_self=cross
17288 else
17289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17290   lt_status=$lt_dlunknown
17291   cat > conftest.$ac_ext <<EOF
17292 #line __oline__ "configure"
17293 #include "confdefs.h"
17295 #if HAVE_DLFCN_H
17296 #include <dlfcn.h>
17297 #endif
17299 #include <stdio.h>
17301 #ifdef RTLD_GLOBAL
17302 #  define LT_DLGLOBAL           RTLD_GLOBAL
17303 #else
17304 #  ifdef DL_GLOBAL
17305 #    define LT_DLGLOBAL         DL_GLOBAL
17306 #  else
17307 #    define LT_DLGLOBAL         0
17308 #  endif
17309 #endif
17311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17312    find out it does not work in some platform. */
17313 #ifndef LT_DLLAZY_OR_NOW
17314 #  ifdef RTLD_LAZY
17315 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17316 #  else
17317 #    ifdef DL_LAZY
17318 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17319 #    else
17320 #      ifdef RTLD_NOW
17321 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17322 #      else
17323 #        ifdef DL_NOW
17324 #          define LT_DLLAZY_OR_NOW      DL_NOW
17325 #        else
17326 #          define LT_DLLAZY_OR_NOW      0
17327 #        endif
17328 #      endif
17329 #    endif
17330 #  endif
17331 #endif
17333 #ifdef __cplusplus
17334 extern "C" void exit (int);
17335 #endif
17337 void fnord() { int i=42;}
17338 int main ()
17340   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17341   int status = $lt_dlunknown;
17343   if (self)
17344     {
17345       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17346       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17347       /* dlclose (self); */
17348     }
17350     exit (status);
17353   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17354   (eval $ac_link) 2>&5
17355   ac_status=$?
17356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17357   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17358     (./conftest; exit; ) 2>/dev/null
17359     lt_status=$?
17360     case x$lt_status in
17361       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17362       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17363       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17364     esac
17365   else :
17366     # compilation failed
17367     lt_cv_dlopen_self=no
17368   fi
17370 rm -fr conftest*
17372     
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17375 $as_echo "$lt_cv_dlopen_self" >&6; }
17377     if test "x$lt_cv_dlopen_self" = xyes; then
17378       LDFLAGS="$LDFLAGS $link_static_flag"
17379       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17380 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17381 if ${lt_cv_dlopen_self_static+:} false; then :
17382   $as_echo_n "(cached) " >&6
17383 else
17384           if test "$cross_compiling" = yes; then :
17385   lt_cv_dlopen_self_static=cross
17386 else
17387   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17388   lt_status=$lt_dlunknown
17389   cat > conftest.$ac_ext <<EOF
17390 #line __oline__ "configure"
17391 #include "confdefs.h"
17393 #if HAVE_DLFCN_H
17394 #include <dlfcn.h>
17395 #endif
17397 #include <stdio.h>
17399 #ifdef RTLD_GLOBAL
17400 #  define LT_DLGLOBAL           RTLD_GLOBAL
17401 #else
17402 #  ifdef DL_GLOBAL
17403 #    define LT_DLGLOBAL         DL_GLOBAL
17404 #  else
17405 #    define LT_DLGLOBAL         0
17406 #  endif
17407 #endif
17409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17410    find out it does not work in some platform. */
17411 #ifndef LT_DLLAZY_OR_NOW
17412 #  ifdef RTLD_LAZY
17413 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17414 #  else
17415 #    ifdef DL_LAZY
17416 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17417 #    else
17418 #      ifdef RTLD_NOW
17419 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17420 #      else
17421 #        ifdef DL_NOW
17422 #          define LT_DLLAZY_OR_NOW      DL_NOW
17423 #        else
17424 #          define LT_DLLAZY_OR_NOW      0
17425 #        endif
17426 #      endif
17427 #    endif
17428 #  endif
17429 #endif
17431 #ifdef __cplusplus
17432 extern "C" void exit (int);
17433 #endif
17435 void fnord() { int i=42;}
17436 int main ()
17438   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17439   int status = $lt_dlunknown;
17441   if (self)
17442     {
17443       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17444       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17445       /* dlclose (self); */
17446     }
17448     exit (status);
17451   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17452   (eval $ac_link) 2>&5
17453   ac_status=$?
17454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17455   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17456     (./conftest; exit; ) 2>/dev/null
17457     lt_status=$?
17458     case x$lt_status in
17459       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17460       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17461       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17462     esac
17463   else :
17464     # compilation failed
17465     lt_cv_dlopen_self_static=no
17466   fi
17468 rm -fr conftest*
17470       
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17473 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17474     fi
17476     CPPFLAGS="$save_CPPFLAGS"
17477     LDFLAGS="$save_LDFLAGS"
17478     LIBS="$save_LIBS"
17479     ;;
17480   esac
17482   case $lt_cv_dlopen_self in
17483   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17484   *) enable_dlopen_self=unknown ;;
17485   esac
17487   case $lt_cv_dlopen_self_static in
17488   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17489   *) enable_dlopen_self_static=unknown ;;
17490   esac
17494 # The else clause should only fire when bootstrapping the
17495 # libtool distribution, otherwise you forgot to ship ltmain.sh
17496 # with your package, and you will get complaints that there are
17497 # no rules to generate ltmain.sh.
17498 if test -f "$ltmain"; then
17499   # See if we are running on zsh, and set the options which allow our commands through
17500   # without removal of \ escapes.
17501   if test -n "${ZSH_VERSION+set}" ; then
17502     setopt NO_GLOB_SUBST
17503   fi
17504   # Now quote all the things that may contain metacharacters while being
17505   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17506   # variables and quote the copies for generation of the libtool script.
17507   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17508     SED SHELL STRIP \
17509     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17510     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17511     deplibs_check_method reload_flag reload_cmds need_locks \
17512     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17513     lt_cv_sys_global_symbol_to_c_name_address \
17514     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17515     old_postinstall_cmds old_postuninstall_cmds \
17516     compiler_GCJ \
17517     CC_GCJ \
17518     LD_GCJ \
17519     lt_prog_compiler_wl_GCJ \
17520     lt_prog_compiler_pic_GCJ \
17521     lt_prog_compiler_static_GCJ \
17522     lt_prog_compiler_no_builtin_flag_GCJ \
17523     export_dynamic_flag_spec_GCJ \
17524     thread_safe_flag_spec_GCJ \
17525     whole_archive_flag_spec_GCJ \
17526     enable_shared_with_static_runtimes_GCJ \
17527     old_archive_cmds_GCJ \
17528     old_archive_from_new_cmds_GCJ \
17529     predep_objects_GCJ \
17530     postdep_objects_GCJ \
17531     predeps_GCJ \
17532     postdeps_GCJ \
17533     compiler_lib_search_path_GCJ \
17534     archive_cmds_GCJ \
17535     archive_expsym_cmds_GCJ \
17536     postinstall_cmds_GCJ \
17537     postuninstall_cmds_GCJ \
17538     old_archive_from_expsyms_cmds_GCJ \
17539     allow_undefined_flag_GCJ \
17540     no_undefined_flag_GCJ \
17541     export_symbols_cmds_GCJ \
17542     hardcode_libdir_flag_spec_GCJ \
17543     hardcode_libdir_flag_spec_ld_GCJ \
17544     hardcode_libdir_separator_GCJ \
17545     hardcode_automatic_GCJ \
17546     module_cmds_GCJ \
17547     module_expsym_cmds_GCJ \
17548     lt_cv_prog_compiler_c_o_GCJ \
17549     exclude_expsyms_GCJ \
17550     include_expsyms_GCJ; do
17552     case $var in
17553     old_archive_cmds_GCJ | \
17554     old_archive_from_new_cmds_GCJ | \
17555     archive_cmds_GCJ | \
17556     archive_expsym_cmds_GCJ | \
17557     module_cmds_GCJ | \
17558     module_expsym_cmds_GCJ | \
17559     old_archive_from_expsyms_cmds_GCJ | \
17560     export_symbols_cmds_GCJ | \
17561     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17562     postinstall_cmds | postuninstall_cmds | \
17563     old_postinstall_cmds | old_postuninstall_cmds | \
17564     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17565       # Double-quote double-evaled strings.
17566       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17567       ;;
17568     *)
17569       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17570       ;;
17571     esac
17572   done
17574   case $lt_echo in
17575   *'\$0 --fallback-echo"')
17576     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17577     ;;
17578   esac
17580 cfgfile="$ofile"
17582   cat <<__EOF__ >> "$cfgfile"
17583 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17587 # Shell to use when invoking shell scripts.
17588 SHELL=$lt_SHELL
17590 # Whether or not to build shared libraries.
17591 build_libtool_libs=$enable_shared
17593 # Whether or not to build static libraries.
17594 build_old_libs=$enable_static
17596 # Whether or not to add -lc for building shared libraries.
17597 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17599 # Whether or not to disallow shared libs when runtime libs are static
17600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17602 # Whether or not to optimize for fast installation.
17603 fast_install=$enable_fast_install
17605 # The host system.
17606 host_alias=$host_alias
17607 host=$host
17609 # An echo program that does not interpret backslashes.
17610 echo=$lt_echo
17612 # The archiver.
17613 AR=$lt_AR
17614 AR_FLAGS=$lt_AR_FLAGS
17616 # A C compiler.
17617 LTCC=$lt_LTCC
17619 # A language-specific compiler.
17620 CC=$lt_compiler_GCJ
17622 # Is the compiler the GNU C compiler?
17623 with_gcc=$GCC_GCJ
17625 # An ERE matcher.
17626 EGREP=$lt_EGREP
17628 # The linker used to build libraries.
17629 LD=$lt_LD_GCJ
17631 # Whether we need hard or soft links.
17632 LN_S=$lt_LN_S
17634 # A BSD-compatible nm program.
17635 NM=$lt_NM
17637 # A symbol stripping program
17638 STRIP=$lt_STRIP
17640 # Used to examine libraries when file_magic_cmd begins "file"
17641 MAGIC_CMD=$MAGIC_CMD
17643 # Used on cygwin: DLL creation program.
17644 DLLTOOL="$DLLTOOL"
17646 # Used on cygwin: object dumper.
17647 OBJDUMP="$OBJDUMP"
17649 # Used on cygwin: assembler.
17650 AS="$AS"
17652 # The name of the directory that contains temporary libtool files.
17653 objdir=$objdir
17655 # How to create reloadable object files.
17656 reload_flag=$lt_reload_flag
17657 reload_cmds=$lt_reload_cmds
17659 # How to pass a linker flag through the compiler.
17660 wl=$lt_lt_prog_compiler_wl_GCJ
17662 # Object file suffix (normally "o").
17663 objext="$ac_objext"
17665 # Old archive suffix (normally "a").
17666 libext="$libext"
17668 # Shared library suffix (normally ".so").
17669 shrext='$shrext'
17671 # Executable file suffix (normally "").
17672 exeext="$exeext"
17674 # Additional compiler flags for building library objects.
17675 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17676 pic_mode=$pic_mode
17678 # What is the maximum length of a command?
17679 max_cmd_len=$lt_cv_sys_max_cmd_len
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17684 # Must we lock files when doing compilation ?
17685 need_locks=$lt_need_locks
17687 # Do we need the lib prefix for modules?
17688 need_lib_prefix=$need_lib_prefix
17690 # Do we need a version for libraries?
17691 need_version=$need_version
17693 # Whether dlopen is supported.
17694 dlopen_support=$enable_dlopen
17696 # Whether dlopen of programs is supported.
17697 dlopen_self=$enable_dlopen_self
17699 # Whether dlopen of statically linked programs is supported.
17700 dlopen_self_static=$enable_dlopen_self_static
17702 # Compiler flag to prevent dynamic linking.
17703 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17705 # Compiler flag to turn off builtin functions.
17706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17708 # Compiler flag to allow reflexive dlopens.
17709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17711 # Compiler flag to generate shared objects directly from archives.
17712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17714 # Compiler flag to generate thread-safe objects.
17715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17717 # Library versioning type.
17718 version_type=$version_type
17720 # Format of library name prefix.
17721 libname_spec=$lt_libname_spec
17723 # List of archive names.  First name is the real one, the rest are links.
17724 # The last name is the one that the linker finds with -lNAME.
17725 library_names_spec=$lt_library_names_spec
17727 # The coded name of the library, if different from the real name.
17728 soname_spec=$lt_soname_spec
17730 # Commands used to build and install an old-style archive.
17731 RANLIB=$lt_RANLIB
17732 old_archive_cmds=$lt_old_archive_cmds_GCJ
17733 old_postinstall_cmds=$lt_old_postinstall_cmds
17734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17736 # Create an old-style archive from a shared archive.
17737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17739 # Create a temporary old-style archive to link instead of a shared archive.
17740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17742 # Commands used to build and install a shared archive.
17743 archive_cmds=$lt_archive_cmds_GCJ
17744 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17745 postinstall_cmds=$lt_postinstall_cmds
17746 postuninstall_cmds=$lt_postuninstall_cmds
17748 # Commands used to build a loadable module (assumed same as above if empty)
17749 module_cmds=$lt_module_cmds_GCJ
17750 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17752 # Commands to strip libraries.
17753 old_striplib=$lt_old_striplib
17754 striplib=$lt_striplib
17756 # Dependencies to place before the objects being linked to create a
17757 # shared library.
17758 predep_objects=$lt_predep_objects_GCJ
17760 # Dependencies to place after the objects being linked to create a
17761 # shared library.
17762 postdep_objects=$lt_postdep_objects_GCJ
17764 # Dependencies to place before the objects being linked to create a
17765 # shared library.
17766 predeps=$lt_predeps_GCJ
17768 # Dependencies to place after the objects being linked to create a
17769 # shared library.
17770 postdeps=$lt_postdeps_GCJ
17772 # The library search path used internally by the compiler when linking
17773 # a shared library.
17774 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17776 # Method to check whether dependent libraries are shared objects.
17777 deplibs_check_method=$lt_deplibs_check_method
17779 # Command to use when deplibs_check_method == file_magic.
17780 file_magic_cmd=$lt_file_magic_cmd
17782 # Flag that allows shared libraries with undefined symbols to be built.
17783 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17785 # Flag that forces no undefined symbols.
17786 no_undefined_flag=$lt_no_undefined_flag_GCJ
17788 # Commands used to finish a libtool library installation in a directory.
17789 finish_cmds=$lt_finish_cmds
17791 # Same as above, but a single script fragment to be evaled but not shown.
17792 finish_eval=$lt_finish_eval
17794 # Take the output of nm and produce a listing of raw symbols and C names.
17795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17797 # Transform the output of nm in a proper C declaration
17798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17800 # Transform the output of nm in a C name address pair
17801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17803 # This is the shared library runtime path variable.
17804 runpath_var=$runpath_var
17806 # This is the shared library path variable.
17807 shlibpath_var=$shlibpath_var
17809 # Is shlibpath searched before the hard-coded library search path?
17810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17812 # How to hardcode a shared library path into an executable.
17813 hardcode_action=$hardcode_action_GCJ
17815 # Whether we should hardcode library paths into libraries.
17816 hardcode_into_libs=$hardcode_into_libs
17818 # Flag to hardcode \$libdir into a binary during linking.
17819 # This must work even if \$libdir does not exist.
17820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17822 # If ld is used when linking, flag to hardcode \$libdir into
17823 # a binary during linking. This must work even if \$libdir does
17824 # not exist.
17825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17827 # Whether we need a single -rpath flag with a separated argument.
17828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_direct=$hardcode_direct_GCJ
17834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_minus_L=$hardcode_minus_L_GCJ
17838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17839 # the resulting binary.
17840 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17842 # Set to yes if building a shared library automatically hardcodes DIR into the library
17843 # and all subsequent libraries and executables linked against it.
17844 hardcode_automatic=$hardcode_automatic_GCJ
17846 # Variables whose values should be saved in libtool wrapper scripts and
17847 # restored at relink time.
17848 variables_saved_for_relink="$variables_saved_for_relink"
17850 # Whether libtool must link a program against all its dependency libraries.
17851 link_all_deplibs=$link_all_deplibs_GCJ
17853 # Compile-time system search path for libraries
17854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17856 # Run-time system search path for libraries
17857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17859 # Fix the shell variable \$srcfile for the compiler.
17860 fix_srcfile_path="$fix_srcfile_path_GCJ"
17862 # Set to yes if exported symbols are required.
17863 always_export_symbols=$always_export_symbols_GCJ
17865 # The commands to list exported symbols.
17866 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17868 # The commands to extract the exported symbol list from a shared archive.
17869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17871 # Symbols that should not be listed in the preloaded symbols.
17872 exclude_expsyms=$lt_exclude_expsyms_GCJ
17874 # Symbols that must always be exported.
17875 include_expsyms=$lt_include_expsyms_GCJ
17877 # ### END LIBTOOL TAG CONFIG: $tagname
17879 __EOF__
17882 else
17883   # If there is no Makefile yet, we rely on a make rule to execute
17884   # `config.status --recheck' to rerun these tests and create the
17885   # libtool script then.
17886   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17887   if test -f "$ltmain_in"; then
17888     test -f Makefile && make "$ltmain"
17889   fi
17893 ac_ext=c
17894 ac_cpp='$CPP $CPPFLAGS'
17895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17899 CC="$lt_save_CC"
17901         else
17902           tagname=""
17903         fi
17904         ;;
17906       RC)
17907         
17909 # Source file extension for RC test sources.
17910 ac_ext=rc
17912 # Object file extension for compiled RC test sources.
17913 objext=o
17914 objext_RC=$objext
17916 # Code to be used in simple compile tests
17917 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17919 # Code to be used in simple link tests
17920 lt_simple_link_test_code="$lt_simple_compile_test_code"
17922 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17924 # If no C compiler was specified, use CC.
17925 LTCC=${LTCC-"$CC"}
17927 # Allow CC to be a program name with arguments.
17928 compiler=$CC
17931 # Allow CC to be a program name with arguments.
17932 lt_save_CC="$CC"
17933 CC=${RC-"windres"}
17934 compiler=$CC
17935 compiler_RC=$CC
17936 lt_cv_prog_compiler_c_o_RC=yes
17938 # The else clause should only fire when bootstrapping the
17939 # libtool distribution, otherwise you forgot to ship ltmain.sh
17940 # with your package, and you will get complaints that there are
17941 # no rules to generate ltmain.sh.
17942 if test -f "$ltmain"; then
17943   # See if we are running on zsh, and set the options which allow our commands through
17944   # without removal of \ escapes.
17945   if test -n "${ZSH_VERSION+set}" ; then
17946     setopt NO_GLOB_SUBST
17947   fi
17948   # Now quote all the things that may contain metacharacters while being
17949   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17950   # variables and quote the copies for generation of the libtool script.
17951   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17952     SED SHELL STRIP \
17953     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17954     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17955     deplibs_check_method reload_flag reload_cmds need_locks \
17956     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17957     lt_cv_sys_global_symbol_to_c_name_address \
17958     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17959     old_postinstall_cmds old_postuninstall_cmds \
17960     compiler_RC \
17961     CC_RC \
17962     LD_RC \
17963     lt_prog_compiler_wl_RC \
17964     lt_prog_compiler_pic_RC \
17965     lt_prog_compiler_static_RC \
17966     lt_prog_compiler_no_builtin_flag_RC \
17967     export_dynamic_flag_spec_RC \
17968     thread_safe_flag_spec_RC \
17969     whole_archive_flag_spec_RC \
17970     enable_shared_with_static_runtimes_RC \
17971     old_archive_cmds_RC \
17972     old_archive_from_new_cmds_RC \
17973     predep_objects_RC \
17974     postdep_objects_RC \
17975     predeps_RC \
17976     postdeps_RC \
17977     compiler_lib_search_path_RC \
17978     archive_cmds_RC \
17979     archive_expsym_cmds_RC \
17980     postinstall_cmds_RC \
17981     postuninstall_cmds_RC \
17982     old_archive_from_expsyms_cmds_RC \
17983     allow_undefined_flag_RC \
17984     no_undefined_flag_RC \
17985     export_symbols_cmds_RC \
17986     hardcode_libdir_flag_spec_RC \
17987     hardcode_libdir_flag_spec_ld_RC \
17988     hardcode_libdir_separator_RC \
17989     hardcode_automatic_RC \
17990     module_cmds_RC \
17991     module_expsym_cmds_RC \
17992     lt_cv_prog_compiler_c_o_RC \
17993     exclude_expsyms_RC \
17994     include_expsyms_RC; do
17996     case $var in
17997     old_archive_cmds_RC | \
17998     old_archive_from_new_cmds_RC | \
17999     archive_cmds_RC | \
18000     archive_expsym_cmds_RC | \
18001     module_cmds_RC | \
18002     module_expsym_cmds_RC | \
18003     old_archive_from_expsyms_cmds_RC | \
18004     export_symbols_cmds_RC | \
18005     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18006     postinstall_cmds | postuninstall_cmds | \
18007     old_postinstall_cmds | old_postuninstall_cmds | \
18008     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18009       # Double-quote double-evaled strings.
18010       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18011       ;;
18012     *)
18013       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18014       ;;
18015     esac
18016   done
18018   case $lt_echo in
18019   *'\$0 --fallback-echo"')
18020     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18021     ;;
18022   esac
18024 cfgfile="$ofile"
18026   cat <<__EOF__ >> "$cfgfile"
18027 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18029 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18031 # Shell to use when invoking shell scripts.
18032 SHELL=$lt_SHELL
18034 # Whether or not to build shared libraries.
18035 build_libtool_libs=$enable_shared
18037 # Whether or not to build static libraries.
18038 build_old_libs=$enable_static
18040 # Whether or not to add -lc for building shared libraries.
18041 build_libtool_need_lc=$archive_cmds_need_lc_RC
18043 # Whether or not to disallow shared libs when runtime libs are static
18044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18046 # Whether or not to optimize for fast installation.
18047 fast_install=$enable_fast_install
18049 # The host system.
18050 host_alias=$host_alias
18051 host=$host
18053 # An echo program that does not interpret backslashes.
18054 echo=$lt_echo
18056 # The archiver.
18057 AR=$lt_AR
18058 AR_FLAGS=$lt_AR_FLAGS
18060 # A C compiler.
18061 LTCC=$lt_LTCC
18063 # A language-specific compiler.
18064 CC=$lt_compiler_RC
18066 # Is the compiler the GNU C compiler?
18067 with_gcc=$GCC_RC
18069 # An ERE matcher.
18070 EGREP=$lt_EGREP
18072 # The linker used to build libraries.
18073 LD=$lt_LD_RC
18075 # Whether we need hard or soft links.
18076 LN_S=$lt_LN_S
18078 # A BSD-compatible nm program.
18079 NM=$lt_NM
18081 # A symbol stripping program
18082 STRIP=$lt_STRIP
18084 # Used to examine libraries when file_magic_cmd begins "file"
18085 MAGIC_CMD=$MAGIC_CMD
18087 # Used on cygwin: DLL creation program.
18088 DLLTOOL="$DLLTOOL"
18090 # Used on cygwin: object dumper.
18091 OBJDUMP="$OBJDUMP"
18093 # Used on cygwin: assembler.
18094 AS="$AS"
18096 # The name of the directory that contains temporary libtool files.
18097 objdir=$objdir
18099 # How to create reloadable object files.
18100 reload_flag=$lt_reload_flag
18101 reload_cmds=$lt_reload_cmds
18103 # How to pass a linker flag through the compiler.
18104 wl=$lt_lt_prog_compiler_wl_RC
18106 # Object file suffix (normally "o").
18107 objext="$ac_objext"
18109 # Old archive suffix (normally "a").
18110 libext="$libext"
18112 # Shared library suffix (normally ".so").
18113 shrext='$shrext'
18115 # Executable file suffix (normally "").
18116 exeext="$exeext"
18118 # Additional compiler flags for building library objects.
18119 pic_flag=$lt_lt_prog_compiler_pic_RC
18120 pic_mode=$pic_mode
18122 # What is the maximum length of a command?
18123 max_cmd_len=$lt_cv_sys_max_cmd_len
18125 # Does compiler simultaneously support -c and -o options?
18126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18128 # Must we lock files when doing compilation ?
18129 need_locks=$lt_need_locks
18131 # Do we need the lib prefix for modules?
18132 need_lib_prefix=$need_lib_prefix
18134 # Do we need a version for libraries?
18135 need_version=$need_version
18137 # Whether dlopen is supported.
18138 dlopen_support=$enable_dlopen
18140 # Whether dlopen of programs is supported.
18141 dlopen_self=$enable_dlopen_self
18143 # Whether dlopen of statically linked programs is supported.
18144 dlopen_self_static=$enable_dlopen_self_static
18146 # Compiler flag to prevent dynamic linking.
18147 link_static_flag=$lt_lt_prog_compiler_static_RC
18149 # Compiler flag to turn off builtin functions.
18150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18152 # Compiler flag to allow reflexive dlopens.
18153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18155 # Compiler flag to generate shared objects directly from archives.
18156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18158 # Compiler flag to generate thread-safe objects.
18159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18161 # Library versioning type.
18162 version_type=$version_type
18164 # Format of library name prefix.
18165 libname_spec=$lt_libname_spec
18167 # List of archive names.  First name is the real one, the rest are links.
18168 # The last name is the one that the linker finds with -lNAME.
18169 library_names_spec=$lt_library_names_spec
18171 # The coded name of the library, if different from the real name.
18172 soname_spec=$lt_soname_spec
18174 # Commands used to build and install an old-style archive.
18175 RANLIB=$lt_RANLIB
18176 old_archive_cmds=$lt_old_archive_cmds_RC
18177 old_postinstall_cmds=$lt_old_postinstall_cmds
18178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18180 # Create an old-style archive from a shared archive.
18181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18183 # Create a temporary old-style archive to link instead of a shared archive.
18184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18186 # Commands used to build and install a shared archive.
18187 archive_cmds=$lt_archive_cmds_RC
18188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18189 postinstall_cmds=$lt_postinstall_cmds
18190 postuninstall_cmds=$lt_postuninstall_cmds
18192 # Commands used to build a loadable module (assumed same as above if empty)
18193 module_cmds=$lt_module_cmds_RC
18194 module_expsym_cmds=$lt_module_expsym_cmds_RC
18196 # Commands to strip libraries.
18197 old_striplib=$lt_old_striplib
18198 striplib=$lt_striplib
18200 # Dependencies to place before the objects being linked to create a
18201 # shared library.
18202 predep_objects=$lt_predep_objects_RC
18204 # Dependencies to place after the objects being linked to create a
18205 # shared library.
18206 postdep_objects=$lt_postdep_objects_RC
18208 # Dependencies to place before the objects being linked to create a
18209 # shared library.
18210 predeps=$lt_predeps_RC
18212 # Dependencies to place after the objects being linked to create a
18213 # shared library.
18214 postdeps=$lt_postdeps_RC
18216 # The library search path used internally by the compiler when linking
18217 # a shared library.
18218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18220 # Method to check whether dependent libraries are shared objects.
18221 deplibs_check_method=$lt_deplibs_check_method
18223 # Command to use when deplibs_check_method == file_magic.
18224 file_magic_cmd=$lt_file_magic_cmd
18226 # Flag that allows shared libraries with undefined symbols to be built.
18227 allow_undefined_flag=$lt_allow_undefined_flag_RC
18229 # Flag that forces no undefined symbols.
18230 no_undefined_flag=$lt_no_undefined_flag_RC
18232 # Commands used to finish a libtool library installation in a directory.
18233 finish_cmds=$lt_finish_cmds
18235 # Same as above, but a single script fragment to be evaled but not shown.
18236 finish_eval=$lt_finish_eval
18238 # Take the output of nm and produce a listing of raw symbols and C names.
18239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18241 # Transform the output of nm in a proper C declaration
18242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18244 # Transform the output of nm in a C name address pair
18245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18247 # This is the shared library runtime path variable.
18248 runpath_var=$runpath_var
18250 # This is the shared library path variable.
18251 shlibpath_var=$shlibpath_var
18253 # Is shlibpath searched before the hard-coded library search path?
18254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18256 # How to hardcode a shared library path into an executable.
18257 hardcode_action=$hardcode_action_RC
18259 # Whether we should hardcode library paths into libraries.
18260 hardcode_into_libs=$hardcode_into_libs
18262 # Flag to hardcode \$libdir into a binary during linking.
18263 # This must work even if \$libdir does not exist.
18264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18266 # If ld is used when linking, flag to hardcode \$libdir into
18267 # a binary during linking. This must work even if \$libdir does
18268 # not exist.
18269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18271 # Whether we need a single -rpath flag with a separated argument.
18272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18275 # resulting binary.
18276 hardcode_direct=$hardcode_direct_RC
18278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18279 # resulting binary.
18280 hardcode_minus_L=$hardcode_minus_L_RC
18282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18283 # the resulting binary.
18284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18286 # Set to yes if building a shared library automatically hardcodes DIR into the library
18287 # and all subsequent libraries and executables linked against it.
18288 hardcode_automatic=$hardcode_automatic_RC
18290 # Variables whose values should be saved in libtool wrapper scripts and
18291 # restored at relink time.
18292 variables_saved_for_relink="$variables_saved_for_relink"
18294 # Whether libtool must link a program against all its dependency libraries.
18295 link_all_deplibs=$link_all_deplibs_RC
18297 # Compile-time system search path for libraries
18298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18300 # Run-time system search path for libraries
18301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18303 # Fix the shell variable \$srcfile for the compiler.
18304 fix_srcfile_path="$fix_srcfile_path_RC"
18306 # Set to yes if exported symbols are required.
18307 always_export_symbols=$always_export_symbols_RC
18309 # The commands to list exported symbols.
18310 export_symbols_cmds=$lt_export_symbols_cmds_RC
18312 # The commands to extract the exported symbol list from a shared archive.
18313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18315 # Symbols that should not be listed in the preloaded symbols.
18316 exclude_expsyms=$lt_exclude_expsyms_RC
18318 # Symbols that must always be exported.
18319 include_expsyms=$lt_include_expsyms_RC
18321 # ### END LIBTOOL TAG CONFIG: $tagname
18323 __EOF__
18326 else
18327   # If there is no Makefile yet, we rely on a make rule to execute
18328   # `config.status --recheck' to rerun these tests and create the
18329   # libtool script then.
18330   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18331   if test -f "$ltmain_in"; then
18332     test -f Makefile && make "$ltmain"
18333   fi
18337 ac_ext=c
18338 ac_cpp='$CPP $CPPFLAGS'
18339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18343 CC="$lt_save_CC"
18345         ;;
18347       *)
18348         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18349         ;;
18350       esac
18352       # Append the new tag name to the list of available tags.
18353       if test -n "$tagname" ; then
18354       available_tags="$available_tags $tagname"
18355     fi
18356     fi
18357   done
18358   IFS="$lt_save_ifs"
18360   # Now substitute the updated list of available tags.
18361   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18362     mv "${ofile}T" "$ofile"
18363     chmod +x "$ofile"
18364   else
18365     rm -f "${ofile}T"
18366     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18367   fi
18372 # This can be used to rebuild libtool when needed
18373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18375 # Always use our own libtool.
18376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18378 # Prevent multiple expansion
18390   
18392   
18395   
18396        
18397        
18403 arch=""
18404 debug=""
18405 optimize=""
18406 profile=""
18408 set -- $CFLAGS
18409 CFLAGS=""
18411 if test "$GCC" = yes
18412 then
18413     CFLAGS="-Wall"
18416 while test $# -gt 0
18418     case "$1" in
18419         -Wall)
18420             if test "$GCC" = yes
18421             then
18422                 :
18423             else
18424                 CFLAGS="$CFLAGS $1"
18425             fi
18426             shift
18427             ;;
18428         -g)
18429             debug="-g"
18430             shift
18431             ;;
18432         -mno-cygwin)
18433             shift
18434             ;;
18435         -m*)
18436             arch="$arch $1"
18437             shift
18438             ;;
18439         -fomit-frame-pointer)
18440             shift
18441             ;;
18442         -O*|-f*)
18443             optimize="$1"
18444             shift
18445             ;;
18446         *)
18447             CFLAGS="$CFLAGS $1"
18448             shift
18449             ;;
18450     esac
18451 done
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18455 $as_echo_n "checking for ANSI C header files... " >&6; }
18456 if ${ac_cv_header_stdc+:} false; then :
18457   $as_echo_n "(cached) " >&6
18458 else
18459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h.  */
18461 #include <stdlib.h>
18462 #include <stdarg.h>
18463 #include <string.h>
18464 #include <float.h>
18467 main ()
18470   ;
18471   return 0;
18473 _ACEOF
18474 if ac_fn_c_try_compile "$LINENO"; then :
18475   ac_cv_header_stdc=yes
18476 else
18477   ac_cv_header_stdc=no
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 if test $ac_cv_header_stdc = yes; then
18482   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h.  */
18485 #include <string.h>
18487 _ACEOF
18488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18489   $EGREP "memchr" >/dev/null 2>&1; then :
18490   
18491 else
18492   ac_cv_header_stdc=no
18494 rm -f conftest*
18498 if test $ac_cv_header_stdc = yes; then
18499   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h.  */
18502 #include <stdlib.h>
18504 _ACEOF
18505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18506   $EGREP "free" >/dev/null 2>&1; then :
18507   
18508 else
18509   ac_cv_header_stdc=no
18511 rm -f conftest*
18515 if test $ac_cv_header_stdc = yes; then
18516   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18517   if test "$cross_compiling" = yes; then :
18518   :
18519 else
18520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h.  */
18522 #include <ctype.h>
18523 #include <stdlib.h>
18524 #if ((' ' & 0x0FF) == 0x020)
18525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18527 #else
18528 # define ISLOWER(c) \
18529                    (('a' <= (c) && (c) <= 'i') \
18530                      || ('j' <= (c) && (c) <= 'r') \
18531                      || ('s' <= (c) && (c) <= 'z'))
18532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18533 #endif
18535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18537 main ()
18539   int i;
18540   for (i = 0; i < 256; i++)
18541     if (XOR (islower (i), ISLOWER (i))
18542         || toupper (i) != TOUPPER (i))
18543       return 2;
18544   return 0;
18546 _ACEOF
18547 if ac_fn_c_try_run "$LINENO"; then :
18548   
18549 else
18550   ac_cv_header_stdc=no
18552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18553   conftest.$ac_objext conftest.beam conftest.$ac_ext
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18559 $as_echo "$ac_cv_header_stdc" >&6; }
18560 if test $ac_cv_header_stdc = yes; then
18561   
18562 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
18566 for ac_header in assert.h unistd.h
18567 do :
18568   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18569 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18571   cat >>confdefs.h <<_ACEOF
18572 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18573 _ACEOF
18577 done
18580 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18581 if test "x$ac_cv_header_zlib_h" = xyes; then :
18582   
18583 else
18584   
18585         as_fn_error $? "zlib.h was not found
18586 *** You must first install zlib (libz) before you can build this package.
18587 *** If zlib is already installed, you may need to use the CPPFLAGS
18588 *** environment variable to specify its installed location, e.g. -I<dir>." "$LINENO" 5
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18596 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18597 if ${ac_cv_c_const+:} false; then :
18598   $as_echo_n "(cached) " >&6
18599 else
18600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h.  */
18604 main ()
18606 /* FIXME: Include the comments suggested by Paul. */
18607 #ifndef __cplusplus
18608   /* Ultrix mips cc rejects this.  */
18609   typedef int charset[2];
18610   const charset cs;
18611   /* SunOS 4.1.1 cc rejects this.  */
18612   char const *const *pcpcc;
18613   char **ppc;
18614   /* NEC SVR4.0.2 mips cc rejects this.  */
18615   struct point {int x, y;};
18616   static struct point const zero = {0,0};
18617   /* AIX XL C 1.02.0.0 rejects this.
18618      It does not let you subtract one const X* pointer from another in
18619      an arm of an if-expression whose if-part is not a constant
18620      expression */
18621   const char *g = "string";
18622   pcpcc = &g + (g ? g-g : 0);
18623   /* HPUX 7.0 cc rejects these. */
18624   ++pcpcc;
18625   ppc = (char**) pcpcc;
18626   pcpcc = (char const *const *) ppc;
18627   { /* SCO 3.2v4 cc rejects this.  */
18628     char *t;
18629     char const *s = 0 ? (char *) 0 : (char const *) 0;
18631     *t++ = 0;
18632     if (s) return 0;
18633   }
18634   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18635     int x[] = {25, 17};
18636     const int *foo = &x[0];
18637     ++foo;
18638   }
18639   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18640     typedef const int *iptr;
18641     iptr p = 0;
18642     ++p;
18643   }
18644   { /* AIX XL C 1.02.0.0 rejects this saying
18645        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18646     struct s { int j; const int *ap[3]; };
18647     struct s *b; b->j = 5;
18648   }
18649   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18650     const int foo = 10;
18651     if (!foo) return 0;
18652   }
18653   return !cs[0] && !zero.x;
18654 #endif
18656   ;
18657   return 0;
18659 _ACEOF
18660 if ac_fn_c_try_compile "$LINENO"; then :
18661   ac_cv_c_const=yes
18662 else
18663   ac_cv_c_const=no
18665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18668 $as_echo "$ac_cv_c_const" >&6; }
18669 if test $ac_cv_c_const = no; then
18670   
18671 $as_echo "@%:@define const /**/" >>confdefs.h
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18676 $as_echo_n "checking for inline... " >&6; }
18677 if ${ac_cv_c_inline+:} false; then :
18678   $as_echo_n "(cached) " >&6
18679 else
18680   ac_cv_c_inline=no
18681 for ac_kw in inline __inline__ __inline; do
18682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h.  */
18684 #ifndef __cplusplus
18685 typedef int foo_t;
18686 static $ac_kw foo_t static_foo () {return 0; }
18687 $ac_kw foo_t foo () {return 0; }
18688 #endif
18690 _ACEOF
18691 if ac_fn_c_try_compile "$LINENO"; then :
18692   ac_cv_c_inline=$ac_kw
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18695   test "$ac_cv_c_inline" != no && break
18696 done
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18700 $as_echo "$ac_cv_c_inline" >&6; }
18702 case $ac_cv_c_inline in
18703   inline | yes) ;;
18704   *)
18705     case $ac_cv_c_inline in
18706       no) ac_val=;;
18707       *) ac_val=$ac_cv_c_inline;;
18708     esac
18709     cat >>confdefs.h <<_ACEOF
18710 #ifndef __cplusplus
18711 #define inline $ac_val
18712 #endif
18713 _ACEOF
18714     ;;
18715 esac
18719 for ac_func in ftruncate
18720 do :
18721   ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18722 if test "x$ac_cv_func_ftruncate" = xyes; then :
18723   cat >>confdefs.h <<_ACEOF
18724 @%:@define HAVE_FTRUNCATE 1
18725 _ACEOF
18728 done
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
18732 $as_echo_n "checking for compress2 in -lz... " >&6; }
18733 if ${ac_cv_lib_z_compress2+:} false; then :
18734   $as_echo_n "(cached) " >&6
18735 else
18736   ac_check_lib_save_LIBS=$LIBS
18737 LIBS="-lz  $LIBS"
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h.  */
18741 /* Override any GCC internal prototype to avoid an error.
18742    Use char because int might match the return type of a GCC
18743    builtin and then its argument prototype would still apply.  */
18744 #ifdef __cplusplus
18745 extern "C"
18746 #endif
18747 char compress2 ();
18749 main ()
18751 return compress2 ();
18752   ;
18753   return 0;
18755 _ACEOF
18756 if ac_fn_c_try_link "$LINENO"; then :
18757   ac_cv_lib_z_compress2=yes
18758 else
18759   ac_cv_lib_z_compress2=no
18761 rm -f core conftest.err conftest.$ac_objext \
18762     conftest$ac_exeext conftest.$ac_ext
18763 LIBS=$ac_check_lib_save_LIBS
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
18766 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18767 if test "x$ac_cv_lib_z_compress2" = xyes; then :
18768   cat >>confdefs.h <<_ACEOF
18769 @%:@define HAVE_LIBZ 1
18770 _ACEOF
18772   LIBS="-lz $LIBS"
18774 else
18775   
18776         as_fn_error $? "libz was not found
18777 *** You must first install zlib (libz) before you can build this package.
18778 *** If zlib is already installed, you may need to use the LDFLAGS
18779 *** environment variable to specify its installed location, e.g. -L<dir>." "$LINENO" 5
18785 cat >confcache <<\_ACEOF
18786 # This file is a shell script that caches the results of configure
18787 # tests run on this system so they can be shared between configure
18788 # scripts and configure runs, see configure's option --config-cache.
18789 # It is not useful on other systems.  If it contains results you don't
18790 # want to keep, you may remove or edit it.
18792 # config.status only pays attention to the cache file if you give it
18793 # the --recheck option to rerun configure.
18795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18797 # following values.
18799 _ACEOF
18801 # The following way of writing the cache mishandles newlines in values,
18802 # but we know of no workaround that is simple, portable, and efficient.
18803 # So, we kill variables containing newlines.
18804 # Ultrix sh set writes to stderr and can't be redirected directly,
18805 # and sets the high bit in the cache file unless we assign to the vars.
18807   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18808     eval ac_val=\$$ac_var
18809     case $ac_val in #(
18810     *${as_nl}*)
18811       case $ac_var in #(
18812       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18814       esac
18815       case $ac_var in #(
18816       _ | IFS | as_nl) ;; #(
18817       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18818       *) { eval $ac_var=; unset $ac_var;} ;;
18819       esac ;;
18820     esac
18821   done
18823   (set) 2>&1 |
18824     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18825     *${as_nl}ac_space=\ *)
18826       # `set' does not quote correctly, so add quotes: double-quote
18827       # substitution turns \\\\ into \\, and sed turns \\ into \.
18828       sed -n \
18829         "s/'/'\\\\''/g;
18830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18831       ;; #(
18832     *)
18833       # `set' quotes correctly as required by POSIX, so do not add quotes.
18834       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18835       ;;
18836     esac |
18837     sort
18838 ) |
18839   sed '
18840      /^ac_cv_env_/b end
18841      t clear
18842      :clear
18843      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18844      t end
18845      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18846      :end' >>confcache
18847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18848   if test -w "$cache_file"; then
18849     if test "x$cache_file" != "x/dev/null"; then
18850       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18851 $as_echo "$as_me: updating cache $cache_file" >&6;}
18852       if test ! -f "$cache_file" || test -h "$cache_file"; then
18853         cat confcache >"$cache_file"
18854       else
18855         case $cache_file in #(
18856         */* | ?:*)
18857           mv -f confcache "$cache_file"$$ &&
18858           mv -f "$cache_file"$$ "$cache_file" ;; #(
18859         *)
18860           mv -f confcache "$cache_file" ;;
18861         esac
18862       fi
18863     fi
18864   else
18865     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18867   fi
18869 rm -f confcache
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
18872 $as_echo_n "checking whether to enable profiling... " >&6; }
18873 @%:@ Check whether --enable-profiling was given.
18874 if test "${enable_profiling+set}" = set; then :
18875   enableval=$enable_profiling; 
18876     case "$enableval" in
18877         yes) profile="-pg" ;;
18878     esac
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
18883 $as_echo "${enable_profiling-no}" >&6; }
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
18886 $as_echo_n "checking whether to enable debugging... " >&6; }
18887 @%:@ Check whether --enable-debugging was given.
18888 if test "${enable_debugging+set}" = set; then :
18889   enableval=$enable_debugging; 
18890     case "$enableval" in
18891         yes)
18892             
18893 $as_echo "@%:@define DEBUG 1" >>confdefs.h
18895             optimize=""
18896             ;;
18897         no)
18898             if test -n "$profile"
18899             then
18900     as_fn_error $? "--enable-profiling and --disable-debugging are incompatible" "$LINENO" 5
18901             fi
18903             
18904 $as_echo "@%:@define NDEBUG 1" >>confdefs.h
18906             debug=""
18907             if test "$GCC" = yes
18908             then
18909                 optimize="$optimize -fomit-frame-pointer"
18910             fi
18911             ;;
18912     esac
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debugging-default}" >&5
18917 $as_echo "${enable_debugging-default}" >&6; }
18920 if test ${enable_debugging-default} = yes; then
18921   DEBUG_TRUE=
18922   DEBUG_FALSE='#'
18923 else
18924   DEBUG_TRUE='#'
18925   DEBUG_FALSE=
18930 test -n "$arch"     && CFLAGS="$CFLAGS $arch"
18931 test -n "$debug"    && CFLAGS="$CFLAGS $debug"
18932 test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
18933 test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
18936 ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list"
18938 cat >confcache <<\_ACEOF
18939 # This file is a shell script that caches the results of configure
18940 # tests run on this system so they can be shared between configure
18941 # scripts and configure runs, see configure's option --config-cache.
18942 # It is not useful on other systems.  If it contains results you don't
18943 # want to keep, you may remove or edit it.
18945 # config.status only pays attention to the cache file if you give it
18946 # the --recheck option to rerun configure.
18948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18950 # following values.
18952 _ACEOF
18954 # The following way of writing the cache mishandles newlines in values,
18955 # but we know of no workaround that is simple, portable, and efficient.
18956 # So, we kill variables containing newlines.
18957 # Ultrix sh set writes to stderr and can't be redirected directly,
18958 # and sets the high bit in the cache file unless we assign to the vars.
18960   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18961     eval ac_val=\$$ac_var
18962     case $ac_val in #(
18963     *${as_nl}*)
18964       case $ac_var in #(
18965       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18967       esac
18968       case $ac_var in #(
18969       _ | IFS | as_nl) ;; #(
18970       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18971       *) { eval $ac_var=; unset $ac_var;} ;;
18972       esac ;;
18973     esac
18974   done
18976   (set) 2>&1 |
18977     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18978     *${as_nl}ac_space=\ *)
18979       # `set' does not quote correctly, so add quotes: double-quote
18980       # substitution turns \\\\ into \\, and sed turns \\ into \.
18981       sed -n \
18982         "s/'/'\\\\''/g;
18983           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18984       ;; #(
18985     *)
18986       # `set' quotes correctly as required by POSIX, so do not add quotes.
18987       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18988       ;;
18989     esac |
18990     sort
18991 ) |
18992   sed '
18993      /^ac_cv_env_/b end
18994      t clear
18995      :clear
18996      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18997      t end
18998      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18999      :end' >>confcache
19000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19001   if test -w "$cache_file"; then
19002     if test "x$cache_file" != "x/dev/null"; then
19003       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19004 $as_echo "$as_me: updating cache $cache_file" >&6;}
19005       if test ! -f "$cache_file" || test -h "$cache_file"; then
19006         cat confcache >"$cache_file"
19007       else
19008         case $cache_file in #(
19009         */* | ?:*)
19010           mv -f confcache "$cache_file"$$ &&
19011           mv -f "$cache_file"$$ "$cache_file" ;; #(
19012         *)
19013           mv -f confcache "$cache_file" ;;
19014         esac
19015       fi
19016     fi
19017   else
19018     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19020   fi
19022 rm -f confcache
19024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19025 # Let make expand exec_prefix.
19026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19028 DEFS=-DHAVE_CONFIG_H
19030 ac_libobjs=
19031 ac_ltlibobjs=
19033 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19034   # 1. Remove the extension, and $U if already installed.
19035   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19036   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19037   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19038   #    will be set to the directory where LIBOBJS objects are built.
19039   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19040   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19041 done
19042 LIB@&t@OBJS=$ac_libobjs
19044 LTLIBOBJS=$ac_ltlibobjs
19047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19048   as_fn_error $? "conditional \"AMDEP\" was never defined.
19049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19051 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19052   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19055 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19056   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19059 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
19060   as_fn_error $? "conditional \"DEBUG\" was never defined.
19061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19064 : "${CONFIG_STATUS=./config.status}"
19065 ac_write_fail=0
19066 ac_clean_files_save=$ac_clean_files
19067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19070 as_write_fail=0
19071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19072 #! $SHELL
19073 # Generated by $as_me.
19074 # Run this file to recreate the current configuration.
19075 # Compiler output produced by configure, useful for debugging
19076 # configure, is in config.log if it exists.
19078 debug=false
19079 ac_cs_recheck=false
19080 ac_cs_silent=false
19082 SHELL=\${CONFIG_SHELL-$SHELL}
19083 export SHELL
19084 _ASEOF
19085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19086 ## -------------------- ##
19087 ## M4sh Initialization. ##
19088 ## -------------------- ##
19090 # Be more Bourne compatible
19091 DUALCASE=1; export DUALCASE # for MKS sh
19092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19093   emulate sh
19094   NULLCMD=:
19095   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19096   # is contrary to our usage.  Disable this feature.
19097   alias -g '${1+"$@"}'='"$@"'
19098   setopt NO_GLOB_SUBST
19099 else
19100   case `(set -o) 2>/dev/null` in @%:@(
19101   *posix*) :
19102     set -o posix ;; @%:@(
19103   *) :
19104      ;;
19105 esac
19109 as_nl='
19111 export as_nl
19112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19116 # Prefer a ksh shell builtin over an external printf program on Solaris,
19117 # but without wasting forks for bash or zsh.
19118 if test -z "$BASH_VERSION$ZSH_VERSION" \
19119     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19120   as_echo='print -r --'
19121   as_echo_n='print -rn --'
19122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19123   as_echo='printf %s\n'
19124   as_echo_n='printf %s'
19125 else
19126   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19127     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19128     as_echo_n='/usr/ucb/echo -n'
19129   else
19130     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19131     as_echo_n_body='eval
19132       arg=$1;
19133       case $arg in @%:@(
19134       *"$as_nl"*)
19135         expr "X$arg" : "X\\(.*\\)$as_nl";
19136         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19137       esac;
19138       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19139     '
19140     export as_echo_n_body
19141     as_echo_n='sh -c $as_echo_n_body as_echo'
19142   fi
19143   export as_echo_body
19144   as_echo='sh -c $as_echo_body as_echo'
19147 # The user is always right.
19148 if test "${PATH_SEPARATOR+set}" != set; then
19149   PATH_SEPARATOR=:
19150   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19151     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19152       PATH_SEPARATOR=';'
19153   }
19157 # IFS
19158 # We need space, tab and new line, in precisely that order.  Quoting is
19159 # there to prevent editors from complaining about space-tab.
19160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19161 # splitting by setting IFS to empty value.)
19162 IFS=" ""        $as_nl"
19164 # Find who we are.  Look in the path if we contain no directory separator.
19165 as_myself=
19166 case $0 in @%:@((
19167   *[\\/]* ) as_myself=$0 ;;
19168   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169 for as_dir in $PATH
19171   IFS=$as_save_IFS
19172   test -z "$as_dir" && as_dir=.
19173     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19174   done
19175 IFS=$as_save_IFS
19177      ;;
19178 esac
19179 # We did not find ourselves, most probably we were run as `sh COMMAND'
19180 # in which case we are not to be found in the path.
19181 if test "x$as_myself" = x; then
19182   as_myself=$0
19184 if test ! -f "$as_myself"; then
19185   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19186   exit 1
19189 # Unset variables that we do not need and which cause bugs (e.g. in
19190 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19191 # suppresses any "Segmentation fault" message there.  '((' could
19192 # trigger a bug in pdksh 5.2.14.
19193 for as_var in BASH_ENV ENV MAIL MAILPATH
19194 do eval test x\${$as_var+set} = xset \
19195   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19196 done
19197 PS1='$ '
19198 PS2='> '
19199 PS4='+ '
19201 # NLS nuisances.
19202 LC_ALL=C
19203 export LC_ALL
19204 LANGUAGE=C
19205 export LANGUAGE
19207 # CDPATH.
19208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19211 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
19212 @%:@ ----------------------------------------
19213 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19214 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19215 @%:@ script with STATUS, using 1 if that was 0.
19216 as_fn_error ()
19218   as_status=$1; test $as_status -eq 0 && as_status=1
19219   if test "$4"; then
19220     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19221     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19222   fi
19223   $as_echo "$as_me: error: $2" >&2
19224   as_fn_exit $as_status
19225 } @%:@ as_fn_error
19228 @%:@ as_fn_set_status STATUS
19229 @%:@ -----------------------
19230 @%:@ Set @S|@? to STATUS, without forking.
19231 as_fn_set_status ()
19233   return $1
19234 } @%:@ as_fn_set_status
19236 @%:@ as_fn_exit STATUS
19237 @%:@ -----------------
19238 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19239 as_fn_exit ()
19241   set +e
19242   as_fn_set_status $1
19243   exit $1
19244 } @%:@ as_fn_exit
19246 @%:@ as_fn_unset VAR
19247 @%:@ ---------------
19248 @%:@ Portably unset VAR.
19249 as_fn_unset ()
19251   { eval $1=; unset $1;}
19253 as_unset=as_fn_unset
19254 @%:@ as_fn_append VAR VALUE
19255 @%:@ ----------------------
19256 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
19257 @%:@ advantage of any shell optimizations that allow amortized linear growth over
19258 @%:@ repeated appends, instead of the typical quadratic growth present in naive
19259 @%:@ implementations.
19260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19261   eval 'as_fn_append ()
19262   {
19263     eval $1+=\$2
19264   }'
19265 else
19266   as_fn_append ()
19267   {
19268     eval $1=\$$1\$2
19269   }
19270 fi # as_fn_append
19272 @%:@ as_fn_arith ARG...
19273 @%:@ ------------------
19274 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
19275 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
19276 @%:@ must be portable across @S|@(()) and expr.
19277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19278   eval 'as_fn_arith ()
19279   {
19280     as_val=$(( $* ))
19281   }'
19282 else
19283   as_fn_arith ()
19284   {
19285     as_val=`expr "$@" || test $? -eq 1`
19286   }
19287 fi # as_fn_arith
19290 if expr a : '\(a\)' >/dev/null 2>&1 &&
19291    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19292   as_expr=expr
19293 else
19294   as_expr=false
19297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19298   as_basename=basename
19299 else
19300   as_basename=false
19303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19304   as_dirname=dirname
19305 else
19306   as_dirname=false
19309 as_me=`$as_basename -- "$0" ||
19310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19311          X"$0" : 'X\(//\)$' \| \
19312          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19313 $as_echo X/"$0" |
19314     sed '/^.*\/\([^/][^/]*\)\/*$/{
19315             s//\1/
19316             q
19317           }
19318           /^X\/\(\/\/\)$/{
19319             s//\1/
19320             q
19321           }
19322           /^X\/\(\/\).*/{
19323             s//\1/
19324             q
19325           }
19326           s/.*/./; q'`
19328 # Avoid depending upon Character Ranges.
19329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19332 as_cr_digits='0123456789'
19333 as_cr_alnum=$as_cr_Letters$as_cr_digits
19335 ECHO_C= ECHO_N= ECHO_T=
19336 case `echo -n x` in @%:@(((((
19337 -n*)
19338   case `echo 'xy\c'` in
19339   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19340   xy)  ECHO_C='\c';;
19341   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19342        ECHO_T=' ';;
19343   esac;;
19345   ECHO_N='-n';;
19346 esac
19348 rm -f conf$$ conf$$.exe conf$$.file
19349 if test -d conf$$.dir; then
19350   rm -f conf$$.dir/conf$$.file
19351 else
19352   rm -f conf$$.dir
19353   mkdir conf$$.dir 2>/dev/null
19355 if (echo >conf$$.file) 2>/dev/null; then
19356   if ln -s conf$$.file conf$$ 2>/dev/null; then
19357     as_ln_s='ln -s'
19358     # ... but there are two gotchas:
19359     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19360     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19361     # In both cases, we have to default to `cp -p'.
19362     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19363       as_ln_s='cp -p'
19364   elif ln conf$$.file conf$$ 2>/dev/null; then
19365     as_ln_s=ln
19366   else
19367     as_ln_s='cp -p'
19368   fi
19369 else
19370   as_ln_s='cp -p'
19372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19373 rmdir conf$$.dir 2>/dev/null
19376 @%:@ as_fn_mkdir_p
19377 @%:@ -------------
19378 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
19379 as_fn_mkdir_p ()
19382   case $as_dir in #(
19383   -*) as_dir=./$as_dir;;
19384   esac
19385   test -d "$as_dir" || eval $as_mkdir_p || {
19386     as_dirs=
19387     while :; do
19388       case $as_dir in #(
19389       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19390       *) as_qdir=$as_dir;;
19391       esac
19392       as_dirs="'$as_qdir' $as_dirs"
19393       as_dir=`$as_dirname -- "$as_dir" ||
19394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19395          X"$as_dir" : 'X\(//\)[^/]' \| \
19396          X"$as_dir" : 'X\(//\)$' \| \
19397          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19398 $as_echo X"$as_dir" |
19399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19400             s//\1/
19401             q
19402           }
19403           /^X\(\/\/\)[^/].*/{
19404             s//\1/
19405             q
19406           }
19407           /^X\(\/\/\)$/{
19408             s//\1/
19409             q
19410           }
19411           /^X\(\/\).*/{
19412             s//\1/
19413             q
19414           }
19415           s/.*/./; q'`
19416       test -d "$as_dir" && break
19417     done
19418     test -z "$as_dirs" || eval "mkdir $as_dirs"
19419   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19422 } @%:@ as_fn_mkdir_p
19423 if mkdir -p . 2>/dev/null; then
19424   as_mkdir_p='mkdir -p "$as_dir"'
19425 else
19426   test -d ./-p && rmdir ./-p
19427   as_mkdir_p=false
19430 if test -x / >/dev/null 2>&1; then
19431   as_test_x='test -x'
19432 else
19433   if ls -dL / >/dev/null 2>&1; then
19434     as_ls_L_option=L
19435   else
19436     as_ls_L_option=
19437   fi
19438   as_test_x='
19439     eval sh -c '\''
19440       if test -d "$1"; then
19441         test -d "$1/.";
19442       else
19443         case $1 in @%:@(
19444         -*)set "./$1";;
19445         esac;
19446         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
19447         ???[sx]*):;;*)false;;esac;fi
19448     '\'' sh
19449   '
19451 as_executable_p=$as_test_x
19453 # Sed expression to map a string onto a valid CPP name.
19454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19456 # Sed expression to map a string onto a valid variable name.
19457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19460 exec 6>&1
19461 ## ----------------------------------- ##
19462 ## Main body of $CONFIG_STATUS script. ##
19463 ## ----------------------------------- ##
19464 _ASEOF
19465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19468 # Save the log message, to keep $0 and so on meaningful, and to
19469 # report actual input values of CONFIG_FILES etc. instead of their
19470 # values after options handling.
19471 ac_log="
19472 This file was extended by ID3 Tag $as_me 0.15.1b, which was
19473 generated by GNU Autoconf 2.68.  Invocation command line was
19475   CONFIG_FILES    = $CONFIG_FILES
19476   CONFIG_HEADERS  = $CONFIG_HEADERS
19477   CONFIG_LINKS    = $CONFIG_LINKS
19478   CONFIG_COMMANDS = $CONFIG_COMMANDS
19479   $ $0 $@
19481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19484 _ACEOF
19486 case $ac_config_files in *"
19487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19488 esac
19490 case $ac_config_headers in *"
19491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19492 esac
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 # Files that config.status was made for.
19497 config_files="$ac_config_files"
19498 config_headers="$ac_config_headers"
19499 config_commands="$ac_config_commands"
19501 _ACEOF
19503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19504 ac_cs_usage="\
19505 \`$as_me' instantiates files and other configuration actions
19506 from templates according to the current configuration.  Unless the files
19507 and actions are specified as TAGs, all are instantiated by default.
19509 Usage: $0 [OPTION]... [TAG]...
19511   -h, --help       print this help, then exit
19512   -V, --version    print version number and configuration settings, then exit
19513       --config     print configuration, then exit
19514   -q, --quiet, --silent
19515                    do not print progress messages
19516   -d, --debug      don't remove temporary files
19517       --recheck    update $as_me by reconfiguring in the same conditions
19518       --file=FILE[:TEMPLATE] 
19519                    instantiate the configuration file FILE
19520       --header=FILE[:TEMPLATE] 
19521                    instantiate the configuration header FILE
19523 Configuration files:
19524 $config_files
19526 Configuration headers:
19527 $config_headers
19529 Configuration commands:
19530 $config_commands
19532 Report bugs to <support@underbit.com>."
19534 _ACEOF
19535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19537 ac_cs_version="\\
19538 ID3 Tag config.status 0.15.1b
19539 configured by $0, generated by GNU Autoconf 2.68,
19540   with options \\"\$ac_cs_config\\"
19542 Copyright (C) 2010 Free Software Foundation, Inc.
19543 This config.status script is free software; the Free Software Foundation
19544 gives unlimited permission to copy, distribute and modify it."
19546 ac_pwd='$ac_pwd'
19547 srcdir='$srcdir'
19548 INSTALL='$INSTALL'
19549 AWK='$AWK'
19550 test -n "\$AWK" || AWK=awk
19551 _ACEOF
19553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19554 # The default lists apply if the user does not specify any file.
19555 ac_need_defaults=:
19556 while test $# != 0
19558   case $1 in
19559   --*=?*)
19560     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19561     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19562     ac_shift=:
19563     ;;
19564   --*=)
19565     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19566     ac_optarg=
19567     ac_shift=:
19568     ;;
19569   *)
19570     ac_option=$1
19571     ac_optarg=$2
19572     ac_shift=shift
19573     ;;
19574   esac
19576   case $ac_option in
19577   # Handling of the options.
19578   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19579     ac_cs_recheck=: ;;
19580   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19581     $as_echo "$ac_cs_version"; exit ;;
19582   --config | --confi | --conf | --con | --co | --c )
19583     $as_echo "$ac_cs_config"; exit ;;
19584   --debug | --debu | --deb | --de | --d | -d )
19585     debug=: ;;
19586   --file | --fil | --fi | --f )
19587     $ac_shift
19588     case $ac_optarg in
19589     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19590     '') as_fn_error $? "missing file argument" ;;
19591     esac
19592     as_fn_append CONFIG_FILES " '$ac_optarg'"
19593     ac_need_defaults=false;;
19594   --header | --heade | --head | --hea )
19595     $ac_shift
19596     case $ac_optarg in
19597     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19598     esac
19599     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19600     ac_need_defaults=false;;
19601   --he | --h)
19602     # Conflict between --help and --header
19603     as_fn_error $? "ambiguous option: \`$1'
19604 Try \`$0 --help' for more information.";;
19605   --help | --hel | -h )
19606     $as_echo "$ac_cs_usage"; exit ;;
19607   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19608   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19609     ac_cs_silent=: ;;
19611   # This is an error.
19612   -*) as_fn_error $? "unrecognized option: \`$1'
19613 Try \`$0 --help' for more information." ;;
19615   *) as_fn_append ac_config_targets " $1"
19616      ac_need_defaults=false ;;
19618   esac
19619   shift
19620 done
19622 ac_configure_extra_args=
19624 if $ac_cs_silent; then
19625   exec 6>/dev/null
19626   ac_configure_extra_args="$ac_configure_extra_args --silent"
19629 _ACEOF
19630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19631 if \$ac_cs_recheck; then
19632   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19633   shift
19634   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19635   CONFIG_SHELL='$SHELL'
19636   export CONFIG_SHELL
19637   exec "\$@"
19640 _ACEOF
19641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19642 exec 5>>config.log
19644   echo
19645   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19646 @%:@@%:@ Running $as_me. @%:@@%:@
19647 _ASBOX
19648   $as_echo "$ac_log"
19649 } >&5
19651 _ACEOF
19652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19654 # INIT-COMMANDS
19656 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19658 _ACEOF
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662 # Handling of arguments.
19663 for ac_config_target in $ac_config_targets
19665   case $ac_config_target in
19666     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19667     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19668     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19669     "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
19670     "libid3tag.list") CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;;
19672   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19673   esac
19674 done
19677 # If the user did not use the arguments to specify the items to instantiate,
19678 # then the envvar interface is used.  Set only those that are not.
19679 # We use the long form for the default assignment because of an extremely
19680 # bizarre bug on SunOS 4.1.3.
19681 if $ac_need_defaults; then
19682   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19683   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19684   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19687 # Have a temporary directory for convenience.  Make it in the build tree
19688 # simply because there is no reason against having it here, and in addition,
19689 # creating and moving files from /tmp can sometimes cause problems.
19690 # Hook for its removal unless debugging.
19691 # Note that there is a small window in which the directory will not be cleaned:
19692 # after its creation but before its name has been assigned to `$tmp'.
19693 $debug ||
19695   tmp= ac_tmp=
19696   trap 'exit_status=$?
19697   : "${ac_tmp:=$tmp}"
19698   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19699 ' 0
19700   trap 'as_fn_exit 1' 1 2 13 15
19702 # Create a (secure) tmp directory for tmp files.
19705   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19706   test -d "$tmp"
19707 }  ||
19709   tmp=./conf$$-$RANDOM
19710   (umask 077 && mkdir "$tmp")
19711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19712 ac_tmp=$tmp
19714 # Set up the scripts for CONFIG_FILES section.
19715 # No need to generate them if there are no CONFIG_FILES.
19716 # This happens for instance with `./config.status config.h'.
19717 if test -n "$CONFIG_FILES"; then
19720 ac_cr=`echo X | tr X '\015'`
19721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19722 # But we know of no other shell where ac_cr would be empty at this
19723 # point, so we can use a bashism as a fallback.
19724 if test "x$ac_cr" = x; then
19725   eval ac_cr=\$\'\\r\'
19727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19729   ac_cs_awk_cr='\\r'
19730 else
19731   ac_cs_awk_cr=$ac_cr
19734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19735 _ACEOF
19739   echo "cat >conf$$subs.awk <<_ACEOF" &&
19740   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19741   echo "_ACEOF"
19742 } >conf$$subs.sh ||
19743   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19745 ac_delim='%!_!# '
19746 for ac_last_try in false false false false false :; do
19747   . ./conf$$subs.sh ||
19748     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19750   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19751   if test $ac_delim_n = $ac_delim_num; then
19752     break
19753   elif $ac_last_try; then
19754     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19755   else
19756     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19757   fi
19758 done
19759 rm -f conf$$subs.sh
19761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19763 _ACEOF
19764 sed -n '
19766 s/^/S["/; s/!.*/"]=/
19769 s/^[^!]*!//
19770 :repl
19771 t repl
19772 s/'"$ac_delim"'$//
19773 t delim
19776 s/\(.\{148\}\)..*/\1/
19777 t more1
19778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19781 b repl
19782 :more1
19783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19786 s/.\{148\}//
19787 t nl
19788 :delim
19790 s/\(.\{148\}\)..*/\1/
19791 t more2
19792 s/["\\]/\\&/g; s/^/"/; s/$/"/
19795 :more2
19796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19799 s/.\{148\}//
19800 t delim
19801 ' <conf$$subs.awk | sed '
19802 /^[^""]/{
19803   N
19804   s/\n//
19806 ' >>$CONFIG_STATUS || ac_write_fail=1
19807 rm -f conf$$subs.awk
19808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19809 _ACAWK
19810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19811   for (key in S) S_is_set[key] = 1
19812   FS = "\a"
19816   line = $ 0
19817   nfields = split(line, field, "@")
19818   substed = 0
19819   len = length(field[1])
19820   for (i = 2; i < nfields; i++) {
19821     key = field[i]
19822     keylen = length(key)
19823     if (S_is_set[key]) {
19824       value = S[key]
19825       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19826       len += length(value) + length(field[++i])
19827       substed = 1
19828     } else
19829       len += 1 + keylen
19830   }
19832   print line
19835 _ACAWK
19836 _ACEOF
19837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19839   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19840 else
19841   cat
19842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19843   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19844 _ACEOF
19846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19848 # trailing colons and then remove the whole line if VPATH becomes empty
19849 # (actually we leave an empty line to preserve line numbers).
19850 if test "x$srcdir" = x.; then
19851   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19853 s///
19854 s/^/:/
19855 s/[      ]*$/:/
19856 s/:\$(srcdir):/:/g
19857 s/:\${srcdir}:/:/g
19858 s/:@srcdir@:/:/g
19859 s/^:*//
19860 s/:*$//
19862 s/\(=[   ]*\).*/\1/
19864 s/\n//
19865 s/^[^=]*=[       ]*$//
19869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870 fi # test -n "$CONFIG_FILES"
19872 # Set up the scripts for CONFIG_HEADERS section.
19873 # No need to generate them if there are no CONFIG_HEADERS.
19874 # This happens for instance with `./config.status Makefile'.
19875 if test -n "$CONFIG_HEADERS"; then
19876 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19877 BEGIN {
19878 _ACEOF
19880 # Transform confdefs.h into an awk script `defines.awk', embedded as
19881 # here-document in config.status, that substitutes the proper values into
19882 # config.h.in to produce config.h.
19884 # Create a delimiter string that does not exist in confdefs.h, to ease
19885 # handling of long lines.
19886 ac_delim='%!_!# '
19887 for ac_last_try in false false :; do
19888   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19889   if test -z "$ac_tt"; then
19890     break
19891   elif $ac_last_try; then
19892     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19893   else
19894     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19895   fi
19896 done
19898 # For the awk script, D is an array of macro values keyed by name,
19899 # likewise P contains macro parameters if any.  Preserve backslash
19900 # newline sequences.
19902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19903 sed -n '
19904 s/.\{148\}/&'"$ac_delim"'/g
19905 t rset
19906 :rset
19907 s/^[     ]*#[    ]*define[       ][      ]*/ /
19908 t def
19910 :def
19911 s/\\$//
19912 t bsnl
19913 s/["\\]/\\&/g
19914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19915 D["\1"]=" \3"/p
19916 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19918 :bsnl
19919 s/["\\]/\\&/g
19920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19921 D["\1"]=" \3\\\\\\n"\\/p
19922 t cont
19923 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19924 t cont
19926 :cont
19928 s/.\{148\}/&'"$ac_delim"'/g
19929 t clear
19930 :clear
19931 s/\\$//
19932 t bsnlc
19933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19935 :bsnlc
19936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19937 b cont
19938 ' <confdefs.h | sed '
19939 s/'"$ac_delim"'/"\\\
19940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19943   for (key in D) D_is_set[key] = 1
19944   FS = "\a"
19946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19947   line = \$ 0
19948   split(line, arg, " ")
19949   if (arg[1] == "#") {
19950     defundef = arg[2]
19951     mac1 = arg[3]
19952   } else {
19953     defundef = substr(arg[1], 2)
19954     mac1 = arg[2]
19955   }
19956   split(mac1, mac2, "(") #)
19957   macro = mac2[1]
19958   prefix = substr(line, 1, index(line, defundef) - 1)
19959   if (D_is_set[macro]) {
19960     # Preserve the white space surrounding the "#".
19961     print prefix "define", macro P[macro] D[macro]
19962     next
19963   } else {
19964     # Replace #undef with comments.  This is necessary, for example,
19965     # in the case of _POSIX_SOURCE, which is predefined and required
19966     # on some systems where configure will not decide to define it.
19967     if (defundef == "undef") {
19968       print "/*", prefix defundef, macro, "*/"
19969       next
19970     }
19971   }
19973 { print }
19974 _ACAWK
19975 _ACEOF
19976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19977   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19978 fi # test -n "$CONFIG_HEADERS"
19981 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19982 shift
19983 for ac_tag
19985   case $ac_tag in
19986   :[FHLC]) ac_mode=$ac_tag; continue;;
19987   esac
19988   case $ac_mode$ac_tag in
19989   :[FHL]*:*);;
19990   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19991   :[FH]-) ac_tag=-:-;;
19992   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19993   esac
19994   ac_save_IFS=$IFS
19995   IFS=:
19996   set x $ac_tag
19997   IFS=$ac_save_IFS
19998   shift
19999   ac_file=$1
20000   shift
20002   case $ac_mode in
20003   :L) ac_source=$1;;
20004   :[FH])
20005     ac_file_inputs=
20006     for ac_f
20007     do
20008       case $ac_f in
20009       -) ac_f="$ac_tmp/stdin";;
20010       *) # Look for the file first in the build tree, then in the source tree
20011          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20012          # because $ac_f cannot contain `:'.
20013          test -f "$ac_f" ||
20014            case $ac_f in
20015            [\\/$]*) false;;
20016            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20017            esac ||
20018            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20019       esac
20020       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20021       as_fn_append ac_file_inputs " '$ac_f'"
20022     done
20024     # Let's still pretend it is `configure' which instantiates (i.e., don't
20025     # use $as_me), people would be surprised to read:
20026     #    /* config.h.  Generated by config.status.  */
20027     configure_input='Generated from '`
20028           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20029         `' by configure.'
20030     if test x"$ac_file" != x-; then
20031       configure_input="$ac_file.  $configure_input"
20032       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20033 $as_echo "$as_me: creating $ac_file" >&6;}
20034     fi
20035     # Neutralize special characters interpreted by sed in replacement strings.
20036     case $configure_input in #(
20037     *\&* | *\|* | *\\* )
20038        ac_sed_conf_input=`$as_echo "$configure_input" |
20039        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20040     *) ac_sed_conf_input=$configure_input;;
20041     esac
20043     case $ac_tag in
20044     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20045       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20046     esac
20047     ;;
20048   esac
20050   ac_dir=`$as_dirname -- "$ac_file" ||
20051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20052          X"$ac_file" : 'X\(//\)[^/]' \| \
20053          X"$ac_file" : 'X\(//\)$' \| \
20054          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20055 $as_echo X"$ac_file" |
20056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20057             s//\1/
20058             q
20059           }
20060           /^X\(\/\/\)[^/].*/{
20061             s//\1/
20062             q
20063           }
20064           /^X\(\/\/\)$/{
20065             s//\1/
20066             q
20067           }
20068           /^X\(\/\).*/{
20069             s//\1/
20070             q
20071           }
20072           s/.*/./; q'`
20073   as_dir="$ac_dir"; as_fn_mkdir_p
20074   ac_builddir=.
20076 case "$ac_dir" in
20077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20079   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20080   # A ".." for each directory in $ac_dir_suffix.
20081   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20082   case $ac_top_builddir_sub in
20083   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20084   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20085   esac ;;
20086 esac
20087 ac_abs_top_builddir=$ac_pwd
20088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20089 # for backward compatibility:
20090 ac_top_builddir=$ac_top_build_prefix
20092 case $srcdir in
20093   .)  # We are building in place.
20094     ac_srcdir=.
20095     ac_top_srcdir=$ac_top_builddir_sub
20096     ac_abs_top_srcdir=$ac_pwd ;;
20097   [\\/]* | ?:[\\/]* )  # Absolute name.
20098     ac_srcdir=$srcdir$ac_dir_suffix;
20099     ac_top_srcdir=$srcdir
20100     ac_abs_top_srcdir=$srcdir ;;
20101   *) # Relative name.
20102     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20103     ac_top_srcdir=$ac_top_build_prefix$srcdir
20104     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20105 esac
20106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20109   case $ac_mode in
20110   :F)
20111   #
20112   # CONFIG_FILE
20113   #
20115   case $INSTALL in
20116   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20117   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20118   esac
20119 _ACEOF
20121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122 # If the template does not know about datarootdir, expand it.
20123 # FIXME: This hack should be removed a few years after 2.60.
20124 ac_datarootdir_hack=; ac_datarootdir_seen=
20125 ac_sed_dataroot='
20126 /datarootdir/ {
20127   p
20128   q
20130 /@datadir@/p
20131 /@docdir@/p
20132 /@infodir@/p
20133 /@localedir@/p
20134 /@mandir@/p'
20135 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20136 *datarootdir*) ac_datarootdir_seen=yes;;
20137 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20138   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20139 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20140 _ACEOF
20141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20142   ac_datarootdir_hack='
20143   s&@datadir@&$datadir&g
20144   s&@docdir@&$docdir&g
20145   s&@infodir@&$infodir&g
20146   s&@localedir@&$localedir&g
20147   s&@mandir@&$mandir&g
20148   s&\\\${datarootdir}&$datarootdir&g' ;;
20149 esac
20150 _ACEOF
20152 # Neutralize VPATH when `$srcdir' = `.'.
20153 # Shell code in configure.ac might set extrasub.
20154 # FIXME: do we really want to maintain this feature?
20155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20156 ac_sed_extra="$ac_vpsub
20157 $extrasub
20158 _ACEOF
20159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20162 s|@configure_input@|$ac_sed_conf_input|;t t
20163 s&@top_builddir@&$ac_top_builddir_sub&;t t
20164 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20165 s&@srcdir@&$ac_srcdir&;t t
20166 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20167 s&@top_srcdir@&$ac_top_srcdir&;t t
20168 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20169 s&@builddir@&$ac_builddir&;t t
20170 s&@abs_builddir@&$ac_abs_builddir&;t t
20171 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20172 s&@INSTALL@&$ac_INSTALL&;t t
20173 $ac_datarootdir_hack
20175 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20176   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20179   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20180   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20181       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20183 which seems to be undefined.  Please make sure it is defined" >&5
20184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20185 which seems to be undefined.  Please make sure it is defined" >&2;}
20187   rm -f "$ac_tmp/stdin"
20188   case $ac_file in
20189   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20190   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20191   esac \
20192   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20193  ;;
20194   :H)
20195   #
20196   # CONFIG_HEADER
20197   #
20198   if test x"$ac_file" != x-; then
20199     {
20200       $as_echo "/* $configure_input  */" \
20201       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20202     } >"$ac_tmp/config.h" \
20203       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20204     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20205       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20207     else
20208       rm -f "$ac_file"
20209       mv "$ac_tmp/config.h" "$ac_file" \
20210         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20211     fi
20212   else
20213     $as_echo "/* $configure_input  */" \
20214       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20215       || as_fn_error $? "could not create -" "$LINENO" 5
20216   fi
20217 # Compute "$ac_file"'s index in $config_headers.
20218 _am_stamp_count=1
20219 for _am_header in $config_headers :; do
20220   case $_am_header in
20221     "$ac_file" | "$ac_file":* )
20222       break ;;
20223     * )
20224       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20225   esac
20226 done
20227 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
20228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229          X"$ac_file" : 'X\(//\)[^/]' \| \
20230          X"$ac_file" : 'X\(//\)$' \| \
20231          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20232 $as_echo X"$ac_file" |
20233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20234             s//\1/
20235             q
20236           }
20237           /^X\(\/\/\)[^/].*/{
20238             s//\1/
20239             q
20240           }
20241           /^X\(\/\/\)$/{
20242             s//\1/
20243             q
20244           }
20245           /^X\(\/\).*/{
20246             s//\1/
20247             q
20248           }
20249           s/.*/./; q'`/stamp-h$_am_stamp_count
20250  ;;
20251   
20252   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20253 $as_echo "$as_me: executing $ac_file commands" >&6;}
20254  ;;
20255   esac
20258   case $ac_file$ac_mode in
20259     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20260   # Strip MF so we end up with the name of the file.
20261   mf=`echo "$mf" | sed -e 's/:.*$//'`
20262   # Check whether this is an Automake generated Makefile or not.
20263   # We used to match only the files named `Makefile.in', but
20264   # some people rename them; so instead we look at the file content.
20265   # Grep'ing the first line is not enough: some people post-process
20266   # each Makefile.in and add a new line on top of each file to say so.
20267   # So let's grep whole file.
20268   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20269     dirpart=`$as_dirname -- "$mf" ||
20270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20271          X"$mf" : 'X\(//\)[^/]' \| \
20272          X"$mf" : 'X\(//\)$' \| \
20273          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20274 $as_echo X"$mf" |
20275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20276             s//\1/
20277             q
20278           }
20279           /^X\(\/\/\)[^/].*/{
20280             s//\1/
20281             q
20282           }
20283           /^X\(\/\/\)$/{
20284             s//\1/
20285             q
20286           }
20287           /^X\(\/\).*/{
20288             s//\1/
20289             q
20290           }
20291           s/.*/./; q'`
20292   else
20293     continue
20294   fi
20295   grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
20296   # Extract the definition of DEP_FILES from the Makefile without
20297   # running `make'.
20298   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20299   test -z "$DEPDIR" && continue
20300   # When using ansi2knr, U may be empty or an underscore; expand it
20301   U=`sed -n -e '/^U = / s///p' < "$mf"`
20302   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20303   # We invoke sed twice because it is the simplest approach to
20304   # changing $(DEPDIR) to its actual value in the expansion.
20305   for file in `sed -n -e '
20306     /^DEP_FILES = .*\\\\$/ {
20307       s/^DEP_FILES = //
20308       :loop
20309         s/\\\\$//
20310         p
20311         n
20312         /\\\\$/ b loop
20313       p
20314     }
20315     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20316        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20317     # Make sure the directory exists.
20318     test -f "$dirpart/$file" && continue
20319     fdir=`$as_dirname -- "$file" ||
20320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321          X"$file" : 'X\(//\)[^/]' \| \
20322          X"$file" : 'X\(//\)$' \| \
20323          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20324 $as_echo X"$file" |
20325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20326             s//\1/
20327             q
20328           }
20329           /^X\(\/\/\)[^/].*/{
20330             s//\1/
20331             q
20332           }
20333           /^X\(\/\/\)$/{
20334             s//\1/
20335             q
20336           }
20337           /^X\(\/\).*/{
20338             s//\1/
20339             q
20340           }
20341           s/.*/./; q'`
20342     as_dir=$dirpart/$fdir; as_fn_mkdir_p
20343     # echo "creating $dirpart/$file"
20344     echo '# dummy' > "$dirpart/$file"
20345   done
20346 done
20347  ;;
20349   esac
20350 done # for ac_tag
20353 as_fn_exit 0
20354 _ACEOF
20355 ac_clean_files=$ac_clean_files_save
20357 test $ac_write_fail = 0 ||
20358   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20361 # configure is writing to config.log, and then calls config.status.
20362 # config.status does its own redirection, appending to config.log.
20363 # Unfortunately, on DOS this fails, as config.log is still kept open
20364 # by configure, so config.status won't be able to write to it; its
20365 # output is simply discarded.  So we exec the FD to /dev/null,
20366 # effectively closing config.log, so it can be properly (re)opened and
20367 # appended to by config.status.  When coming back to configure, we
20368 # need to make the FD available again.
20369 if test "$no_create" != yes; then
20370   ac_cs_success=:
20371   ac_config_status_args=
20372   test "$silent" = yes &&
20373     ac_config_status_args="$ac_config_status_args --quiet"
20374   exec 5>/dev/null
20375   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20376   exec 5>>config.log
20377   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20378   # would make configure fail if this is the last instruction.
20379   $ac_cs_success || as_fn_exit 1
20381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20382   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}