resetting manifest requested domain to floor
[platform/core/multimedia/libmm-session.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for MMSESSION 1.0.
4 #
5 # Report bugs to <BUG-REPORT-ADDRESS>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $ECHO works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<_LT_EOF
584 $*
585 _LT_EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$lt_ECHO"; then
594   if test "X${echo_test_string+set}" != Xset; then
595     # find a string as large as possible, as long as the shell can cope with it
596     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600       then
601         break
602       fi
603     done
604   fi
605
606   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608      test "X$echo_testing_string" = "X$echo_test_string"; then
609     :
610   else
611     # The Solaris, AIX, and Digital Unix default echo programs unquote
612     # backslashes.  This makes it impossible to quote backslashes using
613     #   echo "$something" | sed 's/\\/\\\\/g'
614     #
615     # So, first we look for a working echo in the user's PATH.
616
617     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618     for dir in $PATH /usr/ucb; do
619       IFS="$lt_save_ifs"
620       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623          test "X$echo_testing_string" = "X$echo_test_string"; then
624         ECHO="$dir/echo"
625         break
626       fi
627     done
628     IFS="$lt_save_ifs"
629
630     if test "X$ECHO" = Xecho; then
631       # We didn't find a better echo, so look for alternatives.
632       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # This shell has a builtin print -r that does the trick.
636         ECHO='print -r'
637       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638            test "X$CONFIG_SHELL" != X/bin/ksh; then
639         # If we have ksh, try running configure again with it.
640         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641         export ORIGINAL_CONFIG_SHELL
642         CONFIG_SHELL=/bin/ksh
643         export CONFIG_SHELL
644         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645       else
646         # Try using printf.
647         ECHO='printf %s\n'
648         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651           # Cool, printf works
652           :
653         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654              test "X$echo_testing_string" = 'X\t' &&
655              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656              test "X$echo_testing_string" = "X$echo_test_string"; then
657           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658           export CONFIG_SHELL
659           SHELL="$CONFIG_SHELL"
660           export SHELL
661           ECHO="$CONFIG_SHELL $0 --fallback-echo"
662         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663              test "X$echo_testing_string" = 'X\t' &&
664              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665              test "X$echo_testing_string" = "X$echo_test_string"; then
666           ECHO="$CONFIG_SHELL $0 --fallback-echo"
667         else
668           # maybe with a smaller string...
669           prev=:
670
671           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673             then
674               break
675             fi
676             prev="$cmd"
677           done
678
679           if test "$prev" != 'sed 50q "$0"'; then
680             echo_test_string=`eval $prev`
681             export echo_test_string
682             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683           else
684             # Oops.  We lost completely, so just stick with echo.
685             ECHO=echo
686           fi
687         fi
688       fi
689     fi
690   fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 exec 7<&0 </dev/null 6>&1
704
705 # Name of the host.
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707 # so uname gets run too.
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710 #
711 # Initializations.
712 #
713 ac_default_prefix=/usr/local
714 ac_clean_files=
715 ac_config_libobj_dir=.
716 LIBOBJS=
717 cross_compiling=no
718 subdirs=
719 MFLAGS=
720 MAKEFLAGS=
721 SHELL=${CONFIG_SHELL-/bin/sh}
722
723 # Identity of this package.
724 PACKAGE_NAME='MMSESSION'
725 PACKAGE_TARNAME='mmsession'
726 PACKAGE_VERSION='1.0'
727 PACKAGE_STRING='MMSESSION 1.0'
728 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
729
730 # Factoring default headers for most tests.
731 ac_includes_default="\
732 #include <stdio.h>
733 #ifdef HAVE_SYS_TYPES_H
734 # include <sys/types.h>
735 #endif
736 #ifdef HAVE_SYS_STAT_H
737 # include <sys/stat.h>
738 #endif
739 #ifdef STDC_HEADERS
740 # include <stdlib.h>
741 # include <stddef.h>
742 #else
743 # ifdef HAVE_STDLIB_H
744 #  include <stdlib.h>
745 # endif
746 #endif
747 #ifdef HAVE_STRING_H
748 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749 #  include <memory.h>
750 # endif
751 # include <string.h>
752 #endif
753 #ifdef HAVE_STRINGS_H
754 # include <strings.h>
755 #endif
756 #ifdef HAVE_INTTYPES_H
757 # include <inttypes.h>
758 #endif
759 #ifdef HAVE_STDINT_H
760 # include <stdint.h>
761 #endif
762 #ifdef HAVE_UNISTD_H
763 # include <unistd.h>
764 #endif"
765
766 ac_subst_vars='SHELL
767 PATH_SEPARATOR
768 PACKAGE_NAME
769 PACKAGE_TARNAME
770 PACKAGE_VERSION
771 PACKAGE_STRING
772 PACKAGE_BUGREPORT
773 exec_prefix
774 prefix
775 program_transform_name
776 bindir
777 sbindir
778 libexecdir
779 datarootdir
780 datadir
781 sysconfdir
782 sharedstatedir
783 localstatedir
784 includedir
785 oldincludedir
786 docdir
787 infodir
788 htmldir
789 dvidir
790 pdfdir
791 psdir
792 libdir
793 localedir
794 mandir
795 DEFS
796 ECHO_C
797 ECHO_N
798 ECHO_T
799 LIBS
800 build_alias
801 host_alias
802 target_alias
803 INSTALL_PROGRAM
804 INSTALL_SCRIPT
805 INSTALL_DATA
806 am__isrc
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 CC
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
832 DEPDIR
833 am__include
834 am__quote
835 AMDEP_TRUE
836 AMDEP_FALSE
837 AMDEPBACKSLASH
838 CCDEPMODE
839 am__fastdepCC_TRUE
840 am__fastdepCC_FALSE
841 LIBTOOL
842 build
843 build_cpu
844 build_vendor
845 build_os
846 host
847 host_cpu
848 host_vendor
849 host_os
850 SED
851 GREP
852 EGREP
853 FGREP
854 LD
855 DUMPBIN
856 ac_ct_DUMPBIN
857 NM
858 LN_S
859 AR
860 RANLIB
861 lt_ECHO
862 DSYMUTIL
863 NMEDIT
864 LIPO
865 OTOOL
866 OTOOL64
867 CPP
868 PKG_CONFIG
869 AUDIOSESSIONMGR_CFLAGS
870 AUDIOSESSIONMGR_LIBS
871 MMCOMMON_CFLAGS
872 MMCOMMON_LIBS
873 LIBOBJS
874 LTLIBOBJS'
875 ac_subst_files=''
876       ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CPP
885 PKG_CONFIG
886 AUDIOSESSIONMGR_CFLAGS
887 AUDIOSESSIONMGR_LIBS
888 MMCOMMON_CFLAGS
889 MMCOMMON_LIBS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997    { (exit 1); exit 1; }; }
998     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999     eval enable_$ac_feature=no ;;
1000
1001   -docdir | --docdir | --docdi | --doc | --do)
1002     ac_prev=docdir ;;
1003   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004     docdir=$ac_optarg ;;
1005
1006   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007     ac_prev=dvidir ;;
1008   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009     dvidir=$ac_optarg ;;
1010
1011   -enable-* | --enable-*)
1012     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016    { (exit 1); exit 1; }; }
1017     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018     eval enable_$ac_feature=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       { echo "$as_me: error: invalid package name: $ac_package" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224     eval with_$ac_package=no ;;
1225
1226   --x)
1227     # Obsolete; use --with-x.
1228     with_x=yes ;;
1229
1230   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231   | --x-incl | --x-inc | --x-in | --x-i)
1232     ac_prev=x_includes ;;
1233   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235     x_includes=$ac_optarg ;;
1236
1237   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239     ac_prev=x_libraries ;;
1240   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242     x_libraries=$ac_optarg ;;
1243
1244   -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246    { (exit 1); exit 1; }; }
1247     ;;
1248
1249   *=*)
1250     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254    { (exit 1); exit 1; }; }
1255     eval $ac_envvar=\$ac_optarg
1256     export $ac_envvar ;;
1257
1258   *)
1259     # FIXME: should be removed in autoconf 3.0.
1260     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264     ;;
1265
1266   esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271   { echo "$as_me: error: missing argument to $ac_option" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274
1275 # Be sure to have absolute directory names.
1276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277                 datadir sysconfdir sharedstatedir localstatedir includedir \
1278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279                 libdir localedir mandir
1280 do
1281   eval ac_val=\$$ac_var
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287    { (exit 1); exit 1; }; }
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299   if test "x$build_alias" = x; then
1300     cross_compiling=maybe
1301     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302     If a cross compiler is detected then cross compile mode will be used." >&2
1303   elif test "x$build_alias" != "x$host_alias"; then
1304     cross_compiling=yes
1305   fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317   { echo "$as_me: error: Working directory cannot be determined" >&2
1318    { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   { echo "$as_me: error: pwd does not report name of working directory" >&2
1321    { (exit 1); exit 1; }; }
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326   ac_srcdir_defaulted=yes
1327   # Try the directory containing this script, then the parent directory.
1328   ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330          X"$0" : 'X\(//\)[^/]' \| \
1331          X"$0" : 'X\(//\)$' \| \
1332          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 echo X"$0" |
1334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)[^/].*/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\).*/{
1347             s//\1/
1348             q
1349           }
1350           s/.*/./; q'`
1351   srcdir=$ac_confdir
1352   if test ! -r "$srcdir/$ac_unique_file"; then
1353     srcdir=..
1354   fi
1355 else
1356   ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361    { (exit 1); exit 1; }; }
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366    { (exit 1); exit 1; }; }
1367         pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370   srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures MMSESSION 1.0 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR           user executables [EPREFIX/bin]
1427   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR       program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1432   --libdir=DIR           object code libraries [EPREFIX/lib]
1433   --includedir=DIR       C header files [PREFIX/include]
1434   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1435   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1436   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1437   --infodir=DIR          info documentation [DATAROOTDIR/info]
1438   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1439   --mandir=DIR           man documentation [DATAROOTDIR/man]
1440   --docdir=DIR           documentation root [DATAROOTDIR/doc/mmsession]
1441   --htmldir=DIR          html documentation [DOCDIR]
1442   --dvidir=DIR           dvi documentation [DOCDIR]
1443   --pdfdir=DIR           pdf documentation [DOCDIR]
1444   --psdir=DIR            ps documentation [DOCDIR]
1445 _ACEOF
1446
1447   cat <<\_ACEOF
1448
1449 Program names:
1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461   case $ac_init_help in
1462      short | recursive ) echo "Configuration of MMSESSION 1.0:";;
1463    esac
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-platform-debug use platform debug default=no
1470   --enable-platform-intercall
1471                           use platform intercall default=yes
1472   --disable-dependency-tracking  speeds up one-time build
1473   --enable-dependency-tracking   do not reject slow dependency extractors
1474   --enable-shared[=PKGS]  build shared libraries [default=yes]
1475   --enable-static[=PKGS]  build static libraries [default=yes]
1476   --enable-fast-install[=PKGS]
1477                           optimize for fast installation [default=yes]
1478   --disable-libtool-lock  avoid locking (might break parallel builds)
1479
1480 Optional Packages:
1481   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483   --with-xo               apply xo configuration [default=yes]
1484   --with-pic              try to use only PIC/non-PIC objects [default=use
1485                           both]
1486   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   LIBS        libraries to pass to the linker, e.g. -l<library>
1494   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495               you have headers in a nonstandard directory <include dir>
1496   CPP         C preprocessor
1497   PKG_CONFIG  path to pkg-config utility
1498   AUDIOSESSIONMGR_CFLAGS
1499               C compiler flags for AUDIOSESSIONMGR, overriding pkg-config
1500   AUDIOSESSIONMGR_LIBS
1501               linker flags for AUDIOSESSIONMGR, overriding pkg-config
1502   MMCOMMON_CFLAGS
1503               C compiler flags for MMCOMMON, overriding pkg-config
1504   MMCOMMON_LIBS
1505               linker flags for MMCOMMON, overriding pkg-config
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <BUG-REPORT-ADDRESS>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516   # If there are subdirs, report their specific --help.
1517   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518     test -d "$ac_dir" || continue
1519     ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525   # A ".." for each directory in $ac_dir_suffix.
1526   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527   case $ac_top_builddir_sub in
1528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530   esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538   .)  # We are building in place.
1539     ac_srcdir=.
1540     ac_top_srcdir=$ac_top_builddir_sub
1541     ac_abs_top_srcdir=$ac_pwd ;;
1542   [\\/]* | ?:[\\/]* )  # Absolute name.
1543     ac_srcdir=$srcdir$ac_dir_suffix;
1544     ac_top_srcdir=$srcdir
1545     ac_abs_top_srcdir=$srcdir ;;
1546   *) # Relative name.
1547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548     ac_top_srcdir=$ac_top_build_prefix$srcdir
1549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553     cd "$ac_dir" || { ac_status=$?; continue; }
1554     # Check for guested configure.
1555     if test -f "$ac_srcdir/configure.gnu"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558     elif test -f "$ac_srcdir/configure"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure" --help=recursive
1561     else
1562       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563     fi || ac_status=$?
1564     cd "$ac_pwd" || { ac_status=$?; break; }
1565   done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570   cat <<\_ACEOF
1571 MMSESSION configure 1.0
1572 generated by GNU Autoconf 2.61
1573
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579   exit
1580 fi
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1584
1585 It was created by MMSESSION $as_me 1.0, which was
1586 generated by GNU Autoconf 2.61.  Invocation command line was
1587
1588   $ $0 $@
1589
1590 _ACEOF
1591 exec 5>>config.log
1592 {
1593 cat <<_ASUNAME
1594 ## --------- ##
1595 ## Platform. ##
1596 ## --------- ##
1597
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1606
1607 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1608 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1611 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1612 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1613 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1614
1615 _ASUNAME
1616
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   echo "PATH: $as_dir"
1623 done
1624 IFS=$as_save_IFS
1625
1626 } >&5
1627
1628 cat >&5 <<_ACEOF
1629
1630
1631 ## ----------- ##
1632 ## Core tests. ##
1633 ## ----------- ##
1634
1635 _ACEOF
1636
1637
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_configure_args=
1644 ac_configure_args0=
1645 ac_configure_args1=
1646 ac_must_keep_next=false
1647 for ac_pass in 1 2
1648 do
1649   for ac_arg
1650   do
1651     case $ac_arg in
1652     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654     | -silent | --silent | --silen | --sile | --sil)
1655       continue ;;
1656     *\'*)
1657       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658     esac
1659     case $ac_pass in
1660     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661     2)
1662       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663       if test $ac_must_keep_next = true; then
1664         ac_must_keep_next=false # Got value, back to normal.
1665       else
1666         case $ac_arg in
1667           *=* | --config-cache | -C | -disable-* | --disable-* \
1668           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670           | -with-* | --with-* | -without-* | --without-* | --x)
1671             case "$ac_configure_args0 " in
1672               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673             esac
1674             ;;
1675           -* ) ac_must_keep_next=true ;;
1676         esac
1677       fi
1678       ac_configure_args="$ac_configure_args '$ac_arg'"
1679       ;;
1680     esac
1681   done
1682 done
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log.  We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692   # Save into config.log some information that might help in debugging.
1693   {
1694     echo
1695
1696     cat <<\_ASBOX
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1700 _ASBOX
1701     echo
1702     # The following way of writing the cache mishandles newlines in values,
1703 (
1704   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705     eval ac_val=\$$ac_var
1706     case $ac_val in #(
1707     *${as_nl}*)
1708       case $ac_var in #(
1709       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711       esac
1712       case $ac_var in #(
1713       _ | IFS | as_nl) ;; #(
1714       *) $as_unset $ac_var ;;
1715       esac ;;
1716     esac
1717   done
1718   (set) 2>&1 |
1719     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720     *${as_nl}ac_space=\ *)
1721       sed -n \
1722         "s/'\''/'\''\\\\'\'''\''/g;
1723           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724       ;; #(
1725     *)
1726       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727       ;;
1728     esac |
1729     sort
1730 )
1731     echo
1732
1733     cat <<\_ASBOX
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1737 _ASBOX
1738     echo
1739     for ac_var in $ac_subst_vars
1740     do
1741       eval ac_val=\$$ac_var
1742       case $ac_val in
1743       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744       esac
1745       echo "$ac_var='\''$ac_val'\''"
1746     done | sort
1747     echo
1748
1749     if test -n "$ac_subst_files"; then
1750       cat <<\_ASBOX
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1754 _ASBOX
1755       echo
1756       for ac_var in $ac_subst_files
1757       do
1758         eval ac_val=\$$ac_var
1759         case $ac_val in
1760         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761         esac
1762         echo "$ac_var='\''$ac_val'\''"
1763       done | sort
1764       echo
1765     fi
1766
1767     if test -s confdefs.h; then
1768       cat <<\_ASBOX
1769 ## ----------- ##
1770 ## confdefs.h. ##
1771 ## ----------- ##
1772 _ASBOX
1773       echo
1774       cat confdefs.h
1775       echo
1776     fi
1777     test "$ac_signal" != 0 &&
1778       echo "$as_me: caught signal $ac_signal"
1779     echo "$as_me: exit $exit_status"
1780   } >&5
1781   rm -f core *.core core.conftest.* &&
1782     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783     exit $exit_status
1784 ' 0
1785 for ac_signal in 1 2 13 15; do
1786   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 done
1788 ac_signal=0
1789
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1792
1793 # Predefined preprocessor variables.
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 _ACEOF
1818
1819
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823   set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 else
1827   set x "$ac_default_prefix/share/config.site" \
1828         "$ac_default_prefix/etc/config.site"
1829 fi
1830 shift
1831 for ac_site_file
1832 do
1833   if test -r "$ac_site_file"; then
1834     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836     sed 's/^/| /' "$ac_site_file" >&5
1837     . "$ac_site_file"
1838   fi
1839 done
1840
1841 if test -r "$cache_file"; then
1842   # Some versions of bash will fail to source /dev/null (special
1843   # files actually), so we avoid doing that.
1844   if test -f "$cache_file"; then
1845     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1847     case $cache_file in
1848       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849       *)                      . "./$cache_file";;
1850     esac
1851   fi
1852 else
1853   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1855   >$cache_file
1856 fi
1857
1858 # Check that the precious variables saved in the cache have kept the same
1859 # value.
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863   eval ac_new_set=\$ac_env_${ac_var}_set
1864   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865   eval ac_new_val=\$ac_env_${ac_var}_value
1866   case $ac_old_set,$ac_new_set in
1867     set,)
1868       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870       ac_cache_corrupted=: ;;
1871     ,set)
1872       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874       ac_cache_corrupted=: ;;
1875     ,);;
1876     *)
1877       if test "x$ac_old_val" != "x$ac_new_val"; then
1878         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1881 echo "$as_me:   former value:  $ac_old_val" >&2;}
1882         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1883 echo "$as_me:   current value: $ac_new_val" >&2;}
1884         ac_cache_corrupted=:
1885       fi;;
1886   esac
1887   # Pass precious variables to config.status.
1888   if test "$ac_new_set" = set; then
1889     case $ac_new_val in
1890     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891     *) ac_arg=$ac_var=$ac_new_val ;;
1892     esac
1893     case " $ac_configure_args " in
1894       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1895       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896     esac
1897   fi
1898 done
1899 if $ac_cache_corrupted; then
1900   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931 ac_ext=c
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936
1937
1938 ac_config_headers="$ac_config_headers config.h"
1939
1940
1941 am__api_version='1.10'
1942
1943 ac_aux_dir=
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974 # Find a good install program.  We prefer a C program (faster),
1975 # so one script is as good as another.  But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1980 # AIX /bin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   # Account for people who put trailing slashes in PATH elements.
1999 case $as_dir/ in
2000   ./ | .// | /cC/* | \
2001   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003   /usr/ucb/* ) ;;
2004   *)
2005     # OSF1 and SCO ODT 3.0 have their own names for install.
2006     # Don't use installbsd from OSF since it installs stuff as root
2007     # by default.
2008     for ac_prog in ginstall scoinst install; do
2009       for ac_exec_ext in '' $ac_executable_extensions; do
2010         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011           if test $ac_prog = install &&
2012             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013             # AIX install.  It has an incompatible calling convention.
2014             :
2015           elif test $ac_prog = install &&
2016             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017             # program-specific install script used by HP pwplus--don't use.
2018             :
2019           else
2020             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021             break 3
2022           fi
2023         fi
2024       done
2025     done
2026     ;;
2027 esac
2028 done
2029 IFS=$as_save_IFS
2030
2031
2032 fi
2033   if test "${ac_cv_path_install+set}" = set; then
2034     INSTALL=$ac_cv_path_install
2035   else
2036     # As a last resort, use the slow shell script.  Don't cache a
2037     # value for INSTALL within a source directory, because that will
2038     # break other packages using the cache if that directory is
2039     # removed, or if the value is a relative name.
2040     INSTALL=$ac_install_sh
2041   fi
2042 fi
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2045
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 # Just in case
2057 sleep 1
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments.  Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2063 # directory).
2064 if (
2065    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066    if test "$*" = "X"; then
2067       # -L didn't work.
2068       set X `ls -t $srcdir/configure conftest.file`
2069    fi
2070    rm -f conftest.file
2071    if test "$*" != "X $srcdir/configure conftest.file" \
2072       && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074       # If neither matched, then we have a broken ls.  This can happen
2075       # if, for instance, CONFIG_SHELL is bash and it inherits a
2076       # broken ls alias from the environment.  This has actually
2077       # happened.  Such a system could not be considered "sane".
2078       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2081 alias in your environment" >&2;}
2082    { (exit 1); exit 1; }; }
2083    fi
2084
2085    test "$2" = conftest.file
2086    )
2087 then
2088    # Ok.
2089    :
2090 else
2091    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095    { (exit 1); exit 1; }; }
2096 fi
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $.  echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2108 _ACEOF
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 rm -f conftest.sed
2111
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir=`cd $ac_aux_dir && pwd`
2114
2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118   am_missing_run="$MISSING --run "
2119 else
2120   am_missing_run=
2121   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 fi
2124
2125 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2126 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2127 if test -z "$MKDIR_P"; then
2128   if test "${ac_cv_path_mkdir+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_prog in mkdir gmkdir; do
2137          for ac_exec_ext in '' $ac_executable_extensions; do
2138            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2139            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2140              'mkdir (GNU coreutils) '* | \
2141              'mkdir (coreutils) '* | \
2142              'mkdir (fileutils) '4.1*)
2143                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2144                break 3;;
2145            esac
2146          done
2147        done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152
2153   if test "${ac_cv_path_mkdir+set}" = set; then
2154     MKDIR_P="$ac_cv_path_mkdir -p"
2155   else
2156     # As a last resort, use the slow shell script.  Don't cache a
2157     # value for MKDIR_P within a source directory, because that will
2158     # break other packages using the cache if that directory is
2159     # removed, or if the value is a relative name.
2160     test -d ./--version && rmdir ./--version
2161     MKDIR_P="$ac_install_sh -d"
2162   fi
2163 fi
2164 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2165 echo "${ECHO_T}$MKDIR_P" >&6; }
2166
2167 mkdir_p="$MKDIR_P"
2168 case $mkdir_p in
2169   [\\/$]* | ?:[\\/]*) ;;
2170   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2171 esac
2172
2173 for ac_prog in gawk mawk nawk awk
2174 do
2175   # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$AWK"; then
2183   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192     ac_cv_prog_AWK="$ac_prog"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 AWK=$ac_cv_prog_AWK
2203 if test -n "$AWK"; then
2204   { echo "$as_me:$LINENO: result: $AWK" >&5
2205 echo "${ECHO_T}$AWK" >&6; }
2206 else
2207   { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211
2212   test -n "$AWK" && break
2213 done
2214
2215 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   cat >conftest.make <<\_ACEOF
2222 SHELL = /bin/sh
2223 all:
2224         @echo '@@@%%%=$(MAKE)=@@@%%%'
2225 _ACEOF
2226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228   *@@@%%%=?*=@@@%%%*)
2229     eval ac_cv_prog_make_${ac_make}_set=yes;;
2230   *)
2231     eval ac_cv_prog_make_${ac_make}_set=no;;
2232 esac
2233 rm -f conftest.make
2234 fi
2235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2236   { echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6; }
2238   SET_MAKE=
2239 else
2240   { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242   SET_MAKE="MAKE=${MAKE-make}"
2243 fi
2244
2245 rm -rf .tst 2>/dev/null
2246 mkdir .tst 2>/dev/null
2247 if test -d .tst; then
2248   am__leading_dot=.
2249 else
2250   am__leading_dot=_
2251 fi
2252 rmdir .tst 2>/dev/null
2253
2254 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2255   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2256   # is not polluted with repeated "-I."
2257   am__isrc=' -I$(srcdir)'
2258   # test to see if srcdir already configured
2259   if test -f $srcdir/config.status; then
2260     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2262    { (exit 1); exit 1; }; }
2263   fi
2264 fi
2265
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268   if (cygpath --version) >/dev/null 2>/dev/null; then
2269     CYGPATH_W='cygpath -w'
2270   else
2271     CYGPATH_W=echo
2272   fi
2273 fi
2274
2275
2276 # Define the identity of the package.
2277  PACKAGE=mm-session
2278  VERSION=1.0
2279
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE "$PACKAGE"
2283 _ACEOF
2284
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define VERSION "$VERSION"
2288 _ACEOF
2289
2290 # Some tools Automake needs.
2291
2292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293
2294
2295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296
2297
2298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299
2300
2301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302
2303
2304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2305
2306 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2307
2308 # Installed binaries are usually stripped using `strip' when the user
2309 # run `make install-strip'.  However `strip' might not be the right
2310 # tool to use in cross-compilation environments, therefore Automake
2311 # will honor the `STRIP' environment variable to overrule this program.
2312 if test "$cross_compiling" != no; then
2313   if test -n "$ac_tool_prefix"; then
2314   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_STRIP+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   if test -n "$STRIP"; then
2322   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329   for ac_exec_ext in '' $ac_executable_extensions; do
2330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333     break 2
2334   fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 STRIP=$ac_cv_prog_STRIP
2342 if test -n "$STRIP"; then
2343   { echo "$as_me:$LINENO: result: $STRIP" >&5
2344 echo "${ECHO_T}$STRIP" >&6; }
2345 else
2346   { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2348 fi
2349
2350
2351 fi
2352 if test -z "$ac_cv_prog_STRIP"; then
2353   ac_ct_STRIP=$STRIP
2354   # Extract the first word of "strip", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$ac_ct_STRIP"; then
2362   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371     ac_cv_prog_ac_ct_STRIP="strip"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382 if test -n "$ac_ct_STRIP"; then
2383   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2385 else
2386   { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390   if test "x$ac_ct_STRIP" = x; then
2391     STRIP=":"
2392   else
2393     case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet.  If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&5
2398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet.  If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403     STRIP=$ac_ct_STRIP
2404   fi
2405 else
2406   STRIP="$ac_cv_prog_STRIP"
2407 fi
2408
2409 fi
2410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2411
2412 # We need awk for the "check" target.  The system "awk" is bad on
2413 # some platforms.
2414 # Always define AMTAR for backward compatibility.
2415
2416 AMTAR=${AMTAR-"${am_missing_run}tar"}
2417
2418 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419
2420
2421
2422
2423
2424
2425
2426
2427 # Check whether --with-xo was given.
2428 if test "${with_xo+set}" = set; then
2429   withval=$with_xo; test "$withval" = yes || with_xo=no
2430 else
2431   with_xo=yes
2432 fi
2433
2434
2435   if test "$with_xo" = yes; then
2436     if test "x$MODEL" != "x" ; then
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PLATFORM_MODEL_NAME "$MODEL"
2440 _ACEOF
2441
2442     else
2443       echo "model_name not specified"
2444     fi
2445
2446     if test "x$WINSYS" = "xtinyx";  then
2447
2448 cat >>confdefs.h <<\_ACEOF
2449 #define PLATFORM_WINSYS "X"
2450 _ACEOF
2451
2452     else
2453
2454 cat >>confdefs.h <<\_ACEOF
2455 #define PLATFORM_WINSYS "DFB"
2456 _ACEOF
2457
2458     fi
2459
2460     if test "x$LCDTYPE" = "xWVGA" ; then
2461
2462 cat >>confdefs.h <<\_ACEOF
2463 #define PLATFORM_LCDTYPE "WVGA"
2464 _ACEOF
2465
2466
2467 cat >>confdefs.h <<\_ACEOF
2468 #define PLATFORM_LCD_WIDTH 800
2469 _ACEOF
2470
2471
2472 cat >>confdefs.h <<\_ACEOF
2473 #define PLATFORM_LCD_HEIGHT 480
2474 _ACEOF
2475
2476     elif test "x$LCDTYPE" = "xWQVGA" ; then
2477
2478 cat >>confdefs.h <<\_ACEOF
2479 #define PLATFORM_LCDEYPE "WQVGA"
2480 _ACEOF
2481
2482
2483 cat >>confdefs.h <<\_ACEOF
2484 #define PLATFORM_LCD_WIDTH 400
2485 _ACEOF
2486
2487
2488 cat >>confdefs.h <<\_ACEOF
2489 #define PLATFORM_LCD_HEIGHT 240
2490 _ACEOF
2491
2492     elif test "x$LCDTYPE" = "xSQVGA" ; then
2493
2494 cat >>confdefs.h <<\_ACEOF
2495 #define PLATFORM_LCDTYPE "SQVGA"
2496 _ACEOF
2497
2498
2499 cat >>confdefs.h <<\_ACEOF
2500 #define PLATFORM_LCD_WIDTH 320
2501 _ACEOF
2502
2503
2504 cat >>confdefs.h <<\_ACEOF
2505 #define PLATFORM_LCD_HEIGHT 320
2506 _ACEOF
2507
2508     elif test "x$LCDTYPE" = "xQVGA" ; then
2509
2510 cat >>confdefs.h <<\_ACEOF
2511 #define PLATFORM_LCDTYPE "QVGA"
2512 _ACEOF
2513
2514
2515 cat >>confdefs.h <<\_ACEOF
2516 #define PLATFORM_LCD_WIDTH 240
2517 _ACEOF
2518
2519
2520 cat >>confdefs.h <<\_ACEOF
2521 #define PLATFORM_LCD_HEIGHT 320
2522 _ACEOF
2523
2524     else
2525       echo "lcdtype not specified"
2526     fi
2527
2528     if test "x$EFFECT" = "xall" ; then
2529
2530 cat >>confdefs.h <<\_ACEOF
2531 #define PLATFORM_EFFECT "all"
2532 _ACEOF
2533
2534     elif test "x$EFFECT" = "xwindow" ; then
2535
2536 cat >>confdefs.h <<\_ACEOF
2537 #define PLATFORM_EFFECT "window"
2538 _ACEOF
2539
2540     elif test "x$EFFECT" = "xwidget" ; then
2541
2542 cat >>confdefs.h <<\_ACEOF
2543 #define PLATFORM_EFFECT "widget"
2544 _ACEOF
2545
2546     else
2547
2548 cat >>confdefs.h <<\_ACEOF
2549 #define PLATFORM_EFFECT "none"
2550 _ACEOF
2551
2552     fi
2553
2554     if test "x$MMC_ROOT_PATH" != "x";  then
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PLATFORM_MMC_ROOT_PATH "$MMC_ROOT_PATH"
2558 _ACEOF
2559
2560     fi
2561
2562
2563 cat >>confdefs.h <<\_ACEOF
2564 #define EXPORT_API __attribute__((visibility("default")))
2565 _ACEOF
2566
2567
2568   else
2569    echo ""
2570   fi
2571
2572   # Check whether --enable-platform-debug was given.
2573 if test "${enable_platform_debug+set}" = set; then
2574   enableval=$enable_platform_debug;
2575 else
2576   enable_platform_debug=no
2577 fi
2578
2579
2580   if test x$enable_platform_debug = xyes; then
2581
2582 cat >>confdefs.h <<\_ACEOF
2583 #define PLATFORM_DEBUG "yes"
2584 _ACEOF
2585
2586   else
2587
2588 cat >>confdefs.h <<\_ACEOF
2589 #define PLATFORM_DEBUG "no"
2590 _ACEOF
2591
2592   fi
2593
2594   # Check whether --enable-platform-intercall was given.
2595 if test "${enable_platform_intercall+set}" = set; then
2596   enableval=$enable_platform_intercall;
2597 else
2598   enable_platform_intercall=yes
2599 fi
2600
2601
2602   have_platform_intercall=no
2603   if test x$enable_platform_intercall= xyes; then
2604
2605 cat >>confdefs.h <<\_ACEOF
2606 #define PLATFORM_INTERCALL "yes"
2607 _ACEOF
2608
2609   else
2610
2611 cat >>confdefs.h <<\_ACEOF
2612 #define PLATFORM_INTERCALL "no"
2613 _ACEOF
2614
2615   fi
2616
2617
2618
2619
2620 # Checks for programs.
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   if test -n "$CC"; then
2635   ac_cv_prog_CC="$CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642   for ac_exec_ext in '' $ac_executable_extensions; do
2643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646     break 2
2647   fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656   { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2658 else
2659   { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2661 fi
2662
2663
2664 fi
2665 if test -z "$ac_cv_prog_CC"; then
2666   ac_ct_CC=$CC
2667   # Extract the first word of "gcc", so it can be a program name with args.
2668 set dummy gcc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   if test -n "$ac_ct_CC"; then
2675   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682   for ac_exec_ext in '' $ac_executable_extensions; do
2683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684     ac_cv_prog_ac_ct_CC="gcc"
2685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695 if test -n "$ac_ct_CC"; then
2696   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2697 echo "${ECHO_T}$ac_ct_CC" >&6; }
2698 else
2699   { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2701 fi
2702
2703   if test "x$ac_ct_CC" = x; then
2704     CC=""
2705   else
2706     case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet.  If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet.  If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716     CC=$ac_ct_CC
2717   fi
2718 else
2719   CC="$ac_cv_prog_CC"
2720 fi
2721
2722 if test -z "$CC"; then
2723           if test -n "$ac_tool_prefix"; then
2724     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}cc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   if test -n "$CC"; then
2732   ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739   for ac_exec_ext in '' $ac_executable_extensions; do
2740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741     ac_cv_prog_CC="${ac_tool_prefix}cc"
2742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743     break 2
2744   fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756   { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 fi
2759
2760
2761   fi
2762 fi
2763 if test -z "$CC"; then
2764   # Extract the first word of "cc", so it can be a program name with args.
2765 set dummy cc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_CC+set}" = set; then
2769   echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771   if test -n "$CC"; then
2772   ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774   ac_prog_rejected=no
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780   for ac_exec_ext in '' $ac_executable_extensions; do
2781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2783        ac_prog_rejected=yes
2784        continue
2785      fi
2786     ac_cv_prog_CC="cc"
2787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 if test $ac_prog_rejected = yes; then
2795   # We found a bogon in the path, so make sure we never use it.
2796   set dummy $ac_cv_prog_CC
2797   shift
2798   if test $# != 0; then
2799     # We chose a different compiler from the bogus one.
2800     # However, it has the same basename, so the bogon will be chosen
2801     # first if we set CC to just the basename; use the full file name.
2802     shift
2803     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2804   fi
2805 fi
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810   { echo "$as_me:$LINENO: result: $CC" >&5
2811 echo "${ECHO_T}$CC" >&6; }
2812 else
2813   { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2815 fi
2816
2817
2818 fi
2819 if test -z "$CC"; then
2820   if test -n "$ac_tool_prefix"; then
2821   for ac_prog in cl.exe
2822   do
2823     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_CC+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   if test -n "$CC"; then
2831   ac_cv_prog_CC="$CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836   IFS=$as_save_IFS
2837   test -z "$as_dir" && as_dir=.
2838   for ac_exec_ext in '' $ac_executable_extensions; do
2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 CC=$ac_cv_prog_CC
2851 if test -n "$CC"; then
2852   { echo "$as_me:$LINENO: result: $CC" >&5
2853 echo "${ECHO_T}$CC" >&6; }
2854 else
2855   { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2858
2859
2860     test -n "$CC" && break
2861   done
2862 fi
2863 if test -z "$CC"; then
2864   ac_ct_CC=$CC
2865   for ac_prog in cl.exe
2866 do
2867   # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2872   echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874   if test -n "$ac_ct_CC"; then
2875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882   for ac_exec_ext in '' $ac_executable_extensions; do
2883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884     ac_cv_prog_ac_ct_CC="$ac_prog"
2885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2897 echo "${ECHO_T}$ac_ct_CC" >&6; }
2898 else
2899   { echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6; }
2901 fi
2902
2903
2904   test -n "$ac_ct_CC" && break
2905 done
2906
2907   if test "x$ac_ct_CC" = x; then
2908     CC=""
2909   else
2910     case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2913 whose name does not start with the host triplet.  If you think this
2914 configuration is useful to you, please write to autoconf@gnu.org." >&5
2915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2916 whose name does not start with the host triplet.  If you think this
2917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920     CC=$ac_ct_CC
2921   fi
2922 fi
2923
2924 fi
2925
2926
2927 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: no acceptable C compiler found in \$PATH
2930 See \`config.log' for more details." >&2;}
2931    { (exit 1); exit 1; }; }
2932
2933 # Provide some information about the compiler.
2934 echo "$as_me:$LINENO: checking for C compiler version" >&5
2935 ac_compiler=`set X $ac_compile; echo $2`
2936 { (ac_try="$ac_compiler --version >&5"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compiler --version >&5") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }
2946 { (ac_try="$ac_compiler -v >&5"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compiler -v >&5") 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }
2956 { (ac_try="$ac_compiler -V >&5"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_compiler -V >&5") 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }
2966
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 ac_clean_files_save=$ac_clean_files
2983 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2986 # of exeext.
2987 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2988 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2989 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990 #
2991 # List of possible output files, starting from the most likely.
2992 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2993 # only as a last resort.  b.out is created by i960 compilers.
2994 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2995 #
2996 # The IRIX 6 linker writes into existing files which may not be
2997 # executable, retaining their permissions.  Remove them first so a
2998 # subsequent execution test works.
2999 ac_rmfiles=
3000 for ac_file in $ac_files
3001 do
3002   case $ac_file in
3003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3004     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3005   esac
3006 done
3007 rm -f $ac_rmfiles
3008
3009 if { (ac_try="$ac_link_default"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_link_default") 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; then
3019   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3020 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3021 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3022 # so that the user can short-circuit this test for compilers unknown to
3023 # Autoconf.
3024 for ac_file in $ac_files ''
3025 do
3026   test -f "$ac_file" || continue
3027   case $ac_file in
3028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3029         ;;
3030     [ab].out )
3031         # We found the default executable, but exeext='' is most
3032         # certainly right.
3033         break;;
3034     *.* )
3035         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3036         then :; else
3037            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038         fi
3039         # We set ac_cv_exeext here because the later test for it is not
3040         # safe: cross compilers may not add the suffix if given an `-o'
3041         # argument, so we may need to know it at that point already.
3042         # Even if this section looks crufty: it has the advantage of
3043         # actually working.
3044         break;;
3045     * )
3046         break;;
3047   esac
3048 done
3049 test "$ac_cv_exeext" = no && ac_cv_exeext=
3050
3051 else
3052   ac_file=''
3053 fi
3054
3055 { echo "$as_me:$LINENO: result: $ac_file" >&5
3056 echo "${ECHO_T}$ac_file" >&6; }
3057 if test -z "$ac_file"; then
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: C compiler cannot create executables
3064 See \`config.log' for more details." >&2;}
3065    { (exit 77); exit 77; }; }
3066 fi
3067
3068 ac_exeext=$ac_cv_exeext
3069
3070 # Check that the compiler produces executables we can run.  If not, either
3071 # the compiler is broken, or we cross compile.
3072 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3075 # If not cross compiling, check that we can run a simple program.
3076 if test "$cross_compiling" != yes; then
3077   if { ac_try='./$ac_file'
3078   { (case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; }; then
3087     cross_compiling=no
3088   else
3089     if test "$cross_compiling" = maybe; then
3090         cross_compiling=yes
3091     else
3092         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3093 If you meant to cross compile, use \`--host'.
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: cannot run C compiled programs.
3096 If you meant to cross compile, use \`--host'.
3097 See \`config.log' for more details." >&2;}
3098    { (exit 1); exit 1; }; }
3099     fi
3100   fi
3101 fi
3102 { echo "$as_me:$LINENO: result: yes" >&5
3103 echo "${ECHO_T}yes" >&6; }
3104
3105 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3106 ac_clean_files=$ac_clean_files_save
3107 # Check that the compiler produces executables we can run.  If not, either
3108 # the compiler is broken, or we cross compile.
3109 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3110 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3111 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3112 echo "${ECHO_T}$cross_compiling" >&6; }
3113
3114 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3115 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3116 if { (ac_try="$ac_link"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_link") 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; then
3126   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3127 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3128 # work properly (i.e., refer to `conftest.exe'), while it won't with
3129 # `rm'.
3130 for ac_file in conftest.exe conftest conftest.*; do
3131   test -f "$ac_file" || continue
3132   case $ac_file in
3133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3134     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135           break;;
3136     * ) break;;
3137   esac
3138 done
3139 else
3140   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details." >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 rm -f conftest$ac_cv_exeext
3148 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3149 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3150
3151 rm -f conftest.$ac_ext
3152 EXEEXT=$ac_cv_exeext
3153 ac_exeext=$EXEEXT
3154 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3155 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3156 if test "${ac_cv_objext+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.o conftest.obj
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; then
3185   for ac_file in conftest.o conftest.obj conftest.*; do
3186   test -f "$ac_file" || continue;
3187   case $ac_file in
3188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3189     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190        break;;
3191   esac
3192 done
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3200 See \`config.log' for more details." >&2;}
3201    { (exit 1); exit 1; }; }
3202 fi
3203
3204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3207 echo "${ECHO_T}$ac_cv_objext" >&6; }
3208 OBJEXT=$ac_cv_objext
3209 ac_objext=$OBJEXT
3210 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3211 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3212 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225 #ifndef __GNUC__
3226        choke me
3227 #endif
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_compile") 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } && {
3247          test -z "$ac_c_werror_flag" ||
3248          test ! -s conftest.err
3249        } && test -s conftest.$ac_objext; then
3250   ac_compiler_gnu=yes
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255         ac_compiler_gnu=no
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3260
3261 fi
3262 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3264 GCC=`test $ac_compiler_gnu = yes && echo yes`
3265 ac_test_CFLAGS=${CFLAGS+set}
3266 ac_save_CFLAGS=$CFLAGS
3267 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3268 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_g+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_save_c_werror_flag=$ac_c_werror_flag
3273    ac_c_werror_flag=yes
3274    ac_cv_prog_cc_g=no
3275    CFLAGS="-g"
3276    cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_compile") 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } && {
3305          test -z "$ac_c_werror_flag" ||
3306          test ! -s conftest.err
3307        } && test -s conftest.$ac_objext; then
3308   ac_cv_prog_cc_g=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313         CFLAGS=""
3314       cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_compile") 2>conftest.er1
3337   ac_status=$?
3338   grep -v '^ *+' conftest.er1 >conftest.err
3339   rm -f conftest.er1
3340   cat conftest.err >&5
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); } && {
3343          test -z "$ac_c_werror_flag" ||
3344          test ! -s conftest.err
3345        } && test -s conftest.$ac_objext; then
3346   :
3347 else
3348   echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351         ac_c_werror_flag=$ac_save_c_werror_flag
3352          CFLAGS="-g"
3353          cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h.  */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h.  */
3359
3360 int
3361 main ()
3362 {
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_compile") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } && {
3382          test -z "$ac_c_werror_flag" ||
3383          test ! -s conftest.err
3384        } && test -s conftest.$ac_objext; then
3385   ac_cv_prog_cc_g=yes
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390
3391 fi
3392
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 fi
3395
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400    ac_c_werror_flag=$ac_save_c_werror_flag
3401 fi
3402 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3403 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3404 if test "$ac_test_CFLAGS" = set; then
3405   CFLAGS=$ac_save_CFLAGS
3406 elif test $ac_cv_prog_cc_g = yes; then
3407   if test "$GCC" = yes; then
3408     CFLAGS="-g -O2"
3409   else
3410     CFLAGS="-g"
3411   fi
3412 else
3413   if test "$GCC" = yes; then
3414     CFLAGS="-O2"
3415   else
3416     CFLAGS=
3417   fi
3418 fi
3419 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3420 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_cc_c89+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   ac_cv_prog_cc_c89=no
3425 ac_save_CC=$CC
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #include <stdarg.h>
3433 #include <stdio.h>
3434 #include <sys/types.h>
3435 #include <sys/stat.h>
3436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3437 struct buf { int x; };
3438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439 static char *e (p, i)
3440      char **p;
3441      int i;
3442 {
3443   return p[i];
3444 }
3445 static char *f (char * (*g) (char **, int), char **p, ...)
3446 {
3447   char *s;
3448   va_list v;
3449   va_start (v,p);
3450   s = g (p, va_arg (v,int));
3451   va_end (v);
3452   return s;
3453 }
3454
3455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3456    function prototypes and stuff, but not '\xHH' hex character constants.
3457    These don't provoke an error unfortunately, instead are silently treated
3458    as 'x'.  The following induces an error, until -std is added to get
3459    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3460    array size at least.  It's necessary to write '\x00'==0 to get something
3461    that's true only with -std.  */
3462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463
3464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3465    inside strings and character constants.  */
3466 #define FOO(x) 'x'
3467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468
3469 int test (int i, double x);
3470 struct s1 {int (*f) (int a);};
3471 struct s2 {int (*f) (double a);};
3472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473 int argc;
3474 char **argv;
3475 int
3476 main ()
3477 {
3478 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3485 do
3486   CC="$ac_save_CC $ac_arg"
3487   rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_compile") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } && {
3501          test -z "$ac_c_werror_flag" ||
3502          test ! -s conftest.err
3503        } && test -s conftest.$ac_objext; then
3504   ac_cv_prog_cc_c89=$ac_arg
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext
3513   test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 done
3515 rm -f conftest.$ac_ext
3516 CC=$ac_save_CC
3517
3518 fi
3519 # AC_CACHE_VAL
3520 case "x$ac_cv_prog_cc_c89" in
3521   x)
3522     { echo "$as_me:$LINENO: result: none needed" >&5
3523 echo "${ECHO_T}none needed" >&6; } ;;
3524   xno)
3525     { echo "$as_me:$LINENO: result: unsupported" >&5
3526 echo "${ECHO_T}unsupported" >&6; } ;;
3527   *)
3528     CC="$CC $ac_cv_prog_cc_c89"
3529     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3530 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3531 esac
3532
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 DEPDIR="${am__leading_dot}deps"
3540
3541 ac_config_commands="$ac_config_commands depfiles"
3542
3543
3544 am_make=${MAKE-make}
3545 cat > confinc << 'END'
3546 am__doit:
3547         @echo done
3548 .PHONY: am__doit
3549 END
3550 # If we don't find an include directive, just comment out the code.
3551 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3552 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3553 am__include="#"
3554 am__quote=
3555 _am_result=none
3556 # First try GNU make style include.
3557 echo "include confinc" > confmf
3558 # We grep out `Entering directory' and `Leaving directory'
3559 # messages which can occur if `w' ends up in MAKEFLAGS.
3560 # In particular we don't look at `^make:' because GNU make might
3561 # be invoked under some other name (usually "gmake"), in which
3562 # case it prints its new name instead of `make'.
3563 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3564    am__include=include
3565    am__quote=
3566    _am_result=GNU
3567 fi
3568 # Now try BSD make style include.
3569 if test "$am__include" = "#"; then
3570    echo '.include "confinc"' > confmf
3571    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3572       am__include=.include
3573       am__quote="\""
3574       _am_result=BSD
3575    fi
3576 fi
3577
3578
3579 { echo "$as_me:$LINENO: result: $_am_result" >&5
3580 echo "${ECHO_T}$_am_result" >&6; }
3581 rm -f confinc confmf
3582
3583 # Check whether --enable-dependency-tracking was given.
3584 if test "${enable_dependency_tracking+set}" = set; then
3585   enableval=$enable_dependency_tracking;
3586 fi
3587
3588 if test "x$enable_dependency_tracking" != xno; then
3589   am_depcomp="$ac_aux_dir/depcomp"
3590   AMDEPBACKSLASH='\'
3591 fi
3592  if test "x$enable_dependency_tracking" != xno; then
3593   AMDEP_TRUE=
3594   AMDEP_FALSE='#'
3595 else
3596   AMDEP_TRUE='#'
3597   AMDEP_FALSE=
3598 fi
3599
3600
3601
3602 depcc="$CC"   am_compiler_list=
3603
3604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3610   # We make a subdir and do the tests there.  Otherwise we can end up
3611   # making bogus files that we don't know about and never remove.  For
3612   # instance it was reported that on HP-UX the gcc test will end up
3613   # making a dummy file named `D' -- because `-MD' means `put the output
3614   # in D'.
3615   mkdir conftest.dir
3616   # Copy depcomp to subdir because otherwise we won't find it if we're
3617   # using a relative directory.
3618   cp "$am_depcomp" conftest.dir
3619   cd conftest.dir
3620   # We will build objects and dependencies in a subdirectory because
3621   # it helps to detect inapplicable dependency modes.  For instance
3622   # both Tru64's cc and ICC support -MD to output dependencies as a
3623   # side effect of compilation, but ICC will put the dependencies in
3624   # the current directory while Tru64 will put them in the object
3625   # directory.
3626   mkdir sub
3627
3628   am_cv_CC_dependencies_compiler_type=none
3629   if test "$am_compiler_list" = ""; then
3630      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3631   fi
3632   for depmode in $am_compiler_list; do
3633     # Setup a source with many dependencies, because some compilers
3634     # like to wrap large dependency lists on column 80 (with \), and
3635     # we should not choose a depcomp mode which is confused by this.
3636     #
3637     # We need to recreate these files for each test, as the compiler may
3638     # overwrite some of them when testing with obscure command lines.
3639     # This happens at least with the AIX C compiler.
3640     : > sub/conftest.c
3641     for i in 1 2 3 4 5 6; do
3642       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3643       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3644       # Solaris 8's {/usr,}/bin/sh.
3645       touch sub/conftst$i.h
3646     done
3647     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3648
3649     case $depmode in
3650     nosideeffect)
3651       # after this tag, mechanisms are not by side-effect, so they'll
3652       # only be used when explicitly requested
3653       if test "x$enable_dependency_tracking" = xyes; then
3654         continue
3655       else
3656         break
3657       fi
3658       ;;
3659     none) break ;;
3660     esac
3661     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3662     # mode.  It turns out that the SunPro C++ compiler does not properly
3663     # handle `-M -o', and we need to detect this.
3664     if depmode=$depmode \
3665        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3668          >/dev/null 2>conftest.err &&
3669        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673       # icc doesn't choke on unknown options, it will just issue warnings
3674       # or remarks (even with -Werror).  So we grep stderr for any message
3675       # that says an option was ignored or not supported.
3676       # When given -MP, icc 7.0 and 7.1 complain thusly:
3677       #   icc: Command line warning: ignoring option '-M'; no argument required
3678       # The diagnosis changed in icc 8.0:
3679       #   icc: Command line remark: option '-MP' not supported
3680       if (grep 'ignoring option' conftest.err ||
3681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682         am_cv_CC_dependencies_compiler_type=$depmode
3683         break
3684       fi
3685     fi
3686   done
3687
3688   cd ..
3689   rm -rf conftest.dir
3690 else
3691   am_cv_CC_dependencies_compiler_type=none
3692 fi
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3698
3699  if
3700   test "x$enable_dependency_tracking" != xno \
3701   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3702   am__fastdepCC_TRUE=
3703   am__fastdepCC_FALSE='#'
3704 else
3705   am__fastdepCC_TRUE='#'
3706   am__fastdepCC_FALSE=
3707 fi
3708
3709
3710 # Find a good install program.  We prefer a C program (faster),
3711 # so one script is as good as another.  But avoid the broken or
3712 # incompatible versions:
3713 # SysV /etc/install, /usr/sbin/install
3714 # SunOS /usr/etc/install
3715 # IRIX /sbin/install
3716 # AIX /bin/install
3717 # AmigaOS /C/install, which installs bootblocks on floppy discs
3718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3721 # OS/2's system install, which has a completely different semantic
3722 # ./install, which can be erroneously created by make from ./install.sh.
3723 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3724 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3725 if test -z "$INSTALL"; then
3726 if test "${ac_cv_path_install+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   # Account for people who put trailing slashes in PATH elements.
3735 case $as_dir/ in
3736   ./ | .// | /cC/* | \
3737   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3738   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3739   /usr/ucb/* ) ;;
3740   *)
3741     # OSF1 and SCO ODT 3.0 have their own names for install.
3742     # Don't use installbsd from OSF since it installs stuff as root
3743     # by default.
3744     for ac_prog in ginstall scoinst install; do
3745       for ac_exec_ext in '' $ac_executable_extensions; do
3746         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3747           if test $ac_prog = install &&
3748             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3749             # AIX install.  It has an incompatible calling convention.
3750             :
3751           elif test $ac_prog = install &&
3752             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3753             # program-specific install script used by HP pwplus--don't use.
3754             :
3755           else
3756             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3757             break 3
3758           fi
3759         fi
3760       done
3761     done
3762     ;;
3763 esac
3764 done
3765 IFS=$as_save_IFS
3766
3767
3768 fi
3769   if test "${ac_cv_path_install+set}" = set; then
3770     INSTALL=$ac_cv_path_install
3771   else
3772     # As a last resort, use the slow shell script.  Don't cache a
3773     # value for INSTALL within a source directory, because that will
3774     # break other packages using the cache if that directory is
3775     # removed, or if the value is a relative name.
3776     INSTALL=$ac_install_sh
3777   fi
3778 fi
3779 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3780 echo "${ECHO_T}$INSTALL" >&6; }
3781
3782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3783 # It thinks the first close brace ends the variable substitution.
3784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3785
3786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3787
3788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3789
3790 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3792 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   cat >conftest.make <<\_ACEOF
3797 SHELL = /bin/sh
3798 all:
3799         @echo '@@@%%%=$(MAKE)=@@@%%%'
3800 _ACEOF
3801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3803   *@@@%%%=?*=@@@%%%*)
3804     eval ac_cv_prog_make_${ac_make}_set=yes;;
3805   *)
3806     eval ac_cv_prog_make_${ac_make}_set=no;;
3807 esac
3808 rm -f conftest.make
3809 fi
3810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3811   { echo "$as_me:$LINENO: result: yes" >&5
3812 echo "${ECHO_T}yes" >&6; }
3813   SET_MAKE=
3814 else
3815   { echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6; }
3817   SET_MAKE="MAKE=${MAKE-make}"
3818 fi
3819
3820 case `pwd` in
3821   *\ * | *\     *)
3822     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3823 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3824 esac
3825
3826
3827
3828 macro_version='2.2.4'
3829 macro_revision='1.2976'
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843 ltmain="$ac_aux_dir/ltmain.sh"
3844
3845 # Make sure we can run config.sub.
3846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3847   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3848 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3849    { (exit 1); exit 1; }; }
3850
3851 { echo "$as_me:$LINENO: checking build system type" >&5
3852 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3853 if test "${ac_cv_build+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   ac_build_alias=$build_alias
3857 test "x$ac_build_alias" = x &&
3858   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3859 test "x$ac_build_alias" = x &&
3860   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3861 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3862    { (exit 1); exit 1; }; }
3863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3864   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3865 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3866    { (exit 1); exit 1; }; }
3867
3868 fi
3869 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3870 echo "${ECHO_T}$ac_cv_build" >&6; }
3871 case $ac_cv_build in
3872 *-*-*) ;;
3873 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3874 echo "$as_me: error: invalid value of canonical build" >&2;}
3875    { (exit 1); exit 1; }; };;
3876 esac
3877 build=$ac_cv_build
3878 ac_save_IFS=$IFS; IFS='-'
3879 set x $ac_cv_build
3880 shift
3881 build_cpu=$1
3882 build_vendor=$2
3883 shift; shift
3884 # Remember, the first character of IFS is used to create $*,
3885 # except with old shells:
3886 build_os=$*
3887 IFS=$ac_save_IFS
3888 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3889
3890
3891 { echo "$as_me:$LINENO: checking host system type" >&5
3892 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3893 if test "${ac_cv_host+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   if test "x$host_alias" = x; then
3897   ac_cv_host=$ac_cv_build
3898 else
3899   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3900     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3901 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3902    { (exit 1); exit 1; }; }
3903 fi
3904
3905 fi
3906 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3907 echo "${ECHO_T}$ac_cv_host" >&6; }
3908 case $ac_cv_host in
3909 *-*-*) ;;
3910 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3911 echo "$as_me: error: invalid value of canonical host" >&2;}
3912    { (exit 1); exit 1; }; };;
3913 esac
3914 host=$ac_cv_host
3915 ac_save_IFS=$IFS; IFS='-'
3916 set x $ac_cv_host
3917 shift
3918 host_cpu=$1
3919 host_vendor=$2
3920 shift; shift
3921 # Remember, the first character of IFS is used to create $*,
3922 # except with old shells:
3923 host_os=$*
3924 IFS=$ac_save_IFS
3925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3926
3927
3928 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3929 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_SED+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3934      for ac_i in 1 2 3 4 5 6 7; do
3935        ac_script="$ac_script$as_nl$ac_script"
3936      done
3937      echo "$ac_script" | sed 99q >conftest.sed
3938      $as_unset ac_script || ac_script=
3939      # Extract the first word of "sed gsed" to use in msg output
3940 if test -z "$SED"; then
3941 set dummy sed gsed; ac_prog_name=$2
3942 if test "${ac_cv_path_SED+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   ac_path_SED_found=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952   for ac_prog in sed gsed; do
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3955     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3956     # Check for GNU ac_path_SED and select it if it is found.
3957   # Check for GNU $ac_path_SED
3958 case `"$ac_path_SED" --version 2>&1` in
3959 *GNU*)
3960   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3961 *)
3962   ac_count=0
3963   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3964   while :
3965   do
3966     cat "conftest.in" "conftest.in" >"conftest.tmp"
3967     mv "conftest.tmp" "conftest.in"
3968     cp "conftest.in" "conftest.nl"
3969     echo '' >> "conftest.nl"
3970     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972     ac_count=`expr $ac_count + 1`
3973     if test $ac_count -gt ${ac_path_SED_max-0}; then
3974       # Best one so far, save it but keep looking for a better one
3975       ac_cv_path_SED="$ac_path_SED"
3976       ac_path_SED_max=$ac_count
3977     fi
3978     # 10*(2^10) chars as input seems more than enough
3979     test $ac_count -gt 10 && break
3980   done
3981   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 esac
3983
3984
3985     $ac_path_SED_found && break 3
3986   done
3987 done
3988
3989 done
3990 IFS=$as_save_IFS
3991
3992
3993 fi
3994
3995 SED="$ac_cv_path_SED"
3996 if test -z "$SED"; then
3997   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3998 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3999    { (exit 1); exit 1; }; }
4000 fi
4001
4002 else
4003   ac_cv_path_SED=$SED
4004 fi
4005
4006 fi
4007 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4008 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4009  SED="$ac_cv_path_SED"
4010   rm -f conftest.sed
4011
4012 test -z "$SED" && SED=sed
4013 Xsed="$SED -e 1s/^X//"
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4026 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4027 if test "${ac_cv_path_GREP+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   # Extract the first word of "grep ggrep" to use in msg output
4031 if test -z "$GREP"; then
4032 set dummy grep ggrep; ac_prog_name=$2
4033 if test "${ac_cv_path_GREP+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   ac_path_GREP_found=false
4037 # Loop through the user's path and test for each of PROGNAME-LIST
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040 do
4041   IFS=$as_save_IFS
4042   test -z "$as_dir" && as_dir=.
4043   for ac_prog in grep ggrep; do
4044   for ac_exec_ext in '' $ac_executable_extensions; do
4045     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4046     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4047     # Check for GNU ac_path_GREP and select it if it is found.
4048   # Check for GNU $ac_path_GREP
4049 case `"$ac_path_GREP" --version 2>&1` in
4050 *GNU*)
4051   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4052 *)
4053   ac_count=0
4054   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4055   while :
4056   do
4057     cat "conftest.in" "conftest.in" >"conftest.tmp"
4058     mv "conftest.tmp" "conftest.in"
4059     cp "conftest.in" "conftest.nl"
4060     echo 'GREP' >> "conftest.nl"
4061     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4062     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4063     ac_count=`expr $ac_count + 1`
4064     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4065       # Best one so far, save it but keep looking for a better one
4066       ac_cv_path_GREP="$ac_path_GREP"
4067       ac_path_GREP_max=$ac_count
4068     fi
4069     # 10*(2^10) chars as input seems more than enough
4070     test $ac_count -gt 10 && break
4071   done
4072   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073 esac
4074
4075
4076     $ac_path_GREP_found && break 3
4077   done
4078 done
4079
4080 done
4081 IFS=$as_save_IFS
4082
4083
4084 fi
4085
4086 GREP="$ac_cv_path_GREP"
4087 if test -z "$GREP"; then
4088   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4089 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4090    { (exit 1); exit 1; }; }
4091 fi
4092
4093 else
4094   ac_cv_path_GREP=$GREP
4095 fi
4096
4097
4098 fi
4099 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4100 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4101  GREP="$ac_cv_path_GREP"
4102
4103
4104 { echo "$as_me:$LINENO: checking for egrep" >&5
4105 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4106 if test "${ac_cv_path_EGREP+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4110    then ac_cv_path_EGREP="$GREP -E"
4111    else
4112      # Extract the first word of "egrep" to use in msg output
4113 if test -z "$EGREP"; then
4114 set dummy egrep; ac_prog_name=$2
4115 if test "${ac_cv_path_EGREP+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   ac_path_EGREP_found=false
4119 # Loop through the user's path and test for each of PROGNAME-LIST
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125   for ac_prog in egrep; do
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4128     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4129     # Check for GNU ac_path_EGREP and select it if it is found.
4130   # Check for GNU $ac_path_EGREP
4131 case `"$ac_path_EGREP" --version 2>&1` in
4132 *GNU*)
4133   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4134 *)
4135   ac_count=0
4136   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4137   while :
4138   do
4139     cat "conftest.in" "conftest.in" >"conftest.tmp"
4140     mv "conftest.tmp" "conftest.in"
4141     cp "conftest.in" "conftest.nl"
4142     echo 'EGREP' >> "conftest.nl"
4143     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145     ac_count=`expr $ac_count + 1`
4146     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4147       # Best one so far, save it but keep looking for a better one
4148       ac_cv_path_EGREP="$ac_path_EGREP"
4149       ac_path_EGREP_max=$ac_count
4150     fi
4151     # 10*(2^10) chars as input seems more than enough
4152     test $ac_count -gt 10 && break
4153   done
4154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157
4158     $ac_path_EGREP_found && break 3
4159   done
4160 done
4161
4162 done
4163 IFS=$as_save_IFS
4164
4165
4166 fi
4167
4168 EGREP="$ac_cv_path_EGREP"
4169 if test -z "$EGREP"; then
4170   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4171 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4172    { (exit 1); exit 1; }; }
4173 fi
4174
4175 else
4176   ac_cv_path_EGREP=$EGREP
4177 fi
4178
4179
4180    fi
4181 fi
4182 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4183 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4184  EGREP="$ac_cv_path_EGREP"
4185
4186
4187 { echo "$as_me:$LINENO: checking for fgrep" >&5
4188 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4189 if test "${ac_cv_path_FGREP+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4193    then ac_cv_path_FGREP="$GREP -F"
4194    else
4195      # Extract the first word of "fgrep" to use in msg output
4196 if test -z "$FGREP"; then
4197 set dummy fgrep; ac_prog_name=$2
4198 if test "${ac_cv_path_FGREP+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_path_FGREP_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_prog in fgrep; do
4209   for ac_exec_ext in '' $ac_executable_extensions; do
4210     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4211     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4212     # Check for GNU ac_path_FGREP and select it if it is found.
4213   # Check for GNU $ac_path_FGREP
4214 case `"$ac_path_FGREP" --version 2>&1` in
4215 *GNU*)
4216   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4217 *)
4218   ac_count=0
4219   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4220   while :
4221   do
4222     cat "conftest.in" "conftest.in" >"conftest.tmp"
4223     mv "conftest.tmp" "conftest.in"
4224     cp "conftest.in" "conftest.nl"
4225     echo 'FGREP' >> "conftest.nl"
4226     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228     ac_count=`expr $ac_count + 1`
4229     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4230       # Best one so far, save it but keep looking for a better one
4231       ac_cv_path_FGREP="$ac_path_FGREP"
4232       ac_path_FGREP_max=$ac_count
4233     fi
4234     # 10*(2^10) chars as input seems more than enough
4235     test $ac_count -gt 10 && break
4236   done
4237   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 esac
4239
4240
4241     $ac_path_FGREP_found && break 3
4242   done
4243 done
4244
4245 done
4246 IFS=$as_save_IFS
4247
4248
4249 fi
4250
4251 FGREP="$ac_cv_path_FGREP"
4252 if test -z "$FGREP"; then
4253   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4254 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4255    { (exit 1); exit 1; }; }
4256 fi
4257
4258 else
4259   ac_cv_path_FGREP=$FGREP
4260 fi
4261
4262
4263    fi
4264 fi
4265 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4266 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4267  FGREP="$ac_cv_path_FGREP"
4268
4269
4270 test -z "$GREP" && GREP=grep
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290 # Check whether --with-gnu-ld was given.
4291 if test "${with_gnu_ld+set}" = set; then
4292   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4293 else
4294   with_gnu_ld=no
4295 fi
4296
4297 ac_prog=ld
4298 if test "$GCC" = yes; then
4299   # Check if gcc -print-prog-name=ld gives a path.
4300   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4301 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4302   case $host in
4303   *-*-mingw*)
4304     # gcc leaves a trailing carriage return which upsets mingw
4305     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4306   *)
4307     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4308   esac
4309   case $ac_prog in
4310     # Accept absolute paths.
4311     [\\/]* | ?:[\\/]*)
4312       re_direlt='/[^/][^/]*/\.\./'
4313       # Canonicalize the pathname of ld
4314       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4315       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4316         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4317       done
4318       test -z "$LD" && LD="$ac_prog"
4319       ;;
4320   "")
4321     # If it fails, then pretend we aren't using GCC.
4322     ac_prog=ld
4323     ;;
4324   *)
4325     # If it is relative, then search for the first ld in PATH.
4326     with_gnu_ld=unknown
4327     ;;
4328   esac
4329 elif test "$with_gnu_ld" = yes; then
4330   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4331 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4332 else
4333   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4334 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4335 fi
4336 if test "${lt_cv_path_LD+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   if test -z "$LD"; then
4340   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4341   for ac_dir in $PATH; do
4342     IFS="$lt_save_ifs"
4343     test -z "$ac_dir" && ac_dir=.
4344     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4345       lt_cv_path_LD="$ac_dir/$ac_prog"
4346       # Check to see if the program is GNU ld.  I'd rather use --version,
4347       # but apparently some variants of GNU ld only accept -v.
4348       # Break only if it was the GNU/non-GNU ld that we prefer.
4349       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4350       *GNU* | *'with BFD'*)
4351         test "$with_gnu_ld" != no && break
4352         ;;
4353       *)
4354         test "$with_gnu_ld" != yes && break
4355         ;;
4356       esac
4357     fi
4358   done
4359   IFS="$lt_save_ifs"
4360 else
4361   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4362 fi
4363 fi
4364
4365 LD="$lt_cv_path_LD"
4366 if test -n "$LD"; then
4367   { echo "$as_me:$LINENO: result: $LD" >&5
4368 echo "${ECHO_T}$LD" >&6; }
4369 else
4370   { echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6; }
4372 fi
4373 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4374 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4375    { (exit 1); exit 1; }; }
4376 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4377 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4378 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4382 case `$LD -v 2>&1 </dev/null` in
4383 *GNU* | *'with BFD'*)
4384   lt_cv_prog_gnu_ld=yes
4385   ;;
4386 *)
4387   lt_cv_prog_gnu_ld=no
4388   ;;
4389 esac
4390 fi
4391 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4392 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4393 with_gnu_ld=$lt_cv_prog_gnu_ld
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4404 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4405 if test "${lt_cv_path_NM+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   if test -n "$NM"; then
4409   # Let the user override the test.
4410   lt_cv_path_NM="$NM"
4411 else
4412   lt_nm_to_check="${ac_tool_prefix}nm"
4413   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4414     lt_nm_to_check="$lt_nm_to_check nm"
4415   fi
4416   for lt_tmp_nm in $lt_nm_to_check; do
4417     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4418     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4419       IFS="$lt_save_ifs"
4420       test -z "$ac_dir" && ac_dir=.
4421       tmp_nm="$ac_dir/$lt_tmp_nm"
4422       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4423         # Check to see if the nm accepts a BSD-compat flag.
4424         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4425         #   nm: unknown option "B" ignored
4426         # Tru64's nm complains that /dev/null is an invalid object file
4427         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4428         */dev/null* | *'Invalid file or object type'*)
4429           lt_cv_path_NM="$tmp_nm -B"
4430           break
4431           ;;
4432         *)
4433           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4434           */dev/null*)
4435             lt_cv_path_NM="$tmp_nm -p"
4436             break
4437             ;;
4438           *)
4439             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4440             continue # so that we can try to find one that supports BSD flags
4441             ;;
4442           esac
4443           ;;
4444         esac
4445       fi
4446     done
4447     IFS="$lt_save_ifs"
4448   done
4449   : ${lt_cv_path_NM=no}
4450 fi
4451 fi
4452 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4453 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4454 if test "$lt_cv_path_NM" != "no"; then
4455   NM="$lt_cv_path_NM"
4456 else
4457   # Didn't find any BSD compatible name lister, look for dumpbin.
4458   if test -n "$ac_tool_prefix"; then
4459   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4460   do
4461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   if test -n "$DUMPBIN"; then
4469   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 DUMPBIN=$ac_cv_prog_DUMPBIN
4489 if test -n "$DUMPBIN"; then
4490   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4491 echo "${ECHO_T}$DUMPBIN" >&6; }
4492 else
4493   { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 fi
4496
4497
4498     test -n "$DUMPBIN" && break
4499   done
4500 fi
4501 if test -z "$DUMPBIN"; then
4502   ac_ct_DUMPBIN=$DUMPBIN
4503   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4504 do
4505   # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   if test -n "$ac_ct_DUMPBIN"; then
4513   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520   for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4529
4530 fi
4531 fi
4532 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4533 if test -n "$ac_ct_DUMPBIN"; then
4534   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4535 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4536 else
4537   { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4539 fi
4540
4541
4542   test -n "$ac_ct_DUMPBIN" && break
4543 done
4544
4545   if test "x$ac_ct_DUMPBIN" = x; then
4546     DUMPBIN=":"
4547   else
4548     case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4551 whose name does not start with the host triplet.  If you think this
4552 configuration is useful to you, please write to autoconf@gnu.org." >&5
4553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4554 whose name does not start with the host triplet.  If you think this
4555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558     DUMPBIN=$ac_ct_DUMPBIN
4559   fi
4560 fi
4561
4562
4563   if test "$DUMPBIN" != ":"; then
4564     NM="$DUMPBIN"
4565   fi
4566 fi
4567 test -z "$NM" && NM=nm
4568
4569
4570
4571
4572
4573
4574 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4575 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4576 if test "${lt_cv_nm_interface+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   lt_cv_nm_interface="BSD nm"
4580   echo "int some_variable = 0;" > conftest.$ac_ext
4581   (eval echo "\"\$as_me:4581: $ac_compile\"" >&5)
4582   (eval "$ac_compile" 2>conftest.err)
4583   cat conftest.err >&5
4584   (eval echo "\"\$as_me:4584: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4585   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4586   cat conftest.err >&5
4587   (eval echo "\"\$as_me:4587: output\"" >&5)
4588   cat conftest.out >&5
4589   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4590     lt_cv_nm_interface="MS dumpbin"
4591   fi
4592   rm -f conftest*
4593 fi
4594 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4595 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4596
4597 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4598 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4599 LN_S=$as_ln_s
4600 if test "$LN_S" = "ln -s"; then
4601   { echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6; }
4603 else
4604   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4605 echo "${ECHO_T}no, using $LN_S" >&6; }
4606 fi
4607
4608 # find the maximum length of command line arguments
4609 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4610 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4611 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614     i=0
4615   teststring="ABCD"
4616
4617   case $build_os in
4618   msdosdjgpp*)
4619     # On DJGPP, this test can blow up pretty badly due to problems in libc
4620     # (any single argument exceeding 2000 bytes causes a buffer overrun
4621     # during glob expansion).  Even if it were fixed, the result of this
4622     # check would be larger than it should be.
4623     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4624     ;;
4625
4626   gnu*)
4627     # Under GNU Hurd, this test is not required because there is
4628     # no limit to the length of command line arguments.
4629     # Libtool will interpret -1 as no limit whatsoever
4630     lt_cv_sys_max_cmd_len=-1;
4631     ;;
4632
4633   cygwin* | mingw*)
4634     # On Win9x/ME, this test blows up -- it succeeds, but takes
4635     # about 5 minutes as the teststring grows exponentially.
4636     # Worse, since 9x/ME are not pre-emptively multitasking,
4637     # you end up with a "frozen" computer, even though with patience
4638     # the test eventually succeeds (with a max line length of 256k).
4639     # Instead, let's just punt: use the minimum linelength reported by
4640     # all of the supported platforms: 8192 (on NT/2K/XP).
4641     lt_cv_sys_max_cmd_len=8192;
4642     ;;
4643
4644   amigaos*)
4645     # On AmigaOS with pdksh, this test takes hours, literally.
4646     # So we just punt and use a minimum line length of 8192.
4647     lt_cv_sys_max_cmd_len=8192;
4648     ;;
4649
4650   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4651     # This has been around since 386BSD, at least.  Likely further.
4652     if test -x /sbin/sysctl; then
4653       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4654     elif test -x /usr/sbin/sysctl; then
4655       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4656     else
4657       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4658     fi
4659     # And add a safety zone
4660     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4661     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4662     ;;
4663
4664   interix*)
4665     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4666     lt_cv_sys_max_cmd_len=196608
4667     ;;
4668
4669   osf*)
4670     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4671     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4672     # nice to cause kernel panics so lets avoid the loop below.
4673     # First set a reasonable default.
4674     lt_cv_sys_max_cmd_len=16384
4675     #
4676     if test -x /sbin/sysconfig; then
4677       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4678         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4679       esac
4680     fi
4681     ;;
4682   sco3.2v5*)
4683     lt_cv_sys_max_cmd_len=102400
4684     ;;
4685   sysv5* | sco5v6* | sysv4.2uw2*)
4686     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4687     if test -n "$kargmax"; then
4688       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4689     else
4690       lt_cv_sys_max_cmd_len=32768
4691     fi
4692     ;;
4693   *)
4694     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4695     if test -n "$lt_cv_sys_max_cmd_len"; then
4696       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4697       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4698     else
4699       # Make teststring a little bigger before we do anything with it.
4700       # a 1K string should be a reasonable start.
4701       for i in 1 2 3 4 5 6 7 8 ; do
4702         teststring=$teststring$teststring
4703       done
4704       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4705       # If test is not a shell built-in, we'll probably end up computing a
4706       # maximum length that is only half of the actual maximum length, but
4707       # we can't tell.
4708       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4709                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4710               test $i != 17 # 1/2 MB should be enough
4711       do
4712         i=`expr $i + 1`
4713         teststring=$teststring$teststring
4714       done
4715       # Only check the string length outside the loop.
4716       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4717       teststring=
4718       # Add a significant safety factor because C++ compilers can tack on
4719       # massive amounts of additional arguments before passing them to the
4720       # linker.  It appears as though 1/2 is a usable value.
4721       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4722     fi
4723     ;;
4724   esac
4725
4726 fi
4727
4728 if test -n $lt_cv_sys_max_cmd_len ; then
4729   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4730 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: none" >&5
4733 echo "${ECHO_T}none" >&6; }
4734 fi
4735 max_cmd_len=$lt_cv_sys_max_cmd_len
4736
4737
4738
4739
4740
4741
4742 : ${CP="cp -f"}
4743 : ${MV="mv -f"}
4744 : ${RM="rm -f"}
4745
4746 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4747 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4748 # Try some XSI features
4749 xsi_shell=no
4750 ( _lt_dummy="a/b/c"
4751   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4752       = c,a/b,, \
4753     && eval 'test $(( 1 + 1 )) -eq 2 \
4754     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4755   && xsi_shell=yes
4756 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4757 echo "${ECHO_T}$xsi_shell" >&6; }
4758
4759
4760 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4761 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4762 lt_shell_append=no
4763 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4764     >/dev/null 2>&1 \
4765   && lt_shell_append=yes
4766 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4767 echo "${ECHO_T}$lt_shell_append" >&6; }
4768
4769
4770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4771   lt_unset=unset
4772 else
4773   lt_unset=false
4774 fi
4775
4776
4777
4778
4779
4780 # test EBCDIC or ASCII
4781 case `echo X|tr X '\101'` in
4782  A) # ASCII based system
4783     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4784   lt_SP2NL='tr \040 \012'
4785   lt_NL2SP='tr \015\012 \040\040'
4786   ;;
4787  *) # EBCDIC based system
4788   lt_SP2NL='tr \100 \n'
4789   lt_NL2SP='tr \r\n \100\100'
4790   ;;
4791 esac
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4802 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4803 if test "${lt_cv_ld_reload_flag+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   lt_cv_ld_reload_flag='-r'
4807 fi
4808 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4809 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4810 reload_flag=$lt_cv_ld_reload_flag
4811 case $reload_flag in
4812 "" | " "*) ;;
4813 *) reload_flag=" $reload_flag" ;;
4814 esac
4815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4816 case $host_os in
4817   darwin*)
4818     if test "$GCC" = yes; then
4819       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4820     else
4821       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4822     fi
4823     ;;
4824 esac
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4836 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4837 if test "${lt_cv_deplibs_check_method+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   lt_cv_file_magic_cmd='$MAGIC_CMD'
4841 lt_cv_file_magic_test_file=
4842 lt_cv_deplibs_check_method='unknown'
4843 # Need to set the preceding variable on all platforms that support
4844 # interlibrary dependencies.
4845 # 'none' -- dependencies not supported.
4846 # `unknown' -- same as none, but documents that we really don't know.
4847 # 'pass_all' -- all dependencies passed with no checks.
4848 # 'test_compile' -- check by making test program.
4849 # 'file_magic [[regex]]' -- check by looking for files in library path
4850 # which responds to the $file_magic_cmd with a given extended regex.
4851 # If you have `file' or equivalent on your system and you're not sure
4852 # whether `pass_all' will *always* work, you probably want this one.
4853
4854 case $host_os in
4855 aix[4-9]*)
4856   lt_cv_deplibs_check_method=pass_all
4857   ;;
4858
4859 beos*)
4860   lt_cv_deplibs_check_method=pass_all
4861   ;;
4862
4863 bsdi[45]*)
4864   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4865   lt_cv_file_magic_cmd='/usr/bin/file -L'
4866   lt_cv_file_magic_test_file=/shlib/libc.so
4867   ;;
4868
4869 cygwin*)
4870   # func_win32_libid is a shell function defined in ltmain.sh
4871   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4872   lt_cv_file_magic_cmd='func_win32_libid'
4873   ;;
4874
4875 mingw* | pw32*)
4876   # Base MSYS/MinGW do not provide the 'file' command needed by
4877   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4878   # unless we find 'file', for example because we are cross-compiling.
4879   if ( file / ) >/dev/null 2>&1; then
4880     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4881     lt_cv_file_magic_cmd='func_win32_libid'
4882   else
4883     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4884     lt_cv_file_magic_cmd='$OBJDUMP -f'
4885   fi
4886   ;;
4887
4888 darwin* | rhapsody*)
4889   lt_cv_deplibs_check_method=pass_all
4890   ;;
4891
4892 freebsd* | dragonfly*)
4893   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4894     case $host_cpu in
4895     i*86 )
4896       # Not sure whether the presence of OpenBSD here was a mistake.
4897       # Let's accept both of them until this is cleared up.
4898       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4899       lt_cv_file_magic_cmd=/usr/bin/file
4900       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4901       ;;
4902     esac
4903   else
4904     lt_cv_deplibs_check_method=pass_all
4905   fi
4906   ;;
4907
4908 gnu*)
4909   lt_cv_deplibs_check_method=pass_all
4910   ;;
4911
4912 hpux10.20* | hpux11*)
4913   lt_cv_file_magic_cmd=/usr/bin/file
4914   case $host_cpu in
4915   ia64*)
4916     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4917     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4918     ;;
4919   hppa*64*)
4920     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]'
4921     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4922     ;;
4923   *)
4924     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4925     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4926     ;;
4927   esac
4928   ;;
4929
4930 interix[3-9]*)
4931   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4932   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4933   ;;
4934
4935 irix5* | irix6* | nonstopux*)
4936   case $LD in
4937   *-32|*"-32 ") libmagic=32-bit;;
4938   *-n32|*"-n32 ") libmagic=N32;;
4939   *-64|*"-64 ") libmagic=64-bit;;
4940   *) libmagic=never-match;;
4941   esac
4942   lt_cv_deplibs_check_method=pass_all
4943   ;;
4944
4945 # This must be Linux ELF.
4946 linux* | k*bsd*-gnu)
4947   lt_cv_deplibs_check_method=pass_all
4948   ;;
4949
4950 netbsd*)
4951   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4952     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4953   else
4954     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4955   fi
4956   ;;
4957
4958 newos6*)
4959   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4960   lt_cv_file_magic_cmd=/usr/bin/file
4961   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4962   ;;
4963
4964 *nto* | *qnx*)
4965   lt_cv_deplibs_check_method=pass_all
4966   ;;
4967
4968 openbsd*)
4969   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4970     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4971   else
4972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4973   fi
4974   ;;
4975
4976 osf3* | osf4* | osf5*)
4977   lt_cv_deplibs_check_method=pass_all
4978   ;;
4979
4980 rdos*)
4981   lt_cv_deplibs_check_method=pass_all
4982   ;;
4983
4984 solaris*)
4985   lt_cv_deplibs_check_method=pass_all
4986   ;;
4987
4988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4989   lt_cv_deplibs_check_method=pass_all
4990   ;;
4991
4992 sysv4 | sysv4.3*)
4993   case $host_vendor in
4994   motorola)
4995     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]'
4996     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4997     ;;
4998   ncr)
4999     lt_cv_deplibs_check_method=pass_all
5000     ;;
5001   sequent)
5002     lt_cv_file_magic_cmd='/bin/file'
5003     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5004     ;;
5005   sni)
5006     lt_cv_file_magic_cmd='/bin/file'
5007     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5008     lt_cv_file_magic_test_file=/lib/libc.so
5009     ;;
5010   siemens)
5011     lt_cv_deplibs_check_method=pass_all
5012     ;;
5013   pc)
5014     lt_cv_deplibs_check_method=pass_all
5015     ;;
5016   esac
5017   ;;
5018
5019 tpf*)
5020   lt_cv_deplibs_check_method=pass_all
5021   ;;
5022 esac
5023
5024 fi
5025 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5026 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5027 file_magic_cmd=$lt_cv_file_magic_cmd
5028 deplibs_check_method=$lt_cv_deplibs_check_method
5029 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 if test -n "$ac_tool_prefix"; then
5043   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}ar; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_prog_AR+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   if test -n "$AR"; then
5051   ac_cv_prog_AR="$AR" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_AR="${ac_tool_prefix}ar"
5061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 AR=$ac_cv_prog_AR
5071 if test -n "$AR"; then
5072   { echo "$as_me:$LINENO: result: $AR" >&5
5073 echo "${ECHO_T}$AR" >&6; }
5074 else
5075   { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5077 fi
5078
5079
5080 fi
5081 if test -z "$ac_cv_prog_AR"; then
5082   ac_ct_AR=$AR
5083   # Extract the first word of "ar", so it can be a program name with args.
5084 set dummy ar; ac_word=$2
5085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   if test -n "$ac_ct_AR"; then
5091   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098   for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_prog_ac_ct_AR="ar"
5101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5111 if test -n "$ac_ct_AR"; then
5112   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5113 echo "${ECHO_T}$ac_ct_AR" >&6; }
5114 else
5115   { echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6; }
5117 fi
5118
5119   if test "x$ac_ct_AR" = x; then
5120     AR="false"
5121   else
5122     case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5125 whose name does not start with the host triplet.  If you think this
5126 configuration is useful to you, please write to autoconf@gnu.org." >&5
5127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5128 whose name does not start with the host triplet.  If you think this
5129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132     AR=$ac_ct_AR
5133   fi
5134 else
5135   AR="$ac_cv_prog_AR"
5136 fi
5137
5138 test -z "$AR" && AR=ar
5139 test -z "$AR_FLAGS" && AR_FLAGS=cru
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 if test -n "$ac_tool_prefix"; then
5152   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5153 set dummy ${ac_tool_prefix}strip; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_prog_STRIP+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   if test -n "$STRIP"; then
5160   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167   for ac_exec_ext in '' $ac_executable_extensions; do
5168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 STRIP=$ac_cv_prog_STRIP
5180 if test -n "$STRIP"; then
5181   { echo "$as_me:$LINENO: result: $STRIP" >&5
5182 echo "${ECHO_T}$STRIP" >&6; }
5183 else
5184   { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5186 fi
5187
5188
5189 fi
5190 if test -z "$ac_cv_prog_STRIP"; then
5191   ac_ct_STRIP=$STRIP
5192   # Extract the first word of "strip", so it can be a program name with args.
5193 set dummy strip; ac_word=$2
5194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5196 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   if test -n "$ac_ct_STRIP"; then
5200   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_prog_ac_ct_STRIP="strip"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5220 if test -n "$ac_ct_STRIP"; then
5221   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5222 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5223 else
5224   { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5226 fi
5227
5228   if test "x$ac_ct_STRIP" = x; then
5229     STRIP=":"
5230   else
5231     case $cross_compiling:$ac_tool_warned in
5232 yes:)
5233 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5234 whose name does not start with the host triplet.  If you think this
5235 configuration is useful to you, please write to autoconf@gnu.org." >&5
5236 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5237 whose name does not start with the host triplet.  If you think this
5238 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241     STRIP=$ac_ct_STRIP
5242   fi
5243 else
5244   STRIP="$ac_cv_prog_STRIP"
5245 fi
5246
5247 test -z "$STRIP" && STRIP=:
5248
5249
5250
5251
5252
5253
5254 if test -n "$ac_tool_prefix"; then
5255   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_prog_RANLIB+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   if test -n "$RANLIB"; then
5263   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270   for ac_exec_ext in '' $ac_executable_extensions; do
5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 RANLIB=$ac_cv_prog_RANLIB
5283 if test -n "$RANLIB"; then
5284   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5285 echo "${ECHO_T}$RANLIB" >&6; }
5286 else
5287   { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5289 fi
5290
5291
5292 fi
5293 if test -z "$ac_cv_prog_RANLIB"; then
5294   ac_ct_RANLIB=$RANLIB
5295   # Extract the first word of "ranlib", so it can be a program name with args.
5296 set dummy ranlib; ac_word=$2
5297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   if test -n "$ac_ct_RANLIB"; then
5303   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308   IFS=$as_save_IFS
5309   test -z "$as_dir" && as_dir=.
5310   for ac_exec_ext in '' $ac_executable_extensions; do
5311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312     ac_cv_prog_ac_ct_RANLIB="ranlib"
5313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314     break 2
5315   fi
5316 done
5317 done
5318 IFS=$as_save_IFS
5319
5320 fi
5321 fi
5322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5323 if test -n "$ac_ct_RANLIB"; then
5324   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5325 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5326 else
5327   { echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6; }
5329 fi
5330
5331   if test "x$ac_ct_RANLIB" = x; then
5332     RANLIB=":"
5333   else
5334     case $cross_compiling:$ac_tool_warned in
5335 yes:)
5336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5337 whose name does not start with the host triplet.  If you think this
5338 configuration is useful to you, please write to autoconf@gnu.org." >&5
5339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5340 whose name does not start with the host triplet.  If you think this
5341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344     RANLIB=$ac_ct_RANLIB
5345   fi
5346 else
5347   RANLIB="$ac_cv_prog_RANLIB"
5348 fi
5349
5350 test -z "$RANLIB" && RANLIB=:
5351
5352
5353
5354
5355
5356
5357 # Determine commands to create old-style static archives.
5358 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5359 old_postinstall_cmds='chmod 644 $oldlib'
5360 old_postuninstall_cmds=
5361
5362 if test -n "$RANLIB"; then
5363   case $host_os in
5364   openbsd*)
5365     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5366     ;;
5367   *)
5368     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5369     ;;
5370   esac
5371   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5372 fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 # If no C compiler was specified, use CC.
5408 LTCC=${LTCC-"$CC"}
5409
5410 # If no C compiler flags were specified, use CFLAGS.
5411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5412
5413 # Allow CC to be a program name with arguments.
5414 compiler=$CC
5415
5416
5417 # Check for command to grab the raw symbol name followed by C symbol from nm.
5418 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5419 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5420 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423
5424 # These are sane defaults that work on at least a few old systems.
5425 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5426
5427 # Character class describing NM global symbol codes.
5428 symcode='[BCDEGRST]'
5429
5430 # Regexp to match symbols that can be accessed directly from C.
5431 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5432
5433 # Define system-specific variables.
5434 case $host_os in
5435 aix*)
5436   symcode='[BCDT]'
5437   ;;
5438 cygwin* | mingw* | pw32*)
5439   symcode='[ABCDGISTW]'
5440   ;;
5441 hpux*)
5442   if test "$host_cpu" = ia64; then
5443     symcode='[ABCDEGRST]'
5444   fi
5445   ;;
5446 irix* | nonstopux*)
5447   symcode='[BCDEGRST]'
5448   ;;
5449 osf*)
5450   symcode='[BCDEGQRST]'
5451   ;;
5452 solaris*)
5453   symcode='[BDRT]'
5454   ;;
5455 sco3.2v5*)
5456   symcode='[DT]'
5457   ;;
5458 sysv4.2uw2*)
5459   symcode='[DT]'
5460   ;;
5461 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5462   symcode='[ABDT]'
5463   ;;
5464 sysv4)
5465   symcode='[DFNSTU]'
5466   ;;
5467 esac
5468
5469 # If we're using GNU nm, then use its standard symbol codes.
5470 case `$NM -V 2>&1` in
5471 *GNU* | *'with BFD'*)
5472   symcode='[ABCDGIRSTW]' ;;
5473 esac
5474
5475 # Transform an extracted symbol line into a proper C declaration.
5476 # Some systems (esp. on ia64) link data and code symbols differently,
5477 # so use this general approach.
5478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5479
5480 # Transform an extracted symbol line into symbol name and symbol address
5481 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5482 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'"
5483
5484 # Handle CRLF in mingw tool chain
5485 opt_cr=
5486 case $build_os in
5487 mingw*)
5488   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5489   ;;
5490 esac
5491
5492 # Try without a prefix underscore, then with it.
5493 for ac_symprfx in "" "_"; do
5494
5495   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5496   symxfrm="\\1 $ac_symprfx\\2 \\2"
5497
5498   # Write the raw and C identifiers.
5499   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5500     # Fake it for dumpbin and say T for any non-static function
5501     # and D for any global variable.
5502     # Also find C++ and __fastcall symbols from MSVC++,
5503     # which start with @ or ?.
5504     lt_cv_sys_global_symbol_pipe="$AWK '"\
5505 "     {last_section=section; section=\$ 3};"\
5506 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5507 "     \$ 0!~/External *\|/{next};"\
5508 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5509 "     {if(hide[section]) next};"\
5510 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5511 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5512 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5513 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5514 "     ' prfx=^$ac_symprfx"
5515   else
5516     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5517   fi
5518
5519   # Check to see that the pipe works correctly.
5520   pipe_works=no
5521
5522   rm -f conftest*
5523   cat > conftest.$ac_ext <<_LT_EOF
5524 #ifdef __cplusplus
5525 extern "C" {
5526 #endif
5527 char nm_test_var;
5528 void nm_test_func(void);
5529 void nm_test_func(void){}
5530 #ifdef __cplusplus
5531 }
5532 #endif
5533 int main(){nm_test_var='a';nm_test_func();return(0);}
5534 _LT_EOF
5535
5536   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537   (eval $ac_compile) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; then
5541     # Now try to grab the symbols.
5542     nlist=conftest.nm
5543     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5544   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } && test -s "$nlist"; then
5548       # Try sorting and uniquifying the output.
5549       if sort "$nlist" | uniq > "$nlist"T; then
5550         mv -f "$nlist"T "$nlist"
5551       else
5552         rm -f "$nlist"T
5553       fi
5554
5555       # Make sure that we snagged all the symbols we need.
5556       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5557         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5558           cat <<_LT_EOF > conftest.$ac_ext
5559 #ifdef __cplusplus
5560 extern "C" {
5561 #endif
5562
5563 _LT_EOF
5564           # Now generate the symbol file.
5565           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5566
5567           cat <<_LT_EOF >> conftest.$ac_ext
5568
5569 /* The mapping between symbol names and symbols.  */
5570 const struct {
5571   const char *name;
5572   void       *address;
5573 }
5574 lt__PROGRAM__LTX_preloaded_symbols[] =
5575 {
5576   { "@PROGRAM@", (void *) 0 },
5577 _LT_EOF
5578           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5579           cat <<\_LT_EOF >> conftest.$ac_ext
5580   {0, (void *) 0}
5581 };
5582
5583 /* This works around a problem in FreeBSD linker */
5584 #ifdef FREEBSD_WORKAROUND
5585 static const void *lt_preloaded_setup() {
5586   return lt__PROGRAM__LTX_preloaded_symbols;
5587 }
5588 #endif
5589
5590 #ifdef __cplusplus
5591 }
5592 #endif
5593 _LT_EOF
5594           # Now try linking the two files.
5595           mv conftest.$ac_objext conftstm.$ac_objext
5596           lt_save_LIBS="$LIBS"
5597           lt_save_CFLAGS="$CFLAGS"
5598           LIBS="conftstm.$ac_objext"
5599           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5600           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601   (eval $ac_link) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5605             pipe_works=yes
5606           fi
5607           LIBS="$lt_save_LIBS"
5608           CFLAGS="$lt_save_CFLAGS"
5609         else
5610           echo "cannot find nm_test_func in $nlist" >&5
5611         fi
5612       else
5613         echo "cannot find nm_test_var in $nlist" >&5
5614       fi
5615     else
5616       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5617     fi
5618   else
5619     echo "$progname: failed program was:" >&5
5620     cat conftest.$ac_ext >&5
5621   fi
5622   rm -rf conftest* conftst*
5623
5624   # Do not use the global_symbol_pipe unless it works.
5625   if test "$pipe_works" = yes; then
5626     break
5627   else
5628     lt_cv_sys_global_symbol_pipe=
5629   fi
5630 done
5631
5632 fi
5633
5634 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5635   lt_cv_sys_global_symbol_to_cdecl=
5636 fi
5637 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5638   { echo "$as_me:$LINENO: result: failed" >&5
5639 echo "${ECHO_T}failed" >&6; }
5640 else
5641   { echo "$as_me:$LINENO: result: ok" >&5
5642 echo "${ECHO_T}ok" >&6; }
5643 fi
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667 # Check whether --enable-libtool-lock was given.
5668 if test "${enable_libtool_lock+set}" = set; then
5669   enableval=$enable_libtool_lock;
5670 fi
5671
5672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5673
5674 # Some flags need to be propagated to the compiler or linker for good
5675 # libtool support.
5676 case $host in
5677 ia64-*-hpux*)
5678   # Find out which ABI we are using.
5679   echo 'int i;' > conftest.$ac_ext
5680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681   (eval $ac_compile) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; then
5685     case `/usr/bin/file conftest.$ac_objext` in
5686       *ELF-32*)
5687         HPUX_IA64_MODE="32"
5688         ;;
5689       *ELF-64*)
5690         HPUX_IA64_MODE="64"
5691         ;;
5692     esac
5693   fi
5694   rm -rf conftest*
5695   ;;
5696 *-*-irix6*)
5697   # Find out which ABI we are using.
5698   echo '#line 5698 "configure"' > conftest.$ac_ext
5699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; then
5704     if test "$lt_cv_prog_gnu_ld" = yes; then
5705       case `/usr/bin/file conftest.$ac_objext` in
5706         *32-bit*)
5707           LD="${LD-ld} -melf32bsmip"
5708           ;;
5709         *N32*)
5710           LD="${LD-ld} -melf32bmipn32"
5711           ;;
5712         *64-bit*)
5713           LD="${LD-ld} -melf64bmip"
5714         ;;
5715       esac
5716     else
5717       case `/usr/bin/file conftest.$ac_objext` in
5718         *32-bit*)
5719           LD="${LD-ld} -32"
5720           ;;
5721         *N32*)
5722           LD="${LD-ld} -n32"
5723           ;;
5724         *64-bit*)
5725           LD="${LD-ld} -64"
5726           ;;
5727       esac
5728     fi
5729   fi
5730   rm -rf conftest*
5731   ;;
5732
5733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5735   # Find out which ABI we are using.
5736   echo 'int i;' > conftest.$ac_ext
5737   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738   (eval $ac_compile) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }; then
5742     case `/usr/bin/file conftest.o` in
5743       *32-bit*)
5744         case $host in
5745           x86_64-*kfreebsd*-gnu)
5746             LD="${LD-ld} -m elf_i386_fbsd"
5747             ;;
5748           x86_64-*linux*)
5749             LD="${LD-ld} -m elf_i386"
5750             ;;
5751           ppc64-*linux*|powerpc64-*linux*)
5752             LD="${LD-ld} -m elf32ppclinux"
5753             ;;
5754           s390x-*linux*)
5755             LD="${LD-ld} -m elf_s390"
5756             ;;
5757           sparc64-*linux*)
5758             LD="${LD-ld} -m elf32_sparc"
5759             ;;
5760         esac
5761         ;;
5762       *64-bit*)
5763         case $host in
5764           x86_64-*kfreebsd*-gnu)
5765             LD="${LD-ld} -m elf_x86_64_fbsd"
5766             ;;
5767           x86_64-*linux*)
5768             LD="${LD-ld} -m elf_x86_64"
5769             ;;
5770           ppc*-*linux*|powerpc*-*linux*)
5771             LD="${LD-ld} -m elf64ppc"
5772             ;;
5773           s390*-*linux*|s390*-*tpf*)
5774             LD="${LD-ld} -m elf64_s390"
5775             ;;
5776           sparc*-*linux*)
5777             LD="${LD-ld} -m elf64_sparc"
5778             ;;
5779         esac
5780         ;;
5781     esac
5782   fi
5783   rm -rf conftest*
5784   ;;
5785
5786 *-*-sco3.2v5*)
5787   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5788   SAVE_CFLAGS="$CFLAGS"
5789   CFLAGS="$CFLAGS -belf"
5790   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5791 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5792 if test "${lt_cv_cc_needs_belf+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   ac_ext=c
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800
5801      cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807
5808 int
5809 main ()
5810 {
5811
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext conftest$ac_exeext
5817 if { (ac_try="$ac_link"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_link") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } && {
5830          test -z "$ac_c_werror_flag" ||
5831          test ! -s conftest.err
5832        } && test -s conftest$ac_exeext &&
5833        $as_test_x conftest$ac_exeext; then
5834   lt_cv_cc_needs_belf=yes
5835 else
5836   echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839         lt_cv_cc_needs_belf=no
5840 fi
5841
5842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5843       conftest$ac_exeext conftest.$ac_ext
5844      ac_ext=c
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849
5850 fi
5851 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5852 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5853   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5854     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5855     CFLAGS="$SAVE_CFLAGS"
5856   fi
5857   ;;
5858 sparc*-*solaris*)
5859   # Find out which ABI we are using.
5860   echo 'int i;' > conftest.$ac_ext
5861   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862   (eval $ac_compile) 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }; then
5866     case `/usr/bin/file conftest.o` in
5867     *64-bit*)
5868       case $lt_cv_prog_gnu_ld in
5869       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5870       *)
5871         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5872           LD="${LD-ld} -64"
5873         fi
5874         ;;
5875       esac
5876       ;;
5877     esac
5878   fi
5879   rm -rf conftest*
5880   ;;
5881 esac
5882
5883 need_locks="$enable_libtool_lock"
5884
5885
5886   case $host_os in
5887     rhapsody* | darwin*)
5888     if test -n "$ac_tool_prefix"; then
5889   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   if test -n "$DSYMUTIL"; then
5897   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5917 if test -n "$DSYMUTIL"; then
5918   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5919 echo "${ECHO_T}$DSYMUTIL" >&6; }
5920 else
5921   { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5923 fi
5924
5925
5926 fi
5927 if test -z "$ac_cv_prog_DSYMUTIL"; then
5928   ac_ct_DSYMUTIL=$DSYMUTIL
5929   # Extract the first word of "dsymutil", so it can be a program name with args.
5930 set dummy dsymutil; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   if test -n "$ac_ct_DSYMUTIL"; then
5937   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5957 if test -n "$ac_ct_DSYMUTIL"; then
5958   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5959 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5963 fi
5964
5965   if test "x$ac_ct_DSYMUTIL" = x; then
5966     DSYMUTIL=":"
5967   else
5968     case $cross_compiling:$ac_tool_warned in
5969 yes:)
5970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet.  If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&5
5973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5974 whose name does not start with the host triplet.  If you think this
5975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5976 ac_tool_warned=yes ;;
5977 esac
5978     DSYMUTIL=$ac_ct_DSYMUTIL
5979   fi
5980 else
5981   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5982 fi
5983
5984     if test -n "$ac_tool_prefix"; then
5985   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5986 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   if test -n "$NMEDIT"; then
5993   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 NMEDIT=$ac_cv_prog_NMEDIT
6013 if test -n "$NMEDIT"; then
6014   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6015 echo "${ECHO_T}$NMEDIT" >&6; }
6016 else
6017   { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6019 fi
6020
6021
6022 fi
6023 if test -z "$ac_cv_prog_NMEDIT"; then
6024   ac_ct_NMEDIT=$NMEDIT
6025   # Extract the first word of "nmedit", so it can be a program name with args.
6026 set dummy nmedit; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   if test -n "$ac_ct_NMEDIT"; then
6033   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040   for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6053 if test -n "$ac_ct_NMEDIT"; then
6054   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6055 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6056 else
6057   { echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6; }
6059 fi
6060
6061   if test "x$ac_ct_NMEDIT" = x; then
6062     NMEDIT=":"
6063   else
6064     case $cross_compiling:$ac_tool_warned in
6065 yes:)
6066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6067 whose name does not start with the host triplet.  If you think this
6068 configuration is useful to you, please write to autoconf@gnu.org." >&5
6069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6070 whose name does not start with the host triplet.  If you think this
6071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6072 ac_tool_warned=yes ;;
6073 esac
6074     NMEDIT=$ac_ct_NMEDIT
6075   fi
6076 else
6077   NMEDIT="$ac_cv_prog_NMEDIT"
6078 fi
6079
6080     if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6085 if test "${ac_cv_prog_LIPO+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$LIPO"; then
6089   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 LIPO=$ac_cv_prog_LIPO
6109 if test -n "$LIPO"; then
6110   { echo "$as_me:$LINENO: result: $LIPO" >&5
6111 echo "${ECHO_T}$LIPO" >&6; }
6112 else
6113   { echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6; }
6115 fi
6116
6117
6118 fi
6119 if test -z "$ac_cv_prog_LIPO"; then
6120   ac_ct_LIPO=$LIPO
6121   # Extract the first word of "lipo", so it can be a program name with args.
6122 set dummy lipo; ac_word=$2
6123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6125 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   if test -n "$ac_ct_LIPO"; then
6129   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136   for ac_exec_ext in '' $ac_executable_extensions; do
6137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138     ac_cv_prog_ac_ct_LIPO="lipo"
6139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6149 if test -n "$ac_ct_LIPO"; then
6150   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6151 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6152 else
6153   { echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6; }
6155 fi
6156
6157   if test "x$ac_ct_LIPO" = x; then
6158     LIPO=":"
6159   else
6160     case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6163 whose name does not start with the host triplet.  If you think this
6164 configuration is useful to you, please write to autoconf@gnu.org." >&5
6165 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6166 whose name does not start with the host triplet.  If you think this
6167 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6168 ac_tool_warned=yes ;;
6169 esac
6170     LIPO=$ac_ct_LIPO
6171   fi
6172 else
6173   LIPO="$ac_cv_prog_LIPO"
6174 fi
6175
6176     if test -n "$ac_tool_prefix"; then
6177   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}otool; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_OTOOL+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   if test -n "$OTOOL"; then
6185   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 OTOOL=$ac_cv_prog_OTOOL
6205 if test -n "$OTOOL"; then
6206   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6207 echo "${ECHO_T}$OTOOL" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213
6214 fi
6215 if test -z "$ac_cv_prog_OTOOL"; then
6216   ac_ct_OTOOL=$OTOOL
6217   # Extract the first word of "otool", so it can be a program name with args.
6218 set dummy otool; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   if test -n "$ac_ct_OTOOL"; then
6225   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232   for ac_exec_ext in '' $ac_executable_extensions; do
6233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234     ac_cv_prog_ac_ct_OTOOL="otool"
6235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239 done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6245 if test -n "$ac_ct_OTOOL"; then
6246   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6247 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6248 else
6249   { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6251 fi
6252
6253   if test "x$ac_ct_OTOOL" = x; then
6254     OTOOL=":"
6255   else
6256     case $cross_compiling:$ac_tool_warned in
6257 yes:)
6258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet.  If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&5
6261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6262 whose name does not start with the host triplet.  If you think this
6263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266     OTOOL=$ac_ct_OTOOL
6267   fi
6268 else
6269   OTOOL="$ac_cv_prog_OTOOL"
6270 fi
6271
6272     if test -n "$ac_tool_prefix"; then
6273   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   if test -n "$OTOOL64"; then
6281   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 OTOOL64=$ac_cv_prog_OTOOL64
6301 if test -n "$OTOOL64"; then
6302   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6303 echo "${ECHO_T}$OTOOL64" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_OTOOL64"; then
6312   ac_ct_OTOOL64=$OTOOL64
6313   # Extract the first word of "otool64", so it can be a program name with args.
6314 set dummy otool64; ac_word=$2
6315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   if test -n "$ac_ct_OTOOL64"; then
6321   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_ac_ct_OTOOL64="otool64"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6341 if test -n "$ac_ct_OTOOL64"; then
6342   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6343 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6344 else
6345   { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6347 fi
6348
6349   if test "x$ac_ct_OTOOL64" = x; then
6350     OTOOL64=":"
6351   else
6352     case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6355 whose name does not start with the host triplet.  If you think this
6356 configuration is useful to you, please write to autoconf@gnu.org." >&5
6357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6358 whose name does not start with the host triplet.  If you think this
6359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362     OTOOL64=$ac_ct_OTOOL64
6363   fi
6364 else
6365   OTOOL64="$ac_cv_prog_OTOOL64"
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6395 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6396 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   lt_cv_apple_cc_single_mod=no
6400       if test -z "${LT_MULTI_MODULE}"; then
6401         # By default we will add the -single_module flag. You can override
6402         # by either setting the environment variable LT_MULTI_MODULE
6403         # non-empty at configure time, or by adding -multi_module to the
6404         # link flags.
6405         rm -rf libconftest.dylib*
6406         echo "int foo(void){return 1;}" > conftest.c
6407         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6408 -dynamiclib -Wl,-single_module conftest.c" >&5
6409         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6410           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6411         _lt_result=$?
6412         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6413           lt_cv_apple_cc_single_mod=yes
6414         else
6415           cat conftest.err >&5
6416         fi
6417         rm -rf libconftest.dylib*
6418         rm -f conftest.*
6419       fi
6420 fi
6421 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6422 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6423     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6424 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6425 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   lt_cv_ld_exported_symbols_list=no
6429       save_LDFLAGS=$LDFLAGS
6430       echo "_main" > conftest.sym
6431       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6432       cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438
6439 int
6440 main ()
6441 {
6442
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 rm -f conftest.$ac_objext conftest$ac_exeext
6448 if { (ac_try="$ac_link"
6449 case "(($ac_try" in
6450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451   *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454   (eval "$ac_link") 2>conftest.er1
6455   ac_status=$?
6456   grep -v '^ *+' conftest.er1 >conftest.err
6457   rm -f conftest.er1
6458   cat conftest.err >&5
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); } && {
6461          test -z "$ac_c_werror_flag" ||
6462          test ! -s conftest.err
6463        } && test -s conftest$ac_exeext &&
6464        $as_test_x conftest$ac_exeext; then
6465   lt_cv_ld_exported_symbols_list=yes
6466 else
6467   echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470         lt_cv_ld_exported_symbols_list=no
6471 fi
6472
6473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6474       conftest$ac_exeext conftest.$ac_ext
6475         LDFLAGS="$save_LDFLAGS"
6476
6477 fi
6478 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6479 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6480     case $host_os in
6481     rhapsody* | darwin1.[012])
6482       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6483     darwin1.*)
6484       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6485     darwin*) # darwin 5.x on
6486       # if running on 10.5 or later, the deployment target defaults
6487       # to the OS version, if on x86, and 10.4, the deployment
6488       # target defaults to 10.4. Don't you love it?
6489       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6490         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6491           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6492         10.[012]*)
6493           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6494         10.*)
6495           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6496       esac
6497     ;;
6498   esac
6499     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6500       _lt_dar_single_mod='$single_module'
6501     fi
6502     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6503       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6504     else
6505       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6506     fi
6507     if test "$DSYMUTIL" != ":"; then
6508       _lt_dsymutil='~$DSYMUTIL $lib || :'
6509     else
6510       _lt_dsymutil=
6511     fi
6512     ;;
6513   esac
6514
6515 ac_ext=c
6516 ac_cpp='$CPP $CPPFLAGS'
6517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6520 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6522 # On Suns, sometimes $CPP names a directory.
6523 if test -n "$CPP" && test -d "$CPP"; then
6524   CPP=
6525 fi
6526 if test -z "$CPP"; then
6527   if test "${ac_cv_prog_CPP+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530       # Double quotes because CPP needs to be expanded
6531     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6532     do
6533       ac_preproc_ok=false
6534 for ac_c_preproc_warn_flag in '' yes
6535 do
6536   # Use a header file that comes with gcc, so configuring glibc
6537   # with a fresh cross-compiler works.
6538   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6539   # <limits.h> exists even on freestanding compilers.
6540   # On the NeXT, cc -E runs the code through the compiler's parser,
6541   # not just through cpp. "Syntax error" is here to catch this case.
6542   cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548 #ifdef __STDC__
6549 # include <limits.h>
6550 #else
6551 # include <assert.h>
6552 #endif
6553                      Syntax error
6554 _ACEOF
6555 if { (ac_try="$ac_cpp conftest.$ac_ext"
6556 case "(($ac_try" in
6557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558   *) ac_try_echo=$ac_try;;
6559 esac
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } >/dev/null && {
6568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6569          test ! -s conftest.err
6570        }; then
6571   :
6572 else
6573   echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576   # Broken: fails on valid input.
6577 continue
6578 fi
6579
6580 rm -f conftest.err conftest.$ac_ext
6581
6582   # OK, works on sane cases.  Now check whether nonexistent headers
6583   # can be detected and how.
6584   cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 #include <ac_nonexistent.h>
6591 _ACEOF
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595   *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } >/dev/null && {
6605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6606          test ! -s conftest.err
6607        }; then
6608   # Broken: success on invalid input.
6609 continue
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614   # Passes both tests.
6615 ac_preproc_ok=:
6616 break
6617 fi
6618
6619 rm -f conftest.err conftest.$ac_ext
6620
6621 done
6622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6623 rm -f conftest.err conftest.$ac_ext
6624 if $ac_preproc_ok; then
6625   break
6626 fi
6627
6628     done
6629     ac_cv_prog_CPP=$CPP
6630
6631 fi
6632   CPP=$ac_cv_prog_CPP
6633 else
6634   ac_cv_prog_CPP=$CPP
6635 fi
6636 { echo "$as_me:$LINENO: result: $CPP" >&5
6637 echo "${ECHO_T}$CPP" >&6; }
6638 ac_preproc_ok=false
6639 for ac_c_preproc_warn_flag in '' yes
6640 do
6641   # Use a header file that comes with gcc, so configuring glibc
6642   # with a fresh cross-compiler works.
6643   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6644   # <limits.h> exists even on freestanding compilers.
6645   # On the NeXT, cc -E runs the code through the compiler's parser,
6646   # not just through cpp. "Syntax error" is here to catch this case.
6647   cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h.  */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h.  */
6653 #ifdef __STDC__
6654 # include <limits.h>
6655 #else
6656 # include <assert.h>
6657 #endif
6658                      Syntax error
6659 _ACEOF
6660 if { (ac_try="$ac_cpp conftest.$ac_ext"
6661 case "(($ac_try" in
6662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663   *) ac_try_echo=$ac_try;;
6664 esac
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } >/dev/null && {
6673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6674          test ! -s conftest.err
6675        }; then
6676   :
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6680
6681   # Broken: fails on valid input.
6682 continue
6683 fi
6684
6685 rm -f conftest.err conftest.$ac_ext
6686
6687   # OK, works on sane cases.  Now check whether nonexistent headers
6688   # can be detected and how.
6689   cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695 #include <ac_nonexistent.h>
6696 _ACEOF
6697 if { (ac_try="$ac_cpp conftest.$ac_ext"
6698 case "(($ac_try" in
6699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700   *) ac_try_echo=$ac_try;;
6701 esac
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6704   ac_status=$?
6705   grep -v '^ *+' conftest.er1 >conftest.err
6706   rm -f conftest.er1
6707   cat conftest.err >&5
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } >/dev/null && {
6710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6711          test ! -s conftest.err
6712        }; then
6713   # Broken: success on invalid input.
6714 continue
6715 else
6716   echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719   # Passes both tests.
6720 ac_preproc_ok=:
6721 break
6722 fi
6723
6724 rm -f conftest.err conftest.$ac_ext
6725
6726 done
6727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6728 rm -f conftest.err conftest.$ac_ext
6729 if $ac_preproc_ok; then
6730   :
6731 else
6732   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6733 See \`config.log' for more details." >&5
6734 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6735 See \`config.log' for more details." >&2;}
6736    { (exit 1); exit 1; }; }
6737 fi
6738
6739 ac_ext=c
6740 ac_cpp='$CPP $CPPFLAGS'
6741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6744
6745
6746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6748 if test "${ac_cv_header_stdc+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757 #include <stdlib.h>
6758 #include <stdarg.h>
6759 #include <string.h>
6760 #include <float.h>
6761
6762 int
6763 main ()
6764 {
6765
6766   ;
6767   return 0;
6768 }
6769 _ACEOF
6770 rm -f conftest.$ac_objext
6771 if { (ac_try="$ac_compile"
6772 case "(($ac_try" in
6773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774   *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777   (eval "$ac_compile") 2>conftest.er1
6778   ac_status=$?
6779   grep -v '^ *+' conftest.er1 >conftest.err
6780   rm -f conftest.er1
6781   cat conftest.err >&5
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); } && {
6784          test -z "$ac_c_werror_flag" ||
6785          test ! -s conftest.err
6786        } && test -s conftest.$ac_objext; then
6787   ac_cv_header_stdc=yes
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792         ac_cv_header_stdc=no
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797 if test $ac_cv_header_stdc = yes; then
6798   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6799   cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 #include <string.h>
6806
6807 _ACEOF
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809   $EGREP "memchr" >/dev/null 2>&1; then
6810   :
6811 else
6812   ac_cv_header_stdc=no
6813 fi
6814 rm -f conftest*
6815
6816 fi
6817
6818 if test $ac_cv_header_stdc = yes; then
6819   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <stdlib.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830   $EGREP "free" >/dev/null 2>&1; then
6831   :
6832 else
6833   ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest*
6836
6837 fi
6838
6839 if test $ac_cv_header_stdc = yes; then
6840   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6841   if test "$cross_compiling" = yes; then
6842   :
6843 else
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 #include <ctype.h>
6851 #include <stdlib.h>
6852 #if ((' ' & 0x0FF) == 0x020)
6853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6855 #else
6856 # define ISLOWER(c) \
6857                    (('a' <= (c) && (c) <= 'i') \
6858                      || ('j' <= (c) && (c) <= 'r') \
6859                      || ('s' <= (c) && (c) <= 'z'))
6860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6861 #endif
6862
6863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6864 int
6865 main ()
6866 {
6867   int i;
6868   for (i = 0; i < 256; i++)
6869     if (XOR (islower (i), ISLOWER (i))
6870         || toupper (i) != TOUPPER (i))
6871       return 2;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879   *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882   (eval "$ac_link") 2>&5
6883   ac_status=$?
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6886   { (case "(($ac_try" in
6887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888   *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891   (eval "$ac_try") 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; }; then
6895   :
6896 else
6897   echo "$as_me: program exited with status $ac_status" >&5
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ( exit $ac_status )
6902 ac_cv_header_stdc=no
6903 fi
6904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6905 fi
6906
6907
6908 fi
6909 fi
6910 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6911 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6912 if test $ac_cv_header_stdc = yes; then
6913
6914 cat >>confdefs.h <<\_ACEOF
6915 #define STDC_HEADERS 1
6916 _ACEOF
6917
6918 fi
6919
6920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6931                   inttypes.h stdint.h unistd.h
6932 do
6933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h.  */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h.  */
6945 $ac_includes_default
6946
6947 #include <$ac_header>
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6951 case "(($ac_try" in
6952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953   *) ac_try_echo=$ac_try;;
6954 esac
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956   (eval "$ac_compile") 2>conftest.er1
6957   ac_status=$?
6958   grep -v '^ *+' conftest.er1 >conftest.err
6959   rm -f conftest.er1
6960   cat conftest.err >&5
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } && {
6963          test -z "$ac_c_werror_flag" ||
6964          test ! -s conftest.err
6965        } && test -s conftest.$ac_objext; then
6966   eval "$as_ac_Header=yes"
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971         eval "$as_ac_Header=no"
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 fi
6976 ac_res=`eval echo '${'$as_ac_Header'}'`
6977                { echo "$as_me:$LINENO: result: $ac_res" >&5
6978 echo "${ECHO_T}$ac_res" >&6; }
6979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6980   cat >>confdefs.h <<_ACEOF
6981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6982 _ACEOF
6983
6984 fi
6985
6986 done
6987
6988
6989
6990 for ac_header in dlfcn.h
6991 do
6992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h.  */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h.  */
7004 $ac_includes_default
7005
7006 #include <$ac_header>
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012   *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015   (eval "$ac_compile") 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } && {
7022          test -z "$ac_c_werror_flag" ||
7023          test ! -s conftest.err
7024        } && test -s conftest.$ac_objext; then
7025   eval "$as_ac_Header=yes"
7026 else
7027   echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030         eval "$as_ac_Header=no"
7031 fi
7032
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 ac_res=`eval echo '${'$as_ac_Header'}'`
7036                { echo "$as_me:$LINENO: result: $ac_res" >&5
7037 echo "${ECHO_T}$ac_res" >&6; }
7038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7039   cat >>confdefs.h <<_ACEOF
7040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041 _ACEOF
7042
7043 fi
7044
7045 done
7046
7047
7048
7049 # Set options
7050
7051
7052
7053         enable_dlopen=no
7054
7055
7056   enable_win32_dll=no
7057
7058
7059             # Check whether --enable-shared was given.
7060 if test "${enable_shared+set}" = set; then
7061   enableval=$enable_shared; p=${PACKAGE-default}
7062     case $enableval in
7063     yes) enable_shared=yes ;;
7064     no) enable_shared=no ;;
7065     *)
7066       enable_shared=no
7067       # Look at the argument we got.  We use all the common list separators.
7068       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7069       for pkg in $enableval; do
7070         IFS="$lt_save_ifs"
7071         if test "X$pkg" = "X$p"; then
7072           enable_shared=yes
7073         fi
7074       done
7075       IFS="$lt_save_ifs"
7076       ;;
7077     esac
7078 else
7079   enable_shared=yes
7080 fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090   # Check whether --enable-static was given.
7091 if test "${enable_static+set}" = set; then
7092   enableval=$enable_static; p=${PACKAGE-default}
7093     case $enableval in
7094     yes) enable_static=yes ;;
7095     no) enable_static=no ;;
7096     *)
7097      enable_static=no
7098       # Look at the argument we got.  We use all the common list separators.
7099       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7100       for pkg in $enableval; do
7101         IFS="$lt_save_ifs"
7102         if test "X$pkg" = "X$p"; then
7103           enable_static=yes
7104         fi
7105       done
7106       IFS="$lt_save_ifs"
7107       ;;
7108     esac
7109 else
7110   enable_static=yes
7111 fi
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 # Check whether --with-pic was given.
7123 if test "${with_pic+set}" = set; then
7124   withval=$with_pic; pic_mode="$withval"
7125 else
7126   pic_mode=default
7127 fi
7128
7129
7130 test -z "$pic_mode" && pic_mode=default
7131
7132
7133
7134
7135
7136
7137
7138   # Check whether --enable-fast-install was given.
7139 if test "${enable_fast_install+set}" = set; then
7140   enableval=$enable_fast_install; p=${PACKAGE-default}
7141     case $enableval in
7142     yes) enable_fast_install=yes ;;
7143     no) enable_fast_install=no ;;
7144     *)
7145       enable_fast_install=no
7146       # Look at the argument we got.  We use all the common list separators.
7147       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7148       for pkg in $enableval; do
7149         IFS="$lt_save_ifs"
7150         if test "X$pkg" = "X$p"; then
7151           enable_fast_install=yes
7152         fi
7153       done
7154       IFS="$lt_save_ifs"
7155       ;;
7156     esac
7157 else
7158   enable_fast_install=yes
7159 fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 # This can be used to rebuild libtool when needed
7172 LIBTOOL_DEPS="$ltmain"
7173
7174 # Always use our own libtool.
7175 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 test -z "$LN_S" && LN_S="ln -s"
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 if test -n "${ZSH_VERSION+set}" ; then
7217    setopt NO_GLOB_SUBST
7218 fi
7219
7220 { echo "$as_me:$LINENO: checking for objdir" >&5
7221 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7222 if test "${lt_cv_objdir+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   rm -f .libs 2>/dev/null
7226 mkdir .libs 2>/dev/null
7227 if test -d .libs; then
7228   lt_cv_objdir=.libs
7229 else
7230   # MS-DOS does not allow filenames that begin with a dot.
7231   lt_cv_objdir=_libs
7232 fi
7233 rmdir .libs 2>/dev/null
7234 fi
7235 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7236 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7237 objdir=$lt_cv_objdir
7238
7239
7240
7241
7242
7243 cat >>confdefs.h <<_ACEOF
7244 #define LT_OBJDIR "$lt_cv_objdir/"
7245 _ACEOF
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263 case $host_os in
7264 aix3*)
7265   # AIX sometimes has problems with the GCC collect2 program.  For some
7266   # reason, if we set the COLLECT_NAMES environment variable, the problems
7267   # vanish in a puff of smoke.
7268   if test "X${COLLECT_NAMES+set}" != Xset; then
7269     COLLECT_NAMES=
7270     export COLLECT_NAMES
7271   fi
7272   ;;
7273 esac
7274
7275 # Sed substitution that helps us do robust quoting.  It backslashifies
7276 # metacharacters that are still active within double-quoted strings.
7277 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7278
7279 # Same as above, but do not quote variable references.
7280 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7281
7282 # Sed substitution to delay expansion of an escaped shell variable in a
7283 # double_quote_subst'ed string.
7284 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7285
7286 # Sed substitution to delay expansion of an escaped single quote.
7287 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7288
7289 # Sed substitution to avoid accidental globbing in evaled expressions
7290 no_glob_subst='s/\*/\\\*/g'
7291
7292 # Global variables:
7293 ofile=libtool
7294 can_build_shared=yes
7295
7296 # All known linkers require a `.a' archive for static linking (except MSVC,
7297 # which needs '.lib').
7298 libext=a
7299
7300 with_gnu_ld="$lt_cv_prog_gnu_ld"
7301
7302 old_CC="$CC"
7303 old_CFLAGS="$CFLAGS"
7304
7305 # Set sane defaults for various variables
7306 test -z "$CC" && CC=cc
7307 test -z "$LTCC" && LTCC=$CC
7308 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7309 test -z "$LD" && LD=ld
7310 test -z "$ac_objext" && ac_objext=o
7311
7312 for cc_temp in $compiler""; do
7313   case $cc_temp in
7314     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7315     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7316     \-*) ;;
7317     *) break;;
7318   esac
7319 done
7320 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7321
7322
7323 # Only perform the check for file, if the check method requires it
7324 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7325 case $deplibs_check_method in
7326 file_magic*)
7327   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7328     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7329 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   case $MAGIC_CMD in
7334 [\\/*] |  ?:[\\/]*)
7335   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336   ;;
7337 *)
7338   lt_save_MAGIC_CMD="$MAGIC_CMD"
7339   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341   for ac_dir in $ac_dummy; do
7342     IFS="$lt_save_ifs"
7343     test -z "$ac_dir" && ac_dir=.
7344     if test -f $ac_dir/${ac_tool_prefix}file; then
7345       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7346       if test -n "$file_magic_test_file"; then
7347         case $deplibs_check_method in
7348         "file_magic "*)
7349           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352             $EGREP "$file_magic_regex" > /dev/null; then
7353             :
7354           else
7355             cat <<_LT_EOF 1>&2
7356
7357 *** Warning: the command libtool uses to detect shared libraries,
7358 *** $file_magic_cmd, produces output that libtool cannot recognize.
7359 *** The result is that libtool may fail to recognize shared libraries
7360 *** as such.  This will affect the creation of libtool libraries that
7361 *** depend on shared libraries, but programs linked with such libtool
7362 *** libraries will work regardless of this problem.  Nevertheless, you
7363 *** may want to report the problem to your system manager and/or to
7364 *** bug-libtool@gnu.org
7365
7366 _LT_EOF
7367           fi ;;
7368         esac
7369       fi
7370       break
7371     fi
7372   done
7373   IFS="$lt_save_ifs"
7374   MAGIC_CMD="$lt_save_MAGIC_CMD"
7375   ;;
7376 esac
7377 fi
7378
7379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380 if test -n "$MAGIC_CMD"; then
7381   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7382 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389
7390
7391
7392 if test -z "$lt_cv_path_MAGIC_CMD"; then
7393   if test -n "$ac_tool_prefix"; then
7394     { echo "$as_me:$LINENO: checking for file" >&5
7395 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7396 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   case $MAGIC_CMD in
7400 [\\/*] |  ?:[\\/]*)
7401   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402   ;;
7403 *)
7404   lt_save_MAGIC_CMD="$MAGIC_CMD"
7405   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7407   for ac_dir in $ac_dummy; do
7408     IFS="$lt_save_ifs"
7409     test -z "$ac_dir" && ac_dir=.
7410     if test -f $ac_dir/file; then
7411       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7412       if test -n "$file_magic_test_file"; then
7413         case $deplibs_check_method in
7414         "file_magic "*)
7415           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7416           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7418             $EGREP "$file_magic_regex" > /dev/null; then
7419             :
7420           else
7421             cat <<_LT_EOF 1>&2
7422
7423 *** Warning: the command libtool uses to detect shared libraries,
7424 *** $file_magic_cmd, produces output that libtool cannot recognize.
7425 *** The result is that libtool may fail to recognize shared libraries
7426 *** as such.  This will affect the creation of libtool libraries that
7427 *** depend on shared libraries, but programs linked with such libtool
7428 *** libraries will work regardless of this problem.  Nevertheless, you
7429 *** may want to report the problem to your system manager and/or to
7430 *** bug-libtool@gnu.org
7431
7432 _LT_EOF
7433           fi ;;
7434         esac
7435       fi
7436       break
7437     fi
7438   done
7439   IFS="$lt_save_ifs"
7440   MAGIC_CMD="$lt_save_MAGIC_CMD"
7441   ;;
7442 esac
7443 fi
7444
7445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446 if test -n "$MAGIC_CMD"; then
7447   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7448 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7453
7454
7455   else
7456     MAGIC_CMD=:
7457   fi
7458 fi
7459
7460   fi
7461   ;;
7462 esac
7463
7464 # Use C for the default configuration in the libtool script
7465
7466 lt_save_CC="$CC"
7467 ac_ext=c
7468 ac_cpp='$CPP $CPPFLAGS'
7469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472
7473
7474 # Source file extension for C test sources.
7475 ac_ext=c
7476
7477 # Object file extension for compiled C test sources.
7478 objext=o
7479 objext=$objext
7480
7481 # Code to be used in simple compile tests
7482 lt_simple_compile_test_code="int some_variable = 0;"
7483
7484 # Code to be used in simple link tests
7485 lt_simple_link_test_code='int main(){return(0);}'
7486
7487
7488
7489
7490
7491
7492
7493 # If no C compiler was specified, use CC.
7494 LTCC=${LTCC-"$CC"}
7495
7496 # If no C compiler flags were specified, use CFLAGS.
7497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498
7499 # Allow CC to be a program name with arguments.
7500 compiler=$CC
7501
7502 # Save the default compiler, since it gets overwritten when the other
7503 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7504 compiler_DEFAULT=$CC
7505
7506 # save warnings/boilerplate of simple test code
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510 _lt_compiler_boilerplate=`cat conftest.err`
7511 $RM conftest*
7512
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516 _lt_linker_boilerplate=`cat conftest.err`
7517 $RM -r conftest*
7518
7519
7520 if test -n "$compiler"; then
7521
7522 lt_prog_compiler_no_builtin_flag=
7523
7524 if test "$GCC" = yes; then
7525   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7526
7527   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7528 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7529 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   lt_cv_prog_compiler_rtti_exceptions=no
7533    ac_outfile=conftest.$ac_objext
7534    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7535    lt_compiler_flag="-fno-rtti -fno-exceptions"
7536    # Insert the option either (1) after the last *FLAGS variable, or
7537    # (2) before a word containing "conftest.", or (3) at the end.
7538    # Note that $ac_compile itself does not contain backslashes and begins
7539    # with a dollar sign (not a hyphen), so the echo should work correctly.
7540    # The option is referenced via a variable to avoid confusing sed.
7541    lt_compile=`echo "$ac_compile" | $SED \
7542    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7544    -e 's:$: $lt_compiler_flag:'`
7545    (eval echo "\"\$as_me:7545: $lt_compile\"" >&5)
7546    (eval "$lt_compile" 2>conftest.err)
7547    ac_status=$?
7548    cat conftest.err >&5
7549    echo "$as_me:7549: \$? = $ac_status" >&5
7550    if (exit $ac_status) && test -s "$ac_outfile"; then
7551      # The compiler can only warn and ignore the option if not recognized
7552      # So say no if there are warnings other than the usual output.
7553      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7554      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7555      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7556        lt_cv_prog_compiler_rtti_exceptions=yes
7557      fi
7558    fi
7559    $RM conftest*
7560
7561 fi
7562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7563 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7564
7565 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7566     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7567 else
7568     :
7569 fi
7570
7571 fi
7572
7573
7574
7575
7576
7577
7578   lt_prog_compiler_wl=
7579 lt_prog_compiler_pic=
7580 lt_prog_compiler_static=
7581
7582 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7584
7585   if test "$GCC" = yes; then
7586     lt_prog_compiler_wl='-Wl,'
7587     lt_prog_compiler_static='-static'
7588
7589     case $host_os in
7590       aix*)
7591       # All AIX code is PIC.
7592       if test "$host_cpu" = ia64; then
7593         # AIX 5 now supports IA64 processor
7594         lt_prog_compiler_static='-Bstatic'
7595       fi
7596       ;;
7597
7598     amigaos*)
7599       case $host_cpu in
7600       powerpc)
7601             # see comment about AmigaOS4 .so support
7602             lt_prog_compiler_pic='-fPIC'
7603         ;;
7604       m68k)
7605             # FIXME: we need at least 68020 code to build shared libraries, but
7606             # adding the `-m68020' flag to GCC prevents building anything better,
7607             # like `-m68040'.
7608             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7609         ;;
7610       esac
7611       ;;
7612
7613     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7614       # PIC is the default for these OSes.
7615       ;;
7616
7617     mingw* | cygwin* | pw32* | os2*)
7618       # This hack is so that the source file can tell whether it is being
7619       # built for inclusion in a dll (and should export symbols for example).
7620       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7621       # (--disable-auto-import) libraries
7622       lt_prog_compiler_pic='-DDLL_EXPORT'
7623       ;;
7624
7625     darwin* | rhapsody*)
7626       # PIC is the default on this platform
7627       # Common symbols not allowed in MH_DYLIB files
7628       lt_prog_compiler_pic='-fno-common'
7629       ;;
7630
7631     hpux*)
7632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7633       # not for PA HP-UX.
7634       case $host_cpu in
7635       hppa*64*|ia64*)
7636         # +Z the default
7637         ;;
7638       *)
7639         lt_prog_compiler_pic='-fPIC'
7640         ;;
7641       esac
7642       ;;
7643
7644     interix[3-9]*)
7645       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7646       # Instead, we relocate shared libraries at runtime.
7647       ;;
7648
7649     msdosdjgpp*)
7650       # Just because we use GCC doesn't mean we suddenly get shared libraries
7651       # on systems that don't support them.
7652       lt_prog_compiler_can_build_shared=no
7653       enable_shared=no
7654       ;;
7655
7656     *nto* | *qnx*)
7657       # QNX uses GNU C++, but need to define -shared option too, otherwise
7658       # it will coredump.
7659       lt_prog_compiler_pic='-fPIC -shared'
7660       ;;
7661
7662     sysv4*MP*)
7663       if test -d /usr/nec; then
7664         lt_prog_compiler_pic=-Kconform_pic
7665       fi
7666       ;;
7667
7668     *)
7669       lt_prog_compiler_pic='-fPIC'
7670       ;;
7671     esac
7672   else
7673     # PORTME Check for flag to pass linker flags through the system compiler.
7674     case $host_os in
7675     aix*)
7676       lt_prog_compiler_wl='-Wl,'
7677       if test "$host_cpu" = ia64; then
7678         # AIX 5 now supports IA64 processor
7679         lt_prog_compiler_static='-Bstatic'
7680       else
7681         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7682       fi
7683       ;;
7684
7685     mingw* | cygwin* | pw32* | os2*)
7686       # This hack is so that the source file can tell whether it is being
7687       # built for inclusion in a dll (and should export symbols for example).
7688       lt_prog_compiler_pic='-DDLL_EXPORT'
7689       ;;
7690
7691     hpux9* | hpux10* | hpux11*)
7692       lt_prog_compiler_wl='-Wl,'
7693       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7694       # not for PA HP-UX.
7695       case $host_cpu in
7696       hppa*64*|ia64*)
7697         # +Z the default
7698         ;;
7699       *)
7700         lt_prog_compiler_pic='+Z'
7701         ;;
7702       esac
7703       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7704       lt_prog_compiler_static='${wl}-a ${wl}archive'
7705       ;;
7706
7707     irix5* | irix6* | nonstopux*)
7708       lt_prog_compiler_wl='-Wl,'
7709       # PIC (with -KPIC) is the default.
7710       lt_prog_compiler_static='-non_shared'
7711       ;;
7712
7713     linux* | k*bsd*-gnu)
7714       case $cc_basename in
7715       icc* | ecc* | ifort*)
7716         lt_prog_compiler_wl='-Wl,'
7717         lt_prog_compiler_pic='-KPIC'
7718         lt_prog_compiler_static='-static'
7719         ;;
7720       pgcc* | pgf77* | pgf90* | pgf95*)
7721         # Portland Group compilers (*not* the Pentium gcc compiler,
7722         # which looks to be a dead project)
7723         lt_prog_compiler_wl='-Wl,'
7724         lt_prog_compiler_pic='-fpic'
7725         lt_prog_compiler_static='-Bstatic'
7726         ;;
7727       ccc*)
7728         lt_prog_compiler_wl='-Wl,'
7729         # All Alpha code is PIC.
7730         lt_prog_compiler_static='-non_shared'
7731         ;;
7732       xl*)
7733         # IBM XL C 8.0/Fortran 10.1 on PPC
7734         lt_prog_compiler_wl='-Wl,'
7735         lt_prog_compiler_pic='-qpic'
7736         lt_prog_compiler_static='-qstaticlink'
7737         ;;
7738       *)
7739         case `$CC -V 2>&1 | sed 5q` in
7740         *Sun\ C*)
7741           # Sun C 5.9
7742           lt_prog_compiler_pic='-KPIC'
7743           lt_prog_compiler_static='-Bstatic'
7744           lt_prog_compiler_wl='-Wl,'
7745           ;;
7746         *Sun\ F*)
7747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748           lt_prog_compiler_pic='-KPIC'
7749           lt_prog_compiler_static='-Bstatic'
7750           lt_prog_compiler_wl=''
7751           ;;
7752         esac
7753         ;;
7754       esac
7755       ;;
7756
7757     newsos6)
7758       lt_prog_compiler_pic='-KPIC'
7759       lt_prog_compiler_static='-Bstatic'
7760       ;;
7761
7762     *nto* | *qnx*)
7763       # QNX uses GNU C++, but need to define -shared option too, otherwise
7764       # it will coredump.
7765       lt_prog_compiler_pic='-fPIC -shared'
7766       ;;
7767
7768     osf3* | osf4* | osf5*)
7769       lt_prog_compiler_wl='-Wl,'
7770       # All OSF/1 code is PIC.
7771       lt_prog_compiler_static='-non_shared'
7772       ;;
7773
7774     rdos*)
7775       lt_prog_compiler_static='-non_shared'
7776       ;;
7777
7778     solaris*)
7779       lt_prog_compiler_pic='-KPIC'
7780       lt_prog_compiler_static='-Bstatic'
7781       case $cc_basename in
7782       f77* | f90* | f95*)
7783         lt_prog_compiler_wl='-Qoption ld ';;
7784       *)
7785         lt_prog_compiler_wl='-Wl,';;
7786       esac
7787       ;;
7788
7789     sunos4*)
7790       lt_prog_compiler_wl='-Qoption ld '
7791       lt_prog_compiler_pic='-PIC'
7792       lt_prog_compiler_static='-Bstatic'
7793       ;;
7794
7795     sysv4 | sysv4.2uw2* | sysv4.3*)
7796       lt_prog_compiler_wl='-Wl,'
7797       lt_prog_compiler_pic='-KPIC'
7798       lt_prog_compiler_static='-Bstatic'
7799       ;;
7800
7801     sysv4*MP*)
7802       if test -d /usr/nec ;then
7803         lt_prog_compiler_pic='-Kconform_pic'
7804         lt_prog_compiler_static='-Bstatic'
7805       fi
7806       ;;
7807
7808     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7809       lt_prog_compiler_wl='-Wl,'
7810       lt_prog_compiler_pic='-KPIC'
7811       lt_prog_compiler_static='-Bstatic'
7812       ;;
7813
7814     unicos*)
7815       lt_prog_compiler_wl='-Wl,'
7816       lt_prog_compiler_can_build_shared=no
7817       ;;
7818
7819     uts4*)
7820       lt_prog_compiler_pic='-pic'
7821       lt_prog_compiler_static='-Bstatic'
7822       ;;
7823
7824     *)
7825       lt_prog_compiler_can_build_shared=no
7826       ;;
7827     esac
7828   fi
7829
7830 case $host_os in
7831   # For platforms which do not support PIC, -DPIC is meaningless:
7832   *djgpp*)
7833     lt_prog_compiler_pic=
7834     ;;
7835   *)
7836     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7837     ;;
7838 esac
7839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7841
7842
7843
7844
7845
7846
7847 #
7848 # Check to make sure the PIC flag actually works.
7849 #
7850 if test -n "$lt_prog_compiler_pic"; then
7851   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7853 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   lt_cv_prog_compiler_pic_works=no
7857    ac_outfile=conftest.$ac_objext
7858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7860    # Insert the option either (1) after the last *FLAGS variable, or
7861    # (2) before a word containing "conftest.", or (3) at the end.
7862    # Note that $ac_compile itself does not contain backslashes and begins
7863    # with a dollar sign (not a hyphen), so the echo should work correctly.
7864    # The option is referenced via a variable to avoid confusing sed.
7865    lt_compile=`echo "$ac_compile" | $SED \
7866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7868    -e 's:$: $lt_compiler_flag:'`
7869    (eval echo "\"\$as_me:7869: $lt_compile\"" >&5)
7870    (eval "$lt_compile" 2>conftest.err)
7871    ac_status=$?
7872    cat conftest.err >&5
7873    echo "$as_me:7873: \$? = $ac_status" >&5
7874    if (exit $ac_status) && test -s "$ac_outfile"; then
7875      # The compiler can only warn and ignore the option if not recognized
7876      # So say no if there are warnings other than the usual output.
7877      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7878      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7879      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7880        lt_cv_prog_compiler_pic_works=yes
7881      fi
7882    fi
7883    $RM conftest*
7884
7885 fi
7886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7887 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7888
7889 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7890     case $lt_prog_compiler_pic in
7891      "" | " "*) ;;
7892      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7893      esac
7894 else
7895     lt_prog_compiler_pic=
7896      lt_prog_compiler_can_build_shared=no
7897 fi
7898
7899 fi
7900
7901
7902
7903
7904
7905
7906 #
7907 # Check to make sure the static flag actually works.
7908 #
7909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7910 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7912 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   lt_cv_prog_compiler_static_works=no
7916    save_LDFLAGS="$LDFLAGS"
7917    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7920      # The linker can only warn and ignore the option if not recognized
7921      # So say no if there are warnings
7922      if test -s conftest.err; then
7923        # Append any errors to the config.log.
7924        cat conftest.err 1>&5
7925        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927        if diff conftest.exp conftest.er2 >/dev/null; then
7928          lt_cv_prog_compiler_static_works=yes
7929        fi
7930      else
7931        lt_cv_prog_compiler_static_works=yes
7932      fi
7933    fi
7934    $RM -r conftest*
7935    LDFLAGS="$save_LDFLAGS"
7936
7937 fi
7938 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7939 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7940
7941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7942     :
7943 else
7944     lt_prog_compiler_static=
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_prog_compiler_c_o=no
7959    $RM -r conftest 2>/dev/null
7960    mkdir conftest
7961    cd conftest
7962    mkdir out
7963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964
7965    lt_compiler_flag="-o out/conftest2.$ac_objext"
7966    # Insert the option either (1) after the last *FLAGS variable, or
7967    # (2) before a word containing "conftest.", or (3) at the end.
7968    # Note that $ac_compile itself does not contain backslashes and begins
7969    # with a dollar sign (not a hyphen), so the echo should work correctly.
7970    lt_compile=`echo "$ac_compile" | $SED \
7971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973    -e 's:$: $lt_compiler_flag:'`
7974    (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975    (eval "$lt_compile" 2>out/conftest.err)
7976    ac_status=$?
7977    cat out/conftest.err >&5
7978    echo "$as_me:7978: \$? = $ac_status" >&5
7979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7980    then
7981      # The compiler can only warn and ignore the option if not recognized
7982      # So say no if there are warnings
7983      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986        lt_cv_prog_compiler_c_o=yes
7987      fi
7988    fi
7989    chmod u+w . 2>&5
7990    $RM conftest*
7991    # SGI C++ compiler will create directory out/ii_files/ for
7992    # template instantiation
7993    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7994    $RM out/* && rmdir out
7995    cd ..
7996    $RM -r conftest
7997    $RM conftest*
7998
7999 fi
8000 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8002
8003
8004
8005
8006
8007
8008   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   lt_cv_prog_compiler_c_o=no
8014    $RM -r conftest 2>/dev/null
8015    mkdir conftest
8016    cd conftest
8017    mkdir out
8018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019
8020    lt_compiler_flag="-o out/conftest2.$ac_objext"
8021    # Insert the option either (1) after the last *FLAGS variable, or
8022    # (2) before a word containing "conftest.", or (3) at the end.
8023    # Note that $ac_compile itself does not contain backslashes and begins
8024    # with a dollar sign (not a hyphen), so the echo should work correctly.
8025    lt_compile=`echo "$ac_compile" | $SED \
8026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028    -e 's:$: $lt_compiler_flag:'`
8029    (eval echo "\"\$as_me:8029: $lt_compile\"" >&5)
8030    (eval "$lt_compile" 2>out/conftest.err)
8031    ac_status=$?
8032    cat out/conftest.err >&5
8033    echo "$as_me:8033: \$? = $ac_status" >&5
8034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8035    then
8036      # The compiler can only warn and ignore the option if not recognized
8037      # So say no if there are warnings
8038      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041        lt_cv_prog_compiler_c_o=yes
8042      fi
8043    fi
8044    chmod u+w . 2>&5
8045    $RM conftest*
8046    # SGI C++ compiler will create directory out/ii_files/ for
8047    # template instantiation
8048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8049    $RM out/* && rmdir out
8050    cd ..
8051    $RM -r conftest
8052    $RM conftest*
8053
8054 fi
8055 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8057
8058
8059
8060
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063   # do not overwrite the value of need_locks provided by the user
8064   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8066   hard_links=yes
8067   $RM conftest*
8068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069   touch conftest.a
8070   ln conftest.a conftest.b 2>&5 || hard_links=no
8071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072   { echo "$as_me:$LINENO: result: $hard_links" >&5
8073 echo "${ECHO_T}$hard_links" >&6; }
8074   if test "$hard_links" = no; then
8075     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8077     need_locks=warn
8078   fi
8079 else
8080   need_locks=no
8081 fi
8082
8083
8084
8085
8086
8087
8088   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8090
8091   runpath_var=
8092   allow_undefined_flag=
8093   always_export_symbols=no
8094   archive_cmds=
8095   archive_expsym_cmds=
8096   compiler_needs_object=no
8097   enable_shared_with_static_runtimes=no
8098   export_dynamic_flag_spec=
8099   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100   hardcode_automatic=no
8101   hardcode_direct=no
8102   hardcode_direct_absolute=no
8103   hardcode_libdir_flag_spec=
8104   hardcode_libdir_flag_spec_ld=
8105   hardcode_libdir_separator=
8106   hardcode_minus_L=no
8107   hardcode_shlibpath_var=unsupported
8108   inherit_rpath=no
8109   link_all_deplibs=unknown
8110   module_cmds=
8111   module_expsym_cmds=
8112   old_archive_from_new_cmds=
8113   old_archive_from_expsyms_cmds=
8114   thread_safe_flag_spec=
8115   whole_archive_flag_spec=
8116   # include_expsyms should be a list of space-separated symbols to be *always*
8117   # included in the symbol list
8118   include_expsyms=
8119   # exclude_expsyms can be an extended regexp of symbols to exclude
8120   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8121   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8122   # as well as any symbol that contains `d'.
8123   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8124   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8125   # platforms (ab)use it in PIC code, but their linkers get confused if
8126   # the symbol is explicitly referenced.  Since portable code cannot
8127   # rely on this symbol name, it's probably fine to never include it in
8128   # preloaded symbol tables.
8129   # Exclude shared library initialization/finalization symbols.
8130   extract_expsyms_cmds=
8131
8132   case $host_os in
8133   cygwin* | mingw* | pw32*)
8134     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8135     # When not using gcc, we currently assume that we are using
8136     # Microsoft Visual C++.
8137     if test "$GCC" != yes; then
8138       with_gnu_ld=no
8139     fi
8140     ;;
8141   interix*)
8142     # we just hope/assume this is gcc and not c89 (= MSVC++)
8143     with_gnu_ld=yes
8144     ;;
8145   openbsd*)
8146     with_gnu_ld=no
8147     ;;
8148   esac
8149
8150   ld_shlibs=yes
8151   if test "$with_gnu_ld" = yes; then
8152     # If archive_cmds runs LD, not CC, wlarc should be empty
8153     wlarc='${wl}'
8154
8155     # Set some defaults for GNU ld with shared library support. These
8156     # are reset later if shared libraries are not supported. Putting them
8157     # here allows them to be overridden if necessary.
8158     runpath_var=LD_RUN_PATH
8159     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8160     export_dynamic_flag_spec='${wl}--export-dynamic'
8161     # ancient GNU ld didn't support --whole-archive et. al.
8162     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8163       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8164     else
8165       whole_archive_flag_spec=
8166     fi
8167     supports_anon_versioning=no
8168     case `$LD -v 2>&1` in
8169       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8170       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8171       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8172       *\ 2.11.*) ;; # other 2.11 versions
8173       *) supports_anon_versioning=yes ;;
8174     esac
8175
8176     # See if GNU ld supports shared libraries.
8177     case $host_os in
8178     aix[3-9]*)
8179       # On AIX/PPC, the GNU linker is very broken
8180       if test "$host_cpu" != ia64; then
8181         ld_shlibs=no
8182         cat <<_LT_EOF 1>&2
8183
8184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8185 *** to be unable to reliably create shared libraries on AIX.
8186 *** Therefore, libtool is disabling shared libraries support.  If you
8187 *** really care for shared libraries, you may want to modify your PATH
8188 *** so that a non-GNU linker is found, and then restart.
8189
8190 _LT_EOF
8191       fi
8192       ;;
8193
8194     amigaos*)
8195       case $host_cpu in
8196       powerpc)
8197             # see comment about AmigaOS4 .so support
8198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199             archive_expsym_cmds=''
8200         ;;
8201       m68k)
8202             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)'
8203             hardcode_libdir_flag_spec='-L$libdir'
8204             hardcode_minus_L=yes
8205         ;;
8206       esac
8207       ;;
8208
8209     beos*)
8210       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8211         allow_undefined_flag=unsupported
8212         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8213         # support --undefined.  This deserves some investigation.  FIXME
8214         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215       else
8216         ld_shlibs=no
8217       fi
8218       ;;
8219
8220     cygwin* | mingw* | pw32*)
8221       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8222       # as there is no search path for DLLs.
8223       hardcode_libdir_flag_spec='-L$libdir'
8224       allow_undefined_flag=unsupported
8225       always_export_symbols=no
8226       enable_shared_with_static_runtimes=yes
8227       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8228
8229       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8231         # If the export-symbols file already is a .def file (1st line
8232         # is EXPORTS), use it as is; otherwise, prepend...
8233         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8234           cp $export_symbols $output_objdir/$soname.def;
8235         else
8236           echo EXPORTS > $output_objdir/$soname.def;
8237           cat $export_symbols >> $output_objdir/$soname.def;
8238         fi~
8239         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8240       else
8241         ld_shlibs=no
8242       fi
8243       ;;
8244
8245     interix[3-9]*)
8246       hardcode_direct=no
8247       hardcode_shlibpath_var=no
8248       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8249       export_dynamic_flag_spec='${wl}-E'
8250       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8251       # Instead, shared libraries are loaded at an image base (0x10000000 by
8252       # default) and relocated if they conflict, which is a slow very memory
8253       # consuming and fragmenting process.  To avoid this, we pick a random,
8254       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8255       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8256       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8257       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'
8258       ;;
8259
8260     gnu* | linux* | tpf* | k*bsd*-gnu)
8261       tmp_diet=no
8262       if test "$host_os" = linux-dietlibc; then
8263         case $cc_basename in
8264           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8265         esac
8266       fi
8267       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8268          && test "$tmp_diet" = no
8269       then
8270         tmp_addflag=
8271         tmp_sharedflag='-shared'
8272         case $cc_basename,$host_cpu in
8273         pgcc*)                          # Portland Group C compiler
8274           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'
8275           tmp_addflag=' $pic_flag'
8276           ;;
8277         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8278           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'
8279           tmp_addflag=' $pic_flag -Mnomain' ;;
8280         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8281           tmp_addflag=' -i_dynamic' ;;
8282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8283           tmp_addflag=' -i_dynamic -nofor_main' ;;
8284         ifc* | ifort*)                  # Intel Fortran compiler
8285           tmp_addflag=' -nofor_main' ;;
8286         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8287           tmp_sharedflag='-qmkshrobj'
8288           tmp_addflag= ;;
8289         esac
8290         case `$CC -V 2>&1 | sed 5q` in
8291         *Sun\ C*)                       # Sun C 5.9
8292           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'
8293           compiler_needs_object=yes
8294           tmp_sharedflag='-G' ;;
8295         *Sun\ F*)                       # Sun Fortran 8.3
8296           tmp_sharedflag='-G' ;;
8297         esac
8298         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299
8300         if test "x$supports_anon_versioning" = xyes; then
8301           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8302             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8303             echo "local: *; };" >> $output_objdir/$libname.ver~
8304             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8305         fi
8306
8307         case $cc_basename in
8308         xlf*)
8309           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8310           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8311           hardcode_libdir_flag_spec=
8312           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8313           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8314           if test "x$supports_anon_versioning" = xyes; then
8315             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8316               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8317               echo "local: *; };" >> $output_objdir/$libname.ver~
8318               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8319           fi
8320           ;;
8321         esac
8322       else
8323         ld_shlibs=no
8324       fi
8325       ;;
8326
8327     netbsd*)
8328       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8329         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8330         wlarc=
8331       else
8332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334       fi
8335       ;;
8336
8337     solaris*)
8338       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8339         ld_shlibs=no
8340         cat <<_LT_EOF 1>&2
8341
8342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8343 *** create shared libraries on Solaris systems.  Therefore, libtool
8344 *** is disabling shared libraries support.  We urge you to upgrade GNU
8345 *** binutils to release 2.9.1 or newer.  Another option is to modify
8346 *** your PATH or compiler configuration so that the native linker is
8347 *** used, and then restart.
8348
8349 _LT_EOF
8350       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353       else
8354         ld_shlibs=no
8355       fi
8356       ;;
8357
8358     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8359       case `$LD -v 2>&1` in
8360         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8361         ld_shlibs=no
8362         cat <<_LT_EOF 1>&2
8363
8364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8365 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8366 *** is disabling shared libraries support.  We urge you to upgrade GNU
8367 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8368 *** your PATH or compiler configuration so that the native linker is
8369 *** used, and then restart.
8370
8371 _LT_EOF
8372         ;;
8373         *)
8374           # For security reasons, it is highly recommended that you always
8375           # use absolute paths for naming shared libraries, and exclude the
8376           # DT_RUNPATH tag from executables and libraries.  But doing so
8377           # requires that you compile everything twice, which is a pain.
8378           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8379             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8380             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382           else
8383             ld_shlibs=no
8384           fi
8385         ;;
8386       esac
8387       ;;
8388
8389     sunos4*)
8390       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8391       wlarc=
8392       hardcode_direct=yes
8393       hardcode_shlibpath_var=no
8394       ;;
8395
8396     *)
8397       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8400       else
8401         ld_shlibs=no
8402       fi
8403       ;;
8404     esac
8405
8406     if test "$ld_shlibs" = no; then
8407       runpath_var=
8408       hardcode_libdir_flag_spec=
8409       export_dynamic_flag_spec=
8410       whole_archive_flag_spec=
8411     fi
8412   else
8413     # PORTME fill in a description of your system's linker (not GNU ld)
8414     case $host_os in
8415     aix3*)
8416       allow_undefined_flag=unsupported
8417       always_export_symbols=yes
8418       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'
8419       # Note: this linker hardcodes the directories in LIBPATH if there
8420       # are no directories specified by -L.
8421       hardcode_minus_L=yes
8422       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8423         # Neither direct hardcoding nor static linking is supported with a
8424         # broken collect2.
8425         hardcode_direct=unsupported
8426       fi
8427       ;;
8428
8429     aix[4-9]*)
8430       if test "$host_cpu" = ia64; then
8431         # On IA64, the linker does run time linking by default, so we don't
8432         # have to do anything special.
8433         aix_use_runtimelinking=no
8434         exp_sym_flag='-Bexport'
8435         no_entry_flag=""
8436       else
8437         # If we're using GNU nm, then we don't want the "-C" option.
8438         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8439         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8440           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'
8441         else
8442           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'
8443         fi
8444         aix_use_runtimelinking=no
8445
8446         # Test if we are trying to use run time linking or normal
8447         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8448         # need to do runtime linking.
8449         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8450           for ld_flag in $LDFLAGS; do
8451           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8452             aix_use_runtimelinking=yes
8453             break
8454           fi
8455           done
8456           ;;
8457         esac
8458
8459         exp_sym_flag='-bexport'
8460         no_entry_flag='-bnoentry'
8461       fi
8462
8463       # When large executables or shared objects are built, AIX ld can
8464       # have problems creating the table of contents.  If linking a library
8465       # or program results in "error TOC overflow" add -mminimal-toc to
8466       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8467       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8468
8469       archive_cmds=''
8470       hardcode_direct=yes
8471       hardcode_direct_absolute=yes
8472       hardcode_libdir_separator=':'
8473       link_all_deplibs=yes
8474       file_list_spec='${wl}-f,'
8475
8476       if test "$GCC" = yes; then
8477         case $host_os in aix4.[012]|aix4.[012].*)
8478         # We only want to do this on AIX 4.2 and lower, the check
8479         # below for broken collect2 doesn't work under 4.3+
8480           collect2name=`${CC} -print-prog-name=collect2`
8481           if test -f "$collect2name" &&
8482            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8483           then
8484           # We have reworked collect2
8485           :
8486           else
8487           # We have old collect2
8488           hardcode_direct=unsupported
8489           # It fails to find uninstalled libraries when the uninstalled
8490           # path is not listed in the libpath.  Setting hardcode_minus_L
8491           # to unsupported forces relinking
8492           hardcode_minus_L=yes
8493           hardcode_libdir_flag_spec='-L$libdir'
8494           hardcode_libdir_separator=
8495           fi
8496           ;;
8497         esac
8498         shared_flag='-shared'
8499         if test "$aix_use_runtimelinking" = yes; then
8500           shared_flag="$shared_flag "'${wl}-G'
8501         fi
8502       else
8503         # not using gcc
8504         if test "$host_cpu" = ia64; then
8505         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8506         # chokes on -Wl,-G. The following line is correct:
8507           shared_flag='-G'
8508         else
8509           if test "$aix_use_runtimelinking" = yes; then
8510             shared_flag='${wl}-G'
8511           else
8512             shared_flag='${wl}-bM:SRE'
8513           fi
8514         fi
8515       fi
8516
8517       # It seems that -bexpall does not export symbols beginning with
8518       # underscore (_), so it is better to generate a list of symbols to export.
8519       always_export_symbols=yes
8520       if test "$aix_use_runtimelinking" = yes; then
8521         # Warning - without using the other runtime loading flags (-brtl),
8522         # -berok will link without error, but may produce a broken library.
8523         allow_undefined_flag='-berok'
8524         # Determine the default libpath from the value encoded in an
8525         # empty executable.
8526         cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 int
8534 main ()
8535 {
8536
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (ac_try="$ac_link"
8543 case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548   (eval "$ac_link") 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } && {
8555          test -z "$ac_c_werror_flag" ||
8556          test ! -s conftest.err
8557        } && test -s conftest$ac_exeext &&
8558        $as_test_x conftest$ac_exeext; then
8559
8560 lt_aix_libpath_sed='
8561     /Import File Strings/,/^$/ {
8562         /^0/ {
8563             s/^0  *\(.*\)$/\1/
8564             p
8565         }
8566     }'
8567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8568 # Check for a 64-bit object if we didn't find anything.
8569 if test -z "$aix_libpath"; then
8570   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8571 fi
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576
8577 fi
8578
8579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8580       conftest$ac_exeext conftest.$ac_ext
8581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8582
8583         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8584         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"
8585       else
8586         if test "$host_cpu" = ia64; then
8587           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8588           allow_undefined_flag="-z nodefs"
8589           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"
8590         else
8591          # Determine the default libpath from the value encoded in an
8592          # empty executable.
8593          cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 int
8601 main ()
8602 {
8603
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8610 case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_link") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } && {
8622          test -z "$ac_c_werror_flag" ||
8623          test ! -s conftest.err
8624        } && test -s conftest$ac_exeext &&
8625        $as_test_x conftest$ac_exeext; then
8626
8627 lt_aix_libpath_sed='
8628     /Import File Strings/,/^$/ {
8629         /^0/ {
8630             s/^0  *\(.*\)$/\1/
8631             p
8632         }
8633     }'
8634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8635 # Check for a 64-bit object if we didn't find anything.
8636 if test -z "$aix_libpath"; then
8637   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638 fi
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8647       conftest$ac_exeext conftest.$ac_ext
8648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8649
8650          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651           # Warning - without using the other run time loading flags,
8652           # -berok will link without error, but may produce a broken library.
8653           no_undefined_flag=' ${wl}-bernotok'
8654           allow_undefined_flag=' ${wl}-berok'
8655           # Exported symbols can be pulled into shared objects from archives
8656           whole_archive_flag_spec='$convenience'
8657           archive_cmds_need_lc=yes
8658           # This is similar to how AIX traditionally builds its shared libraries.
8659           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'
8660         fi
8661       fi
8662       ;;
8663
8664     amigaos*)
8665       case $host_cpu in
8666       powerpc)
8667             # see comment about AmigaOS4 .so support
8668             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669             archive_expsym_cmds=''
8670         ;;
8671       m68k)
8672             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)'
8673             hardcode_libdir_flag_spec='-L$libdir'
8674             hardcode_minus_L=yes
8675         ;;
8676       esac
8677       ;;
8678
8679     bsdi[45]*)
8680       export_dynamic_flag_spec=-rdynamic
8681       ;;
8682
8683     cygwin* | mingw* | pw32*)
8684       # When not using gcc, we currently assume that we are using
8685       # Microsoft Visual C++.
8686       # hardcode_libdir_flag_spec is actually meaningless, as there is
8687       # no search path for DLLs.
8688       hardcode_libdir_flag_spec=' '
8689       allow_undefined_flag=unsupported
8690       # Tell ltmain to make .lib files, not .a files.
8691       libext=lib
8692       # Tell ltmain to make .dll files, not .so files.
8693       shrext_cmds=".dll"
8694       # FIXME: Setting linknames here is a bad hack.
8695       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8696       # The linker will automatically build a .lib file if we build a DLL.
8697       old_archive_from_new_cmds='true'
8698       # FIXME: Should let the user specify the lib program.
8699       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8700       fix_srcfile_path='`cygpath -w "$srcfile"`'
8701       enable_shared_with_static_runtimes=yes
8702       ;;
8703
8704     darwin* | rhapsody*)
8705
8706
8707   archive_cmds_need_lc=no
8708   hardcode_direct=no
8709   hardcode_automatic=yes
8710   hardcode_shlibpath_var=unsupported
8711   whole_archive_flag_spec=''
8712   link_all_deplibs=yes
8713   allow_undefined_flag="$_lt_dar_allow_undefined"
8714   if test "$GCC" = "yes"; then
8715     output_verbose_link_cmd=echo
8716     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8717     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8718     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}"
8719     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}"
8720
8721   else
8722   ld_shlibs=no
8723   fi
8724
8725       ;;
8726
8727     dgux*)
8728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729       hardcode_libdir_flag_spec='-L$libdir'
8730       hardcode_shlibpath_var=no
8731       ;;
8732
8733     freebsd1*)
8734       ld_shlibs=no
8735       ;;
8736
8737     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8738     # support.  Future versions do this automatically, but an explicit c++rt0.o
8739     # does not break anything, and helps significantly (at the cost of a little
8740     # extra space).
8741     freebsd2.2*)
8742       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8743       hardcode_libdir_flag_spec='-R$libdir'
8744       hardcode_direct=yes
8745       hardcode_shlibpath_var=no
8746       ;;
8747
8748     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8749     freebsd2*)
8750       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751       hardcode_direct=yes
8752       hardcode_minus_L=yes
8753       hardcode_shlibpath_var=no
8754       ;;
8755
8756     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8757     freebsd* | dragonfly*)
8758       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8759       hardcode_libdir_flag_spec='-R$libdir'
8760       hardcode_direct=yes
8761       hardcode_shlibpath_var=no
8762       ;;
8763
8764     hpux9*)
8765       if test "$GCC" = yes; then
8766         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'
8767       else
8768         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'
8769       fi
8770       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8771       hardcode_libdir_separator=:
8772       hardcode_direct=yes
8773
8774       # hardcode_minus_L: Not really in the search PATH,
8775       # but as the default location of the library.
8776       hardcode_minus_L=yes
8777       export_dynamic_flag_spec='${wl}-E'
8778       ;;
8779
8780     hpux10*)
8781       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8782         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8783       else
8784         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8785       fi
8786       if test "$with_gnu_ld" = no; then
8787         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8788         hardcode_libdir_flag_spec_ld='+b $libdir'
8789         hardcode_libdir_separator=:
8790         hardcode_direct=yes
8791         hardcode_direct_absolute=yes
8792         export_dynamic_flag_spec='${wl}-E'
8793         # hardcode_minus_L: Not really in the search PATH,
8794         # but as the default location of the library.
8795         hardcode_minus_L=yes
8796       fi
8797       ;;
8798
8799     hpux11*)
8800       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8801         case $host_cpu in
8802         hppa*64*)
8803           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8804           ;;
8805         ia64*)
8806           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8807           ;;
8808         *)
8809           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8810           ;;
8811         esac
8812       else
8813         case $host_cpu in
8814         hppa*64*)
8815           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816           ;;
8817         ia64*)
8818           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8819           ;;
8820         *)
8821           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8822           ;;
8823         esac
8824       fi
8825       if test "$with_gnu_ld" = no; then
8826         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8827         hardcode_libdir_separator=:
8828
8829         case $host_cpu in
8830         hppa*64*|ia64*)
8831           hardcode_direct=no
8832           hardcode_shlibpath_var=no
8833           ;;
8834         *)
8835           hardcode_direct=yes
8836           hardcode_direct_absolute=yes
8837           export_dynamic_flag_spec='${wl}-E'
8838
8839           # hardcode_minus_L: Not really in the search PATH,
8840           # but as the default location of the library.
8841           hardcode_minus_L=yes
8842           ;;
8843         esac
8844       fi
8845       ;;
8846
8847     irix5* | irix6* | nonstopux*)
8848       if test "$GCC" = yes; then
8849         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'
8850         # Try to use the -exported_symbol ld option, if it does not
8851         # work, assume that -exports_file does not work either and
8852         # implicitly export all symbols.
8853         save_LDFLAGS="$LDFLAGS"
8854         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8855         cat >conftest.$ac_ext <<_ACEOF
8856 int foo(void) {}
8857 _ACEOF
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8860 case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_link") 2>conftest.er1
8866   ac_status=$?
8867   grep -v '^ *+' conftest.er1 >conftest.err
8868   rm -f conftest.er1
8869   cat conftest.err >&5
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); } && {
8872          test -z "$ac_c_werror_flag" ||
8873          test ! -s conftest.err
8874        } && test -s conftest$ac_exeext &&
8875        $as_test_x conftest$ac_exeext; then
8876   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'
8877
8878 else
8879   echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8881
8882
8883 fi
8884
8885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8886       conftest$ac_exeext conftest.$ac_ext
8887         LDFLAGS="$save_LDFLAGS"
8888       else
8889         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'
8890         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'
8891       fi
8892       archive_cmds_need_lc='no'
8893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894       hardcode_libdir_separator=:
8895       inherit_rpath=yes
8896       link_all_deplibs=yes
8897       ;;
8898
8899     netbsd*)
8900       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8901         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8902       else
8903         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8904       fi
8905       hardcode_libdir_flag_spec='-R$libdir'
8906       hardcode_direct=yes
8907       hardcode_shlibpath_var=no
8908       ;;
8909
8910     newsos6)
8911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912       hardcode_direct=yes
8913       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914       hardcode_libdir_separator=:
8915       hardcode_shlibpath_var=no
8916       ;;
8917
8918     *nto* | *qnx*)
8919       ;;
8920
8921     openbsd*)
8922       if test -f /usr/libexec/ld.so; then
8923         hardcode_direct=yes
8924         hardcode_shlibpath_var=no
8925         hardcode_direct_absolute=yes
8926         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8929           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930           export_dynamic_flag_spec='${wl}-E'
8931         else
8932           case $host_os in
8933            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8934              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8935              hardcode_libdir_flag_spec='-R$libdir'
8936              ;;
8937            *)
8938              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8939              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8940              ;;
8941           esac
8942         fi
8943       else
8944         ld_shlibs=no
8945       fi
8946       ;;
8947
8948     os2*)
8949       hardcode_libdir_flag_spec='-L$libdir'
8950       hardcode_minus_L=yes
8951       allow_undefined_flag=unsupported
8952       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'
8953       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8954       ;;
8955
8956     osf3*)
8957       if test "$GCC" = yes; then
8958         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8959         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'
8960       else
8961         allow_undefined_flag=' -expect_unresolved \*'
8962         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'
8963       fi
8964       archive_cmds_need_lc='no'
8965       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966       hardcode_libdir_separator=:
8967       ;;
8968
8969     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8970       if test "$GCC" = yes; then
8971         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8972         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'
8973         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974       else
8975         allow_undefined_flag=' -expect_unresolved \*'
8976         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'
8977         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~
8978         $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'
8979
8980         # Both c and cxx compiler support -rpath directly
8981         hardcode_libdir_flag_spec='-rpath $libdir'
8982       fi
8983       archive_cmds_need_lc='no'
8984       hardcode_libdir_separator=:
8985       ;;
8986
8987     solaris*)
8988       no_undefined_flag=' -z defs'
8989       if test "$GCC" = yes; then
8990         wlarc='${wl}'
8991         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8993           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8994       else
8995         case `$CC -V 2>&1` in
8996         *"Compilers 5.0"*)
8997           wlarc=''
8998           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9000           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9001           ;;
9002         *)
9003           wlarc='${wl}'
9004           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9005           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9006           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9007           ;;
9008         esac
9009       fi
9010       hardcode_libdir_flag_spec='-R$libdir'
9011       hardcode_shlibpath_var=no
9012       case $host_os in
9013       solaris2.[0-5] | solaris2.[0-5].*) ;;
9014       *)
9015         # The compiler driver will combine and reorder linker options,
9016         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9017         # but is careful enough not to reorder.
9018         # Supported since Solaris 2.6 (maybe 2.5.1?)
9019         if test "$GCC" = yes; then
9020           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9021         else
9022           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9023         fi
9024         ;;
9025       esac
9026       link_all_deplibs=yes
9027       ;;
9028
9029     sunos4*)
9030       if test "x$host_vendor" = xsequent; then
9031         # Use $CC to link under sequent, because it throws in some extra .o
9032         # files that make .init and .fini sections work.
9033         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9034       else
9035         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9036       fi
9037       hardcode_libdir_flag_spec='-L$libdir'
9038       hardcode_direct=yes
9039       hardcode_minus_L=yes
9040       hardcode_shlibpath_var=no
9041       ;;
9042
9043     sysv4)
9044       case $host_vendor in
9045         sni)
9046           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047           hardcode_direct=yes # is this really true???
9048         ;;
9049         siemens)
9050           ## LD is ld it makes a PLAMLIB
9051           ## CC just makes a GrossModule.
9052           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9053           reload_cmds='$CC -r -o $output$reload_objs'
9054           hardcode_direct=no
9055         ;;
9056         motorola)
9057           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9058           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9059         ;;
9060       esac
9061       runpath_var='LD_RUN_PATH'
9062       hardcode_shlibpath_var=no
9063       ;;
9064
9065     sysv4.3*)
9066       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067       hardcode_shlibpath_var=no
9068       export_dynamic_flag_spec='-Bexport'
9069       ;;
9070
9071     sysv4*MP*)
9072       if test -d /usr/nec; then
9073         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074         hardcode_shlibpath_var=no
9075         runpath_var=LD_RUN_PATH
9076         hardcode_runpath_var=yes
9077         ld_shlibs=yes
9078       fi
9079       ;;
9080
9081     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9082       no_undefined_flag='${wl}-z,text'
9083       archive_cmds_need_lc=no
9084       hardcode_shlibpath_var=no
9085       runpath_var='LD_RUN_PATH'
9086
9087       if test "$GCC" = yes; then
9088         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9090       else
9091         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093       fi
9094       ;;
9095
9096     sysv5* | sco3.2v5* | sco5v6*)
9097       # Note: We can NOT use -z defs as we might desire, because we do not
9098       # link with -lc, and that would cause any symbols used from libc to
9099       # always be unresolved, which means just about no library would
9100       # ever link correctly.  If we're not using GNU ld we use -z text
9101       # though, which does catch some bad symbols but isn't as heavy-handed
9102       # as -z defs.
9103       no_undefined_flag='${wl}-z,text'
9104       allow_undefined_flag='${wl}-z,nodefs'
9105       archive_cmds_need_lc=no
9106       hardcode_shlibpath_var=no
9107       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9108       hardcode_libdir_separator=':'
9109       link_all_deplibs=yes
9110       export_dynamic_flag_spec='${wl}-Bexport'
9111       runpath_var='LD_RUN_PATH'
9112
9113       if test "$GCC" = yes; then
9114         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116       else
9117         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119       fi
9120       ;;
9121
9122     uts4*)
9123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124       hardcode_libdir_flag_spec='-L$libdir'
9125       hardcode_shlibpath_var=no
9126       ;;
9127
9128     *)
9129       ld_shlibs=no
9130       ;;
9131     esac
9132
9133     if test x$host_vendor = xsni; then
9134       case $host in
9135       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9136         export_dynamic_flag_spec='${wl}-Blargedynsym'
9137         ;;
9138       esac
9139     fi
9140   fi
9141
9142 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9143 echo "${ECHO_T}$ld_shlibs" >&6; }
9144 test "$ld_shlibs" = no && can_build_shared=no
9145
9146 with_gnu_ld=$with_gnu_ld
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162 #
9163 # Do we need to explicitly link libc?
9164 #
9165 case "x$archive_cmds_need_lc" in
9166 x|xyes)
9167   # Assume -lc should be added
9168   archive_cmds_need_lc=yes
9169
9170   if test "$enable_shared" = yes && test "$GCC" = yes; then
9171     case $archive_cmds in
9172     *'~'*)
9173       # FIXME: we may have to deal with multi-command sequences.
9174       ;;
9175     '$CC '*)
9176       # Test whether the compiler implicitly links with -lc since on some
9177       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9178       # to ld, don't add -lc before -lgcc.
9179       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9181       $RM conftest*
9182       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183
9184       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185   (eval $ac_compile) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } 2>conftest.err; then
9189         soname=conftest
9190         lib=conftest
9191         libobjs=conftest.$ac_objext
9192         deplibs=
9193         wl=$lt_prog_compiler_wl
9194         pic_flag=$lt_prog_compiler_pic
9195         compiler_flags=-v
9196         linker_flags=-v
9197         verstring=
9198         output_objdir=.
9199         libname=conftest
9200         lt_save_allow_undefined_flag=$allow_undefined_flag
9201         allow_undefined_flag=
9202         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9203   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }
9207         then
9208           archive_cmds_need_lc=no
9209         else
9210           archive_cmds_need_lc=yes
9211         fi
9212         allow_undefined_flag=$lt_save_allow_undefined_flag
9213       else
9214         cat conftest.err 1>&5
9215       fi
9216       $RM conftest*
9217       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9218 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9219       ;;
9220     esac
9221   fi
9222   ;;
9223 esac
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9383
9384 if test "$GCC" = yes; then
9385   case $host_os in
9386     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9387     *) lt_awk_arg="/^libraries:/" ;;
9388   esac
9389   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9390   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9391     # if the path contains ";" then we assume it to be the separator
9392     # otherwise default to the standard path separator (i.e. ":") - it is
9393     # assumed that no part of a normal pathname contains ";" but that should
9394     # okay in the real world where ";" in dirpaths is itself problematic.
9395     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9396   else
9397     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9398   fi
9399   # Ok, now we have the path, separated by spaces, we can step through it
9400   # and add multilib dir if necessary.
9401   lt_tmp_lt_search_path_spec=
9402   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9403   for lt_sys_path in $lt_search_path_spec; do
9404     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9405       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9406     else
9407       test -d "$lt_sys_path" && \
9408         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9409     fi
9410   done
9411   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9412 BEGIN {RS=" "; FS="/|\n";} {
9413   lt_foo="";
9414   lt_count=0;
9415   for (lt_i = NF; lt_i > 0; lt_i--) {
9416     if ($lt_i != "" && $lt_i != ".") {
9417       if ($lt_i == "..") {
9418         lt_count++;
9419       } else {
9420         if (lt_count == 0) {
9421           lt_foo="/" $lt_i lt_foo;
9422         } else {
9423           lt_count--;
9424         }
9425       }
9426     }
9427   }
9428   if (lt_foo != "") { lt_freq[lt_foo]++; }
9429   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9430 }'`
9431   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9432 else
9433   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9434 fi
9435 library_names_spec=
9436 libname_spec='lib$name'
9437 soname_spec=
9438 shrext_cmds=".so"
9439 postinstall_cmds=
9440 postuninstall_cmds=
9441 finish_cmds=
9442 finish_eval=
9443 shlibpath_var=
9444 shlibpath_overrides_runpath=unknown
9445 version_type=none
9446 dynamic_linker="$host_os ld.so"
9447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9448 need_lib_prefix=unknown
9449 hardcode_into_libs=no
9450
9451 # when you set need_version to no, make sure it does not cause -set_version
9452 # flags to be left without arguments
9453 need_version=unknown
9454
9455 case $host_os in
9456 aix3*)
9457   version_type=linux
9458   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9459   shlibpath_var=LIBPATH
9460
9461   # AIX 3 has no versioning support, so we append a major version to the name.
9462   soname_spec='${libname}${release}${shared_ext}$major'
9463   ;;
9464
9465 aix[4-9]*)
9466   version_type=linux
9467   need_lib_prefix=no
9468   need_version=no
9469   hardcode_into_libs=yes
9470   if test "$host_cpu" = ia64; then
9471     # AIX 5 supports IA64
9472     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9473     shlibpath_var=LD_LIBRARY_PATH
9474   else
9475     # With GCC up to 2.95.x, collect2 would create an import file
9476     # for dependence libraries.  The import file would start with
9477     # the line `#! .'.  This would cause the generated library to
9478     # depend on `.', always an invalid library.  This was fixed in
9479     # development snapshots of GCC prior to 3.0.
9480     case $host_os in
9481       aix4 | aix4.[01] | aix4.[01].*)
9482       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9483            echo ' yes '
9484            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9485         :
9486       else
9487         can_build_shared=no
9488       fi
9489       ;;
9490     esac
9491     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9492     # soname into executable. Probably we can add versioning support to
9493     # collect2, so additional links can be useful in future.
9494     if test "$aix_use_runtimelinking" = yes; then
9495       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9496       # instead of lib<name>.a to let people know that these are not
9497       # typical AIX shared libraries.
9498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499     else
9500       # We preserve .a as extension for shared libraries through AIX4.2
9501       # and later when we are not doing run time linking.
9502       library_names_spec='${libname}${release}.a $libname.a'
9503       soname_spec='${libname}${release}${shared_ext}$major'
9504     fi
9505     shlibpath_var=LIBPATH
9506   fi
9507   ;;
9508
9509 amigaos*)
9510   case $host_cpu in
9511   powerpc)
9512     # Since July 2007 AmigaOS4 officially supports .so libraries.
9513     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515     ;;
9516   m68k)
9517     library_names_spec='$libname.ixlibrary $libname.a'
9518     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9519     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'
9520     ;;
9521   esac
9522   ;;
9523
9524 beos*)
9525   library_names_spec='${libname}${shared_ext}'
9526   dynamic_linker="$host_os ld.so"
9527   shlibpath_var=LIBRARY_PATH
9528   ;;
9529
9530 bsdi[45]*)
9531   version_type=linux
9532   need_version=no
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534   soname_spec='${libname}${release}${shared_ext}$major'
9535   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9536   shlibpath_var=LD_LIBRARY_PATH
9537   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9538   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9539   # the default ld.so.conf also contains /usr/contrib/lib and
9540   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9541   # libtool to hard-code these into programs
9542   ;;
9543
9544 cygwin* | mingw* | pw32*)
9545   version_type=windows
9546   shrext_cmds=".dll"
9547   need_version=no
9548   need_lib_prefix=no
9549
9550   case $GCC,$host_os in
9551   yes,cygwin* | yes,mingw* | yes,pw32*)
9552     library_names_spec='$libname.dll.a'
9553     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9554     postinstall_cmds='base_file=`basename \${file}`~
9555       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9556       dldir=$destdir/`dirname \$dlpath`~
9557       test -d \$dldir || mkdir -p \$dldir~
9558       $install_prog $dir/$dlname \$dldir/$dlname~
9559       chmod a+x \$dldir/$dlname~
9560       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9561         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9562       fi'
9563     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9564       dlpath=$dir/\$dldll~
9565        $RM \$dlpath'
9566     shlibpath_overrides_runpath=yes
9567
9568     case $host_os in
9569     cygwin*)
9570       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9571       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9572       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9573       ;;
9574     mingw*)
9575       # MinGW DLLs use traditional 'lib' prefix
9576       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9578       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9579         # It is most probably a Windows format PATH printed by
9580         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9581         # path with ; separators, and with drive letters. We can handle the
9582         # drive letters (cygwin fileutils understands them), so leave them,
9583         # especially as we might pass files found there to a mingw objdump,
9584         # which wouldn't understand a cygwinified path. Ahh.
9585         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9586       else
9587         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9588       fi
9589       ;;
9590     pw32*)
9591       # pw32 DLLs use 'pw' prefix rather than 'lib'
9592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9593       ;;
9594     esac
9595     ;;
9596
9597   *)
9598     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9599     ;;
9600   esac
9601   dynamic_linker='Win32 ld.exe'
9602   # FIXME: first we should search . and the directory the executable is in
9603   shlibpath_var=PATH
9604   ;;
9605
9606 darwin* | rhapsody*)
9607   dynamic_linker="$host_os dyld"
9608   version_type=darwin
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9612   soname_spec='${libname}${release}${major}$shared_ext'
9613   shlibpath_overrides_runpath=yes
9614   shlibpath_var=DYLD_LIBRARY_PATH
9615   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9616
9617   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9618   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9619   ;;
9620
9621 dgux*)
9622   version_type=linux
9623   need_lib_prefix=no
9624   need_version=no
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9626   soname_spec='${libname}${release}${shared_ext}$major'
9627   shlibpath_var=LD_LIBRARY_PATH
9628   ;;
9629
9630 freebsd1*)
9631   dynamic_linker=no
9632   ;;
9633
9634 freebsd* | dragonfly*)
9635   # DragonFly does not have aout.  When/if they implement a new
9636   # versioning mechanism, adjust this.
9637   if test -x /usr/bin/objformat; then
9638     objformat=`/usr/bin/objformat`
9639   else
9640     case $host_os in
9641     freebsd[123]*) objformat=aout ;;
9642     *) objformat=elf ;;
9643     esac
9644   fi
9645   version_type=freebsd-$objformat
9646   case $version_type in
9647     freebsd-elf*)
9648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9649       need_version=no
9650       need_lib_prefix=no
9651       ;;
9652     freebsd-*)
9653       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9654       need_version=yes
9655       ;;
9656   esac
9657   shlibpath_var=LD_LIBRARY_PATH
9658   case $host_os in
9659   freebsd2*)
9660     shlibpath_overrides_runpath=yes
9661     ;;
9662   freebsd3.[01]* | freebsdelf3.[01]*)
9663     shlibpath_overrides_runpath=yes
9664     hardcode_into_libs=yes
9665     ;;
9666   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9667   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9668     shlibpath_overrides_runpath=no
9669     hardcode_into_libs=yes
9670     ;;
9671   *) # from 4.6 on, and DragonFly
9672     shlibpath_overrides_runpath=yes
9673     hardcode_into_libs=yes
9674     ;;
9675   esac
9676   ;;
9677
9678 gnu*)
9679   version_type=linux
9680   need_lib_prefix=no
9681   need_version=no
9682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9683   soname_spec='${libname}${release}${shared_ext}$major'
9684   shlibpath_var=LD_LIBRARY_PATH
9685   hardcode_into_libs=yes
9686   ;;
9687
9688 hpux9* | hpux10* | hpux11*)
9689   # Give a soname corresponding to the major version so that dld.sl refuses to
9690   # link against other versions.
9691   version_type=sunos
9692   need_lib_prefix=no
9693   need_version=no
9694   case $host_cpu in
9695   ia64*)
9696     shrext_cmds='.so'
9697     hardcode_into_libs=yes
9698     dynamic_linker="$host_os dld.so"
9699     shlibpath_var=LD_LIBRARY_PATH
9700     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702     soname_spec='${libname}${release}${shared_ext}$major'
9703     if test "X$HPUX_IA64_MODE" = X32; then
9704       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9705     else
9706       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9707     fi
9708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9709     ;;
9710   hppa*64*)
9711     shrext_cmds='.sl'
9712     hardcode_into_libs=yes
9713     dynamic_linker="$host_os dld.sl"
9714     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717     soname_spec='${libname}${release}${shared_ext}$major'
9718     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9719     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9720     ;;
9721   *)
9722     shrext_cmds='.sl'
9723     dynamic_linker="$host_os dld.sl"
9724     shlibpath_var=SHLIB_PATH
9725     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9726     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727     soname_spec='${libname}${release}${shared_ext}$major'
9728     ;;
9729   esac
9730   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9731   postinstall_cmds='chmod 555 $lib'
9732   ;;
9733
9734 interix[3-9]*)
9735   version_type=linux
9736   need_lib_prefix=no
9737   need_version=no
9738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9739   soname_spec='${libname}${release}${shared_ext}$major'
9740   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=no
9743   hardcode_into_libs=yes
9744   ;;
9745
9746 irix5* | irix6* | nonstopux*)
9747   case $host_os in
9748     nonstopux*) version_type=nonstopux ;;
9749     *)
9750         if test "$lt_cv_prog_gnu_ld" = yes; then
9751                 version_type=linux
9752         else
9753                 version_type=irix
9754         fi ;;
9755   esac
9756   need_lib_prefix=no
9757   need_version=no
9758   soname_spec='${libname}${release}${shared_ext}$major'
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9760   case $host_os in
9761   irix5* | nonstopux*)
9762     libsuff= shlibsuff=
9763     ;;
9764   *)
9765     case $LD in # libtool.m4 will add one of these switches to LD
9766     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9767       libsuff= shlibsuff= libmagic=32-bit;;
9768     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9769       libsuff=32 shlibsuff=N32 libmagic=N32;;
9770     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9771       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9772     *) libsuff= shlibsuff= libmagic=never-match;;
9773     esac
9774     ;;
9775   esac
9776   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9777   shlibpath_overrides_runpath=no
9778   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9779   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9780   hardcode_into_libs=yes
9781   ;;
9782
9783 # No shared lib support for Linux oldld, aout, or coff.
9784 linux*oldld* | linux*aout* | linux*coff*)
9785   dynamic_linker=no
9786   ;;
9787
9788 # This must be Linux ELF.
9789 linux* | k*bsd*-gnu)
9790   version_type=linux
9791   need_lib_prefix=no
9792   need_version=no
9793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794   soname_spec='${libname}${release}${shared_ext}$major'
9795   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9796   shlibpath_var=LD_LIBRARY_PATH
9797   shlibpath_overrides_runpath=no
9798   # Some binutils ld are patched to set DT_RUNPATH
9799   save_LDFLAGS=$LDFLAGS
9800   save_libdir=$libdir
9801   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9802        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9803   cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809
9810 int
9811 main ()
9812 {
9813
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_link") 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } && {
9832          test -z "$ac_c_werror_flag" ||
9833          test ! -s conftest.err
9834        } && test -s conftest$ac_exeext &&
9835        $as_test_x conftest$ac_exeext; then
9836   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9837   shlibpath_overrides_runpath=yes
9838 fi
9839
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844
9845 fi
9846
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848       conftest$ac_exeext conftest.$ac_ext
9849   LDFLAGS=$save_LDFLAGS
9850   libdir=$save_libdir
9851
9852   # This implies no fast_install, which is unacceptable.
9853   # Some rework will be needed to allow for fast_install
9854   # before this can be enabled.
9855   hardcode_into_libs=yes
9856
9857   # Append ld.so.conf contents to the search path
9858   if test -f /etc/ld.so.conf; then
9859     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' ' '`
9860     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9861   fi
9862
9863   # We used to test for /lib/ld.so.1 and disable shared libraries on
9864   # powerpc, because MkLinux only supported shared libraries with the
9865   # GNU dynamic linker.  Since this was broken with cross compilers,
9866   # most powerpc-linux boxes support dynamic linking these days and
9867   # people can always --disable-shared, the test was removed, and we
9868   # assume the GNU/Linux dynamic linker is in use.
9869   dynamic_linker='GNU/Linux ld.so'
9870   ;;
9871
9872 netbsd*)
9873   version_type=sunos
9874   need_lib_prefix=no
9875   need_version=no
9876   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9878     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9879     dynamic_linker='NetBSD (a.out) ld.so'
9880   else
9881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9882     soname_spec='${libname}${release}${shared_ext}$major'
9883     dynamic_linker='NetBSD ld.elf_so'
9884   fi
9885   shlibpath_var=LD_LIBRARY_PATH
9886   shlibpath_overrides_runpath=yes
9887   hardcode_into_libs=yes
9888   ;;
9889
9890 newsos6)
9891   version_type=linux
9892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893   shlibpath_var=LD_LIBRARY_PATH
9894   shlibpath_overrides_runpath=yes
9895   ;;
9896
9897 *nto* | *qnx*)
9898   version_type=qnx
9899   need_lib_prefix=no
9900   need_version=no
9901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   shlibpath_var=LD_LIBRARY_PATH
9904   shlibpath_overrides_runpath=no
9905   hardcode_into_libs=yes
9906   dynamic_linker='ldqnx.so'
9907   ;;
9908
9909 openbsd*)
9910   version_type=sunos
9911   sys_lib_dlsearch_path_spec="/usr/lib"
9912   need_lib_prefix=no
9913   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9914   case $host_os in
9915     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9916     *)                          need_version=no  ;;
9917   esac
9918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9920   shlibpath_var=LD_LIBRARY_PATH
9921   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9922     case $host_os in
9923       openbsd2.[89] | openbsd2.[89].*)
9924         shlibpath_overrides_runpath=no
9925         ;;
9926       *)
9927         shlibpath_overrides_runpath=yes
9928         ;;
9929       esac
9930   else
9931     shlibpath_overrides_runpath=yes
9932   fi
9933   ;;
9934
9935 os2*)
9936   libname_spec='$name'
9937   shrext_cmds=".dll"
9938   need_lib_prefix=no
9939   library_names_spec='$libname${shared_ext} $libname.a'
9940   dynamic_linker='OS/2 ld.exe'
9941   shlibpath_var=LIBPATH
9942   ;;
9943
9944 osf3* | osf4* | osf5*)
9945   version_type=osf
9946   need_lib_prefix=no
9947   need_version=no
9948   soname_spec='${libname}${release}${shared_ext}$major'
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950   shlibpath_var=LD_LIBRARY_PATH
9951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9953   ;;
9954
9955 rdos*)
9956   dynamic_linker=no
9957   ;;
9958
9959 solaris*)
9960   version_type=linux
9961   need_lib_prefix=no
9962   need_version=no
9963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964   soname_spec='${libname}${release}${shared_ext}$major'
9965   shlibpath_var=LD_LIBRARY_PATH
9966   shlibpath_overrides_runpath=yes
9967   hardcode_into_libs=yes
9968   # ldd complains unless libraries are executable
9969   postinstall_cmds='chmod +x $lib'
9970   ;;
9971
9972 sunos4*)
9973   version_type=sunos
9974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9975   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   shlibpath_overrides_runpath=yes
9978   if test "$with_gnu_ld" = yes; then
9979     need_lib_prefix=no
9980   fi
9981   need_version=yes
9982   ;;
9983
9984 sysv4 | sysv4.3*)
9985   version_type=linux
9986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987   soname_spec='${libname}${release}${shared_ext}$major'
9988   shlibpath_var=LD_LIBRARY_PATH
9989   case $host_vendor in
9990     sni)
9991       shlibpath_overrides_runpath=no
9992       need_lib_prefix=no
9993       runpath_var=LD_RUN_PATH
9994       ;;
9995     siemens)
9996       need_lib_prefix=no
9997       ;;
9998     motorola)
9999       need_lib_prefix=no
10000       need_version=no
10001       shlibpath_overrides_runpath=no
10002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10003       ;;
10004   esac
10005   ;;
10006
10007 sysv4*MP*)
10008   if test -d /usr/nec ;then
10009     version_type=linux
10010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10011     soname_spec='$libname${shared_ext}.$major'
10012     shlibpath_var=LD_LIBRARY_PATH
10013   fi
10014   ;;
10015
10016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10017   version_type=freebsd-elf
10018   need_lib_prefix=no
10019   need_version=no
10020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10021   soname_spec='${libname}${release}${shared_ext}$major'
10022   shlibpath_var=LD_LIBRARY_PATH
10023   shlibpath_overrides_runpath=yes
10024   hardcode_into_libs=yes
10025   if test "$with_gnu_ld" = yes; then
10026     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10027   else
10028     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10029     case $host_os in
10030       sco3.2v5*)
10031         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10032         ;;
10033     esac
10034   fi
10035   sys_lib_dlsearch_path_spec='/usr/lib'
10036   ;;
10037
10038 tpf*)
10039   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10040   version_type=linux
10041   need_lib_prefix=no
10042   need_version=no
10043   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044   shlibpath_var=LD_LIBRARY_PATH
10045   shlibpath_overrides_runpath=no
10046   hardcode_into_libs=yes
10047   ;;
10048
10049 uts4*)
10050   version_type=linux
10051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052   soname_spec='${libname}${release}${shared_ext}$major'
10053   shlibpath_var=LD_LIBRARY_PATH
10054   ;;
10055
10056 *)
10057   dynamic_linker=no
10058   ;;
10059 esac
10060 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10061 echo "${ECHO_T}$dynamic_linker" >&6; }
10062 test "$dynamic_linker" = no && can_build_shared=no
10063
10064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10065 if test "$GCC" = yes; then
10066   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10067 fi
10068
10069 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10070   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10071 fi
10072 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10073   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10074 fi
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10163 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10164 hardcode_action=
10165 if test -n "$hardcode_libdir_flag_spec" ||
10166    test -n "$runpath_var" ||
10167    test "X$hardcode_automatic" = "Xyes" ; then
10168
10169   # We can hardcode non-existent directories.
10170   if test "$hardcode_direct" != no &&
10171      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10172      # have to relink, otherwise we might link with an installed library
10173      # when we should be linking with a yet-to-be-installed one
10174      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10175      test "$hardcode_minus_L" != no; then
10176     # Linking always hardcodes the temporary library directory.
10177     hardcode_action=relink
10178   else
10179     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10180     hardcode_action=immediate
10181   fi
10182 else
10183   # We cannot hardcode anything, or else we can only hardcode existing
10184   # directories.
10185   hardcode_action=unsupported
10186 fi
10187 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10188 echo "${ECHO_T}$hardcode_action" >&6; }
10189
10190 if test "$hardcode_action" = relink ||
10191    test "$inherit_rpath" = yes; then
10192   # Fast installation is not supported
10193   enable_fast_install=no
10194 elif test "$shlibpath_overrides_runpath" = yes ||
10195      test "$enable_shared" = no; then
10196   # Fast installation is not necessary
10197   enable_fast_install=needless
10198 fi
10199
10200
10201
10202
10203
10204
10205   if test "x$enable_dlopen" != xyes; then
10206   enable_dlopen=unknown
10207   enable_dlopen_self=unknown
10208   enable_dlopen_self_static=unknown
10209 else
10210   lt_cv_dlopen=no
10211   lt_cv_dlopen_libs=
10212
10213   case $host_os in
10214   beos*)
10215     lt_cv_dlopen="load_add_on"
10216     lt_cv_dlopen_libs=
10217     lt_cv_dlopen_self=yes
10218     ;;
10219
10220   mingw* | pw32*)
10221     lt_cv_dlopen="LoadLibrary"
10222     lt_cv_dlopen_libs=
10223     ;;
10224
10225   cygwin*)
10226     lt_cv_dlopen="dlopen"
10227     lt_cv_dlopen_libs=
10228     ;;
10229
10230   darwin*)
10231   # if libdl is installed we need to link against it
10232     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10235   echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237   ac_check_lib_save_LIBS=$LIBS
10238 LIBS="-ldl  $LIBS"
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h.  */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h.  */
10245
10246 /* Override any GCC internal prototype to avoid an error.
10247    Use char because int might match the return type of a GCC
10248    builtin and then its argument prototype would still apply.  */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char dlopen ();
10253 int
10254 main ()
10255 {
10256 return dlopen ();
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_link") 2>conftest.er1
10269   ac_status=$?
10270   grep -v '^ *+' conftest.er1 >conftest.err
10271   rm -f conftest.er1
10272   cat conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && {
10275          test -z "$ac_c_werror_flag" ||
10276          test ! -s conftest.err
10277        } && test -s conftest$ac_exeext &&
10278        $as_test_x conftest$ac_exeext; then
10279   ac_cv_lib_dl_dlopen=yes
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284         ac_cv_lib_dl_dlopen=no
10285 fi
10286
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288       conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10293 if test $ac_cv_lib_dl_dlopen = yes; then
10294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10295 else
10296
10297     lt_cv_dlopen="dyld"
10298     lt_cv_dlopen_libs=
10299     lt_cv_dlopen_self=yes
10300
10301 fi
10302
10303     ;;
10304
10305   *)
10306     { echo "$as_me:$LINENO: checking for shl_load" >&5
10307 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10308 if test "${ac_cv_func_shl_load+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10319 #define shl_load innocuous_shl_load
10320
10321 /* System header to define __stub macros and hopefully few prototypes,
10322     which can conflict with char shl_load (); below.
10323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10324     <limits.h> exists even on freestanding compilers.  */
10325
10326 #ifdef __STDC__
10327 # include <limits.h>
10328 #else
10329 # include <assert.h>
10330 #endif
10331
10332 #undef shl_load
10333
10334 /* Override any GCC internal prototype to avoid an error.
10335    Use char because int might match the return type of a GCC
10336    builtin and then its argument prototype would still apply.  */
10337 #ifdef __cplusplus
10338 extern "C"
10339 #endif
10340 char shl_load ();
10341 /* The GNU C library defines this for functions which it implements
10342     to always fail with ENOSYS.  Some functions are actually named
10343     something starting with __ and the normal name is an alias.  */
10344 #if defined __stub_shl_load || defined __stub___shl_load
10345 choke me
10346 #endif
10347
10348 int
10349 main ()
10350 {
10351 return shl_load ();
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_link") 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } && {
10370          test -z "$ac_c_werror_flag" ||
10371          test ! -s conftest.err
10372        } && test -s conftest$ac_exeext &&
10373        $as_test_x conftest$ac_exeext; then
10374   ac_cv_func_shl_load=yes
10375 else
10376   echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379         ac_cv_func_shl_load=no
10380 fi
10381
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383       conftest$ac_exeext conftest.$ac_ext
10384 fi
10385 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10386 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10387 if test $ac_cv_func_shl_load = yes; then
10388   lt_cv_dlopen="shl_load"
10389 else
10390   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10391 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10392 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   ac_check_lib_save_LIBS=$LIBS
10396 LIBS="-ldld  $LIBS"
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403
10404 /* Override any GCC internal prototype to avoid an error.
10405    Use char because int might match the return type of a GCC
10406    builtin and then its argument prototype would still apply.  */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char shl_load ();
10411 int
10412 main ()
10413 {
10414 return shl_load ();
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_link") 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } && {
10433          test -z "$ac_c_werror_flag" ||
10434          test ! -s conftest.err
10435        } && test -s conftest$ac_exeext &&
10436        $as_test_x conftest$ac_exeext; then
10437   ac_cv_lib_dld_shl_load=yes
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442         ac_cv_lib_dld_shl_load=no
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446       conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10448 fi
10449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10450 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10451 if test $ac_cv_lib_dld_shl_load = yes; then
10452   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10453 else
10454   { echo "$as_me:$LINENO: checking for dlopen" >&5
10455 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10456 if test "${ac_cv_func_dlopen+set}" = set; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10467 #define dlopen innocuous_dlopen
10468
10469 /* System header to define __stub macros and hopefully few prototypes,
10470     which can conflict with char dlopen (); below.
10471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10472     <limits.h> exists even on freestanding compilers.  */
10473
10474 #ifdef __STDC__
10475 # include <limits.h>
10476 #else
10477 # include <assert.h>
10478 #endif
10479
10480 #undef dlopen
10481
10482 /* Override any GCC internal prototype to avoid an error.
10483    Use char because int might match the return type of a GCC
10484    builtin and then its argument prototype would still apply.  */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 char dlopen ();
10489 /* The GNU C library defines this for functions which it implements
10490     to always fail with ENOSYS.  Some functions are actually named
10491     something starting with __ and the normal name is an alias.  */
10492 #if defined __stub_dlopen || defined __stub___dlopen
10493 choke me
10494 #endif
10495
10496 int
10497 main ()
10498 {
10499 return dlopen ();
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_link") 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } && {
10518          test -z "$ac_c_werror_flag" ||
10519          test ! -s conftest.err
10520        } && test -s conftest$ac_exeext &&
10521        $as_test_x conftest$ac_exeext; then
10522   ac_cv_func_dlopen=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527         ac_cv_func_dlopen=no
10528 fi
10529
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531       conftest$ac_exeext conftest.$ac_ext
10532 fi
10533 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10534 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10535 if test $ac_cv_func_dlopen = yes; then
10536   lt_cv_dlopen="dlopen"
10537 else
10538   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10539 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10541   echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543   ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-ldl  $LIBS"
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551
10552 /* Override any GCC internal prototype to avoid an error.
10553    Use char because int might match the return type of a GCC
10554    builtin and then its argument prototype would still apply.  */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char dlopen ();
10559 int
10560 main ()
10561 {
10562 return dlopen ();
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571   *) ac_try_echo=$ac_try;;
10572 esac
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574   (eval "$ac_link") 2>conftest.er1
10575   ac_status=$?
10576   grep -v '^ *+' conftest.er1 >conftest.err
10577   rm -f conftest.er1
10578   cat conftest.err >&5
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } && {
10581          test -z "$ac_c_werror_flag" ||
10582          test ! -s conftest.err
10583        } && test -s conftest$ac_exeext &&
10584        $as_test_x conftest$ac_exeext; then
10585   ac_cv_lib_dl_dlopen=yes
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590         ac_cv_lib_dl_dlopen=no
10591 fi
10592
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594       conftest$ac_exeext conftest.$ac_ext
10595 LIBS=$ac_check_lib_save_LIBS
10596 fi
10597 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10599 if test $ac_cv_lib_dl_dlopen = yes; then
10600   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10601 else
10602   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10603 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10604 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-lsvld  $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615
10616 /* Override any GCC internal prototype to avoid an error.
10617    Use char because int might match the return type of a GCC
10618    builtin and then its argument prototype would still apply.  */
10619 #ifdef __cplusplus
10620 extern "C"
10621 #endif
10622 char dlopen ();
10623 int
10624 main ()
10625 {
10626 return dlopen ();
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638   (eval "$ac_link") 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } && {
10645          test -z "$ac_c_werror_flag" ||
10646          test ! -s conftest.err
10647        } && test -s conftest$ac_exeext &&
10648        $as_test_x conftest$ac_exeext; then
10649   ac_cv_lib_svld_dlopen=yes
10650 else
10651   echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654         ac_cv_lib_svld_dlopen=no
10655 fi
10656
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658       conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10660 fi
10661 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10662 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10663 if test $ac_cv_lib_svld_dlopen = yes; then
10664   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10665 else
10666   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10667 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10668 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671   ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-ldld  $LIBS"
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679
10680 /* Override any GCC internal prototype to avoid an error.
10681    Use char because int might match the return type of a GCC
10682    builtin and then its argument prototype would still apply.  */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 char dld_link ();
10687 int
10688 main ()
10689 {
10690 return dld_link ();
10691   ;
10692   return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (ac_try="$ac_link"
10697 case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_link") 2>conftest.er1
10703   ac_status=$?
10704   grep -v '^ *+' conftest.er1 >conftest.err
10705   rm -f conftest.er1
10706   cat conftest.err >&5
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } && {
10709          test -z "$ac_c_werror_flag" ||
10710          test ! -s conftest.err
10711        } && test -s conftest$ac_exeext &&
10712        $as_test_x conftest$ac_exeext; then
10713   ac_cv_lib_dld_dld_link=yes
10714 else
10715   echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718         ac_cv_lib_dld_dld_link=no
10719 fi
10720
10721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10722       conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10724 fi
10725 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10726 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10727 if test $ac_cv_lib_dld_dld_link = yes; then
10728   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10729 fi
10730
10731
10732 fi
10733
10734
10735 fi
10736
10737
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746     ;;
10747   esac
10748
10749   if test "x$lt_cv_dlopen" != xno; then
10750     enable_dlopen=yes
10751   else
10752     enable_dlopen=no
10753   fi
10754
10755   case $lt_cv_dlopen in
10756   dlopen)
10757     save_CPPFLAGS="$CPPFLAGS"
10758     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10759
10760     save_LDFLAGS="$LDFLAGS"
10761     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10762
10763     save_LIBS="$LIBS"
10764     LIBS="$lt_cv_dlopen_libs $LIBS"
10765
10766     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10767 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10768 if test "${lt_cv_dlopen_self+set}" = set; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771           if test "$cross_compiling" = yes; then :
10772   lt_cv_dlopen_self=cross
10773 else
10774   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775   lt_status=$lt_dlunknown
10776   cat > conftest.$ac_ext <<_LT_EOF
10777 #line 10777 "configure"
10778 #include "confdefs.h"
10779
10780 #if HAVE_DLFCN_H
10781 #include <dlfcn.h>
10782 #endif
10783
10784 #include <stdio.h>
10785
10786 #ifdef RTLD_GLOBAL
10787 #  define LT_DLGLOBAL           RTLD_GLOBAL
10788 #else
10789 #  ifdef DL_GLOBAL
10790 #    define LT_DLGLOBAL         DL_GLOBAL
10791 #  else
10792 #    define LT_DLGLOBAL         0
10793 #  endif
10794 #endif
10795
10796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797    find out it does not work in some platform. */
10798 #ifndef LT_DLLAZY_OR_NOW
10799 #  ifdef RTLD_LAZY
10800 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10801 #  else
10802 #    ifdef DL_LAZY
10803 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10804 #    else
10805 #      ifdef RTLD_NOW
10806 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10807 #      else
10808 #        ifdef DL_NOW
10809 #          define LT_DLLAZY_OR_NOW      DL_NOW
10810 #        else
10811 #          define LT_DLLAZY_OR_NOW      0
10812 #        endif
10813 #      endif
10814 #    endif
10815 #  endif
10816 #endif
10817
10818 #ifdef __cplusplus
10819 extern "C" void exit (int);
10820 #endif
10821
10822 void fnord() { int i=42;}
10823 int main ()
10824 {
10825   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10826   int status = $lt_dlunknown;
10827
10828   if (self)
10829     {
10830       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10831       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10832       /* dlclose (self); */
10833     }
10834   else
10835     puts (dlerror ());
10836
10837     exit (status);
10838 }
10839 _LT_EOF
10840   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10841   (eval $ac_link) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10845     (./conftest; exit; ) >&5 2>/dev/null
10846     lt_status=$?
10847     case x$lt_status in
10848       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10849       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10850       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10851     esac
10852   else :
10853     # compilation failed
10854     lt_cv_dlopen_self=no
10855   fi
10856 fi
10857 rm -fr conftest*
10858
10859
10860 fi
10861 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10862 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10863
10864     if test "x$lt_cv_dlopen_self" = xyes; then
10865       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10866       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10867 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10868 if test "${lt_cv_dlopen_self_static+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871           if test "$cross_compiling" = yes; then :
10872   lt_cv_dlopen_self_static=cross
10873 else
10874   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10875   lt_status=$lt_dlunknown
10876   cat > conftest.$ac_ext <<_LT_EOF
10877 #line 10877 "configure"
10878 #include "confdefs.h"
10879
10880 #if HAVE_DLFCN_H
10881 #include <dlfcn.h>
10882 #endif
10883
10884 #include <stdio.h>
10885
10886 #ifdef RTLD_GLOBAL
10887 #  define LT_DLGLOBAL           RTLD_GLOBAL
10888 #else
10889 #  ifdef DL_GLOBAL
10890 #    define LT_DLGLOBAL         DL_GLOBAL
10891 #  else
10892 #    define LT_DLGLOBAL         0
10893 #  endif
10894 #endif
10895
10896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10897    find out it does not work in some platform. */
10898 #ifndef LT_DLLAZY_OR_NOW
10899 #  ifdef RTLD_LAZY
10900 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10901 #  else
10902 #    ifdef DL_LAZY
10903 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10904 #    else
10905 #      ifdef RTLD_NOW
10906 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10907 #      else
10908 #        ifdef DL_NOW
10909 #          define LT_DLLAZY_OR_NOW      DL_NOW
10910 #        else
10911 #          define LT_DLLAZY_OR_NOW      0
10912 #        endif
10913 #      endif
10914 #    endif
10915 #  endif
10916 #endif
10917
10918 #ifdef __cplusplus
10919 extern "C" void exit (int);
10920 #endif
10921
10922 void fnord() { int i=42;}
10923 int main ()
10924 {
10925   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10926   int status = $lt_dlunknown;
10927
10928   if (self)
10929     {
10930       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10931       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10932       /* dlclose (self); */
10933     }
10934   else
10935     puts (dlerror ());
10936
10937     exit (status);
10938 }
10939 _LT_EOF
10940   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941   (eval $ac_link) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10945     (./conftest; exit; ) >&5 2>/dev/null
10946     lt_status=$?
10947     case x$lt_status in
10948       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10949       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10950       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10951     esac
10952   else :
10953     # compilation failed
10954     lt_cv_dlopen_self_static=no
10955   fi
10956 fi
10957 rm -fr conftest*
10958
10959
10960 fi
10961 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10962 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10963     fi
10964
10965     CPPFLAGS="$save_CPPFLAGS"
10966     LDFLAGS="$save_LDFLAGS"
10967     LIBS="$save_LIBS"
10968     ;;
10969   esac
10970
10971   case $lt_cv_dlopen_self in
10972   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10973   *) enable_dlopen_self=unknown ;;
10974   esac
10975
10976   case $lt_cv_dlopen_self_static in
10977   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10978   *) enable_dlopen_self_static=unknown ;;
10979   esac
10980 fi
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998 striplib=
10999 old_striplib=
11000 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11001 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11002 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11003   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11004   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11005   { echo "$as_me:$LINENO: result: yes" >&5
11006 echo "${ECHO_T}yes" >&6; }
11007 else
11008 # FIXME - insert some real tests, host_os isn't really good enough
11009   case $host_os in
11010   darwin*)
11011     if test -n "$STRIP" ; then
11012       striplib="$STRIP -x"
11013       old_striplib="$STRIP -S"
11014       { echo "$as_me:$LINENO: result: yes" >&5
11015 echo "${ECHO_T}yes" >&6; }
11016     else
11017       { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11019     fi
11020     ;;
11021   *)
11022     { echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6; }
11024     ;;
11025   esac
11026 fi
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039   # Report which library types will actually be built
11040   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11041 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11042   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11043 echo "${ECHO_T}$can_build_shared" >&6; }
11044
11045   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11046 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11047   test "$can_build_shared" = "no" && enable_shared=no
11048
11049   # On AIX, shared libraries and static libraries use the same namespace, and
11050   # are all built from PIC.
11051   case $host_os in
11052   aix3*)
11053     test "$enable_shared" = yes && enable_static=no
11054     if test -n "$RANLIB"; then
11055       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11056       postinstall_cmds='$RANLIB $lib'
11057     fi
11058     ;;
11059
11060   aix[4-9]*)
11061     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11062       test "$enable_shared" = yes && enable_static=no
11063     fi
11064     ;;
11065   esac
11066   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11067 echo "${ECHO_T}$enable_shared" >&6; }
11068
11069   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11070 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11071   # Make sure either enable_shared or enable_static is yes.
11072   test "$enable_shared" = yes || enable_static=yes
11073   { echo "$as_me:$LINENO: result: $enable_static" >&5
11074 echo "${ECHO_T}$enable_static" >&6; }
11075
11076
11077
11078
11079 fi
11080 ac_ext=c
11081 ac_cpp='$CPP $CPPFLAGS'
11082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11085
11086 CC="$lt_save_CC"
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100         ac_config_commands="$ac_config_commands libtool"
11101
11102
11103
11104
11105 # Only expand once:
11106
11107
11108
11109 # Checks for libraries.
11110
11111
11112 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11113         if test -n "$ac_tool_prefix"; then
11114   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11115 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   case $PKG_CONFIG in
11122   [\\/]* | ?:[\\/]*)
11123   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11124   ;;
11125   *)
11126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11128 do
11129   IFS=$as_save_IFS
11130   test -z "$as_dir" && as_dir=.
11131   for ac_exec_ext in '' $ac_executable_extensions; do
11132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11133     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11135     break 2
11136   fi
11137 done
11138 done
11139 IFS=$as_save_IFS
11140
11141   ;;
11142 esac
11143 fi
11144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11145 if test -n "$PKG_CONFIG"; then
11146   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11147 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11148 else
11149   { echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6; }
11151 fi
11152
11153
11154 fi
11155 if test -z "$ac_cv_path_PKG_CONFIG"; then
11156   ac_pt_PKG_CONFIG=$PKG_CONFIG
11157   # Extract the first word of "pkg-config", so it can be a program name with args.
11158 set dummy pkg-config; ac_word=$2
11159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11161 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11162   echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164   case $ac_pt_PKG_CONFIG in
11165   [\\/]* | ?:[\\/]*)
11166   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11167   ;;
11168   *)
11169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11171 do
11172   IFS=$as_save_IFS
11173   test -z "$as_dir" && as_dir=.
11174   for ac_exec_ext in '' $ac_executable_extensions; do
11175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11176     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11178     break 2
11179   fi
11180 done
11181 done
11182 IFS=$as_save_IFS
11183
11184   ;;
11185 esac
11186 fi
11187 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11188 if test -n "$ac_pt_PKG_CONFIG"; then
11189   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11190 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11191 else
11192   { echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6; }
11194 fi
11195
11196   if test "x$ac_pt_PKG_CONFIG" = x; then
11197     PKG_CONFIG=""
11198   else
11199     case $cross_compiling:$ac_tool_warned in
11200 yes:)
11201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11202 whose name does not start with the host triplet.  If you think this
11203 configuration is useful to you, please write to autoconf@gnu.org." >&5
11204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11205 whose name does not start with the host triplet.  If you think this
11206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11207 ac_tool_warned=yes ;;
11208 esac
11209     PKG_CONFIG=$ac_pt_PKG_CONFIG
11210   fi
11211 else
11212   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11213 fi
11214
11215 fi
11216 if test -n "$PKG_CONFIG"; then
11217         _pkg_min_version=0.9.0
11218         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11219 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11220         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11221                 { echo "$as_me:$LINENO: result: yes" >&5
11222 echo "${ECHO_T}yes" >&6; }
11223         else
11224                 { echo "$as_me:$LINENO: result: no" >&5
11225 echo "${ECHO_T}no" >&6; }
11226                 PKG_CONFIG=""
11227         fi
11228
11229 fi
11230
11231 pkg_failed=no
11232 { echo "$as_me:$LINENO: checking for AUDIOSESSIONMGR" >&5
11233 echo $ECHO_N "checking for AUDIOSESSIONMGR... $ECHO_C" >&6; }
11234
11235 if test -n "$PKG_CONFIG"; then
11236     if test -n "$AUDIOSESSIONMGR_CFLAGS"; then
11237         pkg_cv_AUDIOSESSIONMGR_CFLAGS="$AUDIOSESSIONMGR_CFLAGS"
11238     else
11239         if test -n "$PKG_CONFIG" && \
11240     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audio-session-mgr\"") >&5
11241   ($PKG_CONFIG --exists --print-errors "audio-session-mgr") 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); }; then
11245   pkg_cv_AUDIOSESSIONMGR_CFLAGS=`$PKG_CONFIG --cflags "audio-session-mgr" 2>/dev/null`
11246 else
11247   pkg_failed=yes
11248 fi
11249     fi
11250 else
11251         pkg_failed=untried
11252 fi
11253 if test -n "$PKG_CONFIG"; then
11254     if test -n "$AUDIOSESSIONMGR_LIBS"; then
11255         pkg_cv_AUDIOSESSIONMGR_LIBS="$AUDIOSESSIONMGR_LIBS"
11256     else
11257         if test -n "$PKG_CONFIG" && \
11258     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audio-session-mgr\"") >&5
11259   ($PKG_CONFIG --exists --print-errors "audio-session-mgr") 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; then
11263   pkg_cv_AUDIOSESSIONMGR_LIBS=`$PKG_CONFIG --libs "audio-session-mgr" 2>/dev/null`
11264 else
11265   pkg_failed=yes
11266 fi
11267     fi
11268 else
11269         pkg_failed=untried
11270 fi
11271
11272
11273
11274 if test $pkg_failed = yes; then
11275
11276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11277         _pkg_short_errors_supported=yes
11278 else
11279         _pkg_short_errors_supported=no
11280 fi
11281         if test $_pkg_short_errors_supported = yes; then
11282                 AUDIOSESSIONMGR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audio-session-mgr"`
11283         else
11284                 AUDIOSESSIONMGR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audio-session-mgr"`
11285         fi
11286         # Put the nasty error message in config.log where it belongs
11287         echo "$AUDIOSESSIONMGR_PKG_ERRORS" >&5
11288
11289         { { echo "$as_me:$LINENO: error: Package requirements (audio-session-mgr) were not met:
11290
11291 $AUDIOSESSIONMGR_PKG_ERRORS
11292
11293 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11294 installed software in a non-standard prefix.
11295
11296 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11297 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11298 See the pkg-config man page for more details.
11299 " >&5
11300 echo "$as_me: error: Package requirements (audio-session-mgr) were not met:
11301
11302 $AUDIOSESSIONMGR_PKG_ERRORS
11303
11304 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11305 installed software in a non-standard prefix.
11306
11307 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11308 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11309 See the pkg-config man page for more details.
11310 " >&2;}
11311    { (exit 1); exit 1; }; }
11312 elif test $pkg_failed = untried; then
11313         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11314 is in your PATH or set the PKG_CONFIG environment variable to the full
11315 path to pkg-config.
11316
11317 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11318 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11319 See the pkg-config man page for more details.
11320
11321 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11322 See \`config.log' for more details." >&5
11323 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11324 is in your PATH or set the PKG_CONFIG environment variable to the full
11325 path to pkg-config.
11326
11327 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11328 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11329 See the pkg-config man page for more details.
11330
11331 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11332 See \`config.log' for more details." >&2;}
11333    { (exit 1); exit 1; }; }
11334 else
11335         AUDIOSESSIONMGR_CFLAGS=$pkg_cv_AUDIOSESSIONMGR_CFLAGS
11336         AUDIOSESSIONMGR_LIBS=$pkg_cv_AUDIOSESSIONMGR_LIBS
11337         { echo "$as_me:$LINENO: result: yes" >&5
11338 echo "${ECHO_T}yes" >&6; }
11339         :
11340 fi
11341
11342
11343
11344
11345 pkg_failed=no
11346 { echo "$as_me:$LINENO: checking for MMCOMMON" >&5
11347 echo $ECHO_N "checking for MMCOMMON... $ECHO_C" >&6; }
11348
11349 if test -n "$PKG_CONFIG"; then
11350     if test -n "$MMCOMMON_CFLAGS"; then
11351         pkg_cv_MMCOMMON_CFLAGS="$MMCOMMON_CFLAGS"
11352     else
11353         if test -n "$PKG_CONFIG" && \
11354     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-common\"") >&5
11355   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; then
11359   pkg_cv_MMCOMMON_CFLAGS=`$PKG_CONFIG --cflags "mm-common" 2>/dev/null`
11360 else
11361   pkg_failed=yes
11362 fi
11363     fi
11364 else
11365         pkg_failed=untried
11366 fi
11367 if test -n "$PKG_CONFIG"; then
11368     if test -n "$MMCOMMON_LIBS"; then
11369         pkg_cv_MMCOMMON_LIBS="$MMCOMMON_LIBS"
11370     else
11371         if test -n "$PKG_CONFIG" && \
11372     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-common\"") >&5
11373   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; then
11377   pkg_cv_MMCOMMON_LIBS=`$PKG_CONFIG --libs "mm-common" 2>/dev/null`
11378 else
11379   pkg_failed=yes
11380 fi
11381     fi
11382 else
11383         pkg_failed=untried
11384 fi
11385
11386
11387
11388 if test $pkg_failed = yes; then
11389
11390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11391         _pkg_short_errors_supported=yes
11392 else
11393         _pkg_short_errors_supported=no
11394 fi
11395         if test $_pkg_short_errors_supported = yes; then
11396                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-common"`
11397         else
11398                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-common"`
11399         fi
11400         # Put the nasty error message in config.log where it belongs
11401         echo "$MMCOMMON_PKG_ERRORS" >&5
11402
11403         { { echo "$as_me:$LINENO: error: Package requirements (mm-common) were not met:
11404
11405 $MMCOMMON_PKG_ERRORS
11406
11407 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11408 installed software in a non-standard prefix.
11409
11410 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
11411 and MMCOMMON_LIBS to avoid the need to call pkg-config.
11412 See the pkg-config man page for more details.
11413 " >&5
11414 echo "$as_me: error: Package requirements (mm-common) were not met:
11415
11416 $MMCOMMON_PKG_ERRORS
11417
11418 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11419 installed software in a non-standard prefix.
11420
11421 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
11422 and MMCOMMON_LIBS to avoid the need to call pkg-config.
11423 See the pkg-config man page for more details.
11424 " >&2;}
11425    { (exit 1); exit 1; }; }
11426 elif test $pkg_failed = untried; then
11427         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11428 is in your PATH or set the PKG_CONFIG environment variable to the full
11429 path to pkg-config.
11430
11431 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
11432 and MMCOMMON_LIBS to avoid the need to call pkg-config.
11433 See the pkg-config man page for more details.
11434
11435 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11436 See \`config.log' for more details." >&5
11437 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11438 is in your PATH or set the PKG_CONFIG environment variable to the full
11439 path to pkg-config.
11440
11441 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
11442 and MMCOMMON_LIBS to avoid the need to call pkg-config.
11443 See the pkg-config man page for more details.
11444
11445 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11446 See \`config.log' for more details." >&2;}
11447    { (exit 1); exit 1; }; }
11448 else
11449         MMCOMMON_CFLAGS=$pkg_cv_MMCOMMON_CFLAGS
11450         MMCOMMON_LIBS=$pkg_cv_MMCOMMON_LIBS
11451         { echo "$as_me:$LINENO: result: yes" >&5
11452 echo "${ECHO_T}yes" >&6; }
11453         :
11454 fi
11455
11456
11457
11458 # Checks for header files.
11459 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11461 if test "${ac_cv_header_stdc+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h.  */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h.  */
11470 #include <stdlib.h>
11471 #include <stdarg.h>
11472 #include <string.h>
11473 #include <float.h>
11474
11475 int
11476 main ()
11477 {
11478
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (ac_try="$ac_compile"
11485 case "(($ac_try" in
11486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487   *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490   (eval "$ac_compile") 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } && {
11497          test -z "$ac_c_werror_flag" ||
11498          test ! -s conftest.err
11499        } && test -s conftest.$ac_objext; then
11500   ac_cv_header_stdc=yes
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505         ac_cv_header_stdc=no
11506 fi
11507
11508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11509
11510 if test $ac_cv_header_stdc = yes; then
11511   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11512   cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 #include <string.h>
11519
11520 _ACEOF
11521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11522   $EGREP "memchr" >/dev/null 2>&1; then
11523   :
11524 else
11525   ac_cv_header_stdc=no
11526 fi
11527 rm -f conftest*
11528
11529 fi
11530
11531 if test $ac_cv_header_stdc = yes; then
11532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11533   cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #include <stdlib.h>
11540
11541 _ACEOF
11542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11543   $EGREP "free" >/dev/null 2>&1; then
11544   :
11545 else
11546   ac_cv_header_stdc=no
11547 fi
11548 rm -f conftest*
11549
11550 fi
11551
11552 if test $ac_cv_header_stdc = yes; then
11553   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11554   if test "$cross_compiling" = yes; then
11555   :
11556 else
11557   cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h.  */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h.  */
11563 #include <ctype.h>
11564 #include <stdlib.h>
11565 #if ((' ' & 0x0FF) == 0x020)
11566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11568 #else
11569 # define ISLOWER(c) \
11570                    (('a' <= (c) && (c) <= 'i') \
11571                      || ('j' <= (c) && (c) <= 'r') \
11572                      || ('s' <= (c) && (c) <= 'z'))
11573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11574 #endif
11575
11576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11577 int
11578 main ()
11579 {
11580   int i;
11581   for (i = 0; i < 256; i++)
11582     if (XOR (islower (i), ISLOWER (i))
11583         || toupper (i) != TOUPPER (i))
11584       return 2;
11585   return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592   *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595   (eval "$ac_link") 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11599   { (case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_try") 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; }; then
11608   :
11609 else
11610   echo "$as_me: program exited with status $ac_status" >&5
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 ( exit $ac_status )
11615 ac_cv_header_stdc=no
11616 fi
11617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11618 fi
11619
11620
11621 fi
11622 fi
11623 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11624 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11625 if test $ac_cv_header_stdc = yes; then
11626
11627 cat >>confdefs.h <<\_ACEOF
11628 #define STDC_HEADERS 1
11629 _ACEOF
11630
11631 fi
11632
11633
11634
11635
11636
11637 for ac_header in sys/types.h sys/stat.h fcntl.h unistd.h
11638 do
11639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 fi
11646 ac_res=`eval echo '${'$as_ac_Header'}'`
11647                { echo "$as_me:$LINENO: result: $ac_res" >&5
11648 echo "${ECHO_T}$ac_res" >&6; }
11649 else
11650   # Is the header compilable?
11651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 $ac_includes_default
11660 #include <$ac_header>
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_compile") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } && {
11676          test -z "$ac_c_werror_flag" ||
11677          test ! -s conftest.err
11678        } && test -s conftest.$ac_objext; then
11679   ac_header_compiler=yes
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684         ac_header_compiler=no
11685 fi
11686
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11689 echo "${ECHO_T}$ac_header_compiler" >&6; }
11690
11691 # Is the header present?
11692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700 #include <$ac_header>
11701 _ACEOF
11702 if { (ac_try="$ac_cpp conftest.$ac_ext"
11703 case "(($ac_try" in
11704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705   *) ac_try_echo=$ac_try;;
11706 esac
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } >/dev/null && {
11715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11716          test ! -s conftest.err
11717        }; then
11718   ac_header_preproc=yes
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723   ac_header_preproc=no
11724 fi
11725
11726 rm -f conftest.err conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11728 echo "${ECHO_T}$ac_header_preproc" >&6; }
11729
11730 # So?  What about this header?
11731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11732   yes:no: )
11733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11737     ac_header_preproc=yes
11738     ;;
11739   no:yes:* )
11740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11752     ( cat <<\_ASBOX
11753 ## --------------------------------- ##
11754 ## Report this to BUG-REPORT-ADDRESS ##
11755 ## --------------------------------- ##
11756 _ASBOX
11757      ) | sed "s/^/$as_me: WARNING:     /" >&2
11758     ;;
11759 esac
11760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   eval "$as_ac_Header=\$ac_header_preproc"
11766 fi
11767 ac_res=`eval echo '${'$as_ac_Header'}'`
11768                { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770
11771 fi
11772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11773   cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11775 _ACEOF
11776
11777 fi
11778
11779 done
11780
11781
11782 # Checks for typedefs, structures, and compiler characteristics.
11783 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11784 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11785 if test "${ac_cv_header_stdbool_h+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794
11795 #include <stdbool.h>
11796 #ifndef bool
11797  "error: bool is not defined"
11798 #endif
11799 #ifndef false
11800  "error: false is not defined"
11801 #endif
11802 #if false
11803  "error: false is not 0"
11804 #endif
11805 #ifndef true
11806  "error: true is not defined"
11807 #endif
11808 #if true != 1
11809  "error: true is not 1"
11810 #endif
11811 #ifndef __bool_true_false_are_defined
11812  "error: __bool_true_false_are_defined is not defined"
11813 #endif
11814
11815         struct s { _Bool s: 1; _Bool t; } s;
11816
11817         char a[true == 1 ? 1 : -1];
11818         char b[false == 0 ? 1 : -1];
11819         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11820         char d[(bool) 0.5 == true ? 1 : -1];
11821         bool e = &s;
11822         char f[(_Bool) 0.0 == false ? 1 : -1];
11823         char g[true];
11824         char h[sizeof (_Bool)];
11825         char i[sizeof s.t];
11826         enum { j = false, k = true, l = false * true, m = true * 256 };
11827         _Bool n[m];
11828         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11829         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11830 #       if defined __xlc__ || defined __GNUC__
11831          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11832             reported by James Lemley on 2005-10-05; see
11833             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11834             This test is not quite right, since xlc is allowed to
11835             reject this program, as the initializer for xlcbug is
11836             not one of the forms that C requires support for.
11837             However, doing the test right would require a runtime
11838             test, and that would make cross-compilation harder.
11839             Let us hope that IBM fixes the xlc bug, and also adds
11840             support for this kind of constant expression.  In the
11841             meantime, this test will reject xlc, which is OK, since
11842             our stdbool.h substitute should suffice.  We also test
11843             this with GCC, where it should work, to detect more
11844             quickly whether someone messes up the test in the
11845             future.  */
11846          char digs[] = "0123456789";
11847          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11848 #       endif
11849         /* Catch a bug in an HP-UX C compiler.  See
11850            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11851            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11852          */
11853         _Bool q = true;
11854         _Bool *pq = &q;
11855
11856 int
11857 main ()
11858 {
11859
11860         *pq |= q;
11861         *pq |= ! q;
11862         /* Refer to every declared value, to avoid compiler optimizations.  */
11863         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11864                 + !m + !n + !o + !p + !q + !pq);
11865
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
11872 case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877   (eval "$ac_compile") 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } && {
11884          test -z "$ac_c_werror_flag" ||
11885          test ! -s conftest.err
11886        } && test -s conftest.$ac_objext; then
11887   ac_cv_header_stdbool_h=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892         ac_cv_header_stdbool_h=no
11893 fi
11894
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11899 { echo "$as_me:$LINENO: checking for _Bool" >&5
11900 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11901 if test "${ac_cv_type__Bool+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904   cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h.  */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h.  */
11910 $ac_includes_default
11911 typedef _Bool ac__type_new_;
11912 int
11913 main ()
11914 {
11915 if ((ac__type_new_ *) 0)
11916   return 0;
11917 if (sizeof (ac__type_new_))
11918   return 0;
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_compile") 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } && {
11937          test -z "$ac_c_werror_flag" ||
11938          test ! -s conftest.err
11939        } && test -s conftest.$ac_objext; then
11940   ac_cv_type__Bool=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945         ac_cv_type__Bool=no
11946 fi
11947
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 fi
11950 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11951 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11952 if test $ac_cv_type__Bool = yes; then
11953
11954 cat >>confdefs.h <<_ACEOF
11955 #define HAVE__BOOL 1
11956 _ACEOF
11957
11958
11959 fi
11960
11961 if test $ac_cv_header_stdbool_h = yes; then
11962
11963 cat >>confdefs.h <<\_ACEOF
11964 #define HAVE_STDBOOL_H 1
11965 _ACEOF
11966
11967 fi
11968
11969 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11970 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11971 if test "${ac_cv_c_const+set}" = set; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980
11981 int
11982 main ()
11983 {
11984 /* FIXME: Include the comments suggested by Paul. */
11985 #ifndef __cplusplus
11986   /* Ultrix mips cc rejects this.  */
11987   typedef int charset[2];
11988   const charset cs;
11989   /* SunOS 4.1.1 cc rejects this.  */
11990   char const *const *pcpcc;
11991   char **ppc;
11992   /* NEC SVR4.0.2 mips cc rejects this.  */
11993   struct point {int x, y;};
11994   static struct point const zero = {0,0};
11995   /* AIX XL C 1.02.0.0 rejects this.
11996      It does not let you subtract one const X* pointer from another in
11997      an arm of an if-expression whose if-part is not a constant
11998      expression */
11999   const char *g = "string";
12000   pcpcc = &g + (g ? g-g : 0);
12001   /* HPUX 7.0 cc rejects these. */
12002   ++pcpcc;
12003   ppc = (char**) pcpcc;
12004   pcpcc = (char const *const *) ppc;
12005   { /* SCO 3.2v4 cc rejects this.  */
12006     char *t;
12007     char const *s = 0 ? (char *) 0 : (char const *) 0;
12008
12009     *t++ = 0;
12010     if (s) return 0;
12011   }
12012   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12013     int x[] = {25, 17};
12014     const int *foo = &x[0];
12015     ++foo;
12016   }
12017   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12018     typedef const int *iptr;
12019     iptr p = 0;
12020     ++p;
12021   }
12022   { /* AIX XL C 1.02.0.0 rejects this saying
12023        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12024     struct s { int j; const int *ap[3]; };
12025     struct s *b; b->j = 5;
12026   }
12027   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12028     const int foo = 10;
12029     if (!foo) return 0;
12030   }
12031   return !cs[0] && !zero.x;
12032 #endif
12033
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext
12039 if { (ac_try="$ac_compile"
12040 case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_compile") 2>conftest.er1
12046   ac_status=$?
12047   grep -v '^ *+' conftest.er1 >conftest.err
12048   rm -f conftest.er1
12049   cat conftest.err >&5
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); } && {
12052          test -z "$ac_c_werror_flag" ||
12053          test ! -s conftest.err
12054        } && test -s conftest.$ac_objext; then
12055   ac_cv_c_const=yes
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060         ac_cv_c_const=no
12061 fi
12062
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 fi
12065 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12066 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12067 if test $ac_cv_c_const = no; then
12068
12069 cat >>confdefs.h <<\_ACEOF
12070 #define const
12071 _ACEOF
12072
12073 fi
12074
12075 { echo "$as_me:$LINENO: checking for mode_t" >&5
12076 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
12077 if test "${ac_cv_type_mode_t+set}" = set; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080   cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h.  */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h.  */
12086 $ac_includes_default
12087 typedef mode_t ac__type_new_;
12088 int
12089 main ()
12090 {
12091 if ((ac__type_new_ *) 0)
12092   return 0;
12093 if (sizeof (ac__type_new_))
12094   return 0;
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (ac_try="$ac_compile"
12101 case "(($ac_try" in
12102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103   *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106   (eval "$ac_compile") 2>conftest.er1
12107   ac_status=$?
12108   grep -v '^ *+' conftest.er1 >conftest.err
12109   rm -f conftest.er1
12110   cat conftest.err >&5
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } && {
12113          test -z "$ac_c_werror_flag" ||
12114          test ! -s conftest.err
12115        } && test -s conftest.$ac_objext; then
12116   ac_cv_type_mode_t=yes
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121         ac_cv_type_mode_t=no
12122 fi
12123
12124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125 fi
12126 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12127 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
12128 if test $ac_cv_type_mode_t = yes; then
12129   :
12130 else
12131
12132 cat >>confdefs.h <<_ACEOF
12133 #define mode_t int
12134 _ACEOF
12135
12136 fi
12137
12138
12139 # Checks for library functions.
12140 #AC_FUNC_MALLOC
12141 #AC_CHECK_FUNCS([memset])
12142
12143 ac_config_files="$ac_config_files Makefile mm-session.pc"
12144
12145 cat >confcache <<\_ACEOF
12146 # This file is a shell script that caches the results of configure
12147 # tests run on this system so they can be shared between configure
12148 # scripts and configure runs, see configure's option --config-cache.
12149 # It is not useful on other systems.  If it contains results you don't
12150 # want to keep, you may remove or edit it.
12151 #
12152 # config.status only pays attention to the cache file if you give it
12153 # the --recheck option to rerun configure.
12154 #
12155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12157 # following values.
12158
12159 _ACEOF
12160
12161 # The following way of writing the cache mishandles newlines in values,
12162 # but we know of no workaround that is simple, portable, and efficient.
12163 # So, we kill variables containing newlines.
12164 # Ultrix sh set writes to stderr and can't be redirected directly,
12165 # and sets the high bit in the cache file unless we assign to the vars.
12166 (
12167   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12168     eval ac_val=\$$ac_var
12169     case $ac_val in #(
12170     *${as_nl}*)
12171       case $ac_var in #(
12172       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12173 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12174       esac
12175       case $ac_var in #(
12176       _ | IFS | as_nl) ;; #(
12177       *) $as_unset $ac_var ;;
12178       esac ;;
12179     esac
12180   done
12181
12182   (set) 2>&1 |
12183     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12184     *${as_nl}ac_space=\ *)
12185       # `set' does not quote correctly, so add quotes (double-quote
12186       # substitution turns \\\\ into \\, and sed turns \\ into \).
12187       sed -n \
12188         "s/'/'\\\\''/g;
12189           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12190       ;; #(
12191     *)
12192       # `set' quotes correctly as required by POSIX, so do not add quotes.
12193       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12194       ;;
12195     esac |
12196     sort
12197 ) |
12198   sed '
12199      /^ac_cv_env_/b end
12200      t clear
12201      :clear
12202      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12203      t end
12204      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12205      :end' >>confcache
12206 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12207   if test -w "$cache_file"; then
12208     test "x$cache_file" != "x/dev/null" &&
12209       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12210 echo "$as_me: updating cache $cache_file" >&6;}
12211     cat confcache >$cache_file
12212   else
12213     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12214 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12215   fi
12216 fi
12217 rm -f confcache
12218
12219 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12220 # Let make expand exec_prefix.
12221 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12222
12223 DEFS=-DHAVE_CONFIG_H
12224
12225 ac_libobjs=
12226 ac_ltlibobjs=
12227 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12228   # 1. Remove the extension, and $U if already installed.
12229   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12230   ac_i=`echo "$ac_i" | sed "$ac_script"`
12231   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12232   #    will be set to the directory where LIBOBJS objects are built.
12233   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12234   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12235 done
12236 LIBOBJS=$ac_libobjs
12237
12238 LTLIBOBJS=$ac_ltlibobjs
12239
12240
12241 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12242   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12243 Usually this means the macro was only invoked conditionally." >&5
12244 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12245 Usually this means the macro was only invoked conditionally." >&2;}
12246    { (exit 1); exit 1; }; }
12247 fi
12248 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12249   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12250 Usually this means the macro was only invoked conditionally." >&5
12251 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12252 Usually this means the macro was only invoked conditionally." >&2;}
12253    { (exit 1); exit 1; }; }
12254 fi
12255
12256 : ${CONFIG_STATUS=./config.status}
12257 ac_clean_files_save=$ac_clean_files
12258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12261 cat >$CONFIG_STATUS <<_ACEOF
12262 #! $SHELL
12263 # Generated by $as_me.
12264 # Run this file to recreate the current configuration.
12265 # Compiler output produced by configure, useful for debugging
12266 # configure, is in config.log if it exists.
12267
12268 debug=false
12269 ac_cs_recheck=false
12270 ac_cs_silent=false
12271 SHELL=\${CONFIG_SHELL-$SHELL}
12272 _ACEOF
12273
12274 cat >>$CONFIG_STATUS <<\_ACEOF
12275 ## --------------------- ##
12276 ## M4sh Initialization.  ##
12277 ## --------------------- ##
12278
12279 # Be more Bourne compatible
12280 DUALCASE=1; export DUALCASE # for MKS sh
12281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12282   emulate sh
12283   NULLCMD=:
12284   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12285   # is contrary to our usage.  Disable this feature.
12286   alias -g '${1+"$@"}'='"$@"'
12287   setopt NO_GLOB_SUBST
12288 else
12289   case `(set -o) 2>/dev/null` in
12290   *posix*) set -o posix ;;
12291 esac
12292
12293 fi
12294
12295
12296
12297
12298 # PATH needs CR
12299 # Avoid depending upon Character Ranges.
12300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12303 as_cr_digits='0123456789'
12304 as_cr_alnum=$as_cr_Letters$as_cr_digits
12305
12306 # The user is always right.
12307 if test "${PATH_SEPARATOR+set}" != set; then
12308   echo "#! /bin/sh" >conf$$.sh
12309   echo  "exit 0"   >>conf$$.sh
12310   chmod +x conf$$.sh
12311   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12312     PATH_SEPARATOR=';'
12313   else
12314     PATH_SEPARATOR=:
12315   fi
12316   rm -f conf$$.sh
12317 fi
12318
12319 # Support unset when possible.
12320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12321   as_unset=unset
12322 else
12323   as_unset=false
12324 fi
12325
12326
12327 # IFS
12328 # We need space, tab and new line, in precisely that order.  Quoting is
12329 # there to prevent editors from complaining about space-tab.
12330 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12331 # splitting by setting IFS to empty value.)
12332 as_nl='
12333 '
12334 IFS=" ""        $as_nl"
12335
12336 # Find who we are.  Look in the path if we contain no directory separator.
12337 case $0 in
12338   *[\\/]* ) as_myself=$0 ;;
12339   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12341 do
12342   IFS=$as_save_IFS
12343   test -z "$as_dir" && as_dir=.
12344   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12345 done
12346 IFS=$as_save_IFS
12347
12348      ;;
12349 esac
12350 # We did not find ourselves, most probably we were run as `sh COMMAND'
12351 # in which case we are not to be found in the path.
12352 if test "x$as_myself" = x; then
12353   as_myself=$0
12354 fi
12355 if test ! -f "$as_myself"; then
12356   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12357   { (exit 1); exit 1; }
12358 fi
12359
12360 # Work around bugs in pre-3.0 UWIN ksh.
12361 for as_var in ENV MAIL MAILPATH
12362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12363 done
12364 PS1='$ '
12365 PS2='> '
12366 PS4='+ '
12367
12368 # NLS nuisances.
12369 for as_var in \
12370   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12371   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12372   LC_TELEPHONE LC_TIME
12373 do
12374   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12375     eval $as_var=C; export $as_var
12376   else
12377     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12378   fi
12379 done
12380
12381 # Required to use basename.
12382 if expr a : '\(a\)' >/dev/null 2>&1 &&
12383    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12384   as_expr=expr
12385 else
12386   as_expr=false
12387 fi
12388
12389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12390   as_basename=basename
12391 else
12392   as_basename=false
12393 fi
12394
12395
12396 # Name of the executable.
12397 as_me=`$as_basename -- "$0" ||
12398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12399          X"$0" : 'X\(//\)$' \| \
12400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12401 echo X/"$0" |
12402     sed '/^.*\/\([^/][^/]*\)\/*$/{
12403             s//\1/
12404             q
12405           }
12406           /^X\/\(\/\/\)$/{
12407             s//\1/
12408             q
12409           }
12410           /^X\/\(\/\).*/{
12411             s//\1/
12412             q
12413           }
12414           s/.*/./; q'`
12415
12416 # CDPATH.
12417 $as_unset CDPATH
12418
12419
12420
12421   as_lineno_1=$LINENO
12422   as_lineno_2=$LINENO
12423   test "x$as_lineno_1" != "x$as_lineno_2" &&
12424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12425
12426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12427   # uniformly replaced by the line number.  The first 'sed' inserts a
12428   # line-number line after each line using $LINENO; the second 'sed'
12429   # does the real work.  The second script uses 'N' to pair each
12430   # line-number line with the line containing $LINENO, and appends
12431   # trailing '-' during substitution so that $LINENO is not a special
12432   # case at line end.
12433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12435   # E. McMahon (1931-1989) for sed's syntax.  :-)
12436   sed -n '
12437     p
12438     /[$]LINENO/=
12439   ' <$as_myself |
12440     sed '
12441       s/[$]LINENO.*/&-/
12442       t lineno
12443       b
12444       :lineno
12445       N
12446       :loop
12447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12448       t loop
12449       s/-\n.*//
12450     ' >$as_me.lineno &&
12451   chmod +x "$as_me.lineno" ||
12452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12453    { (exit 1); exit 1; }; }
12454
12455   # Don't try to exec as it changes $[0], causing all sort of problems
12456   # (the dirname of $[0] is not the place where we might find the
12457   # original and so on.  Autoconf is especially sensitive to this).
12458   . "./$as_me.lineno"
12459   # Exit status is that of the last command.
12460   exit
12461 }
12462
12463
12464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12465   as_dirname=dirname
12466 else
12467   as_dirname=false
12468 fi
12469
12470 ECHO_C= ECHO_N= ECHO_T=
12471 case `echo -n x` in
12472 -n*)
12473   case `echo 'x\c'` in
12474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12475   *)   ECHO_C='\c';;
12476   esac;;
12477 *)
12478   ECHO_N='-n';;
12479 esac
12480
12481 if expr a : '\(a\)' >/dev/null 2>&1 &&
12482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12483   as_expr=expr
12484 else
12485   as_expr=false
12486 fi
12487
12488 rm -f conf$$ conf$$.exe conf$$.file
12489 if test -d conf$$.dir; then
12490   rm -f conf$$.dir/conf$$.file
12491 else
12492   rm -f conf$$.dir
12493   mkdir conf$$.dir
12494 fi
12495 echo >conf$$.file
12496 if ln -s conf$$.file conf$$ 2>/dev/null; then
12497   as_ln_s='ln -s'
12498   # ... but there are two gotchas:
12499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12501   # In both cases, we have to default to `cp -p'.
12502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12503     as_ln_s='cp -p'
12504 elif ln conf$$.file conf$$ 2>/dev/null; then
12505   as_ln_s=ln
12506 else
12507   as_ln_s='cp -p'
12508 fi
12509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12510 rmdir conf$$.dir 2>/dev/null
12511
12512 if mkdir -p . 2>/dev/null; then
12513   as_mkdir_p=:
12514 else
12515   test -d ./-p && rmdir ./-p
12516   as_mkdir_p=false
12517 fi
12518
12519 if test -x / >/dev/null 2>&1; then
12520   as_test_x='test -x'
12521 else
12522   if ls -dL / >/dev/null 2>&1; then
12523     as_ls_L_option=L
12524   else
12525     as_ls_L_option=
12526   fi
12527   as_test_x='
12528     eval sh -c '\''
12529       if test -d "$1"; then
12530         test -d "$1/.";
12531       else
12532         case $1 in
12533         -*)set "./$1";;
12534         esac;
12535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12536         ???[sx]*):;;*)false;;esac;fi
12537     '\'' sh
12538   '
12539 fi
12540 as_executable_p=$as_test_x
12541
12542 # Sed expression to map a string onto a valid CPP name.
12543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12544
12545 # Sed expression to map a string onto a valid variable name.
12546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12547
12548
12549 exec 6>&1
12550
12551 # Save the log message, to keep $[0] and so on meaningful, and to
12552 # report actual input values of CONFIG_FILES etc. instead of their
12553 # values after options handling.
12554 ac_log="
12555 This file was extended by MMSESSION $as_me 1.0, which was
12556 generated by GNU Autoconf 2.61.  Invocation command line was
12557
12558   CONFIG_FILES    = $CONFIG_FILES
12559   CONFIG_HEADERS  = $CONFIG_HEADERS
12560   CONFIG_LINKS    = $CONFIG_LINKS
12561   CONFIG_COMMANDS = $CONFIG_COMMANDS
12562   $ $0 $@
12563
12564 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12565 "
12566
12567 _ACEOF
12568
12569 cat >>$CONFIG_STATUS <<_ACEOF
12570 # Files that config.status was made for.
12571 config_files="$ac_config_files"
12572 config_headers="$ac_config_headers"
12573 config_commands="$ac_config_commands"
12574
12575 _ACEOF
12576
12577 cat >>$CONFIG_STATUS <<\_ACEOF
12578 ac_cs_usage="\
12579 \`$as_me' instantiates files from templates according to the
12580 current configuration.
12581
12582 Usage: $0 [OPTIONS] [FILE]...
12583
12584   -h, --help       print this help, then exit
12585   -V, --version    print version number and configuration settings, then exit
12586   -q, --quiet      do not print progress messages
12587   -d, --debug      don't remove temporary files
12588       --recheck    update $as_me by reconfiguring in the same conditions
12589   --file=FILE[:TEMPLATE]
12590                    instantiate the configuration file FILE
12591   --header=FILE[:TEMPLATE]
12592                    instantiate the configuration header FILE
12593
12594 Configuration files:
12595 $config_files
12596
12597 Configuration headers:
12598 $config_headers
12599
12600 Configuration commands:
12601 $config_commands
12602
12603 Report bugs to <bug-autoconf@gnu.org>."
12604
12605 _ACEOF
12606 cat >>$CONFIG_STATUS <<_ACEOF
12607 ac_cs_version="\\
12608 MMSESSION config.status 1.0
12609 configured by $0, generated by GNU Autoconf 2.61,
12610   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12611
12612 Copyright (C) 2006 Free Software Foundation, Inc.
12613 This config.status script is free software; the Free Software Foundation
12614 gives unlimited permission to copy, distribute and modify it."
12615
12616 ac_pwd='$ac_pwd'
12617 srcdir='$srcdir'
12618 INSTALL='$INSTALL'
12619 MKDIR_P='$MKDIR_P'
12620 _ACEOF
12621
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12623 # If no file are specified by the user, then we need to provide default
12624 # value.  By we need to know if files were specified by the user.
12625 ac_need_defaults=:
12626 while test $# != 0
12627 do
12628   case $1 in
12629   --*=*)
12630     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12631     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12632     ac_shift=:
12633     ;;
12634   *)
12635     ac_option=$1
12636     ac_optarg=$2
12637     ac_shift=shift
12638     ;;
12639   esac
12640
12641   case $ac_option in
12642   # Handling of the options.
12643   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12644     ac_cs_recheck=: ;;
12645   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12646     echo "$ac_cs_version"; exit ;;
12647   --debug | --debu | --deb | --de | --d | -d )
12648     debug=: ;;
12649   --file | --fil | --fi | --f )
12650     $ac_shift
12651     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12652     ac_need_defaults=false;;
12653   --header | --heade | --head | --hea )
12654     $ac_shift
12655     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12656     ac_need_defaults=false;;
12657   --he | --h)
12658     # Conflict between --help and --header
12659     { echo "$as_me: error: ambiguous option: $1
12660 Try \`$0 --help' for more information." >&2
12661    { (exit 1); exit 1; }; };;
12662   --help | --hel | -h )
12663     echo "$ac_cs_usage"; exit ;;
12664   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12665   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12666     ac_cs_silent=: ;;
12667
12668   # This is an error.
12669   -*) { echo "$as_me: error: unrecognized option: $1
12670 Try \`$0 --help' for more information." >&2
12671    { (exit 1); exit 1; }; } ;;
12672
12673   *) ac_config_targets="$ac_config_targets $1"
12674      ac_need_defaults=false ;;
12675
12676   esac
12677   shift
12678 done
12679
12680 ac_configure_extra_args=
12681
12682 if $ac_cs_silent; then
12683   exec 6>/dev/null
12684   ac_configure_extra_args="$ac_configure_extra_args --silent"
12685 fi
12686
12687 _ACEOF
12688 cat >>$CONFIG_STATUS <<_ACEOF
12689 if \$ac_cs_recheck; then
12690   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12691   CONFIG_SHELL=$SHELL
12692   export CONFIG_SHELL
12693   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12694 fi
12695
12696 _ACEOF
12697 cat >>$CONFIG_STATUS <<\_ACEOF
12698 exec 5>>config.log
12699 {
12700   echo
12701   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12702 ## Running $as_me. ##
12703 _ASBOX
12704   echo "$ac_log"
12705 } >&5
12706
12707 _ACEOF
12708 cat >>$CONFIG_STATUS <<_ACEOF
12709 #
12710 # INIT-COMMANDS
12711 #
12712 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12713
12714
12715 # The HP-UX ksh and POSIX shell print the target directory to stdout
12716 # if CDPATH is set.
12717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12718
12719 sed_quote_subst='$sed_quote_subst'
12720 double_quote_subst='$double_quote_subst'
12721 delay_variable_subst='$delay_variable_subst'
12722 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12723 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12724 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12725 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12726 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12727 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12728 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12729 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12730 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12731 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12732 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12733 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12734 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12735 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12736 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12737 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12738 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12739 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12740 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12741 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12742 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12743 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12744 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12745 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12746 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12747 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12748 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12749 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12750 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12751 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12752 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12753 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12754 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12755 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12756 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12757 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12758 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12759 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12760 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12761 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12762 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12763 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12764 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12765 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"`'
12766 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"`'
12767 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12768 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12769 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12770 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12771 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12772 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12773 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12774 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12775 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12776 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12777 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12778 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12779 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12780 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12781 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12782 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12783 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12784 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12785 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12786 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12787 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12788 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12789 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12790 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12791 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12792 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12793 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12794 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12795 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12796 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12797 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12798 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12799 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12800 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12801 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12802 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12803 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12804 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12805 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12806 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12807 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12808 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12809 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12810 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12811 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12812 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12813 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12814 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12815 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12816 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12817 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12818 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12819 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12820 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12821 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12822 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12823 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12824 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12825 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12826 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12827 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12828 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12829 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12830 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12831 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12832 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12833 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12834 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12835 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12836 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12837 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12838 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12839
12840 LTCC='$LTCC'
12841 LTCFLAGS='$LTCFLAGS'
12842 compiler='$compiler_DEFAULT'
12843
12844 # Quote evaled strings.
12845 for var in SED \
12846 GREP \
12847 EGREP \
12848 FGREP \
12849 LD \
12850 NM \
12851 LN_S \
12852 lt_SP2NL \
12853 lt_NL2SP \
12854 reload_flag \
12855 deplibs_check_method \
12856 file_magic_cmd \
12857 AR \
12858 AR_FLAGS \
12859 STRIP \
12860 RANLIB \
12861 CC \
12862 CFLAGS \
12863 compiler \
12864 lt_cv_sys_global_symbol_pipe \
12865 lt_cv_sys_global_symbol_to_cdecl \
12866 lt_cv_sys_global_symbol_to_c_name_address \
12867 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12868 SHELL \
12869 ECHO \
12870 lt_prog_compiler_no_builtin_flag \
12871 lt_prog_compiler_wl \
12872 lt_prog_compiler_pic \
12873 lt_prog_compiler_static \
12874 lt_cv_prog_compiler_c_o \
12875 need_locks \
12876 DSYMUTIL \
12877 NMEDIT \
12878 LIPO \
12879 OTOOL \
12880 OTOOL64 \
12881 shrext_cmds \
12882 export_dynamic_flag_spec \
12883 whole_archive_flag_spec \
12884 compiler_needs_object \
12885 with_gnu_ld \
12886 allow_undefined_flag \
12887 no_undefined_flag \
12888 hardcode_libdir_flag_spec \
12889 hardcode_libdir_flag_spec_ld \
12890 hardcode_libdir_separator \
12891 fix_srcfile_path \
12892 exclude_expsyms \
12893 include_expsyms \
12894 file_list_spec \
12895 variables_saved_for_relink \
12896 libname_spec \
12897 library_names_spec \
12898 soname_spec \
12899 finish_eval \
12900 old_striplib \
12901 striplib; do
12902     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12903     *[\\\\\\\`\\"\\\$]*)
12904       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12905       ;;
12906     *)
12907       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12908       ;;
12909     esac
12910 done
12911
12912 # Double-quote double-evaled strings.
12913 for var in reload_cmds \
12914 old_postinstall_cmds \
12915 old_postuninstall_cmds \
12916 old_archive_cmds \
12917 extract_expsyms_cmds \
12918 old_archive_from_new_cmds \
12919 old_archive_from_expsyms_cmds \
12920 archive_cmds \
12921 archive_expsym_cmds \
12922 module_cmds \
12923 module_expsym_cmds \
12924 export_symbols_cmds \
12925 prelink_cmds \
12926 postinstall_cmds \
12927 postuninstall_cmds \
12928 finish_cmds \
12929 sys_lib_search_path_spec \
12930 sys_lib_dlsearch_path_spec; do
12931     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12932     *[\\\\\\\`\\"\\\$]*)
12933       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12934       ;;
12935     *)
12936       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12937       ;;
12938     esac
12939 done
12940
12941 # Fix-up fallback echo if it was mangled by the above quoting rules.
12942 case \$lt_ECHO in
12943 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12944   ;;
12945 esac
12946
12947 ac_aux_dir='$ac_aux_dir'
12948 xsi_shell='$xsi_shell'
12949 lt_shell_append='$lt_shell_append'
12950
12951 # See if we are running on zsh, and set the options which allow our
12952 # commands through without removal of \ escapes INIT.
12953 if test -n "\${ZSH_VERSION+set}" ; then
12954    setopt NO_GLOB_SUBST
12955 fi
12956
12957
12958     PACKAGE='$PACKAGE'
12959     VERSION='$VERSION'
12960     TIMESTAMP='$TIMESTAMP'
12961     RM='$RM'
12962     ofile='$ofile'
12963
12964
12965
12966
12967 _ACEOF
12968
12969 cat >>$CONFIG_STATUS <<\_ACEOF
12970
12971 # Handling of arguments.
12972 for ac_config_target in $ac_config_targets
12973 do
12974   case $ac_config_target in
12975     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12976     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12977     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12978     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12979     "mm-session.pc") CONFIG_FILES="$CONFIG_FILES mm-session.pc" ;;
12980
12981   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12982 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12983    { (exit 1); exit 1; }; };;
12984   esac
12985 done
12986
12987
12988 # If the user did not use the arguments to specify the items to instantiate,
12989 # then the envvar interface is used.  Set only those that are not.
12990 # We use the long form for the default assignment because of an extremely
12991 # bizarre bug on SunOS 4.1.3.
12992 if $ac_need_defaults; then
12993   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12994   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12995   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12996 fi
12997
12998 # Have a temporary directory for convenience.  Make it in the build tree
12999 # simply because there is no reason against having it here, and in addition,
13000 # creating and moving files from /tmp can sometimes cause problems.
13001 # Hook for its removal unless debugging.
13002 # Note that there is a small window in which the directory will not be cleaned:
13003 # after its creation but before its name has been assigned to `$tmp'.
13004 $debug ||
13005 {
13006   tmp=
13007   trap 'exit_status=$?
13008   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13009 ' 0
13010   trap '{ (exit 1); exit 1; }' 1 2 13 15
13011 }
13012 # Create a (secure) tmp directory for tmp files.
13013
13014 {
13015   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13016   test -n "$tmp" && test -d "$tmp"
13017 }  ||
13018 {
13019   tmp=./conf$$-$RANDOM
13020   (umask 077 && mkdir "$tmp")
13021 } ||
13022 {
13023    echo "$me: cannot create a temporary directory in ." >&2
13024    { (exit 1); exit 1; }
13025 }
13026
13027 #
13028 # Set up the sed scripts for CONFIG_FILES section.
13029 #
13030
13031 # No need to generate the scripts if there are no CONFIG_FILES.
13032 # This happens for instance when ./config.status config.h
13033 if test -n "$CONFIG_FILES"; then
13034
13035 _ACEOF
13036
13037
13038
13039 ac_delim='%!_!# '
13040 for ac_last_try in false false false false false :; do
13041   cat >conf$$subs.sed <<_ACEOF
13042 SHELL!$SHELL$ac_delim
13043 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13044 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13045 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13046 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13047 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13048 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13049 exec_prefix!$exec_prefix$ac_delim
13050 prefix!$prefix$ac_delim
13051 program_transform_name!$program_transform_name$ac_delim
13052 bindir!$bindir$ac_delim
13053 sbindir!$sbindir$ac_delim
13054 libexecdir!$libexecdir$ac_delim
13055 datarootdir!$datarootdir$ac_delim
13056 datadir!$datadir$ac_delim
13057 sysconfdir!$sysconfdir$ac_delim
13058 sharedstatedir!$sharedstatedir$ac_delim
13059 localstatedir!$localstatedir$ac_delim
13060 includedir!$includedir$ac_delim
13061 oldincludedir!$oldincludedir$ac_delim
13062 docdir!$docdir$ac_delim
13063 infodir!$infodir$ac_delim
13064 htmldir!$htmldir$ac_delim
13065 dvidir!$dvidir$ac_delim
13066 pdfdir!$pdfdir$ac_delim
13067 psdir!$psdir$ac_delim
13068 libdir!$libdir$ac_delim
13069 localedir!$localedir$ac_delim
13070 mandir!$mandir$ac_delim
13071 DEFS!$DEFS$ac_delim
13072 ECHO_C!$ECHO_C$ac_delim
13073 ECHO_N!$ECHO_N$ac_delim
13074 ECHO_T!$ECHO_T$ac_delim
13075 LIBS!$LIBS$ac_delim
13076 build_alias!$build_alias$ac_delim
13077 host_alias!$host_alias$ac_delim
13078 target_alias!$target_alias$ac_delim
13079 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13080 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13081 INSTALL_DATA!$INSTALL_DATA$ac_delim
13082 am__isrc!$am__isrc$ac_delim
13083 CYGPATH_W!$CYGPATH_W$ac_delim
13084 PACKAGE!$PACKAGE$ac_delim
13085 VERSION!$VERSION$ac_delim
13086 ACLOCAL!$ACLOCAL$ac_delim
13087 AUTOCONF!$AUTOCONF$ac_delim
13088 AUTOMAKE!$AUTOMAKE$ac_delim
13089 AUTOHEADER!$AUTOHEADER$ac_delim
13090 MAKEINFO!$MAKEINFO$ac_delim
13091 install_sh!$install_sh$ac_delim
13092 STRIP!$STRIP$ac_delim
13093 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13094 mkdir_p!$mkdir_p$ac_delim
13095 AWK!$AWK$ac_delim
13096 SET_MAKE!$SET_MAKE$ac_delim
13097 am__leading_dot!$am__leading_dot$ac_delim
13098 AMTAR!$AMTAR$ac_delim
13099 am__tar!$am__tar$ac_delim
13100 am__untar!$am__untar$ac_delim
13101 CC!$CC$ac_delim
13102 CFLAGS!$CFLAGS$ac_delim
13103 LDFLAGS!$LDFLAGS$ac_delim
13104 CPPFLAGS!$CPPFLAGS$ac_delim
13105 ac_ct_CC!$ac_ct_CC$ac_delim
13106 EXEEXT!$EXEEXT$ac_delim
13107 OBJEXT!$OBJEXT$ac_delim
13108 DEPDIR!$DEPDIR$ac_delim
13109 am__include!$am__include$ac_delim
13110 am__quote!$am__quote$ac_delim
13111 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13112 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13113 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13114 CCDEPMODE!$CCDEPMODE$ac_delim
13115 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13116 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13117 LIBTOOL!$LIBTOOL$ac_delim
13118 build!$build$ac_delim
13119 build_cpu!$build_cpu$ac_delim
13120 build_vendor!$build_vendor$ac_delim
13121 build_os!$build_os$ac_delim
13122 host!$host$ac_delim
13123 host_cpu!$host_cpu$ac_delim
13124 host_vendor!$host_vendor$ac_delim
13125 host_os!$host_os$ac_delim
13126 SED!$SED$ac_delim
13127 GREP!$GREP$ac_delim
13128 EGREP!$EGREP$ac_delim
13129 FGREP!$FGREP$ac_delim
13130 LD!$LD$ac_delim
13131 DUMPBIN!$DUMPBIN$ac_delim
13132 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13133 NM!$NM$ac_delim
13134 LN_S!$LN_S$ac_delim
13135 AR!$AR$ac_delim
13136 RANLIB!$RANLIB$ac_delim
13137 lt_ECHO!$lt_ECHO$ac_delim
13138 DSYMUTIL!$DSYMUTIL$ac_delim
13139 _ACEOF
13140
13141   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13142     break
13143   elif $ac_last_try; then
13144     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13145 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13146    { (exit 1); exit 1; }; }
13147   else
13148     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13149   fi
13150 done
13151
13152 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13153 if test -n "$ac_eof"; then
13154   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13155   ac_eof=`expr $ac_eof + 1`
13156 fi
13157
13158 cat >>$CONFIG_STATUS <<_ACEOF
13159 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13161 _ACEOF
13162 sed '
13163 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13164 s/^/s,@/; s/!/@,|#_!!_#|/
13165 :n
13166 t n
13167 s/'"$ac_delim"'$/,g/; t
13168 s/$/\\/; p
13169 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13170 ' >>$CONFIG_STATUS <conf$$subs.sed
13171 rm -f conf$$subs.sed
13172 cat >>$CONFIG_STATUS <<_ACEOF
13173 CEOF$ac_eof
13174 _ACEOF
13175
13176
13177 ac_delim='%!_!# '
13178 for ac_last_try in false false false false false :; do
13179   cat >conf$$subs.sed <<_ACEOF
13180 NMEDIT!$NMEDIT$ac_delim
13181 LIPO!$LIPO$ac_delim
13182 OTOOL!$OTOOL$ac_delim
13183 OTOOL64!$OTOOL64$ac_delim
13184 CPP!$CPP$ac_delim
13185 PKG_CONFIG!$PKG_CONFIG$ac_delim
13186 AUDIOSESSIONMGR_CFLAGS!$AUDIOSESSIONMGR_CFLAGS$ac_delim
13187 AUDIOSESSIONMGR_LIBS!$AUDIOSESSIONMGR_LIBS$ac_delim
13188 MMCOMMON_CFLAGS!$MMCOMMON_CFLAGS$ac_delim
13189 MMCOMMON_LIBS!$MMCOMMON_LIBS$ac_delim
13190 LIBOBJS!$LIBOBJS$ac_delim
13191 LTLIBOBJS!$LTLIBOBJS$ac_delim
13192 _ACEOF
13193
13194   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
13195     break
13196   elif $ac_last_try; then
13197     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13198 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13199    { (exit 1); exit 1; }; }
13200   else
13201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13202   fi
13203 done
13204
13205 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13206 if test -n "$ac_eof"; then
13207   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13208   ac_eof=`expr $ac_eof + 1`
13209 fi
13210
13211 cat >>$CONFIG_STATUS <<_ACEOF
13212 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13214 _ACEOF
13215 sed '
13216 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13217 s/^/s,@/; s/!/@,|#_!!_#|/
13218 :n
13219 t n
13220 s/'"$ac_delim"'$/,g/; t
13221 s/$/\\/; p
13222 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13223 ' >>$CONFIG_STATUS <conf$$subs.sed
13224 rm -f conf$$subs.sed
13225 cat >>$CONFIG_STATUS <<_ACEOF
13226 :end
13227 s/|#_!!_#|//g
13228 CEOF$ac_eof
13229 _ACEOF
13230
13231
13232 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13233 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13234 # trailing colons and then remove the whole line if VPATH becomes empty
13235 # (actually we leave an empty line to preserve line numbers).
13236 if test "x$srcdir" = x.; then
13237   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13238 s/:*\$(srcdir):*/:/
13239 s/:*\${srcdir}:*/:/
13240 s/:*@srcdir@:*/:/
13241 s/^\([^=]*=[     ]*\):*/\1/
13242 s/:*$//
13243 s/^[^=]*=[       ]*$//
13244 }'
13245 fi
13246
13247 cat >>$CONFIG_STATUS <<\_ACEOF
13248 fi # test -n "$CONFIG_FILES"
13249
13250
13251 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13252 do
13253   case $ac_tag in
13254   :[FHLC]) ac_mode=$ac_tag; continue;;
13255   esac
13256   case $ac_mode$ac_tag in
13257   :[FHL]*:*);;
13258   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13259 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13260    { (exit 1); exit 1; }; };;
13261   :[FH]-) ac_tag=-:-;;
13262   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13263   esac
13264   ac_save_IFS=$IFS
13265   IFS=:
13266   set x $ac_tag
13267   IFS=$ac_save_IFS
13268   shift
13269   ac_file=$1
13270   shift
13271
13272   case $ac_mode in
13273   :L) ac_source=$1;;
13274   :[FH])
13275     ac_file_inputs=
13276     for ac_f
13277     do
13278       case $ac_f in
13279       -) ac_f="$tmp/stdin";;
13280       *) # Look for the file first in the build tree, then in the source tree
13281          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13282          # because $ac_f cannot contain `:'.
13283          test -f "$ac_f" ||
13284            case $ac_f in
13285            [\\/$]*) false;;
13286            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13287            esac ||
13288            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13289 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13290    { (exit 1); exit 1; }; };;
13291       esac
13292       ac_file_inputs="$ac_file_inputs $ac_f"
13293     done
13294
13295     # Let's still pretend it is `configure' which instantiates (i.e., don't
13296     # use $as_me), people would be surprised to read:
13297     #    /* config.h.  Generated by config.status.  */
13298     configure_input="Generated from "`IFS=:
13299           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13300     if test x"$ac_file" != x-; then
13301       configure_input="$ac_file.  $configure_input"
13302       { echo "$as_me:$LINENO: creating $ac_file" >&5
13303 echo "$as_me: creating $ac_file" >&6;}
13304     fi
13305
13306     case $ac_tag in
13307     *:-:* | *:-) cat >"$tmp/stdin";;
13308     esac
13309     ;;
13310   esac
13311
13312   ac_dir=`$as_dirname -- "$ac_file" ||
13313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13314          X"$ac_file" : 'X\(//\)[^/]' \| \
13315          X"$ac_file" : 'X\(//\)$' \| \
13316          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13317 echo X"$ac_file" |
13318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13319             s//\1/
13320             q
13321           }
13322           /^X\(\/\/\)[^/].*/{
13323             s//\1/
13324             q
13325           }
13326           /^X\(\/\/\)$/{
13327             s//\1/
13328             q
13329           }
13330           /^X\(\/\).*/{
13331             s//\1/
13332             q
13333           }
13334           s/.*/./; q'`
13335   { as_dir="$ac_dir"
13336   case $as_dir in #(
13337   -*) as_dir=./$as_dir;;
13338   esac
13339   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13340     as_dirs=
13341     while :; do
13342       case $as_dir in #(
13343       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13344       *) as_qdir=$as_dir;;
13345       esac
13346       as_dirs="'$as_qdir' $as_dirs"
13347       as_dir=`$as_dirname -- "$as_dir" ||
13348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13349          X"$as_dir" : 'X\(//\)[^/]' \| \
13350          X"$as_dir" : 'X\(//\)$' \| \
13351          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13352 echo X"$as_dir" |
13353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13354             s//\1/
13355             q
13356           }
13357           /^X\(\/\/\)[^/].*/{
13358             s//\1/
13359             q
13360           }
13361           /^X\(\/\/\)$/{
13362             s//\1/
13363             q
13364           }
13365           /^X\(\/\).*/{
13366             s//\1/
13367             q
13368           }
13369           s/.*/./; q'`
13370       test -d "$as_dir" && break
13371     done
13372     test -z "$as_dirs" || eval "mkdir $as_dirs"
13373   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13374 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13375    { (exit 1); exit 1; }; }; }
13376   ac_builddir=.
13377
13378 case "$ac_dir" in
13379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13380 *)
13381   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13382   # A ".." for each directory in $ac_dir_suffix.
13383   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13384   case $ac_top_builddir_sub in
13385   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13386   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13387   esac ;;
13388 esac
13389 ac_abs_top_builddir=$ac_pwd
13390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13391 # for backward compatibility:
13392 ac_top_builddir=$ac_top_build_prefix
13393
13394 case $srcdir in
13395   .)  # We are building in place.
13396     ac_srcdir=.
13397     ac_top_srcdir=$ac_top_builddir_sub
13398     ac_abs_top_srcdir=$ac_pwd ;;
13399   [\\/]* | ?:[\\/]* )  # Absolute name.
13400     ac_srcdir=$srcdir$ac_dir_suffix;
13401     ac_top_srcdir=$srcdir
13402     ac_abs_top_srcdir=$srcdir ;;
13403   *) # Relative name.
13404     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13405     ac_top_srcdir=$ac_top_build_prefix$srcdir
13406     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13407 esac
13408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13409
13410
13411   case $ac_mode in
13412   :F)
13413   #
13414   # CONFIG_FILE
13415   #
13416
13417   case $INSTALL in
13418   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13419   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13420   esac
13421   ac_MKDIR_P=$MKDIR_P
13422   case $MKDIR_P in
13423   [\\/$]* | ?:[\\/]* ) ;;
13424   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13425   esac
13426 _ACEOF
13427
13428 cat >>$CONFIG_STATUS <<\_ACEOF
13429 # If the template does not know about datarootdir, expand it.
13430 # FIXME: This hack should be removed a few years after 2.60.
13431 ac_datarootdir_hack=; ac_datarootdir_seen=
13432
13433 case `sed -n '/datarootdir/ {
13434   p
13435   q
13436 }
13437 /@datadir@/p
13438 /@docdir@/p
13439 /@infodir@/p
13440 /@localedir@/p
13441 /@mandir@/p
13442 ' $ac_file_inputs` in
13443 *datarootdir*) ac_datarootdir_seen=yes;;
13444 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13445   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13446 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13447 _ACEOF
13448 cat >>$CONFIG_STATUS <<_ACEOF
13449   ac_datarootdir_hack='
13450   s&@datadir@&$datadir&g
13451   s&@docdir@&$docdir&g
13452   s&@infodir@&$infodir&g
13453   s&@localedir@&$localedir&g
13454   s&@mandir@&$mandir&g
13455     s&\\\${datarootdir}&$datarootdir&g' ;;
13456 esac
13457 _ACEOF
13458
13459 # Neutralize VPATH when `$srcdir' = `.'.
13460 # Shell code in configure.ac might set extrasub.
13461 # FIXME: do we really want to maintain this feature?
13462 cat >>$CONFIG_STATUS <<_ACEOF
13463   sed "$ac_vpsub
13464 $extrasub
13465 _ACEOF
13466 cat >>$CONFIG_STATUS <<\_ACEOF
13467 :t
13468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13469 s&@configure_input@&$configure_input&;t t
13470 s&@top_builddir@&$ac_top_builddir_sub&;t t
13471 s&@srcdir@&$ac_srcdir&;t t
13472 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13473 s&@top_srcdir@&$ac_top_srcdir&;t t
13474 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13475 s&@builddir@&$ac_builddir&;t t
13476 s&@abs_builddir@&$ac_abs_builddir&;t t
13477 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13478 s&@INSTALL@&$ac_INSTALL&;t t
13479 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13480 $ac_datarootdir_hack
13481 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13482
13483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13484   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13485   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13486   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13487 which seems to be undefined.  Please make sure it is defined." >&5
13488 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13489 which seems to be undefined.  Please make sure it is defined." >&2;}
13490
13491   rm -f "$tmp/stdin"
13492   case $ac_file in
13493   -) cat "$tmp/out"; rm -f "$tmp/out";;
13494   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13495   esac
13496  ;;
13497   :H)
13498   #
13499   # CONFIG_HEADER
13500   #
13501 _ACEOF
13502
13503 # Transform confdefs.h into a sed script `conftest.defines', that
13504 # substitutes the proper values into config.h.in to produce config.h.
13505 rm -f conftest.defines conftest.tail
13506 # First, append a space to every undef/define line, to ease matching.
13507 echo 's/$/ /' >conftest.defines
13508 # Then, protect against being on the right side of a sed subst, or in
13509 # an unquoted here document, in config.status.  If some macros were
13510 # called several times there might be several #defines for the same
13511 # symbol, which is useless.  But do not sort them, since the last
13512 # AC_DEFINE must be honored.
13513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13514 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13515 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13516 # PARAMS is the parameter list in the macro definition--in most cases, it's
13517 # just an empty string.
13518 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13519 ac_dB='\\)[      (].*,\\1define\\2'
13520 ac_dC=' '
13521 ac_dD=' ,'
13522
13523 uniq confdefs.h |
13524   sed -n '
13525         t rset
13526         :rset
13527         s/^[     ]*#[    ]*define[       ][      ]*//
13528         t ok
13529         d
13530         :ok
13531         s/[\\&,]/\\&/g
13532         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13533         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13534   ' >>conftest.defines
13535
13536 # Remove the space that was appended to ease matching.
13537 # Then replace #undef with comments.  This is necessary, for
13538 # example, in the case of _POSIX_SOURCE, which is predefined and required
13539 # on some systems where configure will not decide to define it.
13540 # (The regexp can be short, since the line contains either #define or #undef.)
13541 echo 's/ $//
13542 s,^[     #]*u.*,/* & */,' >>conftest.defines
13543
13544 # Break up conftest.defines:
13545 ac_max_sed_lines=50
13546
13547 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13548 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13549 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13550 # et cetera.
13551 ac_in='$ac_file_inputs'
13552 ac_out='"$tmp/out1"'
13553 ac_nxt='"$tmp/out2"'
13554
13555 while :
13556 do
13557   # Write a here document:
13558     cat >>$CONFIG_STATUS <<_ACEOF
13559     # First, check the format of the line:
13560     cat >"\$tmp/defines.sed" <<\\CEOF
13561 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13562 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
13563 b
13564 :def
13565 _ACEOF
13566   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13567   echo 'CEOF
13568     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13569   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13570   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13571   grep . conftest.tail >/dev/null || break
13572   rm -f conftest.defines
13573   mv conftest.tail conftest.defines
13574 done
13575 rm -f conftest.defines conftest.tail
13576
13577 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13578 cat >>$CONFIG_STATUS <<\_ACEOF
13579   if test x"$ac_file" != x-; then
13580     echo "/* $configure_input  */" >"$tmp/config.h"
13581     cat "$ac_result" >>"$tmp/config.h"
13582     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13583       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13584 echo "$as_me: $ac_file is unchanged" >&6;}
13585     else
13586       rm -f $ac_file
13587       mv "$tmp/config.h" $ac_file
13588     fi
13589   else
13590     echo "/* $configure_input  */"
13591     cat "$ac_result"
13592   fi
13593   rm -f "$tmp/out12"
13594 # Compute $ac_file's index in $config_headers.
13595 _am_arg=$ac_file
13596 _am_stamp_count=1
13597 for _am_header in $config_headers :; do
13598   case $_am_header in
13599     $_am_arg | $_am_arg:* )
13600       break ;;
13601     * )
13602       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13603   esac
13604 done
13605 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13606 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13607          X"$_am_arg" : 'X\(//\)[^/]' \| \
13608          X"$_am_arg" : 'X\(//\)$' \| \
13609          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13610 echo X"$_am_arg" |
13611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13612             s//\1/
13613             q
13614           }
13615           /^X\(\/\/\)[^/].*/{
13616             s//\1/
13617             q
13618           }
13619           /^X\(\/\/\)$/{
13620             s//\1/
13621             q
13622           }
13623           /^X\(\/\).*/{
13624             s//\1/
13625             q
13626           }
13627           s/.*/./; q'`/stamp-h$_am_stamp_count
13628  ;;
13629
13630   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13631 echo "$as_me: executing $ac_file commands" >&6;}
13632  ;;
13633   esac
13634
13635
13636   case $ac_file$ac_mode in
13637     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
13638 # are listed without --file.  Let's play safe and only enable the eval
13639 # if we detect the quoting.
13640 case $CONFIG_FILES in
13641 *\'*) eval set x "$CONFIG_FILES" ;;
13642 *)   set x $CONFIG_FILES ;;
13643 esac
13644 shift
13645 for mf
13646 do
13647   # Strip MF so we end up with the name of the file.
13648   mf=`echo "$mf" | sed -e 's/:.*$//'`
13649   # Check whether this is an Automake generated Makefile or not.
13650   # We used to match only the files named `Makefile.in', but
13651   # some people rename them; so instead we look at the file content.
13652   # Grep'ing the first line is not enough: some people post-process
13653   # each Makefile.in and add a new line on top of each file to say so.
13654   # Grep'ing the whole file is not good either: AIX grep has a line
13655   # limit of 2048, but all sed's we know have understand at least 4000.
13656   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13657     dirpart=`$as_dirname -- "$mf" ||
13658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13659          X"$mf" : 'X\(//\)[^/]' \| \
13660          X"$mf" : 'X\(//\)$' \| \
13661          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13662 echo X"$mf" |
13663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13664             s//\1/
13665             q
13666           }
13667           /^X\(\/\/\)[^/].*/{
13668             s//\1/
13669             q
13670           }
13671           /^X\(\/\/\)$/{
13672             s//\1/
13673             q
13674           }
13675           /^X\(\/\).*/{
13676             s//\1/
13677             q
13678           }
13679           s/.*/./; q'`
13680   else
13681     continue
13682   fi
13683   # Extract the definition of DEPDIR, am__include, and am__quote
13684   # from the Makefile without running `make'.
13685   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13686   test -z "$DEPDIR" && continue
13687   am__include=`sed -n 's/^am__include = //p' < "$mf"`
13688   test -z "am__include" && continue
13689   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13690   # When using ansi2knr, U may be empty or an underscore; expand it
13691   U=`sed -n 's/^U = //p' < "$mf"`
13692   # Find all dependency output files, they are included files with
13693   # $(DEPDIR) in their names.  We invoke sed twice because it is the
13694   # simplest approach to changing $(DEPDIR) to its actual value in the
13695   # expansion.
13696   for file in `sed -n "
13697     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13698        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13699     # Make sure the directory exists.
13700     test -f "$dirpart/$file" && continue
13701     fdir=`$as_dirname -- "$file" ||
13702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13703          X"$file" : 'X\(//\)[^/]' \| \
13704          X"$file" : 'X\(//\)$' \| \
13705          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13706 echo X"$file" |
13707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13708             s//\1/
13709             q
13710           }
13711           /^X\(\/\/\)[^/].*/{
13712             s//\1/
13713             q
13714           }
13715           /^X\(\/\/\)$/{
13716             s//\1/
13717             q
13718           }
13719           /^X\(\/\).*/{
13720             s//\1/
13721             q
13722           }
13723           s/.*/./; q'`
13724     { as_dir=$dirpart/$fdir
13725   case $as_dir in #(
13726   -*) as_dir=./$as_dir;;
13727   esac
13728   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13729     as_dirs=
13730     while :; do
13731       case $as_dir in #(
13732       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13733       *) as_qdir=$as_dir;;
13734       esac
13735       as_dirs="'$as_qdir' $as_dirs"
13736       as_dir=`$as_dirname -- "$as_dir" ||
13737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13738          X"$as_dir" : 'X\(//\)[^/]' \| \
13739          X"$as_dir" : 'X\(//\)$' \| \
13740          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13741 echo X"$as_dir" |
13742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13743             s//\1/
13744             q
13745           }
13746           /^X\(\/\/\)[^/].*/{
13747             s//\1/
13748             q
13749           }
13750           /^X\(\/\/\)$/{
13751             s//\1/
13752             q
13753           }
13754           /^X\(\/\).*/{
13755             s//\1/
13756             q
13757           }
13758           s/.*/./; q'`
13759       test -d "$as_dir" && break
13760     done
13761     test -z "$as_dirs" || eval "mkdir $as_dirs"
13762   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13763 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13764    { (exit 1); exit 1; }; }; }
13765     # echo "creating $dirpart/$file"
13766     echo '# dummy' > "$dirpart/$file"
13767   done
13768 done
13769  ;;
13770     "libtool":C)
13771
13772     # See if we are running on zsh, and set the options which allow our
13773     # commands through without removal of \ escapes.
13774     if test -n "${ZSH_VERSION+set}" ; then
13775       setopt NO_GLOB_SUBST
13776     fi
13777
13778     cfgfile="${ofile}T"
13779     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13780     $RM "$cfgfile"
13781
13782     cat <<_LT_EOF >> "$cfgfile"
13783 #! $SHELL
13784
13785 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13786 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13788 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13789 #
13790 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13791 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13792 #   Written by Gordon Matzigkeit, 1996
13793 #
13794 #   This file is part of GNU Libtool.
13795 #
13796 # GNU Libtool is free software; you can redistribute it and/or
13797 # modify it under the terms of the GNU General Public License as
13798 # published by the Free Software Foundation; either version 2 of
13799 # the License, or (at your option) any later version.
13800 #
13801 # As a special exception to the GNU General Public License,
13802 # if you distribute this file as part of a program or library that
13803 # is built using GNU Libtool, you may include this file under the
13804 # same distribution terms that you use for the rest of that program.
13805 #
13806 # GNU Libtool is distributed in the hope that it will be useful,
13807 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13809 # GNU General Public License for more details.
13810 #
13811 # You should have received a copy of the GNU General Public License
13812 # along with GNU Libtool; see the file COPYING.  If not, a copy
13813 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13814 # obtained by writing to the Free Software Foundation, Inc.,
13815 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13816
13817
13818 # The names of the tagged configurations supported by this script.
13819 available_tags=""
13820
13821 # ### BEGIN LIBTOOL CONFIG
13822
13823 # Which release of libtool.m4 was used?
13824 macro_version=$macro_version
13825 macro_revision=$macro_revision
13826
13827 # Whether or not to build shared libraries.
13828 build_libtool_libs=$enable_shared
13829
13830 # Whether or not to build static libraries.
13831 build_old_libs=$enable_static
13832
13833 # What type of objects to build.
13834 pic_mode=$pic_mode
13835
13836 # Whether or not to optimize for fast installation.
13837 fast_install=$enable_fast_install
13838
13839 # The host system.
13840 host_alias=$host_alias
13841 host=$host
13842 host_os=$host_os
13843
13844 # The build system.
13845 build_alias=$build_alias
13846 build=$build
13847 build_os=$build_os
13848
13849 # A sed program that does not truncate output.
13850 SED=$lt_SED
13851
13852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13853 Xsed="\$SED -e 1s/^X//"
13854
13855 # A grep program that handles long lines.
13856 GREP=$lt_GREP
13857
13858 # An ERE matcher.
13859 EGREP=$lt_EGREP
13860
13861 # A literal string matcher.
13862 FGREP=$lt_FGREP
13863
13864 # A BSD- or MS-compatible name lister.
13865 NM=$lt_NM
13866
13867 # Whether we need soft or hard links.
13868 LN_S=$lt_LN_S
13869
13870 # What is the maximum length of a command?
13871 max_cmd_len=$max_cmd_len
13872
13873 # Object file suffix (normally "o").
13874 objext=$ac_objext
13875
13876 # Executable file suffix (normally "").
13877 exeext=$exeext
13878
13879 # whether the shell understands "unset".
13880 lt_unset=$lt_unset
13881
13882 # turn spaces into newlines.
13883 SP2NL=$lt_lt_SP2NL
13884
13885 # turn newlines into spaces.
13886 NL2SP=$lt_lt_NL2SP
13887
13888 # How to create reloadable object files.
13889 reload_flag=$lt_reload_flag
13890 reload_cmds=$lt_reload_cmds
13891
13892 # Method to check whether dependent libraries are shared objects.
13893 deplibs_check_method=$lt_deplibs_check_method
13894
13895 # Command to use when deplibs_check_method == "file_magic".
13896 file_magic_cmd=$lt_file_magic_cmd
13897
13898 # The archiver.
13899 AR=$lt_AR
13900 AR_FLAGS=$lt_AR_FLAGS
13901
13902 # A symbol stripping program.
13903 STRIP=$lt_STRIP
13904
13905 # Commands used to install an old-style archive.
13906 RANLIB=$lt_RANLIB
13907 old_postinstall_cmds=$lt_old_postinstall_cmds
13908 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13909
13910 # A C compiler.
13911 LTCC=$lt_CC
13912
13913 # LTCC compiler flags.
13914 LTCFLAGS=$lt_CFLAGS
13915
13916 # Take the output of nm and produce a listing of raw symbols and C names.
13917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13918
13919 # Transform the output of nm in a proper C declaration.
13920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13921
13922 # Transform the output of nm in a C name address pair.
13923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13924
13925 # Transform the output of nm in a C name address pair when lib prefix is needed.
13926 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13927
13928 # The name of the directory that contains temporary libtool files.
13929 objdir=$objdir
13930
13931 # Shell to use when invoking shell scripts.
13932 SHELL=$lt_SHELL
13933
13934 # An echo program that does not interpret backslashes.
13935 ECHO=$lt_ECHO
13936
13937 # Used to examine libraries when file_magic_cmd begins with "file".
13938 MAGIC_CMD=$MAGIC_CMD
13939
13940 # Must we lock files when doing compilation?
13941 need_locks=$lt_need_locks
13942
13943 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13944 DSYMUTIL=$lt_DSYMUTIL
13945
13946 # Tool to change global to local symbols on Mac OS X.
13947 NMEDIT=$lt_NMEDIT
13948
13949 # Tool to manipulate fat objects and archives on Mac OS X.
13950 LIPO=$lt_LIPO
13951
13952 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13953 OTOOL=$lt_OTOOL
13954
13955 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13956 OTOOL64=$lt_OTOOL64
13957
13958 # Old archive suffix (normally "a").
13959 libext=$libext
13960
13961 # Shared library suffix (normally ".so").
13962 shrext_cmds=$lt_shrext_cmds
13963
13964 # The commands to extract the exported symbol list from a shared archive.
13965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13966
13967 # Variables whose values should be saved in libtool wrapper scripts and
13968 # restored at link time.
13969 variables_saved_for_relink=$lt_variables_saved_for_relink
13970
13971 # Do we need the "lib" prefix for modules?
13972 need_lib_prefix=$need_lib_prefix
13973
13974 # Do we need a version for libraries?
13975 need_version=$need_version
13976
13977 # Library versioning type.
13978 version_type=$version_type
13979
13980 # Shared library runtime path variable.
13981 runpath_var=$runpath_var
13982
13983 # Shared library path variable.
13984 shlibpath_var=$shlibpath_var
13985
13986 # Is shlibpath searched before the hard-coded library search path?
13987 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13988
13989 # Format of library name prefix.
13990 libname_spec=$lt_libname_spec
13991
13992 # List of archive names.  First name is the real one, the rest are links.
13993 # The last name is the one that the linker finds with -lNAME
13994 library_names_spec=$lt_library_names_spec
13995
13996 # The coded name of the library, if different from the real name.
13997 soname_spec=$lt_soname_spec
13998
13999 # Command to use after installation of a shared archive.
14000 postinstall_cmds=$lt_postinstall_cmds
14001
14002 # Command to use after uninstallation of a shared archive.
14003 postuninstall_cmds=$lt_postuninstall_cmds
14004
14005 # Commands used to finish a libtool library installation in a directory.
14006 finish_cmds=$lt_finish_cmds
14007
14008 # As "finish_cmds", except a single script fragment to be evaled but
14009 # not shown.
14010 finish_eval=$lt_finish_eval
14011
14012 # Whether we should hardcode library paths into libraries.
14013 hardcode_into_libs=$hardcode_into_libs
14014
14015 # Compile-time system search path for libraries.
14016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14017
14018 # Run-time system search path for libraries.
14019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14020
14021 # Whether dlopen is supported.
14022 dlopen_support=$enable_dlopen
14023
14024 # Whether dlopen of programs is supported.
14025 dlopen_self=$enable_dlopen_self
14026
14027 # Whether dlopen of statically linked programs is supported.
14028 dlopen_self_static=$enable_dlopen_self_static
14029
14030 # Commands to strip libraries.
14031 old_striplib=$lt_old_striplib
14032 striplib=$lt_striplib
14033
14034
14035 # The linker used to build libraries.
14036 LD=$lt_LD
14037
14038 # Commands used to build an old-style archive.
14039 old_archive_cmds=$lt_old_archive_cmds
14040
14041 # A language specific compiler.
14042 CC=$lt_compiler
14043
14044 # Is the compiler the GNU compiler?
14045 with_gcc=$GCC
14046
14047 # Compiler flag to turn off builtin functions.
14048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14049
14050 # How to pass a linker flag through the compiler.
14051 wl=$lt_lt_prog_compiler_wl
14052
14053 # Additional compiler flags for building library objects.
14054 pic_flag=$lt_lt_prog_compiler_pic
14055
14056 # Compiler flag to prevent dynamic linking.
14057 link_static_flag=$lt_lt_prog_compiler_static
14058
14059 # Does compiler simultaneously support -c and -o options?
14060 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14061
14062 # Whether or not to add -lc for building shared libraries.
14063 build_libtool_need_lc=$archive_cmds_need_lc
14064
14065 # Whether or not to disallow shared libs when runtime libs are static.
14066 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14067
14068 # Compiler flag to allow reflexive dlopens.
14069 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14070
14071 # Compiler flag to generate shared objects directly from archives.
14072 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14073
14074 # Whether the compiler copes with passing no objects directly.
14075 compiler_needs_object=$lt_compiler_needs_object
14076
14077 # Create an old-style archive from a shared archive.
14078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14079
14080 # Create a temporary old-style archive to link instead of a shared archive.
14081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14082
14083 # Commands used to build a shared archive.
14084 archive_cmds=$lt_archive_cmds
14085 archive_expsym_cmds=$lt_archive_expsym_cmds
14086
14087 # Commands used to build a loadable module if different from building
14088 # a shared archive.
14089 module_cmds=$lt_module_cmds
14090 module_expsym_cmds=$lt_module_expsym_cmds
14091
14092 # Whether we are building with GNU ld or not.
14093 with_gnu_ld=$lt_with_gnu_ld
14094
14095 # Flag that allows shared libraries with undefined symbols to be built.
14096 allow_undefined_flag=$lt_allow_undefined_flag
14097
14098 # Flag that enforces no undefined symbols.
14099 no_undefined_flag=$lt_no_undefined_flag
14100
14101 # Flag to hardcode \$libdir into a binary during linking.
14102 # This must work even if \$libdir does not exist
14103 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14104
14105 # If ld is used when linking, flag to hardcode \$libdir into a binary
14106 # during linking.  This must work even if \$libdir does not exist.
14107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14108
14109 # Whether we need a single "-rpath" flag with a separated argument.
14110 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14111
14112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14113 # DIR into the resulting binary.
14114 hardcode_direct=$hardcode_direct
14115
14116 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14117 # DIR into the resulting binary and the resulting library dependency is
14118 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14119 # library is relocated.
14120 hardcode_direct_absolute=$hardcode_direct_absolute
14121
14122 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14123 # into the resulting binary.
14124 hardcode_minus_L=$hardcode_minus_L
14125
14126 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14127 # into the resulting binary.
14128 hardcode_shlibpath_var=$hardcode_shlibpath_var
14129
14130 # Set to "yes" if building a shared library automatically hardcodes DIR
14131 # into the library and all subsequent libraries and executables linked
14132 # against it.
14133 hardcode_automatic=$hardcode_automatic
14134
14135 # Set to yes if linker adds runtime paths of dependent libraries
14136 # to runtime path list.
14137 inherit_rpath=$inherit_rpath
14138
14139 # Whether libtool must link a program against all its dependency libraries.
14140 link_all_deplibs=$link_all_deplibs
14141
14142 # Fix the shell variable \$srcfile for the compiler.
14143 fix_srcfile_path=$lt_fix_srcfile_path
14144
14145 # Set to "yes" if exported symbols are required.
14146 always_export_symbols=$always_export_symbols
14147
14148 # The commands to list exported symbols.
14149 export_symbols_cmds=$lt_export_symbols_cmds
14150
14151 # Symbols that should not be listed in the preloaded symbols.
14152 exclude_expsyms=$lt_exclude_expsyms
14153
14154 # Symbols that must always be exported.
14155 include_expsyms=$lt_include_expsyms
14156
14157 # Commands necessary for linking programs (against libraries) with templates.
14158 prelink_cmds=$lt_prelink_cmds
14159
14160 # Specify filename containing input files.
14161 file_list_spec=$lt_file_list_spec
14162
14163 # How to hardcode a shared library path into an executable.
14164 hardcode_action=$hardcode_action
14165
14166 # ### END LIBTOOL CONFIG
14167
14168 _LT_EOF
14169
14170   case $host_os in
14171   aix3*)
14172     cat <<\_LT_EOF >> "$cfgfile"
14173 # AIX sometimes has problems with the GCC collect2 program.  For some
14174 # reason, if we set the COLLECT_NAMES environment variable, the problems
14175 # vanish in a puff of smoke.
14176 if test "X${COLLECT_NAMES+set}" != Xset; then
14177   COLLECT_NAMES=
14178   export COLLECT_NAMES
14179 fi
14180 _LT_EOF
14181     ;;
14182   esac
14183
14184
14185 ltmain="$ac_aux_dir/ltmain.sh"
14186
14187
14188   # We use sed instead of cat because bash on DJGPP gets confused if
14189   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14190   # text mode, it properly converts lines to CR/LF.  This bash problem
14191   # is reportedly fixed, but why not run on old versions too?
14192   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14193     || (rm -f "$cfgfile"; exit 1)
14194
14195   case $xsi_shell in
14196   yes)
14197     cat << \_LT_EOF >> "$cfgfile"
14198
14199 # func_dirname file append nondir_replacement
14200 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14201 # otherwise set result to NONDIR_REPLACEMENT.
14202 func_dirname ()
14203 {
14204   case ${1} in
14205     */*) func_dirname_result="${1%/*}${2}" ;;
14206     *  ) func_dirname_result="${3}" ;;
14207   esac
14208 }
14209
14210 # func_basename file
14211 func_basename ()
14212 {
14213   func_basename_result="${1##*/}"
14214 }
14215
14216 # func_dirname_and_basename file append nondir_replacement
14217 # perform func_basename and func_dirname in a single function
14218 # call:
14219 #   dirname:  Compute the dirname of FILE.  If nonempty,
14220 #             add APPEND to the result, otherwise set result
14221 #             to NONDIR_REPLACEMENT.
14222 #             value returned in "$func_dirname_result"
14223 #   basename: Compute filename of FILE.
14224 #             value retuned in "$func_basename_result"
14225 # Implementation must be kept synchronized with func_dirname
14226 # and func_basename. For efficiency, we do not delegate to
14227 # those functions but instead duplicate the functionality here.
14228 func_dirname_and_basename ()
14229 {
14230   case ${1} in
14231     */*) func_dirname_result="${1%/*}${2}" ;;
14232     *  ) func_dirname_result="${3}" ;;
14233   esac
14234   func_basename_result="${1##*/}"
14235 }
14236
14237 # func_stripname prefix suffix name
14238 # strip PREFIX and SUFFIX off of NAME.
14239 # PREFIX and SUFFIX must not contain globbing or regex special
14240 # characters, hashes, percent signs, but SUFFIX may contain a leading
14241 # dot (in which case that matches only a dot).
14242 func_stripname ()
14243 {
14244   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14245   # positional parameters, so assign one to ordinary parameter first.
14246   func_stripname_result=${3}
14247   func_stripname_result=${func_stripname_result#"${1}"}
14248   func_stripname_result=${func_stripname_result%"${2}"}
14249 }
14250
14251 # func_opt_split
14252 func_opt_split ()
14253 {
14254   func_opt_split_opt=${1%%=*}
14255   func_opt_split_arg=${1#*=}
14256 }
14257
14258 # func_lo2o object
14259 func_lo2o ()
14260 {
14261   case ${1} in
14262     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14263     *)    func_lo2o_result=${1} ;;
14264   esac
14265 }
14266
14267 # func_xform libobj-or-source
14268 func_xform ()
14269 {
14270   func_xform_result=${1%.*}.lo
14271 }
14272
14273 # func_arith arithmetic-term...
14274 func_arith ()
14275 {
14276   func_arith_result=$(( $* ))
14277 }
14278
14279 # func_len string
14280 # STRING may not start with a hyphen.
14281 func_len ()
14282 {
14283   func_len_result=${#1}
14284 }
14285
14286 _LT_EOF
14287     ;;
14288   *) # Bourne compatible functions.
14289     cat << \_LT_EOF >> "$cfgfile"
14290
14291 # func_dirname file append nondir_replacement
14292 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14293 # otherwise set result to NONDIR_REPLACEMENT.
14294 func_dirname ()
14295 {
14296   # Extract subdirectory from the argument.
14297   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14298   if test "X$func_dirname_result" = "X${1}"; then
14299     func_dirname_result="${3}"
14300   else
14301     func_dirname_result="$func_dirname_result${2}"
14302   fi
14303 }
14304
14305 # func_basename file
14306 func_basename ()
14307 {
14308   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14309 }
14310
14311
14312 # func_stripname prefix suffix name
14313 # strip PREFIX and SUFFIX off of NAME.
14314 # PREFIX and SUFFIX must not contain globbing or regex special
14315 # characters, hashes, percent signs, but SUFFIX may contain a leading
14316 # dot (in which case that matches only a dot).
14317 # func_strip_suffix prefix name
14318 func_stripname ()
14319 {
14320   case ${2} in
14321     .*) func_stripname_result=`$ECHO "X${3}" \
14322            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14323     *)  func_stripname_result=`$ECHO "X${3}" \
14324            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14325   esac
14326 }
14327
14328 # sed scripts:
14329 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14330 my_sed_long_arg='1s/^-[^=]*=//'
14331
14332 # func_opt_split
14333 func_opt_split ()
14334 {
14335   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14336   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14337 }
14338
14339 # func_lo2o object
14340 func_lo2o ()
14341 {
14342   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14343 }
14344
14345 # func_xform libobj-or-source
14346 func_xform ()
14347 {
14348   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14349 }
14350
14351 # func_arith arithmetic-term...
14352 func_arith ()
14353 {
14354   func_arith_result=`expr "$@"`
14355 }
14356
14357 # func_len string
14358 # STRING may not start with a hyphen.
14359 func_len ()
14360 {
14361   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14362 }
14363
14364 _LT_EOF
14365 esac
14366
14367 case $lt_shell_append in
14368   yes)
14369     cat << \_LT_EOF >> "$cfgfile"
14370
14371 # func_append var value
14372 # Append VALUE to the end of shell variable VAR.
14373 func_append ()
14374 {
14375   eval "$1+=\$2"
14376 }
14377 _LT_EOF
14378     ;;
14379   *)
14380     cat << \_LT_EOF >> "$cfgfile"
14381
14382 # func_append var value
14383 # Append VALUE to the end of shell variable VAR.
14384 func_append ()
14385 {
14386   eval "$1=\$$1\$2"
14387 }
14388
14389 _LT_EOF
14390     ;;
14391   esac
14392
14393
14394   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14395     || (rm -f "$cfgfile"; exit 1)
14396
14397   mv -f "$cfgfile" "$ofile" ||
14398     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14399   chmod +x "$ofile"
14400
14401  ;;
14402
14403   esac
14404 done # for ac_tag
14405
14406
14407 { (exit 0); exit 0; }
14408 _ACEOF
14409 chmod +x $CONFIG_STATUS
14410 ac_clean_files=$ac_clean_files_save
14411
14412
14413 # configure is writing to config.log, and then calls config.status.
14414 # config.status does its own redirection, appending to config.log.
14415 # Unfortunately, on DOS this fails, as config.log is still kept open
14416 # by configure, so config.status won't be able to write to it; its
14417 # output is simply discarded.  So we exec the FD to /dev/null,
14418 # effectively closing config.log, so it can be properly (re)opened and
14419 # appended to by config.status.  When coming back to configure, we
14420 # need to make the FD available again.
14421 if test "$no_create" != yes; then
14422   ac_cs_success=:
14423   ac_config_status_args=
14424   test "$silent" = yes &&
14425     ac_config_status_args="$ac_config_status_args --quiet"
14426   exec 5>/dev/null
14427   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14428   exec 5>>config.log
14429   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14430   # would make configure fail if this is the last instruction.
14431   $ac_cs_success || { (exit 1); exit 1; }
14432 fi