config:
[external/binutils.git] / gprof / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702
703 ac_unique_file="gprof.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 NO_WERROR
745 WARN_CFLAGS
746 GENINSRC_NEVER_FALSE
747 GENINSRC_NEVER_TRUE
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 MSGMERGE
752 MSGFMT
753 MKINSTALLDIRS
754 CATOBJEXT
755 GENCAT
756 INSTOBJEXT
757 DATADIRNAME
758 CATALOGS
759 POSUB
760 GMSGFMT
761 XGETTEXT
762 INCINTL
763 LIBINTL_DEP
764 LIBINTL
765 USE_NLS
766 OTOOL64
767 OTOOL
768 LIPO
769 NMEDIT
770 DSYMUTIL
771 lt_ECHO
772 RANLIB
773 AR
774 OBJDUMP
775 LN_S
776 NM
777 ac_ct_DUMPBIN
778 DUMPBIN
779 LD
780 FGREP
781 SED
782 LIBTOOL
783 EGREP
784 GREP
785 CPP
786 am__fastdepCC_FALSE
787 am__fastdepCC_TRUE
788 CCDEPMODE
789 AMDEPBACKSLASH
790 AMDEP_FALSE
791 AMDEP_TRUE
792 am__quote
793 am__include
794 DEPDIR
795 am__untar
796 am__tar
797 AMTAR
798 am__leading_dot
799 SET_MAKE
800 AWK
801 mkdir_p
802 MKDIR_P
803 INSTALL_STRIP_PROGRAM
804 STRIP
805 install_sh
806 MAKEINFO
807 AUTOHEADER
808 AUTOMAKE
809 AUTOCONF
810 ACLOCAL
811 VERSION
812 PACKAGE
813 CYGPATH_W
814 am__isrc
815 INSTALL_DATA
816 INSTALL_SCRIPT
817 INSTALL_PROGRAM
818 OBJEXT
819 EXEEXT
820 ac_ct_CC
821 CPPFLAGS
822 LDFLAGS
823 CFLAGS
824 CC
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files=''
876 ac_user_opts='
877 enable_option_checking
878 enable_dependency_tracking
879 enable_plugins
880 enable_largefile
881 enable_shared
882 enable_static
883 with_pic
884 enable_fast_install
885 with_gnu_ld
886 enable_libtool_lock
887 enable_nls
888 enable_maintainer_mode
889 enable_werror
890 enable_build_warnings
891 '
892       ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955   # If the previous option needs an argument, assign it.
956   if test -n "$ac_prev"; then
957     eval $ac_prev=\$ac_option
958     ac_prev=
959     continue
960   fi
961
962   case $ac_option in
963   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964   *)    ac_optarg=yes ;;
965   esac
966
967   # Accept the important Cygnus configure options, so we can diagnose typos.
968
969   case $ac_dashdash$ac_option in
970   --)
971     ac_dashdash=yes ;;
972
973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
974     ac_prev=bindir ;;
975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976     bindir=$ac_optarg ;;
977
978   -build | --build | --buil | --bui | --bu)
979     ac_prev=build_alias ;;
980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981     build_alias=$ac_optarg ;;
982
983   -cache-file | --cache-file | --cache-fil | --cache-fi \
984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985     ac_prev=cache_file ;;
986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988     cache_file=$ac_optarg ;;
989
990   --config-cache | -C)
991     cache_file=config.cache ;;
992
993   -datadir | --datadir | --datadi | --datad)
994     ac_prev=datadir ;;
995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
996     datadir=$ac_optarg ;;
997
998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999   | --dataroo | --dataro | --datar)
1000     ac_prev=datarootdir ;;
1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003     datarootdir=$ac_optarg ;;
1004
1005   -disable-* | --disable-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error "invalid feature name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval enable_$ac_useropt=no ;;
1020
1021   -docdir | --docdir | --docdi | --doc | --do)
1022     ac_prev=docdir ;;
1023   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024     docdir=$ac_optarg ;;
1025
1026   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027     ac_prev=dvidir ;;
1028   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029     dvidir=$ac_optarg ;;
1030
1031   -enable-* | --enable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error "invalid feature name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049   | --exec | --exe | --ex)
1050     ac_prev=exec_prefix ;;
1051   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053   | --exec=* | --exe=* | --ex=*)
1054     exec_prefix=$ac_optarg ;;
1055
1056   -gas | --gas | --ga | --g)
1057     # Obsolete; use --with-gas.
1058     with_gas=yes ;;
1059
1060   -help | --help | --hel | --he | -h)
1061     ac_init_help=long ;;
1062   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063     ac_init_help=recursive ;;
1064   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065     ac_init_help=short ;;
1066
1067   -host | --host | --hos | --ho)
1068     ac_prev=host_alias ;;
1069   -host=* | --host=* | --hos=* | --ho=*)
1070     host_alias=$ac_optarg ;;
1071
1072   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073     ac_prev=htmldir ;;
1074   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075   | --ht=*)
1076     htmldir=$ac_optarg ;;
1077
1078   -includedir | --includedir | --includedi | --included | --include \
1079   | --includ | --inclu | --incl | --inc)
1080     ac_prev=includedir ;;
1081   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082   | --includ=* | --inclu=* | --incl=* | --inc=*)
1083     includedir=$ac_optarg ;;
1084
1085   -infodir | --infodir | --infodi | --infod | --info | --inf)
1086     ac_prev=infodir ;;
1087   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088     infodir=$ac_optarg ;;
1089
1090   -libdir | --libdir | --libdi | --libd)
1091     ac_prev=libdir ;;
1092   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093     libdir=$ac_optarg ;;
1094
1095   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096   | --libexe | --libex | --libe)
1097     ac_prev=libexecdir ;;
1098   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099   | --libexe=* | --libex=* | --libe=*)
1100     libexecdir=$ac_optarg ;;
1101
1102   -localedir | --localedir | --localedi | --localed | --locale)
1103     ac_prev=localedir ;;
1104   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105     localedir=$ac_optarg ;;
1106
1107   -localstatedir | --localstatedir | --localstatedi | --localstated \
1108   | --localstate | --localstat | --localsta | --localst | --locals)
1109     ac_prev=localstatedir ;;
1110   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112     localstatedir=$ac_optarg ;;
1113
1114   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115     ac_prev=mandir ;;
1116   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117     mandir=$ac_optarg ;;
1118
1119   -nfp | --nfp | --nf)
1120     # Obsolete; use --without-fp.
1121     with_fp=no ;;
1122
1123   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124   | --no-cr | --no-c | -n)
1125     no_create=yes ;;
1126
1127   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129     no_recursion=yes ;;
1130
1131   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133   | --oldin | --oldi | --old | --ol | --o)
1134     ac_prev=oldincludedir ;;
1135   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138     oldincludedir=$ac_optarg ;;
1139
1140   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141     ac_prev=prefix ;;
1142   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143     prefix=$ac_optarg ;;
1144
1145   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146   | --program-pre | --program-pr | --program-p)
1147     ac_prev=program_prefix ;;
1148   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150     program_prefix=$ac_optarg ;;
1151
1152   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153   | --program-suf | --program-su | --program-s)
1154     ac_prev=program_suffix ;;
1155   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157     program_suffix=$ac_optarg ;;
1158
1159   -program-transform-name | --program-transform-name \
1160   | --program-transform-nam | --program-transform-na \
1161   | --program-transform-n | --program-transform- \
1162   | --program-transform | --program-transfor \
1163   | --program-transfo | --program-transf \
1164   | --program-trans | --program-tran \
1165   | --progr-tra | --program-tr | --program-t)
1166     ac_prev=program_transform_name ;;
1167   -program-transform-name=* | --program-transform-name=* \
1168   | --program-transform-nam=* | --program-transform-na=* \
1169   | --program-transform-n=* | --program-transform-=* \
1170   | --program-transform=* | --program-transfor=* \
1171   | --program-transfo=* | --program-transf=* \
1172   | --program-trans=* | --program-tran=* \
1173   | --progr-tra=* | --program-tr=* | --program-t=*)
1174     program_transform_name=$ac_optarg ;;
1175
1176   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177     ac_prev=pdfdir ;;
1178   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179     pdfdir=$ac_optarg ;;
1180
1181   -psdir | --psdir | --psdi | --psd | --ps)
1182     ac_prev=psdir ;;
1183   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184     psdir=$ac_optarg ;;
1185
1186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187   | -silent | --silent | --silen | --sile | --sil)
1188     silent=yes ;;
1189
1190   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191     ac_prev=sbindir ;;
1192   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193   | --sbi=* | --sb=*)
1194     sbindir=$ac_optarg ;;
1195
1196   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198   | --sharedst | --shareds | --shared | --share | --shar \
1199   | --sha | --sh)
1200     ac_prev=sharedstatedir ;;
1201   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204   | --sha=* | --sh=*)
1205     sharedstatedir=$ac_optarg ;;
1206
1207   -site | --site | --sit)
1208     ac_prev=site ;;
1209   -site=* | --site=* | --sit=*)
1210     site=$ac_optarg ;;
1211
1212   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213     ac_prev=srcdir ;;
1214   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215     srcdir=$ac_optarg ;;
1216
1217   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218   | --syscon | --sysco | --sysc | --sys | --sy)
1219     ac_prev=sysconfdir ;;
1220   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222     sysconfdir=$ac_optarg ;;
1223
1224   -target | --target | --targe | --targ | --tar | --ta | --t)
1225     ac_prev=target_alias ;;
1226   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227     target_alias=$ac_optarg ;;
1228
1229   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230     verbose=yes ;;
1231
1232   -version | --version | --versio | --versi | --vers | -V)
1233     ac_init_version=: ;;
1234
1235   -with-* | --with-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=\$ac_optarg ;;
1250
1251   -without-* | --without-*)
1252     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255       as_fn_error "invalid package name: $ac_useropt"
1256     ac_useropt_orig=$ac_useropt
1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258     case $ac_user_opts in
1259       *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263          ac_unrecognized_sep=', ';;
1264     esac
1265     eval with_$ac_useropt=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) as_fn_error "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information."
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     case $ac_envvar in #(
1293       '' | [0-9]* | *[!_$as_cr_alnum]* )
1294       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1295     esac
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   as_fn_error "missing argument to $ac_option"
1313 fi
1314
1315 if test -n "$ac_unrecognized_opts"; then
1316   case $enable_option_checking in
1317     no) ;;
1318     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1319     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320   esac
1321 fi
1322
1323 # Check all directory arguments for consistency.
1324 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325                 datadir sysconfdir sharedstatedir localstatedir includedir \
1326                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327                 libdir localedir mandir
1328 do
1329   eval ac_val=\$$ac_var
1330   # Remove trailing slashes.
1331   case $ac_val in
1332     */ )
1333       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334       eval $ac_var=\$ac_val;;
1335   esac
1336   # Be sure to have absolute directory names.
1337   case $ac_val in
1338     [\\/$]* | ?:[\\/]* )  continue;;
1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340   esac
1341   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1350
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353   if test "x$build_alias" = x; then
1354     cross_compiling=maybe
1355     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356     If a cross compiler is detected then cross compile mode will be used." >&2
1357   elif test "x$build_alias" != "x$host_alias"; then
1358     cross_compiling=yes
1359   fi
1360 fi
1361
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365 test "$silent" = yes && exec 6>/dev/null
1366
1367
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371   as_fn_error "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373   as_fn_error "pwd does not report name of working directory"
1374
1375
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378   ac_srcdir_defaulted=yes
1379   # Try the directory containing this script, then the parent directory.
1380   ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382          X"$as_myself" : 'X\(//\)[^/]' \| \
1383          X"$as_myself" : 'X\(//\)$' \| \
1384          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\/\)[^/].*/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\/\)$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\).*/{
1399             s//\1/
1400             q
1401           }
1402           s/.*/./; q'`
1403   srcdir=$ac_confdir
1404   if test ! -r "$srcdir/$ac_unique_file"; then
1405     srcdir=..
1406   fi
1407 else
1408   ac_srcdir_defaulted=no
1409 fi
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1413 fi
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1417         pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420   srcdir=.
1421 fi
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_env_${ac_var}_value=\$${ac_var}
1431   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1434
1435 #
1436 # Report the --help message.
1437 #
1438 if test "$ac_init_help" = "long"; then
1439   # Omit some internal or obsolete options to make the list less imposing.
1440   # This message is too long to be a string in the A/UX 3.1 sh.
1441   cat <<_ACEOF
1442 \`configure' configures this package to adapt to many kinds of systems.
1443
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1445
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE.  See below for descriptions of some of the useful variables.
1448
1449 Defaults for the options are specified in brackets.
1450
1451 Configuration:
1452   -h, --help              display this help and exit
1453       --help=short        display options specific to this package
1454       --help=recursive    display the short help of all the included packages
1455   -V, --version           display version information and exit
1456   -q, --quiet, --silent   do not print \`checking...' messages
1457       --cache-file=FILE   cache test results in FILE [disabled]
1458   -C, --config-cache      alias for \`--cache-file=config.cache'
1459   -n, --no-create         do not create output files
1460       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1461
1462 Installation directories:
1463   --prefix=PREFIX         install architecture-independent files in PREFIX
1464                           [$ac_default_prefix]
1465   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1466                           [PREFIX]
1467
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1472
1473 For better control, use the options below.
1474
1475 Fine tuning of the installation directories:
1476   --bindir=DIR            user executables [EPREFIX/bin]
1477   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1478   --libexecdir=DIR        program executables [EPREFIX/libexec]
1479   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1480   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1481   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1482   --libdir=DIR            object code libraries [EPREFIX/lib]
1483   --includedir=DIR        C header files [PREFIX/include]
1484   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1485   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1486   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1487   --infodir=DIR           info documentation [DATAROOTDIR/info]
1488   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1489   --mandir=DIR            man documentation [DATAROOTDIR/man]
1490   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1491   --htmldir=DIR           html documentation [DOCDIR]
1492   --dvidir=DIR            dvi documentation [DOCDIR]
1493   --pdfdir=DIR            pdf documentation [DOCDIR]
1494   --psdir=DIR             ps documentation [DOCDIR]
1495 _ACEOF
1496
1497   cat <<\_ACEOF
1498
1499 Program names:
1500   --program-prefix=PREFIX            prepend PREFIX to installed program names
1501   --program-suffix=SUFFIX            append SUFFIX to installed program names
1502   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1503
1504 System types:
1505   --build=BUILD     configure for building on BUILD [guessed]
1506   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507   --target=TARGET   configure for building compilers for TARGET [HOST]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512
1513   cat <<\_ACEOF
1514
1515 Optional Features:
1516   --disable-option-checking  ignore unrecognized --enable/--with options
1517   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1518   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1519   --disable-dependency-tracking  speeds up one-time build
1520   --enable-dependency-tracking   do not reject slow dependency extractors
1521   --enable-plugins        Enable support for plugins (defaults no)
1522   --disable-largefile     omit support for large files
1523   --enable-shared[=PKGS]  build shared libraries [default=yes]
1524   --enable-static[=PKGS]  build static libraries [default=yes]
1525   --enable-fast-install[=PKGS]
1526                           optimize for fast installation [default=yes]
1527   --disable-libtool-lock  avoid locking (might break parallel builds)
1528   --disable-nls           do not use Native Language Support
1529   --enable-maintainer-mode  enable make rules and dependencies not useful
1530                           (and sometimes confusing) to the casual installer
1531   --enable-werror         treat compile warnings as errors
1532   --enable-build-warnings enable build-time compiler warnings
1533
1534 Optional Packages:
1535   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1536   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1537   --with-pic              try to use only PIC/non-PIC objects [default=use
1538                           both]
1539   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1540
1541 Some influential environment variables:
1542   CC          C compiler command
1543   CFLAGS      C compiler flags
1544   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1545               nonstandard directory <lib dir>
1546   LIBS        libraries to pass to the linker, e.g. -l<library>
1547   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548               you have headers in a nonstandard directory <include dir>
1549   CPP         C preprocessor
1550
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1553
1554 Report bugs to the package provider.
1555 _ACEOF
1556 ac_status=$?
1557 fi
1558
1559 if test "$ac_init_help" = "recursive"; then
1560   # If there are subdirs, report their specific --help.
1561   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562     test -d "$ac_dir" ||
1563       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564       continue
1565     ac_builddir=.
1566
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *)
1570   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571   # A ".." for each directory in $ac_dir_suffix.
1572   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573   case $ac_top_builddir_sub in
1574   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576   esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1582
1583 case $srcdir in
1584   .)  # We are building in place.
1585     ac_srcdir=.
1586     ac_top_srcdir=$ac_top_builddir_sub
1587     ac_abs_top_srcdir=$ac_pwd ;;
1588   [\\/]* | ?:[\\/]* )  # Absolute name.
1589     ac_srcdir=$srcdir$ac_dir_suffix;
1590     ac_top_srcdir=$srcdir
1591     ac_abs_top_srcdir=$srcdir ;;
1592   *) # Relative name.
1593     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594     ac_top_srcdir=$ac_top_build_prefix$srcdir
1595     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599     cd "$ac_dir" || { ac_status=$?; continue; }
1600     # Check for guested configure.
1601     if test -f "$ac_srcdir/configure.gnu"; then
1602       echo &&
1603       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604     elif test -f "$ac_srcdir/configure"; then
1605       echo &&
1606       $SHELL "$ac_srcdir/configure" --help=recursive
1607     else
1608       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609     fi || ac_status=$?
1610     cd "$ac_pwd" || { ac_status=$?; break; }
1611   done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616   cat <<\_ACEOF
1617 configure
1618 generated by GNU Autoconf 2.64
1619
1620 Copyright (C) 2009 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   rm -f conftest.$ac_objext
1638   if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_compile") 2>conftest.err
1646   ac_status=$?
1647   if test -s conftest.err; then
1648     grep -v '^ *+' conftest.err >conftest.er1
1649     cat conftest.er1 >&5
1650     mv -f conftest.er1 conftest.err
1651   fi
1652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653   test $ac_status = 0; } && {
1654          test -z "$ac_c_werror_flag" ||
1655          test ! -s conftest.err
1656        } && test -s conftest.$ac_objext; then :
1657   ac_retval=0
1658 else
1659   $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662         ac_retval=1
1663 fi
1664   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665   return $ac_retval
1666
1667 } # ac_fn_c_try_compile
1668
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_link ()
1673 {
1674   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675   rm -f conftest.$ac_objext conftest$ac_exeext
1676   if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679   *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683   (eval "$ac_link") 2>conftest.err
1684   ac_status=$?
1685   if test -s conftest.err; then
1686     grep -v '^ *+' conftest.err >conftest.er1
1687     cat conftest.er1 >&5
1688     mv -f conftest.er1 conftest.err
1689   fi
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; } && {
1692          test -z "$ac_c_werror_flag" ||
1693          test ! -s conftest.err
1694        } && test -s conftest$ac_exeext && {
1695          test "$cross_compiling" = yes ||
1696          $as_test_x conftest$ac_exeext
1697        }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703         ac_retval=1
1704 fi
1705   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707   # interfere with the next link command; also delete a directory that is
1708   # left behind by Apple's compiler.  We do this before executing the actions.
1709   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711   return $ac_retval
1712
1713 } # ac_fn_c_try_link
1714
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_cpp ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729   ac_status=$?
1730   if test -s conftest.err; then
1731     grep -v '^ *+' conftest.err >conftest.er1
1732     cat conftest.er1 >&5
1733     mv -f conftest.er1 conftest.err
1734   fi
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } >/dev/null && {
1737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738          test ! -s conftest.err
1739        }; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745     ac_retval=1
1746 fi
1747   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748   return $ac_retval
1749
1750 } # ac_fn_c_try_cpp
1751
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1756 # accordingly.
1757 ac_fn_c_check_header_mongrel ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764   $as_echo_n "(cached) " >&6
1765 fi
1766 eval ac_res=\$$3
1767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 else
1770   # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779   ac_header_compiler=yes
1780 else
1781   ac_header_compiler=no
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1786
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h.  */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795   ac_header_preproc=yes
1796 else
1797   ac_header_preproc=no
1798 fi
1799 rm -f conftest.err conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1802
1803 # So?  What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805   yes:no: )
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810     ;;
1811   no:yes:* )
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827   $as_echo_n "(cached) " >&6
1828 else
1829   eval "$3=\$ac_header_compiler"
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 fi
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837 } # ac_fn_c_check_header_mongrel
1838
1839 # ac_fn_c_try_run LINENO
1840 # ----------------------
1841 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842 # that executables *can* be run.
1843 ac_fn_c_try_run ()
1844 {
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
1872
1873        ac_retval=$ac_status
1874 fi
1875   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877   return $ac_retval
1878
1879 } # ac_fn_c_try_run
1880
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 ()
1886 {
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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h.  */
1895 $4
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899   eval "$3=yes"
1900 else
1901   eval "$3=no"
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 fi
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910 } # ac_fn_c_check_header_compile
1911
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 ()
1916 {
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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; 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
1928
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.  */
1933
1934 #ifdef __STDC__
1935 # include <limits.h>
1936 #else
1937 # include <assert.h>
1938 #endif
1939
1940 #undef $2
1941
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
1955
1956 int
1957 main ()
1958 {
1959 return $2 ();
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_link "$LINENO"; then :
1965   eval "$3=yes"
1966 else
1967   eval "$3=no"
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext \
1970     conftest$ac_exeext conftest.$ac_ext
1971 fi
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977 } # ac_fn_c_check_func
1978 cat >config.log <<_ACEOF
1979 This file contains any messages produced by compilers while
1980 running configure, to aid debugging if configure makes a mistake.
1981
1982 It was created by $as_me, which was
1983 generated by GNU Autoconf 2.64.  Invocation command line was
1984
1985   $ $0 $@
1986
1987 _ACEOF
1988 exec 5>>config.log
1989 {
1990 cat <<_ASUNAME
1991 ## --------- ##
1992 ## Platform. ##
1993 ## --------- ##
1994
1995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000
2001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2003
2004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2011
2012 _ASUNAME
2013
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019     $as_echo "PATH: $as_dir"
2020   done
2021 IFS=$as_save_IFS
2022
2023 } >&5
2024
2025 cat >&5 <<_ACEOF
2026
2027
2028 ## ----------- ##
2029 ## Core tests. ##
2030 ## ----------- ##
2031
2032 _ACEOF
2033
2034
2035 # Keep a trace of the command line.
2036 # Strip out --no-create and --no-recursion so they do not pile up.
2037 # Strip out --silent because we don't want to record it for future runs.
2038 # Also quote any args containing shell meta-characters.
2039 # Make two passes to allow for proper duplicate-argument suppression.
2040 ac_configure_args=
2041 ac_configure_args0=
2042 ac_configure_args1=
2043 ac_must_keep_next=false
2044 for ac_pass in 1 2
2045 do
2046   for ac_arg
2047   do
2048     case $ac_arg in
2049     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051     | -silent | --silent | --silen | --sile | --sil)
2052       continue ;;
2053     *\'*)
2054       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2055     esac
2056     case $ac_pass in
2057     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058     2)
2059       as_fn_append ac_configure_args1 " '$ac_arg'"
2060       if test $ac_must_keep_next = true; then
2061         ac_must_keep_next=false # Got value, back to normal.
2062       else
2063         case $ac_arg in
2064           *=* | --config-cache | -C | -disable-* | --disable-* \
2065           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067           | -with-* | --with-* | -without-* | --without-* | --x)
2068             case "$ac_configure_args0 " in
2069               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070             esac
2071             ;;
2072           -* ) ac_must_keep_next=true ;;
2073         esac
2074       fi
2075       as_fn_append ac_configure_args " '$ac_arg'"
2076       ;;
2077     esac
2078   done
2079 done
2080 { ac_configure_args0=; unset ac_configure_args0;}
2081 { ac_configure_args1=; unset ac_configure_args1;}
2082
2083 # When interrupted or exit'd, cleanup temporary files, and complete
2084 # config.log.  We remove comments because anyway the quotes in there
2085 # would cause problems or look ugly.
2086 # WARNING: Use '\'' to represent an apostrophe within the trap.
2087 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2088 trap 'exit_status=$?
2089   # Save into config.log some information that might help in debugging.
2090   {
2091     echo
2092
2093     cat <<\_ASBOX
2094 ## ---------------- ##
2095 ## Cache variables. ##
2096 ## ---------------- ##
2097 _ASBOX
2098     echo
2099     # The following way of writing the cache mishandles newlines in values,
2100 (
2101   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102     eval ac_val=\$$ac_var
2103     case $ac_val in #(
2104     *${as_nl}*)
2105       case $ac_var in #(
2106       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108       esac
2109       case $ac_var in #(
2110       _ | IFS | as_nl) ;; #(
2111       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112       *) { eval $ac_var=; unset $ac_var;} ;;
2113       esac ;;
2114     esac
2115   done
2116   (set) 2>&1 |
2117     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118     *${as_nl}ac_space=\ *)
2119       sed -n \
2120         "s/'\''/'\''\\\\'\'''\''/g;
2121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122       ;; #(
2123     *)
2124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125       ;;
2126     esac |
2127     sort
2128 )
2129     echo
2130
2131     cat <<\_ASBOX
2132 ## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##
2135 _ASBOX
2136     echo
2137     for ac_var in $ac_subst_vars
2138     do
2139       eval ac_val=\$$ac_var
2140       case $ac_val in
2141       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142       esac
2143       $as_echo "$ac_var='\''$ac_val'\''"
2144     done | sort
2145     echo
2146
2147     if test -n "$ac_subst_files"; then
2148       cat <<\_ASBOX
2149 ## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##
2152 _ASBOX
2153       echo
2154       for ac_var in $ac_subst_files
2155       do
2156         eval ac_val=\$$ac_var
2157         case $ac_val in
2158         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159         esac
2160         $as_echo "$ac_var='\''$ac_val'\''"
2161       done | sort
2162       echo
2163     fi
2164
2165     if test -s confdefs.h; then
2166       cat <<\_ASBOX
2167 ## ----------- ##
2168 ## confdefs.h. ##
2169 ## ----------- ##
2170 _ASBOX
2171       echo
2172       cat confdefs.h
2173       echo
2174     fi
2175     test "$ac_signal" != 0 &&
2176       $as_echo "$as_me: caught signal $ac_signal"
2177     $as_echo "$as_me: exit $exit_status"
2178   } >&5
2179   rm -f core *.core core.conftest.* &&
2180     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181     exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225   ac_site_file1=$CONFIG_SITE
2226 elif test "x$prefix" != xNONE; then
2227   ac_site_file1=$prefix/share/config.site
2228   ac_site_file2=$prefix/etc/config.site
2229 else
2230   ac_site_file1=$ac_default_prefix/share/config.site
2231   ac_site_file2=$ac_default_prefix/etc/config.site
2232 fi
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 do
2235   test "x$ac_site_file" = xNONE && continue
2236   if test -r "$ac_site_file"; then
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239     sed 's/^/| /' "$ac_site_file" >&5
2240     . "$ac_site_file"
2241   fi
2242 done
2243
2244 if test -r "$cache_file"; then
2245   # Some versions of bash will fail to source /dev/null (special
2246   # files actually), so we avoid doing that.
2247   if test -f "$cache_file"; then
2248     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249 $as_echo "$as_me: loading cache $cache_file" >&6;}
2250     case $cache_file in
2251       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252       *)                      . "./$cache_file";;
2253     esac
2254   fi
2255 else
2256   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257 $as_echo "$as_me: creating cache $cache_file" >&6;}
2258   >$cache_file
2259 fi
2260
2261 # Check that the precious variables saved in the cache have kept the same
2262 # value.
2263 ac_cache_corrupted=false
2264 for ac_var in $ac_precious_vars; do
2265   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266   eval ac_new_set=\$ac_env_${ac_var}_set
2267   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268   eval ac_new_val=\$ac_env_${ac_var}_value
2269   case $ac_old_set,$ac_new_set in
2270     set,)
2271       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2273       ac_cache_corrupted=: ;;
2274     ,set)
2275       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2277       ac_cache_corrupted=: ;;
2278     ,);;
2279     *)
2280       if test "x$ac_old_val" != "x$ac_new_val"; then
2281         # differences in whitespace do not lead to failure.
2282         ac_old_val_w=`echo x $ac_old_val`
2283         ac_new_val_w=`echo x $ac_new_val`
2284         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287           ac_cache_corrupted=:
2288         else
2289           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291           eval $ac_var=\$ac_old_val
2292         fi
2293         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2294 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2295         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2296 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2297       fi;;
2298   esac
2299   # Pass precious variables to config.status.
2300   if test "$ac_new_set" = set; then
2301     case $ac_new_val in
2302     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2303     *) ac_arg=$ac_var=$ac_new_val ;;
2304     esac
2305     case " $ac_configure_args " in
2306       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2307       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2308     esac
2309   fi
2310 done
2311 if $ac_cache_corrupted; then
2312   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317 fi
2318 ## -------------------- ##
2319 ## Main body of script. ##
2320 ## -------------------- ##
2321
2322 ac_ext=c
2323 ac_cpp='$CPP $CPPFLAGS'
2324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
2328
2329
2330
2331
2332
2333
2334 ac_aux_dir=
2335 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2336   for ac_t in install-sh install.sh shtool; do
2337     if test -f "$ac_dir/$ac_t"; then
2338       ac_aux_dir=$ac_dir
2339       ac_install_sh="$ac_aux_dir/$ac_t -c"
2340       break 2
2341     fi
2342   done
2343 done
2344 if test -z "$ac_aux_dir"; then
2345   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2355
2356
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if test "${ac_cv_build+set}" = set; then :
2364   $as_echo_n "(cached) " >&6
2365 else
2366   ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2380 esac
2381 build=$ac_cv_build
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_build
2384 shift
2385 build_cpu=$1
2386 build_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 build_os=$*
2391 IFS=$ac_save_IFS
2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2396 $as_echo_n "checking host system type... " >&6; }
2397 if test "${ac_cv_host+set}" = set; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   if test "x$host_alias" = x; then
2401   ac_cv_host=$ac_cv_build
2402 else
2403   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2404     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2405 fi
2406
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2409 $as_echo "$ac_cv_host" >&6; }
2410 case $ac_cv_host in
2411 *-*-*) ;;
2412 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2413 esac
2414 host=$ac_cv_host
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_host
2417 shift
2418 host_cpu=$1
2419 host_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 host_os=$*
2424 IFS=$ac_save_IFS
2425 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2426
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2429 $as_echo_n "checking target system type... " >&6; }
2430 if test "${ac_cv_target+set}" = set; then :
2431   $as_echo_n "(cached) " >&6
2432 else
2433   if test "x$target_alias" = x; then
2434   ac_cv_target=$ac_cv_host
2435 else
2436   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2437     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2438 fi
2439
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2442 $as_echo "$ac_cv_target" >&6; }
2443 case $ac_cv_target in
2444 *-*-*) ;;
2445 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2446 esac
2447 target=$ac_cv_target
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_target
2450 shift
2451 target_cpu=$1
2452 target_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 target_os=$*
2457 IFS=$ac_save_IFS
2458 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2459
2460
2461 # The aliases save the names the user supplied, while $host etc.
2462 # will get canonicalized.
2463 test -n "$target_alias" &&
2464   test "$program_prefix$program_suffix$program_transform_name" = \
2465     NONENONEs,x,x, &&
2466   program_prefix=${target_alias}-
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 if test -n "$ac_tool_prefix"; then
2473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   if test -n "$CC"; then
2481   ac_cv_prog_CC="$CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488     for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495   done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 CC=$ac_cv_prog_CC
2501 if test -n "$CC"; then
2502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2503 $as_echo "$CC" >&6; }
2504 else
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_CC"; then
2512   ac_ct_CC=$CC
2513   # Extract the first word of "gcc", so it can be a program name with args.
2514 set dummy gcc; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2518   $as_echo_n "(cached) " >&6
2519 else
2520   if test -n "$ac_ct_CC"; then
2521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528     for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_ac_ct_CC="gcc"
2531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535   done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541 if test -n "$ac_ct_CC"; then
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2543 $as_echo "$ac_ct_CC" >&6; }
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549   if test "x$ac_ct_CC" = x; then
2550     CC=""
2551   else
2552     case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558     CC=$ac_ct_CC
2559   fi
2560 else
2561   CC="$ac_cv_prog_CC"
2562 fi
2563
2564 if test -z "$CC"; then
2565           if test -n "$ac_tool_prefix"; then
2566     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}cc; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   if test -n "$CC"; then
2574   ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581     for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     ac_cv_prog_CC="${ac_tool_prefix}cc"
2584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585     break 2
2586   fi
2587 done
2588   done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2596 $as_echo "$CC" >&6; }
2597 else
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602
2603   fi
2604 fi
2605 if test -z "$CC"; then
2606   # Extract the first word of "cc", so it can be a program name with args.
2607 set dummy cc; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if test -n "$CC"; then
2614   ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616   ac_prog_rejected=no
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622     for ac_exec_ext in '' $ac_executable_extensions; do
2623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2625        ac_prog_rejected=yes
2626        continue
2627      fi
2628     ac_cv_prog_CC="cc"
2629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633   done
2634 IFS=$as_save_IFS
2635
2636 if test $ac_prog_rejected = yes; then
2637   # We found a bogon in the path, so make sure we never use it.
2638   set dummy $ac_cv_prog_CC
2639   shift
2640   if test $# != 0; then
2641     # We chose a different compiler from the bogus one.
2642     # However, it has the same basename, so the bogon will be chosen
2643     # first if we set CC to just the basename; use the full file name.
2644     shift
2645     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2646   fi
2647 fi
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 fi
2661 if test -z "$CC"; then
2662   if test -n "$ac_tool_prefix"; then
2663   for ac_prog in cl.exe
2664   do
2665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   if test -n "$CC"; then
2673   ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680     for ac_exec_ext in '' $ac_executable_extensions; do
2681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684     break 2
2685   fi
2686 done
2687   done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2696 else
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701
2702     test -n "$CC" && break
2703   done
2704 fi
2705 if test -z "$CC"; then
2706   ac_ct_CC=$CC
2707   for ac_prog in cl.exe
2708 do
2709   # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test -n "$ac_ct_CC"; then
2717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724     for ac_exec_ext in '' $ac_executable_extensions; do
2725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726     ac_cv_prog_ac_ct_CC="$ac_prog"
2727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737 if test -n "$ac_ct_CC"; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739 $as_echo "$ac_ct_CC" >&6; }
2740 else
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746   test -n "$ac_ct_CC" && break
2747 done
2748
2749   if test "x$ac_ct_CC" = x; then
2750     CC=""
2751   else
2752     case $cross_compiling:$ac_tool_warned in
2753 yes:)
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned=yes ;;
2757 esac
2758     CC=$ac_ct_CC
2759   fi
2760 fi
2761
2762 fi
2763
2764
2765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767 as_fn_error "no acceptable C compiler found in \$PATH
2768 See \`config.log' for more details." "$LINENO" 5; }
2769
2770 # Provide some information about the compiler.
2771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2772 set X $ac_compile
2773 ac_compiler=$2
2774 for ac_option in --version -v -V -qversion; do
2775   { { ac_try="$ac_compiler $ac_option >&5"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2783   ac_status=$?
2784   if test -s conftest.err; then
2785     sed '10a\
2786 ... rest of stderr output deleted ...
2787          10q' conftest.err >conftest.er1
2788     cat conftest.er1 >&5
2789     rm -f conftest.er1 conftest.err
2790   fi
2791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792   test $ac_status = 0; }
2793 done
2794
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h.  */
2797
2798 int
2799 main ()
2800 {
2801
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 ac_clean_files_save=$ac_clean_files
2807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2808 # Try to create an executable without -o first, disregard a.out.
2809 # It will help us diagnose broken compilers, and finding out an intuition
2810 # of exeext.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2812 $as_echo_n "checking for C compiler default output file name... " >&6; }
2813 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2814
2815 # The possible output files:
2816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2817
2818 ac_rmfiles=
2819 for ac_file in $ac_files
2820 do
2821   case $ac_file in
2822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2823     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2824   esac
2825 done
2826 rm -f $ac_rmfiles
2827
2828 if { { ac_try="$ac_link_default"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834 $as_echo "$ac_try_echo"; } >&5
2835   (eval "$ac_link_default") 2>&5
2836   ac_status=$?
2837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838   test $ac_status = 0; }; then :
2839   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2841 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2842 # so that the user can short-circuit this test for compilers unknown to
2843 # Autoconf.
2844 for ac_file in $ac_files ''
2845 do
2846   test -f "$ac_file" || continue
2847   case $ac_file in
2848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2849         ;;
2850     [ab].out )
2851         # We found the default executable, but exeext='' is most
2852         # certainly right.
2853         break;;
2854     *.* )
2855         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2856         then :; else
2857            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858         fi
2859         # We set ac_cv_exeext here because the later test for it is not
2860         # safe: cross compilers may not add the suffix if given an `-o'
2861         # argument, so we may need to know it at that point already.
2862         # Even if this section looks crufty: it has the advantage of
2863         # actually working.
2864         break;;
2865     * )
2866         break;;
2867   esac
2868 done
2869 test "$ac_cv_exeext" = no && ac_cv_exeext=
2870
2871 else
2872   ac_file=''
2873 fi
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2875 $as_echo "$ac_file" >&6; }
2876 if test -z "$ac_file"; then :
2877   $as_echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 { as_fn_set_status 77
2883 as_fn_error "C compiler cannot create executables
2884 See \`config.log' for more details." "$LINENO" 5; }; }
2885 fi
2886 ac_exeext=$ac_cv_exeext
2887
2888 # Check that the compiler produces executables we can run.  If not, either
2889 # the compiler is broken, or we cross compile.
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2891 $as_echo_n "checking whether the C compiler works... " >&6; }
2892 # If not cross compiling, check that we can run a simple program.
2893 if test "$cross_compiling" != yes; then
2894   if { ac_try='./$ac_file'
2895   { { case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901   (eval "$ac_try") 2>&5
2902   ac_status=$?
2903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904   test $ac_status = 0; }; }; then
2905     cross_compiling=no
2906   else
2907     if test "$cross_compiling" = maybe; then
2908         cross_compiling=yes
2909     else
2910         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 as_fn_error "cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." "$LINENO" 5; }
2915     fi
2916   fi
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919 $as_echo "yes" >&6; }
2920
2921 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2922 ac_clean_files=$ac_clean_files_save
2923 # Check that the compiler produces executables we can run.  If not, either
2924 # the compiler is broken, or we cross compile.
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2926 $as_echo_n "checking whether we are cross compiling... " >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2928 $as_echo "$cross_compiling" >&6; }
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2931 $as_echo_n "checking for suffix of executables... " >&6; }
2932 if { { ac_try="$ac_link"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939   (eval "$ac_link") 2>&5
2940   ac_status=$?
2941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942   test $ac_status = 0; }; then :
2943   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2945 # work properly (i.e., refer to `conftest.exe'), while it won't with
2946 # `rm'.
2947 for ac_file in conftest.exe conftest conftest.*; do
2948   test -f "$ac_file" || continue
2949   case $ac_file in
2950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2951     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952           break;;
2953     * ) break;;
2954   esac
2955 done
2956 else
2957   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 as_fn_error "cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." "$LINENO" 5; }
2961 fi
2962 rm -f conftest$ac_cv_exeext
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2964 $as_echo "$ac_cv_exeext" >&6; }
2965
2966 rm -f conftest.$ac_ext
2967 EXEEXT=$ac_cv_exeext
2968 ac_exeext=$EXEEXT
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2970 $as_echo_n "checking for suffix of object files... " >&6; }
2971 if test "${ac_cv_objext+set}" = set; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.o conftest.obj
2986 if { { ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992 $as_echo "$ac_try_echo"; } >&5
2993   (eval "$ac_compile") 2>&5
2994   ac_status=$?
2995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996   test $ac_status = 0; }; then :
2997   for ac_file in conftest.o conftest.obj conftest.*; do
2998   test -f "$ac_file" || continue;
2999   case $ac_file in
3000     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3001     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002        break;;
3003   esac
3004 done
3005 else
3006   $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 as_fn_error "cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." "$LINENO" 5; }
3013 fi
3014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3017 $as_echo "$ac_cv_objext" >&6; }
3018 OBJEXT=$ac_cv_objext
3019 ac_objext=$OBJEXT
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3021 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3022 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h.  */
3027
3028 int
3029 main ()
3030 {
3031 #ifndef __GNUC__
3032        choke me
3033 #endif
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 if ac_fn_c_try_compile "$LINENO"; then :
3040   ac_compiler_gnu=yes
3041 else
3042   ac_compiler_gnu=no
3043 fi
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3049 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3050 if test $ac_compiler_gnu = yes; then
3051   GCC=yes
3052 else
3053   GCC=
3054 fi
3055 ac_test_CFLAGS=${CFLAGS+set}
3056 ac_save_CFLAGS=$CFLAGS
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3058 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3059 if test "${ac_cv_prog_cc_g+set}" = set; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   ac_save_c_werror_flag=$ac_c_werror_flag
3063    ac_c_werror_flag=yes
3064    ac_cv_prog_cc_g=no
3065    CFLAGS="-g"
3066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 if ac_fn_c_try_compile "$LINENO"; then :
3078   ac_cv_prog_cc_g=yes
3079 else
3080   CFLAGS=""
3081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 if ac_fn_c_try_compile "$LINENO"; then :
3093
3094 else
3095   ac_c_werror_flag=$ac_save_c_werror_flag
3096          CFLAGS="-g"
3097          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"; then :
3109   ac_cv_prog_cc_g=yes
3110 fi
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 fi
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 fi
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116    ac_c_werror_flag=$ac_save_c_werror_flag
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3119 $as_echo "$ac_cv_prog_cc_g" >&6; }
3120 if test "$ac_test_CFLAGS" = set; then
3121   CFLAGS=$ac_save_CFLAGS
3122 elif test $ac_cv_prog_cc_g = yes; then
3123   if test "$GCC" = yes; then
3124     CFLAGS="-g -O2"
3125   else
3126     CFLAGS="-g"
3127   fi
3128 else
3129   if test "$GCC" = yes; then
3130     CFLAGS="-O2"
3131   else
3132     CFLAGS=
3133   fi
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3136 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3137 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   ac_cv_prog_cc_c89=no
3141 ac_save_CC=$CC
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h.  */
3144 #include <stdarg.h>
3145 #include <stdio.h>
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3152      char **p;
3153      int i;
3154 {
3155   return p[i];
3156 }
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3158 {
3159   char *s;
3160   va_list v;
3161   va_start (v,p);
3162   s = g (p, va_arg (v,int));
3163   va_end (v);
3164   return s;
3165 }
3166
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3168    function prototypes and stuff, but not '\xHH' hex character constants.
3169    These don't provoke an error unfortunately, instead are silently treated
3170    as 'x'.  The following induces an error, until -std is added to get
3171    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3172    array size at least.  It's necessary to write '\x00'==0 to get something
3173    that's true only with -std.  */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177    inside strings and character constants.  */
3178 #define FOO(x) 'x'
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185 int argc;
3186 char **argv;
3187 int
3188 main ()
3189 {
3190 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3197 do
3198   CC="$ac_save_CC $ac_arg"
3199   if ac_fn_c_try_compile "$LINENO"; then :
3200   ac_cv_prog_cc_c89=$ac_arg
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext
3203   test "x$ac_cv_prog_cc_c89" != "xno" && break
3204 done
3205 rm -f conftest.$ac_ext
3206 CC=$ac_save_CC
3207
3208 fi
3209 # AC_CACHE_VAL
3210 case "x$ac_cv_prog_cc_c89" in
3211   x)
3212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3213 $as_echo "none needed" >&6; } ;;
3214   xno)
3215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3216 $as_echo "unsupported" >&6; } ;;
3217   *)
3218     CC="$CC $ac_cv_prog_cc_c89"
3219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3220 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3221 esac
3222 if test "x$ac_cv_prog_cc_c89" != xno; then :
3223
3224 fi
3225
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3234 $as_echo_n "checking for library containing strerror... " >&6; }
3235 if test "${ac_cv_search_strerror+set}" = set; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   ac_func_search_save_LIBS=$LIBS
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h.  */
3241
3242 /* Override any GCC internal prototype to avoid an error.
3243    Use char because int might match the return type of a GCC
3244    builtin and then its argument prototype would still apply.  */
3245 #ifdef __cplusplus
3246 extern "C"
3247 #endif
3248 char strerror ();
3249 int
3250 main ()
3251 {
3252 return strerror ();
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 for ac_lib in '' cposix; do
3258   if test -z "$ac_lib"; then
3259     ac_res="none required"
3260   else
3261     ac_res=-l$ac_lib
3262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3263   fi
3264   if ac_fn_c_try_link "$LINENO"; then :
3265   ac_cv_search_strerror=$ac_res
3266 fi
3267 rm -f core conftest.err conftest.$ac_objext \
3268     conftest$ac_exeext
3269   if test "${ac_cv_search_strerror+set}" = set; then :
3270   break
3271 fi
3272 done
3273 if test "${ac_cv_search_strerror+set}" = set; then :
3274
3275 else
3276   ac_cv_search_strerror=no
3277 fi
3278 rm conftest.$ac_ext
3279 LIBS=$ac_func_search_save_LIBS
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3282 $as_echo "$ac_cv_search_strerror" >&6; }
3283 ac_res=$ac_cv_search_strerror
3284 if test "$ac_res" != no; then :
3285   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3286
3287 fi
3288
3289
3290 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3291 am__api_version='1.11'
3292
3293 # Find a good install program.  We prefer a C program (faster),
3294 # so one script is as good as another.  But avoid the broken or
3295 # incompatible versions:
3296 # SysV /etc/install, /usr/sbin/install
3297 # SunOS /usr/etc/install
3298 # IRIX /sbin/install
3299 # AIX /bin/install
3300 # AmigaOS /C/install, which installs bootblocks on floppy discs
3301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3304 # OS/2's system install, which has a completely different semantic
3305 # ./install, which can be erroneously created by make from ./install.sh.
3306 # Reject install programs that cannot install multiple files.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3308 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3309 if test -z "$INSTALL"; then
3310 if test "${ac_cv_path_install+set}" = set; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     # Account for people who put trailing slashes in PATH elements.
3319 case $as_dir/ in #((
3320   ./ | .// | /[cC]/* | \
3321   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3322   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3323   /usr/ucb/* ) ;;
3324   *)
3325     # OSF1 and SCO ODT 3.0 have their own names for install.
3326     # Don't use installbsd from OSF since it installs stuff as root
3327     # by default.
3328     for ac_prog in ginstall scoinst install; do
3329       for ac_exec_ext in '' $ac_executable_extensions; do
3330         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3331           if test $ac_prog = install &&
3332             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333             # AIX install.  It has an incompatible calling convention.
3334             :
3335           elif test $ac_prog = install &&
3336             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337             # program-specific install script used by HP pwplus--don't use.
3338             :
3339           else
3340             rm -rf conftest.one conftest.two conftest.dir
3341             echo one > conftest.one
3342             echo two > conftest.two
3343             mkdir conftest.dir
3344             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3345               test -s conftest.one && test -s conftest.two &&
3346               test -s conftest.dir/conftest.one &&
3347               test -s conftest.dir/conftest.two
3348             then
3349               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3350               break 3
3351             fi
3352           fi
3353         fi
3354       done
3355     done
3356     ;;
3357 esac
3358
3359   done
3360 IFS=$as_save_IFS
3361
3362 rm -rf conftest.one conftest.two conftest.dir
3363
3364 fi
3365   if test "${ac_cv_path_install+set}" = set; then
3366     INSTALL=$ac_cv_path_install
3367   else
3368     # As a last resort, use the slow shell script.  Don't cache a
3369     # value for INSTALL within a source directory, because that will
3370     # break other packages using the cache if that directory is
3371     # removed, or if the value is a relative name.
3372     INSTALL=$ac_install_sh
3373   fi
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3376 $as_echo "$INSTALL" >&6; }
3377
3378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3379 # It thinks the first close brace ends the variable substitution.
3380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3381
3382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3383
3384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3387 $as_echo_n "checking whether build environment is sane... " >&6; }
3388 # Just in case
3389 sleep 1
3390 echo timestamp > conftest.file
3391 # Reject unsafe characters in $srcdir or the absolute working directory
3392 # name.  Accept space and tab only in the latter.
3393 am_lf='
3394 '
3395 case `pwd` in
3396   *[\\\"\#\$\&\'\`$am_lf]*)
3397     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3398 esac
3399 case $srcdir in
3400   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3401     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3402 esac
3403
3404 # Do `set' in a subshell so we don't clobber the current shell's
3405 # arguments.  Must try -L first in case configure is actually a
3406 # symlink; some systems play weird games with the mod time of symlinks
3407 # (eg FreeBSD returns the mod time of the symlink's containing
3408 # directory).
3409 if (
3410    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3411    if test "$*" = "X"; then
3412       # -L didn't work.
3413       set X `ls -t "$srcdir/configure" conftest.file`
3414    fi
3415    rm -f conftest.file
3416    if test "$*" != "X $srcdir/configure conftest.file" \
3417       && test "$*" != "X conftest.file $srcdir/configure"; then
3418
3419       # If neither matched, then we have a broken ls.  This can happen
3420       # if, for instance, CONFIG_SHELL is bash and it inherits a
3421       # broken ls alias from the environment.  This has actually
3422       # happened.  Such a system could not be considered "sane".
3423       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3424 alias in your environment" "$LINENO" 5
3425    fi
3426
3427    test "$2" = conftest.file
3428    )
3429 then
3430    # Ok.
3431    :
3432 else
3433    as_fn_error "newly created file is older than distributed files!
3434 Check your system clock" "$LINENO" 5
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3437 $as_echo "yes" >&6; }
3438 test "$program_prefix" != NONE &&
3439   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3440 # Use a double $ so make ignores it.
3441 test "$program_suffix" != NONE &&
3442   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3443 # Double any \ or $.
3444 # By default was `s,x,x', remove it if useless.
3445 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3446 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3447
3448 # expand $ac_aux_dir to an absolute path
3449 am_aux_dir=`cd $ac_aux_dir && pwd`
3450
3451 if test x"${MISSING+set}" != xset; then
3452   case $am_aux_dir in
3453   *\ * | *\     *)
3454     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3455   *)
3456     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3457   esac
3458 fi
3459 # Use eval to expand $SHELL
3460 if eval "$MISSING --run true"; then
3461   am_missing_run="$MISSING --run "
3462 else
3463   am_missing_run=
3464   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3465 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3466 fi
3467
3468 if test x"${install_sh}" != xset; then
3469   case $am_aux_dir in
3470   *\ * | *\     *)
3471     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3472   *)
3473     install_sh="\${SHELL} $am_aux_dir/install-sh"
3474   esac
3475 fi
3476
3477 # Installed binaries are usually stripped using `strip' when the user
3478 # run `make install-strip'.  However `strip' might not be the right
3479 # tool to use in cross-compilation environments, therefore Automake
3480 # will honor the `STRIP' environment variable to overrule this program.
3481 if test "$cross_compiling" != no; then
3482   if test -n "$ac_tool_prefix"; then
3483   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}strip; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_STRIP+set}" = set; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   if test -n "$STRIP"; then
3491   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 STRIP=$ac_cv_prog_STRIP
3511 if test -n "$STRIP"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3513 $as_echo "$STRIP" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520 fi
3521 if test -z "$ac_cv_prog_STRIP"; then
3522   ac_ct_STRIP=$STRIP
3523   # Extract the first word of "strip", so it can be a program name with args.
3524 set dummy strip; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$ac_ct_STRIP"; then
3531   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_ac_ct_STRIP="strip"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3551 if test -n "$ac_ct_STRIP"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3553 $as_echo "$ac_ct_STRIP" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559   if test "x$ac_ct_STRIP" = x; then
3560     STRIP=":"
3561   else
3562     case $cross_compiling:$ac_tool_warned in
3563 yes:)
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3567 esac
3568     STRIP=$ac_ct_STRIP
3569   fi
3570 else
3571   STRIP="$ac_cv_prog_STRIP"
3572 fi
3573
3574 fi
3575 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3578 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3579 if test -z "$MKDIR_P"; then
3580   if test "${ac_cv_path_mkdir+set}" = set; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3585 do
3586   IFS=$as_save_IFS
3587   test -z "$as_dir" && as_dir=.
3588     for ac_prog in mkdir gmkdir; do
3589          for ac_exec_ext in '' $ac_executable_extensions; do
3590            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3591            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3592              'mkdir (GNU coreutils) '* | \
3593              'mkdir (coreutils) '* | \
3594              'mkdir (fileutils) '4.1*)
3595                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3596                break 3;;
3597            esac
3598          done
3599        done
3600   done
3601 IFS=$as_save_IFS
3602
3603 fi
3604
3605   if test "${ac_cv_path_mkdir+set}" = set; then
3606     MKDIR_P="$ac_cv_path_mkdir -p"
3607   else
3608     # As a last resort, use the slow shell script.  Don't cache a
3609     # value for MKDIR_P within a source directory, because that will
3610     # break other packages using the cache if that directory is
3611     # removed, or if the value is a relative name.
3612     test -d ./--version && rmdir ./--version
3613     MKDIR_P="$ac_install_sh -d"
3614   fi
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3617 $as_echo "$MKDIR_P" >&6; }
3618
3619 mkdir_p="$MKDIR_P"
3620 case $mkdir_p in
3621   [\\/$]* | ?:[\\/]*) ;;
3622   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3623 esac
3624
3625 for ac_prog in gawk mawk nawk awk
3626 do
3627   # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_AWK+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$AWK"; then
3635   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642     for ac_exec_ext in '' $ac_executable_extensions; do
3643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644     ac_cv_prog_AWK="$ac_prog"
3645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649   done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 AWK=$ac_cv_prog_AWK
3655 if test -n "$AWK"; then
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3657 $as_echo "$AWK" >&6; }
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664   test -n "$AWK" && break
3665 done
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3668 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3669 set x ${MAKE-make}
3670 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3671 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   cat >conftest.make <<\_ACEOF
3675 SHELL = /bin/sh
3676 all:
3677         @echo '@@@%%%=$(MAKE)=@@@%%%'
3678 _ACEOF
3679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3680 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3681   *@@@%%%=?*=@@@%%%*)
3682     eval ac_cv_prog_make_${ac_make}_set=yes;;
3683   *)
3684     eval ac_cv_prog_make_${ac_make}_set=no;;
3685 esac
3686 rm -f conftest.make
3687 fi
3688 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 $as_echo "yes" >&6; }
3691   SET_MAKE=
3692 else
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695   SET_MAKE="MAKE=${MAKE-make}"
3696 fi
3697
3698 rm -rf .tst 2>/dev/null
3699 mkdir .tst 2>/dev/null
3700 if test -d .tst; then
3701   am__leading_dot=.
3702 else
3703   am__leading_dot=_
3704 fi
3705 rmdir .tst 2>/dev/null
3706
3707 DEPDIR="${am__leading_dot}deps"
3708
3709 ac_config_commands="$ac_config_commands depfiles"
3710
3711
3712 am_make=${MAKE-make}
3713 cat > confinc << 'END'
3714 am__doit:
3715         @echo this is the am__doit target
3716 .PHONY: am__doit
3717 END
3718 # If we don't find an include directive, just comment out the code.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3721 am__include="#"
3722 am__quote=
3723 _am_result=none
3724 # First try GNU make style include.
3725 echo "include confinc" > confmf
3726 # Ignore all kinds of additional output from `make'.
3727 case `$am_make -s -f confmf 2> /dev/null` in #(
3728 *the\ am__doit\ target*)
3729   am__include=include
3730   am__quote=
3731   _am_result=GNU
3732   ;;
3733 esac
3734 # Now try BSD make style include.
3735 if test "$am__include" = "#"; then
3736    echo '.include "confinc"' > confmf
3737    case `$am_make -s -f confmf 2> /dev/null` in #(
3738    *the\ am__doit\ target*)
3739      am__include=.include
3740      am__quote="\""
3741      _am_result=BSD
3742      ;;
3743    esac
3744 fi
3745
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748 $as_echo "$_am_result" >&6; }
3749 rm -f confinc confmf
3750
3751 # Check whether --enable-dependency-tracking was given.
3752 if test "${enable_dependency_tracking+set}" = set; then :
3753   enableval=$enable_dependency_tracking;
3754 fi
3755
3756 if test "x$enable_dependency_tracking" != xno; then
3757   am_depcomp="$ac_aux_dir/depcomp"
3758   AMDEPBACKSLASH='\'
3759 fi
3760  if test "x$enable_dependency_tracking" != xno; then
3761   AMDEP_TRUE=
3762   AMDEP_FALSE='#'
3763 else
3764   AMDEP_TRUE='#'
3765   AMDEP_FALSE=
3766 fi
3767
3768
3769 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3770   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3771   # is not polluted with repeated "-I."
3772   am__isrc=' -I$(srcdir)'
3773   # test to see if srcdir already configured
3774   if test -f $srcdir/config.status; then
3775     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3776   fi
3777 fi
3778
3779 # test whether we have cygpath
3780 if test -z "$CYGPATH_W"; then
3781   if (cygpath --version) >/dev/null 2>/dev/null; then
3782     CYGPATH_W='cygpath -w'
3783   else
3784     CYGPATH_W=echo
3785   fi
3786 fi
3787
3788
3789 # Define the identity of the package.
3790  PACKAGE=gprof
3791  VERSION=${BFD_VERSION}
3792
3793
3794 cat >>confdefs.h <<_ACEOF
3795 #define PACKAGE "$PACKAGE"
3796 _ACEOF
3797
3798
3799 cat >>confdefs.h <<_ACEOF
3800 #define VERSION "$VERSION"
3801 _ACEOF
3802
3803 # Some tools Automake needs.
3804
3805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3806
3807
3808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3809
3810
3811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3812
3813
3814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3815
3816
3817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3818
3819 # We need awk for the "check" target.  The system "awk" is bad on
3820 # some platforms.
3821 # Always define AMTAR for backward compatibility.
3822
3823 AMTAR=${AMTAR-"${am_missing_run}tar"}
3824
3825 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3826
3827
3828
3829
3830 depcc="$CC"   am_compiler_list=
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3833 $as_echo_n "checking dependency style of $depcc... " >&6; }
3834 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3838   # We make a subdir and do the tests there.  Otherwise we can end up
3839   # making bogus files that we don't know about and never remove.  For
3840   # instance it was reported that on HP-UX the gcc test will end up
3841   # making a dummy file named `D' -- because `-MD' means `put the output
3842   # in D'.
3843   mkdir conftest.dir
3844   # Copy depcomp to subdir because otherwise we won't find it if we're
3845   # using a relative directory.
3846   cp "$am_depcomp" conftest.dir
3847   cd conftest.dir
3848   # We will build objects and dependencies in a subdirectory because
3849   # it helps to detect inapplicable dependency modes.  For instance
3850   # both Tru64's cc and ICC support -MD to output dependencies as a
3851   # side effect of compilation, but ICC will put the dependencies in
3852   # the current directory while Tru64 will put them in the object
3853   # directory.
3854   mkdir sub
3855
3856   am_cv_CC_dependencies_compiler_type=none
3857   if test "$am_compiler_list" = ""; then
3858      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859   fi
3860   am__universal=false
3861   case " $depcc " in #(
3862      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863      esac
3864
3865   for depmode in $am_compiler_list; do
3866     # Setup a source with many dependencies, because some compilers
3867     # like to wrap large dependency lists on column 80 (with \), and
3868     # we should not choose a depcomp mode which is confused by this.
3869     #
3870     # We need to recreate these files for each test, as the compiler may
3871     # overwrite some of them when testing with obscure command lines.
3872     # This happens at least with the AIX C compiler.
3873     : > sub/conftest.c
3874     for i in 1 2 3 4 5 6; do
3875       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3877       # Solaris 8's {/usr,}/bin/sh.
3878       touch sub/conftst$i.h
3879     done
3880     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3883     # mode.  It turns out that the SunPro C++ compiler does not properly
3884     # handle `-M -o', and we need to detect this.  Also, some Intel
3885     # versions had trouble with output in subdirs
3886     am__obj=sub/conftest.${OBJEXT-o}
3887     am__minus_obj="-o $am__obj"
3888     case $depmode in
3889     gcc)
3890       # This depmode causes a compiler race in universal mode.
3891       test "$am__universal" = false || continue
3892       ;;
3893     nosideeffect)
3894       # after this tag, mechanisms are not by side-effect, so they'll
3895       # only be used when explicitly requested
3896       if test "x$enable_dependency_tracking" = xyes; then
3897         continue
3898       else
3899         break
3900       fi
3901       ;;
3902     msvisualcpp | msvcmsys)
3903       # This compiler won't grok `-c -o', but also, the minuso test has
3904       # not run yet.  These depmodes are late enough in the game, and
3905       # so weak that their functioning should not be impacted.
3906       am__obj=conftest.${OBJEXT-o}
3907       am__minus_obj=
3908       ;;
3909     none) break ;;
3910     esac
3911     if depmode=$depmode \
3912        source=sub/conftest.c object=$am__obj \
3913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915          >/dev/null 2>conftest.err &&
3916        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920       # icc doesn't choke on unknown options, it will just issue warnings
3921       # or remarks (even with -Werror).  So we grep stderr for any message
3922       # that says an option was ignored or not supported.
3923       # When given -MP, icc 7.0 and 7.1 complain thusly:
3924       #   icc: Command line warning: ignoring option '-M'; no argument required
3925       # The diagnosis changed in icc 8.0:
3926       #   icc: Command line remark: option '-MP' not supported
3927       if (grep 'ignoring option' conftest.err ||
3928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929         am_cv_CC_dependencies_compiler_type=$depmode
3930         break
3931       fi
3932     fi
3933   done
3934
3935   cd ..
3936   rm -rf conftest.dir
3937 else
3938   am_cv_CC_dependencies_compiler_type=none
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
3946  if
3947   test "x$enable_dependency_tracking" != xno \
3948   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949   am__fastdepCC_TRUE=
3950   am__fastdepCC_FALSE='#'
3951 else
3952   am__fastdepCC_TRUE='#'
3953   am__fastdepCC_FALSE=
3954 fi
3955
3956
3957
3958
3959 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3960
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 if test -n "$ac_tool_prefix"; then
3968   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if test "${ac_cv_prog_CC+set}" = set; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if test -n "$CC"; then
3976   ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983     for ac_exec_ext in '' $ac_executable_extensions; do
3984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990   done
3991 IFS=$as_save_IFS
3992
3993 fi
3994 fi
3995 CC=$ac_cv_prog_CC
3996 if test -n "$CC"; then
3997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 $as_echo "$CC" >&6; }
3999 else
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 fi
4003
4004
4005 fi
4006 if test -z "$ac_cv_prog_CC"; then
4007   ac_ct_CC=$CC
4008   # Extract the first word of "gcc", so it can be a program name with args.
4009 set dummy gcc; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   if test -n "$ac_ct_CC"; then
4016   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023     for ac_exec_ext in '' $ac_executable_extensions; do
4024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025     ac_cv_prog_ac_ct_CC="gcc"
4026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027     break 2
4028   fi
4029 done
4030   done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036 if test -n "$ac_ct_CC"; then
4037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038 $as_echo "$ac_ct_CC" >&6; }
4039 else
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044   if test "x$ac_ct_CC" = x; then
4045     CC=""
4046   else
4047     case $cross_compiling:$ac_tool_warned in
4048 yes:)
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4051 ac_tool_warned=yes ;;
4052 esac
4053     CC=$ac_ct_CC
4054   fi
4055 else
4056   CC="$ac_cv_prog_CC"
4057 fi
4058
4059 if test -z "$CC"; then
4060           if test -n "$ac_tool_prefix"; then
4061     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4062 set dummy ${ac_tool_prefix}cc; ac_word=$2
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 $as_echo_n "checking for $ac_word... " >&6; }
4065 if test "${ac_cv_prog_CC+set}" = set; then :
4066   $as_echo_n "(cached) " >&6
4067 else
4068   if test -n "$CC"; then
4069   ac_cv_prog_CC="$CC" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076     for ac_exec_ext in '' $ac_executable_extensions; do
4077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078     ac_cv_prog_CC="${ac_tool_prefix}cc"
4079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080     break 2
4081   fi
4082 done
4083   done
4084 IFS=$as_save_IFS
4085
4086 fi
4087 fi
4088 CC=$ac_cv_prog_CC
4089 if test -n "$CC"; then
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091 $as_echo "$CC" >&6; }
4092 else
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097
4098   fi
4099 fi
4100 if test -z "$CC"; then
4101   # Extract the first word of "cc", so it can be a program name with args.
4102 set dummy cc; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if test "${ac_cv_prog_CC+set}" = set; then :
4106   $as_echo_n "(cached) " >&6
4107 else
4108   if test -n "$CC"; then
4109   ac_cv_prog_CC="$CC" # Let the user override the test.
4110 else
4111   ac_prog_rejected=no
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115   IFS=$as_save_IFS
4116   test -z "$as_dir" && as_dir=.
4117     for ac_exec_ext in '' $ac_executable_extensions; do
4118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4120        ac_prog_rejected=yes
4121        continue
4122      fi
4123     ac_cv_prog_CC="cc"
4124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128   done
4129 IFS=$as_save_IFS
4130
4131 if test $ac_prog_rejected = yes; then
4132   # We found a bogon in the path, so make sure we never use it.
4133   set dummy $ac_cv_prog_CC
4134   shift
4135   if test $# != 0; then
4136     # We chose a different compiler from the bogus one.
4137     # However, it has the same basename, so the bogon will be chosen
4138     # first if we set CC to just the basename; use the full file name.
4139     shift
4140     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141   fi
4142 fi
4143 fi
4144 fi
4145 CC=$ac_cv_prog_CC
4146 if test -n "$CC"; then
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148 $as_echo "$CC" >&6; }
4149 else
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154
4155 fi
4156 if test -z "$CC"; then
4157   if test -n "$ac_tool_prefix"; then
4158   for ac_prog in cl.exe
4159   do
4160     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_CC+set}" = set; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   if test -n "$CC"; then
4168   ac_cv_prog_CC="$CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182   done
4183 IFS=$as_save_IFS
4184
4185 fi
4186 fi
4187 CC=$ac_cv_prog_CC
4188 if test -n "$CC"; then
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190 $as_echo "$CC" >&6; }
4191 else
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4194 fi
4195
4196
4197     test -n "$CC" && break
4198   done
4199 fi
4200 if test -z "$CC"; then
4201   ac_ct_CC=$CC
4202   for ac_prog in cl.exe
4203 do
4204   # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy $ac_prog; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4209   $as_echo_n "(cached) " >&6
4210 else
4211   if test -n "$ac_ct_CC"; then
4212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219     for ac_exec_ext in '' $ac_executable_extensions; do
4220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221     ac_cv_prog_ac_ct_CC="$ac_prog"
4222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226   done
4227 IFS=$as_save_IFS
4228
4229 fi
4230 fi
4231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232 if test -n "$ac_ct_CC"; then
4233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234 $as_echo "$ac_ct_CC" >&6; }
4235 else
4236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4238 fi
4239
4240
4241   test -n "$ac_ct_CC" && break
4242 done
4243
4244   if test "x$ac_ct_CC" = x; then
4245     CC=""
4246   else
4247     case $cross_compiling:$ac_tool_warned in
4248 yes:)
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251 ac_tool_warned=yes ;;
4252 esac
4253     CC=$ac_ct_CC
4254   fi
4255 fi
4256
4257 fi
4258
4259
4260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error "no acceptable C compiler found in \$PATH
4263 See \`config.log' for more details." "$LINENO" 5; }
4264
4265 # Provide some information about the compiler.
4266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267 set X $ac_compile
4268 ac_compiler=$2
4269 for ac_option in --version -v -V -qversion; do
4270   { { ac_try="$ac_compiler $ac_option >&5"
4271 case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 $as_echo "$ac_try_echo"; } >&5
4277   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4278   ac_status=$?
4279   if test -s conftest.err; then
4280     sed '10a\
4281 ... rest of stderr output deleted ...
4282          10q' conftest.err >conftest.er1
4283     cat conftest.er1 >&5
4284     rm -f conftest.er1 conftest.err
4285   fi
4286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287   test $ac_status = 0; }
4288 done
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297
4298 int
4299 main ()
4300 {
4301 #ifndef __GNUC__
4302        choke me
4303 #endif
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310   ac_compiler_gnu=yes
4311 else
4312   ac_compiler_gnu=no
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4321   GCC=yes
4322 else
4323   GCC=
4324 fi
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if test "${ac_cv_prog_cc_g+set}" = set; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   ac_save_c_werror_flag=$ac_c_werror_flag
4333    ac_c_werror_flag=yes
4334    ac_cv_prog_cc_g=no
4335    CFLAGS="-g"
4336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h.  */
4338
4339 int
4340 main ()
4341 {
4342
4343   ;
4344   return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348   ac_cv_prog_cc_g=yes
4349 else
4350   CFLAGS=""
4351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353
4354 int
4355 main ()
4356 {
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363
4364 else
4365   ac_c_werror_flag=$ac_save_c_werror_flag
4366          CFLAGS="-g"
4367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h.  */
4369
4370 int
4371 main ()
4372 {
4373
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379   ac_cv_prog_cc_g=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386    ac_c_werror_flag=$ac_save_c_werror_flag
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391   CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393   if test "$GCC" = yes; then
4394     CFLAGS="-g -O2"
4395   else
4396     CFLAGS="-g"
4397   fi
4398 else
4399   if test "$GCC" = yes; then
4400     CFLAGS="-O2"
4401   else
4402     CFLAGS=
4403   fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408   $as_echo_n "(cached) " >&6
4409 else
4410   ac_cv_prog_cc_c89=no
4411 ac_save_CC=$CC
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #include <stdarg.h>
4415 #include <stdio.h>
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4422      char **p;
4423      int i;
4424 {
4425   return p[i];
4426 }
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4428 {
4429   char *s;
4430   va_list v;
4431   va_start (v,p);
4432   s = g (p, va_arg (v,int));
4433   va_end (v);
4434   return s;
4435 }
4436
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4438    function prototypes and stuff, but not '\xHH' hex character constants.
4439    These don't provoke an error unfortunately, instead are silently treated
4440    as 'x'.  The following induces an error, until -std is added to get
4441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4442    array size at least.  It's necessary to write '\x00'==0 to get something
4443    that's true only with -std.  */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447    inside strings and character constants.  */
4448 #define FOO(x) 'x'
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 int argc;
4456 char **argv;
4457 int
4458 main ()
4459 {
4460 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467 do
4468   CC="$ac_save_CC $ac_arg"
4469   if ac_fn_c_try_compile "$LINENO"; then :
4470   ac_cv_prog_cc_c89=$ac_arg
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext
4473   test "x$ac_cv_prog_cc_c89" != "xno" && break
4474 done
4475 rm -f conftest.$ac_ext
4476 CC=$ac_save_CC
4477
4478 fi
4479 # AC_CACHE_VAL
4480 case "x$ac_cv_prog_cc_c89" in
4481   x)
4482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4484   xno)
4485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4487   *)
4488     CC="$CC $ac_cv_prog_cc_c89"
4489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491 esac
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493
4494 fi
4495
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4509 # On Suns, sometimes $CPP names a directory.
4510 if test -n "$CPP" && test -d "$CPP"; then
4511   CPP=
4512 fi
4513 if test -z "$CPP"; then
4514   if test "${ac_cv_prog_CPP+set}" = set; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517       # Double quotes because CPP needs to be expanded
4518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4519     do
4520       ac_preproc_ok=false
4521 for ac_c_preproc_warn_flag in '' yes
4522 do
4523   # Use a header file that comes with gcc, so configuring glibc
4524   # with a fresh cross-compiler works.
4525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526   # <limits.h> exists even on freestanding compilers.
4527   # On the NeXT, cc -E runs the code through the compiler's parser,
4528   # not just through cpp. "Syntax error" is here to catch this case.
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #ifdef __STDC__
4532 # include <limits.h>
4533 #else
4534 # include <assert.h>
4535 #endif
4536                      Syntax error
4537 _ACEOF
4538 if ac_fn_c_try_cpp "$LINENO"; then :
4539
4540 else
4541   # Broken: fails on valid input.
4542 continue
4543 fi
4544 rm -f conftest.err conftest.$ac_ext
4545
4546   # OK, works on sane cases.  Now check whether nonexistent headers
4547   # can be detected and how.
4548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550 #include <ac_nonexistent.h>
4551 _ACEOF
4552 if ac_fn_c_try_cpp "$LINENO"; then :
4553   # Broken: success on invalid input.
4554 continue
4555 else
4556   # Passes both tests.
4557 ac_preproc_ok=:
4558 break
4559 fi
4560 rm -f conftest.err conftest.$ac_ext
4561
4562 done
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then :
4566   break
4567 fi
4568
4569     done
4570     ac_cv_prog_CPP=$CPP
4571
4572 fi
4573   CPP=$ac_cv_prog_CPP
4574 else
4575   ac_cv_prog_CPP=$CPP
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4578 $as_echo "$CPP" >&6; }
4579 ac_preproc_ok=false
4580 for ac_c_preproc_warn_flag in '' yes
4581 do
4582   # Use a header file that comes with gcc, so configuring glibc
4583   # with a fresh cross-compiler works.
4584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585   # <limits.h> exists even on freestanding compilers.
4586   # On the NeXT, cc -E runs the code through the compiler's parser,
4587   # not just through cpp. "Syntax error" is here to catch this case.
4588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590 #ifdef __STDC__
4591 # include <limits.h>
4592 #else
4593 # include <assert.h>
4594 #endif
4595                      Syntax error
4596 _ACEOF
4597 if ac_fn_c_try_cpp "$LINENO"; then :
4598
4599 else
4600   # Broken: fails on valid input.
4601 continue
4602 fi
4603 rm -f conftest.err conftest.$ac_ext
4604
4605   # OK, works on sane cases.  Now check whether nonexistent headers
4606   # can be detected and how.
4607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 #include <ac_nonexistent.h>
4610 _ACEOF
4611 if ac_fn_c_try_cpp "$LINENO"; then :
4612   # Broken: success on invalid input.
4613 continue
4614 else
4615   # Passes both tests.
4616 ac_preproc_ok=:
4617 break
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620
4621 done
4622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623 rm -f conftest.err conftest.$ac_ext
4624 if $ac_preproc_ok; then :
4625
4626 else
4627   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4630 See \`config.log' for more details." "$LINENO" 5; }
4631 fi
4632
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4642 if test "${ac_cv_path_GREP+set}" = set; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   if test -z "$GREP"; then
4646   ac_path_GREP_found=false
4647   # Loop through the user's path and test for each of PROGNAME-LIST
4648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653     for ac_prog in grep ggrep; do
4654     for ac_exec_ext in '' $ac_executable_extensions; do
4655       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4656       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4657 # Check for GNU ac_path_GREP and select it if it is found.
4658   # Check for GNU $ac_path_GREP
4659 case `"$ac_path_GREP" --version 2>&1` in
4660 *GNU*)
4661   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4662 *)
4663   ac_count=0
4664   $as_echo_n 0123456789 >"conftest.in"
4665   while :
4666   do
4667     cat "conftest.in" "conftest.in" >"conftest.tmp"
4668     mv "conftest.tmp" "conftest.in"
4669     cp "conftest.in" "conftest.nl"
4670     $as_echo 'GREP' >> "conftest.nl"
4671     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673     as_fn_arith $ac_count + 1 && ac_count=$as_val
4674     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4675       # Best one so far, save it but keep looking for a better one
4676       ac_cv_path_GREP="$ac_path_GREP"
4677       ac_path_GREP_max=$ac_count
4678     fi
4679     # 10*(2^10) chars as input seems more than enough
4680     test $ac_count -gt 10 && break
4681   done
4682   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683 esac
4684
4685       $ac_path_GREP_found && break 3
4686     done
4687   done
4688   done
4689 IFS=$as_save_IFS
4690   if test -z "$ac_cv_path_GREP"; then
4691     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692   fi
4693 else
4694   ac_cv_path_GREP=$GREP
4695 fi
4696
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4699 $as_echo "$ac_cv_path_GREP" >&6; }
4700  GREP="$ac_cv_path_GREP"
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4704 $as_echo_n "checking for egrep... " >&6; }
4705 if test "${ac_cv_path_EGREP+set}" = set; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4709    then ac_cv_path_EGREP="$GREP -E"
4710    else
4711      if test -z "$EGREP"; then
4712   ac_path_EGREP_found=false
4713   # Loop through the user's path and test for each of PROGNAME-LIST
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719     for ac_prog in egrep; do
4720     for ac_exec_ext in '' $ac_executable_extensions; do
4721       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4722       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4723 # Check for GNU ac_path_EGREP and select it if it is found.
4724   # Check for GNU $ac_path_EGREP
4725 case `"$ac_path_EGREP" --version 2>&1` in
4726 *GNU*)
4727   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4728 *)
4729   ac_count=0
4730   $as_echo_n 0123456789 >"conftest.in"
4731   while :
4732   do
4733     cat "conftest.in" "conftest.in" >"conftest.tmp"
4734     mv "conftest.tmp" "conftest.in"
4735     cp "conftest.in" "conftest.nl"
4736     $as_echo 'EGREP' >> "conftest.nl"
4737     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4738     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4739     as_fn_arith $ac_count + 1 && ac_count=$as_val
4740     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4741       # Best one so far, save it but keep looking for a better one
4742       ac_cv_path_EGREP="$ac_path_EGREP"
4743       ac_path_EGREP_max=$ac_count
4744     fi
4745     # 10*(2^10) chars as input seems more than enough
4746     test $ac_count -gt 10 && break
4747   done
4748   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4749 esac
4750
4751       $ac_path_EGREP_found && break 3
4752     done
4753   done
4754   done
4755 IFS=$as_save_IFS
4756   if test -z "$ac_cv_path_EGREP"; then
4757     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4758   fi
4759 else
4760   ac_cv_path_EGREP=$EGREP
4761 fi
4762
4763    fi
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4766 $as_echo "$ac_cv_path_EGREP" >&6; }
4767  EGREP="$ac_cv_path_EGREP"
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4771 $as_echo_n "checking for ANSI C header files... " >&6; }
4772 if test "${ac_cv_header_stdc+set}" = set; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h.  */
4777 #include <stdlib.h>
4778 #include <stdarg.h>
4779 #include <string.h>
4780 #include <float.h>
4781
4782 int
4783 main ()
4784 {
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791   ac_cv_header_stdc=yes
4792 else
4793   ac_cv_header_stdc=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796
4797 if test $ac_cv_header_stdc = yes; then
4798   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801 #include <string.h>
4802
4803 _ACEOF
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805   $EGREP "memchr" >/dev/null 2>&1; then :
4806
4807 else
4808   ac_cv_header_stdc=no
4809 fi
4810 rm -f conftest*
4811
4812 fi
4813
4814 if test $ac_cv_header_stdc = yes; then
4815   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818 #include <stdlib.h>
4819
4820 _ACEOF
4821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4822   $EGREP "free" >/dev/null 2>&1; then :
4823
4824 else
4825   ac_cv_header_stdc=no
4826 fi
4827 rm -f conftest*
4828
4829 fi
4830
4831 if test $ac_cv_header_stdc = yes; then
4832   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4833   if test "$cross_compiling" = yes; then :
4834   :
4835 else
4836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838 #include <ctype.h>
4839 #include <stdlib.h>
4840 #if ((' ' & 0x0FF) == 0x020)
4841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4843 #else
4844 # define ISLOWER(c) \
4845                    (('a' <= (c) && (c) <= 'i') \
4846                      || ('j' <= (c) && (c) <= 'r') \
4847                      || ('s' <= (c) && (c) <= 'z'))
4848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4849 #endif
4850
4851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4852 int
4853 main ()
4854 {
4855   int i;
4856   for (i = 0; i < 256; i++)
4857     if (XOR (islower (i), ISLOWER (i))
4858         || toupper (i) != TOUPPER (i))
4859       return 2;
4860   return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_run "$LINENO"; then :
4864
4865 else
4866   ac_cv_header_stdc=no
4867 fi
4868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4869   conftest.$ac_objext conftest.beam conftest.$ac_ext
4870 fi
4871
4872 fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4875 $as_echo "$ac_cv_header_stdc" >&6; }
4876 if test $ac_cv_header_stdc = yes; then
4877
4878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4879
4880 fi
4881
4882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4884                   inttypes.h stdint.h unistd.h
4885 do :
4886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4888 "
4889 eval as_val=\$$as_ac_Header
4890    if test "x$as_val" = x""yes; then :
4891   cat >>confdefs.h <<_ACEOF
4892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893 _ACEOF
4894
4895 fi
4896
4897 done
4898
4899
4900
4901   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4902 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4903   MINIX=yes
4904 else
4905   MINIX=
4906 fi
4907
4908
4909   if test "$MINIX" = yes; then
4910
4911 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4912
4913
4914 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4915
4916
4917 $as_echo "#define _MINIX 1" >>confdefs.h
4918
4919   fi
4920
4921
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4923 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4924 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929
4930 #         define __EXTENSIONS__ 1
4931           $ac_includes_default
4932 int
4933 main ()
4934 {
4935
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941   ac_cv_safe_to_define___extensions__=yes
4942 else
4943   ac_cv_safe_to_define___extensions__=no
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4948 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4949   test $ac_cv_safe_to_define___extensions__ = yes &&
4950     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4951
4952   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4953
4954   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4955
4956   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4957
4958   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4959
4960
4961
4962
4963
4964 # The tests for host and target for $enable_largefile require
4965 # canonical names.
4966
4967
4968
4969 # As the $enable_largefile decision depends on --enable-plugins we must set it
4970 # even in directories otherwise not depending on the $plugins option.
4971
4972
4973 # Check whether --enable-plugins was given.
4974 if test "${enable_plugins+set}" = set; then :
4975   enableval=$enable_plugins; case "${enableval}" in
4976   yes | "") plugins=yes ;;
4977   no) plugins=no ;;
4978   *) plugins=yes ;;
4979  esac
4980 else
4981   plugins=no
4982 fi
4983
4984
4985
4986 case "${host}" in
4987   sparc-*-solaris*|i[3-7]86-*-solaris*)
4988     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4989     # are mutually exclusive; and without procfs support, the bfd/ elf module
4990     # cannot provide certain routines such as elfcore_write_prpsinfo
4991     # or elfcore_write_prstatus.  So unless the user explicitly requested
4992     # large-file support through the --enable-largefile switch, disable
4993     # large-file support in favor of procfs support.
4994     test "${target}" = "${host}" -a "x$plugins" = xno \
4995       && : ${enable_largefile="no"}
4996     ;;
4997 esac
4998
4999 # Check whether --enable-largefile was given.
5000 if test "${enable_largefile+set}" = set; then :
5001   enableval=$enable_largefile;
5002 fi
5003
5004 if test "$enable_largefile" != no; then
5005
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5007 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5008 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   ac_cv_sys_largefile_CC=no
5012      if test "$GCC" != yes; then
5013        ac_save_CC=$CC
5014        while :; do
5015          # IRIX 6.2 and later do not support large files by default,
5016          # so use the C compiler's -n32 option if that helps.
5017          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h.  */
5019 #include <sys/types.h>
5020  /* Check that off_t can represent 2**63 - 1 correctly.
5021     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022     since some C++ compilers masquerading as C compilers
5023     incorrectly reject 9223372036854775807.  */
5024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026                        && LARGE_OFF_T % 2147483647 == 1)
5027                       ? 1 : -1];
5028 int
5029 main ()
5030 {
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036          if ac_fn_c_try_compile "$LINENO"; then :
5037   break
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext
5040          CC="$CC -n32"
5041          if ac_fn_c_try_compile "$LINENO"; then :
5042   ac_cv_sys_largefile_CC=' -n32'; break
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext
5045          break
5046        done
5047        CC=$ac_save_CC
5048        rm -f conftest.$ac_ext
5049     fi
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5052 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5053   if test "$ac_cv_sys_largefile_CC" != no; then
5054     CC=$CC$ac_cv_sys_largefile_CC
5055   fi
5056
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5058 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5059 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   while :; do
5063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h.  */
5065 #include <sys/types.h>
5066  /* Check that off_t can represent 2**63 - 1 correctly.
5067     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5068     since some C++ compilers masquerading as C compilers
5069     incorrectly reject 9223372036854775807.  */
5070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5071   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5072                        && LARGE_OFF_T % 2147483647 == 1)
5073                       ? 1 : -1];
5074 int
5075 main ()
5076 {
5077
5078   ;
5079   return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_c_try_compile "$LINENO"; then :
5083   ac_cv_sys_file_offset_bits=no; break
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088 #define _FILE_OFFSET_BITS 64
5089 #include <sys/types.h>
5090  /* Check that off_t can represent 2**63 - 1 correctly.
5091     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5092     since some C++ compilers masquerading as C compilers
5093     incorrectly reject 9223372036854775807.  */
5094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5095   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5096                        && LARGE_OFF_T % 2147483647 == 1)
5097                       ? 1 : -1];
5098 int
5099 main ()
5100 {
5101
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 if ac_fn_c_try_compile "$LINENO"; then :
5107   ac_cv_sys_file_offset_bits=64; break
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110   ac_cv_sys_file_offset_bits=unknown
5111   break
5112 done
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5115 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5116 case $ac_cv_sys_file_offset_bits in #(
5117   no | unknown) ;;
5118   *)
5119 cat >>confdefs.h <<_ACEOF
5120 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5121 _ACEOF
5122 ;;
5123 esac
5124 rm -rf conftest*
5125   if test $ac_cv_sys_file_offset_bits = unknown; then
5126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5127 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5128 if test "${ac_cv_sys_large_files+set}" = set; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   while :; do
5132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h.  */
5134 #include <sys/types.h>
5135  /* Check that off_t can represent 2**63 - 1 correctly.
5136     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5137     since some C++ compilers masquerading as C compilers
5138     incorrectly reject 9223372036854775807.  */
5139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5140   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5141                        && LARGE_OFF_T % 2147483647 == 1)
5142                       ? 1 : -1];
5143 int
5144 main ()
5145 {
5146
5147   ;
5148   return 0;
5149 }
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"; then :
5152   ac_cv_sys_large_files=no; break
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #define _LARGE_FILES 1
5158 #include <sys/types.h>
5159  /* Check that off_t can represent 2**63 - 1 correctly.
5160     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5161     since some C++ compilers masquerading as C compilers
5162     incorrectly reject 9223372036854775807.  */
5163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5164   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5165                        && LARGE_OFF_T % 2147483647 == 1)
5166                       ? 1 : -1];
5167 int
5168 main ()
5169 {
5170
5171   ;
5172   return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"; then :
5176   ac_cv_sys_large_files=1; break
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179   ac_cv_sys_large_files=unknown
5180   break
5181 done
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5184 $as_echo "$ac_cv_sys_large_files" >&6; }
5185 case $ac_cv_sys_large_files in #(
5186   no | unknown) ;;
5187   *)
5188 cat >>confdefs.h <<_ACEOF
5189 #define _LARGE_FILES $ac_cv_sys_large_files
5190 _ACEOF
5191 ;;
5192 esac
5193 rm -rf conftest*
5194   fi
5195 fi
5196
5197
5198
5199
5200 case `pwd` in
5201   *\ * | *\     *)
5202     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5203 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5204 esac
5205
5206
5207
5208 macro_version='2.2.6'
5209 macro_revision='1.3012'
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223 ltmain="$ac_aux_dir/ltmain.sh"
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5226 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5227 if test "${ac_cv_path_SED+set}" = set; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5231      for ac_i in 1 2 3 4 5 6 7; do
5232        ac_script="$ac_script$as_nl$ac_script"
5233      done
5234      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5235      { ac_script=; unset ac_script;}
5236      if test -z "$SED"; then
5237   ac_path_SED_found=false
5238   # Loop through the user's path and test for each of PROGNAME-LIST
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_prog in sed gsed; do
5245     for ac_exec_ext in '' $ac_executable_extensions; do
5246       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5247       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5248 # Check for GNU ac_path_SED and select it if it is found.
5249   # Check for GNU $ac_path_SED
5250 case `"$ac_path_SED" --version 2>&1` in
5251 *GNU*)
5252   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5253 *)
5254   ac_count=0
5255   $as_echo_n 0123456789 >"conftest.in"
5256   while :
5257   do
5258     cat "conftest.in" "conftest.in" >"conftest.tmp"
5259     mv "conftest.tmp" "conftest.in"
5260     cp "conftest.in" "conftest.nl"
5261     $as_echo '' >> "conftest.nl"
5262     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264     as_fn_arith $ac_count + 1 && ac_count=$as_val
5265     if test $ac_count -gt ${ac_path_SED_max-0}; then
5266       # Best one so far, save it but keep looking for a better one
5267       ac_cv_path_SED="$ac_path_SED"
5268       ac_path_SED_max=$ac_count
5269     fi
5270     # 10*(2^10) chars as input seems more than enough
5271     test $ac_count -gt 10 && break
5272   done
5273   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5275
5276       $ac_path_SED_found && break 3
5277     done
5278   done
5279   done
5280 IFS=$as_save_IFS
5281   if test -z "$ac_cv_path_SED"; then
5282     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5283   fi
5284 else
5285   ac_cv_path_SED=$SED
5286 fi
5287
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5290 $as_echo "$ac_cv_path_SED" >&6; }
5291  SED="$ac_cv_path_SED"
5292   rm -f conftest.sed
5293
5294 test -z "$SED" && SED=sed
5295 Xsed="$SED -e 1s/^X//"
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5308 $as_echo_n "checking for fgrep... " >&6; }
5309 if test "${ac_cv_path_FGREP+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5313    then ac_cv_path_FGREP="$GREP -F"
5314    else
5315      if test -z "$FGREP"; then
5316   ac_path_FGREP_found=false
5317   # Loop through the user's path and test for each of PROGNAME-LIST
5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_prog in fgrep; do
5324     for ac_exec_ext in '' $ac_executable_extensions; do
5325       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5326       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5327 # Check for GNU ac_path_FGREP and select it if it is found.
5328   # Check for GNU $ac_path_FGREP
5329 case `"$ac_path_FGREP" --version 2>&1` in
5330 *GNU*)
5331   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5332 *)
5333   ac_count=0
5334   $as_echo_n 0123456789 >"conftest.in"
5335   while :
5336   do
5337     cat "conftest.in" "conftest.in" >"conftest.tmp"
5338     mv "conftest.tmp" "conftest.in"
5339     cp "conftest.in" "conftest.nl"
5340     $as_echo 'FGREP' >> "conftest.nl"
5341     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343     as_fn_arith $ac_count + 1 && ac_count=$as_val
5344     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5345       # Best one so far, save it but keep looking for a better one
5346       ac_cv_path_FGREP="$ac_path_FGREP"
5347       ac_path_FGREP_max=$ac_count
5348     fi
5349     # 10*(2^10) chars as input seems more than enough
5350     test $ac_count -gt 10 && break
5351   done
5352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353 esac
5354
5355       $ac_path_FGREP_found && break 3
5356     done
5357   done
5358   done
5359 IFS=$as_save_IFS
5360   if test -z "$ac_cv_path_FGREP"; then
5361     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362   fi
5363 else
5364   ac_cv_path_FGREP=$FGREP
5365 fi
5366
5367    fi
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5370 $as_echo "$ac_cv_path_FGREP" >&6; }
5371  FGREP="$ac_cv_path_FGREP"
5372
5373
5374 test -z "$GREP" && GREP=grep
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 # Check whether --with-gnu-ld was given.
5395 if test "${with_gnu_ld+set}" = set; then :
5396   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5397 else
5398   with_gnu_ld=no
5399 fi
5400
5401 ac_prog=ld
5402 if test "$GCC" = yes; then
5403   # Check if gcc -print-prog-name=ld gives a path.
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5405 $as_echo_n "checking for ld used by $CC... " >&6; }
5406   case $host in
5407   *-*-mingw*)
5408     # gcc leaves a trailing carriage return which upsets mingw
5409     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5410   *)
5411     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5412   esac
5413   case $ac_prog in
5414     # Accept absolute paths.
5415     [\\/]* | ?:[\\/]*)
5416       re_direlt='/[^/][^/]*/\.\./'
5417       # Canonicalize the pathname of ld
5418       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5419       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5420         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5421       done
5422       test -z "$LD" && LD="$ac_prog"
5423       ;;
5424   "")
5425     # If it fails, then pretend we aren't using GCC.
5426     ac_prog=ld
5427     ;;
5428   *)
5429     # If it is relative, then search for the first ld in PATH.
5430     with_gnu_ld=unknown
5431     ;;
5432   esac
5433 elif test "$with_gnu_ld" = yes; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5435 $as_echo_n "checking for GNU ld... " >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5438 $as_echo_n "checking for non-GNU ld... " >&6; }
5439 fi
5440 if test "${lt_cv_path_LD+set}" = set; then :
5441   $as_echo_n "(cached) " >&6
5442 else
5443   if test -z "$LD"; then
5444   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5445   for ac_dir in $PATH; do
5446     IFS="$lt_save_ifs"
5447     test -z "$ac_dir" && ac_dir=.
5448     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5449       lt_cv_path_LD="$ac_dir/$ac_prog"
5450       # Check to see if the program is GNU ld.  I'd rather use --version,
5451       # but apparently some variants of GNU ld only accept -v.
5452       # Break only if it was the GNU/non-GNU ld that we prefer.
5453       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5454       *GNU* | *'with BFD'*)
5455         test "$with_gnu_ld" != no && break
5456         ;;
5457       *)
5458         test "$with_gnu_ld" != yes && break
5459         ;;
5460       esac
5461     fi
5462   done
5463   IFS="$lt_save_ifs"
5464 else
5465   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5466 fi
5467 fi
5468
5469 LD="$lt_cv_path_LD"
5470 if test -n "$LD"; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5472 $as_echo "$LD" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5479 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5480 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5484 case `$LD -v 2>&1 </dev/null` in
5485 *GNU* | *'with BFD'*)
5486   lt_cv_prog_gnu_ld=yes
5487   ;;
5488 *)
5489   lt_cv_prog_gnu_ld=no
5490   ;;
5491 esac
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5494 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5495 with_gnu_ld=$lt_cv_prog_gnu_ld
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5506 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5507 if test "${lt_cv_path_NM+set}" = set; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -n "$NM"; then
5511   # Let the user override the test.
5512   lt_cv_path_NM="$NM"
5513 else
5514   lt_nm_to_check="${ac_tool_prefix}nm"
5515   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5516     lt_nm_to_check="$lt_nm_to_check nm"
5517   fi
5518   for lt_tmp_nm in $lt_nm_to_check; do
5519     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5520     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5521       IFS="$lt_save_ifs"
5522       test -z "$ac_dir" && ac_dir=.
5523       tmp_nm="$ac_dir/$lt_tmp_nm"
5524       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5525         # Check to see if the nm accepts a BSD-compat flag.
5526         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5527         #   nm: unknown option "B" ignored
5528         # Tru64's nm complains that /dev/null is an invalid object file
5529         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5530         */dev/null* | *'Invalid file or object type'*)
5531           lt_cv_path_NM="$tmp_nm -B"
5532           break
5533           ;;
5534         *)
5535           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5536           */dev/null*)
5537             lt_cv_path_NM="$tmp_nm -p"
5538             break
5539             ;;
5540           *)
5541             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5542             continue # so that we can try to find one that supports BSD flags
5543             ;;
5544           esac
5545           ;;
5546         esac
5547       fi
5548     done
5549     IFS="$lt_save_ifs"
5550   done
5551   : ${lt_cv_path_NM=no}
5552 fi
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5555 $as_echo "$lt_cv_path_NM" >&6; }
5556 if test "$lt_cv_path_NM" != "no"; then
5557   NM="$lt_cv_path_NM"
5558 else
5559   # Didn't find any BSD compatible name lister, look for dumpbin.
5560   if test -n "$ac_tool_prefix"; then
5561   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5562   do
5563     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   if test -n "$DUMPBIN"; then
5571   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 DUMPBIN=$ac_cv_prog_DUMPBIN
5591 if test -n "$DUMPBIN"; then
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5593 $as_echo "$DUMPBIN" >&6; }
5594 else
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599
5600     test -n "$DUMPBIN" && break
5601   done
5602 fi
5603 if test -z "$DUMPBIN"; then
5604   ac_ct_DUMPBIN=$DUMPBIN
5605   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5606 do
5607   # Extract the first word of "$ac_prog", so it can be a program name with args.
5608 set dummy $ac_prog; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   if test -n "$ac_ct_DUMPBIN"; then
5615   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629   done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5635 if test -n "$ac_ct_DUMPBIN"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5637 $as_echo "$ac_ct_DUMPBIN" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644   test -n "$ac_ct_DUMPBIN" && break
5645 done
5646
5647   if test "x$ac_ct_DUMPBIN" = x; then
5648     DUMPBIN=":"
5649   else
5650     case $cross_compiling:$ac_tool_warned in
5651 yes:)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5655 esac
5656     DUMPBIN=$ac_ct_DUMPBIN
5657   fi
5658 fi
5659
5660
5661   if test "$DUMPBIN" != ":"; then
5662     NM="$DUMPBIN"
5663   fi
5664 fi
5665 test -z "$NM" && NM=nm
5666
5667
5668
5669
5670
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5673 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5674 if test "${lt_cv_nm_interface+set}" = set; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   lt_cv_nm_interface="BSD nm"
5678   echo "int some_variable = 0;" > conftest.$ac_ext
5679   (eval echo "\"\$as_me:5679: $ac_compile\"" >&5)
5680   (eval "$ac_compile" 2>conftest.err)
5681   cat conftest.err >&5
5682   (eval echo "\"\$as_me:5682: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5683   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5684   cat conftest.err >&5
5685   (eval echo "\"\$as_me:5685: output\"" >&5)
5686   cat conftest.out >&5
5687   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5688     lt_cv_nm_interface="MS dumpbin"
5689   fi
5690   rm -f conftest*
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5693 $as_echo "$lt_cv_nm_interface" >&6; }
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5696 $as_echo_n "checking whether ln -s works... " >&6; }
5697 LN_S=$as_ln_s
5698 if test "$LN_S" = "ln -s"; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 $as_echo "yes" >&6; }
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5703 $as_echo "no, using $LN_S" >&6; }
5704 fi
5705
5706 # find the maximum length of command line arguments
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5708 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5709 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712     i=0
5713   teststring="ABCD"
5714
5715   case $build_os in
5716   msdosdjgpp*)
5717     # On DJGPP, this test can blow up pretty badly due to problems in libc
5718     # (any single argument exceeding 2000 bytes causes a buffer overrun
5719     # during glob expansion).  Even if it were fixed, the result of this
5720     # check would be larger than it should be.
5721     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5722     ;;
5723
5724   gnu*)
5725     # Under GNU Hurd, this test is not required because there is
5726     # no limit to the length of command line arguments.
5727     # Libtool will interpret -1 as no limit whatsoever
5728     lt_cv_sys_max_cmd_len=-1;
5729     ;;
5730
5731   cygwin* | mingw* | cegcc*)
5732     # On Win9x/ME, this test blows up -- it succeeds, but takes
5733     # about 5 minutes as the teststring grows exponentially.
5734     # Worse, since 9x/ME are not pre-emptively multitasking,
5735     # you end up with a "frozen" computer, even though with patience
5736     # the test eventually succeeds (with a max line length of 256k).
5737     # Instead, let's just punt: use the minimum linelength reported by
5738     # all of the supported platforms: 8192 (on NT/2K/XP).
5739     lt_cv_sys_max_cmd_len=8192;
5740     ;;
5741
5742   amigaos*)
5743     # On AmigaOS with pdksh, this test takes hours, literally.
5744     # So we just punt and use a minimum line length of 8192.
5745     lt_cv_sys_max_cmd_len=8192;
5746     ;;
5747
5748   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5749     # This has been around since 386BSD, at least.  Likely further.
5750     if test -x /sbin/sysctl; then
5751       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5752     elif test -x /usr/sbin/sysctl; then
5753       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5754     else
5755       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5756     fi
5757     # And add a safety zone
5758     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5760     ;;
5761
5762   interix*)
5763     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5764     lt_cv_sys_max_cmd_len=196608
5765     ;;
5766
5767   osf*)
5768     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5769     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5770     # nice to cause kernel panics so lets avoid the loop below.
5771     # First set a reasonable default.
5772     lt_cv_sys_max_cmd_len=16384
5773     #
5774     if test -x /sbin/sysconfig; then
5775       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5776         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5777       esac
5778     fi
5779     ;;
5780   sco3.2v5*)
5781     lt_cv_sys_max_cmd_len=102400
5782     ;;
5783   sysv5* | sco5v6* | sysv4.2uw2*)
5784     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5785     if test -n "$kargmax"; then
5786       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5787     else
5788       lt_cv_sys_max_cmd_len=32768
5789     fi
5790     ;;
5791   *)
5792     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5793     if test -n "$lt_cv_sys_max_cmd_len"; then
5794       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5795       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5796     else
5797       # Make teststring a little bigger before we do anything with it.
5798       # a 1K string should be a reasonable start.
5799       for i in 1 2 3 4 5 6 7 8 ; do
5800         teststring=$teststring$teststring
5801       done
5802       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5803       # If test is not a shell built-in, we'll probably end up computing a
5804       # maximum length that is only half of the actual maximum length, but
5805       # we can't tell.
5806       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5807                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5808               test $i != 17 # 1/2 MB should be enough
5809       do
5810         i=`expr $i + 1`
5811         teststring=$teststring$teststring
5812       done
5813       # Only check the string length outside the loop.
5814       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5815       teststring=
5816       # Add a significant safety factor because C++ compilers can tack on
5817       # massive amounts of additional arguments before passing them to the
5818       # linker.  It appears as though 1/2 is a usable value.
5819       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5820     fi
5821     ;;
5822   esac
5823
5824 fi
5825
5826 if test -n $lt_cv_sys_max_cmd_len ; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5828 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5831 $as_echo "none" >&6; }
5832 fi
5833 max_cmd_len=$lt_cv_sys_max_cmd_len
5834
5835
5836
5837
5838
5839
5840 : ${CP="cp -f"}
5841 : ${MV="mv -f"}
5842 : ${RM="rm -f"}
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5845 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5846 # Try some XSI features
5847 xsi_shell=no
5848 ( _lt_dummy="a/b/c"
5849   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5850       = c,a/b,, \
5851     && eval 'test $(( 1 + 1 )) -eq 2 \
5852     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5853   && xsi_shell=yes
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5855 $as_echo "$xsi_shell" >&6; }
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5859 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5860 lt_shell_append=no
5861 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5862     >/dev/null 2>&1 \
5863   && lt_shell_append=yes
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5865 $as_echo "$lt_shell_append" >&6; }
5866
5867
5868 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5869   lt_unset=unset
5870 else
5871   lt_unset=false
5872 fi
5873
5874
5875
5876
5877
5878 # test EBCDIC or ASCII
5879 case `echo X|tr X '\101'` in
5880  A) # ASCII based system
5881     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5882   lt_SP2NL='tr \040 \012'
5883   lt_NL2SP='tr \015\012 \040\040'
5884   ;;
5885  *) # EBCDIC based system
5886   lt_SP2NL='tr \100 \n'
5887   lt_NL2SP='tr \r\n \100\100'
5888   ;;
5889 esac
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5900 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5901 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   lt_cv_ld_reload_flag='-r'
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5907 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5908 reload_flag=$lt_cv_ld_reload_flag
5909 case $reload_flag in
5910 "" | " "*) ;;
5911 *) reload_flag=" $reload_flag" ;;
5912 esac
5913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5914 case $host_os in
5915   darwin*)
5916     if test "$GCC" = yes; then
5917       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5918     else
5919       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5920     fi
5921     ;;
5922 esac
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 if test -n "$ac_tool_prefix"; then
5933   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5938   $as_echo_n "(cached) " >&6
5939 else
5940   if test -n "$OBJDUMP"; then
5941   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948     for ac_exec_ext in '' $ac_executable_extensions; do
5949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955   done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 OBJDUMP=$ac_cv_prog_OBJDUMP
5961 if test -n "$OBJDUMP"; then
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5963 $as_echo "$OBJDUMP" >&6; }
5964 else
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970 fi
5971 if test -z "$ac_cv_prog_OBJDUMP"; then
5972   ac_ct_OBJDUMP=$OBJDUMP
5973   # Extract the first word of "objdump", so it can be a program name with args.
5974 set dummy objdump; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   if test -n "$ac_ct_OBJDUMP"; then
5981   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988     for ac_exec_ext in '' $ac_executable_extensions; do
5989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995   done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6001 if test -n "$ac_ct_OBJDUMP"; then
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6003 $as_echo "$ac_ct_OBJDUMP" >&6; }
6004 else
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009   if test "x$ac_ct_OBJDUMP" = x; then
6010     OBJDUMP="false"
6011   else
6012     case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018     OBJDUMP=$ac_ct_OBJDUMP
6019   fi
6020 else
6021   OBJDUMP="$ac_cv_prog_OBJDUMP"
6022 fi
6023
6024 test -z "$OBJDUMP" && OBJDUMP=objdump
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6035 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6036 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   lt_cv_file_magic_cmd='$MAGIC_CMD'
6040 lt_cv_file_magic_test_file=
6041 lt_cv_deplibs_check_method='unknown'
6042 # Need to set the preceding variable on all platforms that support
6043 # interlibrary dependencies.
6044 # 'none' -- dependencies not supported.
6045 # `unknown' -- same as none, but documents that we really don't know.
6046 # 'pass_all' -- all dependencies passed with no checks.
6047 # 'test_compile' -- check by making test program.
6048 # 'file_magic [[regex]]' -- check by looking for files in library path
6049 # which responds to the $file_magic_cmd with a given extended regex.
6050 # If you have `file' or equivalent on your system and you're not sure
6051 # whether `pass_all' will *always* work, you probably want this one.
6052
6053 case $host_os in
6054 aix[4-9]*)
6055   lt_cv_deplibs_check_method=pass_all
6056   ;;
6057
6058 beos*)
6059   lt_cv_deplibs_check_method=pass_all
6060   ;;
6061
6062 bsdi[45]*)
6063   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6064   lt_cv_file_magic_cmd='/usr/bin/file -L'
6065   lt_cv_file_magic_test_file=/shlib/libc.so
6066   ;;
6067
6068 cygwin*)
6069   # func_win32_libid is a shell function defined in ltmain.sh
6070   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6071   lt_cv_file_magic_cmd='func_win32_libid'
6072   ;;
6073
6074 mingw* | pw32*)
6075   # Base MSYS/MinGW do not provide the 'file' command needed by
6076   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6077   # unless we find 'file', for example because we are cross-compiling.
6078   if ( file / ) >/dev/null 2>&1; then
6079     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080     lt_cv_file_magic_cmd='func_win32_libid'
6081   else
6082     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6083     lt_cv_file_magic_cmd='$OBJDUMP -f'
6084   fi
6085   ;;
6086
6087 cegcc)
6088   # use the weaker test based on 'objdump'. See mingw*.
6089   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6090   lt_cv_file_magic_cmd='$OBJDUMP -f'
6091   ;;
6092
6093 darwin* | rhapsody*)
6094   lt_cv_deplibs_check_method=pass_all
6095   ;;
6096
6097 freebsd* | dragonfly*)
6098   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6099     case $host_cpu in
6100     i*86 )
6101       # Not sure whether the presence of OpenBSD here was a mistake.
6102       # Let's accept both of them until this is cleared up.
6103       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6104       lt_cv_file_magic_cmd=/usr/bin/file
6105       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6106       ;;
6107     esac
6108   else
6109     lt_cv_deplibs_check_method=pass_all
6110   fi
6111   ;;
6112
6113 gnu*)
6114   lt_cv_deplibs_check_method=pass_all
6115   ;;
6116
6117 hpux10.20* | hpux11*)
6118   lt_cv_file_magic_cmd=/usr/bin/file
6119   case $host_cpu in
6120   ia64*)
6121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6122     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6123     ;;
6124   hppa*64*)
6125     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]'
6126     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6127     ;;
6128   *)
6129     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6130     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6131     ;;
6132   esac
6133   ;;
6134
6135 interix[3-9]*)
6136   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6137   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6138   ;;
6139
6140 irix5* | irix6* | nonstopux*)
6141   case $LD in
6142   *-32|*"-32 ") libmagic=32-bit;;
6143   *-n32|*"-n32 ") libmagic=N32;;
6144   *-64|*"-64 ") libmagic=64-bit;;
6145   *) libmagic=never-match;;
6146   esac
6147   lt_cv_deplibs_check_method=pass_all
6148   ;;
6149
6150 # This must be Linux ELF.
6151 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6152   lt_cv_deplibs_check_method=pass_all
6153   ;;
6154
6155 netbsd*)
6156   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6157     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6158   else
6159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6160   fi
6161   ;;
6162
6163 newos6*)
6164   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6165   lt_cv_file_magic_cmd=/usr/bin/file
6166   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6167   ;;
6168
6169 *nto* | *qnx*)
6170   lt_cv_deplibs_check_method=pass_all
6171   ;;
6172
6173 openbsd*)
6174   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6176   else
6177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6178   fi
6179   ;;
6180
6181 osf3* | osf4* | osf5*)
6182   lt_cv_deplibs_check_method=pass_all
6183   ;;
6184
6185 rdos*)
6186   lt_cv_deplibs_check_method=pass_all
6187   ;;
6188
6189 solaris*)
6190   lt_cv_deplibs_check_method=pass_all
6191   ;;
6192
6193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6194   lt_cv_deplibs_check_method=pass_all
6195   ;;
6196
6197 sysv4 | sysv4.3*)
6198   case $host_vendor in
6199   motorola)
6200     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]'
6201     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6202     ;;
6203   ncr)
6204     lt_cv_deplibs_check_method=pass_all
6205     ;;
6206   sequent)
6207     lt_cv_file_magic_cmd='/bin/file'
6208     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6209     ;;
6210   sni)
6211     lt_cv_file_magic_cmd='/bin/file'
6212     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6213     lt_cv_file_magic_test_file=/lib/libc.so
6214     ;;
6215   siemens)
6216     lt_cv_deplibs_check_method=pass_all
6217     ;;
6218   pc)
6219     lt_cv_deplibs_check_method=pass_all
6220     ;;
6221   esac
6222   ;;
6223
6224 tpf*)
6225   lt_cv_deplibs_check_method=pass_all
6226   ;;
6227 esac
6228
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6231 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6232 file_magic_cmd=$lt_cv_file_magic_cmd
6233 deplibs_check_method=$lt_cv_deplibs_check_method
6234 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}ar; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_AR+set}" = set; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255   if test -n "$AR"; then
6256   ac_cv_prog_AR="$AR" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263     for ac_exec_ext in '' $ac_executable_extensions; do
6264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265     ac_cv_prog_AR="${ac_tool_prefix}ar"
6266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270   done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 AR=$ac_cv_prog_AR
6276 if test -n "$AR"; then
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6278 $as_echo "$AR" >&6; }
6279 else
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_AR"; then
6287   ac_ct_AR=$AR
6288   # Extract the first word of "ar", so it can be a program name with args.
6289 set dummy ar; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$ac_ct_AR"; then
6296   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303     for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_AR="ar"
6306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310   done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6316 if test -n "$ac_ct_AR"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6318 $as_echo "$ac_ct_AR" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324   if test "x$ac_ct_AR" = x; then
6325     AR="false"
6326   else
6327     case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333     AR=$ac_ct_AR
6334   fi
6335 else
6336   AR="$ac_cv_prog_AR"
6337 fi
6338
6339 test -z "$AR" && AR=ar
6340 test -z "$AR_FLAGS" && AR_FLAGS=cru
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352 if test -n "$ac_tool_prefix"; then
6353   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}strip; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_STRIP+set}" = set; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$STRIP"; then
6361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 STRIP=$ac_cv_prog_STRIP
6381 if test -n "$STRIP"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6383 $as_echo "$STRIP" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_STRIP"; then
6392   ac_ct_STRIP=$STRIP
6393   # Extract the first word of "strip", so it can be a program name with args.
6394 set dummy strip; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$ac_ct_STRIP"; then
6401   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_prog_ac_ct_STRIP="strip"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6421 if test -n "$ac_ct_STRIP"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6423 $as_echo "$ac_ct_STRIP" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429   if test "x$ac_ct_STRIP" = x; then
6430     STRIP=":"
6431   else
6432     case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438     STRIP=$ac_ct_STRIP
6439   fi
6440 else
6441   STRIP="$ac_cv_prog_STRIP"
6442 fi
6443
6444 test -z "$STRIP" && STRIP=:
6445
6446
6447
6448
6449
6450
6451 if test -n "$ac_tool_prefix"; then
6452   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   if test -n "$RANLIB"; then
6460   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467     for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474   done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6482 $as_echo "$RANLIB" >&6; }
6483 else
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488
6489 fi
6490 if test -z "$ac_cv_prog_RANLIB"; then
6491   ac_ct_RANLIB=$RANLIB
6492   # Extract the first word of "ranlib", so it can be a program name with args.
6493 set dummy ranlib; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   if test -n "$ac_ct_RANLIB"; then
6500   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505   IFS=$as_save_IFS
6506   test -z "$as_dir" && as_dir=.
6507     for ac_exec_ext in '' $ac_executable_extensions; do
6508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509     ac_cv_prog_ac_ct_RANLIB="ranlib"
6510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511     break 2
6512   fi
6513 done
6514   done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520 if test -n "$ac_ct_RANLIB"; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6522 $as_echo "$ac_ct_RANLIB" >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528   if test "x$ac_ct_RANLIB" = x; then
6529     RANLIB=":"
6530   else
6531     case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537     RANLIB=$ac_ct_RANLIB
6538   fi
6539 else
6540   RANLIB="$ac_cv_prog_RANLIB"
6541 fi
6542
6543 test -z "$RANLIB" && RANLIB=:
6544
6545
6546
6547
6548
6549
6550 # Determine commands to create old-style static archives.
6551 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6552 old_postinstall_cmds='chmod 644 $oldlib'
6553 old_postuninstall_cmds=
6554
6555 if test -n "$RANLIB"; then
6556   case $host_os in
6557   openbsd*)
6558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6559     ;;
6560   *)
6561     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6562     ;;
6563   esac
6564   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6565 fi
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 # If no C compiler was specified, use CC.
6601 LTCC=${LTCC-"$CC"}
6602
6603 # If no C compiler flags were specified, use CFLAGS.
6604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6605
6606 # Allow CC to be a program name with arguments.
6607 compiler=$CC
6608
6609
6610 # Check for command to grab the raw symbol name followed by C symbol from nm.
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6612 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6613 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616
6617 # These are sane defaults that work on at least a few old systems.
6618 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6619
6620 # Character class describing NM global symbol codes.
6621 symcode='[BCDEGRST]'
6622
6623 # Regexp to match symbols that can be accessed directly from C.
6624 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6625
6626 # Define system-specific variables.
6627 case $host_os in
6628 aix*)
6629   symcode='[BCDT]'
6630   ;;
6631 cygwin* | mingw* | pw32* | cegcc*)
6632   symcode='[ABCDGISTW]'
6633   ;;
6634 hpux*)
6635   if test "$host_cpu" = ia64; then
6636     symcode='[ABCDEGRST]'
6637   fi
6638   ;;
6639 irix* | nonstopux*)
6640   symcode='[BCDEGRST]'
6641   ;;
6642 osf*)
6643   symcode='[BCDEGQRST]'
6644   ;;
6645 solaris*)
6646   symcode='[BDRT]'
6647   ;;
6648 sco3.2v5*)
6649   symcode='[DT]'
6650   ;;
6651 sysv4.2uw2*)
6652   symcode='[DT]'
6653   ;;
6654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6655   symcode='[ABDT]'
6656   ;;
6657 sysv4)
6658   symcode='[DFNSTU]'
6659   ;;
6660 esac
6661
6662 # If we're using GNU nm, then use its standard symbol codes.
6663 case `$NM -V 2>&1` in
6664 *GNU* | *'with BFD'*)
6665   symcode='[ABCDGIRSTW]' ;;
6666 esac
6667
6668 # Transform an extracted symbol line into a proper C declaration.
6669 # Some systems (esp. on ia64) link data and code symbols differently,
6670 # so use this general approach.
6671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6672
6673 # Transform an extracted symbol line into symbol name and symbol address
6674 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6675 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6676
6677 # Handle CRLF in mingw tool chain
6678 opt_cr=
6679 case $build_os in
6680 mingw*)
6681   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6682   ;;
6683 esac
6684
6685 # Try without a prefix underscore, then with it.
6686 for ac_symprfx in "" "_"; do
6687
6688   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6689   symxfrm="\\1 $ac_symprfx\\2 \\2"
6690
6691   # Write the raw and C identifiers.
6692   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6693     # Fake it for dumpbin and say T for any non-static function
6694     # and D for any global variable.
6695     # Also find C++ and __fastcall symbols from MSVC++,
6696     # which start with @ or ?.
6697     lt_cv_sys_global_symbol_pipe="$AWK '"\
6698 "     {last_section=section; section=\$ 3};"\
6699 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6700 "     \$ 0!~/External *\|/{next};"\
6701 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6702 "     {if(hide[section]) next};"\
6703 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6704 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6705 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6706 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6707 "     ' prfx=^$ac_symprfx"
6708   else
6709     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6710   fi
6711
6712   # Check to see that the pipe works correctly.
6713   pipe_works=no
6714
6715   rm -f conftest*
6716   cat > conftest.$ac_ext <<_LT_EOF
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720 char nm_test_var;
6721 void nm_test_func(void);
6722 void nm_test_func(void){}
6723 #ifdef __cplusplus
6724 }
6725 #endif
6726 int main(){nm_test_var='a';nm_test_func();return(0);}
6727 _LT_EOF
6728
6729   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730   (eval $ac_compile) 2>&5
6731   ac_status=$?
6732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733   test $ac_status = 0; }; then
6734     # Now try to grab the symbols.
6735     nlist=conftest.nm
6736     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6737   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6738   ac_status=$?
6739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740   test $ac_status = 0; } && test -s "$nlist"; then
6741       # Try sorting and uniquifying the output.
6742       if sort "$nlist" | uniq > "$nlist"T; then
6743         mv -f "$nlist"T "$nlist"
6744       else
6745         rm -f "$nlist"T
6746       fi
6747
6748       # Make sure that we snagged all the symbols we need.
6749       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6750         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6751           cat <<_LT_EOF > conftest.$ac_ext
6752 #ifdef __cplusplus
6753 extern "C" {
6754 #endif
6755
6756 _LT_EOF
6757           # Now generate the symbol file.
6758           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6759
6760           cat <<_LT_EOF >> conftest.$ac_ext
6761
6762 /* The mapping between symbol names and symbols.  */
6763 const struct {
6764   const char *name;
6765   void       *address;
6766 }
6767 lt__PROGRAM__LTX_preloaded_symbols[] =
6768 {
6769   { "@PROGRAM@", (void *) 0 },
6770 _LT_EOF
6771           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6772           cat <<\_LT_EOF >> conftest.$ac_ext
6773   {0, (void *) 0}
6774 };
6775
6776 /* This works around a problem in FreeBSD linker */
6777 #ifdef FREEBSD_WORKAROUND
6778 static const void *lt_preloaded_setup() {
6779   return lt__PROGRAM__LTX_preloaded_symbols;
6780 }
6781 #endif
6782
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786 _LT_EOF
6787           # Now try linking the two files.
6788           mv conftest.$ac_objext conftstm.$ac_objext
6789           lt_save_LIBS="$LIBS"
6790           lt_save_CFLAGS="$CFLAGS"
6791           LIBS="conftstm.$ac_objext"
6792           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6793           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6794   (eval $ac_link) 2>&5
6795   ac_status=$?
6796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6798             pipe_works=yes
6799           fi
6800           LIBS="$lt_save_LIBS"
6801           CFLAGS="$lt_save_CFLAGS"
6802         else
6803           echo "cannot find nm_test_func in $nlist" >&5
6804         fi
6805       else
6806         echo "cannot find nm_test_var in $nlist" >&5
6807       fi
6808     else
6809       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6810     fi
6811   else
6812     echo "$progname: failed program was:" >&5
6813     cat conftest.$ac_ext >&5
6814   fi
6815   rm -rf conftest* conftst*
6816
6817   # Do not use the global_symbol_pipe unless it works.
6818   if test "$pipe_works" = yes; then
6819     break
6820   else
6821     lt_cv_sys_global_symbol_pipe=
6822   fi
6823 done
6824
6825 fi
6826
6827 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6828   lt_cv_sys_global_symbol_to_cdecl=
6829 fi
6830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6832 $as_echo "failed" >&6; }
6833 else
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6835 $as_echo "ok" >&6; }
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859 # Check whether --enable-libtool-lock was given.
6860 if test "${enable_libtool_lock+set}" = set; then :
6861   enableval=$enable_libtool_lock;
6862 fi
6863
6864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6865
6866 # Some flags need to be propagated to the compiler or linker for good
6867 # libtool support.
6868 case $host in
6869 ia64-*-hpux*)
6870   # Find out which ABI we are using.
6871   echo 'int i;' > conftest.$ac_ext
6872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873   (eval $ac_compile) 2>&5
6874   ac_status=$?
6875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876   test $ac_status = 0; }; then
6877     case `/usr/bin/file conftest.$ac_objext` in
6878       *ELF-32*)
6879         HPUX_IA64_MODE="32"
6880         ;;
6881       *ELF-64*)
6882         HPUX_IA64_MODE="64"
6883         ;;
6884     esac
6885   fi
6886   rm -rf conftest*
6887   ;;
6888 *-*-irix6*)
6889   # Find out which ABI we are using.
6890   echo '#line 6890 "configure"' > conftest.$ac_ext
6891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895   test $ac_status = 0; }; then
6896     if test "$lt_cv_prog_gnu_ld" = yes; then
6897       case `/usr/bin/file conftest.$ac_objext` in
6898         *32-bit*)
6899           LD="${LD-ld} -melf32bsmip"
6900           ;;
6901         *N32*)
6902           LD="${LD-ld} -melf32bmipn32"
6903           ;;
6904         *64-bit*)
6905           LD="${LD-ld} -melf64bmip"
6906         ;;
6907       esac
6908     else
6909       case `/usr/bin/file conftest.$ac_objext` in
6910         *32-bit*)
6911           LD="${LD-ld} -32"
6912           ;;
6913         *N32*)
6914           LD="${LD-ld} -n32"
6915           ;;
6916         *64-bit*)
6917           LD="${LD-ld} -64"
6918           ;;
6919       esac
6920     fi
6921   fi
6922   rm -rf conftest*
6923   ;;
6924
6925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6926 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6927   # Find out which ABI we are using.
6928   echo 'int i;' > conftest.$ac_ext
6929   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930   (eval $ac_compile) 2>&5
6931   ac_status=$?
6932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933   test $ac_status = 0; }; then
6934     case `/usr/bin/file conftest.o` in
6935       *32-bit*)
6936         case $host in
6937           x86_64-*kfreebsd*-gnu)
6938             LD="${LD-ld} -m elf_i386_fbsd"
6939             ;;
6940           x86_64-*linux*)
6941             LD="${LD-ld} -m elf_i386"
6942             ;;
6943           ppc64-*linux*|powerpc64-*linux*)
6944             LD="${LD-ld} -m elf32ppclinux"
6945             ;;
6946           s390x-*linux*)
6947             LD="${LD-ld} -m elf_s390"
6948             ;;
6949           sparc64-*linux*)
6950             LD="${LD-ld} -m elf32_sparc"
6951             ;;
6952         esac
6953         ;;
6954       *64-bit*)
6955         case $host in
6956           x86_64-*kfreebsd*-gnu)
6957             LD="${LD-ld} -m elf_x86_64_fbsd"
6958             ;;
6959           x86_64-*linux*)
6960             LD="${LD-ld} -m elf_x86_64"
6961             ;;
6962           ppc*-*linux*|powerpc*-*linux*)
6963             LD="${LD-ld} -m elf64ppc"
6964             ;;
6965           s390*-*linux*|s390*-*tpf*)
6966             LD="${LD-ld} -m elf64_s390"
6967             ;;
6968           sparc*-*linux*)
6969             LD="${LD-ld} -m elf64_sparc"
6970             ;;
6971         esac
6972         ;;
6973     esac
6974   fi
6975   rm -rf conftest*
6976   ;;
6977
6978 *-*-sco3.2v5*)
6979   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6980   SAVE_CFLAGS="$CFLAGS"
6981   CFLAGS="$CFLAGS -belf"
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6983 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6984 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   ac_ext=c
6988 ac_cpp='$CPP $CPPFLAGS'
6989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
6993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h.  */
6995
6996 int
6997 main ()
6998 {
6999
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 if ac_fn_c_try_link "$LINENO"; then :
7005   lt_cv_cc_needs_belf=yes
7006 else
7007   lt_cv_cc_needs_belf=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext \
7010     conftest$ac_exeext conftest.$ac_ext
7011      ac_ext=c
7012 ac_cpp='$CPP $CPPFLAGS'
7013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7019 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7020   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7021     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7022     CFLAGS="$SAVE_CFLAGS"
7023   fi
7024   ;;
7025 sparc*-*solaris*)
7026   # Find out which ABI we are using.
7027   echo 'int i;' > conftest.$ac_ext
7028   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7029   (eval $ac_compile) 2>&5
7030   ac_status=$?
7031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032   test $ac_status = 0; }; then
7033     case `/usr/bin/file conftest.o` in
7034     *64-bit*)
7035       case $lt_cv_prog_gnu_ld in
7036       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7037       *)
7038         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7039           LD="${LD-ld} -64"
7040         fi
7041         ;;
7042       esac
7043       ;;
7044     esac
7045   fi
7046   rm -rf conftest*
7047   ;;
7048 esac
7049
7050 need_locks="$enable_libtool_lock"
7051
7052
7053   case $host_os in
7054     rhapsody* | darwin*)
7055     if test -n "$ac_tool_prefix"; then
7056   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$DSYMUTIL"; then
7064   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7084 if test -n "$DSYMUTIL"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7086 $as_echo "$DSYMUTIL" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_DSYMUTIL"; then
7095   ac_ct_DSYMUTIL=$DSYMUTIL
7096   # Extract the first word of "dsymutil", so it can be a program name with args.
7097 set dummy dsymutil; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$ac_ct_DSYMUTIL"; then
7104   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7124 if test -n "$ac_ct_DSYMUTIL"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7126 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132   if test "x$ac_ct_DSYMUTIL" = x; then
7133     DSYMUTIL=":"
7134   else
7135     case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     DSYMUTIL=$ac_ct_DSYMUTIL
7142   fi
7143 else
7144   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7145 fi
7146
7147     if test -n "$ac_tool_prefix"; then
7148   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test -n "$NMEDIT"; then
7156   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170   done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 NMEDIT=$ac_cv_prog_NMEDIT
7176 if test -n "$NMEDIT"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7178 $as_echo "$NMEDIT" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_NMEDIT"; then
7187   ac_ct_NMEDIT=$NMEDIT
7188   # Extract the first word of "nmedit", so it can be a program name with args.
7189 set dummy nmedit; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$ac_ct_NMEDIT"; then
7196   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7216 if test -n "$ac_ct_NMEDIT"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7218 $as_echo "$ac_ct_NMEDIT" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224   if test "x$ac_ct_NMEDIT" = x; then
7225     NMEDIT=":"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233     NMEDIT=$ac_ct_NMEDIT
7234   fi
7235 else
7236   NMEDIT="$ac_cv_prog_NMEDIT"
7237 fi
7238
7239     if test -n "$ac_tool_prefix"; then
7240   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_LIPO+set}" = set; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$LIPO"; then
7248   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 LIPO=$ac_cv_prog_LIPO
7268 if test -n "$LIPO"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7270 $as_echo "$LIPO" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_LIPO"; then
7279   ac_ct_LIPO=$LIPO
7280   # Extract the first word of "lipo", so it can be a program name with args.
7281 set dummy lipo; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$ac_ct_LIPO"; then
7288   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_ac_ct_LIPO="lipo"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7308 if test -n "$ac_ct_LIPO"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7310 $as_echo "$ac_ct_LIPO" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316   if test "x$ac_ct_LIPO" = x; then
7317     LIPO=":"
7318   else
7319     case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325     LIPO=$ac_ct_LIPO
7326   fi
7327 else
7328   LIPO="$ac_cv_prog_LIPO"
7329 fi
7330
7331     if test -n "$ac_tool_prefix"; then
7332   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7333 set dummy ${ac_tool_prefix}otool; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   if test -n "$OTOOL"; then
7340   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347     for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354   done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 OTOOL=$ac_cv_prog_OTOOL
7360 if test -n "$OTOOL"; then
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7362 $as_echo "$OTOOL" >&6; }
7363 else
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368
7369 fi
7370 if test -z "$ac_cv_prog_OTOOL"; then
7371   ac_ct_OTOOL=$OTOOL
7372   # Extract the first word of "otool", so it can be a program name with args.
7373 set dummy otool; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$ac_ct_OTOOL"; then
7380   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387     for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_ac_ct_OTOOL="otool"
7390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394   done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7400 if test -n "$ac_ct_OTOOL"; then
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7402 $as_echo "$ac_ct_OTOOL" >&6; }
7403 else
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408   if test "x$ac_ct_OTOOL" = x; then
7409     OTOOL=":"
7410   else
7411     case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417     OTOOL=$ac_ct_OTOOL
7418   fi
7419 else
7420   OTOOL="$ac_cv_prog_OTOOL"
7421 fi
7422
7423     if test -n "$ac_tool_prefix"; then
7424   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7425 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   if test -n "$OTOOL64"; then
7432   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439     for ac_exec_ext in '' $ac_executable_extensions; do
7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446   done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 OTOOL64=$ac_cv_prog_OTOOL64
7452 if test -n "$OTOOL64"; then
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7454 $as_echo "$OTOOL64" >&6; }
7455 else
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460
7461 fi
7462 if test -z "$ac_cv_prog_OTOOL64"; then
7463   ac_ct_OTOOL64=$OTOOL64
7464   # Extract the first word of "otool64", so it can be a program name with args.
7465 set dummy otool64; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   if test -n "$ac_ct_OTOOL64"; then
7472   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_prog_ac_ct_OTOOL64="otool64"
7482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7492 if test -n "$ac_ct_OTOOL64"; then
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7494 $as_echo "$ac_ct_OTOOL64" >&6; }
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500   if test "x$ac_ct_OTOOL64" = x; then
7501     OTOOL64=":"
7502   else
7503     case $cross_compiling:$ac_tool_warned in
7504 yes:)
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507 ac_tool_warned=yes ;;
7508 esac
7509     OTOOL64=$ac_ct_OTOOL64
7510   fi
7511 else
7512   OTOOL64="$ac_cv_prog_OTOOL64"
7513 fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7542 $as_echo_n "checking for -single_module linker flag... " >&6; }
7543 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   lt_cv_apple_cc_single_mod=no
7547       if test -z "${LT_MULTI_MODULE}"; then
7548         # By default we will add the -single_module flag. You can override
7549         # by either setting the environment variable LT_MULTI_MODULE
7550         # non-empty at configure time, or by adding -multi_module to the
7551         # link flags.
7552         rm -rf libconftest.dylib*
7553         echo "int foo(void){return 1;}" > conftest.c
7554         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7555 -dynamiclib -Wl,-single_module conftest.c" >&5
7556         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7558         _lt_result=$?
7559         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7560           lt_cv_apple_cc_single_mod=yes
7561         else
7562           cat conftest.err >&5
7563         fi
7564         rm -rf libconftest.dylib*
7565         rm -f conftest.*
7566       fi
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7569 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7572 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   lt_cv_ld_exported_symbols_list=no
7576       save_LDFLAGS=$LDFLAGS
7577       echo "_main" > conftest.sym
7578       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h.  */
7581
7582 int
7583 main ()
7584 {
7585
7586   ;
7587   return 0;
7588 }
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"; then :
7591   lt_cv_ld_exported_symbols_list=yes
7592 else
7593   lt_cv_ld_exported_symbols_list=no
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext \
7596     conftest$ac_exeext conftest.$ac_ext
7597         LDFLAGS="$save_LDFLAGS"
7598
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7602     case $host_os in
7603     rhapsody* | darwin1.[012])
7604       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7605     darwin1.*)
7606       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607     darwin*) # darwin 5.x on
7608       # if running on 10.5 or later, the deployment target defaults
7609       # to the OS version, if on x86, and 10.4, the deployment
7610       # target defaults to 10.4. Don't you love it?
7611       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7612         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7613           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7614         10.[012]*)
7615           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7616         10.*)
7617           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7618       esac
7619     ;;
7620   esac
7621     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7622       _lt_dar_single_mod='$single_module'
7623     fi
7624     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7625       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7626     else
7627       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7628     fi
7629     if test "$DSYMUTIL" != ":"; then
7630       _lt_dsymutil='~$DSYMUTIL $lib || :'
7631     else
7632       _lt_dsymutil=
7633     fi
7634     ;;
7635   esac
7636
7637 for ac_header in dlfcn.h
7638 do :
7639   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7640 "
7641 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7642   cat >>confdefs.h <<_ACEOF
7643 #define HAVE_DLFCN_H 1
7644 _ACEOF
7645
7646 fi
7647
7648 done
7649
7650
7651
7652 # Set options
7653
7654
7655
7656         enable_dlopen=no
7657
7658
7659   enable_win32_dll=no
7660
7661
7662             # Check whether --enable-shared was given.
7663 if test "${enable_shared+set}" = set; then :
7664   enableval=$enable_shared; p=${PACKAGE-default}
7665     case $enableval in
7666     yes) enable_shared=yes ;;
7667     no) enable_shared=no ;;
7668     *)
7669       enable_shared=no
7670       # Look at the argument we got.  We use all the common list separators.
7671       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7672       for pkg in $enableval; do
7673         IFS="$lt_save_ifs"
7674         if test "X$pkg" = "X$p"; then
7675           enable_shared=yes
7676         fi
7677       done
7678       IFS="$lt_save_ifs"
7679       ;;
7680     esac
7681 else
7682   enable_shared=yes
7683 fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693   # Check whether --enable-static was given.
7694 if test "${enable_static+set}" = set; then :
7695   enableval=$enable_static; p=${PACKAGE-default}
7696     case $enableval in
7697     yes) enable_static=yes ;;
7698     no) enable_static=no ;;
7699     *)
7700      enable_static=no
7701       # Look at the argument we got.  We use all the common list separators.
7702       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703       for pkg in $enableval; do
7704         IFS="$lt_save_ifs"
7705         if test "X$pkg" = "X$p"; then
7706           enable_static=yes
7707         fi
7708       done
7709       IFS="$lt_save_ifs"
7710       ;;
7711     esac
7712 else
7713   enable_static=yes
7714 fi
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 # Check whether --with-pic was given.
7726 if test "${with_pic+set}" = set; then :
7727   withval=$with_pic; pic_mode="$withval"
7728 else
7729   pic_mode=default
7730 fi
7731
7732
7733 test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
7741   # Check whether --enable-fast-install was given.
7742 if test "${enable_fast_install+set}" = set; then :
7743   enableval=$enable_fast_install; p=${PACKAGE-default}
7744     case $enableval in
7745     yes) enable_fast_install=yes ;;
7746     no) enable_fast_install=no ;;
7747     *)
7748       enable_fast_install=no
7749       # Look at the argument we got.  We use all the common list separators.
7750       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751       for pkg in $enableval; do
7752         IFS="$lt_save_ifs"
7753         if test "X$pkg" = "X$p"; then
7754           enable_fast_install=yes
7755         fi
7756       done
7757       IFS="$lt_save_ifs"
7758       ;;
7759     esac
7760 else
7761   enable_fast_install=yes
7762 fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 # This can be used to rebuild libtool when needed
7775 LIBTOOL_DEPS="$ltmain"
7776
7777 # Always use our own libtool.
7778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 test -z "$LN_S" && LN_S="ln -s"
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 if test -n "${ZSH_VERSION+set}" ; then
7820    setopt NO_GLOB_SUBST
7821 fi
7822
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7824 $as_echo_n "checking for objdir... " >&6; }
7825 if test "${lt_cv_objdir+set}" = set; then :
7826   $as_echo_n "(cached) " >&6
7827 else
7828   rm -f .libs 2>/dev/null
7829 mkdir .libs 2>/dev/null
7830 if test -d .libs; then
7831   lt_cv_objdir=.libs
7832 else
7833   # MS-DOS does not allow filenames that begin with a dot.
7834   lt_cv_objdir=_libs
7835 fi
7836 rmdir .libs 2>/dev/null
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7839 $as_echo "$lt_cv_objdir" >&6; }
7840 objdir=$lt_cv_objdir
7841
7842
7843
7844
7845
7846 cat >>confdefs.h <<_ACEOF
7847 #define LT_OBJDIR "$lt_cv_objdir/"
7848 _ACEOF
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 case $host_os in
7867 aix3*)
7868   # AIX sometimes has problems with the GCC collect2 program.  For some
7869   # reason, if we set the COLLECT_NAMES environment variable, the problems
7870   # vanish in a puff of smoke.
7871   if test "X${COLLECT_NAMES+set}" != Xset; then
7872     COLLECT_NAMES=
7873     export COLLECT_NAMES
7874   fi
7875   ;;
7876 esac
7877
7878 # Sed substitution that helps us do robust quoting.  It backslashifies
7879 # metacharacters that are still active within double-quoted strings.
7880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7881
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7884
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7888
7889 # Sed substitution to delay expansion of an escaped single quote.
7890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7891
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7894
7895 # Global variables:
7896 ofile=libtool
7897 can_build_shared=yes
7898
7899 # All known linkers require a `.a' archive for static linking (except MSVC,
7900 # which needs '.lib').
7901 libext=a
7902
7903 with_gnu_ld="$lt_cv_prog_gnu_ld"
7904
7905 old_CC="$CC"
7906 old_CFLAGS="$CFLAGS"
7907
7908 # Set sane defaults for various variables
7909 test -z "$CC" && CC=cc
7910 test -z "$LTCC" && LTCC=$CC
7911 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7912 test -z "$LD" && LD=ld
7913 test -z "$ac_objext" && ac_objext=o
7914
7915 for cc_temp in $compiler""; do
7916   case $cc_temp in
7917     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7918     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7919     \-*) ;;
7920     *) break;;
7921   esac
7922 done
7923 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7924
7925
7926 # Only perform the check for file, if the check method requires it
7927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7928 case $deplibs_check_method in
7929 file_magic*)
7930   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7932 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7933 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   case $MAGIC_CMD in
7937 [\\/*] |  ?:[\\/]*)
7938   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7939   ;;
7940 *)
7941   lt_save_MAGIC_CMD="$MAGIC_CMD"
7942   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7943   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7944   for ac_dir in $ac_dummy; do
7945     IFS="$lt_save_ifs"
7946     test -z "$ac_dir" && ac_dir=.
7947     if test -f $ac_dir/${ac_tool_prefix}file; then
7948       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7949       if test -n "$file_magic_test_file"; then
7950         case $deplibs_check_method in
7951         "file_magic "*)
7952           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7953           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7955             $EGREP "$file_magic_regex" > /dev/null; then
7956             :
7957           else
7958             cat <<_LT_EOF 1>&2
7959
7960 *** Warning: the command libtool uses to detect shared libraries,
7961 *** $file_magic_cmd, produces output that libtool cannot recognize.
7962 *** The result is that libtool may fail to recognize shared libraries
7963 *** as such.  This will affect the creation of libtool libraries that
7964 *** depend on shared libraries, but programs linked with such libtool
7965 *** libraries will work regardless of this problem.  Nevertheless, you
7966 *** may want to report the problem to your system manager and/or to
7967 *** bug-libtool@gnu.org
7968
7969 _LT_EOF
7970           fi ;;
7971         esac
7972       fi
7973       break
7974     fi
7975   done
7976   IFS="$lt_save_ifs"
7977   MAGIC_CMD="$lt_save_MAGIC_CMD"
7978   ;;
7979 esac
7980 fi
7981
7982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7983 if test -n "$MAGIC_CMD"; then
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7985 $as_echo "$MAGIC_CMD" >&6; }
7986 else
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992
7993
7994
7995 if test -z "$lt_cv_path_MAGIC_CMD"; then
7996   if test -n "$ac_tool_prefix"; then
7997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7998 $as_echo_n "checking for file... " >&6; }
7999 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   case $MAGIC_CMD in
8003 [\\/*] |  ?:[\\/]*)
8004   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8005   ;;
8006 *)
8007   lt_save_MAGIC_CMD="$MAGIC_CMD"
8008   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8009   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8010   for ac_dir in $ac_dummy; do
8011     IFS="$lt_save_ifs"
8012     test -z "$ac_dir" && ac_dir=.
8013     if test -f $ac_dir/file; then
8014       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8015       if test -n "$file_magic_test_file"; then
8016         case $deplibs_check_method in
8017         "file_magic "*)
8018           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8019           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8021             $EGREP "$file_magic_regex" > /dev/null; then
8022             :
8023           else
8024             cat <<_LT_EOF 1>&2
8025
8026 *** Warning: the command libtool uses to detect shared libraries,
8027 *** $file_magic_cmd, produces output that libtool cannot recognize.
8028 *** The result is that libtool may fail to recognize shared libraries
8029 *** as such.  This will affect the creation of libtool libraries that
8030 *** depend on shared libraries, but programs linked with such libtool
8031 *** libraries will work regardless of this problem.  Nevertheless, you
8032 *** may want to report the problem to your system manager and/or to
8033 *** bug-libtool@gnu.org
8034
8035 _LT_EOF
8036           fi ;;
8037         esac
8038       fi
8039       break
8040     fi
8041   done
8042   IFS="$lt_save_ifs"
8043   MAGIC_CMD="$lt_save_MAGIC_CMD"
8044   ;;
8045 esac
8046 fi
8047
8048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8049 if test -n "$MAGIC_CMD"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8051 $as_echo "$MAGIC_CMD" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058   else
8059     MAGIC_CMD=:
8060   fi
8061 fi
8062
8063   fi
8064   ;;
8065 esac
8066
8067 # Use C for the default configuration in the libtool script
8068
8069 lt_save_CC="$CC"
8070 ac_ext=c
8071 ac_cpp='$CPP $CPPFLAGS'
8072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8075
8076
8077 # Source file extension for C test sources.
8078 ac_ext=c
8079
8080 # Object file extension for compiled C test sources.
8081 objext=o
8082 objext=$objext
8083
8084 # Code to be used in simple compile tests
8085 lt_simple_compile_test_code="int some_variable = 0;"
8086
8087 # Code to be used in simple link tests
8088 lt_simple_link_test_code='int main(){return(0);}'
8089
8090
8091
8092
8093
8094
8095
8096 # If no C compiler was specified, use CC.
8097 LTCC=${LTCC-"$CC"}
8098
8099 # If no C compiler flags were specified, use CFLAGS.
8100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8101
8102 # Allow CC to be a program name with arguments.
8103 compiler=$CC
8104
8105 # Save the default compiler, since it gets overwritten when the other
8106 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8107 compiler_DEFAULT=$CC
8108
8109 # save warnings/boilerplate of simple test code
8110 ac_outfile=conftest.$ac_objext
8111 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8113 _lt_compiler_boilerplate=`cat conftest.err`
8114 $RM conftest*
8115
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8118 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8119 _lt_linker_boilerplate=`cat conftest.err`
8120 $RM -r conftest*
8121
8122
8123 ## CAVEAT EMPTOR:
8124 ## There is no encapsulation within the following macros, do not change
8125 ## the running order or otherwise move them around unless you know exactly
8126 ## what you are doing...
8127 if test -n "$compiler"; then
8128
8129 lt_prog_compiler_no_builtin_flag=
8130
8131 if test "$GCC" = yes; then
8132   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8133
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8135 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8137   $as_echo_n "(cached) " >&6
8138 else
8139   lt_cv_prog_compiler_rtti_exceptions=no
8140    ac_outfile=conftest.$ac_objext
8141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142    lt_compiler_flag="-fno-rtti -fno-exceptions"
8143    # Insert the option either (1) after the last *FLAGS variable, or
8144    # (2) before a word containing "conftest.", or (3) at the end.
8145    # Note that $ac_compile itself does not contain backslashes and begins
8146    # with a dollar sign (not a hyphen), so the echo should work correctly.
8147    # The option is referenced via a variable to avoid confusing sed.
8148    lt_compile=`echo "$ac_compile" | $SED \
8149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151    -e 's:$: $lt_compiler_flag:'`
8152    (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
8153    (eval "$lt_compile" 2>conftest.err)
8154    ac_status=$?
8155    cat conftest.err >&5
8156    echo "$as_me:8156: \$? = $ac_status" >&5
8157    if (exit $ac_status) && test -s "$ac_outfile"; then
8158      # The compiler can only warn and ignore the option if not recognized
8159      # So say no if there are warnings other than the usual output.
8160      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8161      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163        lt_cv_prog_compiler_rtti_exceptions=yes
8164      fi
8165    fi
8166    $RM conftest*
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8170 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8171
8172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8173     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8174 else
8175     :
8176 fi
8177
8178 fi
8179
8180
8181
8182
8183
8184
8185   lt_prog_compiler_wl=
8186 lt_prog_compiler_pic=
8187 lt_prog_compiler_static=
8188
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8191
8192   if test "$GCC" = yes; then
8193     lt_prog_compiler_wl='-Wl,'
8194     lt_prog_compiler_static='-static'
8195
8196     case $host_os in
8197       aix*)
8198       # All AIX code is PIC.
8199       if test "$host_cpu" = ia64; then
8200         # AIX 5 now supports IA64 processor
8201         lt_prog_compiler_static='-Bstatic'
8202       fi
8203       ;;
8204
8205     amigaos*)
8206       case $host_cpu in
8207       powerpc)
8208             # see comment about AmigaOS4 .so support
8209             lt_prog_compiler_pic='-fPIC'
8210         ;;
8211       m68k)
8212             # FIXME: we need at least 68020 code to build shared libraries, but
8213             # adding the `-m68020' flag to GCC prevents building anything better,
8214             # like `-m68040'.
8215             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8216         ;;
8217       esac
8218       ;;
8219
8220     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8221       # PIC is the default for these OSes.
8222       ;;
8223
8224     mingw* | cygwin* | pw32* | os2* | cegcc*)
8225       # This hack is so that the source file can tell whether it is being
8226       # built for inclusion in a dll (and should export symbols for example).
8227       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8228       # (--disable-auto-import) libraries
8229       lt_prog_compiler_pic='-DDLL_EXPORT'
8230       ;;
8231
8232     darwin* | rhapsody*)
8233       # PIC is the default on this platform
8234       # Common symbols not allowed in MH_DYLIB files
8235       lt_prog_compiler_pic='-fno-common'
8236       ;;
8237
8238     hpux*)
8239       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8240       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8241       # sets the default TLS model and affects inlining.
8242       case $host_cpu in
8243       hppa*64*)
8244         # +Z the default
8245         ;;
8246       *)
8247         lt_prog_compiler_pic='-fPIC'
8248         ;;
8249       esac
8250       ;;
8251
8252     interix[3-9]*)
8253       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8254       # Instead, we relocate shared libraries at runtime.
8255       ;;
8256
8257     msdosdjgpp*)
8258       # Just because we use GCC doesn't mean we suddenly get shared libraries
8259       # on systems that don't support them.
8260       lt_prog_compiler_can_build_shared=no
8261       enable_shared=no
8262       ;;
8263
8264     *nto* | *qnx*)
8265       # QNX uses GNU C++, but need to define -shared option too, otherwise
8266       # it will coredump.
8267       lt_prog_compiler_pic='-fPIC -shared'
8268       ;;
8269
8270     sysv4*MP*)
8271       if test -d /usr/nec; then
8272         lt_prog_compiler_pic=-Kconform_pic
8273       fi
8274       ;;
8275
8276     *)
8277       lt_prog_compiler_pic='-fPIC'
8278       ;;
8279     esac
8280   else
8281     # PORTME Check for flag to pass linker flags through the system compiler.
8282     case $host_os in
8283     aix*)
8284       lt_prog_compiler_wl='-Wl,'
8285       if test "$host_cpu" = ia64; then
8286         # AIX 5 now supports IA64 processor
8287         lt_prog_compiler_static='-Bstatic'
8288       else
8289         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8290       fi
8291       ;;
8292
8293     mingw* | cygwin* | pw32* | os2* | cegcc*)
8294       # This hack is so that the source file can tell whether it is being
8295       # built for inclusion in a dll (and should export symbols for example).
8296       lt_prog_compiler_pic='-DDLL_EXPORT'
8297       ;;
8298
8299     hpux9* | hpux10* | hpux11*)
8300       lt_prog_compiler_wl='-Wl,'
8301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8302       # not for PA HP-UX.
8303       case $host_cpu in
8304       hppa*64*|ia64*)
8305         # +Z the default
8306         ;;
8307       *)
8308         lt_prog_compiler_pic='+Z'
8309         ;;
8310       esac
8311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8312       lt_prog_compiler_static='${wl}-a ${wl}archive'
8313       ;;
8314
8315     irix5* | irix6* | nonstopux*)
8316       lt_prog_compiler_wl='-Wl,'
8317       # PIC (with -KPIC) is the default.
8318       lt_prog_compiler_static='-non_shared'
8319       ;;
8320
8321     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8322       case $cc_basename in
8323       # old Intel for x86_64 which still supported -KPIC.
8324       ecc*)
8325         lt_prog_compiler_wl='-Wl,'
8326         lt_prog_compiler_pic='-KPIC'
8327         lt_prog_compiler_static='-static'
8328         ;;
8329       # icc used to be incompatible with GCC.
8330       # ICC 10 doesn't accept -KPIC any more.
8331       icc* | ifort*)
8332         lt_prog_compiler_wl='-Wl,'
8333         lt_prog_compiler_pic='-fPIC'
8334         lt_prog_compiler_static='-static'
8335         ;;
8336       # Lahey Fortran 8.1.
8337       lf95*)
8338         lt_prog_compiler_wl='-Wl,'
8339         lt_prog_compiler_pic='--shared'
8340         lt_prog_compiler_static='--static'
8341         ;;
8342       pgcc* | pgf77* | pgf90* | pgf95*)
8343         # Portland Group compilers (*not* the Pentium gcc compiler,
8344         # which looks to be a dead project)
8345         lt_prog_compiler_wl='-Wl,'
8346         lt_prog_compiler_pic='-fpic'
8347         lt_prog_compiler_static='-Bstatic'
8348         ;;
8349       ccc*)
8350         lt_prog_compiler_wl='-Wl,'
8351         # All Alpha code is PIC.
8352         lt_prog_compiler_static='-non_shared'
8353         ;;
8354       xl*)
8355         # IBM XL C 8.0/Fortran 10.1 on PPC
8356         lt_prog_compiler_wl='-Wl,'
8357         lt_prog_compiler_pic='-qpic'
8358         lt_prog_compiler_static='-qstaticlink'
8359         ;;
8360       *)
8361         case `$CC -V 2>&1 | sed 5q` in
8362         *Sun\ C*)
8363           # Sun C 5.9
8364           lt_prog_compiler_pic='-KPIC'
8365           lt_prog_compiler_static='-Bstatic'
8366           lt_prog_compiler_wl='-Wl,'
8367           ;;
8368         *Sun\ F*)
8369           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8370           lt_prog_compiler_pic='-KPIC'
8371           lt_prog_compiler_static='-Bstatic'
8372           lt_prog_compiler_wl=''
8373           ;;
8374         esac
8375         ;;
8376       esac
8377       ;;
8378
8379     newsos6)
8380       lt_prog_compiler_pic='-KPIC'
8381       lt_prog_compiler_static='-Bstatic'
8382       ;;
8383
8384     *nto* | *qnx*)
8385       # QNX uses GNU C++, but need to define -shared option too, otherwise
8386       # it will coredump.
8387       lt_prog_compiler_pic='-fPIC -shared'
8388       ;;
8389
8390     osf3* | osf4* | osf5*)
8391       lt_prog_compiler_wl='-Wl,'
8392       # All OSF/1 code is PIC.
8393       lt_prog_compiler_static='-non_shared'
8394       ;;
8395
8396     rdos*)
8397       lt_prog_compiler_static='-non_shared'
8398       ;;
8399
8400     solaris*)
8401       lt_prog_compiler_pic='-KPIC'
8402       lt_prog_compiler_static='-Bstatic'
8403       case $cc_basename in
8404       f77* | f90* | f95*)
8405         lt_prog_compiler_wl='-Qoption ld ';;
8406       *)
8407         lt_prog_compiler_wl='-Wl,';;
8408       esac
8409       ;;
8410
8411     sunos4*)
8412       lt_prog_compiler_wl='-Qoption ld '
8413       lt_prog_compiler_pic='-PIC'
8414       lt_prog_compiler_static='-Bstatic'
8415       ;;
8416
8417     sysv4 | sysv4.2uw2* | sysv4.3*)
8418       lt_prog_compiler_wl='-Wl,'
8419       lt_prog_compiler_pic='-KPIC'
8420       lt_prog_compiler_static='-Bstatic'
8421       ;;
8422
8423     sysv4*MP*)
8424       if test -d /usr/nec ;then
8425         lt_prog_compiler_pic='-Kconform_pic'
8426         lt_prog_compiler_static='-Bstatic'
8427       fi
8428       ;;
8429
8430     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8431       lt_prog_compiler_wl='-Wl,'
8432       lt_prog_compiler_pic='-KPIC'
8433       lt_prog_compiler_static='-Bstatic'
8434       ;;
8435
8436     unicos*)
8437       lt_prog_compiler_wl='-Wl,'
8438       lt_prog_compiler_can_build_shared=no
8439       ;;
8440
8441     uts4*)
8442       lt_prog_compiler_pic='-pic'
8443       lt_prog_compiler_static='-Bstatic'
8444       ;;
8445
8446     *)
8447       lt_prog_compiler_can_build_shared=no
8448       ;;
8449     esac
8450   fi
8451
8452 case $host_os in
8453   # For platforms which do not support PIC, -DPIC is meaningless:
8454   *djgpp*)
8455     lt_prog_compiler_pic=
8456     ;;
8457   *)
8458     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8459     ;;
8460 esac
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8462 $as_echo "$lt_prog_compiler_pic" >&6; }
8463
8464
8465
8466
8467
8468
8469 #
8470 # Check to make sure the PIC flag actually works.
8471 #
8472 if test -n "$lt_prog_compiler_pic"; then
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8475 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   lt_cv_prog_compiler_pic_works=no
8479    ac_outfile=conftest.$ac_objext
8480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8482    # Insert the option either (1) after the last *FLAGS variable, or
8483    # (2) before a word containing "conftest.", or (3) at the end.
8484    # Note that $ac_compile itself does not contain backslashes and begins
8485    # with a dollar sign (not a hyphen), so the echo should work correctly.
8486    # The option is referenced via a variable to avoid confusing sed.
8487    lt_compile=`echo "$ac_compile" | $SED \
8488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490    -e 's:$: $lt_compiler_flag:'`
8491    (eval echo "\"\$as_me:8491: $lt_compile\"" >&5)
8492    (eval "$lt_compile" 2>conftest.err)
8493    ac_status=$?
8494    cat conftest.err >&5
8495    echo "$as_me:8495: \$? = $ac_status" >&5
8496    if (exit $ac_status) && test -s "$ac_outfile"; then
8497      # The compiler can only warn and ignore the option if not recognized
8498      # So say no if there are warnings other than the usual output.
8499      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502        lt_cv_prog_compiler_pic_works=yes
8503      fi
8504    fi
8505    $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8512     case $lt_prog_compiler_pic in
8513      "" | " "*) ;;
8514      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8515      esac
8516 else
8517     lt_prog_compiler_pic=
8518      lt_prog_compiler_can_build_shared=no
8519 fi
8520
8521 fi
8522
8523
8524
8525
8526
8527
8528 #
8529 # Check to make sure the static flag actually works.
8530 #
8531 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8533 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8534 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   lt_cv_prog_compiler_static_works=no
8538    save_LDFLAGS="$LDFLAGS"
8539    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8540    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8541    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8542      # The linker can only warn and ignore the option if not recognized
8543      # So say no if there are warnings
8544      if test -s conftest.err; then
8545        # Append any errors to the config.log.
8546        cat conftest.err 1>&5
8547        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8548        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8549        if diff conftest.exp conftest.er2 >/dev/null; then
8550          lt_cv_prog_compiler_static_works=yes
8551        fi
8552      else
8553        lt_cv_prog_compiler_static_works=yes
8554      fi
8555    fi
8556    $RM -r conftest*
8557    LDFLAGS="$save_LDFLAGS"
8558
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8561 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8562
8563 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8564     :
8565 else
8566     lt_prog_compiler_static=
8567 fi
8568
8569
8570
8571
8572
8573
8574
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8577 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   lt_cv_prog_compiler_c_o=no
8581    $RM -r conftest 2>/dev/null
8582    mkdir conftest
8583    cd conftest
8584    mkdir out
8585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8586
8587    lt_compiler_flag="-o out/conftest2.$ac_objext"
8588    # Insert the option either (1) after the last *FLAGS variable, or
8589    # (2) before a word containing "conftest.", or (3) at the end.
8590    # Note that $ac_compile itself does not contain backslashes and begins
8591    # with a dollar sign (not a hyphen), so the echo should work correctly.
8592    lt_compile=`echo "$ac_compile" | $SED \
8593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595    -e 's:$: $lt_compiler_flag:'`
8596    (eval echo "\"\$as_me:8596: $lt_compile\"" >&5)
8597    (eval "$lt_compile" 2>out/conftest.err)
8598    ac_status=$?
8599    cat out/conftest.err >&5
8600    echo "$as_me:8600: \$? = $ac_status" >&5
8601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8602    then
8603      # The compiler can only warn and ignore the option if not recognized
8604      # So say no if there are warnings
8605      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8606      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8607      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8608        lt_cv_prog_compiler_c_o=yes
8609      fi
8610    fi
8611    chmod u+w . 2>&5
8612    $RM conftest*
8613    # SGI C++ compiler will create directory out/ii_files/ for
8614    # template instantiation
8615    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8616    $RM out/* && rmdir out
8617    cd ..
8618    $RM -r conftest
8619    $RM conftest*
8620
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8624
8625
8626
8627
8628
8629
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8632 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   lt_cv_prog_compiler_c_o=no
8636    $RM -r conftest 2>/dev/null
8637    mkdir conftest
8638    cd conftest
8639    mkdir out
8640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8641
8642    lt_compiler_flag="-o out/conftest2.$ac_objext"
8643    # Insert the option either (1) after the last *FLAGS variable, or
8644    # (2) before a word containing "conftest.", or (3) at the end.
8645    # Note that $ac_compile itself does not contain backslashes and begins
8646    # with a dollar sign (not a hyphen), so the echo should work correctly.
8647    lt_compile=`echo "$ac_compile" | $SED \
8648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8650    -e 's:$: $lt_compiler_flag:'`
8651    (eval echo "\"\$as_me:8651: $lt_compile\"" >&5)
8652    (eval "$lt_compile" 2>out/conftest.err)
8653    ac_status=$?
8654    cat out/conftest.err >&5
8655    echo "$as_me:8655: \$? = $ac_status" >&5
8656    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8657    then
8658      # The compiler can only warn and ignore the option if not recognized
8659      # So say no if there are warnings
8660      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8661      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8662      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8663        lt_cv_prog_compiler_c_o=yes
8664      fi
8665    fi
8666    chmod u+w . 2>&5
8667    $RM conftest*
8668    # SGI C++ compiler will create directory out/ii_files/ for
8669    # template instantiation
8670    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8671    $RM out/* && rmdir out
8672    cd ..
8673    $RM -r conftest
8674    $RM conftest*
8675
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8679
8680
8681
8682
8683 hard_links="nottested"
8684 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8685   # do not overwrite the value of need_locks provided by the user
8686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8687 $as_echo_n "checking if we can lock with hard links... " >&6; }
8688   hard_links=yes
8689   $RM conftest*
8690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691   touch conftest.a
8692   ln conftest.a conftest.b 2>&5 || hard_links=no
8693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8695 $as_echo "$hard_links" >&6; }
8696   if test "$hard_links" = no; then
8697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8698 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8699     need_locks=warn
8700   fi
8701 else
8702   need_locks=no
8703 fi
8704
8705
8706
8707
8708
8709
8710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8712
8713   runpath_var=
8714   allow_undefined_flag=
8715   always_export_symbols=no
8716   archive_cmds=
8717   archive_expsym_cmds=
8718   compiler_needs_object=no
8719   enable_shared_with_static_runtimes=no
8720   export_dynamic_flag_spec=
8721   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8722   hardcode_automatic=no
8723   hardcode_direct=no
8724   hardcode_direct_absolute=no
8725   hardcode_libdir_flag_spec=
8726   hardcode_libdir_flag_spec_ld=
8727   hardcode_libdir_separator=
8728   hardcode_minus_L=no
8729   hardcode_shlibpath_var=unsupported
8730   inherit_rpath=no
8731   link_all_deplibs=unknown
8732   module_cmds=
8733   module_expsym_cmds=
8734   old_archive_from_new_cmds=
8735   old_archive_from_expsyms_cmds=
8736   thread_safe_flag_spec=
8737   whole_archive_flag_spec=
8738   # include_expsyms should be a list of space-separated symbols to be *always*
8739   # included in the symbol list
8740   include_expsyms=
8741   # exclude_expsyms can be an extended regexp of symbols to exclude
8742   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8743   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8744   # as well as any symbol that contains `d'.
8745   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8746   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8747   # platforms (ab)use it in PIC code, but their linkers get confused if
8748   # the symbol is explicitly referenced.  Since portable code cannot
8749   # rely on this symbol name, it's probably fine to never include it in
8750   # preloaded symbol tables.
8751   # Exclude shared library initialization/finalization symbols.
8752   extract_expsyms_cmds=
8753
8754   case $host_os in
8755   cygwin* | mingw* | pw32* | cegcc*)
8756     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8757     # When not using gcc, we currently assume that we are using
8758     # Microsoft Visual C++.
8759     if test "$GCC" != yes; then
8760       with_gnu_ld=no
8761     fi
8762     ;;
8763   interix*)
8764     # we just hope/assume this is gcc and not c89 (= MSVC++)
8765     with_gnu_ld=yes
8766     ;;
8767   openbsd*)
8768     with_gnu_ld=no
8769     ;;
8770   esac
8771
8772   ld_shlibs=yes
8773   if test "$with_gnu_ld" = yes; then
8774     # If archive_cmds runs LD, not CC, wlarc should be empty
8775     wlarc='${wl}'
8776
8777     # Set some defaults for GNU ld with shared library support. These
8778     # are reset later if shared libraries are not supported. Putting them
8779     # here allows them to be overridden if necessary.
8780     runpath_var=LD_RUN_PATH
8781     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782     export_dynamic_flag_spec='${wl}--export-dynamic'
8783     # ancient GNU ld didn't support --whole-archive et. al.
8784     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8785       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8786     else
8787       whole_archive_flag_spec=
8788     fi
8789     supports_anon_versioning=no
8790     case `$LD -v 2>&1` in
8791       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8792       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8793       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8794       *\ 2.11.*) ;; # other 2.11 versions
8795       *) supports_anon_versioning=yes ;;
8796     esac
8797
8798     # See if GNU ld supports shared libraries.
8799     case $host_os in
8800     aix[3-9]*)
8801       # On AIX/PPC, the GNU linker is very broken
8802       if test "$host_cpu" != ia64; then
8803         ld_shlibs=no
8804         cat <<_LT_EOF 1>&2
8805
8806 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8807 *** to be unable to reliably create shared libraries on AIX.
8808 *** Therefore, libtool is disabling shared libraries support.  If you
8809 *** really care for shared libraries, you may want to modify your PATH
8810 *** so that a non-GNU linker is found, and then restart.
8811
8812 _LT_EOF
8813       fi
8814       ;;
8815
8816     amigaos*)
8817       case $host_cpu in
8818       powerpc)
8819             # see comment about AmigaOS4 .so support
8820             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821             archive_expsym_cmds=''
8822         ;;
8823       m68k)
8824             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)'
8825             hardcode_libdir_flag_spec='-L$libdir'
8826             hardcode_minus_L=yes
8827         ;;
8828       esac
8829       ;;
8830
8831     beos*)
8832       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833         allow_undefined_flag=unsupported
8834         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835         # support --undefined.  This deserves some investigation.  FIXME
8836         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837       else
8838         ld_shlibs=no
8839       fi
8840       ;;
8841
8842     cygwin* | mingw* | pw32* | cegcc*)
8843       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844       # as there is no search path for DLLs.
8845       hardcode_libdir_flag_spec='-L$libdir'
8846       allow_undefined_flag=unsupported
8847       always_export_symbols=no
8848       enable_shared_with_static_runtimes=yes
8849       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8850
8851       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8852         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853         # If the export-symbols file already is a .def file (1st line
8854         # is EXPORTS), use it as is; otherwise, prepend...
8855         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8856           cp $export_symbols $output_objdir/$soname.def;
8857         else
8858           echo EXPORTS > $output_objdir/$soname.def;
8859           cat $export_symbols >> $output_objdir/$soname.def;
8860         fi~
8861         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866
8867     interix[3-9]*)
8868       hardcode_direct=no
8869       hardcode_shlibpath_var=no
8870       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8871       export_dynamic_flag_spec='${wl}-E'
8872       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8873       # Instead, shared libraries are loaded at an image base (0x10000000 by
8874       # default) and relocated if they conflict, which is a slow very memory
8875       # consuming and fragmenting process.  To avoid this, we pick a random,
8876       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8877       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8878       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8879       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8880       ;;
8881
8882     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8883       tmp_diet=no
8884       if test "$host_os" = linux-dietlibc; then
8885         case $cc_basename in
8886           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8887         esac
8888       fi
8889       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8890          && test "$tmp_diet" = no
8891       then
8892         tmp_addflag=
8893         tmp_sharedflag='-shared'
8894         case $cc_basename,$host_cpu in
8895         pgcc*)                          # Portland Group C compiler
8896           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8897           tmp_addflag=' $pic_flag'
8898           ;;
8899         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8900           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8901           tmp_addflag=' $pic_flag -Mnomain' ;;
8902         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8903           tmp_addflag=' -i_dynamic' ;;
8904         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8905           tmp_addflag=' -i_dynamic -nofor_main' ;;
8906         ifc* | ifort*)                  # Intel Fortran compiler
8907           tmp_addflag=' -nofor_main' ;;
8908         lf95*)                          # Lahey Fortran 8.1
8909           whole_archive_flag_spec=
8910           tmp_sharedflag='--shared' ;;
8911         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8912           tmp_sharedflag='-qmkshrobj'
8913           tmp_addflag= ;;
8914         esac
8915         case `$CC -V 2>&1 | sed 5q` in
8916         *Sun\ C*)                       # Sun C 5.9
8917           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8918           compiler_needs_object=yes
8919           tmp_sharedflag='-G' ;;
8920         *Sun\ F*)                       # Sun Fortran 8.3
8921           tmp_sharedflag='-G' ;;
8922         esac
8923         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924
8925         if test "x$supports_anon_versioning" = xyes; then
8926           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928             echo "local: *; };" >> $output_objdir/$libname.ver~
8929             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8930         fi
8931
8932         case $cc_basename in
8933         xlf*)
8934           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8935           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8936           hardcode_libdir_flag_spec=
8937           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8938           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8939           if test "x$supports_anon_versioning" = xyes; then
8940             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8941               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8942               echo "local: *; };" >> $output_objdir/$libname.ver~
8943               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8944           fi
8945           ;;
8946         esac
8947       else
8948         ld_shlibs=no
8949       fi
8950       ;;
8951
8952     netbsd*)
8953       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8954         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8955         wlarc=
8956       else
8957         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8958         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8959       fi
8960       ;;
8961
8962     solaris*)
8963       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8964         ld_shlibs=no
8965         cat <<_LT_EOF 1>&2
8966
8967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8968 *** create shared libraries on Solaris systems.  Therefore, libtool
8969 *** is disabling shared libraries support.  We urge you to upgrade GNU
8970 *** binutils to release 2.9.1 or newer.  Another option is to modify
8971 *** your PATH or compiler configuration so that the native linker is
8972 *** used, and then restart.
8973
8974 _LT_EOF
8975       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8976         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978       else
8979         ld_shlibs=no
8980       fi
8981       ;;
8982
8983     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8984       case `$LD -v 2>&1` in
8985         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8986         ld_shlibs=no
8987         cat <<_LT_EOF 1>&2
8988
8989 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8990 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8991 *** is disabling shared libraries support.  We urge you to upgrade GNU
8992 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8993 *** your PATH or compiler configuration so that the native linker is
8994 *** used, and then restart.
8995
8996 _LT_EOF
8997         ;;
8998         *)
8999           # For security reasons, it is highly recommended that you always
9000           # use absolute paths for naming shared libraries, and exclude the
9001           # DT_RUNPATH tag from executables and libraries.  But doing so
9002           # requires that you compile everything twice, which is a pain.
9003           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9005             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007           else
9008             ld_shlibs=no
9009           fi
9010         ;;
9011       esac
9012       ;;
9013
9014     sunos4*)
9015       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9016       wlarc=
9017       hardcode_direct=yes
9018       hardcode_shlibpath_var=no
9019       ;;
9020
9021     *)
9022       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9025       else
9026         ld_shlibs=no
9027       fi
9028       ;;
9029     esac
9030
9031     if test "$ld_shlibs" = no; then
9032       runpath_var=
9033       hardcode_libdir_flag_spec=
9034       export_dynamic_flag_spec=
9035       whole_archive_flag_spec=
9036     fi
9037   else
9038     # PORTME fill in a description of your system's linker (not GNU ld)
9039     case $host_os in
9040     aix3*)
9041       allow_undefined_flag=unsupported
9042       always_export_symbols=yes
9043       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'
9044       # Note: this linker hardcodes the directories in LIBPATH if there
9045       # are no directories specified by -L.
9046       hardcode_minus_L=yes
9047       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9048         # Neither direct hardcoding nor static linking is supported with a
9049         # broken collect2.
9050         hardcode_direct=unsupported
9051       fi
9052       ;;
9053
9054     aix[4-9]*)
9055       if test "$host_cpu" = ia64; then
9056         # On IA64, the linker does run time linking by default, so we don't
9057         # have to do anything special.
9058         aix_use_runtimelinking=no
9059         exp_sym_flag='-Bexport'
9060         no_entry_flag=""
9061       else
9062         # If we're using GNU nm, then we don't want the "-C" option.
9063         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9064         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9065           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'
9066         else
9067           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'
9068         fi
9069         aix_use_runtimelinking=no
9070
9071         # Test if we are trying to use run time linking or normal
9072         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9073         # need to do runtime linking.
9074         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9075           for ld_flag in $LDFLAGS; do
9076           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9077             aix_use_runtimelinking=yes
9078             break
9079           fi
9080           done
9081           ;;
9082         esac
9083
9084         exp_sym_flag='-bexport'
9085         no_entry_flag='-bnoentry'
9086       fi
9087
9088       # When large executables or shared objects are built, AIX ld can
9089       # have problems creating the table of contents.  If linking a library
9090       # or program results in "error TOC overflow" add -mminimal-toc to
9091       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9092       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9093
9094       archive_cmds=''
9095       hardcode_direct=yes
9096       hardcode_direct_absolute=yes
9097       hardcode_libdir_separator=':'
9098       link_all_deplibs=yes
9099       file_list_spec='${wl}-f,'
9100
9101       if test "$GCC" = yes; then
9102         case $host_os in aix4.[012]|aix4.[012].*)
9103         # We only want to do this on AIX 4.2 and lower, the check
9104         # below for broken collect2 doesn't work under 4.3+
9105           collect2name=`${CC} -print-prog-name=collect2`
9106           if test -f "$collect2name" &&
9107            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9108           then
9109           # We have reworked collect2
9110           :
9111           else
9112           # We have old collect2
9113           hardcode_direct=unsupported
9114           # It fails to find uninstalled libraries when the uninstalled
9115           # path is not listed in the libpath.  Setting hardcode_minus_L
9116           # to unsupported forces relinking
9117           hardcode_minus_L=yes
9118           hardcode_libdir_flag_spec='-L$libdir'
9119           hardcode_libdir_separator=
9120           fi
9121           ;;
9122         esac
9123         shared_flag='-shared'
9124         if test "$aix_use_runtimelinking" = yes; then
9125           shared_flag="$shared_flag "'${wl}-G'
9126         fi
9127       else
9128         # not using gcc
9129         if test "$host_cpu" = ia64; then
9130         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9131         # chokes on -Wl,-G. The following line is correct:
9132           shared_flag='-G'
9133         else
9134           if test "$aix_use_runtimelinking" = yes; then
9135             shared_flag='${wl}-G'
9136           else
9137             shared_flag='${wl}-bM:SRE'
9138           fi
9139         fi
9140       fi
9141
9142       export_dynamic_flag_spec='${wl}-bexpall'
9143       # It seems that -bexpall does not export symbols beginning with
9144       # underscore (_), so it is better to generate a list of symbols to export.
9145       always_export_symbols=yes
9146       if test "$aix_use_runtimelinking" = yes; then
9147         # Warning - without using the other runtime loading flags (-brtl),
9148         # -berok will link without error, but may produce a broken library.
9149         allow_undefined_flag='-berok'
9150         # Determine the default libpath from the value encoded in an
9151         # empty executable.
9152         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h.  */
9154
9155 int
9156 main ()
9157 {
9158
9159   ;
9160   return 0;
9161 }
9162 _ACEOF
9163 if ac_fn_c_try_link "$LINENO"; then :
9164
9165 lt_aix_libpath_sed='
9166     /Import File Strings/,/^$/ {
9167         /^0/ {
9168             s/^0  *\(.*\)$/\1/
9169             p
9170         }
9171     }'
9172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173 # Check for a 64-bit object if we didn't find anything.
9174 if test -z "$aix_libpath"; then
9175   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 fi
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179     conftest$ac_exeext conftest.$ac_ext
9180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9181
9182         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9183         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9184       else
9185         if test "$host_cpu" = ia64; then
9186           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9187           allow_undefined_flag="-z nodefs"
9188           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9189         else
9190          # Determine the default libpath from the value encoded in an
9191          # empty executable.
9192          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h.  */
9194
9195 int
9196 main ()
9197 {
9198
9199   ;
9200   return 0;
9201 }
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204
9205 lt_aix_libpath_sed='
9206     /Import File Strings/,/^$/ {
9207         /^0/ {
9208             s/^0  *\(.*\)$/\1/
9209             p
9210         }
9211     }'
9212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213 # Check for a 64-bit object if we didn't find anything.
9214 if test -z "$aix_libpath"; then
9215   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216 fi
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219     conftest$ac_exeext conftest.$ac_ext
9220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9221
9222          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9223           # Warning - without using the other run time loading flags,
9224           # -berok will link without error, but may produce a broken library.
9225           no_undefined_flag=' ${wl}-bernotok'
9226           allow_undefined_flag=' ${wl}-berok'
9227           # Exported symbols can be pulled into shared objects from archives
9228           whole_archive_flag_spec='$convenience'
9229           archive_cmds_need_lc=yes
9230           # This is similar to how AIX traditionally builds its shared libraries.
9231           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9232         fi
9233       fi
9234       ;;
9235
9236     amigaos*)
9237       case $host_cpu in
9238       powerpc)
9239             # see comment about AmigaOS4 .so support
9240             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241             archive_expsym_cmds=''
9242         ;;
9243       m68k)
9244             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)'
9245             hardcode_libdir_flag_spec='-L$libdir'
9246             hardcode_minus_L=yes
9247         ;;
9248       esac
9249       ;;
9250
9251     bsdi[45]*)
9252       export_dynamic_flag_spec=-rdynamic
9253       ;;
9254
9255     cygwin* | mingw* | pw32* | cegcc*)
9256       # When not using gcc, we currently assume that we are using
9257       # Microsoft Visual C++.
9258       # hardcode_libdir_flag_spec is actually meaningless, as there is
9259       # no search path for DLLs.
9260       hardcode_libdir_flag_spec=' '
9261       allow_undefined_flag=unsupported
9262       # Tell ltmain to make .lib files, not .a files.
9263       libext=lib
9264       # Tell ltmain to make .dll files, not .so files.
9265       shrext_cmds=".dll"
9266       # FIXME: Setting linknames here is a bad hack.
9267       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9268       # The linker will automatically build a .lib file if we build a DLL.
9269       old_archive_from_new_cmds='true'
9270       # FIXME: Should let the user specify the lib program.
9271       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9272       fix_srcfile_path='`cygpath -w "$srcfile"`'
9273       enable_shared_with_static_runtimes=yes
9274       ;;
9275
9276     darwin* | rhapsody*)
9277
9278
9279   archive_cmds_need_lc=no
9280   hardcode_direct=no
9281   hardcode_automatic=yes
9282   hardcode_shlibpath_var=unsupported
9283   whole_archive_flag_spec=''
9284   link_all_deplibs=yes
9285   allow_undefined_flag="$_lt_dar_allow_undefined"
9286   case $cc_basename in
9287      ifort*) _lt_dar_can_shared=yes ;;
9288      *) _lt_dar_can_shared=$GCC ;;
9289   esac
9290   if test "$_lt_dar_can_shared" = "yes"; then
9291     output_verbose_link_cmd=echo
9292     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9293     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9294     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9295     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9296
9297   else
9298   ld_shlibs=no
9299   fi
9300
9301       ;;
9302
9303     dgux*)
9304       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305       hardcode_libdir_flag_spec='-L$libdir'
9306       hardcode_shlibpath_var=no
9307       ;;
9308
9309     freebsd1*)
9310       ld_shlibs=no
9311       ;;
9312
9313     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9314     # support.  Future versions do this automatically, but an explicit c++rt0.o
9315     # does not break anything, and helps significantly (at the cost of a little
9316     # extra space).
9317     freebsd2.2*)
9318       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9319       hardcode_libdir_flag_spec='-R$libdir'
9320       hardcode_direct=yes
9321       hardcode_shlibpath_var=no
9322       ;;
9323
9324     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9325     freebsd2*)
9326       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9327       hardcode_direct=yes
9328       hardcode_minus_L=yes
9329       hardcode_shlibpath_var=no
9330       ;;
9331
9332     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9333     freebsd* | dragonfly*)
9334       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9335       hardcode_libdir_flag_spec='-R$libdir'
9336       hardcode_direct=yes
9337       hardcode_shlibpath_var=no
9338       ;;
9339
9340     hpux9*)
9341       if test "$GCC" = yes; then
9342         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'
9343       else
9344         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'
9345       fi
9346       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9347       hardcode_libdir_separator=:
9348       hardcode_direct=yes
9349
9350       # hardcode_minus_L: Not really in the search PATH,
9351       # but as the default location of the library.
9352       hardcode_minus_L=yes
9353       export_dynamic_flag_spec='${wl}-E'
9354       ;;
9355
9356     hpux10*)
9357       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9358         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359       else
9360         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9361       fi
9362       if test "$with_gnu_ld" = no; then
9363         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364         hardcode_libdir_flag_spec_ld='+b $libdir'
9365         hardcode_libdir_separator=:
9366         hardcode_direct=yes
9367         hardcode_direct_absolute=yes
9368         export_dynamic_flag_spec='${wl}-E'
9369         # hardcode_minus_L: Not really in the search PATH,
9370         # but as the default location of the library.
9371         hardcode_minus_L=yes
9372       fi
9373       ;;
9374
9375     hpux11*)
9376       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9377         case $host_cpu in
9378         hppa*64*)
9379           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9380           ;;
9381         ia64*)
9382           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9383           ;;
9384         *)
9385           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386           ;;
9387         esac
9388       else
9389         case $host_cpu in
9390         hppa*64*)
9391           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392           ;;
9393         ia64*)
9394           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9395           ;;
9396         *)
9397           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398           ;;
9399         esac
9400       fi
9401       if test "$with_gnu_ld" = no; then
9402         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9403         hardcode_libdir_separator=:
9404
9405         case $host_cpu in
9406         hppa*64*|ia64*)
9407           hardcode_direct=no
9408           hardcode_shlibpath_var=no
9409           ;;
9410         *)
9411           hardcode_direct=yes
9412           hardcode_direct_absolute=yes
9413           export_dynamic_flag_spec='${wl}-E'
9414
9415           # hardcode_minus_L: Not really in the search PATH,
9416           # but as the default location of the library.
9417           hardcode_minus_L=yes
9418           ;;
9419         esac
9420       fi
9421       ;;
9422
9423     irix5* | irix6* | nonstopux*)
9424       if test "$GCC" = yes; then
9425         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9426         # Try to use the -exported_symbol ld option, if it does not
9427         # work, assume that -exports_file does not work either and
9428         # implicitly export all symbols.
9429         save_LDFLAGS="$LDFLAGS"
9430         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9431         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h.  */
9433 int foo(void) {}
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9437
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext \
9440     conftest$ac_exeext conftest.$ac_ext
9441         LDFLAGS="$save_LDFLAGS"
9442       else
9443         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9444         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9445       fi
9446       archive_cmds_need_lc='no'
9447       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448       hardcode_libdir_separator=:
9449       inherit_rpath=yes
9450       link_all_deplibs=yes
9451       ;;
9452
9453     netbsd*)
9454       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9455         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9456       else
9457         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9458       fi
9459       hardcode_libdir_flag_spec='-R$libdir'
9460       hardcode_direct=yes
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     newsos6)
9465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466       hardcode_direct=yes
9467       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468       hardcode_libdir_separator=:
9469       hardcode_shlibpath_var=no
9470       ;;
9471
9472     *nto* | *qnx*)
9473       ;;
9474
9475     openbsd*)
9476       if test -f /usr/libexec/ld.so; then
9477         hardcode_direct=yes
9478         hardcode_shlibpath_var=no
9479         hardcode_direct_absolute=yes
9480         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9481           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9482           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9483           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484           export_dynamic_flag_spec='${wl}-E'
9485         else
9486           case $host_os in
9487            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9488              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489              hardcode_libdir_flag_spec='-R$libdir'
9490              ;;
9491            *)
9492              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9493              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9494              ;;
9495           esac
9496         fi
9497       else
9498         ld_shlibs=no
9499       fi
9500       ;;
9501
9502     os2*)
9503       hardcode_libdir_flag_spec='-L$libdir'
9504       hardcode_minus_L=yes
9505       allow_undefined_flag=unsupported
9506       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'
9507       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9508       ;;
9509
9510     osf3*)
9511       if test "$GCC" = yes; then
9512         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9513         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9514       else
9515         allow_undefined_flag=' -expect_unresolved \*'
9516         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9517       fi
9518       archive_cmds_need_lc='no'
9519       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520       hardcode_libdir_separator=:
9521       ;;
9522
9523     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9524       if test "$GCC" = yes; then
9525         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9526         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9527         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528       else
9529         allow_undefined_flag=' -expect_unresolved \*'
9530         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9531         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9532         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9533
9534         # Both c and cxx compiler support -rpath directly
9535         hardcode_libdir_flag_spec='-rpath $libdir'
9536       fi
9537       archive_cmds_need_lc='no'
9538       hardcode_libdir_separator=:
9539       ;;
9540
9541     solaris*)
9542       no_undefined_flag=' -z defs'
9543       if test "$GCC" = yes; then
9544         wlarc='${wl}'
9545         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9547           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9548       else
9549         case `$CC -V 2>&1` in
9550         *"Compilers 5.0"*)
9551           wlarc=''
9552           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9554           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9555           ;;
9556         *)
9557           wlarc='${wl}'
9558           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9559           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9561           ;;
9562         esac
9563       fi
9564       hardcode_libdir_flag_spec='-R$libdir'
9565       hardcode_shlibpath_var=no
9566       case $host_os in
9567       solaris2.[0-5] | solaris2.[0-5].*) ;;
9568       *)
9569         # The compiler driver will combine and reorder linker options,
9570         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9571         # but is careful enough not to reorder.
9572         # Supported since Solaris 2.6 (maybe 2.5.1?)
9573         if test "$GCC" = yes; then
9574           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9575         else
9576           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9577         fi
9578         ;;
9579       esac
9580       link_all_deplibs=yes
9581       ;;
9582
9583     sunos4*)
9584       if test "x$host_vendor" = xsequent; then
9585         # Use $CC to link under sequent, because it throws in some extra .o
9586         # files that make .init and .fini sections work.
9587         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9588       else
9589         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9590       fi
9591       hardcode_libdir_flag_spec='-L$libdir'
9592       hardcode_direct=yes
9593       hardcode_minus_L=yes
9594       hardcode_shlibpath_var=no
9595       ;;
9596
9597     sysv4)
9598       case $host_vendor in
9599         sni)
9600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601           hardcode_direct=yes # is this really true???
9602         ;;
9603         siemens)
9604           ## LD is ld it makes a PLAMLIB
9605           ## CC just makes a GrossModule.
9606           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9607           reload_cmds='$CC -r -o $output$reload_objs'
9608           hardcode_direct=no
9609         ;;
9610         motorola)
9611           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9613         ;;
9614       esac
9615       runpath_var='LD_RUN_PATH'
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     sysv4.3*)
9620       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621       hardcode_shlibpath_var=no
9622       export_dynamic_flag_spec='-Bexport'
9623       ;;
9624
9625     sysv4*MP*)
9626       if test -d /usr/nec; then
9627         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628         hardcode_shlibpath_var=no
9629         runpath_var=LD_RUN_PATH
9630         hardcode_runpath_var=yes
9631         ld_shlibs=yes
9632       fi
9633       ;;
9634
9635     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9636       no_undefined_flag='${wl}-z,text'
9637       archive_cmds_need_lc=no
9638       hardcode_shlibpath_var=no
9639       runpath_var='LD_RUN_PATH'
9640
9641       if test "$GCC" = yes; then
9642         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644       else
9645         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647       fi
9648       ;;
9649
9650     sysv5* | sco3.2v5* | sco5v6*)
9651       # Note: We can NOT use -z defs as we might desire, because we do not
9652       # link with -lc, and that would cause any symbols used from libc to
9653       # always be unresolved, which means just about no library would
9654       # ever link correctly.  If we're not using GNU ld we use -z text
9655       # though, which does catch some bad symbols but isn't as heavy-handed
9656       # as -z defs.
9657       no_undefined_flag='${wl}-z,text'
9658       allow_undefined_flag='${wl}-z,nodefs'
9659       archive_cmds_need_lc=no
9660       hardcode_shlibpath_var=no
9661       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9662       hardcode_libdir_separator=':'
9663       link_all_deplibs=yes
9664       export_dynamic_flag_spec='${wl}-Bexport'
9665       runpath_var='LD_RUN_PATH'
9666
9667       if test "$GCC" = yes; then
9668         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670       else
9671         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673       fi
9674       ;;
9675
9676     uts4*)
9677       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678       hardcode_libdir_flag_spec='-L$libdir'
9679       hardcode_shlibpath_var=no
9680       ;;
9681
9682     *)
9683       ld_shlibs=no
9684       ;;
9685     esac
9686
9687     if test x$host_vendor = xsni; then
9688       case $host in
9689       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9690         export_dynamic_flag_spec='${wl}-Blargedynsym'
9691         ;;
9692       esac
9693     fi
9694   fi
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9697 $as_echo "$ld_shlibs" >&6; }
9698 test "$ld_shlibs" = no && can_build_shared=no
9699
9700 with_gnu_ld=$with_gnu_ld
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716 #
9717 # Do we need to explicitly link libc?
9718 #
9719 case "x$archive_cmds_need_lc" in
9720 x|xyes)
9721   # Assume -lc should be added
9722   archive_cmds_need_lc=yes
9723
9724   if test "$enable_shared" = yes && test "$GCC" = yes; then
9725     case $archive_cmds in
9726     *'~'*)
9727       # FIXME: we may have to deal with multi-command sequences.
9728       ;;
9729     '$CC '*)
9730       # Test whether the compiler implicitly links with -lc since on some
9731       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9732       # to ld, don't add -lc before -lgcc.
9733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9734 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9735 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   $RM conftest*
9739         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9740
9741         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9742   (eval $ac_compile) 2>&5
9743   ac_status=$?
9744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9745   test $ac_status = 0; } 2>conftest.err; then
9746           soname=conftest
9747           lib=conftest
9748           libobjs=conftest.$ac_objext
9749           deplibs=
9750           wl=$lt_prog_compiler_wl
9751           pic_flag=$lt_prog_compiler_pic
9752           compiler_flags=-v
9753           linker_flags=-v
9754           verstring=
9755           output_objdir=.
9756           libname=conftest
9757           lt_save_allow_undefined_flag=$allow_undefined_flag
9758           allow_undefined_flag=
9759           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9760   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9761   ac_status=$?
9762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9763   test $ac_status = 0; }
9764           then
9765             lt_cv_archive_cmds_need_lc=no
9766           else
9767             lt_cv_archive_cmds_need_lc=yes
9768           fi
9769           allow_undefined_flag=$lt_save_allow_undefined_flag
9770         else
9771           cat conftest.err 1>&5
9772         fi
9773         $RM conftest*
9774
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9777 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9778       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9779       ;;
9780     esac
9781   fi
9782   ;;
9783 esac
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9942 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9943
9944 if test "$GCC" = yes; then
9945   case $host_os in
9946     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9947     *) lt_awk_arg="/^libraries:/" ;;
9948   esac
9949   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9950   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9951     # if the path contains ";" then we assume it to be the separator
9952     # otherwise default to the standard path separator (i.e. ":") - it is
9953     # assumed that no part of a normal pathname contains ";" but that should
9954     # okay in the real world where ";" in dirpaths is itself problematic.
9955     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9956   else
9957     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9958   fi
9959   # Ok, now we have the path, separated by spaces, we can step through it
9960   # and add multilib dir if necessary.
9961   lt_tmp_lt_search_path_spec=
9962   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9963   for lt_sys_path in $lt_search_path_spec; do
9964     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9965       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9966     else
9967       test -d "$lt_sys_path" && \
9968         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9969     fi
9970   done
9971   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9972 BEGIN {RS=" "; FS="/|\n";} {
9973   lt_foo="";
9974   lt_count=0;
9975   for (lt_i = NF; lt_i > 0; lt_i--) {
9976     if ($lt_i != "" && $lt_i != ".") {
9977       if ($lt_i == "..") {
9978         lt_count++;
9979       } else {
9980         if (lt_count == 0) {
9981           lt_foo="/" $lt_i lt_foo;
9982         } else {
9983           lt_count--;
9984         }
9985       }
9986     }
9987   }
9988   if (lt_foo != "") { lt_freq[lt_foo]++; }
9989   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9990 }'`
9991   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9992 else
9993   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9994 fi
9995 library_names_spec=
9996 libname_spec='lib$name'
9997 soname_spec=
9998 shrext_cmds=".so"
9999 postinstall_cmds=
10000 postuninstall_cmds=
10001 finish_cmds=
10002 finish_eval=
10003 shlibpath_var=
10004 shlibpath_overrides_runpath=unknown
10005 version_type=none
10006 dynamic_linker="$host_os ld.so"
10007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10008 need_lib_prefix=unknown
10009 hardcode_into_libs=no
10010
10011 # when you set need_version to no, make sure it does not cause -set_version
10012 # flags to be left without arguments
10013 need_version=unknown
10014
10015 case $host_os in
10016 aix3*)
10017   version_type=linux
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10019   shlibpath_var=LIBPATH
10020
10021   # AIX 3 has no versioning support, so we append a major version to the name.
10022   soname_spec='${libname}${release}${shared_ext}$major'
10023   ;;
10024
10025 aix[4-9]*)
10026   version_type=linux
10027   need_lib_prefix=no
10028   need_version=no
10029   hardcode_into_libs=yes
10030   if test "$host_cpu" = ia64; then
10031     # AIX 5 supports IA64
10032     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10033     shlibpath_var=LD_LIBRARY_PATH
10034   else
10035     # With GCC up to 2.95.x, collect2 would create an import file
10036     # for dependence libraries.  The import file would start with
10037     # the line `#! .'.  This would cause the generated library to
10038     # depend on `.', always an invalid library.  This was fixed in
10039     # development snapshots of GCC prior to 3.0.
10040     case $host_os in
10041       aix4 | aix4.[01] | aix4.[01].*)
10042       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10043            echo ' yes '
10044            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10045         :
10046       else
10047         can_build_shared=no
10048       fi
10049       ;;
10050     esac
10051     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10052     # soname into executable. Probably we can add versioning support to
10053     # collect2, so additional links can be useful in future.
10054     if test "$aix_use_runtimelinking" = yes; then
10055       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10056       # instead of lib<name>.a to let people know that these are not
10057       # typical AIX shared libraries.
10058       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059     else
10060       # We preserve .a as extension for shared libraries through AIX4.2
10061       # and later when we are not doing run time linking.
10062       library_names_spec='${libname}${release}.a $libname.a'
10063       soname_spec='${libname}${release}${shared_ext}$major'
10064     fi
10065     shlibpath_var=LIBPATH
10066   fi
10067   ;;
10068
10069 amigaos*)
10070   case $host_cpu in
10071   powerpc)
10072     # Since July 2007 AmigaOS4 officially supports .so libraries.
10073     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075     ;;
10076   m68k)
10077     library_names_spec='$libname.ixlibrary $libname.a'
10078     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10079     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'
10080     ;;
10081   esac
10082   ;;
10083
10084 beos*)
10085   library_names_spec='${libname}${shared_ext}'
10086   dynamic_linker="$host_os ld.so"
10087   shlibpath_var=LIBRARY_PATH
10088   ;;
10089
10090 bsdi[45]*)
10091   version_type=linux
10092   need_version=no
10093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094   soname_spec='${libname}${release}${shared_ext}$major'
10095   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10096   shlibpath_var=LD_LIBRARY_PATH
10097   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10098   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10099   # the default ld.so.conf also contains /usr/contrib/lib and
10100   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10101   # libtool to hard-code these into programs
10102   ;;
10103
10104 cygwin* | mingw* | pw32* | cegcc*)
10105   version_type=windows
10106   shrext_cmds=".dll"
10107   need_version=no
10108   need_lib_prefix=no
10109
10110   case $GCC,$host_os in
10111   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10112     library_names_spec='$libname.dll.a'
10113     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10114     postinstall_cmds='base_file=`basename \${file}`~
10115       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10116       dldir=$destdir/`dirname \$dlpath`~
10117       test -d \$dldir || mkdir -p \$dldir~
10118       $install_prog $dir/$dlname \$dldir/$dlname~
10119       chmod a+x \$dldir/$dlname~
10120       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10121         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10122       fi'
10123     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10124       dlpath=$dir/\$dldll~
10125        $RM \$dlpath'
10126     shlibpath_overrides_runpath=yes
10127
10128     case $host_os in
10129     cygwin*)
10130       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10131       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10133       ;;
10134     mingw* | cegcc*)
10135       # MinGW DLLs use traditional 'lib' prefix
10136       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10138       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10139         # It is most probably a Windows format PATH printed by
10140         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10141         # path with ; separators, and with drive letters. We can handle the
10142         # drive letters (cygwin fileutils understands them), so leave them,
10143         # especially as we might pass files found there to a mingw objdump,
10144         # which wouldn't understand a cygwinified path. Ahh.
10145         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10146       else
10147         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10148       fi
10149       ;;
10150     pw32*)
10151       # pw32 DLLs use 'pw' prefix rather than 'lib'
10152       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153       ;;
10154     esac
10155     ;;
10156
10157   *)
10158     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10159     ;;
10160   esac
10161   dynamic_linker='Win32 ld.exe'
10162   # FIXME: first we should search . and the directory the executable is in
10163   shlibpath_var=PATH
10164   ;;
10165
10166 darwin* | rhapsody*)
10167   dynamic_linker="$host_os dyld"
10168   version_type=darwin
10169   need_lib_prefix=no
10170   need_version=no
10171   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10172   soname_spec='${libname}${release}${major}$shared_ext'
10173   shlibpath_overrides_runpath=yes
10174   shlibpath_var=DYLD_LIBRARY_PATH
10175   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10176
10177   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10178   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10179   ;;
10180
10181 dgux*)
10182   version_type=linux
10183   need_lib_prefix=no
10184   need_version=no
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10186   soname_spec='${libname}${release}${shared_ext}$major'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   ;;
10189
10190 freebsd1*)
10191   dynamic_linker=no
10192   ;;
10193
10194 freebsd* | dragonfly*)
10195   # DragonFly does not have aout.  When/if they implement a new
10196   # versioning mechanism, adjust this.
10197   if test -x /usr/bin/objformat; then
10198     objformat=`/usr/bin/objformat`
10199   else
10200     case $host_os in
10201     freebsd[123]*) objformat=aout ;;
10202     *) objformat=elf ;;
10203     esac
10204   fi
10205   version_type=freebsd-$objformat
10206   case $version_type in
10207     freebsd-elf*)
10208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10209       need_version=no
10210       need_lib_prefix=no
10211       ;;
10212     freebsd-*)
10213       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10214       need_version=yes
10215       ;;
10216   esac
10217   shlibpath_var=LD_LIBRARY_PATH
10218   case $host_os in
10219   freebsd2*)
10220     shlibpath_overrides_runpath=yes
10221     ;;
10222   freebsd3.[01]* | freebsdelf3.[01]*)
10223     shlibpath_overrides_runpath=yes
10224     hardcode_into_libs=yes
10225     ;;
10226   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10227   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10228     shlibpath_overrides_runpath=no
10229     hardcode_into_libs=yes
10230     ;;
10231   *) # from 4.6 on, and DragonFly
10232     shlibpath_overrides_runpath=yes
10233     hardcode_into_libs=yes
10234     ;;
10235   esac
10236   ;;
10237
10238 gnu*)
10239   version_type=linux
10240   need_lib_prefix=no
10241   need_version=no
10242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10243   soname_spec='${libname}${release}${shared_ext}$major'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   hardcode_into_libs=yes
10246   ;;
10247
10248 hpux9* | hpux10* | hpux11*)
10249   # Give a soname corresponding to the major version so that dld.sl refuses to
10250   # link against other versions.
10251   version_type=sunos
10252   need_lib_prefix=no
10253   need_version=no
10254   case $host_cpu in
10255   ia64*)
10256     shrext_cmds='.so'
10257     hardcode_into_libs=yes
10258     dynamic_linker="$host_os dld.so"
10259     shlibpath_var=LD_LIBRARY_PATH
10260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262     soname_spec='${libname}${release}${shared_ext}$major'
10263     if test "X$HPUX_IA64_MODE" = X32; then
10264       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10265     else
10266       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10267     fi
10268     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10269     ;;
10270   hppa*64*)
10271     shrext_cmds='.sl'
10272     hardcode_into_libs=yes
10273     dynamic_linker="$host_os dld.sl"
10274     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10275     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277     soname_spec='${libname}${release}${shared_ext}$major'
10278     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10279     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10280     ;;
10281   *)
10282     shrext_cmds='.sl'
10283     dynamic_linker="$host_os dld.sl"
10284     shlibpath_var=SHLIB_PATH
10285     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287     soname_spec='${libname}${release}${shared_ext}$major'
10288     ;;
10289   esac
10290   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10291   postinstall_cmds='chmod 555 $lib'
10292   ;;
10293
10294 interix[3-9]*)
10295   version_type=linux
10296   need_lib_prefix=no
10297   need_version=no
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10299   soname_spec='${libname}${release}${shared_ext}$major'
10300   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   shlibpath_overrides_runpath=no
10303   hardcode_into_libs=yes
10304   ;;
10305
10306 irix5* | irix6* | nonstopux*)
10307   case $host_os in
10308     nonstopux*) version_type=nonstopux ;;
10309     *)
10310         if test "$lt_cv_prog_gnu_ld" = yes; then
10311                 version_type=linux
10312         else
10313                 version_type=irix
10314         fi ;;
10315   esac
10316   need_lib_prefix=no
10317   need_version=no
10318   soname_spec='${libname}${release}${shared_ext}$major'
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10320   case $host_os in
10321   irix5* | nonstopux*)
10322     libsuff= shlibsuff=
10323     ;;
10324   *)
10325     case $LD in # libtool.m4 will add one of these switches to LD
10326     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10327       libsuff= shlibsuff= libmagic=32-bit;;
10328     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10329       libsuff=32 shlibsuff=N32 libmagic=N32;;
10330     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10331       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10332     *) libsuff= shlibsuff= libmagic=never-match;;
10333     esac
10334     ;;
10335   esac
10336   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10337   shlibpath_overrides_runpath=no
10338   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10339   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10340   hardcode_into_libs=yes
10341   ;;
10342
10343 # No shared lib support for Linux oldld, aout, or coff.
10344 linux*oldld* | linux*aout* | linux*coff*)
10345   dynamic_linker=no
10346   ;;
10347
10348 # This must be Linux ELF.
10349 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10350   version_type=linux
10351   need_lib_prefix=no
10352   need_version=no
10353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354   soname_spec='${libname}${release}${shared_ext}$major'
10355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   shlibpath_overrides_runpath=no
10358
10359   # Some binutils ld are patched to set DT_RUNPATH
10360   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   lt_cv_shlibpath_overrides_runpath=no
10364     save_LDFLAGS=$LDFLAGS
10365     save_libdir=$libdir
10366     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10367          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h.  */
10370
10371 int
10372 main ()
10373 {
10374
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 if ac_fn_c_try_link "$LINENO"; then :
10380   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10381   lt_cv_shlibpath_overrides_runpath=yes
10382 fi
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext \
10385     conftest$ac_exeext conftest.$ac_ext
10386     LDFLAGS=$save_LDFLAGS
10387     libdir=$save_libdir
10388
10389 fi
10390
10391   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10392
10393   # This implies no fast_install, which is unacceptable.
10394   # Some rework will be needed to allow for fast_install
10395   # before this can be enabled.
10396   hardcode_into_libs=yes
10397
10398   # Append ld.so.conf contents to the search path
10399   if test -f /etc/ld.so.conf; then
10400     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10401     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10402   fi
10403
10404   # We used to test for /lib/ld.so.1 and disable shared libraries on
10405   # powerpc, because MkLinux only supported shared libraries with the
10406   # GNU dynamic linker.  Since this was broken with cross compilers,
10407   # most powerpc-linux boxes support dynamic linking these days and
10408   # people can always --disable-shared, the test was removed, and we
10409   # assume the GNU/Linux dynamic linker is in use.
10410   dynamic_linker='GNU/Linux ld.so'
10411   ;;
10412
10413 netbsd*)
10414   version_type=sunos
10415   need_lib_prefix=no
10416   need_version=no
10417   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10419     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10420     dynamic_linker='NetBSD (a.out) ld.so'
10421   else
10422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10423     soname_spec='${libname}${release}${shared_ext}$major'
10424     dynamic_linker='NetBSD ld.elf_so'
10425   fi
10426   shlibpath_var=LD_LIBRARY_PATH
10427   shlibpath_overrides_runpath=yes
10428   hardcode_into_libs=yes
10429   ;;
10430
10431 newsos6)
10432   version_type=linux
10433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434   shlibpath_var=LD_LIBRARY_PATH
10435   shlibpath_overrides_runpath=yes
10436   ;;
10437
10438 *nto* | *qnx*)
10439   version_type=qnx
10440   need_lib_prefix=no
10441   need_version=no
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   shlibpath_var=LD_LIBRARY_PATH
10445   shlibpath_overrides_runpath=no
10446   hardcode_into_libs=yes
10447   dynamic_linker='ldqnx.so'
10448   ;;
10449
10450 openbsd*)
10451   version_type=sunos
10452   sys_lib_dlsearch_path_spec="/usr/lib"
10453   need_lib_prefix=no
10454   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10455   case $host_os in
10456     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10457     *)                          need_version=no  ;;
10458   esac
10459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10461   shlibpath_var=LD_LIBRARY_PATH
10462   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10463     case $host_os in
10464       openbsd2.[89] | openbsd2.[89].*)
10465         shlibpath_overrides_runpath=no
10466         ;;
10467       *)
10468         shlibpath_overrides_runpath=yes
10469         ;;
10470       esac
10471   else
10472     shlibpath_overrides_runpath=yes
10473   fi
10474   ;;
10475
10476 os2*)
10477   libname_spec='$name'
10478   shrext_cmds=".dll"
10479   need_lib_prefix=no
10480   library_names_spec='$libname${shared_ext} $libname.a'
10481   dynamic_linker='OS/2 ld.exe'
10482   shlibpath_var=LIBPATH
10483   ;;
10484
10485 osf3* | osf4* | osf5*)
10486   version_type=osf
10487   need_lib_prefix=no
10488   need_version=no
10489   soname_spec='${libname}${release}${shared_ext}$major'
10490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491   shlibpath_var=LD_LIBRARY_PATH
10492   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10493   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10494   ;;
10495
10496 rdos*)
10497   dynamic_linker=no
10498   ;;
10499
10500 solaris*)
10501   version_type=linux
10502   need_lib_prefix=no
10503   need_version=no
10504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505   soname_spec='${libname}${release}${shared_ext}$major'
10506   shlibpath_var=LD_LIBRARY_PATH
10507   shlibpath_overrides_runpath=yes
10508   hardcode_into_libs=yes
10509   # ldd complains unless libraries are executable
10510   postinstall_cmds='chmod +x $lib'
10511   ;;
10512
10513 sunos4*)
10514   version_type=sunos
10515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10516   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10517   shlibpath_var=LD_LIBRARY_PATH
10518   shlibpath_overrides_runpath=yes
10519   if test "$with_gnu_ld" = yes; then
10520     need_lib_prefix=no
10521   fi
10522   need_version=yes
10523   ;;
10524
10525 sysv4 | sysv4.3*)
10526   version_type=linux
10527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528   soname_spec='${libname}${release}${shared_ext}$major'
10529   shlibpath_var=LD_LIBRARY_PATH
10530   case $host_vendor in
10531     sni)
10532       shlibpath_overrides_runpath=no
10533       need_lib_prefix=no
10534       runpath_var=LD_RUN_PATH
10535       ;;
10536     siemens)
10537       need_lib_prefix=no
10538       ;;
10539     motorola)
10540       need_lib_prefix=no
10541       need_version=no
10542       shlibpath_overrides_runpath=no
10543       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10544       ;;
10545   esac
10546   ;;
10547
10548 sysv4*MP*)
10549   if test -d /usr/nec ;then
10550     version_type=linux
10551     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10552     soname_spec='$libname${shared_ext}.$major'
10553     shlibpath_var=LD_LIBRARY_PATH
10554   fi
10555   ;;
10556
10557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10558   version_type=freebsd-elf
10559   need_lib_prefix=no
10560   need_version=no
10561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10562   soname_spec='${libname}${release}${shared_ext}$major'
10563   shlibpath_var=LD_LIBRARY_PATH
10564   shlibpath_overrides_runpath=yes
10565   hardcode_into_libs=yes
10566   if test "$with_gnu_ld" = yes; then
10567     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10568   else
10569     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10570     case $host_os in
10571       sco3.2v5*)
10572         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10573         ;;
10574     esac
10575   fi
10576   sys_lib_dlsearch_path_spec='/usr/lib'
10577   ;;
10578
10579 tpf*)
10580   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10581   version_type=linux
10582   need_lib_prefix=no
10583   need_version=no
10584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585   shlibpath_var=LD_LIBRARY_PATH
10586   shlibpath_overrides_runpath=no
10587   hardcode_into_libs=yes
10588   ;;
10589
10590 uts4*)
10591   version_type=linux
10592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593   soname_spec='${libname}${release}${shared_ext}$major'
10594   shlibpath_var=LD_LIBRARY_PATH
10595   ;;
10596
10597 *)
10598   dynamic_linker=no
10599   ;;
10600 esac
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10602 $as_echo "$dynamic_linker" >&6; }
10603 test "$dynamic_linker" = no && can_build_shared=no
10604
10605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10606 if test "$GCC" = yes; then
10607   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10608 fi
10609
10610 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10611   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10612 fi
10613 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10614   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10615 fi
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10705 hardcode_action=
10706 if test -n "$hardcode_libdir_flag_spec" ||
10707    test -n "$runpath_var" ||
10708    test "X$hardcode_automatic" = "Xyes" ; then
10709
10710   # We can hardcode non-existent directories.
10711   if test "$hardcode_direct" != no &&
10712      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10713      # have to relink, otherwise we might link with an installed library
10714      # when we should be linking with a yet-to-be-installed one
10715      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10716      test "$hardcode_minus_L" != no; then
10717     # Linking always hardcodes the temporary library directory.
10718     hardcode_action=relink
10719   else
10720     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10721     hardcode_action=immediate
10722   fi
10723 else
10724   # We cannot hardcode anything, or else we can only hardcode existing
10725   # directories.
10726   hardcode_action=unsupported
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10729 $as_echo "$hardcode_action" >&6; }
10730
10731 if test "$hardcode_action" = relink ||
10732    test "$inherit_rpath" = yes; then
10733   # Fast installation is not supported
10734   enable_fast_install=no
10735 elif test "$shlibpath_overrides_runpath" = yes ||
10736      test "$enable_shared" = no; then
10737   # Fast installation is not necessary
10738   enable_fast_install=needless
10739 fi
10740
10741
10742
10743
10744
10745
10746   if test "x$enable_dlopen" != xyes; then
10747   enable_dlopen=unknown
10748   enable_dlopen_self=unknown
10749   enable_dlopen_self_static=unknown
10750 else
10751   lt_cv_dlopen=no
10752   lt_cv_dlopen_libs=
10753
10754   case $host_os in
10755   beos*)
10756     lt_cv_dlopen="load_add_on"
10757     lt_cv_dlopen_libs=
10758     lt_cv_dlopen_self=yes
10759     ;;
10760
10761   mingw* | pw32* | cegcc*)
10762     lt_cv_dlopen="LoadLibrary"
10763     lt_cv_dlopen_libs=
10764     ;;
10765
10766   cygwin*)
10767     lt_cv_dlopen="dlopen"
10768     lt_cv_dlopen_libs=
10769     ;;
10770
10771   darwin*)
10772   # if libdl is installed we need to link against it
10773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10774 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10775 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10776   $as_echo_n "(cached) " >&6
10777 else
10778   ac_check_lib_save_LIBS=$LIBS
10779 LIBS="-ldl  $LIBS"
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h.  */
10782
10783 /* Override any GCC internal prototype to avoid an error.
10784    Use char because int might match the return type of a GCC
10785    builtin and then its argument prototype would still apply.  */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 char dlopen ();
10790 int
10791 main ()
10792 {
10793 return dlopen ();
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"; then :
10799   ac_cv_lib_dl_dlopen=yes
10800 else
10801   ac_cv_lib_dl_dlopen=no
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext \
10804     conftest$ac_exeext conftest.$ac_ext
10805 LIBS=$ac_check_lib_save_LIBS
10806 fi
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10809 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10811 else
10812
10813     lt_cv_dlopen="dyld"
10814     lt_cv_dlopen_libs=
10815     lt_cv_dlopen_self=yes
10816
10817 fi
10818
10819     ;;
10820
10821   *)
10822     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10823 if test "x$ac_cv_func_shl_load" = x""yes; then :
10824   lt_cv_dlopen="shl_load"
10825 else
10826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10827 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10828 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-ldld  $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h.  */
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837    Use char because int might match the return type of a GCC
10838    builtin and then its argument prototype would still apply.  */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char shl_load ();
10843 int
10844 main ()
10845 {
10846 return shl_load ();
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852   ac_cv_lib_dld_shl_load=yes
10853 else
10854   ac_cv_lib_dld_shl_load=no
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext \
10857     conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10861 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10862 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10863   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10864 else
10865   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10866 if test "x$ac_cv_func_dlopen" = x""yes; then :
10867   lt_cv_dlopen="dlopen"
10868 else
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-ldl  $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h.  */
10878
10879 /* Override any GCC internal prototype to avoid an error.
10880    Use char because int might match the return type of a GCC
10881    builtin and then its argument prototype would still apply.  */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 char dlopen ();
10886 int
10887 main ()
10888 {
10889 return dlopen ();
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895   ac_cv_lib_dl_dlopen=yes
10896 else
10897   ac_cv_lib_dl_dlopen=no
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900     conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10902 fi
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10905 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10907 else
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10909 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913   ac_check_lib_save_LIBS=$LIBS
10914 LIBS="-lsvld  $LIBS"
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h.  */
10917
10918 /* Override any GCC internal prototype to avoid an error.
10919    Use char because int might match the return type of a GCC
10920    builtin and then its argument prototype would still apply.  */
10921 #ifdef __cplusplus
10922 extern "C"
10923 #endif
10924 char dlopen ();
10925 int
10926 main ()
10927 {
10928 return dlopen ();
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934   ac_cv_lib_svld_dlopen=yes
10935 else
10936   ac_cv_lib_svld_dlopen=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext \
10939     conftest$ac_exeext conftest.$ac_ext
10940 LIBS=$ac_check_lib_save_LIBS
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10943 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10944 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10945   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10946 else
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10948 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10949 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10950   $as_echo_n "(cached) " >&6
10951 else
10952   ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-ldld  $LIBS"
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h.  */
10956
10957 /* Override any GCC internal prototype to avoid an error.
10958    Use char because int might match the return type of a GCC
10959    builtin and then its argument prototype would still apply.  */
10960 #ifdef __cplusplus
10961 extern "C"
10962 #endif
10963 char dld_link ();
10964 int
10965 main ()
10966 {
10967 return dld_link ();
10968   ;
10969   return 0;
10970 }
10971 _ACEOF
10972 if ac_fn_c_try_link "$LINENO"; then :
10973   ac_cv_lib_dld_dld_link=yes
10974 else
10975   ac_cv_lib_dld_dld_link=no
10976 fi
10977 rm -f core conftest.err conftest.$ac_objext \
10978     conftest$ac_exeext conftest.$ac_ext
10979 LIBS=$ac_check_lib_save_LIBS
10980 fi
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10982 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10983 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10984   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10985 fi
10986
10987
10988 fi
10989
10990
10991 fi
10992
10993
10994 fi
10995
10996
10997 fi
10998
10999
11000 fi
11001
11002     ;;
11003   esac
11004
11005   if test "x$lt_cv_dlopen" != xno; then
11006     enable_dlopen=yes
11007   else
11008     enable_dlopen=no
11009   fi
11010
11011   case $lt_cv_dlopen in
11012   dlopen)
11013     save_CPPFLAGS="$CPPFLAGS"
11014     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11015
11016     save_LDFLAGS="$LDFLAGS"
11017     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11018
11019     save_LIBS="$LIBS"
11020     LIBS="$lt_cv_dlopen_libs $LIBS"
11021
11022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11023 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11024 if test "${lt_cv_dlopen_self+set}" = set; then :
11025   $as_echo_n "(cached) " >&6
11026 else
11027           if test "$cross_compiling" = yes; then :
11028   lt_cv_dlopen_self=cross
11029 else
11030   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11031   lt_status=$lt_dlunknown
11032   cat > conftest.$ac_ext <<_LT_EOF
11033 #line 11033 "configure"
11034 #include "confdefs.h"
11035
11036 #if HAVE_DLFCN_H
11037 #include <dlfcn.h>
11038 #endif
11039
11040 #include <stdio.h>
11041
11042 #ifdef RTLD_GLOBAL
11043 #  define LT_DLGLOBAL           RTLD_GLOBAL
11044 #else
11045 #  ifdef DL_GLOBAL
11046 #    define LT_DLGLOBAL         DL_GLOBAL
11047 #  else
11048 #    define LT_DLGLOBAL         0
11049 #  endif
11050 #endif
11051
11052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11053    find out it does not work in some platform. */
11054 #ifndef LT_DLLAZY_OR_NOW
11055 #  ifdef RTLD_LAZY
11056 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11057 #  else
11058 #    ifdef DL_LAZY
11059 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11060 #    else
11061 #      ifdef RTLD_NOW
11062 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11063 #      else
11064 #        ifdef DL_NOW
11065 #          define LT_DLLAZY_OR_NOW      DL_NOW
11066 #        else
11067 #          define LT_DLLAZY_OR_NOW      0
11068 #        endif
11069 #      endif
11070 #    endif
11071 #  endif
11072 #endif
11073
11074 void fnord() { int i=42;}
11075 int main ()
11076 {
11077   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11078   int status = $lt_dlunknown;
11079
11080   if (self)
11081     {
11082       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11083       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11084       /* dlclose (self); */
11085     }
11086   else
11087     puts (dlerror ());
11088
11089   return status;
11090 }
11091 _LT_EOF
11092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11093   (eval $ac_link) 2>&5
11094   ac_status=$?
11095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11097     (./conftest; exit; ) >&5 2>/dev/null
11098     lt_status=$?
11099     case x$lt_status in
11100       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11101       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11102       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11103     esac
11104   else :
11105     # compilation failed
11106     lt_cv_dlopen_self=no
11107   fi
11108 fi
11109 rm -fr conftest*
11110
11111
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11114 $as_echo "$lt_cv_dlopen_self" >&6; }
11115
11116     if test "x$lt_cv_dlopen_self" = xyes; then
11117       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11118       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11119 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11120 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11121   $as_echo_n "(cached) " >&6
11122 else
11123           if test "$cross_compiling" = yes; then :
11124   lt_cv_dlopen_self_static=cross
11125 else
11126   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127   lt_status=$lt_dlunknown
11128   cat > conftest.$ac_ext <<_LT_EOF
11129 #line 11129 "configure"
11130 #include "confdefs.h"
11131
11132 #if HAVE_DLFCN_H
11133 #include <dlfcn.h>
11134 #endif
11135
11136 #include <stdio.h>
11137
11138 #ifdef RTLD_GLOBAL
11139 #  define LT_DLGLOBAL           RTLD_GLOBAL
11140 #else
11141 #  ifdef DL_GLOBAL
11142 #    define LT_DLGLOBAL         DL_GLOBAL
11143 #  else
11144 #    define LT_DLGLOBAL         0
11145 #  endif
11146 #endif
11147
11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149    find out it does not work in some platform. */
11150 #ifndef LT_DLLAZY_OR_NOW
11151 #  ifdef RTLD_LAZY
11152 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11153 #  else
11154 #    ifdef DL_LAZY
11155 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11156 #    else
11157 #      ifdef RTLD_NOW
11158 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11159 #      else
11160 #        ifdef DL_NOW
11161 #          define LT_DLLAZY_OR_NOW      DL_NOW
11162 #        else
11163 #          define LT_DLLAZY_OR_NOW      0
11164 #        endif
11165 #      endif
11166 #    endif
11167 #  endif
11168 #endif
11169
11170 void fnord() { int i=42;}
11171 int main ()
11172 {
11173   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11174   int status = $lt_dlunknown;
11175
11176   if (self)
11177     {
11178       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11179       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180       /* dlclose (self); */
11181     }
11182   else
11183     puts (dlerror ());
11184
11185   return status;
11186 }
11187 _LT_EOF
11188   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11189   (eval $ac_link) 2>&5
11190   ac_status=$?
11191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11193     (./conftest; exit; ) >&5 2>/dev/null
11194     lt_status=$?
11195     case x$lt_status in
11196       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11197       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11198       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11199     esac
11200   else :
11201     # compilation failed
11202     lt_cv_dlopen_self_static=no
11203   fi
11204 fi
11205 rm -fr conftest*
11206
11207
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11210 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11211     fi
11212
11213     CPPFLAGS="$save_CPPFLAGS"
11214     LDFLAGS="$save_LDFLAGS"
11215     LIBS="$save_LIBS"
11216     ;;
11217   esac
11218
11219   case $lt_cv_dlopen_self in
11220   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11221   *) enable_dlopen_self=unknown ;;
11222   esac
11223
11224   case $lt_cv_dlopen_self_static in
11225   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11226   *) enable_dlopen_self_static=unknown ;;
11227   esac
11228 fi
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 striplib=
11247 old_striplib=
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11249 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11250 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11251   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11252   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254 $as_echo "yes" >&6; }
11255 else
11256 # FIXME - insert some real tests, host_os isn't really good enough
11257   case $host_os in
11258   darwin*)
11259     if test -n "$STRIP" ; then
11260       striplib="$STRIP -x"
11261       old_striplib="$STRIP -S"
11262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263 $as_echo "yes" >&6; }
11264     else
11265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267     fi
11268     ;;
11269   *)
11270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11272     ;;
11273   esac
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287   # Report which library types will actually be built
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11289 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11291 $as_echo "$can_build_shared" >&6; }
11292
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11294 $as_echo_n "checking whether to build shared libraries... " >&6; }
11295   test "$can_build_shared" = "no" && enable_shared=no
11296
11297   # On AIX, shared libraries and static libraries use the same namespace, and
11298   # are all built from PIC.
11299   case $host_os in
11300   aix3*)
11301     test "$enable_shared" = yes && enable_static=no
11302     if test -n "$RANLIB"; then
11303       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11304       postinstall_cmds='$RANLIB $lib'
11305     fi
11306     ;;
11307
11308   aix[4-9]*)
11309     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11310       test "$enable_shared" = yes && enable_static=no
11311     fi
11312     ;;
11313   esac
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11315 $as_echo "$enable_shared" >&6; }
11316
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11318 $as_echo_n "checking whether to build static libraries... " >&6; }
11319   # Make sure either enable_shared or enable_static is yes.
11320   test "$enable_shared" = yes || enable_static=yes
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11322 $as_echo "$enable_static" >&6; }
11323
11324
11325
11326
11327 fi
11328 ac_ext=c
11329 ac_cpp='$CPP $CPPFLAGS'
11330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
11334 CC="$lt_save_CC"
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348         ac_config_commands="$ac_config_commands libtool"
11349
11350
11351
11352
11353 # Only expand once:
11354
11355
11356
11357 for ac_func in setmode
11358 do :
11359   ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11360 if test "x$ac_cv_func_setmode" = x""yes; then :
11361   cat >>confdefs.h <<_ACEOF
11362 #define HAVE_SETMODE 1
11363 _ACEOF
11364
11365 fi
11366 done
11367
11368
11369 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg"
11370 # If we haven't got the data from the intl directory,
11371 # assume NLS is disabled.
11372 USE_NLS=no
11373 LIBINTL=
11374 LIBINTL_DEP=
11375 INCINTL=
11376 XGETTEXT=
11377 GMSGFMT=
11378 POSUB=
11379
11380 if test -f  ../intl/config.intl; then
11381   .  ../intl/config.intl
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11384 $as_echo_n "checking whether NLS is requested... " >&6; }
11385 if test x"$USE_NLS" != xyes; then
11386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388 else
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391
11392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11393
11394
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11396 $as_echo_n "checking for catalogs to be installed... " >&6; }
11397   # Look for .po and .gmo files in the source directory.
11398   CATALOGS=
11399   XLINGUAS=
11400   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11401     # If there aren't any .gmo files the shell will give us the
11402     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11403     # weeded out.
11404     case "$cat" in *\**)
11405       continue;;
11406     esac
11407     # The quadruple backslash is collapsed to a double backslash
11408     # by the backticks, then collapsed again by the double quotes,
11409     # leaving us with one backslash in the sed expression (right
11410     # before the dot that mustn't act as a wildcard).
11411     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11412     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11413     # The user is allowed to set LINGUAS to a list of languages to
11414     # install catalogs for.  If it's empty that means "all of them."
11415     if test "x$LINGUAS" = x; then
11416       CATALOGS="$CATALOGS $cat"
11417       XLINGUAS="$XLINGUAS $lang"
11418     else
11419       case "$LINGUAS" in *$lang*)
11420         CATALOGS="$CATALOGS $cat"
11421         XLINGUAS="$XLINGUAS $lang"
11422         ;;
11423       esac
11424     fi
11425   done
11426   LINGUAS="$XLINGUAS"
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11428 $as_echo "$LINGUAS" >&6; }
11429
11430
11431     DATADIRNAME=share
11432
11433   INSTOBJEXT=.mo
11434
11435   GENCAT=gencat
11436
11437   CATOBJEXT=.gmo
11438
11439 fi
11440
11441         MKINSTALLDIRS=
11442   if test -n "$ac_aux_dir"; then
11443     case "$ac_aux_dir" in
11444       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11445       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11446     esac
11447   fi
11448   if test -z "$MKINSTALLDIRS"; then
11449     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11450   fi
11451
11452
11453
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11455 $as_echo_n "checking whether NLS is requested... " >&6; }
11456     # Check whether --enable-nls was given.
11457 if test "${enable_nls+set}" = set; then :
11458   enableval=$enable_nls; USE_NLS=$enableval
11459 else
11460   USE_NLS=yes
11461 fi
11462
11463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11464 $as_echo "$USE_NLS" >&6; }
11465
11466
11467
11468
11469
11470
11471 # Prepare PATH_SEPARATOR.
11472 # The user is always right.
11473 if test "${PATH_SEPARATOR+set}" != set; then
11474   echo "#! /bin/sh" >conf$$.sh
11475   echo  "exit 0"   >>conf$$.sh
11476   chmod +x conf$$.sh
11477   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11478     PATH_SEPARATOR=';'
11479   else
11480     PATH_SEPARATOR=:
11481   fi
11482   rm -f conf$$.sh
11483 fi
11484
11485 # Find out how to test for executable files. Don't use a zero-byte file,
11486 # as systems may use methods other than mode bits to determine executability.
11487 cat >conf$$.file <<_ASEOF
11488 #! /bin/sh
11489 exit 0
11490 _ASEOF
11491 chmod +x conf$$.file
11492 if test -x conf$$.file >/dev/null 2>&1; then
11493   ac_executable_p="test -x"
11494 else
11495   ac_executable_p="test -f"
11496 fi
11497 rm -f conf$$.file
11498
11499 # Extract the first word of "msgfmt", so it can be a program name with args.
11500 set dummy msgfmt; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506   case "$MSGFMT" in
11507   [\\/]* | ?:[\\/]*)
11508     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11509     ;;
11510   *)
11511     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11512     for ac_dir in $PATH; do
11513       IFS="$ac_save_IFS"
11514       test -z "$ac_dir" && ac_dir=.
11515       for ac_exec_ext in '' $ac_executable_extensions; do
11516         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11517           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11518      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11519             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11520             break 2
11521           fi
11522         fi
11523       done
11524     done
11525     IFS="$ac_save_IFS"
11526   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11527     ;;
11528 esac
11529 fi
11530 MSGFMT="$ac_cv_path_MSGFMT"
11531 if test "$MSGFMT" != ":"; then
11532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11533 $as_echo "$MSGFMT" >&6; }
11534 else
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 fi
11538
11539   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11540 set dummy gmsgfmt; ac_word=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   case $GMSGFMT in
11547   [\\/]* | ?:[\\/]*)
11548   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11549   ;;
11550   *)
11551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11553 do
11554   IFS=$as_save_IFS
11555   test -z "$as_dir" && as_dir=.
11556     for ac_exec_ext in '' $ac_executable_extensions; do
11557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560     break 2
11561   fi
11562 done
11563   done
11564 IFS=$as_save_IFS
11565
11566   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11567   ;;
11568 esac
11569 fi
11570 GMSGFMT=$ac_cv_path_GMSGFMT
11571 if test -n "$GMSGFMT"; then
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11573 $as_echo "$GMSGFMT" >&6; }
11574 else
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577 fi
11578
11579
11580
11581
11582 # Prepare PATH_SEPARATOR.
11583 # The user is always right.
11584 if test "${PATH_SEPARATOR+set}" != set; then
11585   echo "#! /bin/sh" >conf$$.sh
11586   echo  "exit 0"   >>conf$$.sh
11587   chmod +x conf$$.sh
11588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11589     PATH_SEPARATOR=';'
11590   else
11591     PATH_SEPARATOR=:
11592   fi
11593   rm -f conf$$.sh
11594 fi
11595
11596 # Find out how to test for executable files. Don't use a zero-byte file,
11597 # as systems may use methods other than mode bits to determine executability.
11598 cat >conf$$.file <<_ASEOF
11599 #! /bin/sh
11600 exit 0
11601 _ASEOF
11602 chmod +x conf$$.file
11603 if test -x conf$$.file >/dev/null 2>&1; then
11604   ac_executable_p="test -x"
11605 else
11606   ac_executable_p="test -f"
11607 fi
11608 rm -f conf$$.file
11609
11610 # Extract the first word of "xgettext", so it can be a program name with args.
11611 set dummy xgettext; ac_word=$2
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 $as_echo_n "checking for $ac_word... " >&6; }
11614 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11615   $as_echo_n "(cached) " >&6
11616 else
11617   case "$XGETTEXT" in
11618   [\\/]* | ?:[\\/]*)
11619     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11620     ;;
11621   *)
11622     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11623     for ac_dir in $PATH; do
11624       IFS="$ac_save_IFS"
11625       test -z "$ac_dir" && ac_dir=.
11626       for ac_exec_ext in '' $ac_executable_extensions; do
11627         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11628           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11629      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11630             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11631             break 2
11632           fi
11633         fi
11634       done
11635     done
11636     IFS="$ac_save_IFS"
11637   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11638     ;;
11639 esac
11640 fi
11641 XGETTEXT="$ac_cv_path_XGETTEXT"
11642 if test "$XGETTEXT" != ":"; then
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11644 $as_echo "$XGETTEXT" >&6; }
11645 else
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648 fi
11649
11650     rm -f messages.po
11651
11652
11653 # Prepare PATH_SEPARATOR.
11654 # The user is always right.
11655 if test "${PATH_SEPARATOR+set}" != set; then
11656   echo "#! /bin/sh" >conf$$.sh
11657   echo  "exit 0"   >>conf$$.sh
11658   chmod +x conf$$.sh
11659   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11660     PATH_SEPARATOR=';'
11661   else
11662     PATH_SEPARATOR=:
11663   fi
11664   rm -f conf$$.sh
11665 fi
11666
11667 # Find out how to test for executable files. Don't use a zero-byte file,
11668 # as systems may use methods other than mode bits to determine executability.
11669 cat >conf$$.file <<_ASEOF
11670 #! /bin/sh
11671 exit 0
11672 _ASEOF
11673 chmod +x conf$$.file
11674 if test -x conf$$.file >/dev/null 2>&1; then
11675   ac_executable_p="test -x"
11676 else
11677   ac_executable_p="test -f"
11678 fi
11679 rm -f conf$$.file
11680
11681 # Extract the first word of "msgmerge", so it can be a program name with args.
11682 set dummy msgmerge; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11686   $as_echo_n "(cached) " >&6
11687 else
11688   case "$MSGMERGE" in
11689   [\\/]* | ?:[\\/]*)
11690     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11691     ;;
11692   *)
11693     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11694     for ac_dir in $PATH; do
11695       IFS="$ac_save_IFS"
11696       test -z "$ac_dir" && ac_dir=.
11697       for ac_exec_ext in '' $ac_executable_extensions; do
11698         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11699           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11700             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11701             break 2
11702           fi
11703         fi
11704       done
11705     done
11706     IFS="$ac_save_IFS"
11707   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11708     ;;
11709 esac
11710 fi
11711 MSGMERGE="$ac_cv_path_MSGMERGE"
11712 if test "$MSGMERGE" != ":"; then
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11714 $as_echo "$MSGMERGE" >&6; }
11715 else
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719
11720
11721       if test "$GMSGFMT" != ":"; then
11722             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11723        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11724       : ;
11725     else
11726       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11728 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11729       GMSGFMT=":"
11730     fi
11731   fi
11732
11733       if test "$XGETTEXT" != ":"; then
11734             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11735        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11736       : ;
11737     else
11738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11739 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11740       XGETTEXT=":"
11741     fi
11742         rm -f messages.po
11743   fi
11744
11745   ac_config_commands="$ac_config_commands default-1"
11746
11747
11748
11749
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11752     # Check whether --enable-maintainer-mode was given.
11753 if test "${enable_maintainer_mode+set}" = set; then :
11754   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11755 else
11756   USE_MAINTAINER_MODE=no
11757 fi
11758
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11761    if test $USE_MAINTAINER_MODE = yes; then
11762   MAINTAINER_MODE_TRUE=
11763   MAINTAINER_MODE_FALSE='#'
11764 else
11765   MAINTAINER_MODE_TRUE='#'
11766   MAINTAINER_MODE_FALSE=
11767 fi
11768
11769   MAINT=$MAINTAINER_MODE_TRUE
11770
11771
11772  if false; then
11773   GENINSRC_NEVER_TRUE=
11774   GENINSRC_NEVER_FALSE='#'
11775 else
11776   GENINSRC_NEVER_TRUE='#'
11777   GENINSRC_NEVER_FALSE=
11778 fi
11779
11780
11781
11782 for ac_header in sys/gmon_out.h
11783 do :
11784   ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11785 if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
11786   cat >>confdefs.h <<_ACEOF
11787 #define HAVE_SYS_GMON_OUT_H 1
11788 _ACEOF
11789
11790 fi
11791
11792 done
11793
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11796 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11797 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h.  */
11802 #include <unistd.h>
11803 int
11804 main ()
11805 {
11806 extern int getopt (int, char *const*, const char *);
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 if ac_fn_c_try_compile "$LINENO"; then :
11812   gprof_cv_decl_getopt_unistd_h=yes
11813 else
11814   gprof_cv_decl_getopt_unistd_h=no
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11817 fi
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11820 $as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
11821 if test $gprof_cv_decl_getopt_unistd_h = yes; then
11822
11823 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
11824
11825 fi
11826
11827 # Some systems have fabs only in -lm, not in -lc.
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11829 $as_echo_n "checking for library containing fabs... " >&6; }
11830 if test "${ac_cv_search_fabs+set}" = set; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833   ac_func_search_save_LIBS=$LIBS
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h.  */
11836
11837 /* Override any GCC internal prototype to avoid an error.
11838    Use char because int might match the return type of a GCC
11839    builtin and then its argument prototype would still apply.  */
11840 #ifdef __cplusplus
11841 extern "C"
11842 #endif
11843 char fabs ();
11844 int
11845 main ()
11846 {
11847 return fabs ();
11848   ;
11849   return 0;
11850 }
11851 _ACEOF
11852 for ac_lib in '' m; do
11853   if test -z "$ac_lib"; then
11854     ac_res="none required"
11855   else
11856     ac_res=-l$ac_lib
11857     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11858   fi
11859   if ac_fn_c_try_link "$LINENO"; then :
11860   ac_cv_search_fabs=$ac_res
11861 fi
11862 rm -f core conftest.err conftest.$ac_objext \
11863     conftest$ac_exeext
11864   if test "${ac_cv_search_fabs+set}" = set; then :
11865   break
11866 fi
11867 done
11868 if test "${ac_cv_search_fabs+set}" = set; then :
11869
11870 else
11871   ac_cv_search_fabs=no
11872 fi
11873 rm conftest.$ac_ext
11874 LIBS=$ac_func_search_save_LIBS
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11877 $as_echo "$ac_cv_search_fabs" >&6; }
11878 ac_res=$ac_cv_search_fabs
11879 if test "$ac_res" != no; then :
11880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11881
11882 fi
11883
11884
11885
11886 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11887
11888 # Check whether --enable-werror was given.
11889 if test "${enable_werror+set}" = set; then :
11890   enableval=$enable_werror; case "${enableval}" in
11891      yes | y) ERROR_ON_WARNING="yes" ;;
11892      no | n)  ERROR_ON_WARNING="no" ;;
11893      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11894    esac
11895 fi
11896
11897
11898 # Enable -Wno-format by default when using gcc on mingw
11899 case "${host}" in
11900   *-*-mingw32*)
11901     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11902       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11903     fi
11904     ;;
11905   *) ;;
11906 esac
11907
11908 # Enable -Werror by default when using gcc
11909 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11910     ERROR_ON_WARNING=yes
11911 fi
11912
11913 NO_WERROR=
11914 if test "${ERROR_ON_WARNING}" = yes ; then
11915     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11916     NO_WERROR="-Wno-error"
11917 fi
11918
11919 if test "${GCC}" = yes ; then
11920   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11921 fi
11922
11923 # Check whether --enable-build-warnings was given.
11924 if test "${enable_build_warnings+set}" = set; then :
11925   enableval=$enable_build_warnings; case "${enableval}" in
11926   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11927   no)   if test "${GCC}" = yes ; then
11928           WARN_CFLAGS="-w"
11929         fi;;
11930   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11931         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11932   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11933         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11934   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11935 esac
11936 fi
11937
11938
11939 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11940   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11941 fi
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11953
11954 cat >confcache <<\_ACEOF
11955 # This file is a shell script that caches the results of configure
11956 # tests run on this system so they can be shared between configure
11957 # scripts and configure runs, see configure's option --config-cache.
11958 # It is not useful on other systems.  If it contains results you don't
11959 # want to keep, you may remove or edit it.
11960 #
11961 # config.status only pays attention to the cache file if you give it
11962 # the --recheck option to rerun configure.
11963 #
11964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11966 # following values.
11967
11968 _ACEOF
11969
11970 # The following way of writing the cache mishandles newlines in values,
11971 # but we know of no workaround that is simple, portable, and efficient.
11972 # So, we kill variables containing newlines.
11973 # Ultrix sh set writes to stderr and can't be redirected directly,
11974 # and sets the high bit in the cache file unless we assign to the vars.
11975 (
11976   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11977     eval ac_val=\$$ac_var
11978     case $ac_val in #(
11979     *${as_nl}*)
11980       case $ac_var in #(
11981       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11983       esac
11984       case $ac_var in #(
11985       _ | IFS | as_nl) ;; #(
11986       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11987       *) { eval $ac_var=; unset $ac_var;} ;;
11988       esac ;;
11989     esac
11990   done
11991
11992   (set) 2>&1 |
11993     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11994     *${as_nl}ac_space=\ *)
11995       # `set' does not quote correctly, so add quotes: double-quote
11996       # substitution turns \\\\ into \\, and sed turns \\ into \.
11997       sed -n \
11998         "s/'/'\\\\''/g;
11999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12000       ;; #(
12001     *)
12002       # `set' quotes correctly as required by POSIX, so do not add quotes.
12003       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12004       ;;
12005     esac |
12006     sort
12007 ) |
12008   sed '
12009      /^ac_cv_env_/b end
12010      t clear
12011      :clear
12012      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12013      t end
12014      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12015      :end' >>confcache
12016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12017   if test -w "$cache_file"; then
12018     test "x$cache_file" != "x/dev/null" &&
12019       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12020 $as_echo "$as_me: updating cache $cache_file" >&6;}
12021     cat confcache >$cache_file
12022   else
12023     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12024 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12025   fi
12026 fi
12027 rm -f confcache
12028
12029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12030 # Let make expand exec_prefix.
12031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12032
12033 DEFS=-DHAVE_CONFIG_H
12034
12035 ac_libobjs=
12036 ac_ltlibobjs=
12037 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12038   # 1. Remove the extension, and $U if already installed.
12039   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12040   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12041   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12042   #    will be set to the directory where LIBOBJS objects are built.
12043   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12044   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12045 done
12046 LIBOBJS=$ac_libobjs
12047
12048 LTLIBOBJS=$ac_ltlibobjs
12049
12050
12051 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12052   as_fn_error "conditional \"AMDEP\" was never defined.
12053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12054 fi
12055 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12056   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12058 fi
12059  if test -n "$EXEEXT"; then
12060   am__EXEEXT_TRUE=
12061   am__EXEEXT_FALSE='#'
12062 else
12063   am__EXEEXT_TRUE='#'
12064   am__EXEEXT_FALSE=
12065 fi
12066
12067 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12068   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12070 fi
12071 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12072   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12074 fi
12075
12076 : ${CONFIG_STATUS=./config.status}
12077 ac_write_fail=0
12078 ac_clean_files_save=$ac_clean_files
12079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12081 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12082 as_write_fail=0
12083 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12084 #! $SHELL
12085 # Generated by $as_me.
12086 # Run this file to recreate the current configuration.
12087 # Compiler output produced by configure, useful for debugging
12088 # configure, is in config.log if it exists.
12089
12090 debug=false
12091 ac_cs_recheck=false
12092 ac_cs_silent=false
12093
12094 SHELL=\${CONFIG_SHELL-$SHELL}
12095 export SHELL
12096 _ASEOF
12097 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12098 ## -------------------- ##
12099 ## M4sh Initialization. ##
12100 ## -------------------- ##
12101
12102 # Be more Bourne compatible
12103 DUALCASE=1; export DUALCASE # for MKS sh
12104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12105   emulate sh
12106   NULLCMD=:
12107   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12108   # is contrary to our usage.  Disable this feature.
12109   alias -g '${1+"$@"}'='"$@"'
12110   setopt NO_GLOB_SUBST
12111 else
12112   case `(set -o) 2>/dev/null` in #(
12113   *posix*) :
12114     set -o posix ;; #(
12115   *) :
12116      ;;
12117 esac
12118 fi
12119
12120
12121 as_nl='
12122 '
12123 export as_nl
12124 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12125 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12126 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12128 # Prefer a ksh shell builtin over an external printf program on Solaris,
12129 # but without wasting forks for bash or zsh.
12130 if test -z "$BASH_VERSION$ZSH_VERSION" \
12131     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12132   as_echo='print -r --'
12133   as_echo_n='print -rn --'
12134 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12135   as_echo='printf %s\n'
12136   as_echo_n='printf %s'
12137 else
12138   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12139     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12140     as_echo_n='/usr/ucb/echo -n'
12141   else
12142     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12143     as_echo_n_body='eval
12144       arg=$1;
12145       case $arg in #(
12146       *"$as_nl"*)
12147         expr "X$arg" : "X\\(.*\\)$as_nl";
12148         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12149       esac;
12150       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12151     '
12152     export as_echo_n_body
12153     as_echo_n='sh -c $as_echo_n_body as_echo'
12154   fi
12155   export as_echo_body
12156   as_echo='sh -c $as_echo_body as_echo'
12157 fi
12158
12159 # The user is always right.
12160 if test "${PATH_SEPARATOR+set}" != set; then
12161   PATH_SEPARATOR=:
12162   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12163     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12164       PATH_SEPARATOR=';'
12165   }
12166 fi
12167
12168
12169 # IFS
12170 # We need space, tab and new line, in precisely that order.  Quoting is
12171 # there to prevent editors from complaining about space-tab.
12172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12173 # splitting by setting IFS to empty value.)
12174 IFS=" ""        $as_nl"
12175
12176 # Find who we are.  Look in the path if we contain no directory separator.
12177 case $0 in #((
12178   *[\\/]* ) as_myself=$0 ;;
12179   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12185   done
12186 IFS=$as_save_IFS
12187
12188      ;;
12189 esac
12190 # We did not find ourselves, most probably we were run as `sh COMMAND'
12191 # in which case we are not to be found in the path.
12192 if test "x$as_myself" = x; then
12193   as_myself=$0
12194 fi
12195 if test ! -f "$as_myself"; then
12196   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12197   exit 1
12198 fi
12199
12200 # Unset variables that we do not need and which cause bugs (e.g. in
12201 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12202 # suppresses any "Segmentation fault" message there.  '((' could
12203 # trigger a bug in pdksh 5.2.14.
12204 for as_var in BASH_ENV ENV MAIL MAILPATH
12205 do eval test x\${$as_var+set} = xset \
12206   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12207 done
12208 PS1='$ '
12209 PS2='> '
12210 PS4='+ '
12211
12212 # NLS nuisances.
12213 LC_ALL=C
12214 export LC_ALL
12215 LANGUAGE=C
12216 export LANGUAGE
12217
12218 # CDPATH.
12219 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12220
12221
12222 # as_fn_error ERROR [LINENO LOG_FD]
12223 # ---------------------------------
12224 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12225 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12226 # script with status $?, using 1 if that was 0.
12227 as_fn_error ()
12228 {
12229   as_status=$?; test $as_status -eq 0 && as_status=1
12230   if test "$3"; then
12231     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12232     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12233   fi
12234   $as_echo "$as_me: error: $1" >&2
12235   as_fn_exit $as_status
12236 } # as_fn_error
12237
12238
12239 # as_fn_set_status STATUS
12240 # -----------------------
12241 # Set $? to STATUS, without forking.
12242 as_fn_set_status ()
12243 {
12244   return $1
12245 } # as_fn_set_status
12246
12247 # as_fn_exit STATUS
12248 # -----------------
12249 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12250 as_fn_exit ()
12251 {
12252   set +e
12253   as_fn_set_status $1
12254   exit $1
12255 } # as_fn_exit
12256
12257 # as_fn_unset VAR
12258 # ---------------
12259 # Portably unset VAR.
12260 as_fn_unset ()
12261 {
12262   { eval $1=; unset $1;}
12263 }
12264 as_unset=as_fn_unset
12265 # as_fn_append VAR VALUE
12266 # ----------------------
12267 # Append the text in VALUE to the end of the definition contained in VAR. Take
12268 # advantage of any shell optimizations that allow amortized linear growth over
12269 # repeated appends, instead of the typical quadratic growth present in naive
12270 # implementations.
12271 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12272   eval 'as_fn_append ()
12273   {
12274     eval $1+=\$2
12275   }'
12276 else
12277   as_fn_append ()
12278   {
12279     eval $1=\$$1\$2
12280   }
12281 fi # as_fn_append
12282
12283 # as_fn_arith ARG...
12284 # ------------------
12285 # Perform arithmetic evaluation on the ARGs, and store the result in the
12286 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12287 # must be portable across $(()) and expr.
12288 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12289   eval 'as_fn_arith ()
12290   {
12291     as_val=$(( $* ))
12292   }'
12293 else
12294   as_fn_arith ()
12295   {
12296     as_val=`expr "$@" || test $? -eq 1`
12297   }
12298 fi # as_fn_arith
12299
12300
12301 if expr a : '\(a\)' >/dev/null 2>&1 &&
12302    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12303   as_expr=expr
12304 else
12305   as_expr=false
12306 fi
12307
12308 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12309   as_basename=basename
12310 else
12311   as_basename=false
12312 fi
12313
12314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12315   as_dirname=dirname
12316 else
12317   as_dirname=false
12318 fi
12319
12320 as_me=`$as_basename -- "$0" ||
12321 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12322          X"$0" : 'X\(//\)$' \| \
12323          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12324 $as_echo X/"$0" |
12325     sed '/^.*\/\([^/][^/]*\)\/*$/{
12326             s//\1/
12327             q
12328           }
12329           /^X\/\(\/\/\)$/{
12330             s//\1/
12331             q
12332           }
12333           /^X\/\(\/\).*/{
12334             s//\1/
12335             q
12336           }
12337           s/.*/./; q'`
12338
12339 # Avoid depending upon Character Ranges.
12340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12343 as_cr_digits='0123456789'
12344 as_cr_alnum=$as_cr_Letters$as_cr_digits
12345
12346 ECHO_C= ECHO_N= ECHO_T=
12347 case `echo -n x` in #(((((
12348 -n*)
12349   case `echo 'xy\c'` in
12350   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12351   xy)  ECHO_C='\c';;
12352   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12353        ECHO_T=' ';;
12354   esac;;
12355 *)
12356   ECHO_N='-n';;
12357 esac
12358
12359 rm -f conf$$ conf$$.exe conf$$.file
12360 if test -d conf$$.dir; then
12361   rm -f conf$$.dir/conf$$.file
12362 else
12363   rm -f conf$$.dir
12364   mkdir conf$$.dir 2>/dev/null
12365 fi
12366 if (echo >conf$$.file) 2>/dev/null; then
12367   if ln -s conf$$.file conf$$ 2>/dev/null; then
12368     as_ln_s='ln -s'
12369     # ... but there are two gotchas:
12370     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12371     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12372     # In both cases, we have to default to `cp -p'.
12373     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12374       as_ln_s='cp -p'
12375   elif ln conf$$.file conf$$ 2>/dev/null; then
12376     as_ln_s=ln
12377   else
12378     as_ln_s='cp -p'
12379   fi
12380 else
12381   as_ln_s='cp -p'
12382 fi
12383 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12384 rmdir conf$$.dir 2>/dev/null
12385
12386
12387 # as_fn_mkdir_p
12388 # -------------
12389 # Create "$as_dir" as a directory, including parents if necessary.
12390 as_fn_mkdir_p ()
12391 {
12392
12393   case $as_dir in #(
12394   -*) as_dir=./$as_dir;;
12395   esac
12396   test -d "$as_dir" || eval $as_mkdir_p || {
12397     as_dirs=
12398     while :; do
12399       case $as_dir in #(
12400       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12401       *) as_qdir=$as_dir;;
12402       esac
12403       as_dirs="'$as_qdir' $as_dirs"
12404       as_dir=`$as_dirname -- "$as_dir" ||
12405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406          X"$as_dir" : 'X\(//\)[^/]' \| \
12407          X"$as_dir" : 'X\(//\)$' \| \
12408          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12409 $as_echo X"$as_dir" |
12410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411             s//\1/
12412             q
12413           }
12414           /^X\(\/\/\)[^/].*/{
12415             s//\1/
12416             q
12417           }
12418           /^X\(\/\/\)$/{
12419             s//\1/
12420             q
12421           }
12422           /^X\(\/\).*/{
12423             s//\1/
12424             q
12425           }
12426           s/.*/./; q'`
12427       test -d "$as_dir" && break
12428     done
12429     test -z "$as_dirs" || eval "mkdir $as_dirs"
12430   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12431
12432
12433 } # as_fn_mkdir_p
12434 if mkdir -p . 2>/dev/null; then
12435   as_mkdir_p='mkdir -p "$as_dir"'
12436 else
12437   test -d ./-p && rmdir ./-p
12438   as_mkdir_p=false
12439 fi
12440
12441 if test -x / >/dev/null 2>&1; then
12442   as_test_x='test -x'
12443 else
12444   if ls -dL / >/dev/null 2>&1; then
12445     as_ls_L_option=L
12446   else
12447     as_ls_L_option=
12448   fi
12449   as_test_x='
12450     eval sh -c '\''
12451       if test -d "$1"; then
12452         test -d "$1/.";
12453       else
12454         case $1 in #(
12455         -*)set "./$1";;
12456         esac;
12457         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12458         ???[sx]*):;;*)false;;esac;fi
12459     '\'' sh
12460   '
12461 fi
12462 as_executable_p=$as_test_x
12463
12464 # Sed expression to map a string onto a valid CPP name.
12465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12466
12467 # Sed expression to map a string onto a valid variable name.
12468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12469
12470
12471 exec 6>&1
12472 ## ----------------------------------- ##
12473 ## Main body of $CONFIG_STATUS script. ##
12474 ## ----------------------------------- ##
12475 _ASEOF
12476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12477
12478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12479 # Save the log message, to keep $0 and so on meaningful, and to
12480 # report actual input values of CONFIG_FILES etc. instead of their
12481 # values after options handling.
12482 ac_log="
12483 This file was extended by $as_me, which was
12484 generated by GNU Autoconf 2.64.  Invocation command line was
12485
12486   CONFIG_FILES    = $CONFIG_FILES
12487   CONFIG_HEADERS  = $CONFIG_HEADERS
12488   CONFIG_LINKS    = $CONFIG_LINKS
12489   CONFIG_COMMANDS = $CONFIG_COMMANDS
12490   $ $0 $@
12491
12492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12493 "
12494
12495 _ACEOF
12496
12497 case $ac_config_files in *"
12498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12499 esac
12500
12501 case $ac_config_headers in *"
12502 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12503 esac
12504
12505
12506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507 # Files that config.status was made for.
12508 config_files="$ac_config_files"
12509 config_headers="$ac_config_headers"
12510 config_commands="$ac_config_commands"
12511
12512 _ACEOF
12513
12514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12515 ac_cs_usage="\
12516 \`$as_me' instantiates files and other configuration actions
12517 from templates according to the current configuration.  Unless the files
12518 and actions are specified as TAGs, all are instantiated by default.
12519
12520 Usage: $0 [OPTION]... [TAG]...
12521
12522   -h, --help       print this help, then exit
12523   -V, --version    print version number and configuration settings, then exit
12524   -q, --quiet, --silent
12525                    do not print progress messages
12526   -d, --debug      don't remove temporary files
12527       --recheck    update $as_me by reconfiguring in the same conditions
12528       --file=FILE[:TEMPLATE]
12529                    instantiate the configuration file FILE
12530       --header=FILE[:TEMPLATE]
12531                    instantiate the configuration header FILE
12532
12533 Configuration files:
12534 $config_files
12535
12536 Configuration headers:
12537 $config_headers
12538
12539 Configuration commands:
12540 $config_commands
12541
12542 Report bugs to the package provider."
12543
12544 _ACEOF
12545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12546 ac_cs_version="\\
12547 config.status
12548 configured by $0, generated by GNU Autoconf 2.64,
12549   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12550
12551 Copyright (C) 2009 Free Software Foundation, Inc.
12552 This config.status script is free software; the Free Software Foundation
12553 gives unlimited permission to copy, distribute and modify it."
12554
12555 ac_pwd='$ac_pwd'
12556 srcdir='$srcdir'
12557 INSTALL='$INSTALL'
12558 MKDIR_P='$MKDIR_P'
12559 AWK='$AWK'
12560 test -n "\$AWK" || AWK=awk
12561 _ACEOF
12562
12563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12564 # The default lists apply if the user does not specify any file.
12565 ac_need_defaults=:
12566 while test $# != 0
12567 do
12568   case $1 in
12569   --*=*)
12570     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12571     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12572     ac_shift=:
12573     ;;
12574   *)
12575     ac_option=$1
12576     ac_optarg=$2
12577     ac_shift=shift
12578     ;;
12579   esac
12580
12581   case $ac_option in
12582   # Handling of the options.
12583   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12584     ac_cs_recheck=: ;;
12585   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12586     $as_echo "$ac_cs_version"; exit ;;
12587   --debug | --debu | --deb | --de | --d | -d )
12588     debug=: ;;
12589   --file | --fil | --fi | --f )
12590     $ac_shift
12591     case $ac_optarg in
12592     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12593     esac
12594     as_fn_append CONFIG_FILES " '$ac_optarg'"
12595     ac_need_defaults=false;;
12596   --header | --heade | --head | --hea )
12597     $ac_shift
12598     case $ac_optarg in
12599     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12600     esac
12601     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12602     ac_need_defaults=false;;
12603   --he | --h)
12604     # Conflict between --help and --header
12605     as_fn_error "ambiguous option: \`$1'
12606 Try \`$0 --help' for more information.";;
12607   --help | --hel | -h )
12608     $as_echo "$ac_cs_usage"; exit ;;
12609   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12610   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12611     ac_cs_silent=: ;;
12612
12613   # This is an error.
12614   -*) as_fn_error "unrecognized option: \`$1'
12615 Try \`$0 --help' for more information." ;;
12616
12617   *) as_fn_append ac_config_targets " $1"
12618      ac_need_defaults=false ;;
12619
12620   esac
12621   shift
12622 done
12623
12624 ac_configure_extra_args=
12625
12626 if $ac_cs_silent; then
12627   exec 6>/dev/null
12628   ac_configure_extra_args="$ac_configure_extra_args --silent"
12629 fi
12630
12631 _ACEOF
12632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12633 if \$ac_cs_recheck; then
12634   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12635   shift
12636   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12637   CONFIG_SHELL='$SHELL'
12638   export CONFIG_SHELL
12639   exec "\$@"
12640 fi
12641
12642 _ACEOF
12643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644 exec 5>>config.log
12645 {
12646   echo
12647   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12648 ## Running $as_me. ##
12649 _ASBOX
12650   $as_echo "$ac_log"
12651 } >&5
12652
12653 _ACEOF
12654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12655 #
12656 # INIT-COMMANDS
12657 #
12658 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12659
12660
12661 # The HP-UX ksh and POSIX shell print the target directory to stdout
12662 # if CDPATH is set.
12663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12664
12665 sed_quote_subst='$sed_quote_subst'
12666 double_quote_subst='$double_quote_subst'
12667 delay_variable_subst='$delay_variable_subst'
12668 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12669 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12670 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12671 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12672 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12673 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12674 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12675 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12676 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12677 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12678 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12679 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12680 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12681 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12682 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12683 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12684 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12685 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12686 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12687 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12688 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12689 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12690 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12691 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12692 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12693 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12694 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12695 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12696 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12697 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12698 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12699 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12700 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12701 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12702 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12703 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12704 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12705 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12706 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12707 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12708 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12709 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12710 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12711 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12712 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12714 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12715 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12716 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12717 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12718 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12719 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12720 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12721 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12722 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12723 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12724 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12725 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12726 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12727 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12728 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12729 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12730 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12731 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12732 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12733 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12734 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12735 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12736 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12737 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12738 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12739 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12740 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12741 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12742 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12743 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12744 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12745 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12746 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12747 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12748 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12749 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12750 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12751 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12752 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12753 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12754 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12755 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12756 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12757 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12758 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12759 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12760 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12761 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12762 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12763 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12764 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12765 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12766 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12767 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12768 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12769 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12770 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12771 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12772 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12773 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12774 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12775 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12776 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12777 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12778 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12779 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12780 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12781 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12782 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12783 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12784 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12785 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12786
12787 LTCC='$LTCC'
12788 LTCFLAGS='$LTCFLAGS'
12789 compiler='$compiler_DEFAULT'
12790
12791 # Quote evaled strings.
12792 for var in SED \
12793 GREP \
12794 EGREP \
12795 FGREP \
12796 LD \
12797 NM \
12798 LN_S \
12799 lt_SP2NL \
12800 lt_NL2SP \
12801 reload_flag \
12802 OBJDUMP \
12803 deplibs_check_method \
12804 file_magic_cmd \
12805 AR \
12806 AR_FLAGS \
12807 STRIP \
12808 RANLIB \
12809 CC \
12810 CFLAGS \
12811 compiler \
12812 lt_cv_sys_global_symbol_pipe \
12813 lt_cv_sys_global_symbol_to_cdecl \
12814 lt_cv_sys_global_symbol_to_c_name_address \
12815 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12816 SHELL \
12817 ECHO \
12818 lt_prog_compiler_no_builtin_flag \
12819 lt_prog_compiler_wl \
12820 lt_prog_compiler_pic \
12821 lt_prog_compiler_static \
12822 lt_cv_prog_compiler_c_o \
12823 need_locks \
12824 DSYMUTIL \
12825 NMEDIT \
12826 LIPO \
12827 OTOOL \
12828 OTOOL64 \
12829 shrext_cmds \
12830 export_dynamic_flag_spec \
12831 whole_archive_flag_spec \
12832 compiler_needs_object \
12833 with_gnu_ld \
12834 allow_undefined_flag \
12835 no_undefined_flag \
12836 hardcode_libdir_flag_spec \
12837 hardcode_libdir_flag_spec_ld \
12838 hardcode_libdir_separator \
12839 fix_srcfile_path \
12840 exclude_expsyms \
12841 include_expsyms \
12842 file_list_spec \
12843 variables_saved_for_relink \
12844 libname_spec \
12845 library_names_spec \
12846 soname_spec \
12847 finish_eval \
12848 old_striplib \
12849 striplib; do
12850     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12851     *[\\\\\\\`\\"\\\$]*)
12852       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12853       ;;
12854     *)
12855       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12856       ;;
12857     esac
12858 done
12859
12860 # Double-quote double-evaled strings.
12861 for var in reload_cmds \
12862 old_postinstall_cmds \
12863 old_postuninstall_cmds \
12864 old_archive_cmds \
12865 extract_expsyms_cmds \
12866 old_archive_from_new_cmds \
12867 old_archive_from_expsyms_cmds \
12868 archive_cmds \
12869 archive_expsym_cmds \
12870 module_cmds \
12871 module_expsym_cmds \
12872 export_symbols_cmds \
12873 prelink_cmds \
12874 postinstall_cmds \
12875 postuninstall_cmds \
12876 finish_cmds \
12877 sys_lib_search_path_spec \
12878 sys_lib_dlsearch_path_spec; do
12879     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12880     *[\\\\\\\`\\"\\\$]*)
12881       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12882       ;;
12883     *)
12884       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12885       ;;
12886     esac
12887 done
12888
12889 # Fix-up fallback echo if it was mangled by the above quoting rules.
12890 case \$lt_ECHO in
12891 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12892   ;;
12893 esac
12894
12895 ac_aux_dir='$ac_aux_dir'
12896 xsi_shell='$xsi_shell'
12897 lt_shell_append='$lt_shell_append'
12898
12899 # See if we are running on zsh, and set the options which allow our
12900 # commands through without removal of \ escapes INIT.
12901 if test -n "\${ZSH_VERSION+set}" ; then
12902    setopt NO_GLOB_SUBST
12903 fi
12904
12905
12906     PACKAGE='$PACKAGE'
12907     VERSION='$VERSION'
12908     TIMESTAMP='$TIMESTAMP'
12909     RM='$RM'
12910     ofile='$ofile'
12911
12912
12913
12914 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12915     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12916     # from automake.
12917     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12918     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12919     LINGUAS="${LINGUAS-%UNSET%}"
12920
12921
12922 _ACEOF
12923
12924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12925
12926 # Handling of arguments.
12927 for ac_config_target in $ac_config_targets
12928 do
12929   case $ac_config_target in
12930     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12931     "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12932     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12933     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12934     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12935     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12936
12937   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12938   esac
12939 done
12940
12941
12942 # If the user did not use the arguments to specify the items to instantiate,
12943 # then the envvar interface is used.  Set only those that are not.
12944 # We use the long form for the default assignment because of an extremely
12945 # bizarre bug on SunOS 4.1.3.
12946 if $ac_need_defaults; then
12947   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12948   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12949   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12950 fi
12951
12952 # Have a temporary directory for convenience.  Make it in the build tree
12953 # simply because there is no reason against having it here, and in addition,
12954 # creating and moving files from /tmp can sometimes cause problems.
12955 # Hook for its removal unless debugging.
12956 # Note that there is a small window in which the directory will not be cleaned:
12957 # after its creation but before its name has been assigned to `$tmp'.
12958 $debug ||
12959 {
12960   tmp=
12961   trap 'exit_status=$?
12962   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12963 ' 0
12964   trap 'as_fn_exit 1' 1 2 13 15
12965 }
12966 # Create a (secure) tmp directory for tmp files.
12967
12968 {
12969   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12970   test -n "$tmp" && test -d "$tmp"
12971 }  ||
12972 {
12973   tmp=./conf$$-$RANDOM
12974   (umask 077 && mkdir "$tmp")
12975 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12976
12977 # Set up the scripts for CONFIG_FILES section.
12978 # No need to generate them if there are no CONFIG_FILES.
12979 # This happens for instance with `./config.status config.h'.
12980 if test -n "$CONFIG_FILES"; then
12981
12982
12983 ac_cr=`echo X | tr X '\015'`
12984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12985 # But we know of no other shell where ac_cr would be empty at this
12986 # point, so we can use a bashism as a fallback.
12987 if test "x$ac_cr" = x; then
12988   eval ac_cr=\$\'\\r\'
12989 fi
12990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12992   ac_cs_awk_cr='\r'
12993 else
12994   ac_cs_awk_cr=$ac_cr
12995 fi
12996
12997 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12998 _ACEOF
12999
13000
13001 {
13002   echo "cat >conf$$subs.awk <<_ACEOF" &&
13003   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13004   echo "_ACEOF"
13005 } >conf$$subs.sh ||
13006   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13008 ac_delim='%!_!# '
13009 for ac_last_try in false false false false false :; do
13010   . ./conf$$subs.sh ||
13011     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13012
13013   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13014   if test $ac_delim_n = $ac_delim_num; then
13015     break
13016   elif $ac_last_try; then
13017     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13018   else
13019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13020   fi
13021 done
13022 rm -f conf$$subs.sh
13023
13024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13025 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13026 _ACEOF
13027 sed -n '
13028 h
13029 s/^/S["/; s/!.*/"]=/
13030 p
13031 g
13032 s/^[^!]*!//
13033 :repl
13034 t repl
13035 s/'"$ac_delim"'$//
13036 t delim
13037 :nl
13038 h
13039 s/\(.\{148\}\).*/\1/
13040 t more1
13041 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13042 p
13043 n
13044 b repl
13045 :more1
13046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13047 p
13048 g
13049 s/.\{148\}//
13050 t nl
13051 :delim
13052 h
13053 s/\(.\{148\}\).*/\1/
13054 t more2
13055 s/["\\]/\\&/g; s/^/"/; s/$/"/
13056 p
13057 b
13058 :more2
13059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13060 p
13061 g
13062 s/.\{148\}//
13063 t delim
13064 ' <conf$$subs.awk | sed '
13065 /^[^""]/{
13066   N
13067   s/\n//
13068 }
13069 ' >>$CONFIG_STATUS || ac_write_fail=1
13070 rm -f conf$$subs.awk
13071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13072 _ACAWK
13073 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13074   for (key in S) S_is_set[key] = 1
13075   FS = "\a"
13076
13077 }
13078 {
13079   line = $ 0
13080   nfields = split(line, field, "@")
13081   substed = 0
13082   len = length(field[1])
13083   for (i = 2; i < nfields; i++) {
13084     key = field[i]
13085     keylen = length(key)
13086     if (S_is_set[key]) {
13087       value = S[key]
13088       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13089       len += length(value) + length(field[++i])
13090       substed = 1
13091     } else
13092       len += 1 + keylen
13093   }
13094
13095   print line
13096 }
13097
13098 _ACAWK
13099 _ACEOF
13100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13102   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13103 else
13104   cat
13105 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13106   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13107 _ACEOF
13108
13109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13111 # trailing colons and then remove the whole line if VPATH becomes empty
13112 # (actually we leave an empty line to preserve line numbers).
13113 if test "x$srcdir" = x.; then
13114   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13115 s/:*\$(srcdir):*/:/
13116 s/:*\${srcdir}:*/:/
13117 s/:*@srcdir@:*/:/
13118 s/^\([^=]*=[     ]*\):*/\1/
13119 s/:*$//
13120 s/^[^=]*=[       ]*$//
13121 }'
13122 fi
13123
13124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13125 fi # test -n "$CONFIG_FILES"
13126
13127 # Set up the scripts for CONFIG_HEADERS section.
13128 # No need to generate them if there are no CONFIG_HEADERS.
13129 # This happens for instance with `./config.status Makefile'.
13130 if test -n "$CONFIG_HEADERS"; then
13131 cat >"$tmp/defines.awk" <<\_ACAWK ||
13132 BEGIN {
13133 _ACEOF
13134
13135 # Transform confdefs.h into an awk script `defines.awk', embedded as
13136 # here-document in config.status, that substitutes the proper values into
13137 # config.h.in to produce config.h.
13138
13139 # Create a delimiter string that does not exist in confdefs.h, to ease
13140 # handling of long lines.
13141 ac_delim='%!_!# '
13142 for ac_last_try in false false :; do
13143   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13144   if test -z "$ac_t"; then
13145     break
13146   elif $ac_last_try; then
13147     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13148   else
13149     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13150   fi
13151 done
13152
13153 # For the awk script, D is an array of macro values keyed by name,
13154 # likewise P contains macro parameters if any.  Preserve backslash
13155 # newline sequences.
13156
13157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13158 sed -n '
13159 s/.\{148\}/&'"$ac_delim"'/g
13160 t rset
13161 :rset
13162 s/^[     ]*#[    ]*define[       ][      ]*/ /
13163 t def
13164 d
13165 :def
13166 s/\\$//
13167 t bsnl
13168 s/["\\]/\\&/g
13169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13170 D["\1"]=" \3"/p
13171 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13172 d
13173 :bsnl
13174 s/["\\]/\\&/g
13175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13176 D["\1"]=" \3\\\\\\n"\\/p
13177 t cont
13178 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13179 t cont
13180 d
13181 :cont
13182 n
13183 s/.\{148\}/&'"$ac_delim"'/g
13184 t clear
13185 :clear
13186 s/\\$//
13187 t bsnlc
13188 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13189 d
13190 :bsnlc
13191 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13192 b cont
13193 ' <confdefs.h | sed '
13194 s/'"$ac_delim"'/"\\\
13195 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13196
13197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198   for (key in D) D_is_set[key] = 1
13199   FS = "\a"
13200 }
13201 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13202   line = \$ 0
13203   split(line, arg, " ")
13204   if (arg[1] == "#") {
13205     defundef = arg[2]
13206     mac1 = arg[3]
13207   } else {
13208     defundef = substr(arg[1], 2)
13209     mac1 = arg[2]
13210   }
13211   split(mac1, mac2, "(") #)
13212   macro = mac2[1]
13213   prefix = substr(line, 1, index(line, defundef) - 1)
13214   if (D_is_set[macro]) {
13215     # Preserve the white space surrounding the "#".
13216     print prefix "define", macro P[macro] D[macro]
13217     next
13218   } else {
13219     # Replace #undef with comments.  This is necessary, for example,
13220     # in the case of _POSIX_SOURCE, which is predefined and required
13221     # on some systems where configure will not decide to define it.
13222     if (defundef == "undef") {
13223       print "/*", prefix defundef, macro, "*/"
13224       next
13225     }
13226   }
13227 }
13228 { print }
13229 _ACAWK
13230 _ACEOF
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13233 fi # test -n "$CONFIG_HEADERS"
13234
13235
13236 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13237 shift
13238 for ac_tag
13239 do
13240   case $ac_tag in
13241   :[FHLC]) ac_mode=$ac_tag; continue;;
13242   esac
13243   case $ac_mode$ac_tag in
13244   :[FHL]*:*);;
13245   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13246   :[FH]-) ac_tag=-:-;;
13247   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13248   esac
13249   ac_save_IFS=$IFS
13250   IFS=:
13251   set x $ac_tag
13252   IFS=$ac_save_IFS
13253   shift
13254   ac_file=$1
13255   shift
13256
13257   case $ac_mode in
13258   :L) ac_source=$1;;
13259   :[FH])
13260     ac_file_inputs=
13261     for ac_f
13262     do
13263       case $ac_f in
13264       -) ac_f="$tmp/stdin";;
13265       *) # Look for the file first in the build tree, then in the source tree
13266          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13267          # because $ac_f cannot contain `:'.
13268          test -f "$ac_f" ||
13269            case $ac_f in
13270            [\\/$]*) false;;
13271            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13272            esac ||
13273            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13274       esac
13275       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13276       as_fn_append ac_file_inputs " '$ac_f'"
13277     done
13278
13279     # Let's still pretend it is `configure' which instantiates (i.e., don't
13280     # use $as_me), people would be surprised to read:
13281     #    /* config.h.  Generated by config.status.  */
13282     configure_input='Generated from '`
13283           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13284         `' by configure.'
13285     if test x"$ac_file" != x-; then
13286       configure_input="$ac_file.  $configure_input"
13287       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13288 $as_echo "$as_me: creating $ac_file" >&6;}
13289     fi
13290     # Neutralize special characters interpreted by sed in replacement strings.
13291     case $configure_input in #(
13292     *\&* | *\|* | *\\* )
13293        ac_sed_conf_input=`$as_echo "$configure_input" |
13294        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13295     *) ac_sed_conf_input=$configure_input;;
13296     esac
13297
13298     case $ac_tag in
13299     *:-:* | *:-) cat >"$tmp/stdin" \
13300       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13301     esac
13302     ;;
13303   esac
13304
13305   ac_dir=`$as_dirname -- "$ac_file" ||
13306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13307          X"$ac_file" : 'X\(//\)[^/]' \| \
13308          X"$ac_file" : 'X\(//\)$' \| \
13309          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13310 $as_echo X"$ac_file" |
13311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13312             s//\1/
13313             q
13314           }
13315           /^X\(\/\/\)[^/].*/{
13316             s//\1/
13317             q
13318           }
13319           /^X\(\/\/\)$/{
13320             s//\1/
13321             q
13322           }
13323           /^X\(\/\).*/{
13324             s//\1/
13325             q
13326           }
13327           s/.*/./; q'`
13328   as_dir="$ac_dir"; as_fn_mkdir_p
13329   ac_builddir=.
13330
13331 case "$ac_dir" in
13332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13333 *)
13334   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13335   # A ".." for each directory in $ac_dir_suffix.
13336   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13337   case $ac_top_builddir_sub in
13338   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13339   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13340   esac ;;
13341 esac
13342 ac_abs_top_builddir=$ac_pwd
13343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13344 # for backward compatibility:
13345 ac_top_builddir=$ac_top_build_prefix
13346
13347 case $srcdir in
13348   .)  # We are building in place.
13349     ac_srcdir=.
13350     ac_top_srcdir=$ac_top_builddir_sub
13351     ac_abs_top_srcdir=$ac_pwd ;;
13352   [\\/]* | ?:[\\/]* )  # Absolute name.
13353     ac_srcdir=$srcdir$ac_dir_suffix;
13354     ac_top_srcdir=$srcdir
13355     ac_abs_top_srcdir=$srcdir ;;
13356   *) # Relative name.
13357     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13358     ac_top_srcdir=$ac_top_build_prefix$srcdir
13359     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13360 esac
13361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13362
13363
13364   case $ac_mode in
13365   :F)
13366   #
13367   # CONFIG_FILE
13368   #
13369
13370   case $INSTALL in
13371   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13372   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13373   esac
13374   ac_MKDIR_P=$MKDIR_P
13375   case $MKDIR_P in
13376   [\\/$]* | ?:[\\/]* ) ;;
13377   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13378   esac
13379 _ACEOF
13380
13381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13382 # If the template does not know about datarootdir, expand it.
13383 # FIXME: This hack should be removed a few years after 2.60.
13384 ac_datarootdir_hack=; ac_datarootdir_seen=
13385 ac_sed_dataroot='
13386 /datarootdir/ {
13387   p
13388   q
13389 }
13390 /@datadir@/p
13391 /@docdir@/p
13392 /@infodir@/p
13393 /@localedir@/p
13394 /@mandir@/p'
13395 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13396 *datarootdir*) ac_datarootdir_seen=yes;;
13397 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13398   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13399 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13400 _ACEOF
13401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13402   ac_datarootdir_hack='
13403   s&@datadir@&$datadir&g
13404   s&@docdir@&$docdir&g
13405   s&@infodir@&$infodir&g
13406   s&@localedir@&$localedir&g
13407   s&@mandir@&$mandir&g
13408   s&\\\${datarootdir}&$datarootdir&g' ;;
13409 esac
13410 _ACEOF
13411
13412 # Neutralize VPATH when `$srcdir' = `.'.
13413 # Shell code in configure.ac might set extrasub.
13414 # FIXME: do we really want to maintain this feature?
13415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13416 ac_sed_extra="$ac_vpsub
13417 $extrasub
13418 _ACEOF
13419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420 :t
13421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13422 s|@configure_input@|$ac_sed_conf_input|;t t
13423 s&@top_builddir@&$ac_top_builddir_sub&;t t
13424 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13425 s&@srcdir@&$ac_srcdir&;t t
13426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13427 s&@top_srcdir@&$ac_top_srcdir&;t t
13428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13429 s&@builddir@&$ac_builddir&;t t
13430 s&@abs_builddir@&$ac_abs_builddir&;t t
13431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13432 s&@INSTALL@&$ac_INSTALL&;t t
13433 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13434 $ac_datarootdir_hack
13435 "
13436 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13437   || as_fn_error "could not create $ac_file" "$LINENO" 5
13438
13439 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13440   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13441   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13442   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13443 which seems to be undefined.  Please make sure it is defined." >&5
13444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13445 which seems to be undefined.  Please make sure it is defined." >&2;}
13446
13447   rm -f "$tmp/stdin"
13448   case $ac_file in
13449   -) cat "$tmp/out" && rm -f "$tmp/out";;
13450   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13451   esac \
13452   || as_fn_error "could not create $ac_file" "$LINENO" 5
13453  ;;
13454   :H)
13455   #
13456   # CONFIG_HEADER
13457   #
13458   if test x"$ac_file" != x-; then
13459     {
13460       $as_echo "/* $configure_input  */" \
13461       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13462     } >"$tmp/config.h" \
13463       || as_fn_error "could not create $ac_file" "$LINENO" 5
13464     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13465       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13466 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13467     else
13468       rm -f "$ac_file"
13469       mv "$tmp/config.h" "$ac_file" \
13470         || as_fn_error "could not create $ac_file" "$LINENO" 5
13471     fi
13472   else
13473     $as_echo "/* $configure_input  */" \
13474       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13475       || as_fn_error "could not create -" "$LINENO" 5
13476   fi
13477 # Compute "$ac_file"'s index in $config_headers.
13478 _am_arg="$ac_file"
13479 _am_stamp_count=1
13480 for _am_header in $config_headers :; do
13481   case $_am_header in
13482     $_am_arg | $_am_arg:* )
13483       break ;;
13484     * )
13485       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13486   esac
13487 done
13488 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13489 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13490          X"$_am_arg" : 'X\(//\)[^/]' \| \
13491          X"$_am_arg" : 'X\(//\)$' \| \
13492          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13493 $as_echo X"$_am_arg" |
13494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13495             s//\1/
13496             q
13497           }
13498           /^X\(\/\/\)[^/].*/{
13499             s//\1/
13500             q
13501           }
13502           /^X\(\/\/\)$/{
13503             s//\1/
13504             q
13505           }
13506           /^X\(\/\).*/{
13507             s//\1/
13508             q
13509           }
13510           s/.*/./; q'`/stamp-h$_am_stamp_count
13511  ;;
13512
13513   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13514 $as_echo "$as_me: executing $ac_file commands" >&6;}
13515  ;;
13516   esac
13517
13518
13519   case $ac_file$ac_mode in
13520     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13521   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13522   # are listed without --file.  Let's play safe and only enable the eval
13523   # if we detect the quoting.
13524   case $CONFIG_FILES in
13525   *\'*) eval set x "$CONFIG_FILES" ;;
13526   *)   set x $CONFIG_FILES ;;
13527   esac
13528   shift
13529   for mf
13530   do
13531     # Strip MF so we end up with the name of the file.
13532     mf=`echo "$mf" | sed -e 's/:.*$//'`
13533     # Check whether this is an Automake generated Makefile or not.
13534     # We used to match only the files named `Makefile.in', but
13535     # some people rename them; so instead we look at the file content.
13536     # Grep'ing the first line is not enough: some people post-process
13537     # each Makefile.in and add a new line on top of each file to say so.
13538     # Grep'ing the whole file is not good either: AIX grep has a line
13539     # limit of 2048, but all sed's we know have understand at least 4000.
13540     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13541       dirpart=`$as_dirname -- "$mf" ||
13542 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13543          X"$mf" : 'X\(//\)[^/]' \| \
13544          X"$mf" : 'X\(//\)$' \| \
13545          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13546 $as_echo X"$mf" |
13547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13548             s//\1/
13549             q
13550           }
13551           /^X\(\/\/\)[^/].*/{
13552             s//\1/
13553             q
13554           }
13555           /^X\(\/\/\)$/{
13556             s//\1/
13557             q
13558           }
13559           /^X\(\/\).*/{
13560             s//\1/
13561             q
13562           }
13563           s/.*/./; q'`
13564     else
13565       continue
13566     fi
13567     # Extract the definition of DEPDIR, am__include, and am__quote
13568     # from the Makefile without running `make'.
13569     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13570     test -z "$DEPDIR" && continue
13571     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13572     test -z "am__include" && continue
13573     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13574     # When using ansi2knr, U may be empty or an underscore; expand it
13575     U=`sed -n 's/^U = //p' < "$mf"`
13576     # Find all dependency output files, they are included files with
13577     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13578     # simplest approach to changing $(DEPDIR) to its actual value in the
13579     # expansion.
13580     for file in `sed -n "
13581       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13582          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13583       # Make sure the directory exists.
13584       test -f "$dirpart/$file" && continue
13585       fdir=`$as_dirname -- "$file" ||
13586 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587          X"$file" : 'X\(//\)[^/]' \| \
13588          X"$file" : 'X\(//\)$' \| \
13589          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13590 $as_echo X"$file" |
13591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13592             s//\1/
13593             q
13594           }
13595           /^X\(\/\/\)[^/].*/{
13596             s//\1/
13597             q
13598           }
13599           /^X\(\/\/\)$/{
13600             s//\1/
13601             q
13602           }
13603           /^X\(\/\).*/{
13604             s//\1/
13605             q
13606           }
13607           s/.*/./; q'`
13608       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13609       # echo "creating $dirpart/$file"
13610       echo '# dummy' > "$dirpart/$file"
13611     done
13612   done
13613 }
13614  ;;
13615     "libtool":C)
13616
13617     # See if we are running on zsh, and set the options which allow our
13618     # commands through without removal of \ escapes.
13619     if test -n "${ZSH_VERSION+set}" ; then
13620       setopt NO_GLOB_SUBST
13621     fi
13622
13623     cfgfile="${ofile}T"
13624     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13625     $RM "$cfgfile"
13626
13627     cat <<_LT_EOF >> "$cfgfile"
13628 #! $SHELL
13629
13630 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13631 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13634 #
13635 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13636 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13637 #   Written by Gordon Matzigkeit, 1996
13638 #
13639 #   This file is part of GNU Libtool.
13640 #
13641 # GNU Libtool is free software; you can redistribute it and/or
13642 # modify it under the terms of the GNU General Public License as
13643 # published by the Free Software Foundation; either version 2 of
13644 # the License, or (at your option) any later version.
13645 #
13646 # As a special exception to the GNU General Public License,
13647 # if you distribute this file as part of a program or library that
13648 # is built using GNU Libtool, you may include this file under the
13649 # same distribution terms that you use for the rest of that program.
13650 #
13651 # GNU Libtool is distributed in the hope that it will be useful,
13652 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13654 # GNU General Public License for more details.
13655 #
13656 # You should have received a copy of the GNU General Public License
13657 # along with GNU Libtool; see the file COPYING.  If not, a copy
13658 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13659 # obtained by writing to the Free Software Foundation, Inc.,
13660 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13661
13662
13663 # The names of the tagged configurations supported by this script.
13664 available_tags=""
13665
13666 # ### BEGIN LIBTOOL CONFIG
13667
13668 # Which release of libtool.m4 was used?
13669 macro_version=$macro_version
13670 macro_revision=$macro_revision
13671
13672 # Whether or not to build shared libraries.
13673 build_libtool_libs=$enable_shared
13674
13675 # Whether or not to build static libraries.
13676 build_old_libs=$enable_static
13677
13678 # What type of objects to build.
13679 pic_mode=$pic_mode
13680
13681 # Whether or not to optimize for fast installation.
13682 fast_install=$enable_fast_install
13683
13684 # The host system.
13685 host_alias=$host_alias
13686 host=$host
13687 host_os=$host_os
13688
13689 # The build system.
13690 build_alias=$build_alias
13691 build=$build
13692 build_os=$build_os
13693
13694 # A sed program that does not truncate output.
13695 SED=$lt_SED
13696
13697 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13698 Xsed="\$SED -e 1s/^X//"
13699
13700 # A grep program that handles long lines.
13701 GREP=$lt_GREP
13702
13703 # An ERE matcher.
13704 EGREP=$lt_EGREP
13705
13706 # A literal string matcher.
13707 FGREP=$lt_FGREP
13708
13709 # A BSD- or MS-compatible name lister.
13710 NM=$lt_NM
13711
13712 # Whether we need soft or hard links.
13713 LN_S=$lt_LN_S
13714
13715 # What is the maximum length of a command?
13716 max_cmd_len=$max_cmd_len
13717
13718 # Object file suffix (normally "o").
13719 objext=$ac_objext
13720
13721 # Executable file suffix (normally "").
13722 exeext=$exeext
13723
13724 # whether the shell understands "unset".
13725 lt_unset=$lt_unset
13726
13727 # turn spaces into newlines.
13728 SP2NL=$lt_lt_SP2NL
13729
13730 # turn newlines into spaces.
13731 NL2SP=$lt_lt_NL2SP
13732
13733 # How to create reloadable object files.
13734 reload_flag=$lt_reload_flag
13735 reload_cmds=$lt_reload_cmds
13736
13737 # An object symbol dumper.
13738 OBJDUMP=$lt_OBJDUMP
13739
13740 # Method to check whether dependent libraries are shared objects.
13741 deplibs_check_method=$lt_deplibs_check_method
13742
13743 # Command to use when deplibs_check_method == "file_magic".
13744 file_magic_cmd=$lt_file_magic_cmd
13745
13746 # The archiver.
13747 AR=$lt_AR
13748 AR_FLAGS=$lt_AR_FLAGS
13749
13750 # A symbol stripping program.
13751 STRIP=$lt_STRIP
13752
13753 # Commands used to install an old-style archive.
13754 RANLIB=$lt_RANLIB
13755 old_postinstall_cmds=$lt_old_postinstall_cmds
13756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13757
13758 # A C compiler.
13759 LTCC=$lt_CC
13760
13761 # LTCC compiler flags.
13762 LTCFLAGS=$lt_CFLAGS
13763
13764 # Take the output of nm and produce a listing of raw symbols and C names.
13765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13766
13767 # Transform the output of nm in a proper C declaration.
13768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13769
13770 # Transform the output of nm in a C name address pair.
13771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13772
13773 # Transform the output of nm in a C name address pair when lib prefix is needed.
13774 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13775
13776 # The name of the directory that contains temporary libtool files.
13777 objdir=$objdir
13778
13779 # Shell to use when invoking shell scripts.
13780 SHELL=$lt_SHELL
13781
13782 # An echo program that does not interpret backslashes.
13783 ECHO=$lt_ECHO
13784
13785 # Used to examine libraries when file_magic_cmd begins with "file".
13786 MAGIC_CMD=$MAGIC_CMD
13787
13788 # Must we lock files when doing compilation?
13789 need_locks=$lt_need_locks
13790
13791 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13792 DSYMUTIL=$lt_DSYMUTIL
13793
13794 # Tool to change global to local symbols on Mac OS X.
13795 NMEDIT=$lt_NMEDIT
13796
13797 # Tool to manipulate fat objects and archives on Mac OS X.
13798 LIPO=$lt_LIPO
13799
13800 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13801 OTOOL=$lt_OTOOL
13802
13803 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13804 OTOOL64=$lt_OTOOL64
13805
13806 # Old archive suffix (normally "a").
13807 libext=$libext
13808
13809 # Shared library suffix (normally ".so").
13810 shrext_cmds=$lt_shrext_cmds
13811
13812 # The commands to extract the exported symbol list from a shared archive.
13813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13814
13815 # Variables whose values should be saved in libtool wrapper scripts and
13816 # restored at link time.
13817 variables_saved_for_relink=$lt_variables_saved_for_relink
13818
13819 # Do we need the "lib" prefix for modules?
13820 need_lib_prefix=$need_lib_prefix
13821
13822 # Do we need a version for libraries?
13823 need_version=$need_version
13824
13825 # Library versioning type.
13826 version_type=$version_type
13827
13828 # Shared library runtime path variable.
13829 runpath_var=$runpath_var
13830
13831 # Shared library path variable.
13832 shlibpath_var=$shlibpath_var
13833
13834 # Is shlibpath searched before the hard-coded library search path?
13835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13836
13837 # Format of library name prefix.
13838 libname_spec=$lt_libname_spec
13839
13840 # List of archive names.  First name is the real one, the rest are links.
13841 # The last name is the one that the linker finds with -lNAME
13842 library_names_spec=$lt_library_names_spec
13843
13844 # The coded name of the library, if different from the real name.
13845 soname_spec=$lt_soname_spec
13846
13847 # Command to use after installation of a shared archive.
13848 postinstall_cmds=$lt_postinstall_cmds
13849
13850 # Command to use after uninstallation of a shared archive.
13851 postuninstall_cmds=$lt_postuninstall_cmds
13852
13853 # Commands used to finish a libtool library installation in a directory.
13854 finish_cmds=$lt_finish_cmds
13855
13856 # As "finish_cmds", except a single script fragment to be evaled but
13857 # not shown.
13858 finish_eval=$lt_finish_eval
13859
13860 # Whether we should hardcode library paths into libraries.
13861 hardcode_into_libs=$hardcode_into_libs
13862
13863 # Compile-time system search path for libraries.
13864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13865
13866 # Run-time system search path for libraries.
13867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13868
13869 # Whether dlopen is supported.
13870 dlopen_support=$enable_dlopen
13871
13872 # Whether dlopen of programs is supported.
13873 dlopen_self=$enable_dlopen_self
13874
13875 # Whether dlopen of statically linked programs is supported.
13876 dlopen_self_static=$enable_dlopen_self_static
13877
13878 # Commands to strip libraries.
13879 old_striplib=$lt_old_striplib
13880 striplib=$lt_striplib
13881
13882
13883 # The linker used to build libraries.
13884 LD=$lt_LD
13885
13886 # Commands used to build an old-style archive.
13887 old_archive_cmds=$lt_old_archive_cmds
13888
13889 # A language specific compiler.
13890 CC=$lt_compiler
13891
13892 # Is the compiler the GNU compiler?
13893 with_gcc=$GCC
13894
13895 # Compiler flag to turn off builtin functions.
13896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13897
13898 # How to pass a linker flag through the compiler.
13899 wl=$lt_lt_prog_compiler_wl
13900
13901 # Additional compiler flags for building library objects.
13902 pic_flag=$lt_lt_prog_compiler_pic
13903
13904 # Compiler flag to prevent dynamic linking.
13905 link_static_flag=$lt_lt_prog_compiler_static
13906
13907 # Does compiler simultaneously support -c and -o options?
13908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13909
13910 # Whether or not to add -lc for building shared libraries.
13911 build_libtool_need_lc=$archive_cmds_need_lc
13912
13913 # Whether or not to disallow shared libs when runtime libs are static.
13914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13915
13916 # Compiler flag to allow reflexive dlopens.
13917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13918
13919 # Compiler flag to generate shared objects directly from archives.
13920 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13921
13922 # Whether the compiler copes with passing no objects directly.
13923 compiler_needs_object=$lt_compiler_needs_object
13924
13925 # Create an old-style archive from a shared archive.
13926 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13927
13928 # Create a temporary old-style archive to link instead of a shared archive.
13929 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13930
13931 # Commands used to build a shared archive.
13932 archive_cmds=$lt_archive_cmds
13933 archive_expsym_cmds=$lt_archive_expsym_cmds
13934
13935 # Commands used to build a loadable module if different from building
13936 # a shared archive.
13937 module_cmds=$lt_module_cmds
13938 module_expsym_cmds=$lt_module_expsym_cmds
13939
13940 # Whether we are building with GNU ld or not.
13941 with_gnu_ld=$lt_with_gnu_ld
13942
13943 # Flag that allows shared libraries with undefined symbols to be built.
13944 allow_undefined_flag=$lt_allow_undefined_flag
13945
13946 # Flag that enforces no undefined symbols.
13947 no_undefined_flag=$lt_no_undefined_flag
13948
13949 # Flag to hardcode \$libdir into a binary during linking.
13950 # This must work even if \$libdir does not exist
13951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13952
13953 # If ld is used when linking, flag to hardcode \$libdir into a binary
13954 # during linking.  This must work even if \$libdir does not exist.
13955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13956
13957 # Whether we need a single "-rpath" flag with a separated argument.
13958 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13959
13960 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13961 # DIR into the resulting binary.
13962 hardcode_direct=$hardcode_direct
13963
13964 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13965 # DIR into the resulting binary and the resulting library dependency is
13966 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13967 # library is relocated.
13968 hardcode_direct_absolute=$hardcode_direct_absolute
13969
13970 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13971 # into the resulting binary.
13972 hardcode_minus_L=$hardcode_minus_L
13973
13974 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13975 # into the resulting binary.
13976 hardcode_shlibpath_var=$hardcode_shlibpath_var
13977
13978 # Set to "yes" if building a shared library automatically hardcodes DIR
13979 # into the library and all subsequent libraries and executables linked
13980 # against it.
13981 hardcode_automatic=$hardcode_automatic
13982
13983 # Set to yes if linker adds runtime paths of dependent libraries
13984 # to runtime path list.
13985 inherit_rpath=$inherit_rpath
13986
13987 # Whether libtool must link a program against all its dependency libraries.
13988 link_all_deplibs=$link_all_deplibs
13989
13990 # Fix the shell variable \$srcfile for the compiler.
13991 fix_srcfile_path=$lt_fix_srcfile_path
13992
13993 # Set to "yes" if exported symbols are required.
13994 always_export_symbols=$always_export_symbols
13995
13996 # The commands to list exported symbols.
13997 export_symbols_cmds=$lt_export_symbols_cmds
13998
13999 # Symbols that should not be listed in the preloaded symbols.
14000 exclude_expsyms=$lt_exclude_expsyms
14001
14002 # Symbols that must always be exported.
14003 include_expsyms=$lt_include_expsyms
14004
14005 # Commands necessary for linking programs (against libraries) with templates.
14006 prelink_cmds=$lt_prelink_cmds
14007
14008 # Specify filename containing input files.
14009 file_list_spec=$lt_file_list_spec
14010
14011 # How to hardcode a shared library path into an executable.
14012 hardcode_action=$hardcode_action
14013
14014 # ### END LIBTOOL CONFIG
14015
14016 _LT_EOF
14017
14018   case $host_os in
14019   aix3*)
14020     cat <<\_LT_EOF >> "$cfgfile"
14021 # AIX sometimes has problems with the GCC collect2 program.  For some
14022 # reason, if we set the COLLECT_NAMES environment variable, the problems
14023 # vanish in a puff of smoke.
14024 if test "X${COLLECT_NAMES+set}" != Xset; then
14025   COLLECT_NAMES=
14026   export COLLECT_NAMES
14027 fi
14028 _LT_EOF
14029     ;;
14030   esac
14031
14032
14033 ltmain="$ac_aux_dir/ltmain.sh"
14034
14035
14036   # We use sed instead of cat because bash on DJGPP gets confused if
14037   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14038   # text mode, it properly converts lines to CR/LF.  This bash problem
14039   # is reportedly fixed, but why not run on old versions too?
14040   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14041     || (rm -f "$cfgfile"; exit 1)
14042
14043   case $xsi_shell in
14044   yes)
14045     cat << \_LT_EOF >> "$cfgfile"
14046
14047 # func_dirname file append nondir_replacement
14048 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14049 # otherwise set result to NONDIR_REPLACEMENT.
14050 func_dirname ()
14051 {
14052   case ${1} in
14053     */*) func_dirname_result="${1%/*}${2}" ;;
14054     *  ) func_dirname_result="${3}" ;;
14055   esac
14056 }
14057
14058 # func_basename file
14059 func_basename ()
14060 {
14061   func_basename_result="${1##*/}"
14062 }
14063
14064 # func_dirname_and_basename file append nondir_replacement
14065 # perform func_basename and func_dirname in a single function
14066 # call:
14067 #   dirname:  Compute the dirname of FILE.  If nonempty,
14068 #             add APPEND to the result, otherwise set result
14069 #             to NONDIR_REPLACEMENT.
14070 #             value returned in "$func_dirname_result"
14071 #   basename: Compute filename of FILE.
14072 #             value retuned in "$func_basename_result"
14073 # Implementation must be kept synchronized with func_dirname
14074 # and func_basename. For efficiency, we do not delegate to
14075 # those functions but instead duplicate the functionality here.
14076 func_dirname_and_basename ()
14077 {
14078   case ${1} in
14079     */*) func_dirname_result="${1%/*}${2}" ;;
14080     *  ) func_dirname_result="${3}" ;;
14081   esac
14082   func_basename_result="${1##*/}"
14083 }
14084
14085 # func_stripname prefix suffix name
14086 # strip PREFIX and SUFFIX off of NAME.
14087 # PREFIX and SUFFIX must not contain globbing or regex special
14088 # characters, hashes, percent signs, but SUFFIX may contain a leading
14089 # dot (in which case that matches only a dot).
14090 func_stripname ()
14091 {
14092   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14093   # positional parameters, so assign one to ordinary parameter first.
14094   func_stripname_result=${3}
14095   func_stripname_result=${func_stripname_result#"${1}"}
14096   func_stripname_result=${func_stripname_result%"${2}"}
14097 }
14098
14099 # func_opt_split
14100 func_opt_split ()
14101 {
14102   func_opt_split_opt=${1%%=*}
14103   func_opt_split_arg=${1#*=}
14104 }
14105
14106 # func_lo2o object
14107 func_lo2o ()
14108 {
14109   case ${1} in
14110     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14111     *)    func_lo2o_result=${1} ;;
14112   esac
14113 }
14114
14115 # func_xform libobj-or-source
14116 func_xform ()
14117 {
14118   func_xform_result=${1%.*}.lo
14119 }
14120
14121 # func_arith arithmetic-term...
14122 func_arith ()
14123 {
14124   func_arith_result=$(( $* ))
14125 }
14126
14127 # func_len string
14128 # STRING may not start with a hyphen.
14129 func_len ()
14130 {
14131   func_len_result=${#1}
14132 }
14133
14134 _LT_EOF
14135     ;;
14136   *) # Bourne compatible functions.
14137     cat << \_LT_EOF >> "$cfgfile"
14138
14139 # func_dirname file append nondir_replacement
14140 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14141 # otherwise set result to NONDIR_REPLACEMENT.
14142 func_dirname ()
14143 {
14144   # Extract subdirectory from the argument.
14145   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14146   if test "X$func_dirname_result" = "X${1}"; then
14147     func_dirname_result="${3}"
14148   else
14149     func_dirname_result="$func_dirname_result${2}"
14150   fi
14151 }
14152
14153 # func_basename file
14154 func_basename ()
14155 {
14156   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14157 }
14158
14159
14160 # func_stripname prefix suffix name
14161 # strip PREFIX and SUFFIX off of NAME.
14162 # PREFIX and SUFFIX must not contain globbing or regex special
14163 # characters, hashes, percent signs, but SUFFIX may contain a leading
14164 # dot (in which case that matches only a dot).
14165 # func_strip_suffix prefix name
14166 func_stripname ()
14167 {
14168   case ${2} in
14169     .*) func_stripname_result=`$ECHO "X${3}" \
14170            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14171     *)  func_stripname_result=`$ECHO "X${3}" \
14172            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14173   esac
14174 }
14175
14176 # sed scripts:
14177 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14178 my_sed_long_arg='1s/^-[^=]*=//'
14179
14180 # func_opt_split
14181 func_opt_split ()
14182 {
14183   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14184   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14185 }
14186
14187 # func_lo2o object
14188 func_lo2o ()
14189 {
14190   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14191 }
14192
14193 # func_xform libobj-or-source
14194 func_xform ()
14195 {
14196   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14197 }
14198
14199 # func_arith arithmetic-term...
14200 func_arith ()
14201 {
14202   func_arith_result=`expr "$@"`
14203 }
14204
14205 # func_len string
14206 # STRING may not start with a hyphen.
14207 func_len ()
14208 {
14209   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14210 }
14211
14212 _LT_EOF
14213 esac
14214
14215 case $lt_shell_append in
14216   yes)
14217     cat << \_LT_EOF >> "$cfgfile"
14218
14219 # func_append var value
14220 # Append VALUE to the end of shell variable VAR.
14221 func_append ()
14222 {
14223   eval "$1+=\$2"
14224 }
14225 _LT_EOF
14226     ;;
14227   *)
14228     cat << \_LT_EOF >> "$cfgfile"
14229
14230 # func_append var value
14231 # Append VALUE to the end of shell variable VAR.
14232 func_append ()
14233 {
14234   eval "$1=\$$1\$2"
14235 }
14236
14237 _LT_EOF
14238     ;;
14239   esac
14240
14241
14242   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14243     || (rm -f "$cfgfile"; exit 1)
14244
14245   mv -f "$cfgfile" "$ofile" ||
14246     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14247   chmod +x "$ofile"
14248
14249  ;;
14250     "default-1":C)
14251     for ac_file in $CONFIG_FILES; do
14252       # Support "outfile[:infile[:infile...]]"
14253       case "$ac_file" in
14254         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14255       esac
14256       # PO directories have a Makefile.in generated from Makefile.in.in.
14257       case "$ac_file" in */Makefile.in)
14258         # Adjust a relative srcdir.
14259         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14260         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14261         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14262         # In autoconf-2.13 it is called $ac_given_srcdir.
14263         # In autoconf-2.50 it is called $srcdir.
14264         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14265         case "$ac_given_srcdir" in
14266           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14267           /*) top_srcdir="$ac_given_srcdir" ;;
14268           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14269         esac
14270         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14271           rm -f "$ac_dir/POTFILES"
14272           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14273           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14274           POMAKEFILEDEPS="POTFILES.in"
14275           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14276           # on $ac_dir but don't depend on user-specified configuration
14277           # parameters.
14278           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14279             # The LINGUAS file contains the set of available languages.
14280             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14281               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14282             fi
14283             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14284             # Hide the ALL_LINGUAS assigment from automake.
14285             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14286             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14287           else
14288             # The set of available languages was given in configure.in.
14289             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14290           fi
14291           case "$ac_given_srcdir" in
14292             .) srcdirpre= ;;
14293             *) srcdirpre='$(srcdir)/' ;;
14294           esac
14295           POFILES=
14296           GMOFILES=
14297           UPDATEPOFILES=
14298           DUMMYPOFILES=
14299           for lang in $ALL_LINGUAS; do
14300             POFILES="$POFILES $srcdirpre$lang.po"
14301             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14302             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14303             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14304           done
14305           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14306           # environment variable.
14307           INST_LINGUAS=
14308           if test -n "$ALL_LINGUAS"; then
14309             for presentlang in $ALL_LINGUAS; do
14310               useit=no
14311               if test "%UNSET%" != "$LINGUAS"; then
14312                 desiredlanguages="$LINGUAS"
14313               else
14314                 desiredlanguages="$ALL_LINGUAS"
14315               fi
14316               for desiredlang in $desiredlanguages; do
14317                 # Use the presentlang catalog if desiredlang is
14318                 #   a. equal to presentlang, or
14319                 #   b. a variant of presentlang (because in this case,
14320                 #      presentlang can be used as a fallback for messages
14321                 #      which are not translated in the desiredlang catalog).
14322                 case "$desiredlang" in
14323                   "$presentlang"*) useit=yes;;
14324                 esac
14325               done
14326               if test $useit = yes; then
14327                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14328               fi
14329             done
14330           fi
14331           CATALOGS=
14332           if test -n "$INST_LINGUAS"; then
14333             for lang in $INST_LINGUAS; do
14334               CATALOGS="$CATALOGS $lang.gmo"
14335             done
14336           fi
14337           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14338           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14339           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14340             if test -f "$f"; then
14341               case "$f" in
14342                 *.orig | *.bak | *~) ;;
14343                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14344               esac
14345             fi
14346           done
14347         fi
14348         ;;
14349       esac
14350     done ;;
14351
14352   esac
14353 done # for ac_tag
14354
14355
14356 as_fn_exit 0
14357 _ACEOF
14358 ac_clean_files=$ac_clean_files_save
14359
14360 test $ac_write_fail = 0 ||
14361   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14362
14363
14364 # configure is writing to config.log, and then calls config.status.
14365 # config.status does its own redirection, appending to config.log.
14366 # Unfortunately, on DOS this fails, as config.log is still kept open
14367 # by configure, so config.status won't be able to write to it; its
14368 # output is simply discarded.  So we exec the FD to /dev/null,
14369 # effectively closing config.log, so it can be properly (re)opened and
14370 # appended to by config.status.  When coming back to configure, we
14371 # need to make the FD available again.
14372 if test "$no_create" != yes; then
14373   ac_cs_success=:
14374   ac_config_status_args=
14375   test "$silent" = yes &&
14376     ac_config_status_args="$ac_config_status_args --quiet"
14377   exec 5>/dev/null
14378   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14379   exec 5>>config.log
14380   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14381   # would make configure fail if this is the last instruction.
14382   $ac_cs_success || as_fn_exit $?
14383 fi
14384 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14385   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14386 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14387 fi
14388