]> git.sur5r.net Git - glabels/blob - qrencode-3.1.0/configure
917cb2f87597c44b157645c2a2702f023ba049c9
[glabels] / qrencode-3.1.0 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="QRencode"
751 ac_unique_file="qrencode.c"
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='LTLIBOBJS
789 LIBOBJS
790 HAVE_SDL_FALSE
791 HAVE_SDL_TRUE
792 SDL_LIBS
793 SDL_CFLAGS
794 SDL_CONFIG
795 BUILD_TESTS_FALSE
796 BUILD_TESTS_TRUE
797 png_LIBS
798 png_CFLAGS
799 BUILD_TOOLS_FALSE
800 BUILD_TOOLS_TRUE
801 PKG_CONFIG
802 OTOOL64
803 OTOOL
804 LIPO
805 NMEDIT
806 DSYMUTIL
807 lt_ECHO
808 RANLIB
809 AR
810 OBJDUMP
811 LN_S
812 NM
813 ac_ct_DUMPBIN
814 DUMPBIN
815 LD
816 FGREP
817 SED
818 LIBTOOL
819 EGREP
820 GREP
821 CPP
822 am__fastdepCC_FALSE
823 am__fastdepCC_TRUE
824 CCDEPMODE
825 AMDEPBACKSLASH
826 AMDEP_FALSE
827 AMDEP_TRUE
828 am__quote
829 am__include
830 DEPDIR
831 OBJEXT
832 EXEEXT
833 ac_ct_CC
834 CPPFLAGS
835 LDFLAGS
836 CFLAGS
837 CC
838 am__untar
839 am__tar
840 AMTAR
841 am__leading_dot
842 SET_MAKE
843 AWK
844 mkdir_p
845 MKDIR_P
846 INSTALL_STRIP_PROGRAM
847 STRIP
848 install_sh
849 MAKEINFO
850 AUTOHEADER
851 AUTOMAKE
852 AUTOCONF
853 ACLOCAL
854 PACKAGE
855 CYGPATH_W
856 am__isrc
857 INSTALL_DATA
858 INSTALL_SCRIPT
859 INSTALL_PROGRAM
860 target_os
861 target_vendor
862 target_cpu
863 target
864 host_os
865 host_vendor
866 host_cpu
867 host
868 build_os
869 build_vendor
870 build_cpu
871 build
872 VERSION
873 MICRO_VERSION
874 MINOR_VERSION
875 MAJOR_VERSION
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 enable_static
917 enable_dependency_tracking
918 enable_shared
919 with_pic
920 enable_fast_install
921 with_gnu_ld
922 enable_libtool_lock
923 with_tools
924 with_tests
925 with_sdl_prefix
926 with_sdl_exec_prefix
927 enable_sdltest
928 enable_gprof
929 enable_gcov
930 enable_mudflap
931 '
932       ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CPP
941 PKG_CONFIG
942 png_CFLAGS
943 png_LIBS'
944
945
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998   # If the previous option needs an argument, assign it.
999   if test -n "$ac_prev"; then
1000     eval $ac_prev=\$ac_option
1001     ac_prev=
1002     continue
1003   fi
1004
1005   case $ac_option in
1006   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1053    { (exit 1); exit 1; }; }
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=no ;;
1064
1065   -docdir | --docdir | --docdi | --doc | --do)
1066     ac_prev=docdir ;;
1067   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068     docdir=$ac_optarg ;;
1069
1070   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071     ac_prev=dvidir ;;
1072   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073     dvidir=$ac_optarg ;;
1074
1075   -enable-* | --enable-*)
1076     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1080    { (exit 1); exit 1; }; }
1081     ac_useropt_orig=$ac_useropt
1082     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083     case $ac_user_opts in
1084       *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088          ac_unrecognized_sep=', ';;
1089     esac
1090     eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094   | --exec | --exe | --ex)
1095     ac_prev=exec_prefix ;;
1096   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098   | --exec=* | --exe=* | --ex=*)
1099     exec_prefix=$ac_optarg ;;
1100
1101   -gas | --gas | --ga | --g)
1102     # Obsolete; use --with-gas.
1103     with_gas=yes ;;
1104
1105   -help | --help | --hel | --he | -h)
1106     ac_init_help=long ;;
1107   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108     ac_init_help=recursive ;;
1109   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110     ac_init_help=short ;;
1111
1112   -host | --host | --hos | --ho)
1113     ac_prev=host_alias ;;
1114   -host=* | --host=* | --hos=* | --ho=*)
1115     host_alias=$ac_optarg ;;
1116
1117   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118     ac_prev=htmldir ;;
1119   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120   | --ht=*)
1121     htmldir=$ac_optarg ;;
1122
1123   -includedir | --includedir | --includedi | --included | --include \
1124   | --includ | --inclu | --incl | --inc)
1125     ac_prev=includedir ;;
1126   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127   | --includ=* | --inclu=* | --incl=* | --inc=*)
1128     includedir=$ac_optarg ;;
1129
1130   -infodir | --infodir | --infodi | --infod | --info | --inf)
1131     ac_prev=infodir ;;
1132   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133     infodir=$ac_optarg ;;
1134
1135   -libdir | --libdir | --libdi | --libd)
1136     ac_prev=libdir ;;
1137   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138     libdir=$ac_optarg ;;
1139
1140   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141   | --libexe | --libex | --libe)
1142     ac_prev=libexecdir ;;
1143   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144   | --libexe=* | --libex=* | --libe=*)
1145     libexecdir=$ac_optarg ;;
1146
1147   -localedir | --localedir | --localedi | --localed | --locale)
1148     ac_prev=localedir ;;
1149   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150     localedir=$ac_optarg ;;
1151
1152   -localstatedir | --localstatedir | --localstatedi | --localstated \
1153   | --localstate | --localstat | --localsta | --localst | --locals)
1154     ac_prev=localstatedir ;;
1155   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157     localstatedir=$ac_optarg ;;
1158
1159   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160     ac_prev=mandir ;;
1161   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162     mandir=$ac_optarg ;;
1163
1164   -nfp | --nfp | --nf)
1165     # Obsolete; use --without-fp.
1166     with_fp=no ;;
1167
1168   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169   | --no-cr | --no-c | -n)
1170     no_create=yes ;;
1171
1172   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174     no_recursion=yes ;;
1175
1176   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178   | --oldin | --oldi | --old | --ol | --o)
1179     ac_prev=oldincludedir ;;
1180   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183     oldincludedir=$ac_optarg ;;
1184
1185   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186     ac_prev=prefix ;;
1187   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188     prefix=$ac_optarg ;;
1189
1190   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191   | --program-pre | --program-pr | --program-p)
1192     ac_prev=program_prefix ;;
1193   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195     program_prefix=$ac_optarg ;;
1196
1197   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198   | --program-suf | --program-su | --program-s)
1199     ac_prev=program_suffix ;;
1200   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202     program_suffix=$ac_optarg ;;
1203
1204   -program-transform-name | --program-transform-name \
1205   | --program-transform-nam | --program-transform-na \
1206   | --program-transform-n | --program-transform- \
1207   | --program-transform | --program-transfor \
1208   | --program-transfo | --program-transf \
1209   | --program-trans | --program-tran \
1210   | --progr-tra | --program-tr | --program-t)
1211     ac_prev=program_transform_name ;;
1212   -program-transform-name=* | --program-transform-name=* \
1213   | --program-transform-nam=* | --program-transform-na=* \
1214   | --program-transform-n=* | --program-transform-=* \
1215   | --program-transform=* | --program-transfor=* \
1216   | --program-transfo=* | --program-transf=* \
1217   | --program-trans=* | --program-tran=* \
1218   | --progr-tra=* | --program-tr=* | --program-t=*)
1219     program_transform_name=$ac_optarg ;;
1220
1221   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222     ac_prev=pdfdir ;;
1223   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224     pdfdir=$ac_optarg ;;
1225
1226   -psdir | --psdir | --psdi | --psd | --ps)
1227     ac_prev=psdir ;;
1228   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229     psdir=$ac_optarg ;;
1230
1231   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232   | -silent | --silent | --silen | --sile | --sil)
1233     silent=yes ;;
1234
1235   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236     ac_prev=sbindir ;;
1237   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238   | --sbi=* | --sb=*)
1239     sbindir=$ac_optarg ;;
1240
1241   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243   | --sharedst | --shareds | --shared | --share | --shar \
1244   | --sha | --sh)
1245     ac_prev=sharedstatedir ;;
1246   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249   | --sha=* | --sh=*)
1250     sharedstatedir=$ac_optarg ;;
1251
1252   -site | --site | --sit)
1253     ac_prev=site ;;
1254   -site=* | --site=* | --sit=*)
1255     site=$ac_optarg ;;
1256
1257   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258     ac_prev=srcdir ;;
1259   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260     srcdir=$ac_optarg ;;
1261
1262   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263   | --syscon | --sysco | --sysc | --sys | --sy)
1264     ac_prev=sysconfdir ;;
1265   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267     sysconfdir=$ac_optarg ;;
1268
1269   -target | --target | --targe | --targ | --tar | --ta | --t)
1270     ac_prev=target_alias ;;
1271   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272     target_alias=$ac_optarg ;;
1273
1274   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275     verbose=yes ;;
1276
1277   -version | --version | --versio | --versi | --vers | -V)
1278     ac_init_version=: ;;
1279
1280   -with-* | --with-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1285    { (exit 1); exit 1; }; }
1286     ac_useropt_orig=$ac_useropt
1287     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288     case $ac_user_opts in
1289       *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293          ac_unrecognized_sep=', ';;
1294     esac
1295     eval with_$ac_useropt=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=no ;;
1313
1314   --x)
1315     # Obsolete; use --with-x.
1316     with_x=yes ;;
1317
1318   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319   | --x-incl | --x-inc | --x-in | --x-i)
1320     ac_prev=x_includes ;;
1321   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323     x_includes=$ac_optarg ;;
1324
1325   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327     ac_prev=x_libraries ;;
1328   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330     x_libraries=$ac_optarg ;;
1331
1332   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1333 Try \`$0 --help' for more information." >&2
1334    { (exit 1); exit 1; }; }
1335     ;;
1336
1337   *=*)
1338     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342    { (exit 1); exit 1; }; }
1343     eval $ac_envvar=\$ac_optarg
1344     export $ac_envvar ;;
1345
1346   *)
1347     # FIXME: should be removed in autoconf 3.0.
1348     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352     ;;
1353
1354   esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1360    { (exit 1); exit 1; }; }
1361 fi
1362
1363 if test -n "$ac_unrecognized_opts"; then
1364   case $enable_option_checking in
1365     no) ;;
1366     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1367    { (exit 1); exit 1; }; } ;;
1368     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369   esac
1370 fi
1371
1372 # Check all directory arguments for consistency.
1373 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374                 datadir sysconfdir sharedstatedir localstatedir includedir \
1375                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376                 libdir localedir mandir
1377 do
1378   eval ac_val=\$$ac_var
1379   # Remove trailing slashes.
1380   case $ac_val in
1381     */ )
1382       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383       eval $ac_var=\$ac_val;;
1384   esac
1385   # Be sure to have absolute directory names.
1386   case $ac_val in
1387     [\\/$]* | ?:[\\/]* )  continue;;
1388     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389   esac
1390   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1391    { (exit 1); exit 1; }; }
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403   if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406     If a cross compiler is detected then cross compile mode will be used." >&2
1407   elif test "x$build_alias" != "x$host_alias"; then
1408     cross_compiling=yes
1409   fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1422    { (exit 1); exit 1; }; }
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1425    { (exit 1); exit 1; }; }
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430   ac_srcdir_defaulted=yes
1431   # Try the directory containing this script, then the parent directory.
1432   ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434          X"$as_myself" : 'X\(//\)[^/]' \| \
1435          X"$as_myself" : 'X\(//\)$' \| \
1436          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)[^/].*/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\/\)$/{
1447             s//\1/
1448             q
1449           }
1450           /^X\(\/\).*/{
1451             s//\1/
1452             q
1453           }
1454           s/.*/./; q'`
1455   srcdir=$ac_confdir
1456   if test ! -r "$srcdir/$ac_unique_file"; then
1457     srcdir=..
1458   fi
1459 else
1460   ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1465    { (exit 1); exit 1; }; }
1466 fi
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 ac_abs_confdir=`(
1469         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1470    { (exit 1); exit 1; }; }
1471         pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474   srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_env_${ac_var}_value=\$${ac_var}
1485   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493   # Omit some internal or obsolete options to make the list less imposing.
1494   # This message is too long to be a string in the A/UX 3.1 sh.
1495   cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE.  See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506   -h, --help              display this help and exit
1507       --help=short        display options specific to this package
1508       --help=recursive    display the short help of all the included packages
1509   -V, --version           display version information and exit
1510   -q, --quiet, --silent   do not print \`checking...' messages
1511       --cache-file=FILE   cache test results in FILE [disabled]
1512   -C, --config-cache      alias for \`--cache-file=config.cache'
1513   -n, --no-create         do not create output files
1514       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517   --prefix=PREFIX         install architecture-independent files in PREFIX
1518                           [$ac_default_prefix]
1519   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1520                           [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530   --bindir=DIR            user executables [EPREFIX/bin]
1531   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1532   --libexecdir=DIR        program executables [EPREFIX/libexec]
1533   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1534   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1535   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1536   --libdir=DIR            object code libraries [EPREFIX/lib]
1537   --includedir=DIR        C header files [PREFIX/include]
1538   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1539   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1540   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1541   --infodir=DIR           info documentation [DATAROOTDIR/info]
1542   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1543   --mandir=DIR            man documentation [DATAROOTDIR/man]
1544   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1545   --htmldir=DIR           html documentation [DOCDIR]
1546   --dvidir=DIR            dvi documentation [DOCDIR]
1547   --pdfdir=DIR            pdf documentation [DOCDIR]
1548   --psdir=DIR             ps documentation [DOCDIR]
1549 _ACEOF
1550
1551   cat <<\_ACEOF
1552
1553 Program names:
1554   --program-prefix=PREFIX            prepend PREFIX to installed program names
1555   --program-suffix=SUFFIX            append SUFFIX to installed program names
1556   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1557
1558 System types:
1559   --build=BUILD     configure for building on BUILD [guessed]
1560   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1561   --target=TARGET   configure for building compilers for TARGET [HOST]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566
1567   cat <<\_ACEOF
1568
1569 Optional Features:
1570   --disable-option-checking  ignore unrecognized --enable/--with options
1571   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1572   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1573   --enable-static[=PKGS]  build static libraries [default=no]
1574   --disable-dependency-tracking  speeds up one-time build
1575   --enable-dependency-tracking   do not reject slow dependency extractors
1576   --enable-shared[=PKGS]  build shared libraries [default=yes]
1577   --enable-fast-install[=PKGS]
1578                           optimize for fast installation [default=yes]
1579   --disable-libtool-lock  avoid locking (might break parallel builds)
1580   --disable-sdltest       Do not try to compile and run a test SDL program
1581   --enable-gprof          generate extra code to write profile information
1582                           suitable for gprof [default=no]
1583   --enable-gcov           generate extra code to write coverage information
1584                           suitable for gcov [default=no]
1585   --enable-mudflap        generate extra code to check memory leaks
1586                           [default=no]
1587
1588 Optional Packages:
1589   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1590   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1591   --with-pic              try to use only PIC/non-PIC objects [default=use
1592                           both]
1593   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1594   --with-tools            build utility tools [default=yes]
1595   --with-tests            build tests [default=no]
1596   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1597   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1598
1599 Some influential environment variables:
1600   CC          C compiler command
1601   CFLAGS      C compiler flags
1602   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1603               nonstandard directory <lib dir>
1604   LIBS        libraries to pass to the linker, e.g. -l<library>
1605   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606               you have headers in a nonstandard directory <include dir>
1607   CPP         C preprocessor
1608   PKG_CONFIG  path to pkg-config utility
1609   png_CFLAGS  C compiler flags for png, overriding pkg-config
1610   png_LIBS    linker flags for png, overriding pkg-config
1611
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1614
1615 _ACEOF
1616 ac_status=$?
1617 fi
1618
1619 if test "$ac_init_help" = "recursive"; then
1620   # If there are subdirs, report their specific --help.
1621   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622     test -d "$ac_dir" ||
1623       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624       continue
1625     ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631   # A ".." for each directory in $ac_dir_suffix.
1632   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633   case $ac_top_builddir_sub in
1634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636   esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644   .)  # We are building in place.
1645     ac_srcdir=.
1646     ac_top_srcdir=$ac_top_builddir_sub
1647     ac_abs_top_srcdir=$ac_pwd ;;
1648   [\\/]* | ?:[\\/]* )  # Absolute name.
1649     ac_srcdir=$srcdir$ac_dir_suffix;
1650     ac_top_srcdir=$srcdir
1651     ac_abs_top_srcdir=$srcdir ;;
1652   *) # Relative name.
1653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654     ac_top_srcdir=$ac_top_build_prefix$srcdir
1655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659     cd "$ac_dir" || { ac_status=$?; continue; }
1660     # Check for guested configure.
1661     if test -f "$ac_srcdir/configure.gnu"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664     elif test -f "$ac_srcdir/configure"; then
1665       echo &&
1666       $SHELL "$ac_srcdir/configure" --help=recursive
1667     else
1668       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669     fi || ac_status=$?
1670     cd "$ac_pwd" || { ac_status=$?; break; }
1671   done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676   cat <<\_ACEOF
1677 configure
1678 generated by GNU Autoconf 2.63
1679
1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1681 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685   exit
1686 fi
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1690
1691 It was created by $as_me, which was
1692 generated by GNU Autoconf 2.63.  Invocation command line was
1693
1694   $ $0 $@
1695
1696 _ACEOF
1697 exec 5>>config.log
1698 {
1699 cat <<_ASUNAME
1700 ## --------- ##
1701 ## Platform. ##
1702 ## --------- ##
1703
1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1709
1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1712
1713 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1714 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1717 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1718 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1719 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1720
1721 _ASUNAME
1722
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726   IFS=$as_save_IFS
1727   test -z "$as_dir" && as_dir=.
1728   $as_echo "PATH: $as_dir"
1729 done
1730 IFS=$as_save_IFS
1731
1732 } >&5
1733
1734 cat >&5 <<_ACEOF
1735
1736
1737 ## ----------- ##
1738 ## Core tests. ##
1739 ## ----------- ##
1740
1741 _ACEOF
1742
1743
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1749 ac_configure_args=
1750 ac_configure_args0=
1751 ac_configure_args1=
1752 ac_must_keep_next=false
1753 for ac_pass in 1 2
1754 do
1755   for ac_arg
1756   do
1757     case $ac_arg in
1758     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760     | -silent | --silent | --silen | --sile | --sil)
1761       continue ;;
1762     *\'*)
1763       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1764     esac
1765     case $ac_pass in
1766     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1767     2)
1768       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1769       if test $ac_must_keep_next = true; then
1770         ac_must_keep_next=false # Got value, back to normal.
1771       else
1772         case $ac_arg in
1773           *=* | --config-cache | -C | -disable-* | --disable-* \
1774           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776           | -with-* | --with-* | -without-* | --without-* | --x)
1777             case "$ac_configure_args0 " in
1778               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1779             esac
1780             ;;
1781           -* ) ac_must_keep_next=true ;;
1782         esac
1783       fi
1784       ac_configure_args="$ac_configure_args '$ac_arg'"
1785       ;;
1786     esac
1787   done
1788 done
1789 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1790 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1791
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log.  We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798   # Save into config.log some information that might help in debugging.
1799   {
1800     echo
1801
1802     cat <<\_ASBOX
1803 ## ---------------- ##
1804 ## Cache variables. ##
1805 ## ---------------- ##
1806 _ASBOX
1807     echo
1808     # The following way of writing the cache mishandles newlines in values,
1809 (
1810   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1811     eval ac_val=\$$ac_var
1812     case $ac_val in #(
1813     *${as_nl}*)
1814       case $ac_var in #(
1815       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1817       esac
1818       case $ac_var in #(
1819       _ | IFS | as_nl) ;; #(
1820       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1821       *) $as_unset $ac_var ;;
1822       esac ;;
1823     esac
1824   done
1825   (set) 2>&1 |
1826     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827     *${as_nl}ac_space=\ *)
1828       sed -n \
1829         "s/'\''/'\''\\\\'\'''\''/g;
1830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831       ;; #(
1832     *)
1833       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1834       ;;
1835     esac |
1836     sort
1837 )
1838     echo
1839
1840     cat <<\_ASBOX
1841 ## ----------------- ##
1842 ## Output variables. ##
1843 ## ----------------- ##
1844 _ASBOX
1845     echo
1846     for ac_var in $ac_subst_vars
1847     do
1848       eval ac_val=\$$ac_var
1849       case $ac_val in
1850       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851       esac
1852       $as_echo "$ac_var='\''$ac_val'\''"
1853     done | sort
1854     echo
1855
1856     if test -n "$ac_subst_files"; then
1857       cat <<\_ASBOX
1858 ## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##
1861 _ASBOX
1862       echo
1863       for ac_var in $ac_subst_files
1864       do
1865         eval ac_val=\$$ac_var
1866         case $ac_val in
1867         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1868         esac
1869         $as_echo "$ac_var='\''$ac_val'\''"
1870       done | sort
1871       echo
1872     fi
1873
1874     if test -s confdefs.h; then
1875       cat <<\_ASBOX
1876 ## ----------- ##
1877 ## confdefs.h. ##
1878 ## ----------- ##
1879 _ASBOX
1880       echo
1881       cat confdefs.h
1882       echo
1883     fi
1884     test "$ac_signal" != 0 &&
1885       $as_echo "$as_me: caught signal $ac_signal"
1886     $as_echo "$as_me: exit $exit_status"
1887   } >&5
1888   rm -f core *.core core.conftest.* &&
1889     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1890     exit $exit_status
1891 ' 0
1892 for ac_signal in 1 2 13 15; do
1893   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1894 done
1895 ac_signal=0
1896
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1899
1900 # Predefined preprocessor variables.
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_NAME "$PACKAGE_NAME"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_STRING "$PACKAGE_STRING"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1924 _ACEOF
1925
1926
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer an explicitly selected file to automatically selected ones.
1929 ac_site_file1=NONE
1930 ac_site_file2=NONE
1931 if test -n "$CONFIG_SITE"; then
1932   ac_site_file1=$CONFIG_SITE
1933 elif test "x$prefix" != xNONE; then
1934   ac_site_file1=$prefix/share/config.site
1935   ac_site_file2=$prefix/etc/config.site
1936 else
1937   ac_site_file1=$ac_default_prefix/share/config.site
1938   ac_site_file2=$ac_default_prefix/etc/config.site
1939 fi
1940 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1941 do
1942   test "x$ac_site_file" = xNONE && continue
1943   if test -r "$ac_site_file"; then
1944     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1946     sed 's/^/| /' "$ac_site_file" >&5
1947     . "$ac_site_file"
1948   fi
1949 done
1950
1951 if test -r "$cache_file"; then
1952   # Some versions of bash will fail to source /dev/null (special
1953   # files actually), so we avoid doing that.
1954   if test -f "$cache_file"; then
1955     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 $as_echo "$as_me: loading cache $cache_file" >&6;}
1957     case $cache_file in
1958       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959       *)                      . "./$cache_file";;
1960     esac
1961   fi
1962 else
1963   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 $as_echo "$as_me: creating cache $cache_file" >&6;}
1965   >$cache_file
1966 fi
1967
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         # differences in whitespace do not lead to failure.
1989         ac_old_val_w=`echo x $ac_old_val`
1990         ac_new_val_w=`echo x $ac_new_val`
1991         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994           ac_cache_corrupted=:
1995         else
1996           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998           eval $ac_var=\$ac_old_val
1999         fi
2000         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2001 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2002         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2004       fi;;
2005   esac
2006   # Pass precious variables to config.status.
2007   if test "$ac_new_set" = set; then
2008     case $ac_new_val in
2009     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010     *) ac_arg=$ac_var=$ac_new_val ;;
2011     esac
2012     case " $ac_configure_args " in
2013       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2014       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015     esac
2016   fi
2017 done
2018 if $ac_cache_corrupted; then
2019   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049
2050
2051
2052 MAJOR_VERSION=3
2053 MINOR_VERSION=1
2054 MICRO_VERSION=0
2055 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2056
2057
2058
2059
2060
2061
2062 ac_config_headers="$ac_config_headers config.h"
2063
2064 ac_aux_dir=
2065 for ac_dir in use "$srcdir"/use; do
2066   if test -f "$ac_dir/install-sh"; then
2067     ac_aux_dir=$ac_dir
2068     ac_install_sh="$ac_aux_dir/install-sh -c"
2069     break
2070   elif test -f "$ac_dir/install.sh"; then
2071     ac_aux_dir=$ac_dir
2072     ac_install_sh="$ac_aux_dir/install.sh -c"
2073     break
2074   elif test -f "$ac_dir/shtool"; then
2075     ac_aux_dir=$ac_dir
2076     ac_install_sh="$ac_aux_dir/shtool install -c"
2077     break
2078   fi
2079 done
2080 if test -z "$ac_aux_dir"; then
2081   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in use \"$srcdir\"/use" >&5
2082 $as_echo "$as_me: error: cannot find install-sh or install.sh in use \"$srcdir\"/use" >&2;}
2083    { (exit 1); exit 1; }; }
2084 fi
2085
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2091 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2092 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2093
2094
2095
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100    { (exit 1); exit 1; }; }
2101
2102 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2103 $as_echo_n "checking build system type... " >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105   $as_echo_n "(cached) " >&6
2106 else
2107   ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113    { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117    { (exit 1); exit 1; }; }
2118
2119 fi
2120 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 $as_echo "$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2123 *-*-*) ;;
2124 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2126    { (exit 1); exit 1; }; };;
2127 esac
2128 build=$ac_cv_build
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_build
2131 shift
2132 build_cpu=$1
2133 build_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 build_os=$*
2138 IFS=$ac_save_IFS
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140
2141
2142 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2143 $as_echo_n "checking host system type... " >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145   $as_echo_n "(cached) " >&6
2146 else
2147   if test "x$host_alias" = x; then
2148   ac_cv_host=$ac_cv_build
2149 else
2150   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153    { (exit 1); exit 1; }; }
2154 fi
2155
2156 fi
2157 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 $as_echo "$ac_cv_host" >&6; }
2159 case $ac_cv_host in
2160 *-*-*) ;;
2161 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2163    { (exit 1); exit 1; }; };;
2164 esac
2165 host=$ac_cv_host
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_host
2168 shift
2169 host_cpu=$1
2170 host_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 host_os=$*
2175 IFS=$ac_save_IFS
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177
2178
2179 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2180 $as_echo_n "checking target system type... " >&6; }
2181 if test "${ac_cv_target+set}" = set; then
2182   $as_echo_n "(cached) " >&6
2183 else
2184   if test "x$target_alias" = x; then
2185   ac_cv_target=$ac_cv_host
2186 else
2187   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 fi
2194 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195 $as_echo "$ac_cv_target" >&6; }
2196 case $ac_cv_target in
2197 *-*-*) ;;
2198 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2200    { (exit 1); exit 1; }; };;
2201 esac
2202 target=$ac_cv_target
2203 ac_save_IFS=$IFS; IFS='-'
2204 set x $ac_cv_target
2205 shift
2206 target_cpu=$1
2207 target_vendor=$2
2208 shift; shift
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2211 target_os=$*
2212 IFS=$ac_save_IFS
2213 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2214
2215
2216 # The aliases save the names the user supplied, while $host etc.
2217 # will get canonicalized.
2218 test -n "$target_alias" &&
2219   test "$program_prefix$program_suffix$program_transform_name" = \
2220     NONENONEs,x,x, &&
2221   program_prefix=${target_alias}-
2222
2223 am__api_version='1.10'
2224
2225 # Find a good install program.  We prefer a C program (faster),
2226 # so one script is as good as another.  But avoid the broken or
2227 # incompatible versions:
2228 # SysV /etc/install, /usr/sbin/install
2229 # SunOS /usr/etc/install
2230 # IRIX /sbin/install
2231 # AIX /bin/install
2232 # AmigaOS /C/install, which installs bootblocks on floppy discs
2233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236 # OS/2's system install, which has a completely different semantic
2237 # ./install, which can be erroneously created by make from ./install.sh.
2238 # Reject install programs that cannot install multiple files.
2239 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2240 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2241 if test -z "$INSTALL"; then
2242 if test "${ac_cv_path_install+set}" = set; then
2243   $as_echo_n "(cached) " >&6
2244 else
2245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   # Account for people who put trailing slashes in PATH elements.
2251 case $as_dir/ in
2252   ./ | .// | /cC/* | \
2253   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2254   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2255   /usr/ucb/* ) ;;
2256   *)
2257     # OSF1 and SCO ODT 3.0 have their own names for install.
2258     # Don't use installbsd from OSF since it installs stuff as root
2259     # by default.
2260     for ac_prog in ginstall scoinst install; do
2261       for ac_exec_ext in '' $ac_executable_extensions; do
2262         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2263           if test $ac_prog = install &&
2264             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265             # AIX install.  It has an incompatible calling convention.
2266             :
2267           elif test $ac_prog = install &&
2268             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269             # program-specific install script used by HP pwplus--don't use.
2270             :
2271           else
2272             rm -rf conftest.one conftest.two conftest.dir
2273             echo one > conftest.one
2274             echo two > conftest.two
2275             mkdir conftest.dir
2276             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2277               test -s conftest.one && test -s conftest.two &&
2278               test -s conftest.dir/conftest.one &&
2279               test -s conftest.dir/conftest.two
2280             then
2281               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2282               break 3
2283             fi
2284           fi
2285         fi
2286       done
2287     done
2288     ;;
2289 esac
2290
2291 done
2292 IFS=$as_save_IFS
2293
2294 rm -rf conftest.one conftest.two conftest.dir
2295
2296 fi
2297   if test "${ac_cv_path_install+set}" = set; then
2298     INSTALL=$ac_cv_path_install
2299   else
2300     # As a last resort, use the slow shell script.  Don't cache a
2301     # value for INSTALL within a source directory, because that will
2302     # break other packages using the cache if that directory is
2303     # removed, or if the value is a relative name.
2304     INSTALL=$ac_install_sh
2305   fi
2306 fi
2307 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2308 $as_echo "$INSTALL" >&6; }
2309
2310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311 # It thinks the first close brace ends the variable substitution.
2312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313
2314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315
2316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317
2318 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2319 $as_echo_n "checking whether build environment is sane... " >&6; }
2320 # Just in case
2321 sleep 1
2322 echo timestamp > conftest.file
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments.  Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2327 # directory).
2328 if (
2329    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2330    if test "$*" = "X"; then
2331       # -L didn't work.
2332       set X `ls -t $srcdir/configure conftest.file`
2333    fi
2334    rm -f conftest.file
2335    if test "$*" != "X $srcdir/configure conftest.file" \
2336       && test "$*" != "X conftest.file $srcdir/configure"; then
2337
2338       # If neither matched, then we have a broken ls.  This can happen
2339       # if, for instance, CONFIG_SHELL is bash and it inherits a
2340       # broken ls alias from the environment.  This has actually
2341       # happened.  Such a system could not be considered "sane".
2342       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2343 alias in your environment" >&5
2344 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2345 alias in your environment" >&2;}
2346    { (exit 1); exit 1; }; }
2347    fi
2348
2349    test "$2" = conftest.file
2350    )
2351 then
2352    # Ok.
2353    :
2354 else
2355    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2356 Check your system clock" >&5
2357 $as_echo "$as_me: error: newly created file is older than distributed files!
2358 Check your system clock" >&2;}
2359    { (exit 1); exit 1; }; }
2360 fi
2361 { $as_echo "$as_me:$LINENO: result: yes" >&5
2362 $as_echo "yes" >&6; }
2363 test "$program_prefix" != NONE &&
2364   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2365 # Use a double $ so make ignores it.
2366 test "$program_suffix" != NONE &&
2367   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2368 # Double any \ or $.
2369 # By default was `s,x,x', remove it if useless.
2370 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2371 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2372
2373 # expand $ac_aux_dir to an absolute path
2374 am_aux_dir=`cd $ac_aux_dir && pwd`
2375
2376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2377 # Use eval to expand $SHELL
2378 if eval "$MISSING --run true"; then
2379   am_missing_run="$MISSING --run "
2380 else
2381   am_missing_run=
2382   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2383 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2384 fi
2385
2386 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2387 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2388 if test -z "$MKDIR_P"; then
2389   if test "${ac_cv_path_mkdir+set}" = set; then
2390   $as_echo_n "(cached) " >&6
2391 else
2392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2394 do
2395   IFS=$as_save_IFS
2396   test -z "$as_dir" && as_dir=.
2397   for ac_prog in mkdir gmkdir; do
2398          for ac_exec_ext in '' $ac_executable_extensions; do
2399            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2400            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2401              'mkdir (GNU coreutils) '* | \
2402              'mkdir (coreutils) '* | \
2403              'mkdir (fileutils) '4.1*)
2404                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2405                break 3;;
2406            esac
2407          done
2408        done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413
2414   if test "${ac_cv_path_mkdir+set}" = set; then
2415     MKDIR_P="$ac_cv_path_mkdir -p"
2416   else
2417     # As a last resort, use the slow shell script.  Don't cache a
2418     # value for MKDIR_P within a source directory, because that will
2419     # break other packages using the cache if that directory is
2420     # removed, or if the value is a relative name.
2421     test -d ./--version && rmdir ./--version
2422     MKDIR_P="$ac_install_sh -d"
2423   fi
2424 fi
2425 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2426 $as_echo "$MKDIR_P" >&6; }
2427
2428 mkdir_p="$MKDIR_P"
2429 case $mkdir_p in
2430   [\\/$]* | ?:[\\/]*) ;;
2431   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2432 esac
2433
2434 for ac_prog in gawk mawk nawk awk
2435 do
2436   # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if test "${ac_cv_prog_AWK+set}" = set; then
2441   $as_echo_n "(cached) " >&6
2442 else
2443   if test -n "$AWK"; then
2444   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_AWK="$ac_prog"
2454     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 AWK=$ac_cv_prog_AWK
2464 if test -n "$AWK"; then
2465   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2466 $as_echo "$AWK" >&6; }
2467 else
2468   { $as_echo "$as_me:$LINENO: result: no" >&5
2469 $as_echo "no" >&6; }
2470 fi
2471
2472
2473   test -n "$AWK" && break
2474 done
2475
2476 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2477 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2478 set x ${MAKE-make}
2479 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2480 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2481   $as_echo_n "(cached) " >&6
2482 else
2483   cat >conftest.make <<\_ACEOF
2484 SHELL = /bin/sh
2485 all:
2486         @echo '@@@%%%=$(MAKE)=@@@%%%'
2487 _ACEOF
2488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2489 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2490   *@@@%%%=?*=@@@%%%*)
2491     eval ac_cv_prog_make_${ac_make}_set=yes;;
2492   *)
2493     eval ac_cv_prog_make_${ac_make}_set=no;;
2494 esac
2495 rm -f conftest.make
2496 fi
2497 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2498   { $as_echo "$as_me:$LINENO: result: yes" >&5
2499 $as_echo "yes" >&6; }
2500   SET_MAKE=
2501 else
2502   { $as_echo "$as_me:$LINENO: result: no" >&5
2503 $as_echo "no" >&6; }
2504   SET_MAKE="MAKE=${MAKE-make}"
2505 fi
2506
2507 rm -rf .tst 2>/dev/null
2508 mkdir .tst 2>/dev/null
2509 if test -d .tst; then
2510   am__leading_dot=.
2511 else
2512   am__leading_dot=_
2513 fi
2514 rmdir .tst 2>/dev/null
2515
2516 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2517   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2518   # is not polluted with repeated "-I."
2519   am__isrc=' -I$(srcdir)'
2520   # test to see if srcdir already configured
2521   if test -f $srcdir/config.status; then
2522     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2523 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2524    { (exit 1); exit 1; }; }
2525   fi
2526 fi
2527
2528 # test whether we have cygpath
2529 if test -z "$CYGPATH_W"; then
2530   if (cygpath --version) >/dev/null 2>/dev/null; then
2531     CYGPATH_W='cygpath -w'
2532   else
2533     CYGPATH_W=echo
2534   fi
2535 fi
2536
2537
2538 # Define the identity of the package.
2539  PACKAGE=qrencode
2540  VERSION=$VERSION
2541
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE "$PACKAGE"
2545 _ACEOF
2546
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define VERSION "$VERSION"
2550 _ACEOF
2551
2552 # Some tools Automake needs.
2553
2554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2555
2556
2557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2558
2559
2560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2561
2562
2563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2564
2565
2566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2567
2568 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2569
2570 # Installed binaries are usually stripped using `strip' when the user
2571 # run `make install-strip'.  However `strip' might not be the right
2572 # tool to use in cross-compilation environments, therefore Automake
2573 # will honor the `STRIP' environment variable to overrule this program.
2574 if test "$cross_compiling" != no; then
2575   if test -n "$ac_tool_prefix"; then
2576   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}strip; ac_word=$2
2578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_STRIP+set}" = set; then
2581   $as_echo_n "(cached) " >&6
2582 else
2583   if test -n "$STRIP"; then
2584   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591   for ac_exec_ext in '' $ac_executable_extensions; do
2592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2594     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598 done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2606 $as_echo "$STRIP" >&6; }
2607 else
2608   { $as_echo "$as_me:$LINENO: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612
2613 fi
2614 if test -z "$ac_cv_prog_STRIP"; then
2615   ac_ct_STRIP=$STRIP
2616   # Extract the first word of "strip", so it can be a program name with args.
2617 set dummy strip; ac_word=$2
2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2621   $as_echo_n "(cached) " >&6
2622 else
2623   if test -n "$ac_ct_STRIP"; then
2624   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_ac_ct_STRIP="strip"
2634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644 if test -n "$ac_ct_STRIP"; then
2645   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2646 $as_echo "$ac_ct_STRIP" >&6; }
2647 else
2648   { $as_echo "$as_me:$LINENO: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652   if test "x$ac_ct_STRIP" = x; then
2653     STRIP=":"
2654   else
2655     case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661     STRIP=$ac_ct_STRIP
2662   fi
2663 else
2664   STRIP="$ac_cv_prog_STRIP"
2665 fi
2666
2667 fi
2668 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2669
2670 # We need awk for the "check" target.  The system "awk" is bad on
2671 # some platforms.
2672 # Always define AMTAR for backward compatibility.
2673
2674 AMTAR=${AMTAR-"${am_missing_run}tar"}
2675
2676 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2677
2678
2679
2680
2681
2682
2683 # Check whether --enable-static was given.
2684 if test "${enable_static+set}" = set; then
2685   enableval=$enable_static; p=${PACKAGE-default}
2686     case $enableval in
2687     yes) enable_static=yes ;;
2688     no) enable_static=no ;;
2689     *)
2690      enable_static=no
2691       # Look at the argument we got.  We use all the common list separators.
2692       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2693       for pkg in $enableval; do
2694         IFS="$lt_save_ifs"
2695         if test "X$pkg" = "X$p"; then
2696           enable_static=yes
2697         fi
2698       done
2699       IFS="$lt_save_ifs"
2700       ;;
2701     esac
2702 else
2703   enable_static=no
2704 fi
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714 DEPDIR="${am__leading_dot}deps"
2715
2716 ac_config_commands="$ac_config_commands depfiles"
2717
2718
2719 am_make=${MAKE-make}
2720 cat > confinc << 'END'
2721 am__doit:
2722         @echo done
2723 .PHONY: am__doit
2724 END
2725 # If we don't find an include directive, just comment out the code.
2726 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2727 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2728 am__include="#"
2729 am__quote=
2730 _am_result=none
2731 # First try GNU make style include.
2732 echo "include confinc" > confmf
2733 # We grep out `Entering directory' and `Leaving directory'
2734 # messages which can occur if `w' ends up in MAKEFLAGS.
2735 # In particular we don't look at `^make:' because GNU make might
2736 # be invoked under some other name (usually "gmake"), in which
2737 # case it prints its new name instead of `make'.
2738 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2739    am__include=include
2740    am__quote=
2741    _am_result=GNU
2742 fi
2743 # Now try BSD make style include.
2744 if test "$am__include" = "#"; then
2745    echo '.include "confinc"' > confmf
2746    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2747       am__include=.include
2748       am__quote="\""
2749       _am_result=BSD
2750    fi
2751 fi
2752
2753
2754 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2755 $as_echo "$_am_result" >&6; }
2756 rm -f confinc confmf
2757
2758 # Check whether --enable-dependency-tracking was given.
2759 if test "${enable_dependency_tracking+set}" = set; then
2760   enableval=$enable_dependency_tracking;
2761 fi
2762
2763 if test "x$enable_dependency_tracking" != xno; then
2764   am_depcomp="$ac_aux_dir/depcomp"
2765   AMDEPBACKSLASH='\'
2766 fi
2767  if test "x$enable_dependency_tracking" != xno; then
2768   AMDEP_TRUE=
2769   AMDEP_FALSE='#'
2770 else
2771   AMDEP_TRUE='#'
2772   AMDEP_FALSE=
2773 fi
2774
2775
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$CC"; then
2790   ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814   { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$ac_cv_prog_CC"; then
2821   ac_ct_CC=$CC
2822   # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$ac_ct_CC"; then
2830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_ac_ct_CC="gcc"
2840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2853 else
2854   { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858   if test "x$ac_ct_CC" = x; then
2859     CC=""
2860   else
2861     case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CC=$ac_ct_CC
2868   fi
2869 else
2870   CC="$ac_cv_prog_CC"
2871 fi
2872
2873 if test -z "$CC"; then
2874           if test -n "$ac_tool_prefix"; then
2875     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then
2880   $as_echo_n "(cached) " >&6
2881 else
2882   if test -n "$CC"; then
2883   ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CC="${ac_tool_prefix}cc"
2893     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907   { $as_echo "$as_me:$LINENO: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912   fi
2913 fi
2914 if test -z "$CC"; then
2915   # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920   $as_echo_n "(cached) " >&6
2921 else
2922   if test -n "$CC"; then
2923   ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925   ac_prog_rejected=no
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931   for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934        ac_prog_rejected=yes
2935        continue
2936      fi
2937     ac_cv_prog_CC="cc"
2938     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 if test $ac_prog_rejected = yes; then
2946   # We found a bogon in the path, so make sure we never use it.
2947   set dummy $ac_cv_prog_CC
2948   shift
2949   if test $# != 0; then
2950     # We chose a different compiler from the bogus one.
2951     # However, it has the same basename, so the bogon will be chosen
2952     # first if we set CC to just the basename; use the full file name.
2953     shift
2954     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955   fi
2956 fi
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964   { $as_echo "$as_me:$LINENO: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$CC"; then
2971   if test -n "$ac_tool_prefix"; then
2972   for ac_prog in cl.exe
2973   do
2974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then
2979   $as_echo_n "(cached) " >&6
2980 else
2981   if test -n "$CC"; then
2982   ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989   for ac_exec_ext in '' $ac_executable_extensions; do
2990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006   { $as_echo "$as_me:$LINENO: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011     test -n "$CC" && break
3012   done
3013 fi
3014 if test -z "$CC"; then
3015   ac_ct_CC=$CC
3016   for ac_prog in cl.exe
3017 do
3018   # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$ac_ct_CC"; then
3026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033   for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     ac_cv_prog_ac_ct_CC="$ac_prog"
3036     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050   { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055   test -n "$ac_ct_CC" && break
3056 done
3057
3058   if test "x$ac_ct_CC" = x; then
3059     CC=""
3060   else
3061     case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067     CC=$ac_ct_CC
3068   fi
3069 fi
3070
3071 fi
3072
3073
3074 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." >&5
3078 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&2;}
3080    { (exit 1); exit 1; }; }; }
3081
3082 # Provide some information about the compiler.
3083 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3084 set X $ac_compile
3085 ac_compiler=$2
3086 { (ac_try="$ac_compiler --version >&5"
3087 case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093   (eval "$ac_compiler --version >&5") 2>&5
3094   ac_status=$?
3095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }
3097 { (ac_try="$ac_compiler -v >&5"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103 $as_echo "$ac_try_echo") >&5
3104   (eval "$ac_compiler -v >&5") 2>&5
3105   ac_status=$?
3106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }
3108 { (ac_try="$ac_compiler -V >&5"
3109 case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115   (eval "$ac_compiler -V >&5") 2>&5
3116   ac_status=$?
3117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }
3119
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 ac_clean_files_save=$ac_clean_files
3136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3137 # Try to create an executable without -o first, disregard a.out.
3138 # It will help us diagnose broken compilers, and finding out an intuition
3139 # of exeext.
3140 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3141 $as_echo_n "checking for C compiler default output file name... " >&6; }
3142 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3143
3144 # The possible output files:
3145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3146
3147 ac_rmfiles=
3148 for ac_file in $ac_files
3149 do
3150   case $ac_file in
3151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3153   esac
3154 done
3155 rm -f $ac_rmfiles
3156
3157 if { (ac_try="$ac_link_default"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164   (eval "$ac_link_default") 2>&5
3165   ac_status=$?
3166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; then
3168   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3170 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3171 # so that the user can short-circuit this test for compilers unknown to
3172 # Autoconf.
3173 for ac_file in $ac_files ''
3174 do
3175   test -f "$ac_file" || continue
3176   case $ac_file in
3177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3178         ;;
3179     [ab].out )
3180         # We found the default executable, but exeext='' is most
3181         # certainly right.
3182         break;;
3183     *.* )
3184         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3185         then :; else
3186            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187         fi
3188         # We set ac_cv_exeext here because the later test for it is not
3189         # safe: cross compilers may not add the suffix if given an `-o'
3190         # argument, so we may need to know it at that point already.
3191         # Even if this section looks crufty: it has the advantage of
3192         # actually working.
3193         break;;
3194     * )
3195         break;;
3196   esac
3197 done
3198 test "$ac_cv_exeext" = no && ac_cv_exeext=
3199
3200 else
3201   ac_file=''
3202 fi
3203
3204 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 if test -z "$ac_file"; then
3207   $as_echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3213 See \`config.log' for more details." >&5
3214 $as_echo "$as_me: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&2;}
3216    { (exit 77); exit 77; }; }; }
3217 fi
3218
3219 ac_exeext=$ac_cv_exeext
3220
3221 # Check that the compiler produces executables we can run.  If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3226 # If not cross compiling, check that we can run a simple program.
3227 if test "$cross_compiling" != yes; then
3228   if { ac_try='./$ac_file'
3229   { (case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3234 $as_echo "$ac_try_echo") >&5
3235   (eval "$ac_try") 2>&5
3236   ac_status=$?
3237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239     cross_compiling=no
3240   else
3241     if test "$cross_compiling" = maybe; then
3242         cross_compiling=yes
3243     else
3244         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3247 If you meant to cross compile, use \`--host'.
3248 See \`config.log' for more details." >&5
3249 $as_echo "$as_me: error: cannot run C compiled programs.
3250 If you meant to cross compile, use \`--host'.
3251 See \`config.log' for more details." >&2;}
3252    { (exit 1); exit 1; }; }; }
3253     fi
3254   fi
3255 fi
3256 { $as_echo "$as_me:$LINENO: result: yes" >&5
3257 $as_echo "yes" >&6; }
3258
3259 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3260 ac_clean_files=$ac_clean_files_save
3261 # Check that the compiler produces executables we can run.  If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3264 $as_echo_n "checking whether we are cross compiling... " >&6; }
3265 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3266 $as_echo "$cross_compiling" >&6; }
3267
3268 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3269 $as_echo_n "checking for suffix of executables... " >&6; }
3270 if { (ac_try="$ac_link"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277   (eval "$ac_link") 2>&5
3278   ac_status=$?
3279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }; then
3281   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3282 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3283 # work properly (i.e., refer to `conftest.exe'), while it won't with
3284 # `rm'.
3285 for ac_file in conftest.exe conftest conftest.*; do
3286   test -f "$ac_file" || continue
3287   case $ac_file in
3288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290           break;;
3291     * ) break;;
3292   esac
3293 done
3294 else
3295   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details." >&2;}
3301    { (exit 1); exit 1; }; }; }
3302 fi
3303
3304 rm -f conftest$ac_cv_exeext
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3307
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3310 ac_exeext=$EXEEXT
3311 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3312 $as_echo_n "checking for suffix of object files... " >&6; }
3313 if test "${ac_cv_objext+set}" = set; then
3314   $as_echo_n "(cached) " >&6
3315 else
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322
3323 int
3324 main ()
3325 {
3326
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.o conftest.obj
3332 if { (ac_try="$ac_compile"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339   (eval "$ac_compile") 2>&5
3340   ac_status=$?
3341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; then
3343   for ac_file in conftest.o conftest.obj conftest.*; do
3344   test -f "$ac_file" || continue;
3345   case $ac_file in
3346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3347     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348        break;;
3349   esac
3350 done
3351 else
3352   $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details." >&2;}
3361    { (exit 1); exit 1; }; }; }
3362 fi
3363
3364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3365 fi
3366 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3367 $as_echo "$ac_cv_objext" >&6; }
3368 OBJEXT=$ac_cv_objext
3369 ac_objext=$OBJEXT
3370 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3371 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3373   $as_echo_n "(cached) " >&6
3374 else
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385 #ifndef __GNUC__
3386        choke me
3387 #endif
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400 $as_echo "$ac_try_echo") >&5
3401   (eval "$ac_compile") 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } && {
3408          test -z "$ac_c_werror_flag" ||
3409          test ! -s conftest.err
3410        } && test -s conftest.$ac_objext; then
3411   ac_compiler_gnu=yes
3412 else
3413   $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416         ac_compiler_gnu=no
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422 fi
3423 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3426   GCC=yes
3427 else
3428   GCC=
3429 fi
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then
3435   $as_echo_n "(cached) " >&6
3436 else
3437   ac_save_c_werror_flag=$ac_c_werror_flag
3438    ac_c_werror_flag=yes
3439    ac_cv_prog_cc_g=no
3440    CFLAGS="-g"
3441    cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464   (eval "$ac_compile") 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } && {
3471          test -z "$ac_c_werror_flag" ||
3472          test ! -s conftest.err
3473        } && test -s conftest.$ac_objext; then
3474   ac_cv_prog_cc_g=yes
3475 else
3476   $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479         CFLAGS=""
3480       cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_c_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   :
3514 else
3515   $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518         ac_c_werror_flag=$ac_save_c_werror_flag
3519          CFLAGS="-g"
3520          cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && {
3550          test -z "$ac_c_werror_flag" ||
3551          test ! -s conftest.err
3552        } && test -s conftest.$ac_objext; then
3553   ac_cv_prog_cc_g=yes
3554 else
3555   $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568    ac_c_werror_flag=$ac_save_c_werror_flag
3569 fi
3570 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573   CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575   if test "$GCC" = yes; then
3576     CFLAGS="-g -O2"
3577   else
3578     CFLAGS="-g"
3579   fi
3580 else
3581   if test "$GCC" = yes; then
3582     CFLAGS="-O2"
3583   else
3584     CFLAGS=
3585   fi
3586 fi
3587 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590   $as_echo_n "(cached) " >&6
3591 else
3592   ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <stdarg.h>
3601 #include <stdio.h>
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3608      char **p;
3609      int i;
3610 {
3611   return p[i];
3612 }
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3614 {
3615   char *s;
3616   va_list v;
3617   va_start (v,p);
3618   s = g (p, va_arg (v,int));
3619   va_end (v);
3620   return s;
3621 }
3622
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3624    function prototypes and stuff, but not '\xHH' hex character constants.
3625    These don't provoke an error unfortunately, instead are silently treated
3626    as 'x'.  The following induces an error, until -std is added to get
3627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3628    array size at least.  It's necessary to write '\x00'==0 to get something
3629    that's true only with -std.  */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633    inside strings and character constants.  */
3634 #define FOO(x) 'x'
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 int argc;
3642 char **argv;
3643 int
3644 main ()
3645 {
3646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 do
3654   CC="$ac_save_CC $ac_arg"
3655   rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3662 $as_echo "$ac_try_echo") >&5
3663   (eval "$ac_compile") 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } && {
3670          test -z "$ac_c_werror_flag" ||
3671          test ! -s conftest.err
3672        } && test -s conftest.$ac_objext; then
3673   ac_cv_prog_cc_c89=$ac_arg
3674 else
3675   $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678
3679 fi
3680
3681 rm -f core conftest.err conftest.$ac_objext
3682   test "x$ac_cv_prog_cc_c89" != "xno" && break
3683 done
3684 rm -f conftest.$ac_ext
3685 CC=$ac_save_CC
3686
3687 fi
3688 # AC_CACHE_VAL
3689 case "x$ac_cv_prog_cc_c89" in
3690   x)
3691     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3692 $as_echo "none needed" >&6; } ;;
3693   xno)
3694     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3695 $as_echo "unsupported" >&6; } ;;
3696   *)
3697     CC="$CC $ac_cv_prog_cc_c89"
3698     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3700 esac
3701
3702
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709 depcc="$CC"   am_compiler_list=
3710
3711 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3712 $as_echo_n "checking dependency style of $depcc... " >&6; }
3713 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3714   $as_echo_n "(cached) " >&6
3715 else
3716   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3717   # We make a subdir and do the tests there.  Otherwise we can end up
3718   # making bogus files that we don't know about and never remove.  For
3719   # instance it was reported that on HP-UX the gcc test will end up
3720   # making a dummy file named `D' -- because `-MD' means `put the output
3721   # in D'.
3722   mkdir conftest.dir
3723   # Copy depcomp to subdir because otherwise we won't find it if we're
3724   # using a relative directory.
3725   cp "$am_depcomp" conftest.dir
3726   cd conftest.dir
3727   # We will build objects and dependencies in a subdirectory because
3728   # it helps to detect inapplicable dependency modes.  For instance
3729   # both Tru64's cc and ICC support -MD to output dependencies as a
3730   # side effect of compilation, but ICC will put the dependencies in
3731   # the current directory while Tru64 will put them in the object
3732   # directory.
3733   mkdir sub
3734
3735   am_cv_CC_dependencies_compiler_type=none
3736   if test "$am_compiler_list" = ""; then
3737      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3738   fi
3739   for depmode in $am_compiler_list; do
3740     # Setup a source with many dependencies, because some compilers
3741     # like to wrap large dependency lists on column 80 (with \), and
3742     # we should not choose a depcomp mode which is confused by this.
3743     #
3744     # We need to recreate these files for each test, as the compiler may
3745     # overwrite some of them when testing with obscure command lines.
3746     # This happens at least with the AIX C compiler.
3747     : > sub/conftest.c
3748     for i in 1 2 3 4 5 6; do
3749       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3750       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3751       # Solaris 8's {/usr,}/bin/sh.
3752       touch sub/conftst$i.h
3753     done
3754     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755
3756     case $depmode in
3757     nosideeffect)
3758       # after this tag, mechanisms are not by side-effect, so they'll
3759       # only be used when explicitly requested
3760       if test "x$enable_dependency_tracking" = xyes; then
3761         continue
3762       else
3763         break
3764       fi
3765       ;;
3766     none) break ;;
3767     esac
3768     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3769     # mode.  It turns out that the SunPro C++ compiler does not properly
3770     # handle `-M -o', and we need to detect this.
3771     if depmode=$depmode \
3772        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3773        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3774        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3775          >/dev/null 2>conftest.err &&
3776        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3777        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3778        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3779        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3780       # icc doesn't choke on unknown options, it will just issue warnings
3781       # or remarks (even with -Werror).  So we grep stderr for any message
3782       # that says an option was ignored or not supported.
3783       # When given -MP, icc 7.0 and 7.1 complain thusly:
3784       #   icc: Command line warning: ignoring option '-M'; no argument required
3785       # The diagnosis changed in icc 8.0:
3786       #   icc: Command line remark: option '-MP' not supported
3787       if (grep 'ignoring option' conftest.err ||
3788           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3789         am_cv_CC_dependencies_compiler_type=$depmode
3790         break
3791       fi
3792     fi
3793   done
3794
3795   cd ..
3796   rm -rf conftest.dir
3797 else
3798   am_cv_CC_dependencies_compiler_type=none
3799 fi
3800
3801 fi
3802 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3803 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3805
3806  if
3807   test "x$enable_dependency_tracking" != xno \
3808   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809   am__fastdepCC_TRUE=
3810   am__fastdepCC_FALSE='#'
3811 else
3812   am__fastdepCC_TRUE='#'
3813   am__fastdepCC_FALSE=
3814 fi
3815
3816
3817
3818 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3819 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3820 if test "${ac_cv_c_const+set}" = set; then
3821   $as_echo_n "(cached) " >&6
3822 else
3823   cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833 /* FIXME: Include the comments suggested by Paul. */
3834 #ifndef __cplusplus
3835   /* Ultrix mips cc rejects this.  */
3836   typedef int charset[2];
3837   const charset cs;
3838   /* SunOS 4.1.1 cc rejects this.  */
3839   char const *const *pcpcc;
3840   char **ppc;
3841   /* NEC SVR4.0.2 mips cc rejects this.  */
3842   struct point {int x, y;};
3843   static struct point const zero = {0,0};
3844   /* AIX XL C 1.02.0.0 rejects this.
3845      It does not let you subtract one const X* pointer from another in
3846      an arm of an if-expression whose if-part is not a constant
3847      expression */
3848   const char *g = "string";
3849   pcpcc = &g + (g ? g-g : 0);
3850   /* HPUX 7.0 cc rejects these. */
3851   ++pcpcc;
3852   ppc = (char**) pcpcc;
3853   pcpcc = (char const *const *) ppc;
3854   { /* SCO 3.2v4 cc rejects this.  */
3855     char *t;
3856     char const *s = 0 ? (char *) 0 : (char const *) 0;
3857
3858     *t++ = 0;
3859     if (s) return 0;
3860   }
3861   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3862     int x[] = {25, 17};
3863     const int *foo = &x[0];
3864     ++foo;
3865   }
3866   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3867     typedef const int *iptr;
3868     iptr p = 0;
3869     ++p;
3870   }
3871   { /* AIX XL C 1.02.0.0 rejects this saying
3872        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3873     struct s { int j; const int *ap[3]; };
3874     struct s *b; b->j = 5;
3875   }
3876   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3877     const int foo = 10;
3878     if (!foo) return 0;
3879   }
3880   return !cs[0] && !zero.x;
3881 #endif
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895   (eval "$ac_compile") 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } && {
3902          test -z "$ac_c_werror_flag" ||
3903          test ! -s conftest.err
3904        } && test -s conftest.$ac_objext; then
3905   ac_cv_c_const=yes
3906 else
3907   $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910         ac_cv_c_const=no
3911 fi
3912
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 fi
3915 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3916 $as_echo "$ac_cv_c_const" >&6; }
3917 if test $ac_cv_c_const = no; then
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define const /**/
3921 _ACEOF
3922
3923 fi
3924
3925 { $as_echo "$as_me:$LINENO: checking for inline" >&5
3926 $as_echo_n "checking for inline... " >&6; }
3927 if test "${ac_cv_c_inline+set}" = set; then
3928   $as_echo_n "(cached) " >&6
3929 else
3930   ac_cv_c_inline=no
3931 for ac_kw in inline __inline__ __inline; do
3932   cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938 #ifndef __cplusplus
3939 typedef int foo_t;
3940 static $ac_kw foo_t static_foo () {return 0; }
3941 $ac_kw foo_t foo () {return 0; }
3942 #endif
3943
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3947 case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953   (eval "$ac_compile") 2>conftest.er1
3954   ac_status=$?
3955   grep -v '^ *+' conftest.er1 >conftest.err
3956   rm -f conftest.er1
3957   cat conftest.err >&5
3958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); } && {
3960          test -z "$ac_c_werror_flag" ||
3961          test ! -s conftest.err
3962        } && test -s conftest.$ac_objext; then
3963   ac_cv_c_inline=$ac_kw
3964 else
3965   $as_echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968
3969 fi
3970
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972   test "$ac_cv_c_inline" != no && break
3973 done
3974
3975 fi
3976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3977 $as_echo "$ac_cv_c_inline" >&6; }
3978
3979
3980 case $ac_cv_c_inline in
3981   inline | yes) ;;
3982   *)
3983     case $ac_cv_c_inline in
3984       no) ac_val=;;
3985       *) ac_val=$ac_cv_c_inline;;
3986     esac
3987     cat >>confdefs.h <<_ACEOF
3988 #ifndef __cplusplus
3989 #define inline $ac_val
3990 #endif
3991 _ACEOF
3992     ;;
3993 esac
3994
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4001 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4002 # On Suns, sometimes $CPP names a directory.
4003 if test -n "$CPP" && test -d "$CPP"; then
4004   CPP=
4005 fi
4006 if test -z "$CPP"; then
4007   if test "${ac_cv_prog_CPP+set}" = set; then
4008   $as_echo_n "(cached) " >&6
4009 else
4010       # Double quotes because CPP needs to be expanded
4011     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4012     do
4013       ac_preproc_ok=false
4014 for ac_c_preproc_warn_flag in '' yes
4015 do
4016   # Use a header file that comes with gcc, so configuring glibc
4017   # with a fresh cross-compiler works.
4018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019   # <limits.h> exists even on freestanding compilers.
4020   # On the NeXT, cc -E runs the code through the compiler's parser,
4021   # not just through cpp. "Syntax error" is here to catch this case.
4022   cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 #ifdef __STDC__
4029 # include <limits.h>
4030 #else
4031 # include <assert.h>
4032 #endif
4033                      Syntax error
4034 _ACEOF
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4036 case "(($ac_try" in
4037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038   *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4041 $as_echo "$ac_try_echo") >&5
4042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4043   ac_status=$?
4044   grep -v '^ *+' conftest.er1 >conftest.err
4045   rm -f conftest.er1
4046   cat conftest.err >&5
4047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } >/dev/null && {
4049          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4050          test ! -s conftest.err
4051        }; then
4052   :
4053 else
4054   $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057   # Broken: fails on valid input.
4058 continue
4059 fi
4060
4061 rm -f conftest.err conftest.$ac_ext
4062
4063   # OK, works on sane cases.  Now check whether nonexistent headers
4064   # can be detected and how.
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #include <ac_nonexistent.h>
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } >/dev/null && {
4087          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088          test ! -s conftest.err
4089        }; then
4090   # Broken: success on invalid input.
4091 continue
4092 else
4093   $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096   # Passes both tests.
4097 ac_preproc_ok=:
4098 break
4099 fi
4100
4101 rm -f conftest.err conftest.$ac_ext
4102
4103 done
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then
4107   break
4108 fi
4109
4110     done
4111     ac_cv_prog_CPP=$CPP
4112
4113 fi
4114   CPP=$ac_cv_prog_CPP
4115 else
4116   ac_cv_prog_CPP=$CPP
4117 fi
4118 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4119 $as_echo "$CPP" >&6; }
4120 ac_preproc_ok=false
4121 for ac_c_preproc_warn_flag in '' yes
4122 do
4123   # Use a header file that comes with gcc, so configuring glibc
4124   # with a fresh cross-compiler works.
4125   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126   # <limits.h> exists even on freestanding compilers.
4127   # On the NeXT, cc -E runs the code through the compiler's parser,
4128   # not just through cpp. "Syntax error" is here to catch this case.
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #ifdef __STDC__
4136 # include <limits.h>
4137 #else
4138 # include <assert.h>
4139 #endif
4140                      Syntax error
4141 _ACEOF
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } >/dev/null && {
4156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157          test ! -s conftest.err
4158        }; then
4159   :
4160 else
4161   $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164   # Broken: fails on valid input.
4165 continue
4166 fi
4167
4168 rm -f conftest.err conftest.$ac_ext
4169
4170   # OK, works on sane cases.  Now check whether nonexistent headers
4171   # can be detected and how.
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #include <ac_nonexistent.h>
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } >/dev/null && {
4194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        }; then
4197   # Broken: success on invalid input.
4198 continue
4199 else
4200   $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203   # Passes both tests.
4204 ac_preproc_ok=:
4205 break
4206 fi
4207
4208 rm -f conftest.err conftest.$ac_ext
4209
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then
4214   :
4215 else
4216   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." >&5
4220 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4221 See \`config.log' for more details." >&2;}
4222    { (exit 1); exit 1; }; }; }
4223 fi
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4234 if test "${ac_cv_path_GREP+set}" = set; then
4235   $as_echo_n "(cached) " >&6
4236 else
4237   if test -z "$GREP"; then
4238   ac_path_GREP_found=false
4239   # Loop through the user's path and test for each of PROGNAME-LIST
4240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for ac_prog in grep ggrep; do
4246     for ac_exec_ext in '' $ac_executable_extensions; do
4247       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4248       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4249 # Check for GNU ac_path_GREP and select it if it is found.
4250   # Check for GNU $ac_path_GREP
4251 case `"$ac_path_GREP" --version 2>&1` in
4252 *GNU*)
4253   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4254 *)
4255   ac_count=0
4256   $as_echo_n 0123456789 >"conftest.in"
4257   while :
4258   do
4259     cat "conftest.in" "conftest.in" >"conftest.tmp"
4260     mv "conftest.tmp" "conftest.in"
4261     cp "conftest.in" "conftest.nl"
4262     $as_echo 'GREP' >> "conftest.nl"
4263     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265     ac_count=`expr $ac_count + 1`
4266     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4267       # Best one so far, save it but keep looking for a better one
4268       ac_cv_path_GREP="$ac_path_GREP"
4269       ac_path_GREP_max=$ac_count
4270     fi
4271     # 10*(2^10) chars as input seems more than enough
4272     test $ac_count -gt 10 && break
4273   done
4274   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275 esac
4276
4277       $ac_path_GREP_found && break 3
4278     done
4279   done
4280 done
4281 IFS=$as_save_IFS
4282   if test -z "$ac_cv_path_GREP"; then
4283     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4284 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4285    { (exit 1); exit 1; }; }
4286   fi
4287 else
4288   ac_cv_path_GREP=$GREP
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294  GREP="$ac_cv_path_GREP"
4295
4296
4297 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if test "${ac_cv_path_EGREP+set}" = set; then
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303    then ac_cv_path_EGREP="$GREP -E"
4304    else
4305      if test -z "$EGREP"; then
4306   ac_path_EGREP_found=false
4307   # Loop through the user's path and test for each of PROGNAME-LIST
4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313   for ac_prog in egrep; do
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318   # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4320 *GNU*)
4321   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4322 *)
4323   ac_count=0
4324   $as_echo_n 0123456789 >"conftest.in"
4325   while :
4326   do
4327     cat "conftest.in" "conftest.in" >"conftest.tmp"
4328     mv "conftest.tmp" "conftest.in"
4329     cp "conftest.in" "conftest.nl"
4330     $as_echo 'EGREP' >> "conftest.nl"
4331     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333     ac_count=`expr $ac_count + 1`
4334     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335       # Best one so far, save it but keep looking for a better one
4336       ac_cv_path_EGREP="$ac_path_EGREP"
4337       ac_path_EGREP_max=$ac_count
4338     fi
4339     # 10*(2^10) chars as input seems more than enough
4340     test $ac_count -gt 10 && break
4341   done
4342   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345       $ac_path_EGREP_found && break 3
4346     done
4347   done
4348 done
4349 IFS=$as_save_IFS
4350   if test -z "$ac_cv_path_EGREP"; then
4351     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353    { (exit 1); exit 1; }; }
4354   fi
4355 else
4356   ac_cv_path_EGREP=$EGREP
4357 fi
4358
4359    fi
4360 fi
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4362 $as_echo "$ac_cv_path_EGREP" >&6; }
4363  EGREP="$ac_cv_path_EGREP"
4364
4365
4366 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4367 $as_echo_n "checking for ANSI C header files... " >&6; }
4368 if test "${ac_cv_header_stdc+set}" = set; then
4369   $as_echo_n "(cached) " >&6
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <stdlib.h>
4378 #include <stdarg.h>
4379 #include <string.h>
4380 #include <float.h>
4381
4382 int
4383 main ()
4384 {
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (ac_try="$ac_compile"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4397 $as_echo "$ac_try_echo") >&5
4398   (eval "$ac_compile") 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && {
4405          test -z "$ac_c_werror_flag" ||
4406          test ! -s conftest.err
4407        } && test -s conftest.$ac_objext; then
4408   ac_cv_header_stdc=yes
4409 else
4410   $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413         ac_cv_header_stdc=no
4414 fi
4415
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417
4418 if test $ac_cv_header_stdc = yes; then
4419   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #include <string.h>
4427
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430   $EGREP "memchr" >/dev/null 2>&1; then
4431   :
4432 else
4433   ac_cv_header_stdc=no
4434 fi
4435 rm -f conftest*
4436
4437 fi
4438
4439 if test $ac_cv_header_stdc = yes; then
4440   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 #include <stdlib.h>
4448
4449 _ACEOF
4450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451   $EGREP "free" >/dev/null 2>&1; then
4452   :
4453 else
4454   ac_cv_header_stdc=no
4455 fi
4456 rm -f conftest*
4457
4458 fi
4459
4460 if test $ac_cv_header_stdc = yes; then
4461   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4462   if test "$cross_compiling" = yes; then
4463   :
4464 else
4465   cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #include <ctype.h>
4472 #include <stdlib.h>
4473 #if ((' ' & 0x0FF) == 0x020)
4474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4476 #else
4477 # define ISLOWER(c) \
4478                    (('a' <= (c) && (c) <= 'i') \
4479                      || ('j' <= (c) && (c) <= 'r') \
4480                      || ('s' <= (c) && (c) <= 'z'))
4481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4482 #endif
4483
4484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4485 int
4486 main ()
4487 {
4488   int i;
4489   for (i = 0; i < 256; i++)
4490     if (XOR (islower (i), ISLOWER (i))
4491         || toupper (i) != TOUPPER (i))
4492       return 2;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest$ac_exeext
4497 if { (ac_try="$ac_link"
4498 case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4503 $as_echo "$ac_try_echo") >&5
4504   (eval "$ac_link") 2>&5
4505   ac_status=$?
4506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4508   { (case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513 $as_echo "$ac_try_echo") >&5
4514   (eval "$ac_try") 2>&5
4515   ac_status=$?
4516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   :
4519 else
4520   $as_echo "$as_me: program exited with status $ac_status" >&5
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 ( exit $ac_status )
4525 ac_cv_header_stdc=no
4526 fi
4527 rm -rf conftest.dSYM
4528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4529 fi
4530
4531
4532 fi
4533 fi
4534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4535 $as_echo "$ac_cv_header_stdc" >&6; }
4536 if test $ac_cv_header_stdc = yes; then
4537
4538 cat >>confdefs.h <<\_ACEOF
4539 #define STDC_HEADERS 1
4540 _ACEOF
4541
4542 fi
4543
4544
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 if test -n "$ac_tool_prefix"; then
4551   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_CC+set}" = set; then
4556   $as_echo_n "(cached) " >&6
4557 else
4558   if test -n "$CC"; then
4559   ac_cv_prog_CC="$CC" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4569     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 CC=$ac_cv_prog_CC
4579 if test -n "$CC"; then
4580   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4581 $as_echo "$CC" >&6; }
4582 else
4583   { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 fi
4589 if test -z "$ac_cv_prog_CC"; then
4590   ac_ct_CC=$CC
4591   # Extract the first word of "gcc", so it can be a program name with args.
4592 set dummy gcc; ac_word=$2
4593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4596   $as_echo_n "(cached) " >&6
4597 else
4598   if test -n "$ac_ct_CC"; then
4599   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608     ac_cv_prog_ac_ct_CC="gcc"
4609     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4619 if test -n "$ac_ct_CC"; then
4620   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4621 $as_echo "$ac_ct_CC" >&6; }
4622 else
4623   { $as_echo "$as_me:$LINENO: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627   if test "x$ac_ct_CC" = x; then
4628     CC=""
4629   else
4630     case $cross_compiling:$ac_tool_warned in
4631 yes:)
4632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634 ac_tool_warned=yes ;;
4635 esac
4636     CC=$ac_ct_CC
4637   fi
4638 else
4639   CC="$ac_cv_prog_CC"
4640 fi
4641
4642 if test -z "$CC"; then
4643           if test -n "$ac_tool_prefix"; then
4644     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}cc; ac_word=$2
4646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_CC+set}" = set; then
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -n "$CC"; then
4652   ac_cv_prog_CC="$CC" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_CC="${ac_tool_prefix}cc"
4662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 CC=$ac_cv_prog_CC
4672 if test -n "$CC"; then
4673   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4674 $as_echo "$CC" >&6; }
4675 else
4676   { $as_echo "$as_me:$LINENO: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681   fi
4682 fi
4683 if test -z "$CC"; then
4684   # Extract the first word of "cc", so it can be a program name with args.
4685 set dummy cc; ac_word=$2
4686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_CC+set}" = set; then
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$CC"; then
4692   ac_cv_prog_CC="$CC" # Let the user override the test.
4693 else
4694   ac_prog_rejected=no
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700   for ac_exec_ext in '' $ac_executable_extensions; do
4701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4703        ac_prog_rejected=yes
4704        continue
4705      fi
4706     ac_cv_prog_CC="cc"
4707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708     break 2
4709   fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 if test $ac_prog_rejected = yes; then
4715   # We found a bogon in the path, so make sure we never use it.
4716   set dummy $ac_cv_prog_CC
4717   shift
4718   if test $# != 0; then
4719     # We chose a different compiler from the bogus one.
4720     # However, it has the same basename, so the bogon will be chosen
4721     # first if we set CC to just the basename; use the full file name.
4722     shift
4723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4724   fi
4725 fi
4726 fi
4727 fi
4728 CC=$ac_cv_prog_CC
4729 if test -n "$CC"; then
4730   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4731 $as_echo "$CC" >&6; }
4732 else
4733   { $as_echo "$as_me:$LINENO: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738 fi
4739 if test -z "$CC"; then
4740   if test -n "$ac_tool_prefix"; then
4741   for ac_prog in cl.exe
4742   do
4743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_CC+set}" = set; then
4748   $as_echo_n "(cached) " >&6
4749 else
4750   if test -n "$CC"; then
4751   ac_cv_prog_CC="$CC" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4761     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 CC=$ac_cv_prog_CC
4771 if test -n "$CC"; then
4772   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4773 $as_echo "$CC" >&6; }
4774 else
4775   { $as_echo "$as_me:$LINENO: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780     test -n "$CC" && break
4781   done
4782 fi
4783 if test -z "$CC"; then
4784   ac_ct_CC=$CC
4785   for ac_prog in cl.exe
4786 do
4787   # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4792   $as_echo_n "(cached) " >&6
4793 else
4794   if test -n "$ac_ct_CC"; then
4795   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802   for ac_exec_ext in '' $ac_executable_extensions; do
4803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804     ac_cv_prog_ac_ct_CC="$ac_prog"
4805     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4815 if test -n "$ac_ct_CC"; then
4816   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4817 $as_echo "$ac_ct_CC" >&6; }
4818 else
4819   { $as_echo "$as_me:$LINENO: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824   test -n "$ac_ct_CC" && break
4825 done
4826
4827   if test "x$ac_ct_CC" = x; then
4828     CC=""
4829   else
4830     case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836     CC=$ac_ct_CC
4837   fi
4838 fi
4839
4840 fi
4841
4842
4843 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4845 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4846 See \`config.log' for more details." >&5
4847 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4848 See \`config.log' for more details." >&2;}
4849    { (exit 1); exit 1; }; }; }
4850
4851 # Provide some information about the compiler.
4852 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4853 set X $ac_compile
4854 ac_compiler=$2
4855 { (ac_try="$ac_compiler --version >&5"
4856 case "(($ac_try" in
4857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858   *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862   (eval "$ac_compiler --version >&5") 2>&5
4863   ac_status=$?
4864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }
4866 { (ac_try="$ac_compiler -v >&5"
4867 case "(($ac_try" in
4868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869   *) ac_try_echo=$ac_try;;
4870 esac
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873   (eval "$ac_compiler -v >&5") 2>&5
4874   ac_status=$?
4875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }
4877 { (ac_try="$ac_compiler -V >&5"
4878 case "(($ac_try" in
4879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880   *) ac_try_echo=$ac_try;;
4881 esac
4882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883 $as_echo "$ac_try_echo") >&5
4884   (eval "$ac_compiler -V >&5") 2>&5
4885   ac_status=$?
4886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }
4888
4889 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4890 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4892   $as_echo_n "(cached) " >&6
4893 else
4894   cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900
4901 int
4902 main ()
4903 {
4904 #ifndef __GNUC__
4905        choke me
4906 #endif
4907
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (ac_try="$ac_compile"
4914 case "(($ac_try" in
4915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916   *) ac_try_echo=$ac_try;;
4917 esac
4918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4919 $as_echo "$ac_try_echo") >&5
4920   (eval "$ac_compile") 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } && {
4927          test -z "$ac_c_werror_flag" ||
4928          test ! -s conftest.err
4929        } && test -s conftest.$ac_objext; then
4930   ac_compiler_gnu=yes
4931 else
4932   $as_echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935         ac_compiler_gnu=no
4936 fi
4937
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4940
4941 fi
4942 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4943 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4944 if test $ac_compiler_gnu = yes; then
4945   GCC=yes
4946 else
4947   GCC=
4948 fi
4949 ac_test_CFLAGS=${CFLAGS+set}
4950 ac_save_CFLAGS=$CFLAGS
4951 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4952 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4953 if test "${ac_cv_prog_cc_g+set}" = set; then
4954   $as_echo_n "(cached) " >&6
4955 else
4956   ac_save_c_werror_flag=$ac_c_werror_flag
4957    ac_c_werror_flag=yes
4958    ac_cv_prog_cc_g=no
4959    CFLAGS="-g"
4960    cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h.  */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h.  */
4966
4967 int
4968 main ()
4969 {
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979   *) ac_try_echo=$ac_try;;
4980 esac
4981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982 $as_echo "$ac_try_echo") >&5
4983   (eval "$ac_compile") 2>conftest.er1
4984   ac_status=$?
4985   grep -v '^ *+' conftest.er1 >conftest.err
4986   rm -f conftest.er1
4987   cat conftest.err >&5
4988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } && {
4990          test -z "$ac_c_werror_flag" ||
4991          test ! -s conftest.err
4992        } && test -s conftest.$ac_objext; then
4993   ac_cv_prog_cc_g=yes
4994 else
4995   $as_echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998         CFLAGS=""
4999       cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005
5006 int
5007 main ()
5008 {
5009
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (ac_try="$ac_compile"
5016 case "(($ac_try" in
5017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018   *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022   (eval "$ac_compile") 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } && {
5029          test -z "$ac_c_werror_flag" ||
5030          test ! -s conftest.err
5031        } && test -s conftest.$ac_objext; then
5032   :
5033 else
5034   $as_echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037         ac_c_werror_flag=$ac_save_c_werror_flag
5038          CFLAGS="-g"
5039          cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045
5046 int
5047 main ()
5048 {
5049
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (ac_try="$ac_compile"
5056 case "(($ac_try" in
5057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058   *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061 $as_echo "$ac_try_echo") >&5
5062   (eval "$ac_compile") 2>conftest.er1
5063   ac_status=$?
5064   grep -v '^ *+' conftest.er1 >conftest.err
5065   rm -f conftest.er1
5066   cat conftest.err >&5
5067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } && {
5069          test -z "$ac_c_werror_flag" ||
5070          test ! -s conftest.err
5071        } && test -s conftest.$ac_objext; then
5072   ac_cv_prog_cc_g=yes
5073 else
5074   $as_echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077
5078 fi
5079
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 fi
5082
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087    ac_c_werror_flag=$ac_save_c_werror_flag
5088 fi
5089 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5090 $as_echo "$ac_cv_prog_cc_g" >&6; }
5091 if test "$ac_test_CFLAGS" = set; then
5092   CFLAGS=$ac_save_CFLAGS
5093 elif test $ac_cv_prog_cc_g = yes; then
5094   if test "$GCC" = yes; then
5095     CFLAGS="-g -O2"
5096   else
5097     CFLAGS="-g"
5098   fi
5099 else
5100   if test "$GCC" = yes; then
5101     CFLAGS="-O2"
5102   else
5103     CFLAGS=
5104   fi
5105 fi
5106 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5107 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5108 if test "${ac_cv_prog_cc_c89+set}" = set; then
5109   $as_echo_n "(cached) " >&6
5110 else
5111   ac_cv_prog_cc_c89=no
5112 ac_save_CC=$CC
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119 #include <stdarg.h>
5120 #include <stdio.h>
5121 #include <sys/types.h>
5122 #include <sys/stat.h>
5123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5124 struct buf { int x; };
5125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5126 static char *e (p, i)
5127      char **p;
5128      int i;
5129 {
5130   return p[i];
5131 }
5132 static char *f (char * (*g) (char **, int), char **p, ...)
5133 {
5134   char *s;
5135   va_list v;
5136   va_start (v,p);
5137   s = g (p, va_arg (v,int));
5138   va_end (v);
5139   return s;
5140 }
5141
5142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5143    function prototypes and stuff, but not '\xHH' hex character constants.
5144    These don't provoke an error unfortunately, instead are silently treated
5145    as 'x'.  The following induces an error, until -std is added to get
5146    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5147    array size at least.  It's necessary to write '\x00'==0 to get something
5148    that's true only with -std.  */
5149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5150
5151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5152    inside strings and character constants.  */
5153 #define FOO(x) 'x'
5154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5155
5156 int test (int i, double x);
5157 struct s1 {int (*f) (int a);};
5158 struct s2 {int (*f) (double a);};
5159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5160 int argc;
5161 char **argv;
5162 int
5163 main ()
5164 {
5165 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5171         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5172 do
5173   CC="$ac_save_CC $ac_arg"
5174   rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5176 case "(($ac_try" in
5177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178   *) ac_try_echo=$ac_try;;
5179 esac
5180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5181 $as_echo "$ac_try_echo") >&5
5182   (eval "$ac_compile") 2>conftest.er1
5183   ac_status=$?
5184   grep -v '^ *+' conftest.er1 >conftest.err
5185   rm -f conftest.er1
5186   cat conftest.err >&5
5187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } && {
5189          test -z "$ac_c_werror_flag" ||
5190          test ! -s conftest.err
5191        } && test -s conftest.$ac_objext; then
5192   ac_cv_prog_cc_c89=$ac_arg
5193 else
5194   $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197
5198 fi
5199
5200 rm -f core conftest.err conftest.$ac_objext
5201   test "x$ac_cv_prog_cc_c89" != "xno" && break
5202 done
5203 rm -f conftest.$ac_ext
5204 CC=$ac_save_CC
5205
5206 fi
5207 # AC_CACHE_VAL
5208 case "x$ac_cv_prog_cc_c89" in
5209   x)
5210     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5211 $as_echo "none needed" >&6; } ;;
5212   xno)
5213     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5214 $as_echo "unsupported" >&6; } ;;
5215   *)
5216     CC="$CC $ac_cv_prog_cc_c89"
5217     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5219 esac
5220
5221
5222 ac_ext=c
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228 depcc="$CC"   am_compiler_list=
5229
5230 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5231 $as_echo_n "checking dependency style of $depcc... " >&6; }
5232 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5233   $as_echo_n "(cached) " >&6
5234 else
5235   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5236   # We make a subdir and do the tests there.  Otherwise we can end up
5237   # making bogus files that we don't know about and never remove.  For
5238   # instance it was reported that on HP-UX the gcc test will end up
5239   # making a dummy file named `D' -- because `-MD' means `put the output
5240   # in D'.
5241   mkdir conftest.dir
5242   # Copy depcomp to subdir because otherwise we won't find it if we're
5243   # using a relative directory.
5244   cp "$am_depcomp" conftest.dir
5245   cd conftest.dir
5246   # We will build objects and dependencies in a subdirectory because
5247   # it helps to detect inapplicable dependency modes.  For instance
5248   # both Tru64's cc and ICC support -MD to output dependencies as a
5249   # side effect of compilation, but ICC will put the dependencies in
5250   # the current directory while Tru64 will put them in the object
5251   # directory.
5252   mkdir sub
5253
5254   am_cv_CC_dependencies_compiler_type=none
5255   if test "$am_compiler_list" = ""; then
5256      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5257   fi
5258   for depmode in $am_compiler_list; do
5259     # Setup a source with many dependencies, because some compilers
5260     # like to wrap large dependency lists on column 80 (with \), and
5261     # we should not choose a depcomp mode which is confused by this.
5262     #
5263     # We need to recreate these files for each test, as the compiler may
5264     # overwrite some of them when testing with obscure command lines.
5265     # This happens at least with the AIX C compiler.
5266     : > sub/conftest.c
5267     for i in 1 2 3 4 5 6; do
5268       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5269       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5270       # Solaris 8's {/usr,}/bin/sh.
5271       touch sub/conftst$i.h
5272     done
5273     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5274
5275     case $depmode in
5276     nosideeffect)
5277       # after this tag, mechanisms are not by side-effect, so they'll
5278       # only be used when explicitly requested
5279       if test "x$enable_dependency_tracking" = xyes; then
5280         continue
5281       else
5282         break
5283       fi
5284       ;;
5285     none) break ;;
5286     esac
5287     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5288     # mode.  It turns out that the SunPro C++ compiler does not properly
5289     # handle `-M -o', and we need to detect this.
5290     if depmode=$depmode \
5291        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5292        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5293        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5294          >/dev/null 2>conftest.err &&
5295        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5296        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5297        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5298        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5299       # icc doesn't choke on unknown options, it will just issue warnings
5300       # or remarks (even with -Werror).  So we grep stderr for any message
5301       # that says an option was ignored or not supported.
5302       # When given -MP, icc 7.0 and 7.1 complain thusly:
5303       #   icc: Command line warning: ignoring option '-M'; no argument required
5304       # The diagnosis changed in icc 8.0:
5305       #   icc: Command line remark: option '-MP' not supported
5306       if (grep 'ignoring option' conftest.err ||
5307           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5308         am_cv_CC_dependencies_compiler_type=$depmode
5309         break
5310       fi
5311     fi
5312   done
5313
5314   cd ..
5315   rm -rf conftest.dir
5316 else
5317   am_cv_CC_dependencies_compiler_type=none
5318 fi
5319
5320 fi
5321 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5322 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5324
5325  if
5326   test "x$enable_dependency_tracking" != xno \
5327   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5328   am__fastdepCC_TRUE=
5329   am__fastdepCC_FALSE='#'
5330 else
5331   am__fastdepCC_TRUE='#'
5332   am__fastdepCC_FALSE=
5333 fi
5334
5335
5336 if test "x$CC" != xcc; then
5337   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5338 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5339 else
5340   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5341 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5342 fi
5343 set dummy $CC; ac_cc=`$as_echo "$2" |
5344                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5345 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5346   $as_echo_n "(cached) " >&6
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 # Make sure it works both with $CC and with simple cc.
5364 # We do the test twice because some compilers refuse to overwrite an
5365 # existing .o file with -o, though they will create one.
5366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5367 rm -f conftest2.*
5368 if { (case "(($ac_try" in
5369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370   *) ac_try_echo=$ac_try;;
5371 esac
5372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373 $as_echo "$ac_try_echo") >&5
5374   (eval "$ac_try") 2>&5
5375   ac_status=$?
5376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380   *) ac_try_echo=$ac_try;;
5381 esac
5382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383 $as_echo "$ac_try_echo") >&5
5384   (eval "$ac_try") 2>&5
5385   ac_status=$?
5386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); };
5388 then
5389   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5390   if test "x$CC" != xcc; then
5391     # Test first that cc exists at all.
5392     if { ac_try='cc -c conftest.$ac_ext >&5'
5393   { (case "(($ac_try" in
5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395   *) ac_try_echo=$ac_try;;
5396 esac
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399   (eval "$ac_try") 2>&5
5400   ac_status=$?
5401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5404       rm -f conftest2.*
5405       if { (case "(($ac_try" in
5406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407   *) ac_try_echo=$ac_try;;
5408 esac
5409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5410 $as_echo "$ac_try_echo") >&5
5411   (eval "$ac_try") 2>&5
5412   ac_status=$?
5413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } &&
5415          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417   *) ac_try_echo=$ac_try;;
5418 esac
5419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5420 $as_echo "$ac_try_echo") >&5
5421   (eval "$ac_try") 2>&5
5422   ac_status=$?
5423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); };
5425       then
5426         # cc works too.
5427         :
5428       else
5429         # cc exists but doesn't like -o.
5430         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5431       fi
5432     fi
5433   fi
5434 else
5435   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5436 fi
5437 rm -f core conftest*
5438
5439 fi
5440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5441   { $as_echo "$as_me:$LINENO: result: yes" >&5
5442 $as_echo "yes" >&6; }
5443 else
5444   { $as_echo "$as_me:$LINENO: result: no" >&5
5445 $as_echo "no" >&6; }
5446
5447 cat >>confdefs.h <<\_ACEOF
5448 #define NO_MINUS_C_MINUS_O 1
5449 _ACEOF
5450
5451 fi
5452
5453 # FIXME: we rely on the cache variable name because
5454 # there is no other way.
5455 set dummy $CC
5456 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5457 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5458 if test "$am_t" != yes; then
5459    # Losing compiler, so override with the script.
5460    # FIXME: It is wrong to rewrite CC.
5461    # But if we don't then we get into trouble of one sort or another.
5462    # A longer-term fix would be to have automake use am__CC in this case,
5463    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5464    CC="$am_aux_dir/compile $CC"
5465 fi
5466
5467
5468 # Find a good install program.  We prefer a C program (faster),
5469 # so one script is as good as another.  But avoid the broken or
5470 # incompatible versions:
5471 # SysV /etc/install, /usr/sbin/install
5472 # SunOS /usr/etc/install
5473 # IRIX /sbin/install
5474 # AIX /bin/install
5475 # AmigaOS /C/install, which installs bootblocks on floppy discs
5476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5479 # OS/2's system install, which has a completely different semantic
5480 # ./install, which can be erroneously created by make from ./install.sh.
5481 # Reject install programs that cannot install multiple files.
5482 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5483 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5484 if test -z "$INSTALL"; then
5485 if test "${ac_cv_path_install+set}" = set; then
5486   $as_echo_n "(cached) " >&6
5487 else
5488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493   # Account for people who put trailing slashes in PATH elements.
5494 case $as_dir/ in
5495   ./ | .// | /cC/* | \
5496   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5497   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5498   /usr/ucb/* ) ;;
5499   *)
5500     # OSF1 and SCO ODT 3.0 have their own names for install.
5501     # Don't use installbsd from OSF since it installs stuff as root
5502     # by default.
5503     for ac_prog in ginstall scoinst install; do
5504       for ac_exec_ext in '' $ac_executable_extensions; do
5505         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5506           if test $ac_prog = install &&
5507             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5508             # AIX install.  It has an incompatible calling convention.
5509             :
5510           elif test $ac_prog = install &&
5511             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5512             # program-specific install script used by HP pwplus--don't use.
5513             :
5514           else
5515             rm -rf conftest.one conftest.two conftest.dir
5516             echo one > conftest.one
5517             echo two > conftest.two
5518             mkdir conftest.dir
5519             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5520               test -s conftest.one && test -s conftest.two &&
5521               test -s conftest.dir/conftest.one &&
5522               test -s conftest.dir/conftest.two
5523             then
5524               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5525               break 3
5526             fi
5527           fi
5528         fi
5529       done
5530     done
5531     ;;
5532 esac
5533
5534 done
5535 IFS=$as_save_IFS
5536
5537 rm -rf conftest.one conftest.two conftest.dir
5538
5539 fi
5540   if test "${ac_cv_path_install+set}" = set; then
5541     INSTALL=$ac_cv_path_install
5542   else
5543     # As a last resort, use the slow shell script.  Don't cache a
5544     # value for INSTALL within a source directory, because that will
5545     # break other packages using the cache if that directory is
5546     # removed, or if the value is a relative name.
5547     INSTALL=$ac_install_sh
5548   fi
5549 fi
5550 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5551 $as_echo "$INSTALL" >&6; }
5552
5553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5554 # It thinks the first close brace ends the variable substitution.
5555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5556
5557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5558
5559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5560
5561 case `pwd` in
5562   *\ * | *\     *)
5563     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5564 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5565 esac
5566
5567
5568
5569 macro_version='2.2.6'
5570 macro_revision='1.3012'
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584 ltmain="$ac_aux_dir/ltmain.sh"
5585
5586 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5587 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5588 if test "${ac_cv_path_SED+set}" = set; then
5589   $as_echo_n "(cached) " >&6
5590 else
5591             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5592      for ac_i in 1 2 3 4 5 6 7; do
5593        ac_script="$ac_script$as_nl$ac_script"
5594      done
5595      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5596      $as_unset ac_script || ac_script=
5597      if test -z "$SED"; then
5598   ac_path_SED_found=false
5599   # Loop through the user's path and test for each of PROGNAME-LIST
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605   for ac_prog in sed gsed; do
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5608       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5609 # Check for GNU ac_path_SED and select it if it is found.
5610   # Check for GNU $ac_path_SED
5611 case `"$ac_path_SED" --version 2>&1` in
5612 *GNU*)
5613   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5614 *)
5615   ac_count=0
5616   $as_echo_n 0123456789 >"conftest.in"
5617   while :
5618   do
5619     cat "conftest.in" "conftest.in" >"conftest.tmp"
5620     mv "conftest.tmp" "conftest.in"
5621     cp "conftest.in" "conftest.nl"
5622     $as_echo '' >> "conftest.nl"
5623     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625     ac_count=`expr $ac_count + 1`
5626     if test $ac_count -gt ${ac_path_SED_max-0}; then
5627       # Best one so far, save it but keep looking for a better one
5628       ac_cv_path_SED="$ac_path_SED"
5629       ac_path_SED_max=$ac_count
5630     fi
5631     # 10*(2^10) chars as input seems more than enough
5632     test $ac_count -gt 10 && break
5633   done
5634   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635 esac
5636
5637       $ac_path_SED_found && break 3
5638     done
5639   done
5640 done
5641 IFS=$as_save_IFS
5642   if test -z "$ac_cv_path_SED"; then
5643     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5644 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5645    { (exit 1); exit 1; }; }
5646   fi
5647 else
5648   ac_cv_path_SED=$SED
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5653 $as_echo "$ac_cv_path_SED" >&6; }
5654  SED="$ac_cv_path_SED"
5655   rm -f conftest.sed
5656
5657 test -z "$SED" && SED=sed
5658 Xsed="$SED -e 1s/^X//"
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5671 $as_echo_n "checking for fgrep... " >&6; }
5672 if test "${ac_cv_path_FGREP+set}" = set; then
5673   $as_echo_n "(cached) " >&6
5674 else
5675   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5676    then ac_cv_path_FGREP="$GREP -F"
5677    else
5678      if test -z "$FGREP"; then
5679   ac_path_FGREP_found=false
5680   # Loop through the user's path and test for each of PROGNAME-LIST
5681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686   for ac_prog in fgrep; do
5687     for ac_exec_ext in '' $ac_executable_extensions; do
5688       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5689       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5690 # Check for GNU ac_path_FGREP and select it if it is found.
5691   # Check for GNU $ac_path_FGREP
5692 case `"$ac_path_FGREP" --version 2>&1` in
5693 *GNU*)
5694   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5695 *)
5696   ac_count=0
5697   $as_echo_n 0123456789 >"conftest.in"
5698   while :
5699   do
5700     cat "conftest.in" "conftest.in" >"conftest.tmp"
5701     mv "conftest.tmp" "conftest.in"
5702     cp "conftest.in" "conftest.nl"
5703     $as_echo 'FGREP' >> "conftest.nl"
5704     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5705     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5706     ac_count=`expr $ac_count + 1`
5707     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5708       # Best one so far, save it but keep looking for a better one
5709       ac_cv_path_FGREP="$ac_path_FGREP"
5710       ac_path_FGREP_max=$ac_count
5711     fi
5712     # 10*(2^10) chars as input seems more than enough
5713     test $ac_count -gt 10 && break
5714   done
5715   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5716 esac
5717
5718       $ac_path_FGREP_found && break 3
5719     done
5720   done
5721 done
5722 IFS=$as_save_IFS
5723   if test -z "$ac_cv_path_FGREP"; then
5724     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5725 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5726    { (exit 1); exit 1; }; }
5727   fi
5728 else
5729   ac_cv_path_FGREP=$FGREP
5730 fi
5731
5732    fi
5733 fi
5734 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5735 $as_echo "$ac_cv_path_FGREP" >&6; }
5736  FGREP="$ac_cv_path_FGREP"
5737
5738
5739 test -z "$GREP" && GREP=grep
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 # Check whether --with-gnu-ld was given.
5760 if test "${with_gnu_ld+set}" = set; then
5761   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5762 else
5763   with_gnu_ld=no
5764 fi
5765
5766 ac_prog=ld
5767 if test "$GCC" = yes; then
5768   # Check if gcc -print-prog-name=ld gives a path.
5769   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5770 $as_echo_n "checking for ld used by $CC... " >&6; }
5771   case $host in
5772   *-*-mingw*)
5773     # gcc leaves a trailing carriage return which upsets mingw
5774     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5775   *)
5776     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5777   esac
5778   case $ac_prog in
5779     # Accept absolute paths.
5780     [\\/]* | ?:[\\/]*)
5781       re_direlt='/[^/][^/]*/\.\./'
5782       # Canonicalize the pathname of ld
5783       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5784       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5785         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5786       done
5787       test -z "$LD" && LD="$ac_prog"
5788       ;;
5789   "")
5790     # If it fails, then pretend we aren't using GCC.
5791     ac_prog=ld
5792     ;;
5793   *)
5794     # If it is relative, then search for the first ld in PATH.
5795     with_gnu_ld=unknown
5796     ;;
5797   esac
5798 elif test "$with_gnu_ld" = yes; then
5799   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5800 $as_echo_n "checking for GNU ld... " >&6; }
5801 else
5802   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5803 $as_echo_n "checking for non-GNU ld... " >&6; }
5804 fi
5805 if test "${lt_cv_path_LD+set}" = set; then
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -z "$LD"; then
5809   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5810   for ac_dir in $PATH; do
5811     IFS="$lt_save_ifs"
5812     test -z "$ac_dir" && ac_dir=.
5813     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5814       lt_cv_path_LD="$ac_dir/$ac_prog"
5815       # Check to see if the program is GNU ld.  I'd rather use --version,
5816       # but apparently some variants of GNU ld only accept -v.
5817       # Break only if it was the GNU/non-GNU ld that we prefer.
5818       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5819       *GNU* | *'with BFD'*)
5820         test "$with_gnu_ld" != no && break
5821         ;;
5822       *)
5823         test "$with_gnu_ld" != yes && break
5824         ;;
5825       esac
5826     fi
5827   done
5828   IFS="$lt_save_ifs"
5829 else
5830   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5831 fi
5832 fi
5833
5834 LD="$lt_cv_path_LD"
5835 if test -n "$LD"; then
5836   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5837 $as_echo "$LD" >&6; }
5838 else
5839   { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5843 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5844    { (exit 1); exit 1; }; }
5845 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5846 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5847 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5848   $as_echo_n "(cached) " >&6
5849 else
5850   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5851 case `$LD -v 2>&1 </dev/null` in
5852 *GNU* | *'with BFD'*)
5853   lt_cv_prog_gnu_ld=yes
5854   ;;
5855 *)
5856   lt_cv_prog_gnu_ld=no
5857   ;;
5858 esac
5859 fi
5860 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5861 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5862 with_gnu_ld=$lt_cv_prog_gnu_ld
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5873 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5874 if test "${lt_cv_path_NM+set}" = set; then
5875   $as_echo_n "(cached) " >&6
5876 else
5877   if test -n "$NM"; then
5878   # Let the user override the test.
5879   lt_cv_path_NM="$NM"
5880 else
5881   lt_nm_to_check="${ac_tool_prefix}nm"
5882   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5883     lt_nm_to_check="$lt_nm_to_check nm"
5884   fi
5885   for lt_tmp_nm in $lt_nm_to_check; do
5886     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5888       IFS="$lt_save_ifs"
5889       test -z "$ac_dir" && ac_dir=.
5890       tmp_nm="$ac_dir/$lt_tmp_nm"
5891       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5892         # Check to see if the nm accepts a BSD-compat flag.
5893         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5894         #   nm: unknown option "B" ignored
5895         # Tru64's nm complains that /dev/null is an invalid object file
5896         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5897         */dev/null* | *'Invalid file or object type'*)
5898           lt_cv_path_NM="$tmp_nm -B"
5899           break
5900           ;;
5901         *)
5902           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5903           */dev/null*)
5904             lt_cv_path_NM="$tmp_nm -p"
5905             break
5906             ;;
5907           *)
5908             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5909             continue # so that we can try to find one that supports BSD flags
5910             ;;
5911           esac
5912           ;;
5913         esac
5914       fi
5915     done
5916     IFS="$lt_save_ifs"
5917   done
5918   : ${lt_cv_path_NM=no}
5919 fi
5920 fi
5921 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5922 $as_echo "$lt_cv_path_NM" >&6; }
5923 if test "$lt_cv_path_NM" != "no"; then
5924   NM="$lt_cv_path_NM"
5925 else
5926   # Didn't find any BSD compatible name lister, look for dumpbin.
5927   if test -n "$ac_tool_prefix"; then
5928   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5929   do
5930     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5935   $as_echo_n "(cached) " >&6
5936 else
5937   if test -n "$DUMPBIN"; then
5938   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945   for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5948     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 DUMPBIN=$ac_cv_prog_DUMPBIN
5958 if test -n "$DUMPBIN"; then
5959   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5960 $as_echo "$DUMPBIN" >&6; }
5961 else
5962   { $as_echo "$as_me:$LINENO: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966
5967     test -n "$DUMPBIN" && break
5968   done
5969 fi
5970 if test -z "$DUMPBIN"; then
5971   ac_ct_DUMPBIN=$DUMPBIN
5972   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5973 do
5974   # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy $ac_prog; ac_word=$2
5976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -n "$ac_ct_DUMPBIN"; then
5982   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989   for ac_exec_ext in '' $ac_executable_extensions; do
5990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5992     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6002 if test -n "$ac_ct_DUMPBIN"; then
6003   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6004 $as_echo "$ac_ct_DUMPBIN" >&6; }
6005 else
6006   { $as_echo "$as_me:$LINENO: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010
6011   test -n "$ac_ct_DUMPBIN" && break
6012 done
6013
6014   if test "x$ac_ct_DUMPBIN" = x; then
6015     DUMPBIN=":"
6016   else
6017     case $cross_compiling:$ac_tool_warned in
6018 yes:)
6019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6021 ac_tool_warned=yes ;;
6022 esac
6023     DUMPBIN=$ac_ct_DUMPBIN
6024   fi
6025 fi
6026
6027
6028   if test "$DUMPBIN" != ":"; then
6029     NM="$DUMPBIN"
6030   fi
6031 fi
6032 test -z "$NM" && NM=nm
6033
6034
6035
6036
6037
6038
6039 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6040 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6041 if test "${lt_cv_nm_interface+set}" = set; then
6042   $as_echo_n "(cached) " >&6
6043 else
6044   lt_cv_nm_interface="BSD nm"
6045   echo "int some_variable = 0;" > conftest.$ac_ext
6046   (eval echo "\"\$as_me:6046: $ac_compile\"" >&5)
6047   (eval "$ac_compile" 2>conftest.err)
6048   cat conftest.err >&5
6049   (eval echo "\"\$as_me:6049: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6050   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6051   cat conftest.err >&5
6052   (eval echo "\"\$as_me:6052: output\"" >&5)
6053   cat conftest.out >&5
6054   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6055     lt_cv_nm_interface="MS dumpbin"
6056   fi
6057   rm -f conftest*
6058 fi
6059 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6060 $as_echo "$lt_cv_nm_interface" >&6; }
6061
6062 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6063 $as_echo_n "checking whether ln -s works... " >&6; }
6064 LN_S=$as_ln_s
6065 if test "$LN_S" = "ln -s"; then
6066   { $as_echo "$as_me:$LINENO: result: yes" >&5
6067 $as_echo "yes" >&6; }
6068 else
6069   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6070 $as_echo "no, using $LN_S" >&6; }
6071 fi
6072
6073 # find the maximum length of command line arguments
6074 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6075 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6076 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6077   $as_echo_n "(cached) " >&6
6078 else
6079     i=0
6080   teststring="ABCD"
6081
6082   case $build_os in
6083   msdosdjgpp*)
6084     # On DJGPP, this test can blow up pretty badly due to problems in libc
6085     # (any single argument exceeding 2000 bytes causes a buffer overrun
6086     # during glob expansion).  Even if it were fixed, the result of this
6087     # check would be larger than it should be.
6088     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6089     ;;
6090
6091   gnu*)
6092     # Under GNU Hurd, this test is not required because there is
6093     # no limit to the length of command line arguments.
6094     # Libtool will interpret -1 as no limit whatsoever
6095     lt_cv_sys_max_cmd_len=-1;
6096     ;;
6097
6098   cygwin* | mingw* | cegcc*)
6099     # On Win9x/ME, this test blows up -- it succeeds, but takes
6100     # about 5 minutes as the teststring grows exponentially.
6101     # Worse, since 9x/ME are not pre-emptively multitasking,
6102     # you end up with a "frozen" computer, even though with patience
6103     # the test eventually succeeds (with a max line length of 256k).
6104     # Instead, let's just punt: use the minimum linelength reported by
6105     # all of the supported platforms: 8192 (on NT/2K/XP).
6106     lt_cv_sys_max_cmd_len=8192;
6107     ;;
6108
6109   amigaos*)
6110     # On AmigaOS with pdksh, this test takes hours, literally.
6111     # So we just punt and use a minimum line length of 8192.
6112     lt_cv_sys_max_cmd_len=8192;
6113     ;;
6114
6115   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6116     # This has been around since 386BSD, at least.  Likely further.
6117     if test -x /sbin/sysctl; then
6118       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6119     elif test -x /usr/sbin/sysctl; then
6120       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6121     else
6122       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6123     fi
6124     # And add a safety zone
6125     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6126     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6127     ;;
6128
6129   interix*)
6130     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6131     lt_cv_sys_max_cmd_len=196608
6132     ;;
6133
6134   osf*)
6135     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6136     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6137     # nice to cause kernel panics so lets avoid the loop below.
6138     # First set a reasonable default.
6139     lt_cv_sys_max_cmd_len=16384
6140     #
6141     if test -x /sbin/sysconfig; then
6142       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6143         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6144       esac
6145     fi
6146     ;;
6147   sco3.2v5*)
6148     lt_cv_sys_max_cmd_len=102400
6149     ;;
6150   sysv5* | sco5v6* | sysv4.2uw2*)
6151     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6152     if test -n "$kargmax"; then
6153       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6154     else
6155       lt_cv_sys_max_cmd_len=32768
6156     fi
6157     ;;
6158   *)
6159     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6160     if test -n "$lt_cv_sys_max_cmd_len"; then
6161       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6162       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6163     else
6164       # Make teststring a little bigger before we do anything with it.
6165       # a 1K string should be a reasonable start.
6166       for i in 1 2 3 4 5 6 7 8 ; do
6167         teststring=$teststring$teststring
6168       done
6169       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6170       # If test is not a shell built-in, we'll probably end up computing a
6171       # maximum length that is only half of the actual maximum length, but
6172       # we can't tell.
6173       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6174                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6175               test $i != 17 # 1/2 MB should be enough
6176       do
6177         i=`expr $i + 1`
6178         teststring=$teststring$teststring
6179       done
6180       # Only check the string length outside the loop.
6181       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6182       teststring=
6183       # Add a significant safety factor because C++ compilers can tack on
6184       # massive amounts of additional arguments before passing them to the
6185       # linker.  It appears as though 1/2 is a usable value.
6186       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6187     fi
6188     ;;
6189   esac
6190
6191 fi
6192
6193 if test -n $lt_cv_sys_max_cmd_len ; then
6194   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6196 else
6197   { $as_echo "$as_me:$LINENO: result: none" >&5
6198 $as_echo "none" >&6; }
6199 fi
6200 max_cmd_len=$lt_cv_sys_max_cmd_len
6201
6202
6203
6204
6205
6206
6207 : ${CP="cp -f"}
6208 : ${MV="mv -f"}
6209 : ${RM="rm -f"}
6210
6211 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6213 # Try some XSI features
6214 xsi_shell=no
6215 ( _lt_dummy="a/b/c"
6216   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6217       = c,a/b,, \
6218     && eval 'test $(( 1 + 1 )) -eq 2 \
6219     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6220   && xsi_shell=yes
6221 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6222 $as_echo "$xsi_shell" >&6; }
6223
6224
6225 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6226 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6227 lt_shell_append=no
6228 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6229     >/dev/null 2>&1 \
6230   && lt_shell_append=yes
6231 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6232 $as_echo "$lt_shell_append" >&6; }
6233
6234
6235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6236   lt_unset=unset
6237 else
6238   lt_unset=false
6239 fi
6240
6241
6242
6243
6244
6245 # test EBCDIC or ASCII
6246 case `echo X|tr X '\101'` in
6247  A) # ASCII based system
6248     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6249   lt_SP2NL='tr \040 \012'
6250   lt_NL2SP='tr \015\012 \040\040'
6251   ;;
6252  *) # EBCDIC based system
6253   lt_SP2NL='tr \100 \n'
6254   lt_NL2SP='tr \r\n \100\100'
6255   ;;
6256 esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6268 if test "${lt_cv_ld_reload_flag+set}" = set; then
6269   $as_echo_n "(cached) " >&6
6270 else
6271   lt_cv_ld_reload_flag='-r'
6272 fi
6273 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6275 reload_flag=$lt_cv_ld_reload_flag
6276 case $reload_flag in
6277 "" | " "*) ;;
6278 *) reload_flag=" $reload_flag" ;;
6279 esac
6280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6281 case $host_os in
6282   darwin*)
6283     if test "$GCC" = yes; then
6284       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6285     else
6286       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6287     fi
6288     ;;
6289 esac
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6305   $as_echo_n "(cached) " >&6
6306 else
6307   if test -n "$OBJDUMP"; then
6308   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315   for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6318     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 OBJDUMP=$ac_cv_prog_OBJDUMP
6328 if test -n "$OBJDUMP"; then
6329   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6330 $as_echo "$OBJDUMP" >&6; }
6331 else
6332   { $as_echo "$as_me:$LINENO: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337 fi
6338 if test -z "$ac_cv_prog_OBJDUMP"; then
6339   ac_ct_OBJDUMP=$OBJDUMP
6340   # Extract the first word of "objdump", so it can be a program name with args.
6341 set dummy objdump; ac_word=$2
6342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6345   $as_echo_n "(cached) " >&6
6346 else
6347   if test -n "$ac_ct_OBJDUMP"; then
6348   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6368 if test -n "$ac_ct_OBJDUMP"; then
6369   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6370 $as_echo "$ac_ct_OBJDUMP" >&6; }
6371 else
6372   { $as_echo "$as_me:$LINENO: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376   if test "x$ac_ct_OBJDUMP" = x; then
6377     OBJDUMP="false"
6378   else
6379     case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385     OBJDUMP=$ac_ct_OBJDUMP
6386   fi
6387 else
6388   OBJDUMP="$ac_cv_prog_OBJDUMP"
6389 fi
6390
6391 test -z "$OBJDUMP" && OBJDUMP=objdump
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6402 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6403 if test "${lt_cv_deplibs_check_method+set}" = set; then
6404   $as_echo_n "(cached) " >&6
6405 else
6406   lt_cv_file_magic_cmd='$MAGIC_CMD'
6407 lt_cv_file_magic_test_file=
6408 lt_cv_deplibs_check_method='unknown'
6409 # Need to set the preceding variable on all platforms that support
6410 # interlibrary dependencies.
6411 # 'none' -- dependencies not supported.
6412 # `unknown' -- same as none, but documents that we really don't know.
6413 # 'pass_all' -- all dependencies passed with no checks.
6414 # 'test_compile' -- check by making test program.
6415 # 'file_magic [[regex]]' -- check by looking for files in library path
6416 # which responds to the $file_magic_cmd with a given extended regex.
6417 # If you have `file' or equivalent on your system and you're not sure
6418 # whether `pass_all' will *always* work, you probably want this one.
6419
6420 case $host_os in
6421 aix[4-9]*)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 beos*)
6426   lt_cv_deplibs_check_method=pass_all
6427   ;;
6428
6429 bsdi[45]*)
6430   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6431   lt_cv_file_magic_cmd='/usr/bin/file -L'
6432   lt_cv_file_magic_test_file=/shlib/libc.so
6433   ;;
6434
6435 cygwin*)
6436   # func_win32_libid is a shell function defined in ltmain.sh
6437   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438   lt_cv_file_magic_cmd='func_win32_libid'
6439   ;;
6440
6441 mingw* | pw32*)
6442   # Base MSYS/MinGW do not provide the 'file' command needed by
6443   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6444   # unless we find 'file', for example because we are cross-compiling.
6445   if ( file / ) >/dev/null 2>&1; then
6446     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6447     lt_cv_file_magic_cmd='func_win32_libid'
6448   else
6449     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6450     lt_cv_file_magic_cmd='$OBJDUMP -f'
6451   fi
6452   ;;
6453
6454 cegcc)
6455   # use the weaker test based on 'objdump'. See mingw*.
6456   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6457   lt_cv_file_magic_cmd='$OBJDUMP -f'
6458   ;;
6459
6460 darwin* | rhapsody*)
6461   lt_cv_deplibs_check_method=pass_all
6462   ;;
6463
6464 freebsd* | dragonfly*)
6465   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6466     case $host_cpu in
6467     i*86 )
6468       # Not sure whether the presence of OpenBSD here was a mistake.
6469       # Let's accept both of them until this is cleared up.
6470       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6471       lt_cv_file_magic_cmd=/usr/bin/file
6472       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6473       ;;
6474     esac
6475   else
6476     lt_cv_deplibs_check_method=pass_all
6477   fi
6478   ;;
6479
6480 gnu*)
6481   lt_cv_deplibs_check_method=pass_all
6482   ;;
6483
6484 hpux10.20* | hpux11*)
6485   lt_cv_file_magic_cmd=/usr/bin/file
6486   case $host_cpu in
6487   ia64*)
6488     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6489     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6490     ;;
6491   hppa*64*)
6492     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]'
6493     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6494     ;;
6495   *)
6496     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6497     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6498     ;;
6499   esac
6500   ;;
6501
6502 interix[3-9]*)
6503   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6504   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6505   ;;
6506
6507 irix5* | irix6* | nonstopux*)
6508   case $LD in
6509   *-32|*"-32 ") libmagic=32-bit;;
6510   *-n32|*"-n32 ") libmagic=N32;;
6511   *-64|*"-64 ") libmagic=64-bit;;
6512   *) libmagic=never-match;;
6513   esac
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 # This must be Linux ELF.
6518 linux* | k*bsd*-gnu)
6519   lt_cv_deplibs_check_method=pass_all
6520   ;;
6521
6522 netbsd* | netbsdelf*-gnu)
6523   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6524     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6525   else
6526     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6527   fi
6528   ;;
6529
6530 newos6*)
6531   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6532   lt_cv_file_magic_cmd=/usr/bin/file
6533   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6534   ;;
6535
6536 *nto* | *qnx*)
6537   lt_cv_deplibs_check_method=pass_all
6538   ;;
6539
6540 openbsd*)
6541   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6542     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6543   else
6544     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6545   fi
6546   ;;
6547
6548 osf3* | osf4* | osf5*)
6549   lt_cv_deplibs_check_method=pass_all
6550   ;;
6551
6552 rdos*)
6553   lt_cv_deplibs_check_method=pass_all
6554   ;;
6555
6556 solaris*)
6557   lt_cv_deplibs_check_method=pass_all
6558   ;;
6559
6560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6561   lt_cv_deplibs_check_method=pass_all
6562   ;;
6563
6564 sysv4 | sysv4.3*)
6565   case $host_vendor in
6566   motorola)
6567     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]'
6568     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6569     ;;
6570   ncr)
6571     lt_cv_deplibs_check_method=pass_all
6572     ;;
6573   sequent)
6574     lt_cv_file_magic_cmd='/bin/file'
6575     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6576     ;;
6577   sni)
6578     lt_cv_file_magic_cmd='/bin/file'
6579     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6580     lt_cv_file_magic_test_file=/lib/libc.so
6581     ;;
6582   siemens)
6583     lt_cv_deplibs_check_method=pass_all
6584     ;;
6585   pc)
6586     lt_cv_deplibs_check_method=pass_all
6587     ;;
6588   esac
6589   ;;
6590
6591 tpf*)
6592   lt_cv_deplibs_check_method=pass_all
6593   ;;
6594 esac
6595
6596 fi
6597 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6598 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6599 file_magic_cmd=$lt_cv_file_magic_cmd
6600 deplibs_check_method=$lt_cv_deplibs_check_method
6601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614 if test -n "$ac_tool_prefix"; then
6615   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}ar; ac_word=$2
6617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if test "${ac_cv_prog_AR+set}" = set; then
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$AR"; then
6623   ac_cv_prog_AR="$AR" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_prog_AR="${ac_tool_prefix}ar"
6633     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 AR=$ac_cv_prog_AR
6643 if test -n "$AR"; then
6644   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6645 $as_echo "$AR" >&6; }
6646 else
6647   { $as_echo "$as_me:$LINENO: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_prog_AR"; then
6654   ac_ct_AR=$AR
6655   # Extract the first word of "ar", so it can be a program name with args.
6656 set dummy ar; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$ac_ct_AR"; then
6663   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_prog_ac_ct_AR="ar"
6673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6683 if test -n "$ac_ct_AR"; then
6684   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6685 $as_echo "$ac_ct_AR" >&6; }
6686 else
6687   { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691   if test "x$ac_ct_AR" = x; then
6692     AR="false"
6693   else
6694     case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700     AR=$ac_ct_AR
6701   fi
6702 else
6703   AR="$ac_cv_prog_AR"
6704 fi
6705
6706 test -z "$AR" && AR=ar
6707 test -z "$AR_FLAGS" && AR_FLAGS=cru
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719 if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}strip; ac_word=$2
6722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_STRIP+set}" = set; then
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$STRIP"; then
6728   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 STRIP=$ac_cv_prog_STRIP
6748 if test -n "$STRIP"; then
6749   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6750 $as_echo "$STRIP" >&6; }
6751 else
6752   { $as_echo "$as_me:$LINENO: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_STRIP"; then
6759   ac_ct_STRIP=$STRIP
6760   # Extract the first word of "strip", so it can be a program name with args.
6761 set dummy strip; ac_word=$2
6762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6765   $as_echo_n "(cached) " >&6
6766 else
6767   if test -n "$ac_ct_STRIP"; then
6768   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775   for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_STRIP="strip"
6778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6788 if test -n "$ac_ct_STRIP"; then
6789   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6790 $as_echo "$ac_ct_STRIP" >&6; }
6791 else
6792   { $as_echo "$as_me:$LINENO: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796   if test "x$ac_ct_STRIP" = x; then
6797     STRIP=":"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     STRIP=$ac_ct_STRIP
6806   fi
6807 else
6808   STRIP="$ac_cv_prog_STRIP"
6809 fi
6810
6811 test -z "$STRIP" && STRIP=:
6812
6813
6814
6815
6816
6817
6818 if test -n "$ac_tool_prefix"; then
6819   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_RANLIB+set}" = set; then
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$RANLIB"; then
6827   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6837     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 RANLIB=$ac_cv_prog_RANLIB
6847 if test -n "$RANLIB"; then
6848   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6849 $as_echo "$RANLIB" >&6; }
6850 else
6851   { $as_echo "$as_me:$LINENO: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_RANLIB"; then
6858   ac_ct_RANLIB=$RANLIB
6859   # Extract the first word of "ranlib", so it can be a program name with args.
6860 set dummy ranlib; ac_word=$2
6861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$ac_ct_RANLIB"; then
6867   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874   for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_ac_ct_RANLIB="ranlib"
6877     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6887 if test -n "$ac_ct_RANLIB"; then
6888   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6889 $as_echo "$ac_ct_RANLIB" >&6; }
6890 else
6891   { $as_echo "$as_me:$LINENO: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895   if test "x$ac_ct_RANLIB" = x; then
6896     RANLIB=":"
6897   else
6898     case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     RANLIB=$ac_ct_RANLIB
6905   fi
6906 else
6907   RANLIB="$ac_cv_prog_RANLIB"
6908 fi
6909
6910 test -z "$RANLIB" && RANLIB=:
6911
6912
6913
6914
6915
6916
6917 # Determine commands to create old-style static archives.
6918 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6919 old_postinstall_cmds='chmod 644 $oldlib'
6920 old_postuninstall_cmds=
6921
6922 if test -n "$RANLIB"; then
6923   case $host_os in
6924   openbsd*)
6925     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6926     ;;
6927   *)
6928     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6929     ;;
6930   esac
6931   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6932 fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 # If no C compiler was specified, use CC.
6968 LTCC=${LTCC-"$CC"}
6969
6970 # If no C compiler flags were specified, use CFLAGS.
6971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6972
6973 # Allow CC to be a program name with arguments.
6974 compiler=$CC
6975
6976
6977 # Check for command to grab the raw symbol name followed by C symbol from nm.
6978 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6980 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6981   $as_echo_n "(cached) " >&6
6982 else
6983
6984 # These are sane defaults that work on at least a few old systems.
6985 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6986
6987 # Character class describing NM global symbol codes.
6988 symcode='[BCDEGRST]'
6989
6990 # Regexp to match symbols that can be accessed directly from C.
6991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6992
6993 # Define system-specific variables.
6994 case $host_os in
6995 aix*)
6996   symcode='[BCDT]'
6997   ;;
6998 cygwin* | mingw* | pw32* | cegcc*)
6999   symcode='[ABCDGISTW]'
7000   ;;
7001 hpux*)
7002   if test "$host_cpu" = ia64; then
7003     symcode='[ABCDEGRST]'
7004   fi
7005   ;;
7006 irix* | nonstopux*)
7007   symcode='[BCDEGRST]'
7008   ;;
7009 osf*)
7010   symcode='[BCDEGQRST]'
7011   ;;
7012 solaris*)
7013   symcode='[BDRT]'
7014   ;;
7015 sco3.2v5*)
7016   symcode='[DT]'
7017   ;;
7018 sysv4.2uw2*)
7019   symcode='[DT]'
7020   ;;
7021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7022   symcode='[ABDT]'
7023   ;;
7024 sysv4)
7025   symcode='[DFNSTU]'
7026   ;;
7027 esac
7028
7029 # If we're using GNU nm, then use its standard symbol codes.
7030 case `$NM -V 2>&1` in
7031 *GNU* | *'with BFD'*)
7032   symcode='[ABCDGIRSTW]' ;;
7033 esac
7034
7035 # Transform an extracted symbol line into a proper C declaration.
7036 # Some systems (esp. on ia64) link data and code symbols differently,
7037 # so use this general approach.
7038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7039
7040 # Transform an extracted symbol line into symbol name and symbol address
7041 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7042 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'"
7043
7044 # Handle CRLF in mingw tool chain
7045 opt_cr=
7046 case $build_os in
7047 mingw*)
7048   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7049   ;;
7050 esac
7051
7052 # Try without a prefix underscore, then with it.
7053 for ac_symprfx in "" "_"; do
7054
7055   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7056   symxfrm="\\1 $ac_symprfx\\2 \\2"
7057
7058   # Write the raw and C identifiers.
7059   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060     # Fake it for dumpbin and say T for any non-static function
7061     # and D for any global variable.
7062     # Also find C++ and __fastcall symbols from MSVC++,
7063     # which start with @ or ?.
7064     lt_cv_sys_global_symbol_pipe="$AWK '"\
7065 "     {last_section=section; section=\$ 3};"\
7066 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7067 "     \$ 0!~/External *\|/{next};"\
7068 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7069 "     {if(hide[section]) next};"\
7070 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7071 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7072 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7073 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7074 "     ' prfx=^$ac_symprfx"
7075   else
7076     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7077   fi
7078
7079   # Check to see that the pipe works correctly.
7080   pipe_works=no
7081
7082   rm -f conftest*
7083   cat > conftest.$ac_ext <<_LT_EOF
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087 char nm_test_var;
7088 void nm_test_func(void);
7089 void nm_test_func(void){}
7090 #ifdef __cplusplus
7091 }
7092 #endif
7093 int main(){nm_test_var='a';nm_test_func();return(0);}
7094 _LT_EOF
7095
7096   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097   (eval $ac_compile) 2>&5
7098   ac_status=$?
7099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; then
7101     # Now try to grab the symbols.
7102     nlist=conftest.nm
7103     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7104   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7105   ac_status=$?
7106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); } && test -s "$nlist"; then
7108       # Try sorting and uniquifying the output.
7109       if sort "$nlist" | uniq > "$nlist"T; then
7110         mv -f "$nlist"T "$nlist"
7111       else
7112         rm -f "$nlist"T
7113       fi
7114
7115       # Make sure that we snagged all the symbols we need.
7116       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7117         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7118           cat <<_LT_EOF > conftest.$ac_ext
7119 #ifdef __cplusplus
7120 extern "C" {
7121 #endif
7122
7123 _LT_EOF
7124           # Now generate the symbol file.
7125           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127           cat <<_LT_EOF >> conftest.$ac_ext
7128
7129 /* The mapping between symbol names and symbols.  */
7130 const struct {
7131   const char *name;
7132   void       *address;
7133 }
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7135 {
7136   { "@PROGRAM@", (void *) 0 },
7137 _LT_EOF
7138           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139           cat <<\_LT_EOF >> conftest.$ac_ext
7140   {0, (void *) 0}
7141 };
7142
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146   return lt__PROGRAM__LTX_preloaded_symbols;
7147 }
7148 #endif
7149
7150 #ifdef __cplusplus
7151 }
7152 #endif
7153 _LT_EOF
7154           # Now try linking the two files.
7155           mv conftest.$ac_objext conftstm.$ac_objext
7156           lt_save_LIBS="$LIBS"
7157           lt_save_CFLAGS="$CFLAGS"
7158           LIBS="conftstm.$ac_objext"
7159           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7161   (eval $ac_link) 2>&5
7162   ac_status=$?
7163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7165             pipe_works=yes
7166           fi
7167           LIBS="$lt_save_LIBS"
7168           CFLAGS="$lt_save_CFLAGS"
7169         else
7170           echo "cannot find nm_test_func in $nlist" >&5
7171         fi
7172       else
7173         echo "cannot find nm_test_var in $nlist" >&5
7174       fi
7175     else
7176       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177     fi
7178   else
7179     echo "$progname: failed program was:" >&5
7180     cat conftest.$ac_ext >&5
7181   fi
7182   rm -rf conftest* conftst*
7183
7184   # Do not use the global_symbol_pipe unless it works.
7185   if test "$pipe_works" = yes; then
7186     break
7187   else
7188     lt_cv_sys_global_symbol_pipe=
7189   fi
7190 done
7191
7192 fi
7193
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195   lt_cv_sys_global_symbol_to_cdecl=
7196 fi
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198   { $as_echo "$as_me:$LINENO: result: failed" >&5
7199 $as_echo "failed" >&6; }
7200 else
7201   { $as_echo "$as_me:$LINENO: result: ok" >&5
7202 $as_echo "ok" >&6; }
7203 fi
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 # Check whether --enable-libtool-lock was given.
7227 if test "${enable_libtool_lock+set}" = set; then
7228   enableval=$enable_libtool_lock;
7229 fi
7230
7231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7232
7233 # Some flags need to be propagated to the compiler or linker for good
7234 # libtool support.
7235 case $host in
7236 ia64-*-hpux*)
7237   # Find out which ABI we are using.
7238   echo 'int i;' > conftest.$ac_ext
7239   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240   (eval $ac_compile) 2>&5
7241   ac_status=$?
7242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; then
7244     case `/usr/bin/file conftest.$ac_objext` in
7245       *ELF-32*)
7246         HPUX_IA64_MODE="32"
7247         ;;
7248       *ELF-64*)
7249         HPUX_IA64_MODE="64"
7250         ;;
7251     esac
7252   fi
7253   rm -rf conftest*
7254   ;;
7255 *-*-irix6*)
7256   # Find out which ABI we are using.
7257   echo '#line 7257 "configure"' > conftest.$ac_ext
7258   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259   (eval $ac_compile) 2>&5
7260   ac_status=$?
7261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; then
7263     if test "$lt_cv_prog_gnu_ld" = yes; then
7264       case `/usr/bin/file conftest.$ac_objext` in
7265         *32-bit*)
7266           LD="${LD-ld} -melf32bsmip"
7267           ;;
7268         *N32*)
7269           LD="${LD-ld} -melf32bmipn32"
7270           ;;
7271         *64-bit*)
7272           LD="${LD-ld} -melf64bmip"
7273         ;;
7274       esac
7275     else
7276       case `/usr/bin/file conftest.$ac_objext` in
7277         *32-bit*)
7278           LD="${LD-ld} -32"
7279           ;;
7280         *N32*)
7281           LD="${LD-ld} -n32"
7282           ;;
7283         *64-bit*)
7284           LD="${LD-ld} -64"
7285           ;;
7286       esac
7287     fi
7288   fi
7289   rm -rf conftest*
7290   ;;
7291
7292 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7293 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7294   # Find out which ABI we are using.
7295   echo 'int i;' > conftest.$ac_ext
7296   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297   (eval $ac_compile) 2>&5
7298   ac_status=$?
7299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; then
7301     case `/usr/bin/file conftest.o` in
7302       *32-bit*)
7303         case $host in
7304           x86_64-*kfreebsd*-gnu)
7305             LD="${LD-ld} -m elf_i386_fbsd"
7306             ;;
7307           x86_64-*linux*)
7308             LD="${LD-ld} -m elf_i386"
7309             ;;
7310           ppc64-*linux*|powerpc64-*linux*)
7311             LD="${LD-ld} -m elf32ppclinux"
7312             ;;
7313           s390x-*linux*)
7314             LD="${LD-ld} -m elf_s390"
7315             ;;
7316           sparc64-*linux*)
7317             LD="${LD-ld} -m elf32_sparc"
7318             ;;
7319         esac
7320         ;;
7321       *64-bit*)
7322         case $host in
7323           x86_64-*kfreebsd*-gnu)
7324             LD="${LD-ld} -m elf_x86_64_fbsd"
7325             ;;
7326           x86_64-*linux*)
7327             LD="${LD-ld} -m elf_x86_64"
7328             ;;
7329           ppc*-*linux*|powerpc*-*linux*)
7330             LD="${LD-ld} -m elf64ppc"
7331             ;;
7332           s390*-*linux*|s390*-*tpf*)
7333             LD="${LD-ld} -m elf64_s390"
7334             ;;
7335           sparc*-*linux*)
7336             LD="${LD-ld} -m elf64_sparc"
7337             ;;
7338         esac
7339         ;;
7340     esac
7341   fi
7342   rm -rf conftest*
7343   ;;
7344
7345 *-*-sco3.2v5*)
7346   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7347   SAVE_CFLAGS="$CFLAGS"
7348   CFLAGS="$CFLAGS -belf"
7349   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7350 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7351 if test "${lt_cv_cc_needs_belf+set}" = set; then
7352   $as_echo_n "(cached) " >&6
7353 else
7354   ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360      cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366
7367 int
7368 main ()
7369 {
7370
7371   ;
7372   return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (ac_try="$ac_link"
7377 case "(($ac_try" in
7378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379   *) ac_try_echo=$ac_try;;
7380 esac
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383   (eval "$ac_link") 2>conftest.er1
7384   ac_status=$?
7385   grep -v '^ *+' conftest.er1 >conftest.err
7386   rm -f conftest.er1
7387   cat conftest.err >&5
7388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } && {
7390          test -z "$ac_c_werror_flag" ||
7391          test ! -s conftest.err
7392        } && test -s conftest$ac_exeext && {
7393          test "$cross_compiling" = yes ||
7394          $as_test_x conftest$ac_exeext
7395        }; then
7396   lt_cv_cc_needs_belf=yes
7397 else
7398   $as_echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401         lt_cv_cc_needs_belf=no
7402 fi
7403
7404 rm -rf conftest.dSYM
7405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7406       conftest$ac_exeext conftest.$ac_ext
7407      ac_ext=c
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7412
7413 fi
7414 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7415 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7416   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7417     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7418     CFLAGS="$SAVE_CFLAGS"
7419   fi
7420   ;;
7421 sparc*-*solaris*)
7422   # Find out which ABI we are using.
7423   echo 'int i;' > conftest.$ac_ext
7424   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425   (eval $ac_compile) 2>&5
7426   ac_status=$?
7427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; then
7429     case `/usr/bin/file conftest.o` in
7430     *64-bit*)
7431       case $lt_cv_prog_gnu_ld in
7432       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7433       *)
7434         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7435           LD="${LD-ld} -64"
7436         fi
7437         ;;
7438       esac
7439       ;;
7440     esac
7441   fi
7442   rm -rf conftest*
7443   ;;
7444 esac
7445
7446 need_locks="$enable_libtool_lock"
7447
7448
7449   case $host_os in
7450     rhapsody* | darwin*)
7451     if test -n "$ac_tool_prefix"; then
7452   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7457   $as_echo_n "(cached) " >&6
7458 else
7459   if test -n "$DSYMUTIL"; then
7460   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7480 if test -n "$DSYMUTIL"; then
7481   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7482 $as_echo "$DSYMUTIL" >&6; }
7483 else
7484   { $as_echo "$as_me:$LINENO: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488
7489 fi
7490 if test -z "$ac_cv_prog_DSYMUTIL"; then
7491   ac_ct_DSYMUTIL=$DSYMUTIL
7492   # Extract the first word of "dsymutil", so it can be a program name with args.
7493 set dummy dsymutil; ac_word=$2
7494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7497   $as_echo_n "(cached) " >&6
7498 else
7499   if test -n "$ac_ct_DSYMUTIL"; then
7500   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7520 if test -n "$ac_ct_DSYMUTIL"; then
7521   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7522 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7523 else
7524   { $as_echo "$as_me:$LINENO: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527
7528   if test "x$ac_ct_DSYMUTIL" = x; then
7529     DSYMUTIL=":"
7530   else
7531     case $cross_compiling:$ac_tool_warned in
7532 yes:)
7533 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7535 ac_tool_warned=yes ;;
7536 esac
7537     DSYMUTIL=$ac_ct_DSYMUTIL
7538   fi
7539 else
7540   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7541 fi
7542
7543     if test -n "$ac_tool_prefix"; then
7544   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7549   $as_echo_n "(cached) " >&6
7550 else
7551   if test -n "$NMEDIT"; then
7552   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7562     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 NMEDIT=$ac_cv_prog_NMEDIT
7572 if test -n "$NMEDIT"; then
7573   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7574 $as_echo "$NMEDIT" >&6; }
7575 else
7576   { $as_echo "$as_me:$LINENO: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580
7581 fi
7582 if test -z "$ac_cv_prog_NMEDIT"; then
7583   ac_ct_NMEDIT=$NMEDIT
7584   # Extract the first word of "nmedit", so it can be a program name with args.
7585 set dummy nmedit; ac_word=$2
7586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7589   $as_echo_n "(cached) " >&6
7590 else
7591   if test -n "$ac_ct_NMEDIT"; then
7592   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7612 if test -n "$ac_ct_NMEDIT"; then
7613   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7614 $as_echo "$ac_ct_NMEDIT" >&6; }
7615 else
7616   { $as_echo "$as_me:$LINENO: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620   if test "x$ac_ct_NMEDIT" = x; then
7621     NMEDIT=":"
7622   else
7623     case $cross_compiling:$ac_tool_warned in
7624 yes:)
7625 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned=yes ;;
7628 esac
7629     NMEDIT=$ac_ct_NMEDIT
7630   fi
7631 else
7632   NMEDIT="$ac_cv_prog_NMEDIT"
7633 fi
7634
7635     if test -n "$ac_tool_prefix"; then
7636   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_LIPO+set}" = set; then
7641   $as_echo_n "(cached) " >&6
7642 else
7643   if test -n "$LIPO"; then
7644   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 LIPO=$ac_cv_prog_LIPO
7664 if test -n "$LIPO"; then
7665   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7666 $as_echo "$LIPO" >&6; }
7667 else
7668   { $as_echo "$as_me:$LINENO: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672
7673 fi
7674 if test -z "$ac_cv_prog_LIPO"; then
7675   ac_ct_LIPO=$LIPO
7676   # Extract the first word of "lipo", so it can be a program name with args.
7677 set dummy lipo; ac_word=$2
7678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7681   $as_echo_n "(cached) " >&6
7682 else
7683   if test -n "$ac_ct_LIPO"; then
7684   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7685 else
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_prog_ac_ct_LIPO="lipo"
7694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701 fi
7702 fi
7703 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7704 if test -n "$ac_ct_LIPO"; then
7705   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7706 $as_echo "$ac_ct_LIPO" >&6; }
7707 else
7708   { $as_echo "$as_me:$LINENO: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711
7712   if test "x$ac_ct_LIPO" = x; then
7713     LIPO=":"
7714   else
7715     case $cross_compiling:$ac_tool_warned in
7716 yes:)
7717 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7720 esac
7721     LIPO=$ac_ct_LIPO
7722   fi
7723 else
7724   LIPO="$ac_cv_prog_LIPO"
7725 fi
7726
7727     if test -n "$ac_tool_prefix"; then
7728   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7729 set dummy ${ac_tool_prefix}otool; ac_word=$2
7730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if test "${ac_cv_prog_OTOOL+set}" = set; then
7733   $as_echo_n "(cached) " >&6
7734 else
7735   if test -n "$OTOOL"; then
7736   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743   for ac_exec_ext in '' $ac_executable_extensions; do
7744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7746     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 OTOOL=$ac_cv_prog_OTOOL
7756 if test -n "$OTOOL"; then
7757   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7758 $as_echo "$OTOOL" >&6; }
7759 else
7760   { $as_echo "$as_me:$LINENO: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764
7765 fi
7766 if test -z "$ac_cv_prog_OTOOL"; then
7767   ac_ct_OTOOL=$OTOOL
7768   # Extract the first word of "otool", so it can be a program name with args.
7769 set dummy otool; ac_word=$2
7770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7773   $as_echo_n "(cached) " >&6
7774 else
7775   if test -n "$ac_ct_OTOOL"; then
7776   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781   IFS=$as_save_IFS
7782   test -z "$as_dir" && as_dir=.
7783   for ac_exec_ext in '' $ac_executable_extensions; do
7784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785     ac_cv_prog_ac_ct_OTOOL="otool"
7786     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787     break 2
7788   fi
7789 done
7790 done
7791 IFS=$as_save_IFS
7792
7793 fi
7794 fi
7795 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7796 if test -n "$ac_ct_OTOOL"; then
7797   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7798 $as_echo "$ac_ct_OTOOL" >&6; }
7799 else
7800   { $as_echo "$as_me:$LINENO: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804   if test "x$ac_ct_OTOOL" = x; then
7805     OTOOL=":"
7806   else
7807     case $cross_compiling:$ac_tool_warned in
7808 yes:)
7809 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7812 esac
7813     OTOOL=$ac_ct_OTOOL
7814   fi
7815 else
7816   OTOOL="$ac_cv_prog_OTOOL"
7817 fi
7818
7819     if test -n "$ac_tool_prefix"; then
7820   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7825   $as_echo_n "(cached) " >&6
7826 else
7827   if test -n "$OTOOL64"; then
7828   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835   for ac_exec_ext in '' $ac_executable_extensions; do
7836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7838     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 OTOOL64=$ac_cv_prog_OTOOL64
7848 if test -n "$OTOOL64"; then
7849   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7850 $as_echo "$OTOOL64" >&6; }
7851 else
7852   { $as_echo "$as_me:$LINENO: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856
7857 fi
7858 if test -z "$ac_cv_prog_OTOOL64"; then
7859   ac_ct_OTOOL64=$OTOOL64
7860   # Extract the first word of "otool64", so it can be a program name with args.
7861 set dummy otool64; ac_word=$2
7862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7865   $as_echo_n "(cached) " >&6
7866 else
7867   if test -n "$ac_ct_OTOOL64"; then
7868   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875   for ac_exec_ext in '' $ac_executable_extensions; do
7876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877     ac_cv_prog_ac_ct_OTOOL64="otool64"
7878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7888 if test -n "$ac_ct_OTOOL64"; then
7889   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7890 $as_echo "$ac_ct_OTOOL64" >&6; }
7891 else
7892   { $as_echo "$as_me:$LINENO: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896   if test "x$ac_ct_OTOOL64" = x; then
7897     OTOOL64=":"
7898   else
7899     case $cross_compiling:$ac_tool_warned in
7900 yes:)
7901 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7904 esac
7905     OTOOL64=$ac_ct_OTOOL64
7906   fi
7907 else
7908   OTOOL64="$ac_cv_prog_OTOOL64"
7909 fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7938 $as_echo_n "checking for -single_module linker flag... " >&6; }
7939 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7940   $as_echo_n "(cached) " >&6
7941 else
7942   lt_cv_apple_cc_single_mod=no
7943       if test -z "${LT_MULTI_MODULE}"; then
7944         # By default we will add the -single_module flag. You can override
7945         # by either setting the environment variable LT_MULTI_MODULE
7946         # non-empty at configure time, or by adding -multi_module to the
7947         # link flags.
7948         rm -rf libconftest.dylib*
7949         echo "int foo(void){return 1;}" > conftest.c
7950         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7951 -dynamiclib -Wl,-single_module conftest.c" >&5
7952         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7953           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7954         _lt_result=$?
7955         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7956           lt_cv_apple_cc_single_mod=yes
7957         else
7958           cat conftest.err >&5
7959         fi
7960         rm -rf libconftest.dylib*
7961         rm -f conftest.*
7962       fi
7963 fi
7964 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7965 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7966     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7967 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7968 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7969   $as_echo_n "(cached) " >&6
7970 else
7971   lt_cv_ld_exported_symbols_list=no
7972       save_LDFLAGS=$LDFLAGS
7973       echo "_main" > conftest.sym
7974       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7975       cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h.  */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h.  */
7981
7982 int
7983 main ()
7984 {
7985
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7992 case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7997 $as_echo "$ac_try_echo") >&5
7998   (eval "$ac_link") 2>conftest.er1
7999   ac_status=$?
8000   grep -v '^ *+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } && {
8005          test -z "$ac_c_werror_flag" ||
8006          test ! -s conftest.err
8007        } && test -s conftest$ac_exeext && {
8008          test "$cross_compiling" = yes ||
8009          $as_test_x conftest$ac_exeext
8010        }; then
8011   lt_cv_ld_exported_symbols_list=yes
8012 else
8013   $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016         lt_cv_ld_exported_symbols_list=no
8017 fi
8018
8019 rm -rf conftest.dSYM
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021       conftest$ac_exeext conftest.$ac_ext
8022         LDFLAGS="$save_LDFLAGS"
8023
8024 fi
8025 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8026 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8027     case $host_os in
8028     rhapsody* | darwin1.[012])
8029       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8030     darwin1.*)
8031       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8032     darwin*) # darwin 5.x on
8033       # if running on 10.5 or later, the deployment target defaults
8034       # to the OS version, if on x86, and 10.4, the deployment
8035       # target defaults to 10.4. Don't you love it?
8036       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8037         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8038           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8039         10.[012]*)
8040           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8041         10.*)
8042           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8043       esac
8044     ;;
8045   esac
8046     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8047       _lt_dar_single_mod='$single_module'
8048     fi
8049     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8050       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8051     else
8052       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8053     fi
8054     if test "$DSYMUTIL" != ":"; then
8055       _lt_dsymutil='~$DSYMUTIL $lib || :'
8056     else
8057       _lt_dsymutil=
8058     fi
8059     ;;
8060   esac
8061
8062 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8073                   inttypes.h stdint.h unistd.h
8074 do
8075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 $as_echo_n "checking for $ac_header... " >&6; }
8078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8079   $as_echo_n "(cached) " >&6
8080 else
8081   cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h.  */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h.  */
8087 $ac_includes_default
8088
8089 #include <$ac_header>
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8093 case "(($ac_try" in
8094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095   *) ac_try_echo=$ac_try;;
8096 esac
8097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8098 $as_echo "$ac_try_echo") >&5
8099   (eval "$ac_compile") 2>conftest.er1
8100   ac_status=$?
8101   grep -v '^ *+' conftest.er1 >conftest.err
8102   rm -f conftest.er1
8103   cat conftest.err >&5
8104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } && {
8106          test -z "$ac_c_werror_flag" ||
8107          test ! -s conftest.err
8108        } && test -s conftest.$ac_objext; then
8109   eval "$as_ac_Header=yes"
8110 else
8111   $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114         eval "$as_ac_Header=no"
8115 fi
8116
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 fi
8119 ac_res=`eval 'as_val=${'$as_ac_Header'}
8120                  $as_echo "$as_val"'`
8121                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8122 $as_echo "$ac_res" >&6; }
8123 as_val=`eval 'as_val=${'$as_ac_Header'}
8124                  $as_echo "$as_val"'`
8125    if test "x$as_val" = x""yes; then
8126   cat >>confdefs.h <<_ACEOF
8127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128 _ACEOF
8129
8130 fi
8131
8132 done
8133
8134
8135
8136 for ac_header in dlfcn.h
8137 do
8138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8139 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8140 $as_echo_n "checking for $ac_header... " >&6; }
8141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8142   $as_echo_n "(cached) " >&6
8143 else
8144   cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 $ac_includes_default
8151
8152 #include <$ac_header>
8153 _ACEOF
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162   (eval "$ac_compile") 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } && {
8169          test -z "$ac_c_werror_flag" ||
8170          test ! -s conftest.err
8171        } && test -s conftest.$ac_objext; then
8172   eval "$as_ac_Header=yes"
8173 else
8174   $as_echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177         eval "$as_ac_Header=no"
8178 fi
8179
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 ac_res=`eval 'as_val=${'$as_ac_Header'}
8183                  $as_echo "$as_val"'`
8184                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8185 $as_echo "$ac_res" >&6; }
8186 as_val=`eval 'as_val=${'$as_ac_Header'}
8187                  $as_echo "$as_val"'`
8188    if test "x$as_val" = x""yes; then
8189   cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 _ACEOF
8192
8193 fi
8194
8195 done
8196
8197
8198
8199 # Set options
8200
8201
8202
8203         enable_dlopen=no
8204
8205
8206   enable_win32_dll=no
8207
8208
8209             # Check whether --enable-shared was given.
8210 if test "${enable_shared+set}" = set; then
8211   enableval=$enable_shared; p=${PACKAGE-default}
8212     case $enableval in
8213     yes) enable_shared=yes ;;
8214     no) enable_shared=no ;;
8215     *)
8216       enable_shared=no
8217       # Look at the argument we got.  We use all the common list separators.
8218       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219       for pkg in $enableval; do
8220         IFS="$lt_save_ifs"
8221         if test "X$pkg" = "X$p"; then
8222           enable_shared=yes
8223         fi
8224       done
8225       IFS="$lt_save_ifs"
8226       ;;
8227     esac
8228 else
8229   enable_shared=yes
8230 fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242 # Check whether --with-pic was given.
8243 if test "${with_pic+set}" = set; then
8244   withval=$with_pic; pic_mode="$withval"
8245 else
8246   pic_mode=default
8247 fi
8248
8249
8250 test -z "$pic_mode" && pic_mode=default
8251
8252
8253
8254
8255
8256
8257
8258   # Check whether --enable-fast-install was given.
8259 if test "${enable_fast_install+set}" = set; then
8260   enableval=$enable_fast_install; p=${PACKAGE-default}
8261     case $enableval in
8262     yes) enable_fast_install=yes ;;
8263     no) enable_fast_install=no ;;
8264     *)
8265       enable_fast_install=no
8266       # Look at the argument we got.  We use all the common list separators.
8267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8268       for pkg in $enableval; do
8269         IFS="$lt_save_ifs"
8270         if test "X$pkg" = "X$p"; then
8271           enable_fast_install=yes
8272         fi
8273       done
8274       IFS="$lt_save_ifs"
8275       ;;
8276     esac
8277 else
8278   enable_fast_install=yes
8279 fi
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 # This can be used to rebuild libtool when needed
8292 LIBTOOL_DEPS="$ltmain"
8293
8294 # Always use our own libtool.
8295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 test -z "$LN_S" && LN_S="ln -s"
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336 if test -n "${ZSH_VERSION+set}" ; then
8337    setopt NO_GLOB_SUBST
8338 fi
8339
8340 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8341 $as_echo_n "checking for objdir... " >&6; }
8342 if test "${lt_cv_objdir+set}" = set; then
8343   $as_echo_n "(cached) " >&6
8344 else
8345   rm -f .libs 2>/dev/null
8346 mkdir .libs 2>/dev/null
8347 if test -d .libs; then
8348   lt_cv_objdir=.libs
8349 else
8350   # MS-DOS does not allow filenames that begin with a dot.
8351   lt_cv_objdir=_libs
8352 fi
8353 rmdir .libs 2>/dev/null
8354 fi
8355 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8356 $as_echo "$lt_cv_objdir" >&6; }
8357 objdir=$lt_cv_objdir
8358
8359
8360
8361
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define LT_OBJDIR "$lt_cv_objdir/"
8365 _ACEOF
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 case $host_os in
8384 aix3*)
8385   # AIX sometimes has problems with the GCC collect2 program.  For some
8386   # reason, if we set the COLLECT_NAMES environment variable, the problems
8387   # vanish in a puff of smoke.
8388   if test "X${COLLECT_NAMES+set}" != Xset; then
8389     COLLECT_NAMES=
8390     export COLLECT_NAMES
8391   fi
8392   ;;
8393 esac
8394
8395 # Sed substitution that helps us do robust quoting.  It backslashifies
8396 # metacharacters that are still active within double-quoted strings.
8397 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8398
8399 # Same as above, but do not quote variable references.
8400 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8401
8402 # Sed substitution to delay expansion of an escaped shell variable in a
8403 # double_quote_subst'ed string.
8404 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8405
8406 # Sed substitution to delay expansion of an escaped single quote.
8407 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8408
8409 # Sed substitution to avoid accidental globbing in evaled expressions
8410 no_glob_subst='s/\*/\\\*/g'
8411
8412 # Global variables:
8413 ofile=libtool
8414 can_build_shared=yes
8415
8416 # All known linkers require a `.a' archive for static linking (except MSVC,
8417 # which needs '.lib').
8418 libext=a
8419
8420 with_gnu_ld="$lt_cv_prog_gnu_ld"
8421
8422 old_CC="$CC"
8423 old_CFLAGS="$CFLAGS"
8424
8425 # Set sane defaults for various variables
8426 test -z "$CC" && CC=cc
8427 test -z "$LTCC" && LTCC=$CC
8428 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8429 test -z "$LD" && LD=ld
8430 test -z "$ac_objext" && ac_objext=o
8431
8432 for cc_temp in $compiler""; do
8433   case $cc_temp in
8434     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8435     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8436     \-*) ;;
8437     *) break;;
8438   esac
8439 done
8440 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8441
8442
8443 # Only perform the check for file, if the check method requires it
8444 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8445 case $deplibs_check_method in
8446 file_magic*)
8447   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8448     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8449 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8450 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8451   $as_echo_n "(cached) " >&6
8452 else
8453   case $MAGIC_CMD in
8454 [\\/*] |  ?:[\\/]*)
8455   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8456   ;;
8457 *)
8458   lt_save_MAGIC_CMD="$MAGIC_CMD"
8459   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8461   for ac_dir in $ac_dummy; do
8462     IFS="$lt_save_ifs"
8463     test -z "$ac_dir" && ac_dir=.
8464     if test -f $ac_dir/${ac_tool_prefix}file; then
8465       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8466       if test -n "$file_magic_test_file"; then
8467         case $deplibs_check_method in
8468         "file_magic "*)
8469           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8470           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8472             $EGREP "$file_magic_regex" > /dev/null; then
8473             :
8474           else
8475             cat <<_LT_EOF 1>&2
8476
8477 *** Warning: the command libtool uses to detect shared libraries,
8478 *** $file_magic_cmd, produces output that libtool cannot recognize.
8479 *** The result is that libtool may fail to recognize shared libraries
8480 *** as such.  This will affect the creation of libtool libraries that
8481 *** depend on shared libraries, but programs linked with such libtool
8482 *** libraries will work regardless of this problem.  Nevertheless, you
8483 *** may want to report the problem to your system manager and/or to
8484 *** bug-libtool@gnu.org
8485
8486 _LT_EOF
8487           fi ;;
8488         esac
8489       fi
8490       break
8491     fi
8492   done
8493   IFS="$lt_save_ifs"
8494   MAGIC_CMD="$lt_save_MAGIC_CMD"
8495   ;;
8496 esac
8497 fi
8498
8499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8500 if test -n "$MAGIC_CMD"; then
8501   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8502 $as_echo "$MAGIC_CMD" >&6; }
8503 else
8504   { $as_echo "$as_me:$LINENO: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507
8508
8509
8510
8511
8512 if test -z "$lt_cv_path_MAGIC_CMD"; then
8513   if test -n "$ac_tool_prefix"; then
8514     { $as_echo "$as_me:$LINENO: checking for file" >&5
8515 $as_echo_n "checking for file... " >&6; }
8516 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8517   $as_echo_n "(cached) " >&6
8518 else
8519   case $MAGIC_CMD in
8520 [\\/*] |  ?:[\\/]*)
8521   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8522   ;;
8523 *)
8524   lt_save_MAGIC_CMD="$MAGIC_CMD"
8525   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8527   for ac_dir in $ac_dummy; do
8528     IFS="$lt_save_ifs"
8529     test -z "$ac_dir" && ac_dir=.
8530     if test -f $ac_dir/file; then
8531       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8532       if test -n "$file_magic_test_file"; then
8533         case $deplibs_check_method in
8534         "file_magic "*)
8535           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8536           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8538             $EGREP "$file_magic_regex" > /dev/null; then
8539             :
8540           else
8541             cat <<_LT_EOF 1>&2
8542
8543 *** Warning: the command libtool uses to detect shared libraries,
8544 *** $file_magic_cmd, produces output that libtool cannot recognize.
8545 *** The result is that libtool may fail to recognize shared libraries
8546 *** as such.  This will affect the creation of libtool libraries that
8547 *** depend on shared libraries, but programs linked with such libtool
8548 *** libraries will work regardless of this problem.  Nevertheless, you
8549 *** may want to report the problem to your system manager and/or to
8550 *** bug-libtool@gnu.org
8551
8552 _LT_EOF
8553           fi ;;
8554         esac
8555       fi
8556       break
8557     fi
8558   done
8559   IFS="$lt_save_ifs"
8560   MAGIC_CMD="$lt_save_MAGIC_CMD"
8561   ;;
8562 esac
8563 fi
8564
8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566 if test -n "$MAGIC_CMD"; then
8567   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8568 $as_echo "$MAGIC_CMD" >&6; }
8569 else
8570   { $as_echo "$as_me:$LINENO: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8573
8574
8575   else
8576     MAGIC_CMD=:
8577   fi
8578 fi
8579
8580   fi
8581   ;;
8582 esac
8583
8584 # Use C for the default configuration in the libtool script
8585
8586 lt_save_CC="$CC"
8587 ac_ext=c
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592
8593
8594 # Source file extension for C test sources.
8595 ac_ext=c
8596
8597 # Object file extension for compiled C test sources.
8598 objext=o
8599 objext=$objext
8600
8601 # Code to be used in simple compile tests
8602 lt_simple_compile_test_code="int some_variable = 0;"
8603
8604 # Code to be used in simple link tests
8605 lt_simple_link_test_code='int main(){return(0);}'
8606
8607
8608
8609
8610
8611
8612
8613 # If no C compiler was specified, use CC.
8614 LTCC=${LTCC-"$CC"}
8615
8616 # If no C compiler flags were specified, use CFLAGS.
8617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8618
8619 # Allow CC to be a program name with arguments.
8620 compiler=$CC
8621
8622 # Save the default compiler, since it gets overwritten when the other
8623 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8624 compiler_DEFAULT=$CC
8625
8626 # save warnings/boilerplate of simple test code
8627 ac_outfile=conftest.$ac_objext
8628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630 _lt_compiler_boilerplate=`cat conftest.err`
8631 $RM conftest*
8632
8633 ac_outfile=conftest.$ac_objext
8634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8636 _lt_linker_boilerplate=`cat conftest.err`
8637 $RM -r conftest*
8638
8639
8640 if test -n "$compiler"; then
8641
8642 lt_prog_compiler_no_builtin_flag=
8643
8644 if test "$GCC" = yes; then
8645   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8646
8647   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8648 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8649 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8650   $as_echo_n "(cached) " >&6
8651 else
8652   lt_cv_prog_compiler_rtti_exceptions=no
8653    ac_outfile=conftest.$ac_objext
8654    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8655    lt_compiler_flag="-fno-rtti -fno-exceptions"
8656    # Insert the option either (1) after the last *FLAGS variable, or
8657    # (2) before a word containing "conftest.", or (3) at the end.
8658    # Note that $ac_compile itself does not contain backslashes and begins
8659    # with a dollar sign (not a hyphen), so the echo should work correctly.
8660    # The option is referenced via a variable to avoid confusing sed.
8661    lt_compile=`echo "$ac_compile" | $SED \
8662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664    -e 's:$: $lt_compiler_flag:'`
8665    (eval echo "\"\$as_me:8665: $lt_compile\"" >&5)
8666    (eval "$lt_compile" 2>conftest.err)
8667    ac_status=$?
8668    cat conftest.err >&5
8669    echo "$as_me:8669: \$? = $ac_status" >&5
8670    if (exit $ac_status) && test -s "$ac_outfile"; then
8671      # The compiler can only warn and ignore the option if not recognized
8672      # So say no if there are warnings other than the usual output.
8673      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8674      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8675      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8676        lt_cv_prog_compiler_rtti_exceptions=yes
8677      fi
8678    fi
8679    $RM conftest*
8680
8681 fi
8682 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8683 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8684
8685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8686     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8687 else
8688     :
8689 fi
8690
8691 fi
8692
8693
8694
8695
8696
8697
8698   lt_prog_compiler_wl=
8699 lt_prog_compiler_pic=
8700 lt_prog_compiler_static=
8701
8702 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8704
8705   if test "$GCC" = yes; then
8706     lt_prog_compiler_wl='-Wl,'
8707     lt_prog_compiler_static='-static'
8708
8709     case $host_os in
8710       aix*)
8711       # All AIX code is PIC.
8712       if test "$host_cpu" = ia64; then
8713         # AIX 5 now supports IA64 processor
8714         lt_prog_compiler_static='-Bstatic'
8715       fi
8716       ;;
8717
8718     amigaos*)
8719       case $host_cpu in
8720       powerpc)
8721             # see comment about AmigaOS4 .so support
8722             lt_prog_compiler_pic='-fPIC'
8723         ;;
8724       m68k)
8725             # FIXME: we need at least 68020 code to build shared libraries, but
8726             # adding the `-m68020' flag to GCC prevents building anything better,
8727             # like `-m68040'.
8728             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8729         ;;
8730       esac
8731       ;;
8732
8733     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8734       # PIC is the default for these OSes.
8735       ;;
8736
8737     mingw* | cygwin* | pw32* | os2* | cegcc*)
8738       # This hack is so that the source file can tell whether it is being
8739       # built for inclusion in a dll (and should export symbols for example).
8740       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8741       # (--disable-auto-import) libraries
8742       lt_prog_compiler_pic='-DDLL_EXPORT'
8743       ;;
8744
8745     darwin* | rhapsody*)
8746       # PIC is the default on this platform
8747       # Common symbols not allowed in MH_DYLIB files
8748       lt_prog_compiler_pic='-fno-common'
8749       ;;
8750
8751     hpux*)
8752       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8753       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8754       # sets the default TLS model and affects inlining.
8755       case $host_cpu in
8756       hppa*64*)
8757         # +Z the default
8758         ;;
8759       *)
8760         lt_prog_compiler_pic='-fPIC'
8761         ;;
8762       esac
8763       ;;
8764
8765     interix[3-9]*)
8766       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8767       # Instead, we relocate shared libraries at runtime.
8768       ;;
8769
8770     msdosdjgpp*)
8771       # Just because we use GCC doesn't mean we suddenly get shared libraries
8772       # on systems that don't support them.
8773       lt_prog_compiler_can_build_shared=no
8774       enable_shared=no
8775       ;;
8776
8777     *nto* | *qnx*)
8778       # QNX uses GNU C++, but need to define -shared option too, otherwise
8779       # it will coredump.
8780       lt_prog_compiler_pic='-fPIC -shared'
8781       ;;
8782
8783     sysv4*MP*)
8784       if test -d /usr/nec; then
8785         lt_prog_compiler_pic=-Kconform_pic
8786       fi
8787       ;;
8788
8789     *)
8790       lt_prog_compiler_pic='-fPIC'
8791       ;;
8792     esac
8793   else
8794     # PORTME Check for flag to pass linker flags through the system compiler.
8795     case $host_os in
8796     aix*)
8797       lt_prog_compiler_wl='-Wl,'
8798       if test "$host_cpu" = ia64; then
8799         # AIX 5 now supports IA64 processor
8800         lt_prog_compiler_static='-Bstatic'
8801       else
8802         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8803       fi
8804       ;;
8805
8806     mingw* | cygwin* | pw32* | os2* | cegcc*)
8807       # This hack is so that the source file can tell whether it is being
8808       # built for inclusion in a dll (and should export symbols for example).
8809       lt_prog_compiler_pic='-DDLL_EXPORT'
8810       ;;
8811
8812     hpux9* | hpux10* | hpux11*)
8813       lt_prog_compiler_wl='-Wl,'
8814       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8815       # not for PA HP-UX.
8816       case $host_cpu in
8817       hppa*64*|ia64*)
8818         # +Z the default
8819         ;;
8820       *)
8821         lt_prog_compiler_pic='+Z'
8822         ;;
8823       esac
8824       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8825       lt_prog_compiler_static='${wl}-a ${wl}archive'
8826       ;;
8827
8828     irix5* | irix6* | nonstopux*)
8829       lt_prog_compiler_wl='-Wl,'
8830       # PIC (with -KPIC) is the default.
8831       lt_prog_compiler_static='-non_shared'
8832       ;;
8833
8834     linux* | k*bsd*-gnu)
8835       case $cc_basename in
8836       # old Intel for x86_64 which still supported -KPIC.
8837       ecc*)
8838         lt_prog_compiler_wl='-Wl,'
8839         lt_prog_compiler_pic='-KPIC'
8840         lt_prog_compiler_static='-static'
8841         ;;
8842       # icc used to be incompatible with GCC.
8843       # ICC 10 doesn't accept -KPIC any more.
8844       icc* | ifort*)
8845         lt_prog_compiler_wl='-Wl,'
8846         lt_prog_compiler_pic='-fPIC'
8847         lt_prog_compiler_static='-static'
8848         ;;
8849       # Lahey Fortran 8.1.
8850       lf95*)
8851         lt_prog_compiler_wl='-Wl,'
8852         lt_prog_compiler_pic='--shared'
8853         lt_prog_compiler_static='--static'
8854         ;;
8855       pgcc* | pgf77* | pgf90* | pgf95*)
8856         # Portland Group compilers (*not* the Pentium gcc compiler,
8857         # which looks to be a dead project)
8858         lt_prog_compiler_wl='-Wl,'
8859         lt_prog_compiler_pic='-fpic'
8860         lt_prog_compiler_static='-Bstatic'
8861         ;;
8862       ccc*)
8863         lt_prog_compiler_wl='-Wl,'
8864         # All Alpha code is PIC.
8865         lt_prog_compiler_static='-non_shared'
8866         ;;
8867       xl*)
8868         # IBM XL C 8.0/Fortran 10.1 on PPC
8869         lt_prog_compiler_wl='-Wl,'
8870         lt_prog_compiler_pic='-qpic'
8871         lt_prog_compiler_static='-qstaticlink'
8872         ;;
8873       *)
8874         case `$CC -V 2>&1 | sed 5q` in
8875         *Sun\ C*)
8876           # Sun C 5.9
8877           lt_prog_compiler_pic='-KPIC'
8878           lt_prog_compiler_static='-Bstatic'
8879           lt_prog_compiler_wl='-Wl,'
8880           ;;
8881         *Sun\ F*)
8882           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8883           lt_prog_compiler_pic='-KPIC'
8884           lt_prog_compiler_static='-Bstatic'
8885           lt_prog_compiler_wl=''
8886           ;;
8887         esac
8888         ;;
8889       esac
8890       ;;
8891
8892     newsos6)
8893       lt_prog_compiler_pic='-KPIC'
8894       lt_prog_compiler_static='-Bstatic'
8895       ;;
8896
8897     *nto* | *qnx*)
8898       # QNX uses GNU C++, but need to define -shared option too, otherwise
8899       # it will coredump.
8900       lt_prog_compiler_pic='-fPIC -shared'
8901       ;;
8902
8903     osf3* | osf4* | osf5*)
8904       lt_prog_compiler_wl='-Wl,'
8905       # All OSF/1 code is PIC.
8906       lt_prog_compiler_static='-non_shared'
8907       ;;
8908
8909     rdos*)
8910       lt_prog_compiler_static='-non_shared'
8911       ;;
8912
8913     solaris*)
8914       lt_prog_compiler_pic='-KPIC'
8915       lt_prog_compiler_static='-Bstatic'
8916       case $cc_basename in
8917       f77* | f90* | f95*)
8918         lt_prog_compiler_wl='-Qoption ld ';;
8919       *)
8920         lt_prog_compiler_wl='-Wl,';;
8921       esac
8922       ;;
8923
8924     sunos4*)
8925       lt_prog_compiler_wl='-Qoption ld '
8926       lt_prog_compiler_pic='-PIC'
8927       lt_prog_compiler_static='-Bstatic'
8928       ;;
8929
8930     sysv4 | sysv4.2uw2* | sysv4.3*)
8931       lt_prog_compiler_wl='-Wl,'
8932       lt_prog_compiler_pic='-KPIC'
8933       lt_prog_compiler_static='-Bstatic'
8934       ;;
8935
8936     sysv4*MP*)
8937       if test -d /usr/nec ;then
8938         lt_prog_compiler_pic='-Kconform_pic'
8939         lt_prog_compiler_static='-Bstatic'
8940       fi
8941       ;;
8942
8943     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8944       lt_prog_compiler_wl='-Wl,'
8945       lt_prog_compiler_pic='-KPIC'
8946       lt_prog_compiler_static='-Bstatic'
8947       ;;
8948
8949     unicos*)
8950       lt_prog_compiler_wl='-Wl,'
8951       lt_prog_compiler_can_build_shared=no
8952       ;;
8953
8954     uts4*)
8955       lt_prog_compiler_pic='-pic'
8956       lt_prog_compiler_static='-Bstatic'
8957       ;;
8958
8959     *)
8960       lt_prog_compiler_can_build_shared=no
8961       ;;
8962     esac
8963   fi
8964
8965 case $host_os in
8966   # For platforms which do not support PIC, -DPIC is meaningless:
8967   *djgpp*)
8968     lt_prog_compiler_pic=
8969     ;;
8970   *)
8971     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8972     ;;
8973 esac
8974 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8975 $as_echo "$lt_prog_compiler_pic" >&6; }
8976
8977
8978
8979
8980
8981
8982 #
8983 # Check to make sure the PIC flag actually works.
8984 #
8985 if test -n "$lt_prog_compiler_pic"; then
8986   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8987 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8988 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8989   $as_echo_n "(cached) " >&6
8990 else
8991   lt_cv_prog_compiler_pic_works=no
8992    ac_outfile=conftest.$ac_objext
8993    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8995    # Insert the option either (1) after the last *FLAGS variable, or
8996    # (2) before a word containing "conftest.", or (3) at the end.
8997    # Note that $ac_compile itself does not contain backslashes and begins
8998    # with a dollar sign (not a hyphen), so the echo should work correctly.
8999    # The option is referenced via a variable to avoid confusing sed.
9000    lt_compile=`echo "$ac_compile" | $SED \
9001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003    -e 's:$: $lt_compiler_flag:'`
9004    (eval echo "\"\$as_me:9004: $lt_compile\"" >&5)
9005    (eval "$lt_compile" 2>conftest.err)
9006    ac_status=$?
9007    cat conftest.err >&5
9008    echo "$as_me:9008: \$? = $ac_status" >&5
9009    if (exit $ac_status) && test -s "$ac_outfile"; then
9010      # The compiler can only warn and ignore the option if not recognized
9011      # So say no if there are warnings other than the usual output.
9012      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9013      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9014      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9015        lt_cv_prog_compiler_pic_works=yes
9016      fi
9017    fi
9018    $RM conftest*
9019
9020 fi
9021 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9022 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9023
9024 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9025     case $lt_prog_compiler_pic in
9026      "" | " "*) ;;
9027      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9028      esac
9029 else
9030     lt_prog_compiler_pic=
9031      lt_prog_compiler_can_build_shared=no
9032 fi
9033
9034 fi
9035
9036
9037
9038
9039
9040
9041 #
9042 # Check to make sure the static flag actually works.
9043 #
9044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9045 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9046 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9047 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9048   $as_echo_n "(cached) " >&6
9049 else
9050   lt_cv_prog_compiler_static_works=no
9051    save_LDFLAGS="$LDFLAGS"
9052    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9053    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9054    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9055      # The linker can only warn and ignore the option if not recognized
9056      # So say no if there are warnings
9057      if test -s conftest.err; then
9058        # Append any errors to the config.log.
9059        cat conftest.err 1>&5
9060        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9061        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062        if diff conftest.exp conftest.er2 >/dev/null; then
9063          lt_cv_prog_compiler_static_works=yes
9064        fi
9065      else
9066        lt_cv_prog_compiler_static_works=yes
9067      fi
9068    fi
9069    $RM -r conftest*
9070    LDFLAGS="$save_LDFLAGS"
9071
9072 fi
9073 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9075
9076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9077     :
9078 else
9079     lt_prog_compiler_static=
9080 fi
9081
9082
9083
9084
9085
9086
9087
9088   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9091   $as_echo_n "(cached) " >&6
9092 else
9093   lt_cv_prog_compiler_c_o=no
9094    $RM -r conftest 2>/dev/null
9095    mkdir conftest
9096    cd conftest
9097    mkdir out
9098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099
9100    lt_compiler_flag="-o out/conftest2.$ac_objext"
9101    # Insert the option either (1) after the last *FLAGS variable, or
9102    # (2) before a word containing "conftest.", or (3) at the end.
9103    # Note that $ac_compile itself does not contain backslashes and begins
9104    # with a dollar sign (not a hyphen), so the echo should work correctly.
9105    lt_compile=`echo "$ac_compile" | $SED \
9106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108    -e 's:$: $lt_compiler_flag:'`
9109    (eval echo "\"\$as_me:9109: $lt_compile\"" >&5)
9110    (eval "$lt_compile" 2>out/conftest.err)
9111    ac_status=$?
9112    cat out/conftest.err >&5
9113    echo "$as_me:9113: \$? = $ac_status" >&5
9114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9115    then
9116      # The compiler can only warn and ignore the option if not recognized
9117      # So say no if there are warnings
9118      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121        lt_cv_prog_compiler_c_o=yes
9122      fi
9123    fi
9124    chmod u+w . 2>&5
9125    $RM conftest*
9126    # SGI C++ compiler will create directory out/ii_files/ for
9127    # template instantiation
9128    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129    $RM out/* && rmdir out
9130    cd ..
9131    $RM -r conftest
9132    $RM conftest*
9133
9134 fi
9135 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9137
9138
9139
9140
9141
9142
9143   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9145 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9146   $as_echo_n "(cached) " >&6
9147 else
9148   lt_cv_prog_compiler_c_o=no
9149    $RM -r conftest 2>/dev/null
9150    mkdir conftest
9151    cd conftest
9152    mkdir out
9153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154
9155    lt_compiler_flag="-o out/conftest2.$ac_objext"
9156    # Insert the option either (1) after the last *FLAGS variable, or
9157    # (2) before a word containing "conftest.", or (3) at the end.
9158    # Note that $ac_compile itself does not contain backslashes and begins
9159    # with a dollar sign (not a hyphen), so the echo should work correctly.
9160    lt_compile=`echo "$ac_compile" | $SED \
9161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163    -e 's:$: $lt_compiler_flag:'`
9164    (eval echo "\"\$as_me:9164: $lt_compile\"" >&5)
9165    (eval "$lt_compile" 2>out/conftest.err)
9166    ac_status=$?
9167    cat out/conftest.err >&5
9168    echo "$as_me:9168: \$? = $ac_status" >&5
9169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9170    then
9171      # The compiler can only warn and ignore the option if not recognized
9172      # So say no if there are warnings
9173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9174      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9175      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9176        lt_cv_prog_compiler_c_o=yes
9177      fi
9178    fi
9179    chmod u+w . 2>&5
9180    $RM conftest*
9181    # SGI C++ compiler will create directory out/ii_files/ for
9182    # template instantiation
9183    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9184    $RM out/* && rmdir out
9185    cd ..
9186    $RM -r conftest
9187    $RM conftest*
9188
9189 fi
9190 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192
9193
9194
9195
9196 hard_links="nottested"
9197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9198   # do not overwrite the value of need_locks provided by the user
9199   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9200 $as_echo_n "checking if we can lock with hard links... " >&6; }
9201   hard_links=yes
9202   $RM conftest*
9203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204   touch conftest.a
9205   ln conftest.a conftest.b 2>&5 || hard_links=no
9206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9208 $as_echo "$hard_links" >&6; }
9209   if test "$hard_links" = no; then
9210     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9212     need_locks=warn
9213   fi
9214 else
9215   need_locks=no
9216 fi
9217
9218
9219
9220
9221
9222
9223   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9225
9226   runpath_var=
9227   allow_undefined_flag=
9228   always_export_symbols=no
9229   archive_cmds=
9230   archive_expsym_cmds=
9231   compiler_needs_object=no
9232   enable_shared_with_static_runtimes=no
9233   export_dynamic_flag_spec=
9234   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9235   hardcode_automatic=no
9236   hardcode_direct=no
9237   hardcode_direct_absolute=no
9238   hardcode_libdir_flag_spec=
9239   hardcode_libdir_flag_spec_ld=
9240   hardcode_libdir_separator=
9241   hardcode_minus_L=no
9242   hardcode_shlibpath_var=unsupported
9243   inherit_rpath=no
9244   link_all_deplibs=unknown
9245   module_cmds=
9246   module_expsym_cmds=
9247   old_archive_from_new_cmds=
9248   old_archive_from_expsyms_cmds=
9249   thread_safe_flag_spec=
9250   whole_archive_flag_spec=
9251   # include_expsyms should be a list of space-separated symbols to be *always*
9252   # included in the symbol list
9253   include_expsyms=
9254   # exclude_expsyms can be an extended regexp of symbols to exclude
9255   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9256   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9257   # as well as any symbol that contains `d'.
9258   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9259   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9260   # platforms (ab)use it in PIC code, but their linkers get confused if
9261   # the symbol is explicitly referenced.  Since portable code cannot
9262   # rely on this symbol name, it's probably fine to never include it in
9263   # preloaded symbol tables.
9264   # Exclude shared library initialization/finalization symbols.
9265   extract_expsyms_cmds=
9266
9267   case $host_os in
9268   cygwin* | mingw* | pw32* | cegcc*)
9269     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9270     # When not using gcc, we currently assume that we are using
9271     # Microsoft Visual C++.
9272     if test "$GCC" != yes; then
9273       with_gnu_ld=no
9274     fi
9275     ;;
9276   interix*)
9277     # we just hope/assume this is gcc and not c89 (= MSVC++)
9278     with_gnu_ld=yes
9279     ;;
9280   openbsd*)
9281     with_gnu_ld=no
9282     ;;
9283   esac
9284
9285   ld_shlibs=yes
9286   if test "$with_gnu_ld" = yes; then
9287     # If archive_cmds runs LD, not CC, wlarc should be empty
9288     wlarc='${wl}'
9289
9290     # Set some defaults for GNU ld with shared library support. These
9291     # are reset later if shared libraries are not supported. Putting them
9292     # here allows them to be overridden if necessary.
9293     runpath_var=LD_RUN_PATH
9294     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295     export_dynamic_flag_spec='${wl}--export-dynamic'
9296     # ancient GNU ld didn't support --whole-archive et. al.
9297     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9298       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9299     else
9300       whole_archive_flag_spec=
9301     fi
9302     supports_anon_versioning=no
9303     case `$LD -v 2>&1` in
9304       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9305       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9306       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9307       *\ 2.11.*) ;; # other 2.11 versions
9308       *) supports_anon_versioning=yes ;;
9309     esac
9310
9311     # See if GNU ld supports shared libraries.
9312     case $host_os in
9313     aix[3-9]*)
9314       # On AIX/PPC, the GNU linker is very broken
9315       if test "$host_cpu" != ia64; then
9316         ld_shlibs=no
9317         cat <<_LT_EOF 1>&2
9318
9319 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9320 *** to be unable to reliably create shared libraries on AIX.
9321 *** Therefore, libtool is disabling shared libraries support.  If you
9322 *** really care for shared libraries, you may want to modify your PATH
9323 *** so that a non-GNU linker is found, and then restart.
9324
9325 _LT_EOF
9326       fi
9327       ;;
9328
9329     amigaos*)
9330       case $host_cpu in
9331       powerpc)
9332             # see comment about AmigaOS4 .so support
9333             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334             archive_expsym_cmds=''
9335         ;;
9336       m68k)
9337             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)'
9338             hardcode_libdir_flag_spec='-L$libdir'
9339             hardcode_minus_L=yes
9340         ;;
9341       esac
9342       ;;
9343
9344     beos*)
9345       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346         allow_undefined_flag=unsupported
9347         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348         # support --undefined.  This deserves some investigation.  FIXME
9349         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350       else
9351         ld_shlibs=no
9352       fi
9353       ;;
9354
9355     cygwin* | mingw* | pw32* | cegcc*)
9356       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357       # as there is no search path for DLLs.
9358       hardcode_libdir_flag_spec='-L$libdir'
9359       allow_undefined_flag=unsupported
9360       always_export_symbols=no
9361       enable_shared_with_static_runtimes=yes
9362       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9363
9364       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9366         # If the export-symbols file already is a .def file (1st line
9367         # is EXPORTS), use it as is; otherwise, prepend...
9368         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9369           cp $export_symbols $output_objdir/$soname.def;
9370         else
9371           echo EXPORTS > $output_objdir/$soname.def;
9372           cat $export_symbols >> $output_objdir/$soname.def;
9373         fi~
9374         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9375       else
9376         ld_shlibs=no
9377       fi
9378       ;;
9379
9380     interix[3-9]*)
9381       hardcode_direct=no
9382       hardcode_shlibpath_var=no
9383       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9384       export_dynamic_flag_spec='${wl}-E'
9385       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9386       # Instead, shared libraries are loaded at an image base (0x10000000 by
9387       # default) and relocated if they conflict, which is a slow very memory
9388       # consuming and fragmenting process.  To avoid this, we pick a random,
9389       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9390       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9391       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9392       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'
9393       ;;
9394
9395     gnu* | linux* | tpf* | k*bsd*-gnu)
9396       tmp_diet=no
9397       if test "$host_os" = linux-dietlibc; then
9398         case $cc_basename in
9399           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9400         esac
9401       fi
9402       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9403          && test "$tmp_diet" = no
9404       then
9405         tmp_addflag=
9406         tmp_sharedflag='-shared'
9407         case $cc_basename,$host_cpu in
9408         pgcc*)                          # Portland Group C compiler
9409           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'
9410           tmp_addflag=' $pic_flag'
9411           ;;
9412         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9413           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'
9414           tmp_addflag=' $pic_flag -Mnomain' ;;
9415         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9416           tmp_addflag=' -i_dynamic' ;;
9417         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9418           tmp_addflag=' -i_dynamic -nofor_main' ;;
9419         ifc* | ifort*)                  # Intel Fortran compiler
9420           tmp_addflag=' -nofor_main' ;;
9421         lf95*)                          # Lahey Fortran 8.1
9422           whole_archive_flag_spec=
9423           tmp_sharedflag='--shared' ;;
9424         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9425           tmp_sharedflag='-qmkshrobj'
9426           tmp_addflag= ;;
9427         esac
9428         case `$CC -V 2>&1 | sed 5q` in
9429         *Sun\ C*)                       # Sun C 5.9
9430           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'
9431           compiler_needs_object=yes
9432           tmp_sharedflag='-G' ;;
9433         *Sun\ F*)                       # Sun Fortran 8.3
9434           tmp_sharedflag='-G' ;;
9435         esac
9436         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437
9438         if test "x$supports_anon_versioning" = xyes; then
9439           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9440             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9441             echo "local: *; };" >> $output_objdir/$libname.ver~
9442             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9443         fi
9444
9445         case $cc_basename in
9446         xlf*)
9447           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9448           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9449           hardcode_libdir_flag_spec=
9450           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9451           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9452           if test "x$supports_anon_versioning" = xyes; then
9453             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9454               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9455               echo "local: *; };" >> $output_objdir/$libname.ver~
9456               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9457           fi
9458           ;;
9459         esac
9460       else
9461         ld_shlibs=no
9462       fi
9463       ;;
9464
9465     netbsd* | netbsdelf*-gnu)
9466       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9468         wlarc=
9469       else
9470         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472       fi
9473       ;;
9474
9475     solaris*)
9476       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9477         ld_shlibs=no
9478         cat <<_LT_EOF 1>&2
9479
9480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9481 *** create shared libraries on Solaris systems.  Therefore, libtool
9482 *** is disabling shared libraries support.  We urge you to upgrade GNU
9483 *** binutils to release 2.9.1 or newer.  Another option is to modify
9484 *** your PATH or compiler configuration so that the native linker is
9485 *** used, and then restart.
9486
9487 _LT_EOF
9488       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9491       else
9492         ld_shlibs=no
9493       fi
9494       ;;
9495
9496     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9497       case `$LD -v 2>&1` in
9498         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9499         ld_shlibs=no
9500         cat <<_LT_EOF 1>&2
9501
9502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9503 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9504 *** is disabling shared libraries support.  We urge you to upgrade GNU
9505 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9506 *** your PATH or compiler configuration so that the native linker is
9507 *** used, and then restart.
9508
9509 _LT_EOF
9510         ;;
9511         *)
9512           # For security reasons, it is highly recommended that you always
9513           # use absolute paths for naming shared libraries, and exclude the
9514           # DT_RUNPATH tag from executables and libraries.  But doing so
9515           # requires that you compile everything twice, which is a pain.
9516           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9520           else
9521             ld_shlibs=no
9522           fi
9523         ;;
9524       esac
9525       ;;
9526
9527     sunos4*)
9528       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9529       wlarc=
9530       hardcode_direct=yes
9531       hardcode_shlibpath_var=no
9532       ;;
9533
9534     *)
9535       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9538       else
9539         ld_shlibs=no
9540       fi
9541       ;;
9542     esac
9543
9544     if test "$ld_shlibs" = no; then
9545       runpath_var=
9546       hardcode_libdir_flag_spec=
9547       export_dynamic_flag_spec=
9548       whole_archive_flag_spec=
9549     fi
9550   else
9551     # PORTME fill in a description of your system's linker (not GNU ld)
9552     case $host_os in
9553     aix3*)
9554       allow_undefined_flag=unsupported
9555       always_export_symbols=yes
9556       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'
9557       # Note: this linker hardcodes the directories in LIBPATH if there
9558       # are no directories specified by -L.
9559       hardcode_minus_L=yes
9560       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9561         # Neither direct hardcoding nor static linking is supported with a
9562         # broken collect2.
9563         hardcode_direct=unsupported
9564       fi
9565       ;;
9566
9567     aix[4-9]*)
9568       if test "$host_cpu" = ia64; then
9569         # On IA64, the linker does run time linking by default, so we don't
9570         # have to do anything special.
9571         aix_use_runtimelinking=no
9572         exp_sym_flag='-Bexport'
9573         no_entry_flag=""
9574       else
9575         # If we're using GNU nm, then we don't want the "-C" option.
9576         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9577         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9578           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'
9579         else
9580           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'
9581         fi
9582         aix_use_runtimelinking=no
9583
9584         # Test if we are trying to use run time linking or normal
9585         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9586         # need to do runtime linking.
9587         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9588           for ld_flag in $LDFLAGS; do
9589           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9590             aix_use_runtimelinking=yes
9591             break
9592           fi
9593           done
9594           ;;
9595         esac
9596
9597         exp_sym_flag='-bexport'
9598         no_entry_flag='-bnoentry'
9599       fi
9600
9601       # When large executables or shared objects are built, AIX ld can
9602       # have problems creating the table of contents.  If linking a library
9603       # or program results in "error TOC overflow" add -mminimal-toc to
9604       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9605       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9606
9607       archive_cmds=''
9608       hardcode_direct=yes
9609       hardcode_direct_absolute=yes
9610       hardcode_libdir_separator=':'
9611       link_all_deplibs=yes
9612       file_list_spec='${wl}-f,'
9613
9614       if test "$GCC" = yes; then
9615         case $host_os in aix4.[012]|aix4.[012].*)
9616         # We only want to do this on AIX 4.2 and lower, the check
9617         # below for broken collect2 doesn't work under 4.3+
9618           collect2name=`${CC} -print-prog-name=collect2`
9619           if test -f "$collect2name" &&
9620            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9621           then
9622           # We have reworked collect2
9623           :
9624           else
9625           # We have old collect2
9626           hardcode_direct=unsupported
9627           # It fails to find uninstalled libraries when the uninstalled
9628           # path is not listed in the libpath.  Setting hardcode_minus_L
9629           # to unsupported forces relinking
9630           hardcode_minus_L=yes
9631           hardcode_libdir_flag_spec='-L$libdir'
9632           hardcode_libdir_separator=
9633           fi
9634           ;;
9635         esac
9636         shared_flag='-shared'
9637         if test "$aix_use_runtimelinking" = yes; then
9638           shared_flag="$shared_flag "'${wl}-G'
9639         fi
9640         link_all_deplibs=no
9641       else
9642         # not using gcc
9643         if test "$host_cpu" = ia64; then
9644         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9645         # chokes on -Wl,-G. The following line is correct:
9646           shared_flag='-G'
9647         else
9648           if test "$aix_use_runtimelinking" = yes; then
9649             shared_flag='${wl}-G'
9650           else
9651             shared_flag='${wl}-bM:SRE'
9652           fi
9653         fi
9654       fi
9655
9656       export_dynamic_flag_spec='${wl}-bexpall'
9657       # It seems that -bexpall does not export symbols beginning with
9658       # underscore (_), so it is better to generate a list of symbols to export.
9659       always_export_symbols=yes
9660       if test "$aix_use_runtimelinking" = yes; then
9661         # Warning - without using the other runtime loading flags (-brtl),
9662         # -berok will link without error, but may produce a broken library.
9663         allow_undefined_flag='-berok'
9664         # Determine the default libpath from the value encoded in an
9665         # empty executable.
9666         cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672
9673 int
9674 main ()
9675 {
9676
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9688 $as_echo "$ac_try_echo") >&5
9689   (eval "$ac_link") 2>conftest.er1
9690   ac_status=$?
9691   grep -v '^ *+' conftest.er1 >conftest.err
9692   rm -f conftest.er1
9693   cat conftest.err >&5
9694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } && {
9696          test -z "$ac_c_werror_flag" ||
9697          test ! -s conftest.err
9698        } && test -s conftest$ac_exeext && {
9699          test "$cross_compiling" = yes ||
9700          $as_test_x conftest$ac_exeext
9701        }; then
9702
9703 lt_aix_libpath_sed='
9704     /Import File Strings/,/^$/ {
9705         /^0/ {
9706             s/^0  *\(.*\)$/\1/
9707             p
9708         }
9709     }'
9710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$aix_libpath"; then
9713   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9714 fi
9715 else
9716   $as_echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719
9720 fi
9721
9722 rm -rf conftest.dSYM
9723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9724       conftest$ac_exeext conftest.$ac_ext
9725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9726
9727         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9728         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"
9729       else
9730         if test "$host_cpu" = ia64; then
9731           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9732           allow_undefined_flag="-z nodefs"
9733           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"
9734         else
9735          # Determine the default libpath from the value encoded in an
9736          # empty executable.
9737          cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743
9744 int
9745 main ()
9746 {
9747
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760   (eval "$ac_link") 2>conftest.er1
9761   ac_status=$?
9762   grep -v '^ *+' conftest.er1 >conftest.err
9763   rm -f conftest.er1
9764   cat conftest.err >&5
9765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } && {
9767          test -z "$ac_c_werror_flag" ||
9768          test ! -s conftest.err
9769        } && test -s conftest$ac_exeext && {
9770          test "$cross_compiling" = yes ||
9771          $as_test_x conftest$ac_exeext
9772        }; then
9773
9774 lt_aix_libpath_sed='
9775     /Import File Strings/,/^$/ {
9776         /^0/ {
9777             s/^0  *\(.*\)$/\1/
9778             p
9779         }
9780     }'
9781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9782 # Check for a 64-bit object if we didn't find anything.
9783 if test -z "$aix_libpath"; then
9784   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 fi
9786 else
9787   $as_echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790
9791 fi
9792
9793 rm -rf conftest.dSYM
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795       conftest$ac_exeext conftest.$ac_ext
9796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9797
9798          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9799           # Warning - without using the other run time loading flags,
9800           # -berok will link without error, but may produce a broken library.
9801           no_undefined_flag=' ${wl}-bernotok'
9802           allow_undefined_flag=' ${wl}-berok'
9803           # Exported symbols can be pulled into shared objects from archives
9804           whole_archive_flag_spec='$convenience'
9805           archive_cmds_need_lc=yes
9806           # This is similar to how AIX traditionally builds its shared libraries.
9807           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'
9808         fi
9809       fi
9810       ;;
9811
9812     amigaos*)
9813       case $host_cpu in
9814       powerpc)
9815             # see comment about AmigaOS4 .so support
9816             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817             archive_expsym_cmds=''
9818         ;;
9819       m68k)
9820             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)'
9821             hardcode_libdir_flag_spec='-L$libdir'
9822             hardcode_minus_L=yes
9823         ;;
9824       esac
9825       ;;
9826
9827     bsdi[45]*)
9828       export_dynamic_flag_spec=-rdynamic
9829       ;;
9830
9831     cygwin* | mingw* | pw32* | cegcc*)
9832       # When not using gcc, we currently assume that we are using
9833       # Microsoft Visual C++.
9834       # hardcode_libdir_flag_spec is actually meaningless, as there is
9835       # no search path for DLLs.
9836       hardcode_libdir_flag_spec=' '
9837       allow_undefined_flag=unsupported
9838       # Tell ltmain to make .lib files, not .a files.
9839       libext=lib
9840       # Tell ltmain to make .dll files, not .so files.
9841       shrext_cmds=".dll"
9842       # FIXME: Setting linknames here is a bad hack.
9843       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9844       # The linker will automatically build a .lib file if we build a DLL.
9845       old_archive_from_new_cmds='true'
9846       # FIXME: Should let the user specify the lib program.
9847       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9848       fix_srcfile_path='`cygpath -w "$srcfile"`'
9849       enable_shared_with_static_runtimes=yes
9850       ;;
9851
9852     darwin* | rhapsody*)
9853
9854
9855   archive_cmds_need_lc=no
9856   hardcode_direct=no
9857   hardcode_automatic=yes
9858   hardcode_shlibpath_var=unsupported
9859   whole_archive_flag_spec=''
9860   link_all_deplibs=yes
9861   allow_undefined_flag="$_lt_dar_allow_undefined"
9862   case $cc_basename in
9863      ifort*) _lt_dar_can_shared=yes ;;
9864      *) _lt_dar_can_shared=$GCC ;;
9865   esac
9866   if test "$_lt_dar_can_shared" = "yes"; then
9867     output_verbose_link_cmd=echo
9868     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9869     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9870     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}"
9871     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}"
9872
9873   else
9874   ld_shlibs=no
9875   fi
9876
9877       ;;
9878
9879     dgux*)
9880       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881       hardcode_libdir_flag_spec='-L$libdir'
9882       hardcode_shlibpath_var=no
9883       ;;
9884
9885     freebsd1*)
9886       ld_shlibs=no
9887       ;;
9888
9889     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9890     # support.  Future versions do this automatically, but an explicit c++rt0.o
9891     # does not break anything, and helps significantly (at the cost of a little
9892     # extra space).
9893     freebsd2.2*)
9894       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9895       hardcode_libdir_flag_spec='-R$libdir'
9896       hardcode_direct=yes
9897       hardcode_shlibpath_var=no
9898       ;;
9899
9900     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9901     freebsd2*)
9902       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9903       hardcode_direct=yes
9904       hardcode_minus_L=yes
9905       hardcode_shlibpath_var=no
9906       ;;
9907
9908     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9909     freebsd* | dragonfly*)
9910       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9911       hardcode_libdir_flag_spec='-R$libdir'
9912       hardcode_direct=yes
9913       hardcode_shlibpath_var=no
9914       ;;
9915
9916     hpux9*)
9917       if test "$GCC" = yes; then
9918         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'
9919       else
9920         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'
9921       fi
9922       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9923       hardcode_libdir_separator=:
9924       hardcode_direct=yes
9925
9926       # hardcode_minus_L: Not really in the search PATH,
9927       # but as the default location of the library.
9928       hardcode_minus_L=yes
9929       export_dynamic_flag_spec='${wl}-E'
9930       ;;
9931
9932     hpux10*)
9933       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9934         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935       else
9936         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9937       fi
9938       if test "$with_gnu_ld" = no; then
9939         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9940         hardcode_libdir_flag_spec_ld='+b $libdir'
9941         hardcode_libdir_separator=:
9942         hardcode_direct=yes
9943         hardcode_direct_absolute=yes
9944         export_dynamic_flag_spec='${wl}-E'
9945         # hardcode_minus_L: Not really in the search PATH,
9946         # but as the default location of the library.
9947         hardcode_minus_L=yes
9948       fi
9949       ;;
9950
9951     hpux11*)
9952       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9953         case $host_cpu in
9954         hppa*64*)
9955           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956           ;;
9957         ia64*)
9958           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9959           ;;
9960         *)
9961           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9962           ;;
9963         esac
9964       else
9965         case $host_cpu in
9966         hppa*64*)
9967           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9968           ;;
9969         ia64*)
9970           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9971           ;;
9972         *)
9973           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9974           ;;
9975         esac
9976       fi
9977       if test "$with_gnu_ld" = no; then
9978         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9979         hardcode_libdir_separator=:
9980
9981         case $host_cpu in
9982         hppa*64*|ia64*)
9983           hardcode_direct=no
9984           hardcode_shlibpath_var=no
9985           ;;
9986         *)
9987           hardcode_direct=yes
9988           hardcode_direct_absolute=yes
9989           export_dynamic_flag_spec='${wl}-E'
9990
9991           # hardcode_minus_L: Not really in the search PATH,
9992           # but as the default location of the library.
9993           hardcode_minus_L=yes
9994           ;;
9995         esac
9996       fi
9997       ;;
9998
9999     irix5* | irix6* | nonstopux*)
10000       if test "$GCC" = yes; then
10001         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'
10002         # Try to use the -exported_symbol ld option, if it does not
10003         # work, assume that -exports_file does not work either and
10004         # implicitly export all symbols.
10005         save_LDFLAGS="$LDFLAGS"
10006         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10007         cat >conftest.$ac_ext <<_ACEOF
10008 int foo(void) {}
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10017 $as_echo "$ac_try_echo") >&5
10018   (eval "$ac_link") 2>conftest.er1
10019   ac_status=$?
10020   grep -v '^ *+' conftest.er1 >conftest.err
10021   rm -f conftest.er1
10022   cat conftest.err >&5
10023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } && {
10025          test -z "$ac_c_werror_flag" ||
10026          test ! -s conftest.err
10027        } && test -s conftest$ac_exeext && {
10028          test "$cross_compiling" = yes ||
10029          $as_test_x conftest$ac_exeext
10030        }; then
10031   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'
10032
10033 else
10034   $as_echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037
10038 fi
10039
10040 rm -rf conftest.dSYM
10041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042       conftest$ac_exeext conftest.$ac_ext
10043         LDFLAGS="$save_LDFLAGS"
10044       else
10045         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'
10046         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'
10047       fi
10048       archive_cmds_need_lc='no'
10049       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050       hardcode_libdir_separator=:
10051       inherit_rpath=yes
10052       link_all_deplibs=yes
10053       ;;
10054
10055     netbsd* | netbsdelf*-gnu)
10056       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10057         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10058       else
10059         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10060       fi
10061       hardcode_libdir_flag_spec='-R$libdir'
10062       hardcode_direct=yes
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     newsos6)
10067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068       hardcode_direct=yes
10069       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070       hardcode_libdir_separator=:
10071       hardcode_shlibpath_var=no
10072       ;;
10073
10074     *nto* | *qnx*)
10075       ;;
10076
10077     openbsd*)
10078       if test -f /usr/libexec/ld.so; then
10079         hardcode_direct=yes
10080         hardcode_shlibpath_var=no
10081         hardcode_direct_absolute=yes
10082         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10083           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10085           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086           export_dynamic_flag_spec='${wl}-E'
10087         else
10088           case $host_os in
10089            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10090              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10091              hardcode_libdir_flag_spec='-R$libdir'
10092              ;;
10093            *)
10094              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10096              ;;
10097           esac
10098         fi
10099       else
10100         ld_shlibs=no
10101       fi
10102       ;;
10103
10104     os2*)
10105       hardcode_libdir_flag_spec='-L$libdir'
10106       hardcode_minus_L=yes
10107       allow_undefined_flag=unsupported
10108       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'
10109       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10110       ;;
10111
10112     osf3*)
10113       if test "$GCC" = yes; then
10114         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115         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'
10116       else
10117         allow_undefined_flag=' -expect_unresolved \*'
10118         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'
10119       fi
10120       archive_cmds_need_lc='no'
10121       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122       hardcode_libdir_separator=:
10123       ;;
10124
10125     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10126       if test "$GCC" = yes; then
10127         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10128         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'
10129         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10130       else
10131         allow_undefined_flag=' -expect_unresolved \*'
10132         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'
10133         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~
10134         $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'
10135
10136         # Both c and cxx compiler support -rpath directly
10137         hardcode_libdir_flag_spec='-rpath $libdir'
10138       fi
10139       archive_cmds_need_lc='no'
10140       hardcode_libdir_separator=:
10141       ;;
10142
10143     solaris*)
10144       no_undefined_flag=' -z defs'
10145       if test "$GCC" = yes; then
10146         wlarc='${wl}'
10147         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10148         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10150       else
10151         case `$CC -V 2>&1` in
10152         *"Compilers 5.0"*)
10153           wlarc=''
10154           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10157           ;;
10158         *)
10159           wlarc='${wl}'
10160           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10161           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10163           ;;
10164         esac
10165       fi
10166       hardcode_libdir_flag_spec='-R$libdir'
10167       hardcode_shlibpath_var=no
10168       case $host_os in
10169       solaris2.[0-5] | solaris2.[0-5].*) ;;
10170       *)
10171         # The compiler driver will combine and reorder linker options,
10172         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10173         # but is careful enough not to reorder.
10174         # Supported since Solaris 2.6 (maybe 2.5.1?)
10175         if test "$GCC" = yes; then
10176           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10177         else
10178           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10179         fi
10180         ;;
10181       esac
10182       link_all_deplibs=yes
10183       ;;
10184
10185     sunos4*)
10186       if test "x$host_vendor" = xsequent; then
10187         # Use $CC to link under sequent, because it throws in some extra .o
10188         # files that make .init and .fini sections work.
10189         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10190       else
10191         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10192       fi
10193       hardcode_libdir_flag_spec='-L$libdir'
10194       hardcode_direct=yes
10195       hardcode_minus_L=yes
10196       hardcode_shlibpath_var=no
10197       ;;
10198
10199     sysv4)
10200       case $host_vendor in
10201         sni)
10202           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203           hardcode_direct=yes # is this really true???
10204         ;;
10205         siemens)
10206           ## LD is ld it makes a PLAMLIB
10207           ## CC just makes a GrossModule.
10208           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10209           reload_cmds='$CC -r -o $output$reload_objs'
10210           hardcode_direct=no
10211         ;;
10212         motorola)
10213           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10215         ;;
10216       esac
10217       runpath_var='LD_RUN_PATH'
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     sysv4.3*)
10222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223       hardcode_shlibpath_var=no
10224       export_dynamic_flag_spec='-Bexport'
10225       ;;
10226
10227     sysv4*MP*)
10228       if test -d /usr/nec; then
10229         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230         hardcode_shlibpath_var=no
10231         runpath_var=LD_RUN_PATH
10232         hardcode_runpath_var=yes
10233         ld_shlibs=yes
10234       fi
10235       ;;
10236
10237     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10238       no_undefined_flag='${wl}-z,text'
10239       archive_cmds_need_lc=no
10240       hardcode_shlibpath_var=no
10241       runpath_var='LD_RUN_PATH'
10242
10243       if test "$GCC" = yes; then
10244         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246       else
10247         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249       fi
10250       ;;
10251
10252     sysv5* | sco3.2v5* | sco5v6*)
10253       # Note: We can NOT use -z defs as we might desire, because we do not
10254       # link with -lc, and that would cause any symbols used from libc to
10255       # always be unresolved, which means just about no library would
10256       # ever link correctly.  If we're not using GNU ld we use -z text
10257       # though, which does catch some bad symbols but isn't as heavy-handed
10258       # as -z defs.
10259       no_undefined_flag='${wl}-z,text'
10260       allow_undefined_flag='${wl}-z,nodefs'
10261       archive_cmds_need_lc=no
10262       hardcode_shlibpath_var=no
10263       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10264       hardcode_libdir_separator=':'
10265       link_all_deplibs=yes
10266       export_dynamic_flag_spec='${wl}-Bexport'
10267       runpath_var='LD_RUN_PATH'
10268
10269       if test "$GCC" = yes; then
10270         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272       else
10273         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275       fi
10276       ;;
10277
10278     uts4*)
10279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280       hardcode_libdir_flag_spec='-L$libdir'
10281       hardcode_shlibpath_var=no
10282       ;;
10283
10284     *)
10285       ld_shlibs=no
10286       ;;
10287     esac
10288
10289     if test x$host_vendor = xsni; then
10290       case $host in
10291       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10292         export_dynamic_flag_spec='${wl}-Blargedynsym'
10293         ;;
10294       esac
10295     fi
10296   fi
10297
10298 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10299 $as_echo "$ld_shlibs" >&6; }
10300 test "$ld_shlibs" = no && can_build_shared=no
10301
10302 with_gnu_ld=$with_gnu_ld
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 #
10319 # Do we need to explicitly link libc?
10320 #
10321 case "x$archive_cmds_need_lc" in
10322 x|xyes)
10323   # Assume -lc should be added
10324   archive_cmds_need_lc=yes
10325
10326   if test "$enable_shared" = yes && test "$GCC" = yes; then
10327     case $archive_cmds in
10328     *'~'*)
10329       # FIXME: we may have to deal with multi-command sequences.
10330       ;;
10331     '$CC '*)
10332       # Test whether the compiler implicitly links with -lc since on some
10333       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10334       # to ld, don't add -lc before -lgcc.
10335       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10337       $RM conftest*
10338       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10339
10340       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341   (eval $ac_compile) 2>&5
10342   ac_status=$?
10343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } 2>conftest.err; then
10345         soname=conftest
10346         lib=conftest
10347         libobjs=conftest.$ac_objext
10348         deplibs=
10349         wl=$lt_prog_compiler_wl
10350         pic_flag=$lt_prog_compiler_pic
10351         compiler_flags=-v
10352         linker_flags=-v
10353         verstring=
10354         output_objdir=.
10355         libname=conftest
10356         lt_save_allow_undefined_flag=$allow_undefined_flag
10357         allow_undefined_flag=
10358         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10359   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10360   ac_status=$?
10361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }
10363         then
10364           archive_cmds_need_lc=no
10365         else
10366           archive_cmds_need_lc=yes
10367         fi
10368         allow_undefined_flag=$lt_save_allow_undefined_flag
10369       else
10370         cat conftest.err 1>&5
10371       fi
10372       $RM conftest*
10373       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10374 $as_echo "$archive_cmds_need_lc" >&6; }
10375       ;;
10376     esac
10377   fi
10378   ;;
10379 esac
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10538 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10539
10540 if test "$GCC" = yes; then
10541   case $host_os in
10542     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10543     *) lt_awk_arg="/^libraries:/" ;;
10544   esac
10545   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10546   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10547     # if the path contains ";" then we assume it to be the separator
10548     # otherwise default to the standard path separator (i.e. ":") - it is
10549     # assumed that no part of a normal pathname contains ";" but that should
10550     # okay in the real world where ";" in dirpaths is itself problematic.
10551     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10552   else
10553     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10554   fi
10555   # Ok, now we have the path, separated by spaces, we can step through it
10556   # and add multilib dir if necessary.
10557   lt_tmp_lt_search_path_spec=
10558   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10559   for lt_sys_path in $lt_search_path_spec; do
10560     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10561       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10562     else
10563       test -d "$lt_sys_path" && \
10564         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10565     fi
10566   done
10567   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10568 BEGIN {RS=" "; FS="/|\n";} {
10569   lt_foo="";
10570   lt_count=0;
10571   for (lt_i = NF; lt_i > 0; lt_i--) {
10572     if ($lt_i != "" && $lt_i != ".") {
10573       if ($lt_i == "..") {
10574         lt_count++;
10575       } else {
10576         if (lt_count == 0) {
10577           lt_foo="/" $lt_i lt_foo;
10578         } else {
10579           lt_count--;
10580         }
10581       }
10582     }
10583   }
10584   if (lt_foo != "") { lt_freq[lt_foo]++; }
10585   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10586 }'`
10587   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10588 else
10589   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10590 fi
10591 library_names_spec=
10592 libname_spec='lib$name'
10593 soname_spec=
10594 shrext_cmds=".so"
10595 postinstall_cmds=
10596 postuninstall_cmds=
10597 finish_cmds=
10598 finish_eval=
10599 shlibpath_var=
10600 shlibpath_overrides_runpath=unknown
10601 version_type=none
10602 dynamic_linker="$host_os ld.so"
10603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10604 need_lib_prefix=unknown
10605 hardcode_into_libs=no
10606
10607 # when you set need_version to no, make sure it does not cause -set_version
10608 # flags to be left without arguments
10609 need_version=unknown
10610
10611 case $host_os in
10612 aix3*)
10613   version_type=linux
10614   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10615   shlibpath_var=LIBPATH
10616
10617   # AIX 3 has no versioning support, so we append a major version to the name.
10618   soname_spec='${libname}${release}${shared_ext}$major'
10619   ;;
10620
10621 aix[4-9]*)
10622   version_type=linux
10623   need_lib_prefix=no
10624   need_version=no
10625   hardcode_into_libs=yes
10626   if test "$host_cpu" = ia64; then
10627     # AIX 5 supports IA64
10628     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10629     shlibpath_var=LD_LIBRARY_PATH
10630   else
10631     # With GCC up to 2.95.x, collect2 would create an import file
10632     # for dependence libraries.  The import file would start with
10633     # the line `#! .'.  This would cause the generated library to
10634     # depend on `.', always an invalid library.  This was fixed in
10635     # development snapshots of GCC prior to 3.0.
10636     case $host_os in
10637       aix4 | aix4.[01] | aix4.[01].*)
10638       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10639            echo ' yes '
10640            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10641         :
10642       else
10643         can_build_shared=no
10644       fi
10645       ;;
10646     esac
10647     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10648     # soname into executable. Probably we can add versioning support to
10649     # collect2, so additional links can be useful in future.
10650     if test "$aix_use_runtimelinking" = yes; then
10651       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10652       # instead of lib<name>.a to let people know that these are not
10653       # typical AIX shared libraries.
10654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655     else
10656       # We preserve .a as extension for shared libraries through AIX4.2
10657       # and later when we are not doing run time linking.
10658       library_names_spec='${libname}${release}.a $libname.a'
10659       soname_spec='${libname}${release}${shared_ext}$major'
10660     fi
10661     shlibpath_var=LIBPATH
10662   fi
10663   ;;
10664
10665 amigaos*)
10666   case $host_cpu in
10667   powerpc)
10668     # Since July 2007 AmigaOS4 officially supports .so libraries.
10669     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671     ;;
10672   m68k)
10673     library_names_spec='$libname.ixlibrary $libname.a'
10674     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10675     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'
10676     ;;
10677   esac
10678   ;;
10679
10680 beos*)
10681   library_names_spec='${libname}${shared_ext}'
10682   dynamic_linker="$host_os ld.so"
10683   shlibpath_var=LIBRARY_PATH
10684   ;;
10685
10686 bsdi[45]*)
10687   version_type=linux
10688   need_version=no
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690   soname_spec='${libname}${release}${shared_ext}$major'
10691   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10692   shlibpath_var=LD_LIBRARY_PATH
10693   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10694   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10695   # the default ld.so.conf also contains /usr/contrib/lib and
10696   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10697   # libtool to hard-code these into programs
10698   ;;
10699
10700 cygwin* | mingw* | pw32* | cegcc*)
10701   version_type=windows
10702   shrext_cmds=".dll"
10703   need_version=no
10704   need_lib_prefix=no
10705
10706   case $GCC,$host_os in
10707   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10708     library_names_spec='$libname.dll.a'
10709     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710     postinstall_cmds='base_file=`basename \${file}`~
10711       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10712       dldir=$destdir/`dirname \$dlpath`~
10713       test -d \$dldir || mkdir -p \$dldir~
10714       $install_prog $dir/$dlname \$dldir/$dlname~
10715       chmod a+x \$dldir/$dlname~
10716       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10717         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10718       fi'
10719     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10720       dlpath=$dir/\$dldll~
10721        $RM \$dlpath'
10722     shlibpath_overrides_runpath=yes
10723
10724     case $host_os in
10725     cygwin*)
10726       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10727       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10729       ;;
10730     mingw* | cegcc*)
10731       # MinGW DLLs use traditional 'lib' prefix
10732       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10733       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10734       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10735         # It is most probably a Windows format PATH printed by
10736         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10737         # path with ; separators, and with drive letters. We can handle the
10738         # drive letters (cygwin fileutils understands them), so leave them,
10739         # especially as we might pass files found there to a mingw objdump,
10740         # which wouldn't understand a cygwinified path. Ahh.
10741         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10742       else
10743         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10744       fi
10745       ;;
10746     pw32*)
10747       # pw32 DLLs use 'pw' prefix rather than 'lib'
10748       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749       ;;
10750     esac
10751     ;;
10752
10753   *)
10754     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10755     ;;
10756   esac
10757   dynamic_linker='Win32 ld.exe'
10758   # FIXME: first we should search . and the directory the executable is in
10759   shlibpath_var=PATH
10760   ;;
10761
10762 darwin* | rhapsody*)
10763   dynamic_linker="$host_os dyld"
10764   version_type=darwin
10765   need_lib_prefix=no
10766   need_version=no
10767   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10768   soname_spec='${libname}${release}${major}$shared_ext'
10769   shlibpath_overrides_runpath=yes
10770   shlibpath_var=DYLD_LIBRARY_PATH
10771   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10772
10773   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10774   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10775   ;;
10776
10777 dgux*)
10778   version_type=linux
10779   need_lib_prefix=no
10780   need_version=no
10781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10782   soname_spec='${libname}${release}${shared_ext}$major'
10783   shlibpath_var=LD_LIBRARY_PATH
10784   ;;
10785
10786 freebsd1*)
10787   dynamic_linker=no
10788   ;;
10789
10790 freebsd* | dragonfly*)
10791   # DragonFly does not have aout.  When/if they implement a new
10792   # versioning mechanism, adjust this.
10793   if test -x /usr/bin/objformat; then
10794     objformat=`/usr/bin/objformat`
10795   else
10796     case $host_os in
10797     freebsd[123]*) objformat=aout ;;
10798     *) objformat=elf ;;
10799     esac
10800   fi
10801   version_type=freebsd-$objformat
10802   case $version_type in
10803     freebsd-elf*)
10804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10805       need_version=no
10806       need_lib_prefix=no
10807       ;;
10808     freebsd-*)
10809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10810       need_version=yes
10811       ;;
10812   esac
10813   shlibpath_var=LD_LIBRARY_PATH
10814   case $host_os in
10815   freebsd2*)
10816     shlibpath_overrides_runpath=yes
10817     ;;
10818   freebsd3.[01]* | freebsdelf3.[01]*)
10819     shlibpath_overrides_runpath=yes
10820     hardcode_into_libs=yes
10821     ;;
10822   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10823   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10824     shlibpath_overrides_runpath=no
10825     hardcode_into_libs=yes
10826     ;;
10827   *) # from 4.6 on, and DragonFly
10828     shlibpath_overrides_runpath=yes
10829     hardcode_into_libs=yes
10830     ;;
10831   esac
10832   ;;
10833
10834 gnu*)
10835   version_type=linux
10836   need_lib_prefix=no
10837   need_version=no
10838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839   soname_spec='${libname}${release}${shared_ext}$major'
10840   shlibpath_var=LD_LIBRARY_PATH
10841   hardcode_into_libs=yes
10842   ;;
10843
10844 hpux9* | hpux10* | hpux11*)
10845   # Give a soname corresponding to the major version so that dld.sl refuses to
10846   # link against other versions.
10847   version_type=sunos
10848   need_lib_prefix=no
10849   need_version=no
10850   case $host_cpu in
10851   ia64*)
10852     shrext_cmds='.so'
10853     hardcode_into_libs=yes
10854     dynamic_linker="$host_os dld.so"
10855     shlibpath_var=LD_LIBRARY_PATH
10856     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858     soname_spec='${libname}${release}${shared_ext}$major'
10859     if test "X$HPUX_IA64_MODE" = X32; then
10860       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10861     else
10862       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10863     fi
10864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865     ;;
10866   hppa*64*)
10867     shrext_cmds='.sl'
10868     hardcode_into_libs=yes
10869     dynamic_linker="$host_os dld.sl"
10870     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10871     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873     soname_spec='${libname}${release}${shared_ext}$major'
10874     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10875     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876     ;;
10877   *)
10878     shrext_cmds='.sl'
10879     dynamic_linker="$host_os dld.sl"
10880     shlibpath_var=SHLIB_PATH
10881     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883     soname_spec='${libname}${release}${shared_ext}$major'
10884     ;;
10885   esac
10886   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10887   postinstall_cmds='chmod 555 $lib'
10888   ;;
10889
10890 interix[3-9]*)
10891   version_type=linux
10892   need_lib_prefix=no
10893   need_version=no
10894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10895   soname_spec='${libname}${release}${shared_ext}$major'
10896   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10897   shlibpath_var=LD_LIBRARY_PATH
10898   shlibpath_overrides_runpath=no
10899   hardcode_into_libs=yes
10900   ;;
10901
10902 irix5* | irix6* | nonstopux*)
10903   case $host_os in
10904     nonstopux*) version_type=nonstopux ;;
10905     *)
10906         if test "$lt_cv_prog_gnu_ld" = yes; then
10907                 version_type=linux
10908         else
10909                 version_type=irix
10910         fi ;;
10911   esac
10912   need_lib_prefix=no
10913   need_version=no
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10916   case $host_os in
10917   irix5* | nonstopux*)
10918     libsuff= shlibsuff=
10919     ;;
10920   *)
10921     case $LD in # libtool.m4 will add one of these switches to LD
10922     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10923       libsuff= shlibsuff= libmagic=32-bit;;
10924     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10925       libsuff=32 shlibsuff=N32 libmagic=N32;;
10926     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10927       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10928     *) libsuff= shlibsuff= libmagic=never-match;;
10929     esac
10930     ;;
10931   esac
10932   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10933   shlibpath_overrides_runpath=no
10934   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10935   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10936   hardcode_into_libs=yes
10937   ;;
10938
10939 # No shared lib support for Linux oldld, aout, or coff.
10940 linux*oldld* | linux*aout* | linux*coff*)
10941   dynamic_linker=no
10942   ;;
10943
10944 # This must be Linux ELF.
10945 linux* | k*bsd*-gnu)
10946   version_type=linux
10947   need_lib_prefix=no
10948   need_version=no
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950   soname_spec='${libname}${release}${shared_ext}$major'
10951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10952   shlibpath_var=LD_LIBRARY_PATH
10953   shlibpath_overrides_runpath=no
10954   # Some binutils ld are patched to set DT_RUNPATH
10955   save_LDFLAGS=$LDFLAGS
10956   save_libdir=$libdir
10957   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10959   cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965
10966 int
10967 main ()
10968 {
10969
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10981 $as_echo "$ac_try_echo") >&5
10982   (eval "$ac_link") 2>conftest.er1
10983   ac_status=$?
10984   grep -v '^ *+' conftest.er1 >conftest.err
10985   rm -f conftest.er1
10986   cat conftest.err >&5
10987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); } && {
10989          test -z "$ac_c_werror_flag" ||
10990          test ! -s conftest.err
10991        } && test -s conftest$ac_exeext && {
10992          test "$cross_compiling" = yes ||
10993          $as_test_x conftest$ac_exeext
10994        }; then
10995   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10996   shlibpath_overrides_runpath=yes
10997 fi
10998
10999 else
11000   $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003
11004 fi
11005
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008       conftest$ac_exeext conftest.$ac_ext
11009   LDFLAGS=$save_LDFLAGS
11010   libdir=$save_libdir
11011
11012   # This implies no fast_install, which is unacceptable.
11013   # Some rework will be needed to allow for fast_install
11014   # before this can be enabled.
11015   hardcode_into_libs=yes
11016
11017   # Append ld.so.conf contents to the search path
11018   if test -f /etc/ld.so.conf; then
11019     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' ' '`
11020     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11021   fi
11022
11023   # We used to test for /lib/ld.so.1 and disable shared libraries on
11024   # powerpc, because MkLinux only supported shared libraries with the
11025   # GNU dynamic linker.  Since this was broken with cross compilers,
11026   # most powerpc-linux boxes support dynamic linking these days and
11027   # people can always --disable-shared, the test was removed, and we
11028   # assume the GNU/Linux dynamic linker is in use.
11029   dynamic_linker='GNU/Linux ld.so'
11030   ;;
11031
11032 netbsdelf*-gnu)
11033   version_type=linux
11034   need_lib_prefix=no
11035   need_version=no
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037   soname_spec='${libname}${release}${shared_ext}$major'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   shlibpath_overrides_runpath=no
11040   hardcode_into_libs=yes
11041   dynamic_linker='NetBSD ld.elf_so'
11042   ;;
11043
11044 netbsd*)
11045   version_type=sunos
11046   need_lib_prefix=no
11047   need_version=no
11048   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11051     dynamic_linker='NetBSD (a.out) ld.so'
11052   else
11053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11054     soname_spec='${libname}${release}${shared_ext}$major'
11055     dynamic_linker='NetBSD ld.elf_so'
11056   fi
11057   shlibpath_var=LD_LIBRARY_PATH
11058   shlibpath_overrides_runpath=yes
11059   hardcode_into_libs=yes
11060   ;;
11061
11062 newsos6)
11063   version_type=linux
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   shlibpath_overrides_runpath=yes
11067   ;;
11068
11069 *nto* | *qnx*)
11070   version_type=qnx
11071   need_lib_prefix=no
11072   need_version=no
11073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074   soname_spec='${libname}${release}${shared_ext}$major'
11075   shlibpath_var=LD_LIBRARY_PATH
11076   shlibpath_overrides_runpath=no
11077   hardcode_into_libs=yes
11078   dynamic_linker='ldqnx.so'
11079   ;;
11080
11081 openbsd*)
11082   version_type=sunos
11083   sys_lib_dlsearch_path_spec="/usr/lib"
11084   need_lib_prefix=no
11085   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11086   case $host_os in
11087     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11088     *)                          need_version=no  ;;
11089   esac
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11094     case $host_os in
11095       openbsd2.[89] | openbsd2.[89].*)
11096         shlibpath_overrides_runpath=no
11097         ;;
11098       *)
11099         shlibpath_overrides_runpath=yes
11100         ;;
11101       esac
11102   else
11103     shlibpath_overrides_runpath=yes
11104   fi
11105   ;;
11106
11107 os2*)
11108   libname_spec='$name'
11109   shrext_cmds=".dll"
11110   need_lib_prefix=no
11111   library_names_spec='$libname${shared_ext} $libname.a'
11112   dynamic_linker='OS/2 ld.exe'
11113   shlibpath_var=LIBPATH
11114   ;;
11115
11116 osf3* | osf4* | osf5*)
11117   version_type=osf
11118   need_lib_prefix=no
11119   need_version=no
11120   soname_spec='${libname}${release}${shared_ext}$major'
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122   shlibpath_var=LD_LIBRARY_PATH
11123   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11124   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11125   ;;
11126
11127 rdos*)
11128   dynamic_linker=no
11129   ;;
11130
11131 solaris*)
11132   version_type=linux
11133   need_lib_prefix=no
11134   need_version=no
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136   soname_spec='${libname}${release}${shared_ext}$major'
11137   shlibpath_var=LD_LIBRARY_PATH
11138   shlibpath_overrides_runpath=yes
11139   hardcode_into_libs=yes
11140   # ldd complains unless libraries are executable
11141   postinstall_cmds='chmod +x $lib'
11142   ;;
11143
11144 sunos4*)
11145   version_type=sunos
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11147   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   shlibpath_overrides_runpath=yes
11150   if test "$with_gnu_ld" = yes; then
11151     need_lib_prefix=no
11152   fi
11153   need_version=yes
11154   ;;
11155
11156 sysv4 | sysv4.3*)
11157   version_type=linux
11158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159   soname_spec='${libname}${release}${shared_ext}$major'
11160   shlibpath_var=LD_LIBRARY_PATH
11161   case $host_vendor in
11162     sni)
11163       shlibpath_overrides_runpath=no
11164       need_lib_prefix=no
11165       runpath_var=LD_RUN_PATH
11166       ;;
11167     siemens)
11168       need_lib_prefix=no
11169       ;;
11170     motorola)
11171       need_lib_prefix=no
11172       need_version=no
11173       shlibpath_overrides_runpath=no
11174       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11175       ;;
11176   esac
11177   ;;
11178
11179 sysv4*MP*)
11180   if test -d /usr/nec ;then
11181     version_type=linux
11182     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11183     soname_spec='$libname${shared_ext}.$major'
11184     shlibpath_var=LD_LIBRARY_PATH
11185   fi
11186   ;;
11187
11188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11189   version_type=freebsd-elf
11190   need_lib_prefix=no
11191   need_version=no
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11193   soname_spec='${libname}${release}${shared_ext}$major'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   shlibpath_overrides_runpath=yes
11196   hardcode_into_libs=yes
11197   if test "$with_gnu_ld" = yes; then
11198     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11199   else
11200     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11201     case $host_os in
11202       sco3.2v5*)
11203         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11204         ;;
11205     esac
11206   fi
11207   sys_lib_dlsearch_path_spec='/usr/lib'
11208   ;;
11209
11210 tpf*)
11211   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11212   version_type=linux
11213   need_lib_prefix=no
11214   need_version=no
11215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216   shlibpath_var=LD_LIBRARY_PATH
11217   shlibpath_overrides_runpath=no
11218   hardcode_into_libs=yes
11219   ;;
11220
11221 uts4*)
11222   version_type=linux
11223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224   soname_spec='${libname}${release}${shared_ext}$major'
11225   shlibpath_var=LD_LIBRARY_PATH
11226   ;;
11227
11228 *)
11229   dynamic_linker=no
11230   ;;
11231 esac
11232 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11233 $as_echo "$dynamic_linker" >&6; }
11234 test "$dynamic_linker" = no && can_build_shared=no
11235
11236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11237 if test "$GCC" = yes; then
11238   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11239 fi
11240
11241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11242   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11243 fi
11244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11245   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11246 fi
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11335 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11336 hardcode_action=
11337 if test -n "$hardcode_libdir_flag_spec" ||
11338    test -n "$runpath_var" ||
11339    test "X$hardcode_automatic" = "Xyes" ; then
11340
11341   # We can hardcode non-existent directories.
11342   if test "$hardcode_direct" != no &&
11343      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11344      # have to relink, otherwise we might link with an installed library
11345      # when we should be linking with a yet-to-be-installed one
11346      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11347      test "$hardcode_minus_L" != no; then
11348     # Linking always hardcodes the temporary library directory.
11349     hardcode_action=relink
11350   else
11351     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11352     hardcode_action=immediate
11353   fi
11354 else
11355   # We cannot hardcode anything, or else we can only hardcode existing
11356   # directories.
11357   hardcode_action=unsupported
11358 fi
11359 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11360 $as_echo "$hardcode_action" >&6; }
11361
11362 if test "$hardcode_action" = relink ||
11363    test "$inherit_rpath" = yes; then
11364   # Fast installation is not supported
11365   enable_fast_install=no
11366 elif test "$shlibpath_overrides_runpath" = yes ||
11367      test "$enable_shared" = no; then
11368   # Fast installation is not necessary
11369   enable_fast_install=needless
11370 fi
11371
11372
11373
11374
11375
11376
11377   if test "x$enable_dlopen" != xyes; then
11378   enable_dlopen=unknown
11379   enable_dlopen_self=unknown
11380   enable_dlopen_self_static=unknown
11381 else
11382   lt_cv_dlopen=no
11383   lt_cv_dlopen_libs=
11384
11385   case $host_os in
11386   beos*)
11387     lt_cv_dlopen="load_add_on"
11388     lt_cv_dlopen_libs=
11389     lt_cv_dlopen_self=yes
11390     ;;
11391
11392   mingw* | pw32* | cegcc*)
11393     lt_cv_dlopen="LoadLibrary"
11394     lt_cv_dlopen_libs=
11395     ;;
11396
11397   cygwin*)
11398     lt_cv_dlopen="dlopen"
11399     lt_cv_dlopen_libs=
11400     ;;
11401
11402   darwin*)
11403   # if libdl is installed we need to link against it
11404     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11405 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11407   $as_echo_n "(cached) " >&6
11408 else
11409   ac_check_lib_save_LIBS=$LIBS
11410 LIBS="-ldl  $LIBS"
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417
11418 /* Override any GCC internal prototype to avoid an error.
11419    Use char because int might match the return type of a GCC
11420    builtin and then its argument prototype would still apply.  */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char dlopen ();
11425 int
11426 main ()
11427 {
11428 return dlopen ();
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (ac_try="$ac_link"
11435 case "(($ac_try" in
11436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437   *) ac_try_echo=$ac_try;;
11438 esac
11439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11440 $as_echo "$ac_try_echo") >&5
11441   (eval "$ac_link") 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } && {
11448          test -z "$ac_c_werror_flag" ||
11449          test ! -s conftest.err
11450        } && test -s conftest$ac_exeext && {
11451          test "$cross_compiling" = yes ||
11452          $as_test_x conftest$ac_exeext
11453        }; then
11454   ac_cv_lib_dl_dlopen=yes
11455 else
11456   $as_echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11458
11459         ac_cv_lib_dl_dlopen=no
11460 fi
11461
11462 rm -rf conftest.dSYM
11463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11464       conftest$ac_exeext conftest.$ac_ext
11465 LIBS=$ac_check_lib_save_LIBS
11466 fi
11467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11469 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11470   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11471 else
11472
11473     lt_cv_dlopen="dyld"
11474     lt_cv_dlopen_libs=
11475     lt_cv_dlopen_self=yes
11476
11477 fi
11478
11479     ;;
11480
11481   *)
11482     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11483 $as_echo_n "checking for shl_load... " >&6; }
11484 if test "${ac_cv_func_shl_load+set}" = set; then
11485   $as_echo_n "(cached) " >&6
11486 else
11487   cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11495 #define shl_load innocuous_shl_load
11496
11497 /* System header to define __stub macros and hopefully few prototypes,
11498     which can conflict with char shl_load (); below.
11499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11500     <limits.h> exists even on freestanding compilers.  */
11501
11502 #ifdef __STDC__
11503 # include <limits.h>
11504 #else
11505 # include <assert.h>
11506 #endif
11507
11508 #undef shl_load
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511    Use char because int might match the return type of a GCC
11512    builtin and then its argument prototype would still apply.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char shl_load ();
11517 /* The GNU C library defines this for functions which it implements
11518     to always fail with ENOSYS.  Some functions are actually named
11519     something starting with __ and the normal name is an alias.  */
11520 #if defined __stub_shl_load || defined __stub___shl_load
11521 choke me
11522 #endif
11523
11524 int
11525 main ()
11526 {
11527 return shl_load ();
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (ac_try="$ac_link"
11534 case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11539 $as_echo "$ac_try_echo") >&5
11540   (eval "$ac_link") 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } && {
11547          test -z "$ac_c_werror_flag" ||
11548          test ! -s conftest.err
11549        } && test -s conftest$ac_exeext && {
11550          test "$cross_compiling" = yes ||
11551          $as_test_x conftest$ac_exeext
11552        }; then
11553   ac_cv_func_shl_load=yes
11554 else
11555   $as_echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558         ac_cv_func_shl_load=no
11559 fi
11560
11561 rm -rf conftest.dSYM
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563       conftest$ac_exeext conftest.$ac_ext
11564 fi
11565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11566 $as_echo "$ac_cv_func_shl_load" >&6; }
11567 if test "x$ac_cv_func_shl_load" = x""yes; then
11568   lt_cv_dlopen="shl_load"
11569 else
11570   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11573   $as_echo_n "(cached) " >&6
11574 else
11575   ac_check_lib_save_LIBS=$LIBS
11576 LIBS="-ldld  $LIBS"
11577 cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583
11584 /* Override any GCC internal prototype to avoid an error.
11585    Use char because int might match the return type of a GCC
11586    builtin and then its argument prototype would still apply.  */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char shl_load ();
11591 int
11592 main ()
11593 {
11594 return shl_load ();
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext conftest$ac_exeext
11600 if { (ac_try="$ac_link"
11601 case "(($ac_try" in
11602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603   *) ac_try_echo=$ac_try;;
11604 esac
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607   (eval "$ac_link") 2>conftest.er1
11608   ac_status=$?
11609   grep -v '^ *+' conftest.er1 >conftest.err
11610   rm -f conftest.er1
11611   cat conftest.err >&5
11612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); } && {
11614          test -z "$ac_c_werror_flag" ||
11615          test ! -s conftest.err
11616        } && test -s conftest$ac_exeext && {
11617          test "$cross_compiling" = yes ||
11618          $as_test_x conftest$ac_exeext
11619        }; then
11620   ac_cv_lib_dld_shl_load=yes
11621 else
11622   $as_echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625         ac_cv_lib_dld_shl_load=no
11626 fi
11627
11628 rm -rf conftest.dSYM
11629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11630       conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11632 fi
11633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11634 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11635 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11636   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11637 else
11638   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11639 $as_echo_n "checking for dlopen... " >&6; }
11640 if test "${ac_cv_func_dlopen+set}" = set; then
11641   $as_echo_n "(cached) " >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11651 #define dlopen innocuous_dlopen
11652
11653 /* System header to define __stub macros and hopefully few prototypes,
11654     which can conflict with char dlopen (); below.
11655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656     <limits.h> exists even on freestanding compilers.  */
11657
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663
11664 #undef dlopen
11665
11666 /* Override any GCC internal prototype to avoid an error.
11667    Use char because int might match the return type of a GCC
11668    builtin and then its argument prototype would still apply.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 char dlopen ();
11673 /* The GNU C library defines this for functions which it implements
11674     to always fail with ENOSYS.  Some functions are actually named
11675     something starting with __ and the normal name is an alias.  */
11676 #if defined __stub_dlopen || defined __stub___dlopen
11677 choke me
11678 #endif
11679
11680 int
11681 main ()
11682 {
11683 return dlopen ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696   (eval "$ac_link") 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } && {
11703          test -z "$ac_c_werror_flag" ||
11704          test ! -s conftest.err
11705        } && test -s conftest$ac_exeext && {
11706          test "$cross_compiling" = yes ||
11707          $as_test_x conftest$ac_exeext
11708        }; then
11709   ac_cv_func_dlopen=yes
11710 else
11711   $as_echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714         ac_cv_func_dlopen=no
11715 fi
11716
11717 rm -rf conftest.dSYM
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719       conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11722 $as_echo "$ac_cv_func_dlopen" >&6; }
11723 if test "x$ac_cv_func_dlopen" = x""yes; then
11724   lt_cv_dlopen="dlopen"
11725 else
11726   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11729   $as_echo_n "(cached) " >&6
11730 else
11731   ac_check_lib_save_LIBS=$LIBS
11732 LIBS="-ldl  $LIBS"
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char dlopen ();
11747 int
11748 main ()
11749 {
11750 return dlopen ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759   *) ac_try_echo=$ac_try;;
11760 esac
11761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763   (eval "$ac_link") 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } && {
11770          test -z "$ac_c_werror_flag" ||
11771          test ! -s conftest.err
11772        } && test -s conftest$ac_exeext && {
11773          test "$cross_compiling" = yes ||
11774          $as_test_x conftest$ac_exeext
11775        }; then
11776   ac_cv_lib_dl_dlopen=yes
11777 else
11778   $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781         ac_cv_lib_dl_dlopen=no
11782 fi
11783
11784 rm -rf conftest.dSYM
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786       conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11788 fi
11789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11791 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11792   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11793 else
11794   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11797   $as_echo_n "(cached) " >&6
11798 else
11799   ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-lsvld  $LIBS"
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11815 int
11816 main ()
11817 {
11818 return dlopen ();
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (ac_try="$ac_link"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831   (eval "$ac_link") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } && {
11838          test -z "$ac_c_werror_flag" ||
11839          test ! -s conftest.err
11840        } && test -s conftest$ac_exeext && {
11841          test "$cross_compiling" = yes ||
11842          $as_test_x conftest$ac_exeext
11843        }; then
11844   ac_cv_lib_svld_dlopen=yes
11845 else
11846   $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849         ac_cv_lib_svld_dlopen=no
11850 fi
11851
11852 rm -rf conftest.dSYM
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854       conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11856 fi
11857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11858 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11859 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11860   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11861 else
11862   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11863 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11864 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11865   $as_echo_n "(cached) " >&6
11866 else
11867   ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-ldld  $LIBS"
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877    Use char because int might match the return type of a GCC
11878    builtin and then its argument prototype would still apply.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char dld_link ();
11883 int
11884 main ()
11885 {
11886 return dld_link ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (ac_try="$ac_link"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898 $as_echo "$ac_try_echo") >&5
11899   (eval "$ac_link") 2>conftest.er1
11900   ac_status=$?
11901   grep -v '^ *+' conftest.er1 >conftest.err
11902   rm -f conftest.er1
11903   cat conftest.err >&5
11904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } && {
11906          test -z "$ac_c_werror_flag" ||
11907          test ! -s conftest.err
11908        } && test -s conftest$ac_exeext && {
11909          test "$cross_compiling" = yes ||
11910          $as_test_x conftest$ac_exeext
11911        }; then
11912   ac_cv_lib_dld_dld_link=yes
11913 else
11914   $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917         ac_cv_lib_dld_dld_link=no
11918 fi
11919
11920 rm -rf conftest.dSYM
11921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11922       conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11924 fi
11925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11926 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11927 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11928   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11929 fi
11930
11931
11932 fi
11933
11934
11935 fi
11936
11937
11938 fi
11939
11940
11941 fi
11942
11943
11944 fi
11945
11946     ;;
11947   esac
11948
11949   if test "x$lt_cv_dlopen" != xno; then
11950     enable_dlopen=yes
11951   else
11952     enable_dlopen=no
11953   fi
11954
11955   case $lt_cv_dlopen in
11956   dlopen)
11957     save_CPPFLAGS="$CPPFLAGS"
11958     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11959
11960     save_LDFLAGS="$LDFLAGS"
11961     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11962
11963     save_LIBS="$LIBS"
11964     LIBS="$lt_cv_dlopen_libs $LIBS"
11965
11966     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11967 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11968 if test "${lt_cv_dlopen_self+set}" = set; then
11969   $as_echo_n "(cached) " >&6
11970 else
11971           if test "$cross_compiling" = yes; then :
11972   lt_cv_dlopen_self=cross
11973 else
11974   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11975   lt_status=$lt_dlunknown
11976   cat > conftest.$ac_ext <<_LT_EOF
11977 #line 11977 "configure"
11978 #include "confdefs.h"
11979
11980 #if HAVE_DLFCN_H
11981 #include <dlfcn.h>
11982 #endif
11983
11984 #include <stdio.h>
11985
11986 #ifdef RTLD_GLOBAL
11987 #  define LT_DLGLOBAL           RTLD_GLOBAL
11988 #else
11989 #  ifdef DL_GLOBAL
11990 #    define LT_DLGLOBAL         DL_GLOBAL
11991 #  else
11992 #    define LT_DLGLOBAL         0
11993 #  endif
11994 #endif
11995
11996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11997    find out it does not work in some platform. */
11998 #ifndef LT_DLLAZY_OR_NOW
11999 #  ifdef RTLD_LAZY
12000 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12001 #  else
12002 #    ifdef DL_LAZY
12003 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12004 #    else
12005 #      ifdef RTLD_NOW
12006 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12007 #      else
12008 #        ifdef DL_NOW
12009 #          define LT_DLLAZY_OR_NOW      DL_NOW
12010 #        else
12011 #          define LT_DLLAZY_OR_NOW      0
12012 #        endif
12013 #      endif
12014 #    endif
12015 #  endif
12016 #endif
12017
12018 void fnord() { int i=42;}
12019 int main ()
12020 {
12021   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12022   int status = $lt_dlunknown;
12023
12024   if (self)
12025     {
12026       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12027       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12028       /* dlclose (self); */
12029     }
12030   else
12031     puts (dlerror ());
12032
12033   return status;
12034 }
12035 _LT_EOF
12036   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037   (eval $ac_link) 2>&5
12038   ac_status=$?
12039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12041     (./conftest; exit; ) >&5 2>/dev/null
12042     lt_status=$?
12043     case x$lt_status in
12044       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12045       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12046       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12047     esac
12048   else :
12049     # compilation failed
12050     lt_cv_dlopen_self=no
12051   fi
12052 fi
12053 rm -fr conftest*
12054
12055
12056 fi
12057 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12058 $as_echo "$lt_cv_dlopen_self" >&6; }
12059
12060     if test "x$lt_cv_dlopen_self" = xyes; then
12061       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12062       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12063 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12064 if test "${lt_cv_dlopen_self_static+set}" = set; then
12065   $as_echo_n "(cached) " >&6
12066 else
12067           if test "$cross_compiling" = yes; then :
12068   lt_cv_dlopen_self_static=cross
12069 else
12070   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12071   lt_status=$lt_dlunknown
12072   cat > conftest.$ac_ext <<_LT_EOF
12073 #line 12073 "configure"
12074 #include "confdefs.h"
12075
12076 #if HAVE_DLFCN_H
12077 #include <dlfcn.h>
12078 #endif
12079
12080 #include <stdio.h>
12081
12082 #ifdef RTLD_GLOBAL
12083 #  define LT_DLGLOBAL           RTLD_GLOBAL
12084 #else
12085 #  ifdef DL_GLOBAL
12086 #    define LT_DLGLOBAL         DL_GLOBAL
12087 #  else
12088 #    define LT_DLGLOBAL         0
12089 #  endif
12090 #endif
12091
12092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12093    find out it does not work in some platform. */
12094 #ifndef LT_DLLAZY_OR_NOW
12095 #  ifdef RTLD_LAZY
12096 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12097 #  else
12098 #    ifdef DL_LAZY
12099 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12100 #    else
12101 #      ifdef RTLD_NOW
12102 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12103 #      else
12104 #        ifdef DL_NOW
12105 #          define LT_DLLAZY_OR_NOW      DL_NOW
12106 #        else
12107 #          define LT_DLLAZY_OR_NOW      0
12108 #        endif
12109 #      endif
12110 #    endif
12111 #  endif
12112 #endif
12113
12114 void fnord() { int i=42;}
12115 int main ()
12116 {
12117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12118   int status = $lt_dlunknown;
12119
12120   if (self)
12121     {
12122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12124       /* dlclose (self); */
12125     }
12126   else
12127     puts (dlerror ());
12128
12129   return status;
12130 }
12131 _LT_EOF
12132   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133   (eval $ac_link) 2>&5
12134   ac_status=$?
12135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12137     (./conftest; exit; ) >&5 2>/dev/null
12138     lt_status=$?
12139     case x$lt_status in
12140       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12141       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12142       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12143     esac
12144   else :
12145     # compilation failed
12146     lt_cv_dlopen_self_static=no
12147   fi
12148 fi
12149 rm -fr conftest*
12150
12151
12152 fi
12153 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12154 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12155     fi
12156
12157     CPPFLAGS="$save_CPPFLAGS"
12158     LDFLAGS="$save_LDFLAGS"
12159     LIBS="$save_LIBS"
12160     ;;
12161   esac
12162
12163   case $lt_cv_dlopen_self in
12164   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12165   *) enable_dlopen_self=unknown ;;
12166   esac
12167
12168   case $lt_cv_dlopen_self_static in
12169   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12170   *) enable_dlopen_self_static=unknown ;;
12171   esac
12172 fi
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190 striplib=
12191 old_striplib=
12192 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12193 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12194 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12195   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12196   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12197   { $as_echo "$as_me:$LINENO: result: yes" >&5
12198 $as_echo "yes" >&6; }
12199 else
12200 # FIXME - insert some real tests, host_os isn't really good enough
12201   case $host_os in
12202   darwin*)
12203     if test -n "$STRIP" ; then
12204       striplib="$STRIP -x"
12205       old_striplib="$STRIP -S"
12206       { $as_echo "$as_me:$LINENO: result: yes" >&5
12207 $as_echo "yes" >&6; }
12208     else
12209       { $as_echo "$as_me:$LINENO: result: no" >&5
12210 $as_echo "no" >&6; }
12211     fi
12212     ;;
12213   *)
12214     { $as_echo "$as_me:$LINENO: result: no" >&5
12215 $as_echo "no" >&6; }
12216     ;;
12217   esac
12218 fi
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231   # Report which library types will actually be built
12232   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12233 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12234   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12235 $as_echo "$can_build_shared" >&6; }
12236
12237   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12238 $as_echo_n "checking whether to build shared libraries... " >&6; }
12239   test "$can_build_shared" = "no" && enable_shared=no
12240
12241   # On AIX, shared libraries and static libraries use the same namespace, and
12242   # are all built from PIC.
12243   case $host_os in
12244   aix3*)
12245     test "$enable_shared" = yes && enable_static=no
12246     if test -n "$RANLIB"; then
12247       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12248       postinstall_cmds='$RANLIB $lib'
12249     fi
12250     ;;
12251
12252   aix[4-9]*)
12253     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12254       test "$enable_shared" = yes && enable_static=no
12255     fi
12256     ;;
12257   esac
12258   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12259 $as_echo "$enable_shared" >&6; }
12260
12261   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12262 $as_echo_n "checking whether to build static libraries... " >&6; }
12263   # Make sure either enable_shared or enable_static is yes.
12264   test "$enable_shared" = yes || enable_static=yes
12265   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12266 $as_echo "$enable_static" >&6; }
12267
12268
12269
12270
12271 fi
12272 ac_ext=c
12273 ac_cpp='$CPP $CPPFLAGS'
12274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12277
12278 CC="$lt_save_CC"
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292         ac_config_commands="$ac_config_commands libtool"
12293
12294
12295
12296
12297 # Only expand once:
12298
12299
12300
12301
12302 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12303         if test -n "$ac_tool_prefix"; then
12304   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12305 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12309   $as_echo_n "(cached) " >&6
12310 else
12311   case $PKG_CONFIG in
12312   [\\/]* | ?:[\\/]*)
12313   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12314   ;;
12315   *)
12316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321   for ac_exec_ext in '' $ac_executable_extensions; do
12322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328 done
12329 IFS=$as_save_IFS
12330
12331   ;;
12332 esac
12333 fi
12334 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12335 if test -n "$PKG_CONFIG"; then
12336   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12337 $as_echo "$PKG_CONFIG" >&6; }
12338 else
12339   { $as_echo "$as_me:$LINENO: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342
12343
12344 fi
12345 if test -z "$ac_cv_path_PKG_CONFIG"; then
12346   ac_pt_PKG_CONFIG=$PKG_CONFIG
12347   # Extract the first word of "pkg-config", so it can be a program name with args.
12348 set dummy pkg-config; ac_word=$2
12349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12352   $as_echo_n "(cached) " >&6
12353 else
12354   case $ac_pt_PKG_CONFIG in
12355   [\\/]* | ?:[\\/]*)
12356   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12357   ;;
12358   *)
12359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362   IFS=$as_save_IFS
12363   test -z "$as_dir" && as_dir=.
12364   for ac_exec_ext in '' $ac_executable_extensions; do
12365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12367     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12368     break 2
12369   fi
12370 done
12371 done
12372 IFS=$as_save_IFS
12373
12374   ;;
12375 esac
12376 fi
12377 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12378 if test -n "$ac_pt_PKG_CONFIG"; then
12379   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12380 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12381 else
12382   { $as_echo "$as_me:$LINENO: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385
12386   if test "x$ac_pt_PKG_CONFIG" = x; then
12387     PKG_CONFIG=""
12388   else
12389     case $cross_compiling:$ac_tool_warned in
12390 yes:)
12391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12393 ac_tool_warned=yes ;;
12394 esac
12395     PKG_CONFIG=$ac_pt_PKG_CONFIG
12396   fi
12397 else
12398   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12399 fi
12400
12401 fi
12402 if test -n "$PKG_CONFIG"; then
12403         _pkg_min_version=0.9.0
12404         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12405 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12406         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12407                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408 $as_echo "yes" >&6; }
12409         else
12410                 { $as_echo "$as_me:$LINENO: result: no" >&5
12411 $as_echo "no" >&6; }
12412                 PKG_CONFIG=""
12413         fi
12414
12415 fi
12416
12417 ac_config_files="$ac_config_files Makefile libqrencode.pc tests/Makefile qrencode.spec qrencode.1"
12418
12419
12420
12421 # Check whether --with-tools was given.
12422 if test "${with_tools+set}" = set; then
12423   withval=$with_tools; build_tools=$withval
12424 else
12425   build_tools=yes
12426 fi
12427
12428  if test "x$build_tools" = "xyes" ; then
12429   BUILD_TOOLS_TRUE=
12430   BUILD_TOOLS_FALSE='#'
12431 else
12432   BUILD_TOOLS_TRUE='#'
12433   BUILD_TOOLS_FALSE=
12434 fi
12435
12436 if test x$build_tools = xyes ; then
12437
12438 pkg_failed=no
12439 { $as_echo "$as_me:$LINENO: checking for png" >&5
12440 $as_echo_n "checking for png... " >&6; }
12441
12442 if test -n "$PKG_CONFIG"; then
12443     if test -n "$png_CFLAGS"; then
12444         pkg_cv_png_CFLAGS="$png_CFLAGS"
12445     else
12446         if test -n "$PKG_CONFIG" && \
12447     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libpng12\"\"") >&5
12448   ($PKG_CONFIG --exists --print-errors ""libpng12"") 2>&5
12449   ac_status=$?
12450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; then
12452   pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags ""libpng12"" 2>/dev/null`
12453 else
12454   pkg_failed=yes
12455 fi
12456     fi
12457 else
12458         pkg_failed=untried
12459 fi
12460 if test -n "$PKG_CONFIG"; then
12461     if test -n "$png_LIBS"; then
12462         pkg_cv_png_LIBS="$png_LIBS"
12463     else
12464         if test -n "$PKG_CONFIG" && \
12465     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libpng12\"\"") >&5
12466   ($PKG_CONFIG --exists --print-errors ""libpng12"") 2>&5
12467   ac_status=$?
12468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; then
12470   pkg_cv_png_LIBS=`$PKG_CONFIG --libs ""libpng12"" 2>/dev/null`
12471 else
12472   pkg_failed=yes
12473 fi
12474     fi
12475 else
12476         pkg_failed=untried
12477 fi
12478
12479
12480
12481 if test $pkg_failed = yes; then
12482
12483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12484         _pkg_short_errors_supported=yes
12485 else
12486         _pkg_short_errors_supported=no
12487 fi
12488         if test $_pkg_short_errors_supported = yes; then
12489                 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""libpng12""`
12490         else
12491                 png_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""libpng12""`
12492         fi
12493         # Put the nasty error message in config.log where it belongs
12494         echo "$png_PKG_ERRORS" >&5
12495
12496         { { $as_echo "$as_me:$LINENO: error: Package requirements (\"libpng12\") were not met:
12497
12498 $png_PKG_ERRORS
12499
12500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12501 installed software in a non-standard prefix.
12502
12503 Alternatively, you may set the environment variables png_CFLAGS
12504 and png_LIBS to avoid the need to call pkg-config.
12505 See the pkg-config man page for more details.
12506 " >&5
12507 $as_echo "$as_me: error: Package requirements (\"libpng12\") were not met:
12508
12509 $png_PKG_ERRORS
12510
12511 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12512 installed software in a non-standard prefix.
12513
12514 Alternatively, you may set the environment variables png_CFLAGS
12515 and png_LIBS to avoid the need to call pkg-config.
12516 See the pkg-config man page for more details.
12517 " >&2;}
12518    { (exit 1); exit 1; }; }
12519 elif test $pkg_failed = untried; then
12520         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12522 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12523 is in your PATH or set the PKG_CONFIG environment variable to the full
12524 path to pkg-config.
12525
12526 Alternatively, you may set the environment variables png_CFLAGS
12527 and png_LIBS to avoid the need to call pkg-config.
12528 See the pkg-config man page for more details.
12529
12530 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12531 See \`config.log' for more details." >&5
12532 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12533 is in your PATH or set the PKG_CONFIG environment variable to the full
12534 path to pkg-config.
12535
12536 Alternatively, you may set the environment variables png_CFLAGS
12537 and png_LIBS to avoid the need to call pkg-config.
12538 See the pkg-config man page for more details.
12539
12540 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12541 See \`config.log' for more details." >&2;}
12542    { (exit 1); exit 1; }; }; }
12543 else
12544         png_CFLAGS=$pkg_cv_png_CFLAGS
12545         png_LIBS=$pkg_cv_png_LIBS
12546         { $as_echo "$as_me:$LINENO: result: yes" >&5
12547 $as_echo "yes" >&6; }
12548         :
12549 fi
12550 fi
12551
12552
12553 # Check whether --with-tests was given.
12554 if test "${with_tests+set}" = set; then
12555   withval=$with_tests; build_tests=$withval
12556 else
12557   build_tests=no
12558 fi
12559
12560  if test "x$build_tests" = "xyes" ; then
12561   BUILD_TESTS_TRUE=
12562   BUILD_TESTS_FALSE='#'
12563 else
12564   BUILD_TESTS_TRUE='#'
12565   BUILD_TESTS_FALSE=
12566 fi
12567
12568
12569
12570 if test x$build_tests = xyes ; then
12571 echo "#define __STATIC" >>confdefs.h
12572 else
12573 echo "#define __STATIC static" >>confdefs.h
12574 fi
12575
12576
12577 if test x$build_tests = xyes ; then
12578         SDL_REQUIRED_VERSION=1.2.0
12579
12580 # Check whether --with-sdl-prefix was given.
12581 if test "${with_sdl_prefix+set}" = set; then
12582   withval=$with_sdl_prefix; sdl_prefix="$withval"
12583 else
12584   sdl_prefix=""
12585 fi
12586
12587
12588 # Check whether --with-sdl-exec-prefix was given.
12589 if test "${with_sdl_exec_prefix+set}" = set; then
12590   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12591 else
12592   sdl_exec_prefix=""
12593 fi
12594
12595 # Check whether --enable-sdltest was given.
12596 if test "${enable_sdltest+set}" = set; then
12597   enableval=$enable_sdltest;
12598 else
12599   enable_sdltest=yes
12600 fi
12601
12602
12603   if test x$sdl_exec_prefix != x ; then
12604     sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12605     if test x${SDL_CONFIG+set} != xset ; then
12606       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12607     fi
12608   fi
12609   if test x$sdl_prefix != x ; then
12610     sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12611     if test x${SDL_CONFIG+set} != xset ; then
12612       SDL_CONFIG=$sdl_prefix/bin/sdl-config
12613     fi
12614   fi
12615
12616   if test "x$prefix" != xNONE; then
12617     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12618   fi
12619   # Extract the first word of "sdl-config", so it can be a program name with args.
12620 set dummy sdl-config; ac_word=$2
12621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12624   $as_echo_n "(cached) " >&6
12625 else
12626   case $SDL_CONFIG in
12627   [\\/]* | ?:[\\/]*)
12628   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12629   ;;
12630   *)
12631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12633 do
12634   IFS=$as_save_IFS
12635   test -z "$as_dir" && as_dir=.
12636   for ac_exec_ext in '' $ac_executable_extensions; do
12637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12638     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12639     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12640     break 2
12641   fi
12642 done
12643 done
12644 IFS=$as_save_IFS
12645
12646   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12647   ;;
12648 esac
12649 fi
12650 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12651 if test -n "$SDL_CONFIG"; then
12652   { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12653 $as_echo "$SDL_CONFIG" >&6; }
12654 else
12655   { $as_echo "$as_me:$LINENO: result: no" >&5
12656 $as_echo "no" >&6; }
12657 fi
12658
12659
12660   min_sdl_version=$SDL_REQUIRED_VERSION
12661   { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12662 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12663   no_sdl=""
12664   if test "$SDL_CONFIG" = "no" ; then
12665     no_sdl=yes
12666   else
12667     SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12668     SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12669
12670     sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12671            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12672     sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12673            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12674     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12675            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12676     if test "x$enable_sdltest" = "xyes" ; then
12677       ac_save_CFLAGS="$CFLAGS"
12678       ac_save_CXXFLAGS="$CXXFLAGS"
12679       ac_save_LIBS="$LIBS"
12680       CFLAGS="$CFLAGS $SDL_CFLAGS"
12681       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12682       LIBS="$LIBS $SDL_LIBS"
12683       rm -f conf.sdltest
12684       if test "$cross_compiling" = yes; then
12685   echo $ac_n "cross compiling; assumed OK... $ac_c"
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693
12694 #include <stdio.h>
12695 #include <stdlib.h>
12696 #include <string.h>
12697 #include "SDL.h"
12698
12699 char*
12700 my_strdup (char *str)
12701 {
12702   char *new_str;
12703
12704   if (str)
12705     {
12706       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12707       strcpy (new_str, str);
12708     }
12709   else
12710     new_str = NULL;
12711
12712   return new_str;
12713 }
12714
12715 int main (int argc, char *argv[])
12716 {
12717   int major, minor, micro;
12718   char *tmp_version;
12719
12720   /* This hangs on some systems (?)
12721   system ("touch conf.sdltest");
12722   */
12723   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12724
12725   /* HP/UX 9 (%@#!) writes to sscanf strings */
12726   tmp_version = my_strdup("$min_sdl_version");
12727   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12728      printf("%s, bad version string\n", "$min_sdl_version");
12729      exit(1);
12730    }
12731
12732    if (($sdl_major_version > major) ||
12733       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12734       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12735     {
12736       return 0;
12737     }
12738   else
12739     {
12740       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12741       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12742       printf("*** best to upgrade to the required version.\n");
12743       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12744       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12745       printf("*** config.cache before re-running configure\n");
12746       return 1;
12747     }
12748 }
12749
12750
12751 _ACEOF
12752 rm -f conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12759 $as_echo "$ac_try_echo") >&5
12760   (eval "$ac_link") 2>&5
12761   ac_status=$?
12762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12764   { (case "(($ac_try" in
12765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766   *) ac_try_echo=$ac_try;;
12767 esac
12768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12769 $as_echo "$ac_try_echo") >&5
12770   (eval "$ac_try") 2>&5
12771   ac_status=$?
12772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; }; then
12774   :
12775 else
12776   $as_echo "$as_me: program exited with status $ac_status" >&5
12777 $as_echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ( exit $ac_status )
12781 no_sdl=yes
12782 fi
12783 rm -rf conftest.dSYM
12784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12785 fi
12786
12787
12788        CFLAGS="$ac_save_CFLAGS"
12789        CXXFLAGS="$ac_save_CXXFLAGS"
12790        LIBS="$ac_save_LIBS"
12791      fi
12792   fi
12793   if test "x$no_sdl" = x ; then
12794      { $as_echo "$as_me:$LINENO: result: yes" >&5
12795 $as_echo "yes" >&6; }
12796      :
12797   else
12798      { $as_echo "$as_me:$LINENO: result: no" >&5
12799 $as_echo "no" >&6; }
12800      if test "$SDL_CONFIG" = "no" ; then
12801        echo "*** The sdl-config script installed by SDL could not be found"
12802        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12803        echo "*** your path, or set the SDL_CONFIG environment variable to the"
12804        echo "*** full path to sdl-config."
12805      else
12806        if test -f conf.sdltest ; then
12807         :
12808        else
12809           echo "*** Could not run SDL test program, checking why..."
12810           CFLAGS="$CFLAGS $SDL_CFLAGS"
12811           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12812           LIBS="$LIBS $SDL_LIBS"
12813           cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h.  */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h.  */
12819
12820 #include <stdio.h>
12821 #include "SDL.h"
12822
12823 int main(int argc, char *argv[])
12824 { return 0; }
12825 #undef  main
12826 #define main K_and_R_C_main
12827
12828 int
12829 main ()
12830 {
12831  return 0;
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844   (eval "$ac_link") 2>conftest.er1
12845   ac_status=$?
12846   grep -v '^ *+' conftest.er1 >conftest.err
12847   rm -f conftest.er1
12848   cat conftest.err >&5
12849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } && {
12851          test -z "$ac_c_werror_flag" ||
12852          test ! -s conftest.err
12853        } && test -s conftest$ac_exeext && {
12854          test "$cross_compiling" = yes ||
12855          $as_test_x conftest$ac_exeext
12856        }; then
12857    echo "*** The test program compiled, but did not run. This usually means"
12858           echo "*** that the run-time linker is not finding SDL or finding the wrong"
12859           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12860           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12861           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12862           echo "*** is required on your system"
12863           echo "***"
12864           echo "*** If you have an old version installed, it is best to remove it, although"
12865           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12866 else
12867   $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870          echo "*** The test program failed to compile or link. See the file config.log for the"
12871           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12872           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12873           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12874 fi
12875
12876 rm -rf conftest.dSYM
12877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12878       conftest$ac_exeext conftest.$ac_ext
12879           CFLAGS="$ac_save_CFLAGS"
12880           CXXFLAGS="$ac_save_CXXFLAGS"
12881           LIBS="$ac_save_LIBS"
12882        fi
12883      fi
12884      SDL_CFLAGS=""
12885      SDL_LIBS=""
12886      { $as_echo "$as_me:$LINENO: WARNING: *** SDL $SDL_REQUIRED_VERSION or better is required." >&5
12887 $as_echo "$as_me: WARNING: *** SDL $SDL_REQUIRED_VERSION or better is required." >&2;}
12888   fi
12889
12890
12891   rm -f conf.sdltest
12892
12893 fi
12894  if test "x$SDL_CFLAGS" != "x" ; then
12895   HAVE_SDL_TRUE=
12896   HAVE_SDL_FALSE='#'
12897 else
12898   HAVE_SDL_TRUE='#'
12899   HAVE_SDL_FALSE=
12900 fi
12901
12902
12903
12904 # Check whether --enable-gprof was given.
12905 if test "${enable_gprof+set}" = set; then
12906   enableval=$enable_gprof;
12907 else
12908   enable_gprof=no
12909 fi
12910
12911
12912 # Check whether --enable-gcov was given.
12913 if test "${enable_gcov+set}" = set; then
12914   enableval=$enable_gcov;
12915 else
12916   enable_gcov=no
12917 fi
12918
12919
12920 # Check whether --enable-mudflap was given.
12921 if test "${enable_mudflap+set}" = set; then
12922   enableval=$enable_mudflap;
12923 else
12924   enable_mudflap=no
12925 fi
12926
12927
12928 CFLAGS="-Wall $CFLAGS"
12929
12930 if test $enable_gprof = yes; then
12931         CFLAGS="$CFLAGS -g -pg"
12932 fi
12933
12934 if test $enable_gcov = yes; then
12935         CFLAGS="$CFLAGS --coverage"
12936 fi
12937
12938 if test $enable_mudflap = yes; then
12939         CFLAGS="$CFLAGS -fmudflap"
12940         LDFLAGS="$LDFLAGS -lmudflap"
12941 fi
12942
12943 cat >confcache <<\_ACEOF
12944 # This file is a shell script that caches the results of configure
12945 # tests run on this system so they can be shared between configure
12946 # scripts and configure runs, see configure's option --config-cache.
12947 # It is not useful on other systems.  If it contains results you don't
12948 # want to keep, you may remove or edit it.
12949 #
12950 # config.status only pays attention to the cache file if you give it
12951 # the --recheck option to rerun configure.
12952 #
12953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12955 # following values.
12956
12957 _ACEOF
12958
12959 # The following way of writing the cache mishandles newlines in values,
12960 # but we know of no workaround that is simple, portable, and efficient.
12961 # So, we kill variables containing newlines.
12962 # Ultrix sh set writes to stderr and can't be redirected directly,
12963 # and sets the high bit in the cache file unless we assign to the vars.
12964 (
12965   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12966     eval ac_val=\$$ac_var
12967     case $ac_val in #(
12968     *${as_nl}*)
12969       case $ac_var in #(
12970       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12972       esac
12973       case $ac_var in #(
12974       _ | IFS | as_nl) ;; #(
12975       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12976       *) $as_unset $ac_var ;;
12977       esac ;;
12978     esac
12979   done
12980
12981   (set) 2>&1 |
12982     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12983     *${as_nl}ac_space=\ *)
12984       # `set' does not quote correctly, so add quotes (double-quote
12985       # substitution turns \\\\ into \\, and sed turns \\ into \).
12986       sed -n \
12987         "s/'/'\\\\''/g;
12988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12989       ;; #(
12990     *)
12991       # `set' quotes correctly as required by POSIX, so do not add quotes.
12992       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12993       ;;
12994     esac |
12995     sort
12996 ) |
12997   sed '
12998      /^ac_cv_env_/b end
12999      t clear
13000      :clear
13001      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13002      t end
13003      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13004      :end' >>confcache
13005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13006   if test -w "$cache_file"; then
13007     test "x$cache_file" != "x/dev/null" &&
13008       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13009 $as_echo "$as_me: updating cache $cache_file" >&6;}
13010     cat confcache >$cache_file
13011   else
13012     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13014   fi
13015 fi
13016 rm -f confcache
13017
13018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13019 # Let make expand exec_prefix.
13020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13021
13022 DEFS=-DHAVE_CONFIG_H
13023
13024 ac_libobjs=
13025 ac_ltlibobjs=
13026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13027   # 1. Remove the extension, and $U if already installed.
13028   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13029   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13030   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13031   #    will be set to the directory where LIBOBJS objects are built.
13032   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13033   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13034 done
13035 LIBOBJS=$ac_libobjs
13036
13037 LTLIBOBJS=$ac_ltlibobjs
13038
13039
13040 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13041   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13042 Usually this means the macro was only invoked conditionally." >&5
13043 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13044 Usually this means the macro was only invoked conditionally." >&2;}
13045    { (exit 1); exit 1; }; }
13046 fi
13047 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13048   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13049 Usually this means the macro was only invoked conditionally." >&5
13050 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13051 Usually this means the macro was only invoked conditionally." >&2;}
13052    { (exit 1); exit 1; }; }
13053 fi
13054 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13055   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13056 Usually this means the macro was only invoked conditionally." >&5
13057 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13058 Usually this means the macro was only invoked conditionally." >&2;}
13059    { (exit 1); exit 1; }; }
13060 fi
13061 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
13062   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TOOLS\" was never defined.
13063 Usually this means the macro was only invoked conditionally." >&5
13064 $as_echo "$as_me: error: conditional \"BUILD_TOOLS\" was never defined.
13065 Usually this means the macro was only invoked conditionally." >&2;}
13066    { (exit 1); exit 1; }; }
13067 fi
13068 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
13069   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TESTS\" was never defined.
13070 Usually this means the macro was only invoked conditionally." >&5
13071 $as_echo "$as_me: error: conditional \"BUILD_TESTS\" was never defined.
13072 Usually this means the macro was only invoked conditionally." >&2;}
13073    { (exit 1); exit 1; }; }
13074 fi
13075 if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
13076   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SDL\" was never defined.
13077 Usually this means the macro was only invoked conditionally." >&5
13078 $as_echo "$as_me: error: conditional \"HAVE_SDL\" was never defined.
13079 Usually this means the macro was only invoked conditionally." >&2;}
13080    { (exit 1); exit 1; }; }
13081 fi
13082
13083 : ${CONFIG_STATUS=./config.status}
13084 ac_write_fail=0
13085 ac_clean_files_save=$ac_clean_files
13086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13087 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13089 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13090 #! $SHELL
13091 # Generated by $as_me.
13092 # Run this file to recreate the current configuration.
13093 # Compiler output produced by configure, useful for debugging
13094 # configure, is in config.log if it exists.
13095
13096 debug=false
13097 ac_cs_recheck=false
13098 ac_cs_silent=false
13099 SHELL=\${CONFIG_SHELL-$SHELL}
13100 _ACEOF
13101
13102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13103 ## --------------------- ##
13104 ## M4sh Initialization.  ##
13105 ## --------------------- ##
13106
13107 # Be more Bourne compatible
13108 DUALCASE=1; export DUALCASE # for MKS sh
13109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13110   emulate sh
13111   NULLCMD=:
13112   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13113   # is contrary to our usage.  Disable this feature.
13114   alias -g '${1+"$@"}'='"$@"'
13115   setopt NO_GLOB_SUBST
13116 else
13117   case `(set -o) 2>/dev/null` in
13118   *posix*) set -o posix ;;
13119 esac
13120
13121 fi
13122
13123
13124
13125
13126 # PATH needs CR
13127 # Avoid depending upon Character Ranges.
13128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13131 as_cr_digits='0123456789'
13132 as_cr_alnum=$as_cr_Letters$as_cr_digits
13133
13134 as_nl='
13135 '
13136 export as_nl
13137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13141 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13142   as_echo='printf %s\n'
13143   as_echo_n='printf %s'
13144 else
13145   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13146     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13147     as_echo_n='/usr/ucb/echo -n'
13148   else
13149     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13150     as_echo_n_body='eval
13151       arg=$1;
13152       case $arg in
13153       *"$as_nl"*)
13154         expr "X$arg" : "X\\(.*\\)$as_nl";
13155         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13156       esac;
13157       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13158     '
13159     export as_echo_n_body
13160     as_echo_n='sh -c $as_echo_n_body as_echo'
13161   fi
13162   export as_echo_body
13163   as_echo='sh -c $as_echo_body as_echo'
13164 fi
13165
13166 # The user is always right.
13167 if test "${PATH_SEPARATOR+set}" != set; then
13168   PATH_SEPARATOR=:
13169   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13170     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13171       PATH_SEPARATOR=';'
13172   }
13173 fi
13174
13175 # Support unset when possible.
13176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13177   as_unset=unset
13178 else
13179   as_unset=false
13180 fi
13181
13182
13183 # IFS
13184 # We need space, tab and new line, in precisely that order.  Quoting is
13185 # there to prevent editors from complaining about space-tab.
13186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13187 # splitting by setting IFS to empty value.)
13188 IFS=" ""        $as_nl"
13189
13190 # Find who we are.  Look in the path if we contain no directory separator.
13191 case $0 in
13192   *[\\/]* ) as_myself=$0 ;;
13193   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13195 do
13196   IFS=$as_save_IFS
13197   test -z "$as_dir" && as_dir=.
13198   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13199 done
13200 IFS=$as_save_IFS
13201
13202      ;;
13203 esac
13204 # We did not find ourselves, most probably we were run as `sh COMMAND'
13205 # in which case we are not to be found in the path.
13206 if test "x$as_myself" = x; then
13207   as_myself=$0
13208 fi
13209 if test ! -f "$as_myself"; then
13210   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13211   { (exit 1); exit 1; }
13212 fi
13213
13214 # Work around bugs in pre-3.0 UWIN ksh.
13215 for as_var in ENV MAIL MAILPATH
13216 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13217 done
13218 PS1='$ '
13219 PS2='> '
13220 PS4='+ '
13221
13222 # NLS nuisances.
13223 LC_ALL=C
13224 export LC_ALL
13225 LANGUAGE=C
13226 export LANGUAGE
13227
13228 # Required to use basename.
13229 if expr a : '\(a\)' >/dev/null 2>&1 &&
13230    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13231   as_expr=expr
13232 else
13233   as_expr=false
13234 fi
13235
13236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13237   as_basename=basename
13238 else
13239   as_basename=false
13240 fi
13241
13242
13243 # Name of the executable.
13244 as_me=`$as_basename -- "$0" ||
13245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13246          X"$0" : 'X\(//\)$' \| \
13247          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13248 $as_echo X/"$0" |
13249     sed '/^.*\/\([^/][^/]*\)\/*$/{
13250             s//\1/
13251             q
13252           }
13253           /^X\/\(\/\/\)$/{
13254             s//\1/
13255             q
13256           }
13257           /^X\/\(\/\).*/{
13258             s//\1/
13259             q
13260           }
13261           s/.*/./; q'`
13262
13263 # CDPATH.
13264 $as_unset CDPATH
13265
13266
13267
13268   as_lineno_1=$LINENO
13269   as_lineno_2=$LINENO
13270   test "x$as_lineno_1" != "x$as_lineno_2" &&
13271   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13272
13273   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13274   # uniformly replaced by the line number.  The first 'sed' inserts a
13275   # line-number line after each line using $LINENO; the second 'sed'
13276   # does the real work.  The second script uses 'N' to pair each
13277   # line-number line with the line containing $LINENO, and appends
13278   # trailing '-' during substitution so that $LINENO is not a special
13279   # case at line end.
13280   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13281   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13282   # E. McMahon (1931-1989) for sed's syntax.  :-)
13283   sed -n '
13284     p
13285     /[$]LINENO/=
13286   ' <$as_myself |
13287     sed '
13288       s/[$]LINENO.*/&-/
13289       t lineno
13290       b
13291       :lineno
13292       N
13293       :loop
13294       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13295       t loop
13296       s/-\n.*//
13297     ' >$as_me.lineno &&
13298   chmod +x "$as_me.lineno" ||
13299     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13300    { (exit 1); exit 1; }; }
13301
13302   # Don't try to exec as it changes $[0], causing all sort of problems
13303   # (the dirname of $[0] is not the place where we might find the
13304   # original and so on.  Autoconf is especially sensitive to this).
13305   . "./$as_me.lineno"
13306   # Exit status is that of the last command.
13307   exit
13308 }
13309
13310
13311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13312   as_dirname=dirname
13313 else
13314   as_dirname=false
13315 fi
13316
13317 ECHO_C= ECHO_N= ECHO_T=
13318 case `echo -n x` in
13319 -n*)
13320   case `echo 'x\c'` in
13321   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13322   *)   ECHO_C='\c';;
13323   esac;;
13324 *)
13325   ECHO_N='-n';;
13326 esac
13327 if expr a : '\(a\)' >/dev/null 2>&1 &&
13328    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13329   as_expr=expr
13330 else
13331   as_expr=false
13332 fi
13333
13334 rm -f conf$$ conf$$.exe conf$$.file
13335 if test -d conf$$.dir; then
13336   rm -f conf$$.dir/conf$$.file
13337 else
13338   rm -f conf$$.dir
13339   mkdir conf$$.dir 2>/dev/null
13340 fi
13341 if (echo >conf$$.file) 2>/dev/null; then
13342   if ln -s conf$$.file conf$$ 2>/dev/null; then
13343     as_ln_s='ln -s'
13344     # ... but there are two gotchas:
13345     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13346     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13347     # In both cases, we have to default to `cp -p'.
13348     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13349       as_ln_s='cp -p'
13350   elif ln conf$$.file conf$$ 2>/dev/null; then
13351     as_ln_s=ln
13352   else
13353     as_ln_s='cp -p'
13354   fi
13355 else
13356   as_ln_s='cp -p'
13357 fi
13358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13359 rmdir conf$$.dir 2>/dev/null
13360
13361 if mkdir -p . 2>/dev/null; then
13362   as_mkdir_p=:
13363 else
13364   test -d ./-p && rmdir ./-p
13365   as_mkdir_p=false
13366 fi
13367
13368 if test -x / >/dev/null 2>&1; then
13369   as_test_x='test -x'
13370 else
13371   if ls -dL / >/dev/null 2>&1; then
13372     as_ls_L_option=L
13373   else
13374     as_ls_L_option=
13375   fi
13376   as_test_x='
13377     eval sh -c '\''
13378       if test -d "$1"; then
13379         test -d "$1/.";
13380       else
13381         case $1 in
13382         -*)set "./$1";;
13383         esac;
13384         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13385         ???[sx]*):;;*)false;;esac;fi
13386     '\'' sh
13387   '
13388 fi
13389 as_executable_p=$as_test_x
13390
13391 # Sed expression to map a string onto a valid CPP name.
13392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13393
13394 # Sed expression to map a string onto a valid variable name.
13395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13396
13397
13398 exec 6>&1
13399
13400 # Save the log message, to keep $[0] and so on meaningful, and to
13401 # report actual input values of CONFIG_FILES etc. instead of their
13402 # values after options handling.
13403 ac_log="
13404 This file was extended by $as_me, which was
13405 generated by GNU Autoconf 2.63.  Invocation command line was
13406
13407   CONFIG_FILES    = $CONFIG_FILES
13408   CONFIG_HEADERS  = $CONFIG_HEADERS
13409   CONFIG_LINKS    = $CONFIG_LINKS
13410   CONFIG_COMMANDS = $CONFIG_COMMANDS
13411   $ $0 $@
13412
13413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13414 "
13415
13416 _ACEOF
13417
13418 case $ac_config_files in *"
13419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13420 esac
13421
13422 case $ac_config_headers in *"
13423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13424 esac
13425
13426
13427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 # Files that config.status was made for.
13429 config_files="$ac_config_files"
13430 config_headers="$ac_config_headers"
13431 config_commands="$ac_config_commands"
13432
13433 _ACEOF
13434
13435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13436 ac_cs_usage="\
13437 \`$as_me' instantiates files from templates according to the
13438 current configuration.
13439
13440 Usage: $0 [OPTION]... [FILE]...
13441
13442   -h, --help       print this help, then exit
13443   -V, --version    print version number and configuration settings, then exit
13444   -q, --quiet, --silent
13445                    do not print progress messages
13446   -d, --debug      don't remove temporary files
13447       --recheck    update $as_me by reconfiguring in the same conditions
13448       --file=FILE[:TEMPLATE]
13449                    instantiate the configuration file FILE
13450       --header=FILE[:TEMPLATE]
13451                    instantiate the configuration header FILE
13452
13453 Configuration files:
13454 $config_files
13455
13456 Configuration headers:
13457 $config_headers
13458
13459 Configuration commands:
13460 $config_commands
13461
13462 Report bugs to <bug-autoconf@gnu.org>."
13463
13464 _ACEOF
13465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466 ac_cs_version="\\
13467 config.status
13468 configured by $0, generated by GNU Autoconf 2.63,
13469   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13470
13471 Copyright (C) 2008 Free Software Foundation, Inc.
13472 This config.status script is free software; the Free Software Foundation
13473 gives unlimited permission to copy, distribute and modify it."
13474
13475 ac_pwd='$ac_pwd'
13476 srcdir='$srcdir'
13477 INSTALL='$INSTALL'
13478 MKDIR_P='$MKDIR_P'
13479 AWK='$AWK'
13480 test -n "\$AWK" || AWK=awk
13481 _ACEOF
13482
13483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13484 # The default lists apply if the user does not specify any file.
13485 ac_need_defaults=:
13486 while test $# != 0
13487 do
13488   case $1 in
13489   --*=*)
13490     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13491     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13492     ac_shift=:
13493     ;;
13494   *)
13495     ac_option=$1
13496     ac_optarg=$2
13497     ac_shift=shift
13498     ;;
13499   esac
13500
13501   case $ac_option in
13502   # Handling of the options.
13503   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13504     ac_cs_recheck=: ;;
13505   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13506     $as_echo "$ac_cs_version"; exit ;;
13507   --debug | --debu | --deb | --de | --d | -d )
13508     debug=: ;;
13509   --file | --fil | --fi | --f )
13510     $ac_shift
13511     case $ac_optarg in
13512     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13513     esac
13514     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13515     ac_need_defaults=false;;
13516   --header | --heade | --head | --hea )
13517     $ac_shift
13518     case $ac_optarg in
13519     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13520     esac
13521     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13522     ac_need_defaults=false;;
13523   --he | --h)
13524     # Conflict between --help and --header
13525     { $as_echo "$as_me: error: ambiguous option: $1
13526 Try \`$0 --help' for more information." >&2
13527    { (exit 1); exit 1; }; };;
13528   --help | --hel | -h )
13529     $as_echo "$ac_cs_usage"; exit ;;
13530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13531   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13532     ac_cs_silent=: ;;
13533
13534   # This is an error.
13535   -*) { $as_echo "$as_me: error: unrecognized option: $1
13536 Try \`$0 --help' for more information." >&2
13537    { (exit 1); exit 1; }; } ;;
13538
13539   *) ac_config_targets="$ac_config_targets $1"
13540      ac_need_defaults=false ;;
13541
13542   esac
13543   shift
13544 done
13545
13546 ac_configure_extra_args=
13547
13548 if $ac_cs_silent; then
13549   exec 6>/dev/null
13550   ac_configure_extra_args="$ac_configure_extra_args --silent"
13551 fi
13552
13553 _ACEOF
13554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13555 if \$ac_cs_recheck; then
13556   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13557   shift
13558   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13559   CONFIG_SHELL='$SHELL'
13560   export CONFIG_SHELL
13561   exec "\$@"
13562 fi
13563
13564 _ACEOF
13565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13566 exec 5>>config.log
13567 {
13568   echo
13569   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13570 ## Running $as_me. ##
13571 _ASBOX
13572   $as_echo "$ac_log"
13573 } >&5
13574
13575 _ACEOF
13576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13577 #
13578 # INIT-COMMANDS
13579 #
13580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13581
13582
13583 # The HP-UX ksh and POSIX shell print the target directory to stdout
13584 # if CDPATH is set.
13585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13586
13587 sed_quote_subst='$sed_quote_subst'
13588 double_quote_subst='$double_quote_subst'
13589 delay_variable_subst='$delay_variable_subst'
13590 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13591 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13592 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13593 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13594 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13595 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13596 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13597 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13598 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13599 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13600 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13601 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13602 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13603 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13604 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13605 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13606 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13607 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13608 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13609 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13610 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13611 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13612 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13613 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13614 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13615 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13616 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13617 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13618 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13619 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13620 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13621 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13622 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13623 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13624 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13625 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13626 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13627 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13628 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13629 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13630 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13631 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13632 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13633 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13634 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"`'
13635 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"`'
13636 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13637 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13638 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13639 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13640 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13641 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13642 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13643 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13644 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13645 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13646 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13647 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13648 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13649 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13650 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13651 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13652 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13653 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13654 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13655 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13656 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13657 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13658 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13659 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13660 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13661 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13662 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13663 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13664 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13665 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13666 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13667 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13668 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13669 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13670 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13671 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13672 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13673 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13674 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13675 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13676 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13677 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13678 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13679 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13680 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13681 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13682 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13683 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13684 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13685 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13686 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13687 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13688 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13689 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13690 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13691 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13692 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13693 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13694 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13695 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13696 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13697 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13698 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13699 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13700 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13701 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13702 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13703 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13704 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13705 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13706 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13707 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13708
13709 LTCC='$LTCC'
13710 LTCFLAGS='$LTCFLAGS'
13711 compiler='$compiler_DEFAULT'
13712
13713 # Quote evaled strings.
13714 for var in SED \
13715 GREP \
13716 EGREP \
13717 FGREP \
13718 LD \
13719 NM \
13720 LN_S \
13721 lt_SP2NL \
13722 lt_NL2SP \
13723 reload_flag \
13724 OBJDUMP \
13725 deplibs_check_method \
13726 file_magic_cmd \
13727 AR \
13728 AR_FLAGS \
13729 STRIP \
13730 RANLIB \
13731 CC \
13732 CFLAGS \
13733 compiler \
13734 lt_cv_sys_global_symbol_pipe \
13735 lt_cv_sys_global_symbol_to_cdecl \
13736 lt_cv_sys_global_symbol_to_c_name_address \
13737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13738 SHELL \
13739 ECHO \
13740 lt_prog_compiler_no_builtin_flag \
13741 lt_prog_compiler_wl \
13742 lt_prog_compiler_pic \
13743 lt_prog_compiler_static \
13744 lt_cv_prog_compiler_c_o \
13745 need_locks \
13746 DSYMUTIL \
13747 NMEDIT \
13748 LIPO \
13749 OTOOL \
13750 OTOOL64 \
13751 shrext_cmds \
13752 export_dynamic_flag_spec \
13753 whole_archive_flag_spec \
13754 compiler_needs_object \
13755 with_gnu_ld \
13756 allow_undefined_flag \
13757 no_undefined_flag \
13758 hardcode_libdir_flag_spec \
13759 hardcode_libdir_flag_spec_ld \
13760 hardcode_libdir_separator \
13761 fix_srcfile_path \
13762 exclude_expsyms \
13763 include_expsyms \
13764 file_list_spec \
13765 variables_saved_for_relink \
13766 libname_spec \
13767 library_names_spec \
13768 soname_spec \
13769 finish_eval \
13770 old_striplib \
13771 striplib; do
13772     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13773     *[\\\\\\\`\\"\\\$]*)
13774       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13775       ;;
13776     *)
13777       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13778       ;;
13779     esac
13780 done
13781
13782 # Double-quote double-evaled strings.
13783 for var in reload_cmds \
13784 old_postinstall_cmds \
13785 old_postuninstall_cmds \
13786 old_archive_cmds \
13787 extract_expsyms_cmds \
13788 old_archive_from_new_cmds \
13789 old_archive_from_expsyms_cmds \
13790 archive_cmds \
13791 archive_expsym_cmds \
13792 module_cmds \
13793 module_expsym_cmds \
13794 export_symbols_cmds \
13795 prelink_cmds \
13796 postinstall_cmds \
13797 postuninstall_cmds \
13798 finish_cmds \
13799 sys_lib_search_path_spec \
13800 sys_lib_dlsearch_path_spec; do
13801     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13802     *[\\\\\\\`\\"\\\$]*)
13803       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13804       ;;
13805     *)
13806       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13807       ;;
13808     esac
13809 done
13810
13811 # Fix-up fallback echo if it was mangled by the above quoting rules.
13812 case \$lt_ECHO in
13813 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13814   ;;
13815 esac
13816
13817 ac_aux_dir='$ac_aux_dir'
13818 xsi_shell='$xsi_shell'
13819 lt_shell_append='$lt_shell_append'
13820
13821 # See if we are running on zsh, and set the options which allow our
13822 # commands through without removal of \ escapes INIT.
13823 if test -n "\${ZSH_VERSION+set}" ; then
13824    setopt NO_GLOB_SUBST
13825 fi
13826
13827
13828     PACKAGE='$PACKAGE'
13829     VERSION='$VERSION'
13830     TIMESTAMP='$TIMESTAMP'
13831     RM='$RM'
13832     ofile='$ofile'
13833
13834
13835
13836
13837 _ACEOF
13838
13839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13840
13841 # Handling of arguments.
13842 for ac_config_target in $ac_config_targets
13843 do
13844   case $ac_config_target in
13845     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13846     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13847     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13848     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13849     "libqrencode.pc") CONFIG_FILES="$CONFIG_FILES libqrencode.pc" ;;
13850     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13851     "qrencode.spec") CONFIG_FILES="$CONFIG_FILES qrencode.spec" ;;
13852     "qrencode.1") CONFIG_FILES="$CONFIG_FILES qrencode.1" ;;
13853
13854   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13855 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13856    { (exit 1); exit 1; }; };;
13857   esac
13858 done
13859
13860
13861 # If the user did not use the arguments to specify the items to instantiate,
13862 # then the envvar interface is used.  Set only those that are not.
13863 # We use the long form for the default assignment because of an extremely
13864 # bizarre bug on SunOS 4.1.3.
13865 if $ac_need_defaults; then
13866   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13867   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13868   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13869 fi
13870
13871 # Have a temporary directory for convenience.  Make it in the build tree
13872 # simply because there is no reason against having it here, and in addition,
13873 # creating and moving files from /tmp can sometimes cause problems.
13874 # Hook for its removal unless debugging.
13875 # Note that there is a small window in which the directory will not be cleaned:
13876 # after its creation but before its name has been assigned to `$tmp'.
13877 $debug ||
13878 {
13879   tmp=
13880   trap 'exit_status=$?
13881   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13882 ' 0
13883   trap '{ (exit 1); exit 1; }' 1 2 13 15
13884 }
13885 # Create a (secure) tmp directory for tmp files.
13886
13887 {
13888   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13889   test -n "$tmp" && test -d "$tmp"
13890 }  ||
13891 {
13892   tmp=./conf$$-$RANDOM
13893   (umask 077 && mkdir "$tmp")
13894 } ||
13895 {
13896    $as_echo "$as_me: cannot create a temporary directory in ." >&2
13897    { (exit 1); exit 1; }
13898 }
13899
13900 # Set up the scripts for CONFIG_FILES section.
13901 # No need to generate them if there are no CONFIG_FILES.
13902 # This happens for instance with `./config.status config.h'.
13903 if test -n "$CONFIG_FILES"; then
13904
13905
13906 ac_cr='\r'
13907 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13908 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13909   ac_cs_awk_cr='\\r'
13910 else
13911   ac_cs_awk_cr=$ac_cr
13912 fi
13913
13914 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13915 _ACEOF
13916
13917
13918 {
13919   echo "cat >conf$$subs.awk <<_ACEOF" &&
13920   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13921   echo "_ACEOF"
13922 } >conf$$subs.sh ||
13923   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13924 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13925    { (exit 1); exit 1; }; }
13926 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13927 ac_delim='%!_!# '
13928 for ac_last_try in false false false false false :; do
13929   . ./conf$$subs.sh ||
13930     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13931 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13932    { (exit 1); exit 1; }; }
13933
13934   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13935   if test $ac_delim_n = $ac_delim_num; then
13936     break
13937   elif $ac_last_try; then
13938     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13939 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13940    { (exit 1); exit 1; }; }
13941   else
13942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13943   fi
13944 done
13945 rm -f conf$$subs.sh
13946
13947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13948 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13949 _ACEOF
13950 sed -n '
13951 h
13952 s/^/S["/; s/!.*/"]=/
13953 p
13954 g
13955 s/^[^!]*!//
13956 :repl
13957 t repl
13958 s/'"$ac_delim"'$//
13959 t delim
13960 :nl
13961 h
13962 s/\(.\{148\}\).*/\1/
13963 t more1
13964 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13965 p
13966 n
13967 b repl
13968 :more1
13969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13970 p
13971 g
13972 s/.\{148\}//
13973 t nl
13974 :delim
13975 h
13976 s/\(.\{148\}\).*/\1/
13977 t more2
13978 s/["\\]/\\&/g; s/^/"/; s/$/"/
13979 p
13980 b
13981 :more2
13982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13983 p
13984 g
13985 s/.\{148\}//
13986 t delim
13987 ' <conf$$subs.awk | sed '
13988 /^[^""]/{
13989   N
13990   s/\n//
13991 }
13992 ' >>$CONFIG_STATUS || ac_write_fail=1
13993 rm -f conf$$subs.awk
13994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995 _ACAWK
13996 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13997   for (key in S) S_is_set[key] = 1
13998   FS = "\a"
13999
14000 }
14001 {
14002   line = $ 0
14003   nfields = split(line, field, "@")
14004   substed = 0
14005   len = length(field[1])
14006   for (i = 2; i < nfields; i++) {
14007     key = field[i]
14008     keylen = length(key)
14009     if (S_is_set[key]) {
14010       value = S[key]
14011       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14012       len += length(value) + length(field[++i])
14013       substed = 1
14014     } else
14015       len += 1 + keylen
14016   }
14017
14018   print line
14019 }
14020
14021 _ACAWK
14022 _ACEOF
14023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14025   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14026 else
14027   cat
14028 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14029   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14030 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14031    { (exit 1); exit 1; }; }
14032 _ACEOF
14033
14034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14036 # trailing colons and then remove the whole line if VPATH becomes empty
14037 # (actually we leave an empty line to preserve line numbers).
14038 if test "x$srcdir" = x.; then
14039   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14040 s/:*\$(srcdir):*/:/
14041 s/:*\${srcdir}:*/:/
14042 s/:*@srcdir@:*/:/
14043 s/^\([^=]*=[     ]*\):*/\1/
14044 s/:*$//
14045 s/^[^=]*=[       ]*$//
14046 }'
14047 fi
14048
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 fi # test -n "$CONFIG_FILES"
14051
14052 # Set up the scripts for CONFIG_HEADERS section.
14053 # No need to generate them if there are no CONFIG_HEADERS.
14054 # This happens for instance with `./config.status Makefile'.
14055 if test -n "$CONFIG_HEADERS"; then
14056 cat >"$tmp/defines.awk" <<\_ACAWK ||
14057 BEGIN {
14058 _ACEOF
14059
14060 # Transform confdefs.h into an awk script `defines.awk', embedded as
14061 # here-document in config.status, that substitutes the proper values into
14062 # config.h.in to produce config.h.
14063
14064 # Create a delimiter string that does not exist in confdefs.h, to ease
14065 # handling of long lines.
14066 ac_delim='%!_!# '
14067 for ac_last_try in false false :; do
14068   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14069   if test -z "$ac_t"; then
14070     break
14071   elif $ac_last_try; then
14072     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14073 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14074    { (exit 1); exit 1; }; }
14075   else
14076     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14077   fi
14078 done
14079
14080 # For the awk script, D is an array of macro values keyed by name,
14081 # likewise P contains macro parameters if any.  Preserve backslash
14082 # newline sequences.
14083
14084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14085 sed -n '
14086 s/.\{148\}/&'"$ac_delim"'/g
14087 t rset
14088 :rset
14089 s/^[     ]*#[    ]*define[       ][      ]*/ /
14090 t def
14091 d
14092 :def
14093 s/\\$//
14094 t bsnl
14095 s/["\\]/\\&/g
14096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14097 D["\1"]=" \3"/p
14098 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14099 d
14100 :bsnl
14101 s/["\\]/\\&/g
14102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14103 D["\1"]=" \3\\\\\\n"\\/p
14104 t cont
14105 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14106 t cont
14107 d
14108 :cont
14109 n
14110 s/.\{148\}/&'"$ac_delim"'/g
14111 t clear
14112 :clear
14113 s/\\$//
14114 t bsnlc
14115 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14116 d
14117 :bsnlc
14118 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14119 b cont
14120 ' <confdefs.h | sed '
14121 s/'"$ac_delim"'/"\\\
14122 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14123
14124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14125   for (key in D) D_is_set[key] = 1
14126   FS = "\a"
14127 }
14128 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14129   line = \$ 0
14130   split(line, arg, " ")
14131   if (arg[1] == "#") {
14132     defundef = arg[2]
14133     mac1 = arg[3]
14134   } else {
14135     defundef = substr(arg[1], 2)
14136     mac1 = arg[2]
14137   }
14138   split(mac1, mac2, "(") #)
14139   macro = mac2[1]
14140   prefix = substr(line, 1, index(line, defundef) - 1)
14141   if (D_is_set[macro]) {
14142     # Preserve the white space surrounding the "#".
14143     print prefix "define", macro P[macro] D[macro]
14144     next
14145   } else {
14146     # Replace #undef with comments.  This is necessary, for example,
14147     # in the case of _POSIX_SOURCE, which is predefined and required
14148     # on some systems where configure will not decide to define it.
14149     if (defundef == "undef") {
14150       print "/*", prefix defundef, macro, "*/"
14151       next
14152     }
14153   }
14154 }
14155 { print }
14156 _ACAWK
14157 _ACEOF
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14160 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14161    { (exit 1); exit 1; }; }
14162 fi # test -n "$CONFIG_HEADERS"
14163
14164
14165 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14166 shift
14167 for ac_tag
14168 do
14169   case $ac_tag in
14170   :[FHLC]) ac_mode=$ac_tag; continue;;
14171   esac
14172   case $ac_mode$ac_tag in
14173   :[FHL]*:*);;
14174   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14175 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14176    { (exit 1); exit 1; }; };;
14177   :[FH]-) ac_tag=-:-;;
14178   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14179   esac
14180   ac_save_IFS=$IFS
14181   IFS=:
14182   set x $ac_tag
14183   IFS=$ac_save_IFS
14184   shift
14185   ac_file=$1
14186   shift
14187
14188   case $ac_mode in
14189   :L) ac_source=$1;;
14190   :[FH])
14191     ac_file_inputs=
14192     for ac_f
14193     do
14194       case $ac_f in
14195       -) ac_f="$tmp/stdin";;
14196       *) # Look for the file first in the build tree, then in the source tree
14197          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14198          # because $ac_f cannot contain `:'.
14199          test -f "$ac_f" ||
14200            case $ac_f in
14201            [\\/$]*) false;;
14202            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14203            esac ||
14204            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14205 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14206    { (exit 1); exit 1; }; };;
14207       esac
14208       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14209       ac_file_inputs="$ac_file_inputs '$ac_f'"
14210     done
14211
14212     # Let's still pretend it is `configure' which instantiates (i.e., don't
14213     # use $as_me), people would be surprised to read:
14214     #    /* config.h.  Generated by config.status.  */
14215     configure_input='Generated from '`
14216           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14217         `' by configure.'
14218     if test x"$ac_file" != x-; then
14219       configure_input="$ac_file.  $configure_input"
14220       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14221 $as_echo "$as_me: creating $ac_file" >&6;}
14222     fi
14223     # Neutralize special characters interpreted by sed in replacement strings.
14224     case $configure_input in #(
14225     *\&* | *\|* | *\\* )
14226        ac_sed_conf_input=`$as_echo "$configure_input" |
14227        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14228     *) ac_sed_conf_input=$configure_input;;
14229     esac
14230
14231     case $ac_tag in
14232     *:-:* | *:-) cat >"$tmp/stdin" \
14233       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14234 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14235    { (exit 1); exit 1; }; } ;;
14236     esac
14237     ;;
14238   esac
14239
14240   ac_dir=`$as_dirname -- "$ac_file" ||
14241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14242          X"$ac_file" : 'X\(//\)[^/]' \| \
14243          X"$ac_file" : 'X\(//\)$' \| \
14244          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14245 $as_echo X"$ac_file" |
14246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14247             s//\1/
14248             q
14249           }
14250           /^X\(\/\/\)[^/].*/{
14251             s//\1/
14252             q
14253           }
14254           /^X\(\/\/\)$/{
14255             s//\1/
14256             q
14257           }
14258           /^X\(\/\).*/{
14259             s//\1/
14260             q
14261           }
14262           s/.*/./; q'`
14263   { as_dir="$ac_dir"
14264   case $as_dir in #(
14265   -*) as_dir=./$as_dir;;
14266   esac
14267   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14268     as_dirs=
14269     while :; do
14270       case $as_dir in #(
14271       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14272       *) as_qdir=$as_dir;;
14273       esac
14274       as_dirs="'$as_qdir' $as_dirs"
14275       as_dir=`$as_dirname -- "$as_dir" ||
14276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14277          X"$as_dir" : 'X\(//\)[^/]' \| \
14278          X"$as_dir" : 'X\(//\)$' \| \
14279          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14280 $as_echo X"$as_dir" |
14281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14282             s//\1/
14283             q
14284           }
14285           /^X\(\/\/\)[^/].*/{
14286             s//\1/
14287             q
14288           }
14289           /^X\(\/\/\)$/{
14290             s//\1/
14291             q
14292           }
14293           /^X\(\/\).*/{
14294             s//\1/
14295             q
14296           }
14297           s/.*/./; q'`
14298       test -d "$as_dir" && break
14299     done
14300     test -z "$as_dirs" || eval "mkdir $as_dirs"
14301   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14302 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14303    { (exit 1); exit 1; }; }; }
14304   ac_builddir=.
14305
14306 case "$ac_dir" in
14307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14308 *)
14309   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14310   # A ".." for each directory in $ac_dir_suffix.
14311   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14312   case $ac_top_builddir_sub in
14313   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14314   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14315   esac ;;
14316 esac
14317 ac_abs_top_builddir=$ac_pwd
14318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14319 # for backward compatibility:
14320 ac_top_builddir=$ac_top_build_prefix
14321
14322 case $srcdir in
14323   .)  # We are building in place.
14324     ac_srcdir=.
14325     ac_top_srcdir=$ac_top_builddir_sub
14326     ac_abs_top_srcdir=$ac_pwd ;;
14327   [\\/]* | ?:[\\/]* )  # Absolute name.
14328     ac_srcdir=$srcdir$ac_dir_suffix;
14329     ac_top_srcdir=$srcdir
14330     ac_abs_top_srcdir=$srcdir ;;
14331   *) # Relative name.
14332     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14333     ac_top_srcdir=$ac_top_build_prefix$srcdir
14334     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14335 esac
14336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14337
14338
14339   case $ac_mode in
14340   :F)
14341   #
14342   # CONFIG_FILE
14343   #
14344
14345   case $INSTALL in
14346   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14347   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14348   esac
14349   ac_MKDIR_P=$MKDIR_P
14350   case $MKDIR_P in
14351   [\\/$]* | ?:[\\/]* ) ;;
14352   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14353   esac
14354 _ACEOF
14355
14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14357 # If the template does not know about datarootdir, expand it.
14358 # FIXME: This hack should be removed a few years after 2.60.
14359 ac_datarootdir_hack=; ac_datarootdir_seen=
14360
14361 ac_sed_dataroot='
14362 /datarootdir/ {
14363   p
14364   q
14365 }
14366 /@datadir@/p
14367 /@docdir@/p
14368 /@infodir@/p
14369 /@localedir@/p
14370 /@mandir@/p
14371 '
14372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14373 *datarootdir*) ac_datarootdir_seen=yes;;
14374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14375   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14377 _ACEOF
14378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14379   ac_datarootdir_hack='
14380   s&@datadir@&$datadir&g
14381   s&@docdir@&$docdir&g
14382   s&@infodir@&$infodir&g
14383   s&@localedir@&$localedir&g
14384   s&@mandir@&$mandir&g
14385     s&\\\${datarootdir}&$datarootdir&g' ;;
14386 esac
14387 _ACEOF
14388
14389 # Neutralize VPATH when `$srcdir' = `.'.
14390 # Shell code in configure.ac might set extrasub.
14391 # FIXME: do we really want to maintain this feature?
14392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14393 ac_sed_extra="$ac_vpsub
14394 $extrasub
14395 _ACEOF
14396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14397 :t
14398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14399 s|@configure_input@|$ac_sed_conf_input|;t t
14400 s&@top_builddir@&$ac_top_builddir_sub&;t t
14401 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14402 s&@srcdir@&$ac_srcdir&;t t
14403 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14404 s&@top_srcdir@&$ac_top_srcdir&;t t
14405 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14406 s&@builddir@&$ac_builddir&;t t
14407 s&@abs_builddir@&$ac_abs_builddir&;t t
14408 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14409 s&@INSTALL@&$ac_INSTALL&;t t
14410 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14411 $ac_datarootdir_hack
14412 "
14413 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14414   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14415 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14416    { (exit 1); exit 1; }; }
14417
14418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14419   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14420   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14421   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14422 which seems to be undefined.  Please make sure it is defined." >&5
14423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14424 which seems to be undefined.  Please make sure it is defined." >&2;}
14425
14426   rm -f "$tmp/stdin"
14427   case $ac_file in
14428   -) cat "$tmp/out" && rm -f "$tmp/out";;
14429   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14430   esac \
14431   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14432 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14433    { (exit 1); exit 1; }; }
14434  ;;
14435   :H)
14436   #
14437   # CONFIG_HEADER
14438   #
14439   if test x"$ac_file" != x-; then
14440     {
14441       $as_echo "/* $configure_input  */" \
14442       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14443     } >"$tmp/config.h" \
14444       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14445 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14446    { (exit 1); exit 1; }; }
14447     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14448       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14449 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14450     else
14451       rm -f "$ac_file"
14452       mv "$tmp/config.h" "$ac_file" \
14453         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14454 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14455    { (exit 1); exit 1; }; }
14456     fi
14457   else
14458     $as_echo "/* $configure_input  */" \
14459       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14460       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14461 $as_echo "$as_me: error: could not create -" >&2;}
14462    { (exit 1); exit 1; }; }
14463   fi
14464 # Compute "$ac_file"'s index in $config_headers.
14465 _am_arg="$ac_file"
14466 _am_stamp_count=1
14467 for _am_header in $config_headers :; do
14468   case $_am_header in
14469     $_am_arg | $_am_arg:* )
14470       break ;;
14471     * )
14472       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14473   esac
14474 done
14475 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14476 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14477          X"$_am_arg" : 'X\(//\)[^/]' \| \
14478          X"$_am_arg" : 'X\(//\)$' \| \
14479          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14480 $as_echo X"$_am_arg" |
14481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14482             s//\1/
14483             q
14484           }
14485           /^X\(\/\/\)[^/].*/{
14486             s//\1/
14487             q
14488           }
14489           /^X\(\/\/\)$/{
14490             s//\1/
14491             q
14492           }
14493           /^X\(\/\).*/{
14494             s//\1/
14495             q
14496           }
14497           s/.*/./; q'`/stamp-h$_am_stamp_count
14498  ;;
14499
14500   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14501 $as_echo "$as_me: executing $ac_file commands" >&6;}
14502  ;;
14503   esac
14504
14505
14506   case $ac_file$ac_mode in
14507     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14508   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14509   # are listed without --file.  Let's play safe and only enable the eval
14510   # if we detect the quoting.
14511   case $CONFIG_FILES in
14512   *\'*) eval set x "$CONFIG_FILES" ;;
14513   *)   set x $CONFIG_FILES ;;
14514   esac
14515   shift
14516   for mf
14517   do
14518     # Strip MF so we end up with the name of the file.
14519     mf=`echo "$mf" | sed -e 's/:.*$//'`
14520     # Check whether this is an Automake generated Makefile or not.
14521     # We used to match only the files named `Makefile.in', but
14522     # some people rename them; so instead we look at the file content.
14523     # Grep'ing the first line is not enough: some people post-process
14524     # each Makefile.in and add a new line on top of each file to say so.
14525     # Grep'ing the whole file is not good either: AIX grep has a line
14526     # limit of 2048, but all sed's we know have understand at least 4000.
14527     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14528       dirpart=`$as_dirname -- "$mf" ||
14529 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14530          X"$mf" : 'X\(//\)[^/]' \| \
14531          X"$mf" : 'X\(//\)$' \| \
14532          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14533 $as_echo X"$mf" |
14534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14535             s//\1/
14536             q
14537           }
14538           /^X\(\/\/\)[^/].*/{
14539             s//\1/
14540             q
14541           }
14542           /^X\(\/\/\)$/{
14543             s//\1/
14544             q
14545           }
14546           /^X\(\/\).*/{
14547             s//\1/
14548             q
14549           }
14550           s/.*/./; q'`
14551     else
14552       continue
14553     fi
14554     # Extract the definition of DEPDIR, am__include, and am__quote
14555     # from the Makefile without running `make'.
14556     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14557     test -z "$DEPDIR" && continue
14558     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14559     test -z "am__include" && continue
14560     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14561     # When using ansi2knr, U may be empty or an underscore; expand it
14562     U=`sed -n 's/^U = //p' < "$mf"`
14563     # Find all dependency output files, they are included files with
14564     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14565     # simplest approach to changing $(DEPDIR) to its actual value in the
14566     # expansion.
14567     for file in `sed -n "
14568       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14569          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14570       # Make sure the directory exists.
14571       test -f "$dirpart/$file" && continue
14572       fdir=`$as_dirname -- "$file" ||
14573 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14574          X"$file" : 'X\(//\)[^/]' \| \
14575          X"$file" : 'X\(//\)$' \| \
14576          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14577 $as_echo X"$file" |
14578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14579             s//\1/
14580             q
14581           }
14582           /^X\(\/\/\)[^/].*/{
14583             s//\1/
14584             q
14585           }
14586           /^X\(\/\/\)$/{
14587             s//\1/
14588             q
14589           }
14590           /^X\(\/\).*/{
14591             s//\1/
14592             q
14593           }
14594           s/.*/./; q'`
14595       { as_dir=$dirpart/$fdir
14596   case $as_dir in #(
14597   -*) as_dir=./$as_dir;;
14598   esac
14599   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14600     as_dirs=
14601     while :; do
14602       case $as_dir in #(
14603       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14604       *) as_qdir=$as_dir;;
14605       esac
14606       as_dirs="'$as_qdir' $as_dirs"
14607       as_dir=`$as_dirname -- "$as_dir" ||
14608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14609          X"$as_dir" : 'X\(//\)[^/]' \| \
14610          X"$as_dir" : 'X\(//\)$' \| \
14611          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14612 $as_echo X"$as_dir" |
14613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14614             s//\1/
14615             q
14616           }
14617           /^X\(\/\/\)[^/].*/{
14618             s//\1/
14619             q
14620           }
14621           /^X\(\/\/\)$/{
14622             s//\1/
14623             q
14624           }
14625           /^X\(\/\).*/{
14626             s//\1/
14627             q
14628           }
14629           s/.*/./; q'`
14630       test -d "$as_dir" && break
14631     done
14632     test -z "$as_dirs" || eval "mkdir $as_dirs"
14633   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14634 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14635    { (exit 1); exit 1; }; }; }
14636       # echo "creating $dirpart/$file"
14637       echo '# dummy' > "$dirpart/$file"
14638     done
14639   done
14640 }
14641  ;;
14642     "libtool":C)
14643
14644     # See if we are running on zsh, and set the options which allow our
14645     # commands through without removal of \ escapes.
14646     if test -n "${ZSH_VERSION+set}" ; then
14647       setopt NO_GLOB_SUBST
14648     fi
14649
14650     cfgfile="${ofile}T"
14651     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14652     $RM "$cfgfile"
14653
14654     cat <<_LT_EOF >> "$cfgfile"
14655 #! $SHELL
14656
14657 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14658 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14659 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14660 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14661 #
14662 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14663 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14664 #   Written by Gordon Matzigkeit, 1996
14665 #
14666 #   This file is part of GNU Libtool.
14667 #
14668 # GNU Libtool is free software; you can redistribute it and/or
14669 # modify it under the terms of the GNU General Public License as
14670 # published by the Free Software Foundation; either version 2 of
14671 # the License, or (at your option) any later version.
14672 #
14673 # As a special exception to the GNU General Public License,
14674 # if you distribute this file as part of a program or library that
14675 # is built using GNU Libtool, you may include this file under the
14676 # same distribution terms that you use for the rest of that program.
14677 #
14678 # GNU Libtool is distributed in the hope that it will be useful,
14679 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14680 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14681 # GNU General Public License for more details.
14682 #
14683 # You should have received a copy of the GNU General Public License
14684 # along with GNU Libtool; see the file COPYING.  If not, a copy
14685 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14686 # obtained by writing to the Free Software Foundation, Inc.,
14687 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14688
14689
14690 # The names of the tagged configurations supported by this script.
14691 available_tags=""
14692
14693 # ### BEGIN LIBTOOL CONFIG
14694
14695 # Whether or not to build static libraries.
14696 build_old_libs=$enable_static
14697
14698 # Which release of libtool.m4 was used?
14699 macro_version=$macro_version
14700 macro_revision=$macro_revision
14701
14702 # Whether or not to build shared libraries.
14703 build_libtool_libs=$enable_shared
14704
14705 # What type of objects to build.
14706 pic_mode=$pic_mode
14707
14708 # Whether or not to optimize for fast installation.
14709 fast_install=$enable_fast_install
14710
14711 # The host system.
14712 host_alias=$host_alias
14713 host=$host
14714 host_os=$host_os
14715
14716 # The build system.
14717 build_alias=$build_alias
14718 build=$build
14719 build_os=$build_os
14720
14721 # A sed program that does not truncate output.
14722 SED=$lt_SED
14723
14724 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14725 Xsed="\$SED -e 1s/^X//"
14726
14727 # A grep program that handles long lines.
14728 GREP=$lt_GREP
14729
14730 # An ERE matcher.
14731 EGREP=$lt_EGREP
14732
14733 # A literal string matcher.
14734 FGREP=$lt_FGREP
14735
14736 # A BSD- or MS-compatible name lister.
14737 NM=$lt_NM
14738
14739 # Whether we need soft or hard links.
14740 LN_S=$lt_LN_S
14741
14742 # What is the maximum length of a command?
14743 max_cmd_len=$max_cmd_len
14744
14745 # Object file suffix (normally "o").
14746 objext=$ac_objext
14747
14748 # Executable file suffix (normally "").
14749 exeext=$exeext
14750
14751 # whether the shell understands "unset".
14752 lt_unset=$lt_unset
14753
14754 # turn spaces into newlines.
14755 SP2NL=$lt_lt_SP2NL
14756
14757 # turn newlines into spaces.
14758 NL2SP=$lt_lt_NL2SP
14759
14760 # How to create reloadable object files.
14761 reload_flag=$lt_reload_flag
14762 reload_cmds=$lt_reload_cmds
14763
14764 # An object symbol dumper.
14765 OBJDUMP=$lt_OBJDUMP
14766
14767 # Method to check whether dependent libraries are shared objects.
14768 deplibs_check_method=$lt_deplibs_check_method
14769
14770 # Command to use when deplibs_check_method == "file_magic".
14771 file_magic_cmd=$lt_file_magic_cmd
14772
14773 # The archiver.
14774 AR=$lt_AR
14775 AR_FLAGS=$lt_AR_FLAGS
14776
14777 # A symbol stripping program.
14778 STRIP=$lt_STRIP
14779
14780 # Commands used to install an old-style archive.
14781 RANLIB=$lt_RANLIB
14782 old_postinstall_cmds=$lt_old_postinstall_cmds
14783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14784
14785 # A C compiler.
14786 LTCC=$lt_CC
14787
14788 # LTCC compiler flags.
14789 LTCFLAGS=$lt_CFLAGS
14790
14791 # Take the output of nm and produce a listing of raw symbols and C names.
14792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14793
14794 # Transform the output of nm in a proper C declaration.
14795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14796
14797 # Transform the output of nm in a C name address pair.
14798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14799
14800 # Transform the output of nm in a C name address pair when lib prefix is needed.
14801 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14802
14803 # The name of the directory that contains temporary libtool files.
14804 objdir=$objdir
14805
14806 # Shell to use when invoking shell scripts.
14807 SHELL=$lt_SHELL
14808
14809 # An echo program that does not interpret backslashes.
14810 ECHO=$lt_ECHO
14811
14812 # Used to examine libraries when file_magic_cmd begins with "file".
14813 MAGIC_CMD=$MAGIC_CMD
14814
14815 # Must we lock files when doing compilation?
14816 need_locks=$lt_need_locks
14817
14818 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14819 DSYMUTIL=$lt_DSYMUTIL
14820
14821 # Tool to change global to local symbols on Mac OS X.
14822 NMEDIT=$lt_NMEDIT
14823
14824 # Tool to manipulate fat objects and archives on Mac OS X.
14825 LIPO=$lt_LIPO
14826
14827 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14828 OTOOL=$lt_OTOOL
14829
14830 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14831 OTOOL64=$lt_OTOOL64
14832
14833 # Old archive suffix (normally "a").
14834 libext=$libext
14835
14836 # Shared library suffix (normally ".so").
14837 shrext_cmds=$lt_shrext_cmds
14838
14839 # The commands to extract the exported symbol list from a shared archive.
14840 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14841
14842 # Variables whose values should be saved in libtool wrapper scripts and
14843 # restored at link time.
14844 variables_saved_for_relink=$lt_variables_saved_for_relink
14845
14846 # Do we need the "lib" prefix for modules?
14847 need_lib_prefix=$need_lib_prefix
14848
14849 # Do we need a version for libraries?
14850 need_version=$need_version
14851
14852 # Library versioning type.
14853 version_type=$version_type
14854
14855 # Shared library runtime path variable.
14856 runpath_var=$runpath_var
14857
14858 # Shared library path variable.
14859 shlibpath_var=$shlibpath_var
14860
14861 # Is shlibpath searched before the hard-coded library search path?
14862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14863
14864 # Format of library name prefix.
14865 libname_spec=$lt_libname_spec
14866
14867 # List of archive names.  First name is the real one, the rest are links.
14868 # The last name is the one that the linker finds with -lNAME
14869 library_names_spec=$lt_library_names_spec
14870
14871 # The coded name of the library, if different from the real name.
14872 soname_spec=$lt_soname_spec
14873
14874 # Command to use after installation of a shared archive.
14875 postinstall_cmds=$lt_postinstall_cmds
14876
14877 # Command to use after uninstallation of a shared archive.
14878 postuninstall_cmds=$lt_postuninstall_cmds
14879
14880 # Commands used to finish a libtool library installation in a directory.
14881 finish_cmds=$lt_finish_cmds
14882
14883 # As "finish_cmds", except a single script fragment to be evaled but
14884 # not shown.
14885 finish_eval=$lt_finish_eval
14886
14887 # Whether we should hardcode library paths into libraries.
14888 hardcode_into_libs=$hardcode_into_libs
14889
14890 # Compile-time system search path for libraries.
14891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14892
14893 # Run-time system search path for libraries.
14894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14895
14896 # Whether dlopen is supported.
14897 dlopen_support=$enable_dlopen
14898
14899 # Whether dlopen of programs is supported.
14900 dlopen_self=$enable_dlopen_self
14901
14902 # Whether dlopen of statically linked programs is supported.
14903 dlopen_self_static=$enable_dlopen_self_static
14904
14905 # Commands to strip libraries.
14906 old_striplib=$lt_old_striplib
14907 striplib=$lt_striplib
14908
14909
14910 # The linker used to build libraries.
14911 LD=$lt_LD
14912
14913 # Commands used to build an old-style archive.
14914 old_archive_cmds=$lt_old_archive_cmds
14915
14916 # A language specific compiler.
14917 CC=$lt_compiler
14918
14919 # Is the compiler the GNU compiler?
14920 with_gcc=$GCC
14921
14922 # Compiler flag to turn off builtin functions.
14923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14924
14925 # How to pass a linker flag through the compiler.
14926 wl=$lt_lt_prog_compiler_wl
14927
14928 # Additional compiler flags for building library objects.
14929 pic_flag=$lt_lt_prog_compiler_pic
14930
14931 # Compiler flag to prevent dynamic linking.
14932 link_static_flag=$lt_lt_prog_compiler_static
14933
14934 # Does compiler simultaneously support -c and -o options?
14935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14936
14937 # Whether or not to add -lc for building shared libraries.
14938 build_libtool_need_lc=$archive_cmds_need_lc
14939
14940 # Whether or not to disallow shared libs when runtime libs are static.
14941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14942
14943 # Compiler flag to allow reflexive dlopens.
14944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14945
14946 # Compiler flag to generate shared objects directly from archives.
14947 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14948
14949 # Whether the compiler copes with passing no objects directly.
14950 compiler_needs_object=$lt_compiler_needs_object
14951
14952 # Create an old-style archive from a shared archive.
14953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14954
14955 # Create a temporary old-style archive to link instead of a shared archive.
14956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14957
14958 # Commands used to build a shared archive.
14959 archive_cmds=$lt_archive_cmds
14960 archive_expsym_cmds=$lt_archive_expsym_cmds
14961
14962 # Commands used to build a loadable module if different from building
14963 # a shared archive.
14964 module_cmds=$lt_module_cmds
14965 module_expsym_cmds=$lt_module_expsym_cmds
14966
14967 # Whether we are building with GNU ld or not.
14968 with_gnu_ld=$lt_with_gnu_ld
14969
14970 # Flag that allows shared libraries with undefined symbols to be built.
14971 allow_undefined_flag=$lt_allow_undefined_flag
14972
14973 # Flag that enforces no undefined symbols.
14974 no_undefined_flag=$lt_no_undefined_flag
14975
14976 # Flag to hardcode \$libdir into a binary during linking.
14977 # This must work even if \$libdir does not exist
14978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14979
14980 # If ld is used when linking, flag to hardcode \$libdir into a binary
14981 # during linking.  This must work even if \$libdir does not exist.
14982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14983
14984 # Whether we need a single "-rpath" flag with a separated argument.
14985 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14986
14987 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14988 # DIR into the resulting binary.
14989 hardcode_direct=$hardcode_direct
14990
14991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14992 # DIR into the resulting binary and the resulting library dependency is
14993 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14994 # library is relocated.
14995 hardcode_direct_absolute=$hardcode_direct_absolute
14996
14997 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14998 # into the resulting binary.
14999 hardcode_minus_L=$hardcode_minus_L
15000
15001 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15002 # into the resulting binary.
15003 hardcode_shlibpath_var=$hardcode_shlibpath_var
15004
15005 # Set to "yes" if building a shared library automatically hardcodes DIR
15006 # into the library and all subsequent libraries and executables linked
15007 # against it.
15008 hardcode_automatic=$hardcode_automatic
15009
15010 # Set to yes if linker adds runtime paths of dependent libraries
15011 # to runtime path list.
15012 inherit_rpath=$inherit_rpath
15013
15014 # Whether libtool must link a program against all its dependency libraries.
15015 link_all_deplibs=$link_all_deplibs
15016
15017 # Fix the shell variable \$srcfile for the compiler.
15018 fix_srcfile_path=$lt_fix_srcfile_path
15019
15020 # Set to "yes" if exported symbols are required.
15021 always_export_symbols=$always_export_symbols
15022
15023 # The commands to list exported symbols.
15024 export_symbols_cmds=$lt_export_symbols_cmds
15025
15026 # Symbols that should not be listed in the preloaded symbols.
15027 exclude_expsyms=$lt_exclude_expsyms
15028
15029 # Symbols that must always be exported.
15030 include_expsyms=$lt_include_expsyms
15031
15032 # Commands necessary for linking programs (against libraries) with templates.
15033 prelink_cmds=$lt_prelink_cmds
15034
15035 # Specify filename containing input files.
15036 file_list_spec=$lt_file_list_spec
15037
15038 # How to hardcode a shared library path into an executable.
15039 hardcode_action=$hardcode_action
15040
15041 # ### END LIBTOOL CONFIG
15042
15043 _LT_EOF
15044
15045   case $host_os in
15046   aix3*)
15047     cat <<\_LT_EOF >> "$cfgfile"
15048 # AIX sometimes has problems with the GCC collect2 program.  For some
15049 # reason, if we set the COLLECT_NAMES environment variable, the problems
15050 # vanish in a puff of smoke.
15051 if test "X${COLLECT_NAMES+set}" != Xset; then
15052   COLLECT_NAMES=
15053   export COLLECT_NAMES
15054 fi
15055 _LT_EOF
15056     ;;
15057   esac
15058
15059
15060 ltmain="$ac_aux_dir/ltmain.sh"
15061
15062
15063   # We use sed instead of cat because bash on DJGPP gets confused if
15064   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15065   # text mode, it properly converts lines to CR/LF.  This bash problem
15066   # is reportedly fixed, but why not run on old versions too?
15067   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15068     || (rm -f "$cfgfile"; exit 1)
15069
15070   case $xsi_shell in
15071   yes)
15072     cat << \_LT_EOF >> "$cfgfile"
15073
15074 # func_dirname file append nondir_replacement
15075 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15076 # otherwise set result to NONDIR_REPLACEMENT.
15077 func_dirname ()
15078 {
15079   case ${1} in
15080     */*) func_dirname_result="${1%/*}${2}" ;;
15081     *  ) func_dirname_result="${3}" ;;
15082   esac
15083 }
15084
15085 # func_basename file
15086 func_basename ()
15087 {
15088   func_basename_result="${1##*/}"
15089 }
15090
15091 # func_dirname_and_basename file append nondir_replacement
15092 # perform func_basename and func_dirname in a single function
15093 # call:
15094 #   dirname:  Compute the dirname of FILE.  If nonempty,
15095 #             add APPEND to the result, otherwise set result
15096 #             to NONDIR_REPLACEMENT.
15097 #             value returned in "$func_dirname_result"
15098 #   basename: Compute filename of FILE.
15099 #             value retuned in "$func_basename_result"
15100 # Implementation must be kept synchronized with func_dirname
15101 # and func_basename. For efficiency, we do not delegate to
15102 # those functions but instead duplicate the functionality here.
15103 func_dirname_and_basename ()
15104 {
15105   case ${1} in
15106     */*) func_dirname_result="${1%/*}${2}" ;;
15107     *  ) func_dirname_result="${3}" ;;
15108   esac
15109   func_basename_result="${1##*/}"
15110 }
15111
15112 # func_stripname prefix suffix name
15113 # strip PREFIX and SUFFIX off of NAME.
15114 # PREFIX and SUFFIX must not contain globbing or regex special
15115 # characters, hashes, percent signs, but SUFFIX may contain a leading
15116 # dot (in which case that matches only a dot).
15117 func_stripname ()
15118 {
15119   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15120   # positional parameters, so assign one to ordinary parameter first.
15121   func_stripname_result=${3}
15122   func_stripname_result=${func_stripname_result#"${1}"}
15123   func_stripname_result=${func_stripname_result%"${2}"}
15124 }
15125
15126 # func_opt_split
15127 func_opt_split ()
15128 {
15129   func_opt_split_opt=${1%%=*}
15130   func_opt_split_arg=${1#*=}
15131 }
15132
15133 # func_lo2o object
15134 func_lo2o ()
15135 {
15136   case ${1} in
15137     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15138     *)    func_lo2o_result=${1} ;;
15139   esac
15140 }
15141
15142 # func_xform libobj-or-source
15143 func_xform ()
15144 {
15145   func_xform_result=${1%.*}.lo
15146 }
15147
15148 # func_arith arithmetic-term...
15149 func_arith ()
15150 {
15151   func_arith_result=$(( $* ))
15152 }
15153
15154 # func_len string
15155 # STRING may not start with a hyphen.
15156 func_len ()
15157 {
15158   func_len_result=${#1}
15159 }
15160
15161 _LT_EOF
15162     ;;
15163   *) # Bourne compatible functions.
15164     cat << \_LT_EOF >> "$cfgfile"
15165
15166 # func_dirname file append nondir_replacement
15167 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15168 # otherwise set result to NONDIR_REPLACEMENT.
15169 func_dirname ()
15170 {
15171   # Extract subdirectory from the argument.
15172   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15173   if test "X$func_dirname_result" = "X${1}"; then
15174     func_dirname_result="${3}"
15175   else
15176     func_dirname_result="$func_dirname_result${2}"
15177   fi
15178 }
15179
15180 # func_basename file
15181 func_basename ()
15182 {
15183   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15184 }
15185
15186
15187 # func_stripname prefix suffix name
15188 # strip PREFIX and SUFFIX off of NAME.
15189 # PREFIX and SUFFIX must not contain globbing or regex special
15190 # characters, hashes, percent signs, but SUFFIX may contain a leading
15191 # dot (in which case that matches only a dot).
15192 # func_strip_suffix prefix name
15193 func_stripname ()
15194 {
15195   case ${2} in
15196     .*) func_stripname_result=`$ECHO "X${3}" \
15197            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15198     *)  func_stripname_result=`$ECHO "X${3}" \
15199            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15200   esac
15201 }
15202
15203 # sed scripts:
15204 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15205 my_sed_long_arg='1s/^-[^=]*=//'
15206
15207 # func_opt_split
15208 func_opt_split ()
15209 {
15210   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15211   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15212 }
15213
15214 # func_lo2o object
15215 func_lo2o ()
15216 {
15217   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15218 }
15219
15220 # func_xform libobj-or-source
15221 func_xform ()
15222 {
15223   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15224 }
15225
15226 # func_arith arithmetic-term...
15227 func_arith ()
15228 {
15229   func_arith_result=`expr "$@"`
15230 }
15231
15232 # func_len string
15233 # STRING may not start with a hyphen.
15234 func_len ()
15235 {
15236   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15237 }
15238
15239 _LT_EOF
15240 esac
15241
15242 case $lt_shell_append in
15243   yes)
15244     cat << \_LT_EOF >> "$cfgfile"
15245
15246 # func_append var value
15247 # Append VALUE to the end of shell variable VAR.
15248 func_append ()
15249 {
15250   eval "$1+=\$2"
15251 }
15252 _LT_EOF
15253     ;;
15254   *)
15255     cat << \_LT_EOF >> "$cfgfile"
15256
15257 # func_append var value
15258 # Append VALUE to the end of shell variable VAR.
15259 func_append ()
15260 {
15261   eval "$1=\$$1\$2"
15262 }
15263
15264 _LT_EOF
15265     ;;
15266   esac
15267
15268
15269   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15270     || (rm -f "$cfgfile"; exit 1)
15271
15272   mv -f "$cfgfile" "$ofile" ||
15273     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15274   chmod +x "$ofile"
15275
15276  ;;
15277
15278   esac
15279 done # for ac_tag
15280
15281
15282 { (exit 0); exit 0; }
15283 _ACEOF
15284 chmod +x $CONFIG_STATUS
15285 ac_clean_files=$ac_clean_files_save
15286
15287 test $ac_write_fail = 0 ||
15288   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15289 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15290    { (exit 1); exit 1; }; }
15291
15292
15293 # configure is writing to config.log, and then calls config.status.
15294 # config.status does its own redirection, appending to config.log.
15295 # Unfortunately, on DOS this fails, as config.log is still kept open
15296 # by configure, so config.status won't be able to write to it; its
15297 # output is simply discarded.  So we exec the FD to /dev/null,
15298 # effectively closing config.log, so it can be properly (re)opened and
15299 # appended to by config.status.  When coming back to configure, we
15300 # need to make the FD available again.
15301 if test "$no_create" != yes; then
15302   ac_cs_success=:
15303   ac_config_status_args=
15304   test "$silent" = yes &&
15305     ac_config_status_args="$ac_config_status_args --quiet"
15306   exec 5>/dev/null
15307   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15308   exec 5>>config.log
15309   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310   # would make configure fail if this is the last instruction.
15311   $ac_cs_success || { (exit 1); exit 1; }
15312 fi
15313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15316 fi
15317
15318
15319 echo ""
15320 echo "Options used to compile and link:"
15321 echo "  CC       = $CC"
15322 echo "  CFLAGS   = $CFLAGS"
15323 echo "  CPPFLAGS = $CPPFLAGS"
15324 echo "  CXX      = $CXX"
15325 echo "  CXXFLAGS = $CXXFLAGS"
15326 echo "  LDFLAGS  = $LDFLAGS"
15327 echo ""