update prevent issue issue
[platform/core/multimedia/libmm-imgp-gstcs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for libmm-imgp-gstcs 0.1.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='libmm-imgp-gstcs'
700 PACKAGE_TARNAME='libmm-imgp-gstcs'
701 PACKAGE_VERSION='0.1'
702 PACKAGE_STRING='libmm-imgp-gstcs 0.1'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 GMODULE_LIBS
746 GMODULE_CFLAGS
747 GSTAPP_LIBS
748 GSTAPP_CFLAGS
749 GST_LIBS
750 GST_CFLAGS
751 GLIB_LIBS
752 GLIB_CFLAGS
753 MMLOG_LIBS
754 MMLOG_CFLAGS
755 MMCOMMON_LIBS
756 MMCOMMON_CFLAGS
757 PKG_CONFIG_LIBDIR
758 PKG_CONFIG_PATH
759 PKG_CONFIG
760 LIBOBJS
761 CPP
762 OTOOL64
763 OTOOL
764 LIPO
765 NMEDIT
766 DSYMUTIL
767 lt_ECHO
768 RANLIB
769 AR
770 OBJDUMP
771 LN_S
772 NM
773 ac_ct_DUMPBIN
774 DUMPBIN
775 LD
776 FGREP
777 EGREP
778 GREP
779 SED
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 LIBTOOL
789 am__fastdepCC_FALSE
790 am__fastdepCC_TRUE
791 CCDEPMODE
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__quote
796 am__include
797 DEPDIR
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 am__untar
806 am__tar
807 AMTAR
808 am__leading_dot
809 SET_MAKE
810 AWK
811 mkdir_p
812 MKDIR_P
813 INSTALL_STRIP_PROGRAM
814 STRIP
815 install_sh
816 MAKEINFO
817 AUTOHEADER
818 AUTOMAKE
819 AUTOCONF
820 ACLOCAL
821 VERSION
822 PACKAGE
823 CYGPATH_W
824 am__isrc
825 INSTALL_DATA
826 INSTALL_SCRIPT
827 INSTALL_PROGRAM
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files=''
867 ac_user_opts='
868 enable_option_checking
869 enable_dependency_tracking
870 enable_shared
871 enable_static
872 with_pic
873 enable_fast_install
874 with_gnu_ld
875 enable_libtool_lock
876 '
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 PKG_CONFIG
887 PKG_CONFIG_PATH
888 PKG_CONFIG_LIBDIR
889 MMCOMMON_CFLAGS
890 MMCOMMON_LIBS
891 MMLOG_CFLAGS
892 MMLOG_LIBS
893 GLIB_CFLAGS
894 GLIB_LIBS
895 GST_CFLAGS
896 GST_LIBS
897 GSTAPP_CFLAGS
898 GSTAPP_LIBS
899 GMODULE_CFLAGS
900 GMODULE_LIBS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
924
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
950
951 ac_prev=
952 ac_dashdash=
953 for ac_option
954 do
955   # If the previous option needs an argument, assign it.
956   if test -n "$ac_prev"; then
957     eval $ac_prev=\$ac_option
958     ac_prev=
959     continue
960   fi
961
962   case $ac_option in
963   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964   *=)   ac_optarg= ;;
965   *)    ac_optarg=yes ;;
966   esac
967
968   # Accept the important Cygnus configure options, so we can diagnose typos.
969
970   case $ac_dashdash$ac_option in
971   --)
972     ac_dashdash=yes ;;
973
974   -bindir | --bindir | --bindi | --bind | --bin | --bi)
975     ac_prev=bindir ;;
976   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977     bindir=$ac_optarg ;;
978
979   -build | --build | --buil | --bui | --bu)
980     ac_prev=build_alias ;;
981   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982     build_alias=$ac_optarg ;;
983
984   -cache-file | --cache-file | --cache-fil | --cache-fi \
985   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986     ac_prev=cache_file ;;
987   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989     cache_file=$ac_optarg ;;
990
991   --config-cache | -C)
992     cache_file=config.cache ;;
993
994   -datadir | --datadir | --datadi | --datad)
995     ac_prev=datadir ;;
996   -datadir=* | --datadir=* | --datadi=* | --datad=*)
997     datadir=$ac_optarg ;;
998
999   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000   | --dataroo | --dataro | --datar)
1001     ac_prev=datarootdir ;;
1002   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004     datarootdir=$ac_optarg ;;
1005
1006   -disable-* | --disable-*)
1007     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010       as_fn_error $? "invalid feature name: $ac_useropt"
1011     ac_useropt_orig=$ac_useropt
1012     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013     case $ac_user_opts in
1014       *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018          ac_unrecognized_sep=', ';;
1019     esac
1020     eval enable_$ac_useropt=no ;;
1021
1022   -docdir | --docdir | --docdi | --doc | --do)
1023     ac_prev=docdir ;;
1024   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025     docdir=$ac_optarg ;;
1026
1027   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028     ac_prev=dvidir ;;
1029   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030     dvidir=$ac_optarg ;;
1031
1032   -enable-* | --enable-*)
1033     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036       as_fn_error $? "invalid feature name: $ac_useropt"
1037     ac_useropt_orig=$ac_useropt
1038     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039     case $ac_user_opts in
1040       *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044          ac_unrecognized_sep=', ';;
1045     esac
1046     eval enable_$ac_useropt=\$ac_optarg ;;
1047
1048   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050   | --exec | --exe | --ex)
1051     ac_prev=exec_prefix ;;
1052   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054   | --exec=* | --exe=* | --ex=*)
1055     exec_prefix=$ac_optarg ;;
1056
1057   -gas | --gas | --ga | --g)
1058     # Obsolete; use --with-gas.
1059     with_gas=yes ;;
1060
1061   -help | --help | --hel | --he | -h)
1062     ac_init_help=long ;;
1063   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064     ac_init_help=recursive ;;
1065   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066     ac_init_help=short ;;
1067
1068   -host | --host | --hos | --ho)
1069     ac_prev=host_alias ;;
1070   -host=* | --host=* | --hos=* | --ho=*)
1071     host_alias=$ac_optarg ;;
1072
1073   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074     ac_prev=htmldir ;;
1075   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076   | --ht=*)
1077     htmldir=$ac_optarg ;;
1078
1079   -includedir | --includedir | --includedi | --included | --include \
1080   | --includ | --inclu | --incl | --inc)
1081     ac_prev=includedir ;;
1082   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083   | --includ=* | --inclu=* | --incl=* | --inc=*)
1084     includedir=$ac_optarg ;;
1085
1086   -infodir | --infodir | --infodi | --infod | --info | --inf)
1087     ac_prev=infodir ;;
1088   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089     infodir=$ac_optarg ;;
1090
1091   -libdir | --libdir | --libdi | --libd)
1092     ac_prev=libdir ;;
1093   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094     libdir=$ac_optarg ;;
1095
1096   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097   | --libexe | --libex | --libe)
1098     ac_prev=libexecdir ;;
1099   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100   | --libexe=* | --libex=* | --libe=*)
1101     libexecdir=$ac_optarg ;;
1102
1103   -localedir | --localedir | --localedi | --localed | --locale)
1104     ac_prev=localedir ;;
1105   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106     localedir=$ac_optarg ;;
1107
1108   -localstatedir | --localstatedir | --localstatedi | --localstated \
1109   | --localstate | --localstat | --localsta | --localst | --locals)
1110     ac_prev=localstatedir ;;
1111   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113     localstatedir=$ac_optarg ;;
1114
1115   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116     ac_prev=mandir ;;
1117   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118     mandir=$ac_optarg ;;
1119
1120   -nfp | --nfp | --nf)
1121     # Obsolete; use --without-fp.
1122     with_fp=no ;;
1123
1124   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125   | --no-cr | --no-c | -n)
1126     no_create=yes ;;
1127
1128   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130     no_recursion=yes ;;
1131
1132   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134   | --oldin | --oldi | --old | --ol | --o)
1135     ac_prev=oldincludedir ;;
1136   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139     oldincludedir=$ac_optarg ;;
1140
1141   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142     ac_prev=prefix ;;
1143   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144     prefix=$ac_optarg ;;
1145
1146   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147   | --program-pre | --program-pr | --program-p)
1148     ac_prev=program_prefix ;;
1149   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151     program_prefix=$ac_optarg ;;
1152
1153   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154   | --program-suf | --program-su | --program-s)
1155     ac_prev=program_suffix ;;
1156   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158     program_suffix=$ac_optarg ;;
1159
1160   -program-transform-name | --program-transform-name \
1161   | --program-transform-nam | --program-transform-na \
1162   | --program-transform-n | --program-transform- \
1163   | --program-transform | --program-transfor \
1164   | --program-transfo | --program-transf \
1165   | --program-trans | --program-tran \
1166   | --progr-tra | --program-tr | --program-t)
1167     ac_prev=program_transform_name ;;
1168   -program-transform-name=* | --program-transform-name=* \
1169   | --program-transform-nam=* | --program-transform-na=* \
1170   | --program-transform-n=* | --program-transform-=* \
1171   | --program-transform=* | --program-transfor=* \
1172   | --program-transfo=* | --program-transf=* \
1173   | --program-trans=* | --program-tran=* \
1174   | --progr-tra=* | --program-tr=* | --program-t=*)
1175     program_transform_name=$ac_optarg ;;
1176
1177   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178     ac_prev=pdfdir ;;
1179   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180     pdfdir=$ac_optarg ;;
1181
1182   -psdir | --psdir | --psdi | --psd | --ps)
1183     ac_prev=psdir ;;
1184   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185     psdir=$ac_optarg ;;
1186
1187   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188   | -silent | --silent | --silen | --sile | --sil)
1189     silent=yes ;;
1190
1191   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192     ac_prev=sbindir ;;
1193   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194   | --sbi=* | --sb=*)
1195     sbindir=$ac_optarg ;;
1196
1197   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199   | --sharedst | --shareds | --shared | --share | --shar \
1200   | --sha | --sh)
1201     ac_prev=sharedstatedir ;;
1202   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205   | --sha=* | --sh=*)
1206     sharedstatedir=$ac_optarg ;;
1207
1208   -site | --site | --sit)
1209     ac_prev=site ;;
1210   -site=* | --site=* | --sit=*)
1211     site=$ac_optarg ;;
1212
1213   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214     ac_prev=srcdir ;;
1215   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216     srcdir=$ac_optarg ;;
1217
1218   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219   | --syscon | --sysco | --sysc | --sys | --sy)
1220     ac_prev=sysconfdir ;;
1221   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223     sysconfdir=$ac_optarg ;;
1224
1225   -target | --target | --targe | --targ | --tar | --ta | --t)
1226     ac_prev=target_alias ;;
1227   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228     target_alias=$ac_optarg ;;
1229
1230   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231     verbose=yes ;;
1232
1233   -version | --version | --versio | --versi | --vers | -V)
1234     ac_init_version=: ;;
1235
1236   -with-* | --with-*)
1237     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240       as_fn_error $? "invalid package name: $ac_useropt"
1241     ac_useropt_orig=$ac_useropt
1242     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243     case $ac_user_opts in
1244       *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248          ac_unrecognized_sep=', ';;
1249     esac
1250     eval with_$ac_useropt=\$ac_optarg ;;
1251
1252   -without-* | --without-*)
1253     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256       as_fn_error $? "invalid package name: $ac_useropt"
1257     ac_useropt_orig=$ac_useropt
1258     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259     case $ac_user_opts in
1260       *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264          ac_unrecognized_sep=', ';;
1265     esac
1266     eval with_$ac_useropt=no ;;
1267
1268   --x)
1269     # Obsolete; use --with-x.
1270     with_x=yes ;;
1271
1272   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273   | --x-incl | --x-inc | --x-in | --x-i)
1274     ac_prev=x_includes ;;
1275   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277     x_includes=$ac_optarg ;;
1278
1279   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281     ac_prev=x_libraries ;;
1282   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284     x_libraries=$ac_optarg ;;
1285
1286   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1288     ;;
1289
1290   *=*)
1291     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292     # Reject names that are not valid shell variable names.
1293     case $ac_envvar in #(
1294       '' | [0-9]* | *[!_$as_cr_alnum]* )
1295       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296     esac
1297     eval $ac_envvar=\$ac_optarg
1298     export $ac_envvar ;;
1299
1300   *)
1301     # FIXME: should be removed in autoconf 3.0.
1302     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306     ;;
1307
1308   esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313   as_fn_error $? "missing argument to $ac_option"
1314 fi
1315
1316 if test -n "$ac_unrecognized_opts"; then
1317   case $enable_option_checking in
1318     no) ;;
1319     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321   esac
1322 fi
1323
1324 # Check all directory arguments for consistency.
1325 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326                 datadir sysconfdir sharedstatedir localstatedir includedir \
1327                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328                 libdir localedir mandir
1329 do
1330   eval ac_val=\$$ac_var
1331   # Remove trailing slashes.
1332   case $ac_val in
1333     */ )
1334       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335       eval $ac_var=\$ac_val;;
1336   esac
1337   # Be sure to have absolute directory names.
1338   case $ac_val in
1339     [\\/$]* | ?:[\\/]* )  continue;;
1340     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341   esac
1342   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1344
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1351
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354   if test "x$build_alias" = x; then
1355     cross_compiling=maybe
1356     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357     If a cross compiler is detected then cross compile mode will be used" >&2
1358   elif test "x$build_alias" != "x$host_alias"; then
1359     cross_compiling=yes
1360   fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372   as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374   as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379   ac_srcdir_defaulted=yes
1380   # Try the directory containing this script, then the parent directory.
1381   ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383          X"$as_myself" : 'X\(//\)[^/]' \| \
1384          X"$as_myself" : 'X\(//\)$' \| \
1385          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)[^/].*/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\).*/{
1400             s//\1/
1401             q
1402           }
1403           s/.*/./; q'`
1404   srcdir=$ac_confdir
1405   if test ! -r "$srcdir/$ac_unique_file"; then
1406     srcdir=..
1407   fi
1408 else
1409   ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418         pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421   srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431   eval ac_env_${ac_var}_value=\$${ac_var}
1432   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440   # Omit some internal or obsolete options to make the list less imposing.
1441   # This message is too long to be a string in the A/UX 3.1 sh.
1442   cat <<_ACEOF
1443 \`configure' configures libmm-imgp-gstcs 0.1 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453   -h, --help              display this help and exit
1454       --help=short        display options specific to this package
1455       --help=recursive    display the short help of all the included packages
1456   -V, --version           display version information and exit
1457   -q, --quiet, --silent   do not print \`checking ...' messages
1458       --cache-file=FILE   cache test results in FILE [disabled]
1459   -C, --config-cache      alias for \`--cache-file=config.cache'
1460   -n, --no-create         do not create output files
1461       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464   --prefix=PREFIX         install architecture-independent files in PREFIX
1465                           [$ac_default_prefix]
1466   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                           [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477   --bindir=DIR            user executables [EPREFIX/bin]
1478   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1479   --libexecdir=DIR        program executables [EPREFIX/libexec]
1480   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1481   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1482   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1483   --libdir=DIR            object code libraries [EPREFIX/lib]
1484   --includedir=DIR        C header files [PREFIX/include]
1485   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1486   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1487   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1488   --infodir=DIR           info documentation [DATAROOTDIR/info]
1489   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1490   --mandir=DIR            man documentation [DATAROOTDIR/man]
1491   --docdir=DIR            documentation root
1492                           [DATAROOTDIR/doc/libmm-imgp-gstcs]
1493   --htmldir=DIR           html documentation [DOCDIR]
1494   --dvidir=DIR            dvi documentation [DOCDIR]
1495   --pdfdir=DIR            pdf documentation [DOCDIR]
1496   --psdir=DIR             ps documentation [DOCDIR]
1497 _ACEOF
1498
1499   cat <<\_ACEOF
1500
1501 Program names:
1502   --program-prefix=PREFIX            prepend PREFIX to installed program names
1503   --program-suffix=SUFFIX            append SUFFIX to installed program names
1504   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1505
1506 System types:
1507   --build=BUILD     configure for building on BUILD [guessed]
1508   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513   case $ac_init_help in
1514      short | recursive ) echo "Configuration of libmm-imgp-gstcs 0.1:";;
1515    esac
1516   cat <<\_ACEOF
1517
1518 Optional Features:
1519   --disable-option-checking  ignore unrecognized --enable/--with options
1520   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522   --disable-dependency-tracking  speeds up one-time build
1523   --enable-dependency-tracking   do not reject slow dependency extractors
1524   --enable-shared[=PKGS]  build shared libraries [default=yes]
1525   --enable-static[=PKGS]  build static libraries [default=yes]
1526   --enable-fast-install[=PKGS]
1527                           optimize for fast installation [default=yes]
1528   --disable-libtool-lock  avoid locking (might break parallel builds)
1529
1530 Optional Packages:
1531   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1532   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1533   --with-pic              try to use only PIC/non-PIC objects [default=use
1534                           both]
1535   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CPP         C preprocessor
1546   PKG_CONFIG  path to pkg-config utility
1547   PKG_CONFIG_PATH
1548               directories to add to pkg-config's search path
1549   PKG_CONFIG_LIBDIR
1550               path overriding pkg-config's built-in search path
1551   MMCOMMON_CFLAGS
1552               C compiler flags for MMCOMMON, overriding pkg-config
1553   MMCOMMON_LIBS
1554               linker flags for MMCOMMON, overriding pkg-config
1555   MMLOG_CFLAGS
1556               C compiler flags for MMLOG, overriding pkg-config
1557   MMLOG_LIBS  linker flags for MMLOG, overriding pkg-config
1558   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1559   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1560   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1561   GST_LIBS    linker flags for GST, overriding pkg-config
1562   GSTAPP_CFLAGS
1563               C compiler flags for GSTAPP, overriding pkg-config
1564   GSTAPP_LIBS linker flags for GSTAPP, overriding pkg-config
1565   GMODULE_CFLAGS
1566               C compiler flags for GMODULE, overriding pkg-config
1567   GMODULE_LIBS
1568               linker flags for GMODULE, overriding pkg-config
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to the package provider.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" ||
1582       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583       continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 libmm-imgp-gstcs configure 0.1
1637 generated by GNU Autoconf 2.67
1638
1639 Copyright (C) 2010 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext conftest$ac_exeext
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest$ac_exeext && {
1714          test "$cross_compiling" = yes ||
1715          $as_test_x conftest$ac_exeext
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726   # interfere with the next link command; also delete a directory that is
1727   # left behind by Apple's compiler.  We do this before executing the actions.
1728   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730   as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists and can be compiled using the include files in
1737 # INCLUDES, setting the cache variable VAR accordingly.
1738 ac_fn_c_check_header_compile ()
1739 {
1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval "test \"\${$3+set}\"" = set; then :
1744   $as_echo_n "(cached) " >&6
1745 else
1746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h.  */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752   eval "$3=yes"
1753 else
1754   eval "$3=no"
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 fi
1758 eval ac_res=\$$3
1759                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762
1763 } # ac_fn_c_check_header_compile
1764
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_cpp ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } > conftest.i && {
1787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788          test ! -s conftest.err
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795     ac_retval=1
1796 fi
1797   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798   as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_cpp
1801
1802 # ac_fn_c_try_run LINENO
1803 # ----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805 # that executables *can* be run.
1806 ac_fn_c_try_run ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_link") 2>&5
1817   ac_status=$?
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820   { { case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_try") 2>&5
1827   ac_status=$?
1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829   test $ac_status = 0; }; }; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: program exited with status $ac_status" >&5
1833        $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836        ac_retval=$ac_status
1837 fi
1838   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_run
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval "test \"\${$3+set}\"" = set; then :
1853   $as_echo_n "(cached) " >&6
1854 else
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862     which can conflict with char $2 (); below.
1863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864     <limits.h> exists even on freestanding compilers.  */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875    Use char because int might match the return type of a GCC
1876    builtin and then its argument prototype would still apply.  */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882     to always fail with ENOSYS.  Some functions are actually named
1883     something starting with __ and the normal name is an alias.  */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897   eval "$3=yes"
1898 else
1899   eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902     conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908
1909 } # ac_fn_c_check_func
1910
1911 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1914 # the include files in INCLUDES and setting the cache variable VAR
1915 # accordingly.
1916 ac_fn_c_check_header_mongrel ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if eval "test \"\${$3+set}\"" = set; then :
1920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval "test \"\${$3+set}\"" = set; then :
1923   $as_echo_n "(cached) " >&6
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 else
1929   # Is the header compilable?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1931 $as_echo_n "checking $2 usability... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $4
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938   ac_header_compiler=yes
1939 else
1940   ac_header_compiler=no
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1944 $as_echo "$ac_header_compiler" >&6; }
1945
1946 # Is the header present?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1948 $as_echo_n "checking $2 presence... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_cpp "$LINENO"; then :
1954   ac_header_preproc=yes
1955 else
1956   ac_header_preproc=no
1957 fi
1958 rm -f conftest.err conftest.i conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1960 $as_echo "$ac_header_preproc" >&6; }
1961
1962 # So?  What about this header?
1963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1964   yes:no: )
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1966 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969     ;;
1970   no:yes:* )
1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1972 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1974 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1976 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1978 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981     ;;
1982 esac
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval "test \"\${$3+set}\"" = set; then :
1986   $as_echo_n "(cached) " >&6
1987 else
1988   eval "$3=\$ac_header_compiler"
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 fi
1994   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995
1996 } # ac_fn_c_check_header_mongrel
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2000
2001 It was created by libmm-imgp-gstcs $as_me 0.1, which was
2002 generated by GNU Autoconf 2.67.  Invocation command line was
2003
2004   $ $0 $@
2005
2006 _ACEOF
2007 exec 5>>config.log
2008 {
2009 cat <<_ASUNAME
2010 ## --------- ##
2011 ## Platform. ##
2012 ## --------- ##
2013
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2022
2023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2030
2031 _ASUNAME
2032
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038     $as_echo "PATH: $as_dir"
2039   done
2040 IFS=$as_save_IFS
2041
2042 } >&5
2043
2044 cat >&5 <<_ACEOF
2045
2046
2047 ## ----------- ##
2048 ## Core tests. ##
2049 ## ----------- ##
2050
2051 _ACEOF
2052
2053
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_configure_args=
2060 ac_configure_args0=
2061 ac_configure_args1=
2062 ac_must_keep_next=false
2063 for ac_pass in 1 2
2064 do
2065   for ac_arg
2066   do
2067     case $ac_arg in
2068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070     | -silent | --silent | --silen | --sile | --sil)
2071       continue ;;
2072     *\'*)
2073       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074     esac
2075     case $ac_pass in
2076     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077     2)
2078       as_fn_append ac_configure_args1 " '$ac_arg'"
2079       if test $ac_must_keep_next = true; then
2080         ac_must_keep_next=false # Got value, back to normal.
2081       else
2082         case $ac_arg in
2083           *=* | --config-cache | -C | -disable-* | --disable-* \
2084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086           | -with-* | --with-* | -without-* | --without-* | --x)
2087             case "$ac_configure_args0 " in
2088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089             esac
2090             ;;
2091           -* ) ac_must_keep_next=true ;;
2092         esac
2093       fi
2094       as_fn_append ac_configure_args " '$ac_arg'"
2095       ;;
2096     esac
2097   done
2098 done
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2101
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log.  We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108   # Save into config.log some information that might help in debugging.
2109   {
2110     echo
2111
2112     $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115     echo
2116     # The following way of writing the cache mishandles newlines in values,
2117 (
2118   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119     eval ac_val=\$$ac_var
2120     case $ac_val in #(
2121     *${as_nl}*)
2122       case $ac_var in #(
2123       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125       esac
2126       case $ac_var in #(
2127       _ | IFS | as_nl) ;; #(
2128       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129       *) { eval $ac_var=; unset $ac_var;} ;;
2130       esac ;;
2131     esac
2132   done
2133   (set) 2>&1 |
2134     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135     *${as_nl}ac_space=\ *)
2136       sed -n \
2137         "s/'\''/'\''\\\\'\'''\''/g;
2138           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139       ;; #(
2140     *)
2141       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142       ;;
2143     esac |
2144     sort
2145 )
2146     echo
2147
2148     $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151     echo
2152     for ac_var in $ac_subst_vars
2153     do
2154       eval ac_val=\$$ac_var
2155       case $ac_val in
2156       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157       esac
2158       $as_echo "$ac_var='\''$ac_val'\''"
2159     done | sort
2160     echo
2161
2162     if test -n "$ac_subst_files"; then
2163       $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166       echo
2167       for ac_var in $ac_subst_files
2168       do
2169         eval ac_val=\$$ac_var
2170         case $ac_val in
2171         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172         esac
2173         $as_echo "$ac_var='\''$ac_val'\''"
2174       done | sort
2175       echo
2176     fi
2177
2178     if test -s confdefs.h; then
2179       $as_echo "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182       echo
2183       cat confdefs.h
2184       echo
2185     fi
2186     test "$ac_signal" != 0 &&
2187       $as_echo "$as_me: caught signal $ac_signal"
2188     $as_echo "$as_me: exit $exit_status"
2189   } >&5
2190   rm -f core *.core core.conftest.* &&
2191     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192     exit $exit_status
2193 ' 0
2194 for ac_signal in 1 2 13 15; do
2195   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2198
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2201
2202 $as_echo "/* confdefs.h */" > confdefs.h
2203
2204 # Predefined preprocessor variables.
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2228 _ACEOF
2229
2230
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 ac_site_file1=NONE
2234 ac_site_file2=NONE
2235 if test -n "$CONFIG_SITE"; then
2236   # We do not want a PATH search for config.site.
2237   case $CONFIG_SITE in #((
2238     -*)  ac_site_file1=./$CONFIG_SITE;;
2239     */*) ac_site_file1=$CONFIG_SITE;;
2240     *)   ac_site_file1=./$CONFIG_SITE;;
2241   esac
2242 elif test "x$prefix" != xNONE; then
2243   ac_site_file1=$prefix/share/config.site
2244   ac_site_file2=$prefix/etc/config.site
2245 else
2246   ac_site_file1=$ac_default_prefix/share/config.site
2247   ac_site_file2=$ac_default_prefix/etc/config.site
2248 fi
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250 do
2251   test "x$ac_site_file" = xNONE && continue
2252   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255     sed 's/^/| /' "$ac_site_file" >&5
2256     . "$ac_site_file" \
2257       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5 ; }
2261   fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265   # Some versions of bash will fail to source /dev/null (special files
2266   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2267   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270     case $cache_file in
2271       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272       *)                      . "./$cache_file";;
2273     esac
2274   fi
2275 else
2276   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278   >$cache_file
2279 fi
2280
2281 # Check that the precious variables saved in the cache have kept the same
2282 # value.
2283 ac_cache_corrupted=false
2284 for ac_var in $ac_precious_vars; do
2285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286   eval ac_new_set=\$ac_env_${ac_var}_set
2287   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288   eval ac_new_val=\$ac_env_${ac_var}_value
2289   case $ac_old_set,$ac_new_set in
2290     set,)
2291       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293       ac_cache_corrupted=: ;;
2294     ,set)
2295       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297       ac_cache_corrupted=: ;;
2298     ,);;
2299     *)
2300       if test "x$ac_old_val" != "x$ac_new_val"; then
2301         # differences in whitespace do not lead to failure.
2302         ac_old_val_w=`echo x $ac_old_val`
2303         ac_new_val_w=`echo x $ac_new_val`
2304         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307           ac_cache_corrupted=:
2308         else
2309           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311           eval $ac_var=\$ac_old_val
2312         fi
2313         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2314 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2315         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2316 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2317       fi;;
2318   esac
2319   # Pass precious variables to config.status.
2320   if test "$ac_new_set" = set; then
2321     case $ac_new_val in
2322     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323     *) ac_arg=$ac_var=$ac_new_val ;;
2324     esac
2325     case " $ac_configure_args " in
2326       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2327       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328     esac
2329   fi
2330 done
2331 if $ac_cache_corrupted; then
2332   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 fi
2338 ## -------------------- ##
2339 ## Main body of script. ##
2340 ## -------------------- ##
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348
2349
2350 ac_config_headers="$ac_config_headers config.h"
2351
2352 am__api_version='1.11'
2353
2354 ac_aux_dir=
2355 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2356   if test -f "$ac_dir/install-sh"; then
2357     ac_aux_dir=$ac_dir
2358     ac_install_sh="$ac_aux_dir/install-sh -c"
2359     break
2360   elif test -f "$ac_dir/install.sh"; then
2361     ac_aux_dir=$ac_dir
2362     ac_install_sh="$ac_aux_dir/install.sh -c"
2363     break
2364   elif test -f "$ac_dir/shtool"; then
2365     ac_aux_dir=$ac_dir
2366     ac_install_sh="$ac_aux_dir/shtool install -c"
2367     break
2368   fi
2369 done
2370 if test -z "$ac_aux_dir"; then
2371   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2372 fi
2373
2374 # These three variables are undocumented and unsupported,
2375 # and are intended to be withdrawn in a future Autoconf release.
2376 # They can cause serious problems if a builder's source tree is in a directory
2377 # whose full name contains unusual characters.
2378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2380 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2381
2382
2383 # Find a good install program.  We prefer a C program (faster),
2384 # so one script is as good as another.  But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2389 # AIX /bin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if test "${ac_cv_path_install+set}" = set; then :
2401   $as_echo_n "(cached) " >&6
2402 else
2403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408     # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410   ./ | .// | /[cC]/* | \
2411   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413   /usr/ucb/* ) ;;
2414   *)
2415     # OSF1 and SCO ODT 3.0 have their own names for install.
2416     # Don't use installbsd from OSF since it installs stuff as root
2417     # by default.
2418     for ac_prog in ginstall scoinst install; do
2419       for ac_exec_ext in '' $ac_executable_extensions; do
2420         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2421           if test $ac_prog = install &&
2422             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423             # AIX install.  It has an incompatible calling convention.
2424             :
2425           elif test $ac_prog = install &&
2426             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427             # program-specific install script used by HP pwplus--don't use.
2428             :
2429           else
2430             rm -rf conftest.one conftest.two conftest.dir
2431             echo one > conftest.one
2432             echo two > conftest.two
2433             mkdir conftest.dir
2434             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435               test -s conftest.one && test -s conftest.two &&
2436               test -s conftest.dir/conftest.one &&
2437               test -s conftest.dir/conftest.two
2438             then
2439               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440               break 3
2441             fi
2442           fi
2443         fi
2444       done
2445     done
2446     ;;
2447 esac
2448
2449   done
2450 IFS=$as_save_IFS
2451
2452 rm -rf conftest.one conftest.two conftest.dir
2453
2454 fi
2455   if test "${ac_cv_path_install+set}" = set; then
2456     INSTALL=$ac_cv_path_install
2457   else
2458     # As a last resort, use the slow shell script.  Don't cache a
2459     # value for INSTALL within a source directory, because that will
2460     # break other packages using the cache if that directory is
2461     # removed, or if the value is a relative name.
2462     INSTALL=$ac_install_sh
2463   fi
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2467
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Just in case
2479 sleep 1
2480 echo timestamp > conftest.file
2481 # Reject unsafe characters in $srcdir or the absolute working directory
2482 # name.  Accept space and tab only in the latter.
2483 am_lf='
2484 '
2485 case `pwd` in
2486   *[\\\"\#\$\&\'\`$am_lf]*)
2487     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2488 esac
2489 case $srcdir in
2490   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2491     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2492 esac
2493
2494 # Do `set' in a subshell so we don't clobber the current shell's
2495 # arguments.  Must try -L first in case configure is actually a
2496 # symlink; some systems play weird games with the mod time of symlinks
2497 # (eg FreeBSD returns the mod time of the symlink's containing
2498 # directory).
2499 if (
2500    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501    if test "$*" = "X"; then
2502       # -L didn't work.
2503       set X `ls -t "$srcdir/configure" conftest.file`
2504    fi
2505    rm -f conftest.file
2506    if test "$*" != "X $srcdir/configure conftest.file" \
2507       && test "$*" != "X conftest.file $srcdir/configure"; then
2508
2509       # If neither matched, then we have a broken ls.  This can happen
2510       # if, for instance, CONFIG_SHELL is bash and it inherits a
2511       # broken ls alias from the environment.  This has actually
2512       # happened.  Such a system could not be considered "sane".
2513       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2515    fi
2516
2517    test "$2" = conftest.file
2518    )
2519 then
2520    # Ok.
2521    :
2522 else
2523    as_fn_error $? "newly created file is older than distributed files!
2524 Check your system clock" "$LINENO" 5
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528 test "$program_prefix" != NONE &&
2529   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE &&
2532   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537
2538 # expand $ac_aux_dir to an absolute path
2539 am_aux_dir=`cd $ac_aux_dir && pwd`
2540
2541 if test x"${MISSING+set}" != xset; then
2542   case $am_aux_dir in
2543   *\ * | *\     *)
2544     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545   *)
2546     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2547   esac
2548 fi
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --run true"; then
2551   am_missing_run="$MISSING --run "
2552 else
2553   am_missing_run=
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2555 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2556 fi
2557
2558 if test x"${install_sh}" != xset; then
2559   case $am_aux_dir in
2560   *\ * | *\     *)
2561     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562   *)
2563     install_sh="\${SHELL} $am_aux_dir/install-sh"
2564   esac
2565 fi
2566
2567 # Installed binaries are usually stripped using `strip' when the user
2568 # run `make install-strip'.  However `strip' might not be the right
2569 # tool to use in cross-compilation environments, therefore Automake
2570 # will honor the `STRIP' environment variable to overrule this program.
2571 if test "$cross_compiling" != no; then
2572   if test -n "$ac_tool_prefix"; then
2573   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_STRIP+set}" = set; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test -n "$STRIP"; then
2581   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588     for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595   done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 STRIP=$ac_cv_prog_STRIP
2601 if test -n "$STRIP"; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2603 $as_echo "$STRIP" >&6; }
2604 else
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 fi
2611 if test -z "$ac_cv_prog_STRIP"; then
2612   ac_ct_STRIP=$STRIP
2613   # Extract the first word of "strip", so it can be a program name with args.
2614 set dummy strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2618   $as_echo_n "(cached) " >&6
2619 else
2620   if test -n "$ac_ct_STRIP"; then
2621   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628     for ac_exec_ext in '' $ac_executable_extensions; do
2629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630     ac_cv_prog_ac_ct_STRIP="strip"
2631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635   done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641 if test -n "$ac_ct_STRIP"; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2643 $as_echo "$ac_ct_STRIP" >&6; }
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649   if test "x$ac_ct_STRIP" = x; then
2650     STRIP=":"
2651   else
2652     case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658     STRIP=$ac_ct_STRIP
2659   fi
2660 else
2661   STRIP="$ac_cv_prog_STRIP"
2662 fi
2663
2664 fi
2665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2668 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2669 if test -z "$MKDIR_P"; then
2670   if test "${ac_cv_path_mkdir+set}" = set; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     for ac_prog in mkdir gmkdir; do
2679          for ac_exec_ext in '' $ac_executable_extensions; do
2680            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2681            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2682              'mkdir (GNU coreutils) '* | \
2683              'mkdir (coreutils) '* | \
2684              'mkdir (fileutils) '4.1*)
2685                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2686                break 3;;
2687            esac
2688          done
2689        done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694
2695   test -d ./--version && rmdir ./--version
2696   if test "${ac_cv_path_mkdir+set}" = set; then
2697     MKDIR_P="$ac_cv_path_mkdir -p"
2698   else
2699     # As a last resort, use the slow shell script.  Don't cache a
2700     # value for MKDIR_P within a source directory, because that will
2701     # break other packages using the cache if that directory is
2702     # removed, or if the value is a relative name.
2703     MKDIR_P="$ac_install_sh -d"
2704   fi
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2707 $as_echo "$MKDIR_P" >&6; }
2708
2709 mkdir_p="$MKDIR_P"
2710 case $mkdir_p in
2711   [\\/$]* | ?:[\\/]*) ;;
2712   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2713 esac
2714
2715 for ac_prog in gawk mawk nawk awk
2716 do
2717   # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_AWK+set}" = set; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$AWK"; then
2725   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734     ac_cv_prog_AWK="$ac_prog"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 AWK=$ac_cv_prog_AWK
2745 if test -n "$AWK"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747 $as_echo "$AWK" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754   test -n "$AWK" && break
2755 done
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759 set x ${MAKE-make}
2760 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   cat >conftest.make <<\_ACEOF
2765 SHELL = /bin/sh
2766 all:
2767         @echo '@@@%%%=$(MAKE)=@@@%%%'
2768 _ACEOF
2769 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771   *@@@%%%=?*=@@@%%%*)
2772     eval ac_cv_prog_make_${ac_make}_set=yes;;
2773   *)
2774     eval ac_cv_prog_make_${ac_make}_set=no;;
2775 esac
2776 rm -f conftest.make
2777 fi
2778 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780 $as_echo "yes" >&6; }
2781   SET_MAKE=
2782 else
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785   SET_MAKE="MAKE=${MAKE-make}"
2786 fi
2787
2788 rm -rf .tst 2>/dev/null
2789 mkdir .tst 2>/dev/null
2790 if test -d .tst; then
2791   am__leading_dot=.
2792 else
2793   am__leading_dot=_
2794 fi
2795 rmdir .tst 2>/dev/null
2796
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799   # is not polluted with repeated "-I."
2800   am__isrc=' -I$(srcdir)'
2801   # test to see if srcdir already configured
2802   if test -f $srcdir/config.status; then
2803     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2804   fi
2805 fi
2806
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809   if (cygpath --version) >/dev/null 2>/dev/null; then
2810     CYGPATH_W='cygpath -w'
2811   else
2812     CYGPATH_W=echo
2813   fi
2814 fi
2815
2816
2817 # Define the identity of the package.
2818  PACKAGE='libmm-imgp-gstcs'
2819  VERSION='0.1'
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2824 _ACEOF
2825
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2829 _ACEOF
2830
2831 # Some tools Automake needs.
2832
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2834
2835
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2837
2838
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2840
2841
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2843
2844
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846
2847 # We need awk for the "check" target.  The system "awk" is bad on
2848 # some platforms.
2849 # Always define AMTAR for backward compatibility.
2850
2851 AMTAR=${AMTAR-"${am_missing_run}tar"}
2852
2853 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2854
2855
2856
2857
2858
2859
2860 # Checks for programs.
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 if test -n "$ac_tool_prefix"; then
2867   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_CC+set}" = set; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   if test -n "$CC"; then
2875   ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
2885     $as_echo "$as_me:${as_lineno-$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 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$ac_cv_prog_CC"; then
2906   ac_ct_CC=$CC
2907   # Extract the first word of "gcc", so it can be a program name with args.
2908 set dummy gcc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2912   $as_echo_n "(cached) " >&6
2913 else
2914   if test -n "$ac_ct_CC"; then
2915   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920   IFS=$as_save_IFS
2921   test -z "$as_dir" && as_dir=.
2922     for ac_exec_ext in '' $ac_executable_extensions; do
2923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924     ac_cv_prog_ac_ct_CC="gcc"
2925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926     break 2
2927   fi
2928 done
2929   done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935 if test -n "$ac_ct_CC"; then
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937 $as_echo "$ac_ct_CC" >&6; }
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943   if test "x$ac_ct_CC" = x; then
2944     CC=""
2945   else
2946     case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952     CC=$ac_ct_CC
2953   fi
2954 else
2955   CC="$ac_cv_prog_CC"
2956 fi
2957
2958 if test -z "$CC"; then
2959           if test -n "$ac_tool_prefix"; then
2960     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}cc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_CC+set}" = set; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$CC"; then
2968   ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     ac_cv_prog_CC="${ac_tool_prefix}cc"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997   fi
2998 fi
2999 if test -z "$CC"; then
3000   # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_CC+set}" = set; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$CC"; then
3008   ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010   ac_prog_rejected=no
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014   IFS=$as_save_IFS
3015   test -z "$as_dir" && as_dir=.
3016     for ac_exec_ext in '' $ac_executable_extensions; do
3017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3019        ac_prog_rejected=yes
3020        continue
3021      fi
3022     ac_cv_prog_CC="cc"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 if test $ac_prog_rejected = yes; then
3031   # We found a bogon in the path, so make sure we never use it.
3032   set dummy $ac_cv_prog_CC
3033   shift
3034   if test $# != 0; then
3035     # We chose a different compiler from the bogus one.
3036     # However, it has the same basename, so the bogon will be chosen
3037     # first if we set CC to just the basename; use the full file name.
3038     shift
3039     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3040   fi
3041 fi
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 fi
3055 if test -z "$CC"; then
3056   if test -n "$ac_tool_prefix"; then
3057   for ac_prog in cl.exe
3058   do
3059     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_CC+set}" = set; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test -n "$CC"; then
3067   ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096     test -n "$CC" && break
3097   done
3098 fi
3099 if test -z "$CC"; then
3100   ac_ct_CC=$CC
3101   for ac_prog in cl.exe
3102 do
3103   # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   if test -n "$ac_ct_CC"; then
3111   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118     for ac_exec_ext in '' $ac_executable_extensions; do
3119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120     ac_cv_prog_ac_ct_CC="$ac_prog"
3121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125   done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131 if test -n "$ac_ct_CC"; then
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133 $as_echo "$ac_ct_CC" >&6; }
3134 else
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140   test -n "$ac_ct_CC" && break
3141 done
3142
3143   if test "x$ac_ct_CC" = x; then
3144     CC=""
3145   else
3146     case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152     CC=$ac_ct_CC
3153   fi
3154 fi
3155
3156 fi
3157
3158
3159 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "no acceptable C compiler found in \$PATH
3162 See \`config.log' for more details" "$LINENO" 5 ; }
3163
3164 # Provide some information about the compiler.
3165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3166 set X $ac_compile
3167 ac_compiler=$2
3168 for ac_option in --version -v -V -qversion; do
3169   { { ac_try="$ac_compiler $ac_option >&5"
3170 case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3177   ac_status=$?
3178   if test -s conftest.err; then
3179     sed '10a\
3180 ... rest of stderr output deleted ...
3181          10q' conftest.err >conftest.er1
3182     cat conftest.er1 >&5
3183   fi
3184   rm -f conftest.er1 conftest.err
3185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186   test $ac_status = 0; }
3187 done
3188
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 ac_clean_files_save=$ac_clean_files
3201 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3202 # Try to create an executable without -o first, disregard a.out.
3203 # It will help us diagnose broken compilers, and finding out an intuition
3204 # of exeext.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3206 $as_echo_n "checking whether the C compiler works... " >&6; }
3207 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3208
3209 # The possible output files:
3210 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3211
3212 ac_rmfiles=
3213 for ac_file in $ac_files
3214 do
3215   case $ac_file in
3216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3218   esac
3219 done
3220 rm -f $ac_rmfiles
3221
3222 if { { ac_try="$ac_link_default"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229   (eval "$ac_link_default") 2>&5
3230   ac_status=$?
3231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232   test $ac_status = 0; }; then :
3233   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3234 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3235 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3236 # so that the user can short-circuit this test for compilers unknown to
3237 # Autoconf.
3238 for ac_file in $ac_files ''
3239 do
3240   test -f "$ac_file" || continue
3241   case $ac_file in
3242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3243         ;;
3244     [ab].out )
3245         # We found the default executable, but exeext='' is most
3246         # certainly right.
3247         break;;
3248     *.* )
3249         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3250         then :; else
3251            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252         fi
3253         # We set ac_cv_exeext here because the later test for it is not
3254         # safe: cross compilers may not add the suffix if given an `-o'
3255         # argument, so we may need to know it at that point already.
3256         # Even if this section looks crufty: it has the advantage of
3257         # actually working.
3258         break;;
3259     * )
3260         break;;
3261   esac
3262 done
3263 test "$ac_cv_exeext" = no && ac_cv_exeext=
3264
3265 else
3266   ac_file=''
3267 fi
3268 if test -z "$ac_file"; then :
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error 77 "C compiler cannot create executables
3277 See \`config.log' for more details" "$LINENO" 5 ; }
3278 else
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3283 $as_echo_n "checking for C compiler default output file name... " >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3285 $as_echo "$ac_file" >&6; }
3286 ac_exeext=$ac_cv_exeext
3287
3288 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3289 ac_clean_files=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3291 $as_echo_n "checking for suffix of executables... " >&6; }
3292 if { { ac_try="$ac_link"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299   (eval "$ac_link") 2>&5
3300   ac_status=$?
3301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302   test $ac_status = 0; }; then :
3303   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3304 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3305 # work properly (i.e., refer to `conftest.exe'), while it won't with
3306 # `rm'.
3307 for ac_file in conftest.exe conftest conftest.*; do
3308   test -f "$ac_file" || continue
3309   case $ac_file in
3310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312           break;;
3313     * ) break;;
3314   esac
3315 done
3316 else
3317   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3320 See \`config.log' for more details" "$LINENO" 5 ; }
3321 fi
3322 rm -f conftest conftest$ac_cv_exeext
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3324 $as_echo "$ac_cv_exeext" >&6; }
3325
3326 rm -f conftest.$ac_ext
3327 EXEEXT=$ac_cv_exeext
3328 ac_exeext=$EXEEXT
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h.  */
3331 #include <stdio.h>
3332 int
3333 main ()
3334 {
3335 FILE *f = fopen ("conftest.out", "w");
3336  return ferror (f) || fclose (f) != 0;
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 ac_clean_files="$ac_clean_files conftest.out"
3343 # Check that the compiler produces executables we can run.  If not, either
3344 # the compiler is broken, or we cross compile.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3346 $as_echo_n "checking whether we are cross compiling... " >&6; }
3347 if test "$cross_compiling" != yes; then
3348   { { ac_try="$ac_link"
3349 case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355   (eval "$ac_link") 2>&5
3356   ac_status=$?
3357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358   test $ac_status = 0; }
3359   if { ac_try='./conftest$ac_cv_exeext'
3360   { { case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369   test $ac_status = 0; }; }; then
3370     cross_compiling=no
3371   else
3372     if test "$cross_compiling" = maybe; then
3373         cross_compiling=yes
3374     else
3375         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error $? "cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details" "$LINENO" 5 ; }
3380     fi
3381   fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3384 $as_echo "$cross_compiling" >&6; }
3385
3386 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3387 ac_clean_files=$ac_clean_files_save
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3389 $as_echo_n "checking for suffix of object files... " >&6; }
3390 if test "${ac_cv_objext+set}" = set; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.o conftest.obj
3405 if { { ac_try="$ac_compile"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412   (eval "$ac_compile") 2>&5
3413   ac_status=$?
3414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415   test $ac_status = 0; }; then :
3416   for ac_file in conftest.o conftest.obj conftest.*; do
3417   test -f "$ac_file" || continue;
3418   case $ac_file in
3419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421        break;;
3422   esac
3423 done
3424 else
3425   $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details" "$LINENO" 5 ; }
3432 fi
3433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3436 $as_echo "$ac_cv_objext" >&6; }
3437 OBJEXT=$ac_cv_objext
3438 ac_objext=$OBJEXT
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3440 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3441 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450 #ifndef __GNUC__
3451        choke me
3452 #endif
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459   ac_compiler_gnu=yes
3460 else
3461   ac_compiler_gnu=no
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470   GCC=yes
3471 else
3472   GCC=
3473 fi
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then :
3479   $as_echo_n "(cached) " >&6
3480 else
3481   ac_save_c_werror_flag=$ac_c_werror_flag
3482    ac_c_werror_flag=yes
3483    ac_cv_prog_cc_g=no
3484    CFLAGS="-g"
3485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497   ac_cv_prog_cc_g=yes
3498 else
3499   CFLAGS=""
3500       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512
3513 else
3514   ac_c_werror_flag=$ac_save_c_werror_flag
3515          CFLAGS="-g"
3516          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518
3519 int
3520 main ()
3521 {
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528   ac_cv_prog_cc_g=yes
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535    ac_c_werror_flag=$ac_save_c_werror_flag
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3538 $as_echo "$ac_cv_prog_cc_g" >&6; }
3539 if test "$ac_test_CFLAGS" = set; then
3540   CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542   if test "$GCC" = yes; then
3543     CFLAGS="-g -O2"
3544   else
3545     CFLAGS="-g"
3546   fi
3547 else
3548   if test "$GCC" = yes; then
3549     CFLAGS="-O2"
3550   else
3551     CFLAGS=
3552   fi
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3556 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   ac_cv_prog_cc_c89=no
3560 ac_save_CC=$CC
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563 #include <stdarg.h>
3564 #include <stdio.h>
3565 #include <sys/types.h>
3566 #include <sys/stat.h>
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3571      char **p;
3572      int i;
3573 {
3574   return p[i];
3575 }
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3577 {
3578   char *s;
3579   va_list v;
3580   va_start (v,p);
3581   s = g (p, va_arg (v,int));
3582   va_end (v);
3583   return s;
3584 }
3585
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3587    function prototypes and stuff, but not '\xHH' hex character constants.
3588    These don't provoke an error unfortunately, instead are silently treated
3589    as 'x'.  The following induces an error, until -std is added to get
3590    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3591    array size at least.  It's necessary to write '\x00'==0 to get something
3592    that's true only with -std.  */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3594
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596    inside strings and character constants.  */
3597 #define FOO(x) 'x'
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3599
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3604 int argc;
3605 char **argv;
3606 int
3607 main ()
3608 {
3609 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3616 do
3617   CC="$ac_save_CC $ac_arg"
3618   if ac_fn_c_try_compile "$LINENO"; then :
3619   ac_cv_prog_cc_c89=$ac_arg
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext
3622   test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3626
3627 fi
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3630   x)
3631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3633   xno)
3634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3636   *)
3637     CC="$CC $ac_cv_prog_cc_c89"
3638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3642
3643 fi
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 DEPDIR="${am__leading_dot}deps"
3651
3652 ac_config_commands="$ac_config_commands depfiles"
3653
3654
3655 am_make=${MAKE-make}
3656 cat > confinc << 'END'
3657 am__doit:
3658         @echo this is the am__doit target
3659 .PHONY: am__doit
3660 END
3661 # If we don't find an include directive, just comment out the code.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3663 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3664 am__include="#"
3665 am__quote=
3666 _am_result=none
3667 # First try GNU make style include.
3668 echo "include confinc" > confmf
3669 # Ignore all kinds of additional output from `make'.
3670 case `$am_make -s -f confmf 2> /dev/null` in #(
3671 *the\ am__doit\ target*)
3672   am__include=include
3673   am__quote=
3674   _am_result=GNU
3675   ;;
3676 esac
3677 # Now try BSD make style include.
3678 if test "$am__include" = "#"; then
3679    echo '.include "confinc"' > confmf
3680    case `$am_make -s -f confmf 2> /dev/null` in #(
3681    *the\ am__doit\ target*)
3682      am__include=.include
3683      am__quote="\""
3684      _am_result=BSD
3685      ;;
3686    esac
3687 fi
3688
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3691 $as_echo "$_am_result" >&6; }
3692 rm -f confinc confmf
3693
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696   enableval=$enable_dependency_tracking;
3697 fi
3698
3699 if test "x$enable_dependency_tracking" != xno; then
3700   am_depcomp="$ac_aux_dir/depcomp"
3701   AMDEPBACKSLASH='\'
3702 fi
3703  if test "x$enable_dependency_tracking" != xno; then
3704   AMDEP_TRUE=
3705   AMDEP_FALSE='#'
3706 else
3707   AMDEP_TRUE='#'
3708   AMDEP_FALSE=
3709 fi
3710
3711
3712
3713 depcc="$CC"   am_compiler_list=
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3716 $as_echo_n "checking dependency style of $depcc... " >&6; }
3717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3721   # We make a subdir and do the tests there.  Otherwise we can end up
3722   # making bogus files that we don't know about and never remove.  For
3723   # instance it was reported that on HP-UX the gcc test will end up
3724   # making a dummy file named `D' -- because `-MD' means `put the output
3725   # in D'.
3726   mkdir conftest.dir
3727   # Copy depcomp to subdir because otherwise we won't find it if we're
3728   # using a relative directory.
3729   cp "$am_depcomp" conftest.dir
3730   cd conftest.dir
3731   # We will build objects and dependencies in a subdirectory because
3732   # it helps to detect inapplicable dependency modes.  For instance
3733   # both Tru64's cc and ICC support -MD to output dependencies as a
3734   # side effect of compilation, but ICC will put the dependencies in
3735   # the current directory while Tru64 will put them in the object
3736   # directory.
3737   mkdir sub
3738
3739   am_cv_CC_dependencies_compiler_type=none
3740   if test "$am_compiler_list" = ""; then
3741      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742   fi
3743   am__universal=false
3744   case " $depcc " in #(
3745      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746      esac
3747
3748   for depmode in $am_compiler_list; do
3749     # Setup a source with many dependencies, because some compilers
3750     # like to wrap large dependency lists on column 80 (with \), and
3751     # we should not choose a depcomp mode which is confused by this.
3752     #
3753     # We need to recreate these files for each test, as the compiler may
3754     # overwrite some of them when testing with obscure command lines.
3755     # This happens at least with the AIX C compiler.
3756     : > sub/conftest.c
3757     for i in 1 2 3 4 5 6; do
3758       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760       # Solaris 8's {/usr,}/bin/sh.
3761       touch sub/conftst$i.h
3762     done
3763     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3766     # mode.  It turns out that the SunPro C++ compiler does not properly
3767     # handle `-M -o', and we need to detect this.  Also, some Intel
3768     # versions had trouble with output in subdirs
3769     am__obj=sub/conftest.${OBJEXT-o}
3770     am__minus_obj="-o $am__obj"
3771     case $depmode in
3772     gcc)
3773       # This depmode causes a compiler race in universal mode.
3774       test "$am__universal" = false || continue
3775       ;;
3776     nosideeffect)
3777       # after this tag, mechanisms are not by side-effect, so they'll
3778       # only be used when explicitly requested
3779       if test "x$enable_dependency_tracking" = xyes; then
3780         continue
3781       else
3782         break
3783       fi
3784       ;;
3785     msvisualcpp | msvcmsys)
3786       # This compiler won't grok `-c -o', but also, the minuso test has
3787       # not run yet.  These depmodes are late enough in the game, and
3788       # so weak that their functioning should not be impacted.
3789       am__obj=conftest.${OBJEXT-o}
3790       am__minus_obj=
3791       ;;
3792     none) break ;;
3793     esac
3794     if depmode=$depmode \
3795        source=sub/conftest.c object=$am__obj \
3796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798          >/dev/null 2>conftest.err &&
3799        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803       # icc doesn't choke on unknown options, it will just issue warnings
3804       # or remarks (even with -Werror).  So we grep stderr for any message
3805       # that says an option was ignored or not supported.
3806       # When given -MP, icc 7.0 and 7.1 complain thusly:
3807       #   icc: Command line warning: ignoring option '-M'; no argument required
3808       # The diagnosis changed in icc 8.0:
3809       #   icc: Command line remark: option '-MP' not supported
3810       if (grep 'ignoring option' conftest.err ||
3811           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812         am_cv_CC_dependencies_compiler_type=$depmode
3813         break
3814       fi
3815     fi
3816   done
3817
3818   cd ..
3819   rm -rf conftest.dir
3820 else
3821   am_cv_CC_dependencies_compiler_type=none
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829  if
3830   test "x$enable_dependency_tracking" != xno \
3831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832   am__fastdepCC_TRUE=
3833   am__fastdepCC_FALSE='#'
3834 else
3835   am__fastdepCC_TRUE='#'
3836   am__fastdepCC_FALSE=
3837 fi
3838
3839
3840 case `pwd` in
3841   *\ * | *\     *)
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3843 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3844 esac
3845
3846
3847
3848 macro_version='2.2.6b'
3849 macro_revision='1.3017'
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863 ltmain="$ac_aux_dir/ltmain.sh"
3864
3865 # Make sure we can run config.sub.
3866 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3867   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3870 $as_echo_n "checking build system type... " >&6; }
3871 if test "${ac_cv_build+set}" = set; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   ac_build_alias=$build_alias
3875 test "x$ac_build_alias" = x &&
3876   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3877 test "x$ac_build_alias" = x &&
3878   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3880   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3881
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3884 $as_echo "$ac_cv_build" >&6; }
3885 case $ac_cv_build in
3886 *-*-*) ;;
3887 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3888 esac
3889 build=$ac_cv_build
3890 ac_save_IFS=$IFS; IFS='-'
3891 set x $ac_cv_build
3892 shift
3893 build_cpu=$1
3894 build_vendor=$2
3895 shift; shift
3896 # Remember, the first character of IFS is used to create $*,
3897 # except with old shells:
3898 build_os=$*
3899 IFS=$ac_save_IFS
3900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3901
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3904 $as_echo_n "checking host system type... " >&6; }
3905 if test "${ac_cv_host+set}" = set; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   if test "x$host_alias" = x; then
3909   ac_cv_host=$ac_cv_build
3910 else
3911   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3912     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3913 fi
3914
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3917 $as_echo "$ac_cv_host" >&6; }
3918 case $ac_cv_host in
3919 *-*-*) ;;
3920 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3921 esac
3922 host=$ac_cv_host
3923 ac_save_IFS=$IFS; IFS='-'
3924 set x $ac_cv_host
3925 shift
3926 host_cpu=$1
3927 host_vendor=$2
3928 shift; shift
3929 # Remember, the first character of IFS is used to create $*,
3930 # except with old shells:
3931 host_os=$*
3932 IFS=$ac_save_IFS
3933 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3934
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3937 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3938 if test "${ac_cv_path_SED+set}" = set; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3942      for ac_i in 1 2 3 4 5 6 7; do
3943        ac_script="$ac_script$as_nl$ac_script"
3944      done
3945      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3946      { ac_script=; unset ac_script;}
3947      if test -z "$SED"; then
3948   ac_path_SED_found=false
3949   # Loop through the user's path and test for each of PROGNAME-LIST
3950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955     for ac_prog in sed gsed; do
3956     for ac_exec_ext in '' $ac_executable_extensions; do
3957       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3958       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3959 # Check for GNU ac_path_SED and select it if it is found.
3960   # Check for GNU $ac_path_SED
3961 case `"$ac_path_SED" --version 2>&1` in
3962 *GNU*)
3963   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3964 *)
3965   ac_count=0
3966   $as_echo_n 0123456789 >"conftest.in"
3967   while :
3968   do
3969     cat "conftest.in" "conftest.in" >"conftest.tmp"
3970     mv "conftest.tmp" "conftest.in"
3971     cp "conftest.in" "conftest.nl"
3972     $as_echo '' >> "conftest.nl"
3973     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3974     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3975     as_fn_arith $ac_count + 1 && ac_count=$as_val
3976     if test $ac_count -gt ${ac_path_SED_max-0}; then
3977       # Best one so far, save it but keep looking for a better one
3978       ac_cv_path_SED="$ac_path_SED"
3979       ac_path_SED_max=$ac_count
3980     fi
3981     # 10*(2^10) chars as input seems more than enough
3982     test $ac_count -gt 10 && break
3983   done
3984   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3985 esac
3986
3987       $ac_path_SED_found && break 3
3988     done
3989   done
3990   done
3991 IFS=$as_save_IFS
3992   if test -z "$ac_cv_path_SED"; then
3993     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3994   fi
3995 else
3996   ac_cv_path_SED=$SED
3997 fi
3998
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4001 $as_echo "$ac_cv_path_SED" >&6; }
4002  SED="$ac_cv_path_SED"
4003   rm -f conftest.sed
4004
4005 test -z "$SED" && SED=sed
4006 Xsed="$SED -e 1s/^X//"
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4020 if test "${ac_cv_path_GREP+set}" = set; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   if test -z "$GREP"; then
4024   ac_path_GREP_found=false
4025   # Loop through the user's path and test for each of PROGNAME-LIST
4026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_prog in grep ggrep; do
4032     for ac_exec_ext in '' $ac_executable_extensions; do
4033       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036   # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 *)
4041   ac_count=0
4042   $as_echo_n 0123456789 >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     $as_echo 'GREP' >> "conftest.nl"
4049     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     as_fn_arith $ac_count + 1 && ac_count=$as_val
4052     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_GREP="$ac_path_GREP"
4055       ac_path_GREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063       $ac_path_GREP_found && break 3
4064     done
4065   done
4066   done
4067 IFS=$as_save_IFS
4068   if test -z "$ac_cv_path_GREP"; then
4069     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4070   fi
4071 else
4072   ac_cv_path_GREP=$GREP
4073 fi
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4077 $as_echo "$ac_cv_path_GREP" >&6; }
4078  GREP="$ac_cv_path_GREP"
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4082 $as_echo_n "checking for egrep... " >&6; }
4083 if test "${ac_cv_path_EGREP+set}" = set; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087    then ac_cv_path_EGREP="$GREP -E"
4088    else
4089      if test -z "$EGREP"; then
4090   ac_path_EGREP_found=false
4091   # Loop through the user's path and test for each of PROGNAME-LIST
4092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097     for ac_prog in egrep; do
4098     for ac_exec_ext in '' $ac_executable_extensions; do
4099       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4100       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4101 # Check for GNU ac_path_EGREP and select it if it is found.
4102   # Check for GNU $ac_path_EGREP
4103 case `"$ac_path_EGREP" --version 2>&1` in
4104 *GNU*)
4105   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4106 *)
4107   ac_count=0
4108   $as_echo_n 0123456789 >"conftest.in"
4109   while :
4110   do
4111     cat "conftest.in" "conftest.in" >"conftest.tmp"
4112     mv "conftest.tmp" "conftest.in"
4113     cp "conftest.in" "conftest.nl"
4114     $as_echo 'EGREP' >> "conftest.nl"
4115     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117     as_fn_arith $ac_count + 1 && ac_count=$as_val
4118     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4119       # Best one so far, save it but keep looking for a better one
4120       ac_cv_path_EGREP="$ac_path_EGREP"
4121       ac_path_EGREP_max=$ac_count
4122     fi
4123     # 10*(2^10) chars as input seems more than enough
4124     test $ac_count -gt 10 && break
4125   done
4126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129       $ac_path_EGREP_found && break 3
4130     done
4131   done
4132   done
4133 IFS=$as_save_IFS
4134   if test -z "$ac_cv_path_EGREP"; then
4135     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136   fi
4137 else
4138   ac_cv_path_EGREP=$EGREP
4139 fi
4140
4141    fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4144 $as_echo "$ac_cv_path_EGREP" >&6; }
4145  EGREP="$ac_cv_path_EGREP"
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4149 $as_echo_n "checking for fgrep... " >&6; }
4150 if test "${ac_cv_path_FGREP+set}" = set; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4154    then ac_cv_path_FGREP="$GREP -F"
4155    else
4156      if test -z "$FGREP"; then
4157   ac_path_FGREP_found=false
4158   # Loop through the user's path and test for each of PROGNAME-LIST
4159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_prog in fgrep; do
4165     for ac_exec_ext in '' $ac_executable_extensions; do
4166       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4167       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4168 # Check for GNU ac_path_FGREP and select it if it is found.
4169   # Check for GNU $ac_path_FGREP
4170 case `"$ac_path_FGREP" --version 2>&1` in
4171 *GNU*)
4172   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4173 *)
4174   ac_count=0
4175   $as_echo_n 0123456789 >"conftest.in"
4176   while :
4177   do
4178     cat "conftest.in" "conftest.in" >"conftest.tmp"
4179     mv "conftest.tmp" "conftest.in"
4180     cp "conftest.in" "conftest.nl"
4181     $as_echo 'FGREP' >> "conftest.nl"
4182     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184     as_fn_arith $ac_count + 1 && ac_count=$as_val
4185     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4186       # Best one so far, save it but keep looking for a better one
4187       ac_cv_path_FGREP="$ac_path_FGREP"
4188       ac_path_FGREP_max=$ac_count
4189     fi
4190     # 10*(2^10) chars as input seems more than enough
4191     test $ac_count -gt 10 && break
4192   done
4193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4195
4196       $ac_path_FGREP_found && break 3
4197     done
4198   done
4199   done
4200 IFS=$as_save_IFS
4201   if test -z "$ac_cv_path_FGREP"; then
4202     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203   fi
4204 else
4205   ac_cv_path_FGREP=$FGREP
4206 fi
4207
4208    fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4211 $as_echo "$ac_cv_path_FGREP" >&6; }
4212  FGREP="$ac_cv_path_FGREP"
4213
4214
4215 test -z "$GREP" && GREP=grep
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235 # Check whether --with-gnu-ld was given.
4236 if test "${with_gnu_ld+set}" = set; then :
4237   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4238 else
4239   with_gnu_ld=no
4240 fi
4241
4242 ac_prog=ld
4243 if test "$GCC" = yes; then
4244   # Check if gcc -print-prog-name=ld gives a path.
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4246 $as_echo_n "checking for ld used by $CC... " >&6; }
4247   case $host in
4248   *-*-mingw*)
4249     # gcc leaves a trailing carriage return which upsets mingw
4250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4251   *)
4252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4253   esac
4254   case $ac_prog in
4255     # Accept absolute paths.
4256     [\\/]* | ?:[\\/]*)
4257       re_direlt='/[^/][^/]*/\.\./'
4258       # Canonicalize the pathname of ld
4259       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4260       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4261         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4262       done
4263       test -z "$LD" && LD="$ac_prog"
4264       ;;
4265   "")
4266     # If it fails, then pretend we aren't using GCC.
4267     ac_prog=ld
4268     ;;
4269   *)
4270     # If it is relative, then search for the first ld in PATH.
4271     with_gnu_ld=unknown
4272     ;;
4273   esac
4274 elif test "$with_gnu_ld" = yes; then
4275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4276 $as_echo_n "checking for GNU ld... " >&6; }
4277 else
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4279 $as_echo_n "checking for non-GNU ld... " >&6; }
4280 fi
4281 if test "${lt_cv_path_LD+set}" = set; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -z "$LD"; then
4285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4286   for ac_dir in $PATH; do
4287     IFS="$lt_save_ifs"
4288     test -z "$ac_dir" && ac_dir=.
4289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4290       lt_cv_path_LD="$ac_dir/$ac_prog"
4291       # Check to see if the program is GNU ld.  I'd rather use --version,
4292       # but apparently some variants of GNU ld only accept -v.
4293       # Break only if it was the GNU/non-GNU ld that we prefer.
4294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4295       *GNU* | *'with BFD'*)
4296         test "$with_gnu_ld" != no && break
4297         ;;
4298       *)
4299         test "$with_gnu_ld" != yes && break
4300         ;;
4301       esac
4302     fi
4303   done
4304   IFS="$lt_save_ifs"
4305 else
4306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4307 fi
4308 fi
4309
4310 LD="$lt_cv_path_LD"
4311 if test -n "$LD"; then
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4313 $as_echo "$LD" >&6; }
4314 else
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4321 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4325 case `$LD -v 2>&1 </dev/null` in
4326 *GNU* | *'with BFD'*)
4327   lt_cv_prog_gnu_ld=yes
4328   ;;
4329 *)
4330   lt_cv_prog_gnu_ld=no
4331   ;;
4332 esac
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4336 with_gnu_ld=$lt_cv_prog_gnu_ld
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4348 if test "${lt_cv_path_NM+set}" = set; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   if test -n "$NM"; then
4352   # Let the user override the test.
4353   lt_cv_path_NM="$NM"
4354 else
4355   lt_nm_to_check="${ac_tool_prefix}nm"
4356   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4357     lt_nm_to_check="$lt_nm_to_check nm"
4358   fi
4359   for lt_tmp_nm in $lt_nm_to_check; do
4360     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4361     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4362       IFS="$lt_save_ifs"
4363       test -z "$ac_dir" && ac_dir=.
4364       tmp_nm="$ac_dir/$lt_tmp_nm"
4365       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4366         # Check to see if the nm accepts a BSD-compat flag.
4367         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4368         #   nm: unknown option "B" ignored
4369         # Tru64's nm complains that /dev/null is an invalid object file
4370         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4371         */dev/null* | *'Invalid file or object type'*)
4372           lt_cv_path_NM="$tmp_nm -B"
4373           break
4374           ;;
4375         *)
4376           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4377           */dev/null*)
4378             lt_cv_path_NM="$tmp_nm -p"
4379             break
4380             ;;
4381           *)
4382             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4383             continue # so that we can try to find one that supports BSD flags
4384             ;;
4385           esac
4386           ;;
4387         esac
4388       fi
4389     done
4390     IFS="$lt_save_ifs"
4391   done
4392   : ${lt_cv_path_NM=no}
4393 fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4396 $as_echo "$lt_cv_path_NM" >&6; }
4397 if test "$lt_cv_path_NM" != "no"; then
4398   NM="$lt_cv_path_NM"
4399 else
4400   # Didn't find any BSD compatible name lister, look for dumpbin.
4401   if test -n "$ac_tool_prefix"; then
4402   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4403   do
4404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   if test -n "$DUMPBIN"; then
4412   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419     for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426   done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 DUMPBIN=$ac_cv_prog_DUMPBIN
4432 if test -n "$DUMPBIN"; then
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4434 $as_echo "$DUMPBIN" >&6; }
4435 else
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439
4440
4441     test -n "$DUMPBIN" && break
4442   done
4443 fi
4444 if test -z "$DUMPBIN"; then
4445   ac_ct_DUMPBIN=$DUMPBIN
4446   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4447 do
4448   # Extract the first word of "$ac_prog", so it can be a program name with args.
4449 set dummy $ac_prog; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -n "$ac_ct_DUMPBIN"; then
4456   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_exec_ext in '' $ac_executable_extensions; do
4464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470   done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4476 if test -n "$ac_ct_DUMPBIN"; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4478 $as_echo "$ac_ct_DUMPBIN" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485   test -n "$ac_ct_DUMPBIN" && break
4486 done
4487
4488   if test "x$ac_ct_DUMPBIN" = x; then
4489     DUMPBIN=":"
4490   else
4491     case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497     DUMPBIN=$ac_ct_DUMPBIN
4498   fi
4499 fi
4500
4501
4502   if test "$DUMPBIN" != ":"; then
4503     NM="$DUMPBIN"
4504   fi
4505 fi
4506 test -z "$NM" && NM=nm
4507
4508
4509
4510
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4514 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4515 if test "${lt_cv_nm_interface+set}" = set; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   lt_cv_nm_interface="BSD nm"
4519   echo "int some_variable = 0;" > conftest.$ac_ext
4520   (eval echo "\"\$as_me:4520: $ac_compile\"" >&5)
4521   (eval "$ac_compile" 2>conftest.err)
4522   cat conftest.err >&5
4523   (eval echo "\"\$as_me:4523: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4524   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4525   cat conftest.err >&5
4526   (eval echo "\"\$as_me:4526: output\"" >&5)
4527   cat conftest.out >&5
4528   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4529     lt_cv_nm_interface="MS dumpbin"
4530   fi
4531   rm -f conftest*
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4534 $as_echo "$lt_cv_nm_interface" >&6; }
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4537 $as_echo_n "checking whether ln -s works... " >&6; }
4538 LN_S=$as_ln_s
4539 if test "$LN_S" = "ln -s"; then
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541 $as_echo "yes" >&6; }
4542 else
4543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4544 $as_echo "no, using $LN_S" >&6; }
4545 fi
4546
4547 # find the maximum length of command line arguments
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4549 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4550 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553     i=0
4554   teststring="ABCD"
4555
4556   case $build_os in
4557   msdosdjgpp*)
4558     # On DJGPP, this test can blow up pretty badly due to problems in libc
4559     # (any single argument exceeding 2000 bytes causes a buffer overrun
4560     # during glob expansion).  Even if it were fixed, the result of this
4561     # check would be larger than it should be.
4562     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4563     ;;
4564
4565   gnu*)
4566     # Under GNU Hurd, this test is not required because there is
4567     # no limit to the length of command line arguments.
4568     # Libtool will interpret -1 as no limit whatsoever
4569     lt_cv_sys_max_cmd_len=-1;
4570     ;;
4571
4572   cygwin* | mingw* | cegcc*)
4573     # On Win9x/ME, this test blows up -- it succeeds, but takes
4574     # about 5 minutes as the teststring grows exponentially.
4575     # Worse, since 9x/ME are not pre-emptively multitasking,
4576     # you end up with a "frozen" computer, even though with patience
4577     # the test eventually succeeds (with a max line length of 256k).
4578     # Instead, let's just punt: use the minimum linelength reported by
4579     # all of the supported platforms: 8192 (on NT/2K/XP).
4580     lt_cv_sys_max_cmd_len=8192;
4581     ;;
4582
4583   amigaos*)
4584     # On AmigaOS with pdksh, this test takes hours, literally.
4585     # So we just punt and use a minimum line length of 8192.
4586     lt_cv_sys_max_cmd_len=8192;
4587     ;;
4588
4589   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4590     # This has been around since 386BSD, at least.  Likely further.
4591     if test -x /sbin/sysctl; then
4592       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4593     elif test -x /usr/sbin/sysctl; then
4594       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4595     else
4596       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4597     fi
4598     # And add a safety zone
4599     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4600     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4601     ;;
4602
4603   interix*)
4604     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4605     lt_cv_sys_max_cmd_len=196608
4606     ;;
4607
4608   osf*)
4609     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4610     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4611     # nice to cause kernel panics so lets avoid the loop below.
4612     # First set a reasonable default.
4613     lt_cv_sys_max_cmd_len=16384
4614     #
4615     if test -x /sbin/sysconfig; then
4616       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4617         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4618       esac
4619     fi
4620     ;;
4621   sco3.2v5*)
4622     lt_cv_sys_max_cmd_len=102400
4623     ;;
4624   sysv5* | sco5v6* | sysv4.2uw2*)
4625     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4626     if test -n "$kargmax"; then
4627       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4628     else
4629       lt_cv_sys_max_cmd_len=32768
4630     fi
4631     ;;
4632   *)
4633     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4634     if test -n "$lt_cv_sys_max_cmd_len"; then
4635       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4636       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4637     else
4638       # Make teststring a little bigger before we do anything with it.
4639       # a 1K string should be a reasonable start.
4640       for i in 1 2 3 4 5 6 7 8 ; do
4641         teststring=$teststring$teststring
4642       done
4643       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4644       # If test is not a shell built-in, we'll probably end up computing a
4645       # maximum length that is only half of the actual maximum length, but
4646       # we can't tell.
4647       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4648                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4649               test $i != 17 # 1/2 MB should be enough
4650       do
4651         i=`expr $i + 1`
4652         teststring=$teststring$teststring
4653       done
4654       # Only check the string length outside the loop.
4655       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4656       teststring=
4657       # Add a significant safety factor because C++ compilers can tack on
4658       # massive amounts of additional arguments before passing them to the
4659       # linker.  It appears as though 1/2 is a usable value.
4660       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4661     fi
4662     ;;
4663   esac
4664
4665 fi
4666
4667 if test -n $lt_cv_sys_max_cmd_len ; then
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4672 $as_echo "none" >&6; }
4673 fi
4674 max_cmd_len=$lt_cv_sys_max_cmd_len
4675
4676
4677
4678
4679
4680
4681 : ${CP="cp -f"}
4682 : ${MV="mv -f"}
4683 : ${RM="rm -f"}
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4687 # Try some XSI features
4688 xsi_shell=no
4689 ( _lt_dummy="a/b/c"
4690   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4691       = c,a/b,, \
4692     && eval 'test $(( 1 + 1 )) -eq 2 \
4693     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4694   && xsi_shell=yes
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4696 $as_echo "$xsi_shell" >&6; }
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4701 lt_shell_append=no
4702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4703     >/dev/null 2>&1 \
4704   && lt_shell_append=yes
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4706 $as_echo "$lt_shell_append" >&6; }
4707
4708
4709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4710   lt_unset=unset
4711 else
4712   lt_unset=false
4713 fi
4714
4715
4716
4717
4718
4719 # test EBCDIC or ASCII
4720 case `echo X|tr X '\101'` in
4721  A) # ASCII based system
4722     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4723   lt_SP2NL='tr \040 \012'
4724   lt_NL2SP='tr \015\012 \040\040'
4725   ;;
4726  *) # EBCDIC based system
4727   lt_SP2NL='tr \100 \n'
4728   lt_NL2SP='tr \r\n \100\100'
4729   ;;
4730 esac
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4742 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   lt_cv_ld_reload_flag='-r'
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4749 reload_flag=$lt_cv_ld_reload_flag
4750 case $reload_flag in
4751 "" | " "*) ;;
4752 *) reload_flag=" $reload_flag" ;;
4753 esac
4754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4755 case $host_os in
4756   darwin*)
4757     if test "$GCC" = yes; then
4758       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4759     else
4760       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761     fi
4762     ;;
4763 esac
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773 if test -n "$ac_tool_prefix"; then
4774   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   if test -n "$OBJDUMP"; then
4782   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789     for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796   done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 OBJDUMP=$ac_cv_prog_OBJDUMP
4802 if test -n "$OBJDUMP"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4804 $as_echo "$OBJDUMP" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 fi
4812 if test -z "$ac_cv_prog_OBJDUMP"; then
4813   ac_ct_OBJDUMP=$OBJDUMP
4814   # Extract the first word of "objdump", so it can be a program name with args.
4815 set dummy objdump; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if test -n "$ac_ct_OBJDUMP"; then
4822   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836   done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4842 if test -n "$ac_ct_OBJDUMP"; then
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4844 $as_echo "$ac_ct_OBJDUMP" >&6; }
4845 else
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850   if test "x$ac_ct_OBJDUMP" = x; then
4851     OBJDUMP="false"
4852   else
4853     case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859     OBJDUMP=$ac_ct_OBJDUMP
4860   fi
4861 else
4862   OBJDUMP="$ac_cv_prog_OBJDUMP"
4863 fi
4864
4865 test -z "$OBJDUMP" && OBJDUMP=objdump
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4877 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   lt_cv_file_magic_cmd='$MAGIC_CMD'
4881 lt_cv_file_magic_test_file=
4882 lt_cv_deplibs_check_method='unknown'
4883 # Need to set the preceding variable on all platforms that support
4884 # interlibrary dependencies.
4885 # 'none' -- dependencies not supported.
4886 # `unknown' -- same as none, but documents that we really don't know.
4887 # 'pass_all' -- all dependencies passed with no checks.
4888 # 'test_compile' -- check by making test program.
4889 # 'file_magic [[regex]]' -- check by looking for files in library path
4890 # which responds to the $file_magic_cmd with a given extended regex.
4891 # If you have `file' or equivalent on your system and you're not sure
4892 # whether `pass_all' will *always* work, you probably want this one.
4893
4894 case $host_os in
4895 aix[4-9]*)
4896   lt_cv_deplibs_check_method=pass_all
4897   ;;
4898
4899 beos*)
4900   lt_cv_deplibs_check_method=pass_all
4901   ;;
4902
4903 bsdi[45]*)
4904   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4905   lt_cv_file_magic_cmd='/usr/bin/file -L'
4906   lt_cv_file_magic_test_file=/shlib/libc.so
4907   ;;
4908
4909 cygwin*)
4910   # func_win32_libid is a shell function defined in ltmain.sh
4911   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4912   lt_cv_file_magic_cmd='func_win32_libid'
4913   ;;
4914
4915 mingw* | pw32*)
4916   # Base MSYS/MinGW do not provide the 'file' command needed by
4917   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4918   # unless we find 'file', for example because we are cross-compiling.
4919   if ( file / ) >/dev/null 2>&1; then
4920     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4921     lt_cv_file_magic_cmd='func_win32_libid'
4922   else
4923     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4924     lt_cv_file_magic_cmd='$OBJDUMP -f'
4925   fi
4926   ;;
4927
4928 cegcc)
4929   # use the weaker test based on 'objdump'. See mingw*.
4930   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4931   lt_cv_file_magic_cmd='$OBJDUMP -f'
4932   ;;
4933
4934 darwin* | rhapsody*)
4935   lt_cv_deplibs_check_method=pass_all
4936   ;;
4937
4938 freebsd* | dragonfly*)
4939   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4940     case $host_cpu in
4941     i*86 )
4942       # Not sure whether the presence of OpenBSD here was a mistake.
4943       # Let's accept both of them until this is cleared up.
4944       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4945       lt_cv_file_magic_cmd=/usr/bin/file
4946       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4947       ;;
4948     esac
4949   else
4950     lt_cv_deplibs_check_method=pass_all
4951   fi
4952   ;;
4953
4954 gnu*)
4955   lt_cv_deplibs_check_method=pass_all
4956   ;;
4957
4958 hpux10.20* | hpux11*)
4959   lt_cv_file_magic_cmd=/usr/bin/file
4960   case $host_cpu in
4961   ia64*)
4962     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4963     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4964     ;;
4965   hppa*64*)
4966     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]'
4967     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4968     ;;
4969   *)
4970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4971     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4972     ;;
4973   esac
4974   ;;
4975
4976 interix[3-9]*)
4977   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4978   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4979   ;;
4980
4981 irix5* | irix6* | nonstopux*)
4982   case $LD in
4983   *-32|*"-32 ") libmagic=32-bit;;
4984   *-n32|*"-n32 ") libmagic=N32;;
4985   *-64|*"-64 ") libmagic=64-bit;;
4986   *) libmagic=never-match;;
4987   esac
4988   lt_cv_deplibs_check_method=pass_all
4989   ;;
4990
4991 # This must be Linux ELF.
4992 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4993   lt_cv_deplibs_check_method=pass_all
4994   ;;
4995
4996 netbsd* | netbsdelf*-gnu)
4997   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4999   else
5000     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5001   fi
5002   ;;
5003
5004 newos6*)
5005   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5006   lt_cv_file_magic_cmd=/usr/bin/file
5007   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5008   ;;
5009
5010 *nto* | *qnx*)
5011   lt_cv_deplibs_check_method=pass_all
5012   ;;
5013
5014 openbsd*)
5015   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5017   else
5018     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5019   fi
5020   ;;
5021
5022 osf3* | osf4* | osf5*)
5023   lt_cv_deplibs_check_method=pass_all
5024   ;;
5025
5026 rdos*)
5027   lt_cv_deplibs_check_method=pass_all
5028   ;;
5029
5030 solaris*)
5031   lt_cv_deplibs_check_method=pass_all
5032   ;;
5033
5034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5035   lt_cv_deplibs_check_method=pass_all
5036   ;;
5037
5038 sysv4 | sysv4.3*)
5039   case $host_vendor in
5040   motorola)
5041     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]'
5042     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5043     ;;
5044   ncr)
5045     lt_cv_deplibs_check_method=pass_all
5046     ;;
5047   sequent)
5048     lt_cv_file_magic_cmd='/bin/file'
5049     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5050     ;;
5051   sni)
5052     lt_cv_file_magic_cmd='/bin/file'
5053     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5054     lt_cv_file_magic_test_file=/lib/libc.so
5055     ;;
5056   siemens)
5057     lt_cv_deplibs_check_method=pass_all
5058     ;;
5059   pc)
5060     lt_cv_deplibs_check_method=pass_all
5061     ;;
5062   esac
5063   ;;
5064
5065 tpf*)
5066   lt_cv_deplibs_check_method=pass_all
5067   ;;
5068 esac
5069
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5073 file_magic_cmd=$lt_cv_file_magic_cmd
5074 deplibs_check_method=$lt_cv_deplibs_check_method
5075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 if test -n "$ac_tool_prefix"; then
5089   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}ar; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_AR+set}" = set; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -n "$AR"; then
5097   ac_cv_prog_AR="$AR" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106     ac_cv_prog_AR="${ac_tool_prefix}ar"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 AR=$ac_cv_prog_AR
5117 if test -n "$AR"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5119 $as_echo "$AR" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 fi
5127 if test -z "$ac_cv_prog_AR"; then
5128   ac_ct_AR=$AR
5129   # Extract the first word of "ar", so it can be a program name with args.
5130 set dummy ar; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test -n "$ac_ct_AR"; then
5137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146     ac_cv_prog_ac_ct_AR="ar"
5147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5157 if test -n "$ac_ct_AR"; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5159 $as_echo "$ac_ct_AR" >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165   if test "x$ac_ct_AR" = x; then
5166     AR="false"
5167   else
5168     case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174     AR=$ac_ct_AR
5175   fi
5176 else
5177   AR="$ac_cv_prog_AR"
5178 fi
5179
5180 test -z "$AR" && AR=ar
5181 test -z "$AR_FLAGS" && AR_FLAGS=cru
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 if test -n "$ac_tool_prefix"; then
5194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5195 set dummy ${ac_tool_prefix}strip; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if test "${ac_cv_prog_STRIP+set}" = set; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   if test -n "$STRIP"; then
5202   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 STRIP=$ac_cv_prog_STRIP
5222 if test -n "$STRIP"; then
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5224 $as_echo "$STRIP" >&6; }
5225 else
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 fi
5232 if test -z "$ac_cv_prog_STRIP"; then
5233   ac_ct_STRIP=$STRIP
5234   # Extract the first word of "strip", so it can be a program name with args.
5235 set dummy strip; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   if test -n "$ac_ct_STRIP"; then
5242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251     ac_cv_prog_ac_ct_STRIP="strip"
5252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256   done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5262 if test -n "$ac_ct_STRIP"; then
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5264 $as_echo "$ac_ct_STRIP" >&6; }
5265 else
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270   if test "x$ac_ct_STRIP" = x; then
5271     STRIP=":"
5272   else
5273     case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5278 esac
5279     STRIP=$ac_ct_STRIP
5280   fi
5281 else
5282   STRIP="$ac_cv_prog_STRIP"
5283 fi
5284
5285 test -z "$STRIP" && STRIP=:
5286
5287
5288
5289
5290
5291
5292 if test -n "$ac_tool_prefix"; then
5293   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   if test -n "$RANLIB"; then
5301   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308     for ac_exec_ext in '' $ac_executable_extensions; do
5309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315   done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 RANLIB=$ac_cv_prog_RANLIB
5321 if test -n "$RANLIB"; then
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5323 $as_echo "$RANLIB" >&6; }
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329
5330 fi
5331 if test -z "$ac_cv_prog_RANLIB"; then
5332   ac_ct_RANLIB=$RANLIB
5333   # Extract the first word of "ranlib", so it can be a program name with args.
5334 set dummy ranlib; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$ac_ct_RANLIB"; then
5341   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_prog_ac_ct_RANLIB="ranlib"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5361 if test -n "$ac_ct_RANLIB"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5363 $as_echo "$ac_ct_RANLIB" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369   if test "x$ac_ct_RANLIB" = x; then
5370     RANLIB=":"
5371   else
5372     case $cross_compiling:$ac_tool_warned in
5373 yes:)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5377 esac
5378     RANLIB=$ac_ct_RANLIB
5379   fi
5380 else
5381   RANLIB="$ac_cv_prog_RANLIB"
5382 fi
5383
5384 test -z "$RANLIB" && RANLIB=:
5385
5386
5387
5388
5389
5390
5391 # Determine commands to create old-style static archives.
5392 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5393 old_postinstall_cmds='chmod 644 $oldlib'
5394 old_postuninstall_cmds=
5395
5396 if test -n "$RANLIB"; then
5397   case $host_os in
5398   openbsd*)
5399     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5400     ;;
5401   *)
5402     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5403     ;;
5404   esac
5405   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5406 fi
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 # If no C compiler was specified, use CC.
5442 LTCC=${LTCC-"$CC"}
5443
5444 # If no C compiler flags were specified, use CFLAGS.
5445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5446
5447 # Allow CC to be a program name with arguments.
5448 compiler=$CC
5449
5450
5451 # Check for command to grab the raw symbol name followed by C symbol from nm.
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5453 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5454 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457
5458 # These are sane defaults that work on at least a few old systems.
5459 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5460
5461 # Character class describing NM global symbol codes.
5462 symcode='[BCDEGRST]'
5463
5464 # Regexp to match symbols that can be accessed directly from C.
5465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5466
5467 # Define system-specific variables.
5468 case $host_os in
5469 aix*)
5470   symcode='[BCDT]'
5471   ;;
5472 cygwin* | mingw* | pw32* | cegcc*)
5473   symcode='[ABCDGISTW]'
5474   ;;
5475 hpux*)
5476   if test "$host_cpu" = ia64; then
5477     symcode='[ABCDEGRST]'
5478   fi
5479   ;;
5480 irix* | nonstopux*)
5481   symcode='[BCDEGRST]'
5482   ;;
5483 osf*)
5484   symcode='[BCDEGQRST]'
5485   ;;
5486 solaris*)
5487   symcode='[BDRT]'
5488   ;;
5489 sco3.2v5*)
5490   symcode='[DT]'
5491   ;;
5492 sysv4.2uw2*)
5493   symcode='[DT]'
5494   ;;
5495 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5496   symcode='[ABDT]'
5497   ;;
5498 sysv4)
5499   symcode='[DFNSTU]'
5500   ;;
5501 esac
5502
5503 # If we're using GNU nm, then use its standard symbol codes.
5504 case `$NM -V 2>&1` in
5505 *GNU* | *'with BFD'*)
5506   symcode='[ABCDGIRSTW]' ;;
5507 esac
5508
5509 # Transform an extracted symbol line into a proper C declaration.
5510 # Some systems (esp. on ia64) link data and code symbols differently,
5511 # so use this general approach.
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5513
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5516 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'"
5517
5518 # Handle CRLF in mingw tool chain
5519 opt_cr=
5520 case $build_os in
5521 mingw*)
5522   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5523   ;;
5524 esac
5525
5526 # Try without a prefix underscore, then with it.
5527 for ac_symprfx in "" "_"; do
5528
5529   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5530   symxfrm="\\1 $ac_symprfx\\2 \\2"
5531
5532   # Write the raw and C identifiers.
5533   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5534     # Fake it for dumpbin and say T for any non-static function
5535     # and D for any global variable.
5536     # Also find C++ and __fastcall symbols from MSVC++,
5537     # which start with @ or ?.
5538     lt_cv_sys_global_symbol_pipe="$AWK '"\
5539 "     {last_section=section; section=\$ 3};"\
5540 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5541 "     \$ 0!~/External *\|/{next};"\
5542 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5543 "     {if(hide[section]) next};"\
5544 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5545 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5546 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5547 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5548 "     ' prfx=^$ac_symprfx"
5549   else
5550     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5551   fi
5552
5553   # Check to see that the pipe works correctly.
5554   pipe_works=no
5555
5556   rm -f conftest*
5557   cat > conftest.$ac_ext <<_LT_EOF
5558 #ifdef __cplusplus
5559 extern "C" {
5560 #endif
5561 char nm_test_var;
5562 void nm_test_func(void);
5563 void nm_test_func(void){}
5564 #ifdef __cplusplus
5565 }
5566 #endif
5567 int main(){nm_test_var='a';nm_test_func();return(0);}
5568 _LT_EOF
5569
5570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5571   (eval $ac_compile) 2>&5
5572   ac_status=$?
5573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5574   test $ac_status = 0; }; then
5575     # Now try to grab the symbols.
5576     nlist=conftest.nm
5577     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5578   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5579   ac_status=$?
5580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581   test $ac_status = 0; } && test -s "$nlist"; then
5582       # Try sorting and uniquifying the output.
5583       if sort "$nlist" | uniq > "$nlist"T; then
5584         mv -f "$nlist"T "$nlist"
5585       else
5586         rm -f "$nlist"T
5587       fi
5588
5589       # Make sure that we snagged all the symbols we need.
5590       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5591         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5592           cat <<_LT_EOF > conftest.$ac_ext
5593 #ifdef __cplusplus
5594 extern "C" {
5595 #endif
5596
5597 _LT_EOF
5598           # Now generate the symbol file.
5599           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5600
5601           cat <<_LT_EOF >> conftest.$ac_ext
5602
5603 /* The mapping between symbol names and symbols.  */
5604 const struct {
5605   const char *name;
5606   void       *address;
5607 }
5608 lt__PROGRAM__LTX_preloaded_symbols[] =
5609 {
5610   { "@PROGRAM@", (void *) 0 },
5611 _LT_EOF
5612           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5613           cat <<\_LT_EOF >> conftest.$ac_ext
5614   {0, (void *) 0}
5615 };
5616
5617 /* This works around a problem in FreeBSD linker */
5618 #ifdef FREEBSD_WORKAROUND
5619 static const void *lt_preloaded_setup() {
5620   return lt__PROGRAM__LTX_preloaded_symbols;
5621 }
5622 #endif
5623
5624 #ifdef __cplusplus
5625 }
5626 #endif
5627 _LT_EOF
5628           # Now try linking the two files.
5629           mv conftest.$ac_objext conftstm.$ac_objext
5630           lt_save_LIBS="$LIBS"
5631           lt_save_CFLAGS="$CFLAGS"
5632           LIBS="conftstm.$ac_objext"
5633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5634           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5635   (eval $ac_link) 2>&5
5636   ac_status=$?
5637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5639             pipe_works=yes
5640           fi
5641           LIBS="$lt_save_LIBS"
5642           CFLAGS="$lt_save_CFLAGS"
5643         else
5644           echo "cannot find nm_test_func in $nlist" >&5
5645         fi
5646       else
5647         echo "cannot find nm_test_var in $nlist" >&5
5648       fi
5649     else
5650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5651     fi
5652   else
5653     echo "$progname: failed program was:" >&5
5654     cat conftest.$ac_ext >&5
5655   fi
5656   rm -rf conftest* conftst*
5657
5658   # Do not use the global_symbol_pipe unless it works.
5659   if test "$pipe_works" = yes; then
5660     break
5661   else
5662     lt_cv_sys_global_symbol_pipe=
5663   fi
5664 done
5665
5666 fi
5667
5668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5669   lt_cv_sys_global_symbol_to_cdecl=
5670 fi
5671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5673 $as_echo "failed" >&6; }
5674 else
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5676 $as_echo "ok" >&6; }
5677 fi
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 # Check whether --enable-libtool-lock was given.
5702 if test "${enable_libtool_lock+set}" = set; then :
5703   enableval=$enable_libtool_lock;
5704 fi
5705
5706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5707
5708 # Some flags need to be propagated to the compiler or linker for good
5709 # libtool support.
5710 case $host in
5711 ia64-*-hpux*)
5712   # Find out which ABI we are using.
5713   echo 'int i;' > conftest.$ac_ext
5714   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5715   (eval $ac_compile) 2>&5
5716   ac_status=$?
5717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718   test $ac_status = 0; }; then
5719     case `/usr/bin/file conftest.$ac_objext` in
5720       *ELF-32*)
5721         HPUX_IA64_MODE="32"
5722         ;;
5723       *ELF-64*)
5724         HPUX_IA64_MODE="64"
5725         ;;
5726     esac
5727   fi
5728   rm -rf conftest*
5729   ;;
5730 *-*-irix6*)
5731   # Find out which ABI we are using.
5732   echo '#line 5732 "configure"' > conftest.$ac_ext
5733   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5734   (eval $ac_compile) 2>&5
5735   ac_status=$?
5736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737   test $ac_status = 0; }; then
5738     if test "$lt_cv_prog_gnu_ld" = yes; then
5739       case `/usr/bin/file conftest.$ac_objext` in
5740         *32-bit*)
5741           LD="${LD-ld} -melf32bsmip"
5742           ;;
5743         *N32*)
5744           LD="${LD-ld} -melf32bmipn32"
5745           ;;
5746         *64-bit*)
5747           LD="${LD-ld} -melf64bmip"
5748         ;;
5749       esac
5750     else
5751       case `/usr/bin/file conftest.$ac_objext` in
5752         *32-bit*)
5753           LD="${LD-ld} -32"
5754           ;;
5755         *N32*)
5756           LD="${LD-ld} -n32"
5757           ;;
5758         *64-bit*)
5759           LD="${LD-ld} -64"
5760           ;;
5761       esac
5762     fi
5763   fi
5764   rm -rf conftest*
5765   ;;
5766
5767 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5768 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5769   # Find out which ABI we are using.
5770   echo 'int i;' > conftest.$ac_ext
5771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5772   (eval $ac_compile) 2>&5
5773   ac_status=$?
5774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775   test $ac_status = 0; }; then
5776     case `/usr/bin/file conftest.o` in
5777       *32-bit*)
5778         case $host in
5779           x86_64-*kfreebsd*-gnu)
5780             LD="${LD-ld} -m elf_i386_fbsd"
5781             ;;
5782           x86_64-*linux*)
5783             LD="${LD-ld} -m elf_i386"
5784             ;;
5785           ppc64-*linux*|powerpc64-*linux*)
5786             LD="${LD-ld} -m elf32ppclinux"
5787             ;;
5788           s390x-*linux*)
5789             LD="${LD-ld} -m elf_s390"
5790             ;;
5791           sparc64-*linux*)
5792             LD="${LD-ld} -m elf32_sparc"
5793             ;;
5794         esac
5795         ;;
5796       *64-bit*)
5797         case $host in
5798           x86_64-*kfreebsd*-gnu)
5799             LD="${LD-ld} -m elf_x86_64_fbsd"
5800             ;;
5801           x86_64-*linux*)
5802             LD="${LD-ld} -m elf_x86_64"
5803             ;;
5804           ppc*-*linux*|powerpc*-*linux*)
5805             LD="${LD-ld} -m elf64ppc"
5806             ;;
5807           s390*-*linux*|s390*-*tpf*)
5808             LD="${LD-ld} -m elf64_s390"
5809             ;;
5810           sparc*-*linux*)
5811             LD="${LD-ld} -m elf64_sparc"
5812             ;;
5813         esac
5814         ;;
5815     esac
5816   fi
5817   rm -rf conftest*
5818   ;;
5819
5820 *-*-sco3.2v5*)
5821   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5822   SAVE_CFLAGS="$CFLAGS"
5823   CFLAGS="$CFLAGS -belf"
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5825 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5826 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   ac_ext=c
5830 ac_cpp='$CPP $CPPFLAGS'
5831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834
5835      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 if ac_fn_c_try_link "$LINENO"; then :
5847   lt_cv_cc_needs_belf=yes
5848 else
5849   lt_cv_cc_needs_belf=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext \
5852     conftest$ac_exeext conftest.$ac_ext
5853      ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5861 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5862   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5863     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5864     CFLAGS="$SAVE_CFLAGS"
5865   fi
5866   ;;
5867 sparc*-*solaris*)
5868   # Find out which ABI we are using.
5869   echo 'int i;' > conftest.$ac_ext
5870   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871   (eval $ac_compile) 2>&5
5872   ac_status=$?
5873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874   test $ac_status = 0; }; then
5875     case `/usr/bin/file conftest.o` in
5876     *64-bit*)
5877       case $lt_cv_prog_gnu_ld in
5878       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5879       *)
5880         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5881           LD="${LD-ld} -64"
5882         fi
5883         ;;
5884       esac
5885       ;;
5886     esac
5887   fi
5888   rm -rf conftest*
5889   ;;
5890 esac
5891
5892 need_locks="$enable_libtool_lock"
5893
5894
5895   case $host_os in
5896     rhapsody* | darwin*)
5897     if test -n "$ac_tool_prefix"; then
5898   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   if test -n "$DSYMUTIL"; then
5906   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920   done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5926 if test -n "$DSYMUTIL"; then
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5928 $as_echo "$DSYMUTIL" >&6; }
5929 else
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934
5935 fi
5936 if test -z "$ac_cv_prog_DSYMUTIL"; then
5937   ac_ct_DSYMUTIL=$DSYMUTIL
5938   # Extract the first word of "dsymutil", so it can be a program name with args.
5939 set dummy dsymutil; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   if test -n "$ac_ct_DSYMUTIL"; then
5946   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953     for ac_exec_ext in '' $ac_executable_extensions; do
5954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960   done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5966 if test -n "$ac_ct_DSYMUTIL"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5968 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974   if test "x$ac_ct_DSYMUTIL" = x; then
5975     DSYMUTIL=":"
5976   else
5977     case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983     DSYMUTIL=$ac_ct_DSYMUTIL
5984   fi
5985 else
5986   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5987 fi
5988
5989     if test -n "$ac_tool_prefix"; then
5990   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5991 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   if test -n "$NMEDIT"; then
5998   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005     for ac_exec_ext in '' $ac_executable_extensions; do
6006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012   done
6013 IFS=$as_save_IFS
6014
6015 fi
6016 fi
6017 NMEDIT=$ac_cv_prog_NMEDIT
6018 if test -n "$NMEDIT"; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6020 $as_echo "$NMEDIT" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6024 fi
6025
6026
6027 fi
6028 if test -z "$ac_cv_prog_NMEDIT"; then
6029   ac_ct_NMEDIT=$NMEDIT
6030   # Extract the first word of "nmedit", so it can be a program name with args.
6031 set dummy nmedit; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   if test -n "$ac_ct_NMEDIT"; then
6038   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043   IFS=$as_save_IFS
6044   test -z "$as_dir" && as_dir=.
6045     for ac_exec_ext in '' $ac_executable_extensions; do
6046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049     break 2
6050   fi
6051 done
6052   done
6053 IFS=$as_save_IFS
6054
6055 fi
6056 fi
6057 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6058 if test -n "$ac_ct_NMEDIT"; then
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6060 $as_echo "$ac_ct_NMEDIT" >&6; }
6061 else
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 fi
6065
6066   if test "x$ac_ct_NMEDIT" = x; then
6067     NMEDIT=":"
6068   else
6069     case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075     NMEDIT=$ac_ct_NMEDIT
6076   fi
6077 else
6078   NMEDIT="$ac_cv_prog_NMEDIT"
6079 fi
6080
6081     if test -n "$ac_tool_prefix"; then
6082   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_LIPO+set}" = set; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   if test -n "$LIPO"; then
6090   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097     for ac_exec_ext in '' $ac_executable_extensions; do
6098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101     break 2
6102   fi
6103 done
6104   done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 LIPO=$ac_cv_prog_LIPO
6110 if test -n "$LIPO"; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6112 $as_echo "$LIPO" >&6; }
6113 else
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118
6119 fi
6120 if test -z "$ac_cv_prog_LIPO"; then
6121   ac_ct_LIPO=$LIPO
6122   # Extract the first word of "lipo", so it can be a program name with args.
6123 set dummy lipo; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$ac_ct_LIPO"; then
6130   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139     ac_cv_prog_ac_ct_LIPO="lipo"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6150 if test -n "$ac_ct_LIPO"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6152 $as_echo "$ac_ct_LIPO" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158   if test "x$ac_ct_LIPO" = x; then
6159     LIPO=":"
6160   else
6161     case $cross_compiling:$ac_tool_warned in
6162 yes:)
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167     LIPO=$ac_ct_LIPO
6168   fi
6169 else
6170   LIPO="$ac_cv_prog_LIPO"
6171 fi
6172
6173     if test -n "$ac_tool_prefix"; then
6174   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}otool; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181   if test -n "$OTOOL"; then
6182   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189     for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196   done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 OTOOL=$ac_cv_prog_OTOOL
6202 if test -n "$OTOOL"; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6204 $as_echo "$OTOOL" >&6; }
6205 else
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209
6210
6211 fi
6212 if test -z "$ac_cv_prog_OTOOL"; then
6213   ac_ct_OTOOL=$OTOOL
6214   # Extract the first word of "otool", so it can be a program name with args.
6215 set dummy otool; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6219   $as_echo_n "(cached) " >&6
6220 else
6221   if test -n "$ac_ct_OTOOL"; then
6222   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229     for ac_exec_ext in '' $ac_executable_extensions; do
6230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231     ac_cv_prog_ac_ct_OTOOL="otool"
6232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236   done
6237 IFS=$as_save_IFS
6238
6239 fi
6240 fi
6241 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6242 if test -n "$ac_ct_OTOOL"; then
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6244 $as_echo "$ac_ct_OTOOL" >&6; }
6245 else
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6248 fi
6249
6250   if test "x$ac_ct_OTOOL" = x; then
6251     OTOOL=":"
6252   else
6253     case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259     OTOOL=$ac_ct_OTOOL
6260   fi
6261 else
6262   OTOOL="$ac_cv_prog_OTOOL"
6263 fi
6264
6265     if test -n "$ac_tool_prefix"; then
6266   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6267 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   if test -n "$OTOOL64"; then
6274   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281     for ac_exec_ext in '' $ac_executable_extensions; do
6282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288   done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 OTOOL64=$ac_cv_prog_OTOOL64
6294 if test -n "$OTOOL64"; then
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6296 $as_echo "$OTOOL64" >&6; }
6297 else
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301
6302
6303 fi
6304 if test -z "$ac_cv_prog_OTOOL64"; then
6305   ac_ct_OTOOL64=$OTOOL64
6306   # Extract the first word of "otool64", so it can be a program name with args.
6307 set dummy otool64; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   if test -n "$ac_ct_OTOOL64"; then
6314   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321     for ac_exec_ext in '' $ac_executable_extensions; do
6322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323     ac_cv_prog_ac_ct_OTOOL64="otool64"
6324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325     break 2
6326   fi
6327 done
6328   done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6334 if test -n "$ac_ct_OTOOL64"; then
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6336 $as_echo "$ac_ct_OTOOL64" >&6; }
6337 else
6338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342   if test "x$ac_ct_OTOOL64" = x; then
6343     OTOOL64=":"
6344   else
6345     case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned=yes ;;
6350 esac
6351     OTOOL64=$ac_ct_OTOOL64
6352   fi
6353 else
6354   OTOOL64="$ac_cv_prog_OTOOL64"
6355 fi
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6384 $as_echo_n "checking for -single_module linker flag... " >&6; }
6385 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   lt_cv_apple_cc_single_mod=no
6389       if test -z "${LT_MULTI_MODULE}"; then
6390         # By default we will add the -single_module flag. You can override
6391         # by either setting the environment variable LT_MULTI_MODULE
6392         # non-empty at configure time, or by adding -multi_module to the
6393         # link flags.
6394         rm -rf libconftest.dylib*
6395         echo "int foo(void){return 1;}" > conftest.c
6396         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6397 -dynamiclib -Wl,-single_module conftest.c" >&5
6398         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6399           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6400         _lt_result=$?
6401         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6402           lt_cv_apple_cc_single_mod=yes
6403         else
6404           cat conftest.err >&5
6405         fi
6406         rm -rf libconftest.dylib*
6407         rm -f conftest.*
6408       fi
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6411 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6413 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6414 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   lt_cv_ld_exported_symbols_list=no
6418       save_LDFLAGS=$LDFLAGS
6419       echo "_main" > conftest.sym
6420       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6421       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h.  */
6423
6424 int
6425 main ()
6426 {
6427
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_link "$LINENO"; then :
6433   lt_cv_ld_exported_symbols_list=yes
6434 else
6435   lt_cv_ld_exported_symbols_list=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext \
6438     conftest$ac_exeext conftest.$ac_ext
6439         LDFLAGS="$save_LDFLAGS"
6440
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6443 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6444     case $host_os in
6445     rhapsody* | darwin1.[012])
6446       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6447     darwin1.*)
6448       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6449     darwin*) # darwin 5.x on
6450       # if running on 10.5 or later, the deployment target defaults
6451       # to the OS version, if on x86, and 10.4, the deployment
6452       # target defaults to 10.4. Don't you love it?
6453       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6454         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6455           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6456         10.[012]*)
6457           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6458         10.*)
6459           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6460       esac
6461     ;;
6462   esac
6463     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6464       _lt_dar_single_mod='$single_module'
6465     fi
6466     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6467       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6468     else
6469       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6470     fi
6471     if test "$DSYMUTIL" != ":"; then
6472       _lt_dsymutil='~$DSYMUTIL $lib || :'
6473     else
6474       _lt_dsymutil=
6475     fi
6476     ;;
6477   esac
6478
6479 ac_ext=c
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6486 # On Suns, sometimes $CPP names a directory.
6487 if test -n "$CPP" && test -d "$CPP"; then
6488   CPP=
6489 fi
6490 if test -z "$CPP"; then
6491   if test "${ac_cv_prog_CPP+set}" = set; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494       # Double quotes because CPP needs to be expanded
6495     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6496     do
6497       ac_preproc_ok=false
6498 for ac_c_preproc_warn_flag in '' yes
6499 do
6500   # Use a header file that comes with gcc, so configuring glibc
6501   # with a fresh cross-compiler works.
6502   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6503   # <limits.h> exists even on freestanding compilers.
6504   # On the NeXT, cc -E runs the code through the compiler's parser,
6505   # not just through cpp. "Syntax error" is here to catch this case.
6506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h.  */
6508 #ifdef __STDC__
6509 # include <limits.h>
6510 #else
6511 # include <assert.h>
6512 #endif
6513                      Syntax error
6514 _ACEOF
6515 if ac_fn_c_try_cpp "$LINENO"; then :
6516
6517 else
6518   # Broken: fails on valid input.
6519 continue
6520 fi
6521 rm -f conftest.err conftest.i conftest.$ac_ext
6522
6523   # OK, works on sane cases.  Now check whether nonexistent headers
6524   # can be detected and how.
6525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h.  */
6527 #include <ac_nonexistent.h>
6528 _ACEOF
6529 if ac_fn_c_try_cpp "$LINENO"; then :
6530   # Broken: success on invalid input.
6531 continue
6532 else
6533   # Passes both tests.
6534 ac_preproc_ok=:
6535 break
6536 fi
6537 rm -f conftest.err conftest.i conftest.$ac_ext
6538
6539 done
6540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6541 rm -f conftest.i conftest.err conftest.$ac_ext
6542 if $ac_preproc_ok; then :
6543   break
6544 fi
6545
6546     done
6547     ac_cv_prog_CPP=$CPP
6548
6549 fi
6550   CPP=$ac_cv_prog_CPP
6551 else
6552   ac_cv_prog_CPP=$CPP
6553 fi
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6555 $as_echo "$CPP" >&6; }
6556 ac_preproc_ok=false
6557 for ac_c_preproc_warn_flag in '' yes
6558 do
6559   # Use a header file that comes with gcc, so configuring glibc
6560   # with a fresh cross-compiler works.
6561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6562   # <limits.h> exists even on freestanding compilers.
6563   # On the NeXT, cc -E runs the code through the compiler's parser,
6564   # not just through cpp. "Syntax error" is here to catch this case.
6565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h.  */
6567 #ifdef __STDC__
6568 # include <limits.h>
6569 #else
6570 # include <assert.h>
6571 #endif
6572                      Syntax error
6573 _ACEOF
6574 if ac_fn_c_try_cpp "$LINENO"; then :
6575
6576 else
6577   # Broken: fails on valid input.
6578 continue
6579 fi
6580 rm -f conftest.err conftest.i conftest.$ac_ext
6581
6582   # OK, works on sane cases.  Now check whether nonexistent headers
6583   # can be detected and how.
6584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h.  */
6586 #include <ac_nonexistent.h>
6587 _ACEOF
6588 if ac_fn_c_try_cpp "$LINENO"; then :
6589   # Broken: success on invalid input.
6590 continue
6591 else
6592   # Passes both tests.
6593 ac_preproc_ok=:
6594 break
6595 fi
6596 rm -f conftest.err conftest.i conftest.$ac_ext
6597
6598 done
6599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6600 rm -f conftest.i conftest.err conftest.$ac_ext
6601 if $ac_preproc_ok; then :
6602
6603 else
6604   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6607 See \`config.log' for more details" "$LINENO" 5 ; }
6608 fi
6609
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6618 $as_echo_n "checking for ANSI C header files... " >&6; }
6619 if test "${ac_cv_header_stdc+set}" = set; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h.  */
6624 #include <stdlib.h>
6625 #include <stdarg.h>
6626 #include <string.h>
6627 #include <float.h>
6628
6629 int
6630 main ()
6631 {
6632
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638   ac_cv_header_stdc=yes
6639 else
6640   ac_cv_header_stdc=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643
6644 if test $ac_cv_header_stdc = yes; then
6645   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h.  */
6648 #include <string.h>
6649
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652   $EGREP "memchr" >/dev/null 2>&1; then :
6653
6654 else
6655   ac_cv_header_stdc=no
6656 fi
6657 rm -f conftest*
6658
6659 fi
6660
6661 if test $ac_cv_header_stdc = yes; then
6662   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h.  */
6665 #include <stdlib.h>
6666
6667 _ACEOF
6668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6669   $EGREP "free" >/dev/null 2>&1; then :
6670
6671 else
6672   ac_cv_header_stdc=no
6673 fi
6674 rm -f conftest*
6675
6676 fi
6677
6678 if test $ac_cv_header_stdc = yes; then
6679   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6680   if test "$cross_compiling" = yes; then :
6681   :
6682 else
6683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 #include <ctype.h>
6686 #include <stdlib.h>
6687 #if ((' ' & 0x0FF) == 0x020)
6688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6690 #else
6691 # define ISLOWER(c) \
6692                    (('a' <= (c) && (c) <= 'i') \
6693                      || ('j' <= (c) && (c) <= 'r') \
6694                      || ('s' <= (c) && (c) <= 'z'))
6695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6696 #endif
6697
6698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6699 int
6700 main ()
6701 {
6702   int i;
6703   for (i = 0; i < 256; i++)
6704     if (XOR (islower (i), ISLOWER (i))
6705         || toupper (i) != TOUPPER (i))
6706       return 2;
6707   return 0;
6708 }
6709 _ACEOF
6710 if ac_fn_c_try_run "$LINENO"; then :
6711
6712 else
6713   ac_cv_header_stdc=no
6714 fi
6715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6716   conftest.$ac_objext conftest.beam conftest.$ac_ext
6717 fi
6718
6719 fi
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6722 $as_echo "$ac_cv_header_stdc" >&6; }
6723 if test $ac_cv_header_stdc = yes; then
6724
6725 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6726
6727 fi
6728
6729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6731                   inttypes.h stdint.h unistd.h
6732 do :
6733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6735 "
6736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6737   cat >>confdefs.h <<_ACEOF
6738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6739 _ACEOF
6740
6741 fi
6742
6743 done
6744
6745
6746 for ac_header in dlfcn.h
6747 do :
6748   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6749 "
6750 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6751   cat >>confdefs.h <<_ACEOF
6752 #define HAVE_DLFCN_H 1
6753 _ACEOF
6754
6755 fi
6756
6757 done
6758
6759
6760
6761 # Set options
6762
6763
6764
6765         enable_dlopen=no
6766
6767
6768   enable_win32_dll=no
6769
6770
6771             # Check whether --enable-shared was given.
6772 if test "${enable_shared+set}" = set; then :
6773   enableval=$enable_shared; p=${PACKAGE-default}
6774     case $enableval in
6775     yes) enable_shared=yes ;;
6776     no) enable_shared=no ;;
6777     *)
6778       enable_shared=no
6779       # Look at the argument we got.  We use all the common list separators.
6780       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6781       for pkg in $enableval; do
6782         IFS="$lt_save_ifs"
6783         if test "X$pkg" = "X$p"; then
6784           enable_shared=yes
6785         fi
6786       done
6787       IFS="$lt_save_ifs"
6788       ;;
6789     esac
6790 else
6791   enable_shared=yes
6792 fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802   # Check whether --enable-static was given.
6803 if test "${enable_static+set}" = set; then :
6804   enableval=$enable_static; p=${PACKAGE-default}
6805     case $enableval in
6806     yes) enable_static=yes ;;
6807     no) enable_static=no ;;
6808     *)
6809      enable_static=no
6810       # Look at the argument we got.  We use all the common list separators.
6811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6812       for pkg in $enableval; do
6813         IFS="$lt_save_ifs"
6814         if test "X$pkg" = "X$p"; then
6815           enable_static=yes
6816         fi
6817       done
6818       IFS="$lt_save_ifs"
6819       ;;
6820     esac
6821 else
6822   enable_static=yes
6823 fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834 # Check whether --with-pic was given.
6835 if test "${with_pic+set}" = set; then :
6836   withval=$with_pic; pic_mode="$withval"
6837 else
6838   pic_mode=default
6839 fi
6840
6841
6842 test -z "$pic_mode" && pic_mode=default
6843
6844
6845
6846
6847
6848
6849
6850   # Check whether --enable-fast-install was given.
6851 if test "${enable_fast_install+set}" = set; then :
6852   enableval=$enable_fast_install; p=${PACKAGE-default}
6853     case $enableval in
6854     yes) enable_fast_install=yes ;;
6855     no) enable_fast_install=no ;;
6856     *)
6857       enable_fast_install=no
6858       # Look at the argument we got.  We use all the common list separators.
6859       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6860       for pkg in $enableval; do
6861         IFS="$lt_save_ifs"
6862         if test "X$pkg" = "X$p"; then
6863           enable_fast_install=yes
6864         fi
6865       done
6866       IFS="$lt_save_ifs"
6867       ;;
6868     esac
6869 else
6870   enable_fast_install=yes
6871 fi
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 # This can be used to rebuild libtool when needed
6884 LIBTOOL_DEPS="$ltmain"
6885
6886 # Always use our own libtool.
6887 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913 test -z "$LN_S" && LN_S="ln -s"
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928 if test -n "${ZSH_VERSION+set}" ; then
6929    setopt NO_GLOB_SUBST
6930 fi
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6933 $as_echo_n "checking for objdir... " >&6; }
6934 if test "${lt_cv_objdir+set}" = set; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   rm -f .libs 2>/dev/null
6938 mkdir .libs 2>/dev/null
6939 if test -d .libs; then
6940   lt_cv_objdir=.libs
6941 else
6942   # MS-DOS does not allow filenames that begin with a dot.
6943   lt_cv_objdir=_libs
6944 fi
6945 rmdir .libs 2>/dev/null
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6948 $as_echo "$lt_cv_objdir" >&6; }
6949 objdir=$lt_cv_objdir
6950
6951
6952
6953
6954
6955 cat >>confdefs.h <<_ACEOF
6956 #define LT_OBJDIR "$lt_cv_objdir/"
6957 _ACEOF
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975 case $host_os in
6976 aix3*)
6977   # AIX sometimes has problems with the GCC collect2 program.  For some
6978   # reason, if we set the COLLECT_NAMES environment variable, the problems
6979   # vanish in a puff of smoke.
6980   if test "X${COLLECT_NAMES+set}" != Xset; then
6981     COLLECT_NAMES=
6982     export COLLECT_NAMES
6983   fi
6984   ;;
6985 esac
6986
6987 # Sed substitution that helps us do robust quoting.  It backslashifies
6988 # metacharacters that are still active within double-quoted strings.
6989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6990
6991 # Same as above, but do not quote variable references.
6992 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6993
6994 # Sed substitution to delay expansion of an escaped shell variable in a
6995 # double_quote_subst'ed string.
6996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6997
6998 # Sed substitution to delay expansion of an escaped single quote.
6999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7000
7001 # Sed substitution to avoid accidental globbing in evaled expressions
7002 no_glob_subst='s/\*/\\\*/g'
7003
7004 # Global variables:
7005 ofile=libtool
7006 can_build_shared=yes
7007
7008 # All known linkers require a `.a' archive for static linking (except MSVC,
7009 # which needs '.lib').
7010 libext=a
7011
7012 with_gnu_ld="$lt_cv_prog_gnu_ld"
7013
7014 old_CC="$CC"
7015 old_CFLAGS="$CFLAGS"
7016
7017 # Set sane defaults for various variables
7018 test -z "$CC" && CC=cc
7019 test -z "$LTCC" && LTCC=$CC
7020 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7021 test -z "$LD" && LD=ld
7022 test -z "$ac_objext" && ac_objext=o
7023
7024 for cc_temp in $compiler""; do
7025   case $cc_temp in
7026     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7027     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7028     \-*) ;;
7029     *) break;;
7030   esac
7031 done
7032 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7033
7034
7035 # Only perform the check for file, if the check method requires it
7036 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7037 case $deplibs_check_method in
7038 file_magic*)
7039   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7041 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7042 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   case $MAGIC_CMD in
7046 [\\/*] |  ?:[\\/]*)
7047   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7048   ;;
7049 *)
7050   lt_save_MAGIC_CMD="$MAGIC_CMD"
7051   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7052   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7053   for ac_dir in $ac_dummy; do
7054     IFS="$lt_save_ifs"
7055     test -z "$ac_dir" && ac_dir=.
7056     if test -f $ac_dir/${ac_tool_prefix}file; then
7057       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7058       if test -n "$file_magic_test_file"; then
7059         case $deplibs_check_method in
7060         "file_magic "*)
7061           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7062           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7063           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7064             $EGREP "$file_magic_regex" > /dev/null; then
7065             :
7066           else
7067             cat <<_LT_EOF 1>&2
7068
7069 *** Warning: the command libtool uses to detect shared libraries,
7070 *** $file_magic_cmd, produces output that libtool cannot recognize.
7071 *** The result is that libtool may fail to recognize shared libraries
7072 *** as such.  This will affect the creation of libtool libraries that
7073 *** depend on shared libraries, but programs linked with such libtool
7074 *** libraries will work regardless of this problem.  Nevertheless, you
7075 *** may want to report the problem to your system manager and/or to
7076 *** bug-libtool@gnu.org
7077
7078 _LT_EOF
7079           fi ;;
7080         esac
7081       fi
7082       break
7083     fi
7084   done
7085   IFS="$lt_save_ifs"
7086   MAGIC_CMD="$lt_save_MAGIC_CMD"
7087   ;;
7088 esac
7089 fi
7090
7091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7092 if test -n "$MAGIC_CMD"; then
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7094 $as_echo "$MAGIC_CMD" >&6; }
7095 else
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101
7102
7103
7104 if test -z "$lt_cv_path_MAGIC_CMD"; then
7105   if test -n "$ac_tool_prefix"; then
7106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7107 $as_echo_n "checking for file... " >&6; }
7108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   case $MAGIC_CMD in
7112 [\\/*] |  ?:[\\/]*)
7113   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7114   ;;
7115 *)
7116   lt_save_MAGIC_CMD="$MAGIC_CMD"
7117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7118   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7119   for ac_dir in $ac_dummy; do
7120     IFS="$lt_save_ifs"
7121     test -z "$ac_dir" && ac_dir=.
7122     if test -f $ac_dir/file; then
7123       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7124       if test -n "$file_magic_test_file"; then
7125         case $deplibs_check_method in
7126         "file_magic "*)
7127           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7128           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7129           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7130             $EGREP "$file_magic_regex" > /dev/null; then
7131             :
7132           else
7133             cat <<_LT_EOF 1>&2
7134
7135 *** Warning: the command libtool uses to detect shared libraries,
7136 *** $file_magic_cmd, produces output that libtool cannot recognize.
7137 *** The result is that libtool may fail to recognize shared libraries
7138 *** as such.  This will affect the creation of libtool libraries that
7139 *** depend on shared libraries, but programs linked with such libtool
7140 *** libraries will work regardless of this problem.  Nevertheless, you
7141 *** may want to report the problem to your system manager and/or to
7142 *** bug-libtool@gnu.org
7143
7144 _LT_EOF
7145           fi ;;
7146         esac
7147       fi
7148       break
7149     fi
7150   done
7151   IFS="$lt_save_ifs"
7152   MAGIC_CMD="$lt_save_MAGIC_CMD"
7153   ;;
7154 esac
7155 fi
7156
7157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158 if test -n "$MAGIC_CMD"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7160 $as_echo "$MAGIC_CMD" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166
7167   else
7168     MAGIC_CMD=:
7169   fi
7170 fi
7171
7172   fi
7173   ;;
7174 esac
7175
7176 # Use C for the default configuration in the libtool script
7177
7178 lt_save_CC="$CC"
7179 ac_ext=c
7180 ac_cpp='$CPP $CPPFLAGS'
7181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184
7185
7186 # Source file extension for C test sources.
7187 ac_ext=c
7188
7189 # Object file extension for compiled C test sources.
7190 objext=o
7191 objext=$objext
7192
7193 # Code to be used in simple compile tests
7194 lt_simple_compile_test_code="int some_variable = 0;"
7195
7196 # Code to be used in simple link tests
7197 lt_simple_link_test_code='int main(){return(0);}'
7198
7199
7200
7201
7202
7203
7204
7205 # If no C compiler was specified, use CC.
7206 LTCC=${LTCC-"$CC"}
7207
7208 # If no C compiler flags were specified, use CFLAGS.
7209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7210
7211 # Allow CC to be a program name with arguments.
7212 compiler=$CC
7213
7214 # Save the default compiler, since it gets overwritten when the other
7215 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7216 compiler_DEFAULT=$CC
7217
7218 # save warnings/boilerplate of simple test code
7219 ac_outfile=conftest.$ac_objext
7220 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7221 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7222 _lt_compiler_boilerplate=`cat conftest.err`
7223 $RM conftest*
7224
7225 ac_outfile=conftest.$ac_objext
7226 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7227 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7228 _lt_linker_boilerplate=`cat conftest.err`
7229 $RM -r conftest*
7230
7231
7232 if test -n "$compiler"; then
7233
7234 lt_prog_compiler_no_builtin_flag=
7235
7236 if test "$GCC" = yes; then
7237   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7238
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7240 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7241 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   lt_cv_prog_compiler_rtti_exceptions=no
7245    ac_outfile=conftest.$ac_objext
7246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7247    lt_compiler_flag="-fno-rtti -fno-exceptions"
7248    # Insert the option either (1) after the last *FLAGS variable, or
7249    # (2) before a word containing "conftest.", or (3) at the end.
7250    # Note that $ac_compile itself does not contain backslashes and begins
7251    # with a dollar sign (not a hyphen), so the echo should work correctly.
7252    # The option is referenced via a variable to avoid confusing sed.
7253    lt_compile=`echo "$ac_compile" | $SED \
7254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7256    -e 's:$: $lt_compiler_flag:'`
7257    (eval echo "\"\$as_me:7257: $lt_compile\"" >&5)
7258    (eval "$lt_compile" 2>conftest.err)
7259    ac_status=$?
7260    cat conftest.err >&5
7261    echo "$as_me:7261: \$? = $ac_status" >&5
7262    if (exit $ac_status) && test -s "$ac_outfile"; then
7263      # The compiler can only warn and ignore the option if not recognized
7264      # So say no if there are warnings other than the usual output.
7265      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7268        lt_cv_prog_compiler_rtti_exceptions=yes
7269      fi
7270    fi
7271    $RM conftest*
7272
7273 fi
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7275 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7276
7277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7278     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7279 else
7280     :
7281 fi
7282
7283 fi
7284
7285
7286
7287
7288
7289
7290   lt_prog_compiler_wl=
7291 lt_prog_compiler_pic=
7292 lt_prog_compiler_static=
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7295 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7296
7297   if test "$GCC" = yes; then
7298     lt_prog_compiler_wl='-Wl,'
7299     lt_prog_compiler_static='-static'
7300
7301     case $host_os in
7302       aix*)
7303       # All AIX code is PIC.
7304       if test "$host_cpu" = ia64; then
7305         # AIX 5 now supports IA64 processor
7306         lt_prog_compiler_static='-Bstatic'
7307       fi
7308       ;;
7309
7310     amigaos*)
7311       case $host_cpu in
7312       powerpc)
7313             # see comment about AmigaOS4 .so support
7314             lt_prog_compiler_pic='-fPIC'
7315         ;;
7316       m68k)
7317             # FIXME: we need at least 68020 code to build shared libraries, but
7318             # adding the `-m68020' flag to GCC prevents building anything better,
7319             # like `-m68040'.
7320             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7321         ;;
7322       esac
7323       ;;
7324
7325     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7326       # PIC is the default for these OSes.
7327       ;;
7328
7329     mingw* | cygwin* | pw32* | os2* | cegcc*)
7330       # This hack is so that the source file can tell whether it is being
7331       # built for inclusion in a dll (and should export symbols for example).
7332       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7333       # (--disable-auto-import) libraries
7334       lt_prog_compiler_pic='-DDLL_EXPORT'
7335       ;;
7336
7337     darwin* | rhapsody*)
7338       # PIC is the default on this platform
7339       # Common symbols not allowed in MH_DYLIB files
7340       lt_prog_compiler_pic='-fno-common'
7341       ;;
7342
7343     hpux*)
7344       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7345       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7346       # sets the default TLS model and affects inlining.
7347       case $host_cpu in
7348       hppa*64*)
7349         # +Z the default
7350         ;;
7351       *)
7352         lt_prog_compiler_pic='-fPIC'
7353         ;;
7354       esac
7355       ;;
7356
7357     interix[3-9]*)
7358       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7359       # Instead, we relocate shared libraries at runtime.
7360       ;;
7361
7362     msdosdjgpp*)
7363       # Just because we use GCC doesn't mean we suddenly get shared libraries
7364       # on systems that don't support them.
7365       lt_prog_compiler_can_build_shared=no
7366       enable_shared=no
7367       ;;
7368
7369     *nto* | *qnx*)
7370       # QNX uses GNU C++, but need to define -shared option too, otherwise
7371       # it will coredump.
7372       lt_prog_compiler_pic='-fPIC -shared'
7373       ;;
7374
7375     sysv4*MP*)
7376       if test -d /usr/nec; then
7377         lt_prog_compiler_pic=-Kconform_pic
7378       fi
7379       ;;
7380
7381     *)
7382       lt_prog_compiler_pic='-fPIC'
7383       ;;
7384     esac
7385   else
7386     # PORTME Check for flag to pass linker flags through the system compiler.
7387     case $host_os in
7388     aix*)
7389       lt_prog_compiler_wl='-Wl,'
7390       if test "$host_cpu" = ia64; then
7391         # AIX 5 now supports IA64 processor
7392         lt_prog_compiler_static='-Bstatic'
7393       else
7394         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7395       fi
7396       ;;
7397
7398     mingw* | cygwin* | pw32* | os2* | cegcc*)
7399       # This hack is so that the source file can tell whether it is being
7400       # built for inclusion in a dll (and should export symbols for example).
7401       lt_prog_compiler_pic='-DDLL_EXPORT'
7402       ;;
7403
7404     hpux9* | hpux10* | hpux11*)
7405       lt_prog_compiler_wl='-Wl,'
7406       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7407       # not for PA HP-UX.
7408       case $host_cpu in
7409       hppa*64*|ia64*)
7410         # +Z the default
7411         ;;
7412       *)
7413         lt_prog_compiler_pic='+Z'
7414         ;;
7415       esac
7416       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7417       lt_prog_compiler_static='${wl}-a ${wl}archive'
7418       ;;
7419
7420     irix5* | irix6* | nonstopux*)
7421       lt_prog_compiler_wl='-Wl,'
7422       # PIC (with -KPIC) is the default.
7423       lt_prog_compiler_static='-non_shared'
7424       ;;
7425
7426     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7427       case $cc_basename in
7428       # old Intel for x86_64 which still supported -KPIC.
7429       ecc*)
7430         lt_prog_compiler_wl='-Wl,'
7431         lt_prog_compiler_pic='-KPIC'
7432         lt_prog_compiler_static='-static'
7433         ;;
7434       # icc used to be incompatible with GCC.
7435       # ICC 10 doesn't accept -KPIC any more.
7436       icc* | ifort*)
7437         lt_prog_compiler_wl='-Wl,'
7438         lt_prog_compiler_pic='-fPIC'
7439         lt_prog_compiler_static='-static'
7440         ;;
7441       # Lahey Fortran 8.1.
7442       lf95*)
7443         lt_prog_compiler_wl='-Wl,'
7444         lt_prog_compiler_pic='--shared'
7445         lt_prog_compiler_static='--static'
7446         ;;
7447       pgcc* | pgf77* | pgf90* | pgf95*)
7448         # Portland Group compilers (*not* the Pentium gcc compiler,
7449         # which looks to be a dead project)
7450         lt_prog_compiler_wl='-Wl,'
7451         lt_prog_compiler_pic='-fpic'
7452         lt_prog_compiler_static='-Bstatic'
7453         ;;
7454       ccc*)
7455         lt_prog_compiler_wl='-Wl,'
7456         # All Alpha code is PIC.
7457         lt_prog_compiler_static='-non_shared'
7458         ;;
7459       xl*)
7460         # IBM XL C 8.0/Fortran 10.1 on PPC
7461         lt_prog_compiler_wl='-Wl,'
7462         lt_prog_compiler_pic='-qpic'
7463         lt_prog_compiler_static='-qstaticlink'
7464         ;;
7465       *)
7466         case `$CC -V 2>&1 | sed 5q` in
7467         *Sun\ C*)
7468           # Sun C 5.9
7469           lt_prog_compiler_pic='-KPIC'
7470           lt_prog_compiler_static='-Bstatic'
7471           lt_prog_compiler_wl='-Wl,'
7472           ;;
7473         *Sun\ F*)
7474           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7475           lt_prog_compiler_pic='-KPIC'
7476           lt_prog_compiler_static='-Bstatic'
7477           lt_prog_compiler_wl=''
7478           ;;
7479         esac
7480         ;;
7481       esac
7482       ;;
7483
7484     newsos6)
7485       lt_prog_compiler_pic='-KPIC'
7486       lt_prog_compiler_static='-Bstatic'
7487       ;;
7488
7489     *nto* | *qnx*)
7490       # QNX uses GNU C++, but need to define -shared option too, otherwise
7491       # it will coredump.
7492       lt_prog_compiler_pic='-fPIC -shared'
7493       ;;
7494
7495     osf3* | osf4* | osf5*)
7496       lt_prog_compiler_wl='-Wl,'
7497       # All OSF/1 code is PIC.
7498       lt_prog_compiler_static='-non_shared'
7499       ;;
7500
7501     rdos*)
7502       lt_prog_compiler_static='-non_shared'
7503       ;;
7504
7505     solaris*)
7506       lt_prog_compiler_pic='-KPIC'
7507       lt_prog_compiler_static='-Bstatic'
7508       case $cc_basename in
7509       f77* | f90* | f95*)
7510         lt_prog_compiler_wl='-Qoption ld ';;
7511       *)
7512         lt_prog_compiler_wl='-Wl,';;
7513       esac
7514       ;;
7515
7516     sunos4*)
7517       lt_prog_compiler_wl='-Qoption ld '
7518       lt_prog_compiler_pic='-PIC'
7519       lt_prog_compiler_static='-Bstatic'
7520       ;;
7521
7522     sysv4 | sysv4.2uw2* | sysv4.3*)
7523       lt_prog_compiler_wl='-Wl,'
7524       lt_prog_compiler_pic='-KPIC'
7525       lt_prog_compiler_static='-Bstatic'
7526       ;;
7527
7528     sysv4*MP*)
7529       if test -d /usr/nec ;then
7530         lt_prog_compiler_pic='-Kconform_pic'
7531         lt_prog_compiler_static='-Bstatic'
7532       fi
7533       ;;
7534
7535     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7536       lt_prog_compiler_wl='-Wl,'
7537       lt_prog_compiler_pic='-KPIC'
7538       lt_prog_compiler_static='-Bstatic'
7539       ;;
7540
7541     unicos*)
7542       lt_prog_compiler_wl='-Wl,'
7543       lt_prog_compiler_can_build_shared=no
7544       ;;
7545
7546     uts4*)
7547       lt_prog_compiler_pic='-pic'
7548       lt_prog_compiler_static='-Bstatic'
7549       ;;
7550
7551     *)
7552       lt_prog_compiler_can_build_shared=no
7553       ;;
7554     esac
7555   fi
7556
7557 case $host_os in
7558   # For platforms which do not support PIC, -DPIC is meaningless:
7559   *djgpp*)
7560     lt_prog_compiler_pic=
7561     ;;
7562   *)
7563     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7564     ;;
7565 esac
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7567 $as_echo "$lt_prog_compiler_pic" >&6; }
7568
7569
7570
7571
7572
7573
7574 #
7575 # Check to make sure the PIC flag actually works.
7576 #
7577 if test -n "$lt_prog_compiler_pic"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7580 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   lt_cv_prog_compiler_pic_works=no
7584    ac_outfile=conftest.$ac_objext
7585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7587    # Insert the option either (1) after the last *FLAGS variable, or
7588    # (2) before a word containing "conftest.", or (3) at the end.
7589    # Note that $ac_compile itself does not contain backslashes and begins
7590    # with a dollar sign (not a hyphen), so the echo should work correctly.
7591    # The option is referenced via a variable to avoid confusing sed.
7592    lt_compile=`echo "$ac_compile" | $SED \
7593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595    -e 's:$: $lt_compiler_flag:'`
7596    (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597    (eval "$lt_compile" 2>conftest.err)
7598    ac_status=$?
7599    cat conftest.err >&5
7600    echo "$as_me:7600: \$? = $ac_status" >&5
7601    if (exit $ac_status) && test -s "$ac_outfile"; then
7602      # The compiler can only warn and ignore the option if not recognized
7603      # So say no if there are warnings other than the usual output.
7604      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7605      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7606      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7607        lt_cv_prog_compiler_pic_works=yes
7608      fi
7609    fi
7610    $RM conftest*
7611
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7614 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7615
7616 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7617     case $lt_prog_compiler_pic in
7618      "" | " "*) ;;
7619      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7620      esac
7621 else
7622     lt_prog_compiler_pic=
7623      lt_prog_compiler_can_build_shared=no
7624 fi
7625
7626 fi
7627
7628
7629
7630
7631
7632
7633 #
7634 # Check to make sure the static flag actually works.
7635 #
7636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7639 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   lt_cv_prog_compiler_static_works=no
7643    save_LDFLAGS="$LDFLAGS"
7644    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7645    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7647      # The linker can only warn and ignore the option if not recognized
7648      # So say no if there are warnings
7649      if test -s conftest.err; then
7650        # Append any errors to the config.log.
7651        cat conftest.err 1>&5
7652        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7654        if diff conftest.exp conftest.er2 >/dev/null; then
7655          lt_cv_prog_compiler_static_works=yes
7656        fi
7657      else
7658        lt_cv_prog_compiler_static_works=yes
7659      fi
7660    fi
7661    $RM -r conftest*
7662    LDFLAGS="$save_LDFLAGS"
7663
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7666 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7667
7668 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7669     :
7670 else
7671     lt_prog_compiler_static=
7672 fi
7673
7674
7675
7676
7677
7678
7679
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7682 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   lt_cv_prog_compiler_c_o=no
7686    $RM -r conftest 2>/dev/null
7687    mkdir conftest
7688    cd conftest
7689    mkdir out
7690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7691
7692    lt_compiler_flag="-o out/conftest2.$ac_objext"
7693    # Insert the option either (1) after the last *FLAGS variable, or
7694    # (2) before a word containing "conftest.", or (3) at the end.
7695    # Note that $ac_compile itself does not contain backslashes and begins
7696    # with a dollar sign (not a hyphen), so the echo should work correctly.
7697    lt_compile=`echo "$ac_compile" | $SED \
7698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700    -e 's:$: $lt_compiler_flag:'`
7701    (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
7702    (eval "$lt_compile" 2>out/conftest.err)
7703    ac_status=$?
7704    cat out/conftest.err >&5
7705    echo "$as_me:7705: \$? = $ac_status" >&5
7706    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7707    then
7708      # The compiler can only warn and ignore the option if not recognized
7709      # So say no if there are warnings
7710      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7711      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7712      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7713        lt_cv_prog_compiler_c_o=yes
7714      fi
7715    fi
7716    chmod u+w . 2>&5
7717    $RM conftest*
7718    # SGI C++ compiler will create directory out/ii_files/ for
7719    # template instantiation
7720    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7721    $RM out/* && rmdir out
7722    cd ..
7723    $RM -r conftest
7724    $RM conftest*
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7728 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7729
7730
7731
7732
7733
7734
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7736 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7737 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   lt_cv_prog_compiler_c_o=no
7741    $RM -r conftest 2>/dev/null
7742    mkdir conftest
7743    cd conftest
7744    mkdir out
7745    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7746
7747    lt_compiler_flag="-o out/conftest2.$ac_objext"
7748    # Insert the option either (1) after the last *FLAGS variable, or
7749    # (2) before a word containing "conftest.", or (3) at the end.
7750    # Note that $ac_compile itself does not contain backslashes and begins
7751    # with a dollar sign (not a hyphen), so the echo should work correctly.
7752    lt_compile=`echo "$ac_compile" | $SED \
7753    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7754    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7755    -e 's:$: $lt_compiler_flag:'`
7756    (eval echo "\"\$as_me:7756: $lt_compile\"" >&5)
7757    (eval "$lt_compile" 2>out/conftest.err)
7758    ac_status=$?
7759    cat out/conftest.err >&5
7760    echo "$as_me:7760: \$? = $ac_status" >&5
7761    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7762    then
7763      # The compiler can only warn and ignore the option if not recognized
7764      # So say no if there are warnings
7765      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7766      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7767      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7768        lt_cv_prog_compiler_c_o=yes
7769      fi
7770    fi
7771    chmod u+w . 2>&5
7772    $RM conftest*
7773    # SGI C++ compiler will create directory out/ii_files/ for
7774    # template instantiation
7775    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7776    $RM out/* && rmdir out
7777    cd ..
7778    $RM -r conftest
7779    $RM conftest*
7780
7781 fi
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7783 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7784
7785
7786
7787
7788 hard_links="nottested"
7789 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7790   # do not overwrite the value of need_locks provided by the user
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7792 $as_echo_n "checking if we can lock with hard links... " >&6; }
7793   hard_links=yes
7794   $RM conftest*
7795   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7796   touch conftest.a
7797   ln conftest.a conftest.b 2>&5 || hard_links=no
7798   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7800 $as_echo "$hard_links" >&6; }
7801   if test "$hard_links" = no; then
7802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7803 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7804     need_locks=warn
7805   fi
7806 else
7807   need_locks=no
7808 fi
7809
7810
7811
7812
7813
7814
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7817
7818   runpath_var=
7819   allow_undefined_flag=
7820   always_export_symbols=no
7821   archive_cmds=
7822   archive_expsym_cmds=
7823   compiler_needs_object=no
7824   enable_shared_with_static_runtimes=no
7825   export_dynamic_flag_spec=
7826   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7827   hardcode_automatic=no
7828   hardcode_direct=no
7829   hardcode_direct_absolute=no
7830   hardcode_libdir_flag_spec=
7831   hardcode_libdir_flag_spec_ld=
7832   hardcode_libdir_separator=
7833   hardcode_minus_L=no
7834   hardcode_shlibpath_var=unsupported
7835   inherit_rpath=no
7836   link_all_deplibs=unknown
7837   module_cmds=
7838   module_expsym_cmds=
7839   old_archive_from_new_cmds=
7840   old_archive_from_expsyms_cmds=
7841   thread_safe_flag_spec=
7842   whole_archive_flag_spec=
7843   # include_expsyms should be a list of space-separated symbols to be *always*
7844   # included in the symbol list
7845   include_expsyms=
7846   # exclude_expsyms can be an extended regexp of symbols to exclude
7847   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7848   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7849   # as well as any symbol that contains `d'.
7850   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7851   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7852   # platforms (ab)use it in PIC code, but their linkers get confused if
7853   # the symbol is explicitly referenced.  Since portable code cannot
7854   # rely on this symbol name, it's probably fine to never include it in
7855   # preloaded symbol tables.
7856   # Exclude shared library initialization/finalization symbols.
7857   extract_expsyms_cmds=
7858
7859   case $host_os in
7860   cygwin* | mingw* | pw32* | cegcc*)
7861     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7862     # When not using gcc, we currently assume that we are using
7863     # Microsoft Visual C++.
7864     if test "$GCC" != yes; then
7865       with_gnu_ld=no
7866     fi
7867     ;;
7868   interix*)
7869     # we just hope/assume this is gcc and not c89 (= MSVC++)
7870     with_gnu_ld=yes
7871     ;;
7872   openbsd*)
7873     with_gnu_ld=no
7874     ;;
7875   linux* | k*bsd*-gnu)
7876     link_all_deplibs=no
7877     ;;
7878   esac
7879
7880   ld_shlibs=yes
7881   if test "$with_gnu_ld" = yes; then
7882     # If archive_cmds runs LD, not CC, wlarc should be empty
7883     wlarc='${wl}'
7884
7885     # Set some defaults for GNU ld with shared library support. These
7886     # are reset later if shared libraries are not supported. Putting them
7887     # here allows them to be overridden if necessary.
7888     runpath_var=LD_RUN_PATH
7889     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7890     export_dynamic_flag_spec='${wl}--export-dynamic'
7891     # ancient GNU ld didn't support --whole-archive et. al.
7892     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7893       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7894     else
7895       whole_archive_flag_spec=
7896     fi
7897     supports_anon_versioning=no
7898     case `$LD -v 2>&1` in
7899       *GNU\ gold*) supports_anon_versioning=yes ;;
7900       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7901       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7902       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7903       *\ 2.11.*) ;; # other 2.11 versions
7904       *) supports_anon_versioning=yes ;;
7905     esac
7906
7907     # See if GNU ld supports shared libraries.
7908     case $host_os in
7909     aix[3-9]*)
7910       # On AIX/PPC, the GNU linker is very broken
7911       if test "$host_cpu" != ia64; then
7912         ld_shlibs=no
7913         cat <<_LT_EOF 1>&2
7914
7915 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7916 *** to be unable to reliably create shared libraries on AIX.
7917 *** Therefore, libtool is disabling shared libraries support.  If you
7918 *** really care for shared libraries, you may want to modify your PATH
7919 *** so that a non-GNU linker is found, and then restart.
7920
7921 _LT_EOF
7922       fi
7923       ;;
7924
7925     amigaos*)
7926       case $host_cpu in
7927       powerpc)
7928             # see comment about AmigaOS4 .so support
7929             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7930             archive_expsym_cmds=''
7931         ;;
7932       m68k)
7933             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)'
7934             hardcode_libdir_flag_spec='-L$libdir'
7935             hardcode_minus_L=yes
7936         ;;
7937       esac
7938       ;;
7939
7940     beos*)
7941       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7942         allow_undefined_flag=unsupported
7943         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7944         # support --undefined.  This deserves some investigation.  FIXME
7945         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946       else
7947         ld_shlibs=no
7948       fi
7949       ;;
7950
7951     cygwin* | mingw* | pw32* | cegcc*)
7952       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7953       # as there is no search path for DLLs.
7954       hardcode_libdir_flag_spec='-L$libdir'
7955       allow_undefined_flag=unsupported
7956       always_export_symbols=no
7957       enable_shared_with_static_runtimes=yes
7958       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7959
7960       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7961         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7962         # If the export-symbols file already is a .def file (1st line
7963         # is EXPORTS), use it as is; otherwise, prepend...
7964         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7965           cp $export_symbols $output_objdir/$soname.def;
7966         else
7967           echo EXPORTS > $output_objdir/$soname.def;
7968           cat $export_symbols >> $output_objdir/$soname.def;
7969         fi~
7970         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7971       else
7972         ld_shlibs=no
7973       fi
7974       ;;
7975
7976     interix[3-9]*)
7977       hardcode_direct=no
7978       hardcode_shlibpath_var=no
7979       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7980       export_dynamic_flag_spec='${wl}-E'
7981       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7982       # Instead, shared libraries are loaded at an image base (0x10000000 by
7983       # default) and relocated if they conflict, which is a slow very memory
7984       # consuming and fragmenting process.  To avoid this, we pick a random,
7985       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7986       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7987       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7988       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'
7989       ;;
7990
7991     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7992       tmp_diet=no
7993       if test "$host_os" = linux-dietlibc; then
7994         case $cc_basename in
7995           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7996         esac
7997       fi
7998       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7999          && test "$tmp_diet" = no
8000       then
8001         tmp_addflag=
8002         tmp_sharedflag='-shared'
8003         case $cc_basename,$host_cpu in
8004         pgcc*)                          # Portland Group C compiler
8005           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'
8006           tmp_addflag=' $pic_flag'
8007           ;;
8008         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8009           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'
8010           tmp_addflag=' $pic_flag -Mnomain' ;;
8011         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8012           tmp_addflag=' -i_dynamic' ;;
8013         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8014           tmp_addflag=' -i_dynamic -nofor_main' ;;
8015         ifc* | ifort*)                  # Intel Fortran compiler
8016           tmp_addflag=' -nofor_main' ;;
8017         lf95*)                          # Lahey Fortran 8.1
8018           whole_archive_flag_spec=
8019           tmp_sharedflag='--shared' ;;
8020         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8021           tmp_sharedflag='-qmkshrobj'
8022           tmp_addflag= ;;
8023         esac
8024         case `$CC -V 2>&1 | sed 5q` in
8025         *Sun\ C*)                       # Sun C 5.9
8026           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'
8027           compiler_needs_object=yes
8028           tmp_sharedflag='-G' ;;
8029         *Sun\ F*)                       # Sun Fortran 8.3
8030           tmp_sharedflag='-G' ;;
8031         esac
8032         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033
8034         if test "x$supports_anon_versioning" = xyes; then
8035           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8036             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8037             echo "local: *; };" >> $output_objdir/$libname.ver~
8038             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8039         fi
8040
8041         case $cc_basename in
8042         xlf*)
8043           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8044           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8045           hardcode_libdir_flag_spec=
8046           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8047           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8048           if test "x$supports_anon_versioning" = xyes; then
8049             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8050               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8051               echo "local: *; };" >> $output_objdir/$libname.ver~
8052               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8053           fi
8054           ;;
8055         esac
8056       else
8057         ld_shlibs=no
8058       fi
8059       ;;
8060
8061     netbsd* | netbsdelf*-gnu)
8062       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8063         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8064         wlarc=
8065       else
8066         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068       fi
8069       ;;
8070
8071     solaris*)
8072       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8073         ld_shlibs=no
8074         cat <<_LT_EOF 1>&2
8075
8076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8077 *** create shared libraries on Solaris systems.  Therefore, libtool
8078 *** is disabling shared libraries support.  We urge you to upgrade GNU
8079 *** binutils to release 2.9.1 or newer.  Another option is to modify
8080 *** your PATH or compiler configuration so that the native linker is
8081 *** used, and then restart.
8082
8083 _LT_EOF
8084       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8085         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8086         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8087       else
8088         ld_shlibs=no
8089       fi
8090       ;;
8091
8092     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8093       case `$LD -v 2>&1` in
8094         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8095         ld_shlibs=no
8096         cat <<_LT_EOF 1>&2
8097
8098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8099 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8100 *** is disabling shared libraries support.  We urge you to upgrade GNU
8101 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8102 *** your PATH or compiler configuration so that the native linker is
8103 *** used, and then restart.
8104
8105 _LT_EOF
8106         ;;
8107         *)
8108           # For security reasons, it is highly recommended that you always
8109           # use absolute paths for naming shared libraries, and exclude the
8110           # DT_RUNPATH tag from executables and libraries.  But doing so
8111           # requires that you compile everything twice, which is a pain.
8112           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8113             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8114             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8116           else
8117             ld_shlibs=no
8118           fi
8119         ;;
8120       esac
8121       ;;
8122
8123     sunos4*)
8124       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8125       wlarc=
8126       hardcode_direct=yes
8127       hardcode_shlibpath_var=no
8128       ;;
8129
8130     *)
8131       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8133         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8134       else
8135         ld_shlibs=no
8136       fi
8137       ;;
8138     esac
8139
8140     if test "$ld_shlibs" = no; then
8141       runpath_var=
8142       hardcode_libdir_flag_spec=
8143       export_dynamic_flag_spec=
8144       whole_archive_flag_spec=
8145     fi
8146   else
8147     # PORTME fill in a description of your system's linker (not GNU ld)
8148     case $host_os in
8149     aix3*)
8150       allow_undefined_flag=unsupported
8151       always_export_symbols=yes
8152       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'
8153       # Note: this linker hardcodes the directories in LIBPATH if there
8154       # are no directories specified by -L.
8155       hardcode_minus_L=yes
8156       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8157         # Neither direct hardcoding nor static linking is supported with a
8158         # broken collect2.
8159         hardcode_direct=unsupported
8160       fi
8161       ;;
8162
8163     aix[4-9]*)
8164       if test "$host_cpu" = ia64; then
8165         # On IA64, the linker does run time linking by default, so we don't
8166         # have to do anything special.
8167         aix_use_runtimelinking=no
8168         exp_sym_flag='-Bexport'
8169         no_entry_flag=""
8170       else
8171         # If we're using GNU nm, then we don't want the "-C" option.
8172         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8173         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8174           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'
8175         else
8176           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'
8177         fi
8178         aix_use_runtimelinking=no
8179
8180         # Test if we are trying to use run time linking or normal
8181         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8182         # need to do runtime linking.
8183         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8184           for ld_flag in $LDFLAGS; do
8185           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8186             aix_use_runtimelinking=yes
8187             break
8188           fi
8189           done
8190           ;;
8191         esac
8192
8193         exp_sym_flag='-bexport'
8194         no_entry_flag='-bnoentry'
8195       fi
8196
8197       # When large executables or shared objects are built, AIX ld can
8198       # have problems creating the table of contents.  If linking a library
8199       # or program results in "error TOC overflow" add -mminimal-toc to
8200       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8201       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8202
8203       archive_cmds=''
8204       hardcode_direct=yes
8205       hardcode_direct_absolute=yes
8206       hardcode_libdir_separator=':'
8207       link_all_deplibs=yes
8208       file_list_spec='${wl}-f,'
8209
8210       if test "$GCC" = yes; then
8211         case $host_os in aix4.[012]|aix4.[012].*)
8212         # We only want to do this on AIX 4.2 and lower, the check
8213         # below for broken collect2 doesn't work under 4.3+
8214           collect2name=`${CC} -print-prog-name=collect2`
8215           if test -f "$collect2name" &&
8216            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8217           then
8218           # We have reworked collect2
8219           :
8220           else
8221           # We have old collect2
8222           hardcode_direct=unsupported
8223           # It fails to find uninstalled libraries when the uninstalled
8224           # path is not listed in the libpath.  Setting hardcode_minus_L
8225           # to unsupported forces relinking
8226           hardcode_minus_L=yes
8227           hardcode_libdir_flag_spec='-L$libdir'
8228           hardcode_libdir_separator=
8229           fi
8230           ;;
8231         esac
8232         shared_flag='-shared'
8233         if test "$aix_use_runtimelinking" = yes; then
8234           shared_flag="$shared_flag "'${wl}-G'
8235         fi
8236         link_all_deplibs=no
8237       else
8238         # not using gcc
8239         if test "$host_cpu" = ia64; then
8240         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8241         # chokes on -Wl,-G. The following line is correct:
8242           shared_flag='-G'
8243         else
8244           if test "$aix_use_runtimelinking" = yes; then
8245             shared_flag='${wl}-G'
8246           else
8247             shared_flag='${wl}-bM:SRE'
8248           fi
8249         fi
8250       fi
8251
8252       export_dynamic_flag_spec='${wl}-bexpall'
8253       # It seems that -bexpall does not export symbols beginning with
8254       # underscore (_), so it is better to generate a list of symbols to export.
8255       always_export_symbols=yes
8256       if test "$aix_use_runtimelinking" = yes; then
8257         # Warning - without using the other runtime loading flags (-brtl),
8258         # -berok will link without error, but may produce a broken library.
8259         allow_undefined_flag='-berok'
8260         # Determine the default libpath from the value encoded in an
8261         # empty executable.
8262         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264
8265 int
8266 main ()
8267 {
8268
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274
8275 lt_aix_libpath_sed='
8276     /Import File Strings/,/^$/ {
8277         /^0/ {
8278             s/^0  *\(.*\)$/\1/
8279             p
8280         }
8281     }'
8282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8283 # Check for a 64-bit object if we didn't find anything.
8284 if test -z "$aix_libpath"; then
8285   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8286 fi
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289     conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8291
8292         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293         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"
8294       else
8295         if test "$host_cpu" = ia64; then
8296           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8297           allow_undefined_flag="-z nodefs"
8298           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"
8299         else
8300          # Determine the default libpath from the value encoded in an
8301          # empty executable.
8302          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304
8305 int
8306 main ()
8307 {
8308
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_link "$LINENO"; then :
8314
8315 lt_aix_libpath_sed='
8316     /Import File Strings/,/^$/ {
8317         /^0/ {
8318             s/^0  *\(.*\)$/\1/
8319             p
8320         }
8321     }'
8322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8323 # Check for a 64-bit object if we didn't find anything.
8324 if test -z "$aix_libpath"; then
8325   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8326 fi
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext \
8329     conftest$ac_exeext conftest.$ac_ext
8330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8331
8332          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8333           # Warning - without using the other run time loading flags,
8334           # -berok will link without error, but may produce a broken library.
8335           no_undefined_flag=' ${wl}-bernotok'
8336           allow_undefined_flag=' ${wl}-berok'
8337           # Exported symbols can be pulled into shared objects from archives
8338           whole_archive_flag_spec='$convenience'
8339           archive_cmds_need_lc=yes
8340           # This is similar to how AIX traditionally builds its shared libraries.
8341           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'
8342         fi
8343       fi
8344       ;;
8345
8346     amigaos*)
8347       case $host_cpu in
8348       powerpc)
8349             # see comment about AmigaOS4 .so support
8350             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351             archive_expsym_cmds=''
8352         ;;
8353       m68k)
8354             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)'
8355             hardcode_libdir_flag_spec='-L$libdir'
8356             hardcode_minus_L=yes
8357         ;;
8358       esac
8359       ;;
8360
8361     bsdi[45]*)
8362       export_dynamic_flag_spec=-rdynamic
8363       ;;
8364
8365     cygwin* | mingw* | pw32* | cegcc*)
8366       # When not using gcc, we currently assume that we are using
8367       # Microsoft Visual C++.
8368       # hardcode_libdir_flag_spec is actually meaningless, as there is
8369       # no search path for DLLs.
8370       hardcode_libdir_flag_spec=' '
8371       allow_undefined_flag=unsupported
8372       # Tell ltmain to make .lib files, not .a files.
8373       libext=lib
8374       # Tell ltmain to make .dll files, not .so files.
8375       shrext_cmds=".dll"
8376       # FIXME: Setting linknames here is a bad hack.
8377       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8378       # The linker will automatically build a .lib file if we build a DLL.
8379       old_archive_from_new_cmds='true'
8380       # FIXME: Should let the user specify the lib program.
8381       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8382       fix_srcfile_path='`cygpath -w "$srcfile"`'
8383       enable_shared_with_static_runtimes=yes
8384       ;;
8385
8386     darwin* | rhapsody*)
8387
8388
8389   archive_cmds_need_lc=no
8390   hardcode_direct=no
8391   hardcode_automatic=yes
8392   hardcode_shlibpath_var=unsupported
8393   whole_archive_flag_spec=''
8394   link_all_deplibs=yes
8395   allow_undefined_flag="$_lt_dar_allow_undefined"
8396   case $cc_basename in
8397      ifort*) _lt_dar_can_shared=yes ;;
8398      *) _lt_dar_can_shared=$GCC ;;
8399   esac
8400   if test "$_lt_dar_can_shared" = "yes"; then
8401     output_verbose_link_cmd=echo
8402     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8403     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8404     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}"
8405     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}"
8406
8407   else
8408   ld_shlibs=no
8409   fi
8410
8411       ;;
8412
8413     dgux*)
8414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415       hardcode_libdir_flag_spec='-L$libdir'
8416       hardcode_shlibpath_var=no
8417       ;;
8418
8419     freebsd1*)
8420       ld_shlibs=no
8421       ;;
8422
8423     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424     # support.  Future versions do this automatically, but an explicit c++rt0.o
8425     # does not break anything, and helps significantly (at the cost of a little
8426     # extra space).
8427     freebsd2.2*)
8428       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429       hardcode_libdir_flag_spec='-R$libdir'
8430       hardcode_direct=yes
8431       hardcode_shlibpath_var=no
8432       ;;
8433
8434     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8435     freebsd2*)
8436       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8437       hardcode_direct=yes
8438       hardcode_minus_L=yes
8439       hardcode_shlibpath_var=no
8440       ;;
8441
8442     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8443     freebsd* | dragonfly*)
8444       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445       hardcode_libdir_flag_spec='-R$libdir'
8446       hardcode_direct=yes
8447       hardcode_shlibpath_var=no
8448       ;;
8449
8450     hpux9*)
8451       if test "$GCC" = yes; then
8452         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'
8453       else
8454         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'
8455       fi
8456       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457       hardcode_libdir_separator=:
8458       hardcode_direct=yes
8459
8460       # hardcode_minus_L: Not really in the search PATH,
8461       # but as the default location of the library.
8462       hardcode_minus_L=yes
8463       export_dynamic_flag_spec='${wl}-E'
8464       ;;
8465
8466     hpux10*)
8467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469       else
8470         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8471       fi
8472       if test "$with_gnu_ld" = no; then
8473         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8474         hardcode_libdir_flag_spec_ld='+b $libdir'
8475         hardcode_libdir_separator=:
8476         hardcode_direct=yes
8477         hardcode_direct_absolute=yes
8478         export_dynamic_flag_spec='${wl}-E'
8479         # hardcode_minus_L: Not really in the search PATH,
8480         # but as the default location of the library.
8481         hardcode_minus_L=yes
8482       fi
8483       ;;
8484
8485     hpux11*)
8486       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8487         case $host_cpu in
8488         hppa*64*)
8489           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490           ;;
8491         ia64*)
8492           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8493           ;;
8494         *)
8495           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496           ;;
8497         esac
8498       else
8499         case $host_cpu in
8500         hppa*64*)
8501           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502           ;;
8503         ia64*)
8504           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8505           ;;
8506         *)
8507           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8508           ;;
8509         esac
8510       fi
8511       if test "$with_gnu_ld" = no; then
8512         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8513         hardcode_libdir_separator=:
8514
8515         case $host_cpu in
8516         hppa*64*|ia64*)
8517           hardcode_direct=no
8518           hardcode_shlibpath_var=no
8519           ;;
8520         *)
8521           hardcode_direct=yes
8522           hardcode_direct_absolute=yes
8523           export_dynamic_flag_spec='${wl}-E'
8524
8525           # hardcode_minus_L: Not really in the search PATH,
8526           # but as the default location of the library.
8527           hardcode_minus_L=yes
8528           ;;
8529         esac
8530       fi
8531       ;;
8532
8533     irix5* | irix6* | nonstopux*)
8534       if test "$GCC" = yes; then
8535         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'
8536         # Try to use the -exported_symbol ld option, if it does not
8537         # work, assume that -exports_file does not work either and
8538         # implicitly export all symbols.
8539         save_LDFLAGS="$LDFLAGS"
8540         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8541         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h.  */
8543 int foo(void) {}
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"; then :
8546   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'
8547
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext \
8550     conftest$ac_exeext conftest.$ac_ext
8551         LDFLAGS="$save_LDFLAGS"
8552       else
8553         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'
8554         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'
8555       fi
8556       archive_cmds_need_lc='no'
8557       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8558       hardcode_libdir_separator=:
8559       inherit_rpath=yes
8560       link_all_deplibs=yes
8561       ;;
8562
8563     netbsd* | netbsdelf*-gnu)
8564       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8565         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8566       else
8567         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8568       fi
8569       hardcode_libdir_flag_spec='-R$libdir'
8570       hardcode_direct=yes
8571       hardcode_shlibpath_var=no
8572       ;;
8573
8574     newsos6)
8575       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576       hardcode_direct=yes
8577       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8578       hardcode_libdir_separator=:
8579       hardcode_shlibpath_var=no
8580       ;;
8581
8582     *nto* | *qnx*)
8583       ;;
8584
8585     openbsd*)
8586       if test -f /usr/libexec/ld.so; then
8587         hardcode_direct=yes
8588         hardcode_shlibpath_var=no
8589         hardcode_direct_absolute=yes
8590         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8591           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8592           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8593           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8594           export_dynamic_flag_spec='${wl}-E'
8595         else
8596           case $host_os in
8597            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8598              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8599              hardcode_libdir_flag_spec='-R$libdir'
8600              ;;
8601            *)
8602              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8603              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604              ;;
8605           esac
8606         fi
8607       else
8608         ld_shlibs=no
8609       fi
8610       ;;
8611
8612     os2*)
8613       hardcode_libdir_flag_spec='-L$libdir'
8614       hardcode_minus_L=yes
8615       allow_undefined_flag=unsupported
8616       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'
8617       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8618       ;;
8619
8620     osf3*)
8621       if test "$GCC" = yes; then
8622         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8623         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'
8624       else
8625         allow_undefined_flag=' -expect_unresolved \*'
8626         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'
8627       fi
8628       archive_cmds_need_lc='no'
8629       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630       hardcode_libdir_separator=:
8631       ;;
8632
8633     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8634       if test "$GCC" = yes; then
8635         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8636         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'
8637         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638       else
8639         allow_undefined_flag=' -expect_unresolved \*'
8640         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'
8641         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~
8642         $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'
8643
8644         # Both c and cxx compiler support -rpath directly
8645         hardcode_libdir_flag_spec='-rpath $libdir'
8646       fi
8647       archive_cmds_need_lc='no'
8648       hardcode_libdir_separator=:
8649       ;;
8650
8651     solaris*)
8652       no_undefined_flag=' -z defs'
8653       if test "$GCC" = yes; then
8654         wlarc='${wl}'
8655         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8656         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8657           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8658       else
8659         case `$CC -V 2>&1` in
8660         *"Compilers 5.0"*)
8661           wlarc=''
8662           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8664           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8665           ;;
8666         *)
8667           wlarc='${wl}'
8668           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8669           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8670           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8671           ;;
8672         esac
8673       fi
8674       hardcode_libdir_flag_spec='-R$libdir'
8675       hardcode_shlibpath_var=no
8676       case $host_os in
8677       solaris2.[0-5] | solaris2.[0-5].*) ;;
8678       *)
8679         # The compiler driver will combine and reorder linker options,
8680         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8681         # but is careful enough not to reorder.
8682         # Supported since Solaris 2.6 (maybe 2.5.1?)
8683         if test "$GCC" = yes; then
8684           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8685         else
8686           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8687         fi
8688         ;;
8689       esac
8690       link_all_deplibs=yes
8691       ;;
8692
8693     sunos4*)
8694       if test "x$host_vendor" = xsequent; then
8695         # Use $CC to link under sequent, because it throws in some extra .o
8696         # files that make .init and .fini sections work.
8697         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8698       else
8699         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8700       fi
8701       hardcode_libdir_flag_spec='-L$libdir'
8702       hardcode_direct=yes
8703       hardcode_minus_L=yes
8704       hardcode_shlibpath_var=no
8705       ;;
8706
8707     sysv4)
8708       case $host_vendor in
8709         sni)
8710           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8711           hardcode_direct=yes # is this really true???
8712         ;;
8713         siemens)
8714           ## LD is ld it makes a PLAMLIB
8715           ## CC just makes a GrossModule.
8716           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8717           reload_cmds='$CC -r -o $output$reload_objs'
8718           hardcode_direct=no
8719         ;;
8720         motorola)
8721           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8723         ;;
8724       esac
8725       runpath_var='LD_RUN_PATH'
8726       hardcode_shlibpath_var=no
8727       ;;
8728
8729     sysv4.3*)
8730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731       hardcode_shlibpath_var=no
8732       export_dynamic_flag_spec='-Bexport'
8733       ;;
8734
8735     sysv4*MP*)
8736       if test -d /usr/nec; then
8737         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738         hardcode_shlibpath_var=no
8739         runpath_var=LD_RUN_PATH
8740         hardcode_runpath_var=yes
8741         ld_shlibs=yes
8742       fi
8743       ;;
8744
8745     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8746       no_undefined_flag='${wl}-z,text'
8747       archive_cmds_need_lc=no
8748       hardcode_shlibpath_var=no
8749       runpath_var='LD_RUN_PATH'
8750
8751       if test "$GCC" = yes; then
8752         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754       else
8755         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8756         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757       fi
8758       ;;
8759
8760     sysv5* | sco3.2v5* | sco5v6*)
8761       # Note: We can NOT use -z defs as we might desire, because we do not
8762       # link with -lc, and that would cause any symbols used from libc to
8763       # always be unresolved, which means just about no library would
8764       # ever link correctly.  If we're not using GNU ld we use -z text
8765       # though, which does catch some bad symbols but isn't as heavy-handed
8766       # as -z defs.
8767       no_undefined_flag='${wl}-z,text'
8768       allow_undefined_flag='${wl}-z,nodefs'
8769       archive_cmds_need_lc=no
8770       hardcode_shlibpath_var=no
8771       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8772       hardcode_libdir_separator=':'
8773       link_all_deplibs=yes
8774       export_dynamic_flag_spec='${wl}-Bexport'
8775       runpath_var='LD_RUN_PATH'
8776
8777       if test "$GCC" = yes; then
8778         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8779         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8780       else
8781         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8782         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8783       fi
8784       ;;
8785
8786     uts4*)
8787       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788       hardcode_libdir_flag_spec='-L$libdir'
8789       hardcode_shlibpath_var=no
8790       ;;
8791
8792     *)
8793       ld_shlibs=no
8794       ;;
8795     esac
8796
8797     if test x$host_vendor = xsni; then
8798       case $host in
8799       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8800         export_dynamic_flag_spec='${wl}-Blargedynsym'
8801         ;;
8802       esac
8803     fi
8804   fi
8805
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8807 $as_echo "$ld_shlibs" >&6; }
8808 test "$ld_shlibs" = no && can_build_shared=no
8809
8810 with_gnu_ld=$with_gnu_ld
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826 #
8827 # Do we need to explicitly link libc?
8828 #
8829 case "x$archive_cmds_need_lc" in
8830 x|xyes)
8831   # Assume -lc should be added
8832   archive_cmds_need_lc=yes
8833
8834   if test "$enable_shared" = yes && test "$GCC" = yes; then
8835     case $archive_cmds in
8836     *'~'*)
8837       # FIXME: we may have to deal with multi-command sequences.
8838       ;;
8839     '$CC '*)
8840       # Test whether the compiler implicitly links with -lc since on some
8841       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8842       # to ld, don't add -lc before -lgcc.
8843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8844 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8845       $RM conftest*
8846       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847
8848       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8849   (eval $ac_compile) 2>&5
8850   ac_status=$?
8851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8852   test $ac_status = 0; } 2>conftest.err; then
8853         soname=conftest
8854         lib=conftest
8855         libobjs=conftest.$ac_objext
8856         deplibs=
8857         wl=$lt_prog_compiler_wl
8858         pic_flag=$lt_prog_compiler_pic
8859         compiler_flags=-v
8860         linker_flags=-v
8861         verstring=
8862         output_objdir=.
8863         libname=conftest
8864         lt_save_allow_undefined_flag=$allow_undefined_flag
8865         allow_undefined_flag=
8866         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8867   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8868   ac_status=$?
8869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8870   test $ac_status = 0; }
8871         then
8872           archive_cmds_need_lc=no
8873         else
8874           archive_cmds_need_lc=yes
8875         fi
8876         allow_undefined_flag=$lt_save_allow_undefined_flag
8877       else
8878         cat conftest.err 1>&5
8879       fi
8880       $RM conftest*
8881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8882 $as_echo "$archive_cmds_need_lc" >&6; }
8883       ;;
8884     esac
8885   fi
8886   ;;
8887 esac
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9046 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9047
9048 if test "$GCC" = yes; then
9049   case $host_os in
9050     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9051     *) lt_awk_arg="/^libraries:/" ;;
9052   esac
9053   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9054   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9055     # if the path contains ";" then we assume it to be the separator
9056     # otherwise default to the standard path separator (i.e. ":") - it is
9057     # assumed that no part of a normal pathname contains ";" but that should
9058     # okay in the real world where ";" in dirpaths is itself problematic.
9059     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9060   else
9061     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9062   fi
9063   # Ok, now we have the path, separated by spaces, we can step through it
9064   # and add multilib dir if necessary.
9065   lt_tmp_lt_search_path_spec=
9066   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9067   for lt_sys_path in $lt_search_path_spec; do
9068     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9069       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9070     else
9071       test -d "$lt_sys_path" && \
9072         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9073     fi
9074   done
9075   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9076 BEGIN {RS=" "; FS="/|\n";} {
9077   lt_foo="";
9078   lt_count=0;
9079   for (lt_i = NF; lt_i > 0; lt_i--) {
9080     if ($lt_i != "" && $lt_i != ".") {
9081       if ($lt_i == "..") {
9082         lt_count++;
9083       } else {
9084         if (lt_count == 0) {
9085           lt_foo="/" $lt_i lt_foo;
9086         } else {
9087           lt_count--;
9088         }
9089       }
9090     }
9091   }
9092   if (lt_foo != "") { lt_freq[lt_foo]++; }
9093   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9094 }'`
9095   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9096 else
9097   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9098 fi
9099 library_names_spec=
9100 libname_spec='lib$name'
9101 soname_spec=
9102 shrext_cmds=".so"
9103 postinstall_cmds=
9104 postuninstall_cmds=
9105 finish_cmds=
9106 finish_eval=
9107 shlibpath_var=
9108 shlibpath_overrides_runpath=unknown
9109 version_type=none
9110 dynamic_linker="$host_os ld.so"
9111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9112 need_lib_prefix=unknown
9113 hardcode_into_libs=no
9114
9115 # when you set need_version to no, make sure it does not cause -set_version
9116 # flags to be left without arguments
9117 need_version=unknown
9118
9119 case $host_os in
9120 aix3*)
9121   version_type=linux
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9123   shlibpath_var=LIBPATH
9124
9125   # AIX 3 has no versioning support, so we append a major version to the name.
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   ;;
9128
9129 aix[4-9]*)
9130   version_type=linux
9131   need_lib_prefix=no
9132   need_version=no
9133   hardcode_into_libs=yes
9134   if test "$host_cpu" = ia64; then
9135     # AIX 5 supports IA64
9136     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9137     shlibpath_var=LD_LIBRARY_PATH
9138   else
9139     # With GCC up to 2.95.x, collect2 would create an import file
9140     # for dependence libraries.  The import file would start with
9141     # the line `#! .'.  This would cause the generated library to
9142     # depend on `.', always an invalid library.  This was fixed in
9143     # development snapshots of GCC prior to 3.0.
9144     case $host_os in
9145       aix4 | aix4.[01] | aix4.[01].*)
9146       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9147            echo ' yes '
9148            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9149         :
9150       else
9151         can_build_shared=no
9152       fi
9153       ;;
9154     esac
9155     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9156     # soname into executable. Probably we can add versioning support to
9157     # collect2, so additional links can be useful in future.
9158     if test "$aix_use_runtimelinking" = yes; then
9159       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9160       # instead of lib<name>.a to let people know that these are not
9161       # typical AIX shared libraries.
9162       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163     else
9164       # We preserve .a as extension for shared libraries through AIX4.2
9165       # and later when we are not doing run time linking.
9166       library_names_spec='${libname}${release}.a $libname.a'
9167       soname_spec='${libname}${release}${shared_ext}$major'
9168     fi
9169     shlibpath_var=LIBPATH
9170   fi
9171   ;;
9172
9173 amigaos*)
9174   case $host_cpu in
9175   powerpc)
9176     # Since July 2007 AmigaOS4 officially supports .so libraries.
9177     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179     ;;
9180   m68k)
9181     library_names_spec='$libname.ixlibrary $libname.a'
9182     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9183     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'
9184     ;;
9185   esac
9186   ;;
9187
9188 beos*)
9189   library_names_spec='${libname}${shared_ext}'
9190   dynamic_linker="$host_os ld.so"
9191   shlibpath_var=LIBRARY_PATH
9192   ;;
9193
9194 bsdi[45]*)
9195   version_type=linux
9196   need_version=no
9197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198   soname_spec='${libname}${release}${shared_ext}$major'
9199   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9200   shlibpath_var=LD_LIBRARY_PATH
9201   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9202   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9203   # the default ld.so.conf also contains /usr/contrib/lib and
9204   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9205   # libtool to hard-code these into programs
9206   ;;
9207
9208 cygwin* | mingw* | pw32* | cegcc*)
9209   version_type=windows
9210   shrext_cmds=".dll"
9211   need_version=no
9212   need_lib_prefix=no
9213
9214   case $GCC,$host_os in
9215   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9216     library_names_spec='$libname.dll.a'
9217     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9218     postinstall_cmds='base_file=`basename \${file}`~
9219       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9220       dldir=$destdir/`dirname \$dlpath`~
9221       test -d \$dldir || mkdir -p \$dldir~
9222       $install_prog $dir/$dlname \$dldir/$dlname~
9223       chmod a+x \$dldir/$dlname~
9224       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9225         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9226       fi'
9227     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9228       dlpath=$dir/\$dldll~
9229        $RM \$dlpath'
9230     shlibpath_overrides_runpath=yes
9231
9232     case $host_os in
9233     cygwin*)
9234       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9235       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9236       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9237       ;;
9238     mingw* | cegcc*)
9239       # MinGW DLLs use traditional 'lib' prefix
9240       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9241       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9242       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9243         # It is most probably a Windows format PATH printed by
9244         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9245         # path with ; separators, and with drive letters. We can handle the
9246         # drive letters (cygwin fileutils understands them), so leave them,
9247         # especially as we might pass files found there to a mingw objdump,
9248         # which wouldn't understand a cygwinified path. Ahh.
9249         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9250       else
9251         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9252       fi
9253       ;;
9254     pw32*)
9255       # pw32 DLLs use 'pw' prefix rather than 'lib'
9256       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9257       ;;
9258     esac
9259     ;;
9260
9261   *)
9262     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9263     ;;
9264   esac
9265   dynamic_linker='Win32 ld.exe'
9266   # FIXME: first we should search . and the directory the executable is in
9267   shlibpath_var=PATH
9268   ;;
9269
9270 darwin* | rhapsody*)
9271   dynamic_linker="$host_os dyld"
9272   version_type=darwin
9273   need_lib_prefix=no
9274   need_version=no
9275   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9276   soname_spec='${libname}${release}${major}$shared_ext'
9277   shlibpath_overrides_runpath=yes
9278   shlibpath_var=DYLD_LIBRARY_PATH
9279   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9280
9281   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9283   ;;
9284
9285 dgux*)
9286   version_type=linux
9287   need_lib_prefix=no
9288   need_version=no
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9290   soname_spec='${libname}${release}${shared_ext}$major'
9291   shlibpath_var=LD_LIBRARY_PATH
9292   ;;
9293
9294 freebsd1*)
9295   dynamic_linker=no
9296   ;;
9297
9298 freebsd* | dragonfly*)
9299   # DragonFly does not have aout.  When/if they implement a new
9300   # versioning mechanism, adjust this.
9301   if test -x /usr/bin/objformat; then
9302     objformat=`/usr/bin/objformat`
9303   else
9304     case $host_os in
9305     freebsd[123]*) objformat=aout ;;
9306     *) objformat=elf ;;
9307     esac
9308   fi
9309   version_type=freebsd-$objformat
9310   case $version_type in
9311     freebsd-elf*)
9312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9313       need_version=no
9314       need_lib_prefix=no
9315       ;;
9316     freebsd-*)
9317       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9318       need_version=yes
9319       ;;
9320   esac
9321   shlibpath_var=LD_LIBRARY_PATH
9322   case $host_os in
9323   freebsd2*)
9324     shlibpath_overrides_runpath=yes
9325     ;;
9326   freebsd3.[01]* | freebsdelf3.[01]*)
9327     shlibpath_overrides_runpath=yes
9328     hardcode_into_libs=yes
9329     ;;
9330   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9331   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9332     shlibpath_overrides_runpath=no
9333     hardcode_into_libs=yes
9334     ;;
9335   *) # from 4.6 on, and DragonFly
9336     shlibpath_overrides_runpath=yes
9337     hardcode_into_libs=yes
9338     ;;
9339   esac
9340   ;;
9341
9342 gnu*)
9343   version_type=linux
9344   need_lib_prefix=no
9345   need_version=no
9346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9347   soname_spec='${libname}${release}${shared_ext}$major'
9348   shlibpath_var=LD_LIBRARY_PATH
9349   hardcode_into_libs=yes
9350   ;;
9351
9352 hpux9* | hpux10* | hpux11*)
9353   # Give a soname corresponding to the major version so that dld.sl refuses to
9354   # link against other versions.
9355   version_type=sunos
9356   need_lib_prefix=no
9357   need_version=no
9358   case $host_cpu in
9359   ia64*)
9360     shrext_cmds='.so'
9361     hardcode_into_libs=yes
9362     dynamic_linker="$host_os dld.so"
9363     shlibpath_var=LD_LIBRARY_PATH
9364     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366     soname_spec='${libname}${release}${shared_ext}$major'
9367     if test "X$HPUX_IA64_MODE" = X32; then
9368       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9369     else
9370       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9371     fi
9372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9373     ;;
9374   hppa*64*)
9375     shrext_cmds='.sl'
9376     hardcode_into_libs=yes
9377     dynamic_linker="$host_os dld.sl"
9378     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9379     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381     soname_spec='${libname}${release}${shared_ext}$major'
9382     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9383     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9384     ;;
9385   *)
9386     shrext_cmds='.sl'
9387     dynamic_linker="$host_os dld.sl"
9388     shlibpath_var=SHLIB_PATH
9389     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391     soname_spec='${libname}${release}${shared_ext}$major'
9392     ;;
9393   esac
9394   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9395   postinstall_cmds='chmod 555 $lib'
9396   ;;
9397
9398 interix[3-9]*)
9399   version_type=linux
9400   need_lib_prefix=no
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9405   shlibpath_var=LD_LIBRARY_PATH
9406   shlibpath_overrides_runpath=no
9407   hardcode_into_libs=yes
9408   ;;
9409
9410 irix5* | irix6* | nonstopux*)
9411   case $host_os in
9412     nonstopux*) version_type=nonstopux ;;
9413     *)
9414         if test "$lt_cv_prog_gnu_ld" = yes; then
9415                 version_type=linux
9416         else
9417                 version_type=irix
9418         fi ;;
9419   esac
9420   need_lib_prefix=no
9421   need_version=no
9422   soname_spec='${libname}${release}${shared_ext}$major'
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9424   case $host_os in
9425   irix5* | nonstopux*)
9426     libsuff= shlibsuff=
9427     ;;
9428   *)
9429     case $LD in # libtool.m4 will add one of these switches to LD
9430     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9431       libsuff= shlibsuff= libmagic=32-bit;;
9432     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9433       libsuff=32 shlibsuff=N32 libmagic=N32;;
9434     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9435       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9436     *) libsuff= shlibsuff= libmagic=never-match;;
9437     esac
9438     ;;
9439   esac
9440   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9441   shlibpath_overrides_runpath=no
9442   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9443   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9444   hardcode_into_libs=yes
9445   ;;
9446
9447 # No shared lib support for Linux oldld, aout, or coff.
9448 linux*oldld* | linux*aout* | linux*coff*)
9449   dynamic_linker=no
9450   ;;
9451
9452 # This must be Linux ELF.
9453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9454   version_type=linux
9455   need_lib_prefix=no
9456   need_version=no
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458   soname_spec='${libname}${release}${shared_ext}$major'
9459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9460   shlibpath_var=LD_LIBRARY_PATH
9461   shlibpath_overrides_runpath=no
9462   # Some binutils ld are patched to set DT_RUNPATH
9463   save_LDFLAGS=$LDFLAGS
9464   save_libdir=$libdir
9465   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9466        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h.  */
9469
9470 int
9471 main ()
9472 {
9473
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9480   shlibpath_overrides_runpath=yes
9481 fi
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext \
9484     conftest$ac_exeext conftest.$ac_ext
9485   LDFLAGS=$save_LDFLAGS
9486   libdir=$save_libdir
9487
9488   # This implies no fast_install, which is unacceptable.
9489   # Some rework will be needed to allow for fast_install
9490   # before this can be enabled.
9491   hardcode_into_libs=yes
9492
9493   # Append ld.so.conf contents to the search path
9494   if test -f /etc/ld.so.conf; then
9495     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' ' '`
9496     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9497   fi
9498
9499   # We used to test for /lib/ld.so.1 and disable shared libraries on
9500   # powerpc, because MkLinux only supported shared libraries with the
9501   # GNU dynamic linker.  Since this was broken with cross compilers,
9502   # most powerpc-linux boxes support dynamic linking these days and
9503   # people can always --disable-shared, the test was removed, and we
9504   # assume the GNU/Linux dynamic linker is in use.
9505   dynamic_linker='GNU/Linux ld.so'
9506   ;;
9507
9508 netbsdelf*-gnu)
9509   version_type=linux
9510   need_lib_prefix=no
9511   need_version=no
9512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9513   soname_spec='${libname}${release}${shared_ext}$major'
9514   shlibpath_var=LD_LIBRARY_PATH
9515   shlibpath_overrides_runpath=no
9516   hardcode_into_libs=yes
9517   dynamic_linker='NetBSD ld.elf_so'
9518   ;;
9519
9520 netbsd*)
9521   version_type=sunos
9522   need_lib_prefix=no
9523   need_version=no
9524   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9526     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9527     dynamic_linker='NetBSD (a.out) ld.so'
9528   else
9529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9530     soname_spec='${libname}${release}${shared_ext}$major'
9531     dynamic_linker='NetBSD ld.elf_so'
9532   fi
9533   shlibpath_var=LD_LIBRARY_PATH
9534   shlibpath_overrides_runpath=yes
9535   hardcode_into_libs=yes
9536   ;;
9537
9538 newsos6)
9539   version_type=linux
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541   shlibpath_var=LD_LIBRARY_PATH
9542   shlibpath_overrides_runpath=yes
9543   ;;
9544
9545 *nto* | *qnx*)
9546   version_type=qnx
9547   need_lib_prefix=no
9548   need_version=no
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   shlibpath_overrides_runpath=no
9553   hardcode_into_libs=yes
9554   dynamic_linker='ldqnx.so'
9555   ;;
9556
9557 openbsd*)
9558   version_type=sunos
9559   sys_lib_dlsearch_path_spec="/usr/lib"
9560   need_lib_prefix=no
9561   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562   case $host_os in
9563     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9564     *)                          need_version=no  ;;
9565   esac
9566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568   shlibpath_var=LD_LIBRARY_PATH
9569   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570     case $host_os in
9571       openbsd2.[89] | openbsd2.[89].*)
9572         shlibpath_overrides_runpath=no
9573         ;;
9574       *)
9575         shlibpath_overrides_runpath=yes
9576         ;;
9577       esac
9578   else
9579     shlibpath_overrides_runpath=yes
9580   fi
9581   ;;
9582
9583 os2*)
9584   libname_spec='$name'
9585   shrext_cmds=".dll"
9586   need_lib_prefix=no
9587   library_names_spec='$libname${shared_ext} $libname.a'
9588   dynamic_linker='OS/2 ld.exe'
9589   shlibpath_var=LIBPATH
9590   ;;
9591
9592 osf3* | osf4* | osf5*)
9593   version_type=osf
9594   need_lib_prefix=no
9595   need_version=no
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598   shlibpath_var=LD_LIBRARY_PATH
9599   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9601   ;;
9602
9603 rdos*)
9604   dynamic_linker=no
9605   ;;
9606
9607 solaris*)
9608   version_type=linux
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   shlibpath_overrides_runpath=yes
9615   hardcode_into_libs=yes
9616   # ldd complains unless libraries are executable
9617   postinstall_cmds='chmod +x $lib'
9618   ;;
9619
9620 sunos4*)
9621   version_type=sunos
9622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9623   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9624   shlibpath_var=LD_LIBRARY_PATH
9625   shlibpath_overrides_runpath=yes
9626   if test "$with_gnu_ld" = yes; then
9627     need_lib_prefix=no
9628   fi
9629   need_version=yes
9630   ;;
9631
9632 sysv4 | sysv4.3*)
9633   version_type=linux
9634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635   soname_spec='${libname}${release}${shared_ext}$major'
9636   shlibpath_var=LD_LIBRARY_PATH
9637   case $host_vendor in
9638     sni)
9639       shlibpath_overrides_runpath=no
9640       need_lib_prefix=no
9641       runpath_var=LD_RUN_PATH
9642       ;;
9643     siemens)
9644       need_lib_prefix=no
9645       ;;
9646     motorola)
9647       need_lib_prefix=no
9648       need_version=no
9649       shlibpath_overrides_runpath=no
9650       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9651       ;;
9652   esac
9653   ;;
9654
9655 sysv4*MP*)
9656   if test -d /usr/nec ;then
9657     version_type=linux
9658     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9659     soname_spec='$libname${shared_ext}.$major'
9660     shlibpath_var=LD_LIBRARY_PATH
9661   fi
9662   ;;
9663
9664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9665   version_type=freebsd-elf
9666   need_lib_prefix=no
9667   need_version=no
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9669   soname_spec='${libname}${release}${shared_ext}$major'
9670   shlibpath_var=LD_LIBRARY_PATH
9671   shlibpath_overrides_runpath=yes
9672   hardcode_into_libs=yes
9673   if test "$with_gnu_ld" = yes; then
9674     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9675   else
9676     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9677     case $host_os in
9678       sco3.2v5*)
9679         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9680         ;;
9681     esac
9682   fi
9683   sys_lib_dlsearch_path_spec='/usr/lib'
9684   ;;
9685
9686 tpf*)
9687   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9688   version_type=linux
9689   need_lib_prefix=no
9690   need_version=no
9691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692   shlibpath_var=LD_LIBRARY_PATH
9693   shlibpath_overrides_runpath=no
9694   hardcode_into_libs=yes
9695   ;;
9696
9697 uts4*)
9698   version_type=linux
9699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700   soname_spec='${libname}${release}${shared_ext}$major'
9701   shlibpath_var=LD_LIBRARY_PATH
9702   ;;
9703
9704 *)
9705   dynamic_linker=no
9706   ;;
9707 esac
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9709 $as_echo "$dynamic_linker" >&6; }
9710 test "$dynamic_linker" = no && can_build_shared=no
9711
9712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9713 if test "$GCC" = yes; then
9714   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9715 fi
9716
9717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9718   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9719 fi
9720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9721   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9722 fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9812 hardcode_action=
9813 if test -n "$hardcode_libdir_flag_spec" ||
9814    test -n "$runpath_var" ||
9815    test "X$hardcode_automatic" = "Xyes" ; then
9816
9817   # We can hardcode non-existent directories.
9818   if test "$hardcode_direct" != no &&
9819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9820      # have to relink, otherwise we might link with an installed library
9821      # when we should be linking with a yet-to-be-installed one
9822      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9823      test "$hardcode_minus_L" != no; then
9824     # Linking always hardcodes the temporary library directory.
9825     hardcode_action=relink
9826   else
9827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9828     hardcode_action=immediate
9829   fi
9830 else
9831   # We cannot hardcode anything, or else we can only hardcode existing
9832   # directories.
9833   hardcode_action=unsupported
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9836 $as_echo "$hardcode_action" >&6; }
9837
9838 if test "$hardcode_action" = relink ||
9839    test "$inherit_rpath" = yes; then
9840   # Fast installation is not supported
9841   enable_fast_install=no
9842 elif test "$shlibpath_overrides_runpath" = yes ||
9843      test "$enable_shared" = no; then
9844   # Fast installation is not necessary
9845   enable_fast_install=needless
9846 fi
9847
9848
9849
9850
9851
9852
9853   if test "x$enable_dlopen" != xyes; then
9854   enable_dlopen=unknown
9855   enable_dlopen_self=unknown
9856   enable_dlopen_self_static=unknown
9857 else
9858   lt_cv_dlopen=no
9859   lt_cv_dlopen_libs=
9860
9861   case $host_os in
9862   beos*)
9863     lt_cv_dlopen="load_add_on"
9864     lt_cv_dlopen_libs=
9865     lt_cv_dlopen_self=yes
9866     ;;
9867
9868   mingw* | pw32* | cegcc*)
9869     lt_cv_dlopen="LoadLibrary"
9870     lt_cv_dlopen_libs=
9871     ;;
9872
9873   cygwin*)
9874     lt_cv_dlopen="dlopen"
9875     lt_cv_dlopen_libs=
9876     ;;
9877
9878   darwin*)
9879   # if libdl is installed we need to link against it
9880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   ac_check_lib_save_LIBS=$LIBS
9886 LIBS="-ldl  $LIBS"
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h.  */
9889
9890 /* Override any GCC internal prototype to avoid an error.
9891    Use char because int might match the return type of a GCC
9892    builtin and then its argument prototype would still apply.  */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 char dlopen ();
9897 int
9898 main ()
9899 {
9900 return dlopen ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 if ac_fn_c_try_link "$LINENO"; then :
9906   ac_cv_lib_dl_dlopen=yes
9907 else
9908   ac_cv_lib_dl_dlopen=no
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext \
9911     conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9915 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9916 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9917   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9918 else
9919
9920     lt_cv_dlopen="dyld"
9921     lt_cv_dlopen_libs=
9922     lt_cv_dlopen_self=yes
9923
9924 fi
9925
9926     ;;
9927
9928   *)
9929     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9930 if test "x$ac_cv_func_shl_load" = x""yes; then :
9931   lt_cv_dlopen="shl_load"
9932 else
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9934 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9935 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9936   $as_echo_n "(cached) " >&6
9937 else
9938   ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-ldld  $LIBS"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h.  */
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944    Use char because int might match the return type of a GCC
9945    builtin and then its argument prototype would still apply.  */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char shl_load ();
9950 int
9951 main ()
9952 {
9953 return shl_load ();
9954   ;
9955   return 0;
9956 }
9957 _ACEOF
9958 if ac_fn_c_try_link "$LINENO"; then :
9959   ac_cv_lib_dld_shl_load=yes
9960 else
9961   ac_cv_lib_dld_shl_load=no
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext \
9964     conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9966 fi
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9968 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9969 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9970   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9971 else
9972   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9973 if test "x$ac_cv_func_dlopen" = x""yes; then :
9974   lt_cv_dlopen="dlopen"
9975 else
9976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9979   $as_echo_n "(cached) " >&6
9980 else
9981   ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-ldl  $LIBS"
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h.  */
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987    Use char because int might match the return type of a GCC
9988    builtin and then its argument prototype would still apply.  */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dlopen ();
9993 int
9994 main ()
9995 {
9996 return dlopen ();
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002   ac_cv_lib_dl_dlopen=yes
10003 else
10004   ac_cv_lib_dl_dlopen=no
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007     conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10012 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014 else
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10016 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10018   $as_echo_n "(cached) " >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsvld  $LIBS"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h.  */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char dlopen ();
10032 int
10033 main ()
10034 {
10035 return dlopen ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041   ac_cv_lib_svld_dlopen=yes
10042 else
10043   ac_cv_lib_svld_dlopen=no
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext \
10046     conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10050 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10051 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10052   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10053 else
10054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10055 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10056 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-ldld  $LIBS"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063
10064 /* Override any GCC internal prototype to avoid an error.
10065    Use char because int might match the return type of a GCC
10066    builtin and then its argument prototype would still apply.  */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 char dld_link ();
10071 int
10072 main ()
10073 {
10074 return dld_link ();
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080   ac_cv_lib_dld_dld_link=yes
10081 else
10082   ac_cv_lib_dld_dld_link=no
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext \
10085     conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10089 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10090 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10091   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10092 fi
10093
10094
10095 fi
10096
10097
10098 fi
10099
10100
10101 fi
10102
10103
10104 fi
10105
10106
10107 fi
10108
10109     ;;
10110   esac
10111
10112   if test "x$lt_cv_dlopen" != xno; then
10113     enable_dlopen=yes
10114   else
10115     enable_dlopen=no
10116   fi
10117
10118   case $lt_cv_dlopen in
10119   dlopen)
10120     save_CPPFLAGS="$CPPFLAGS"
10121     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10122
10123     save_LDFLAGS="$LDFLAGS"
10124     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10125
10126     save_LIBS="$LIBS"
10127     LIBS="$lt_cv_dlopen_libs $LIBS"
10128
10129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10130 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10131 if test "${lt_cv_dlopen_self+set}" = set; then :
10132   $as_echo_n "(cached) " >&6
10133 else
10134           if test "$cross_compiling" = yes; then :
10135   lt_cv_dlopen_self=cross
10136 else
10137   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10138   lt_status=$lt_dlunknown
10139   cat > conftest.$ac_ext <<_LT_EOF
10140 #line 10140 "configure"
10141 #include "confdefs.h"
10142
10143 #if HAVE_DLFCN_H
10144 #include <dlfcn.h>
10145 #endif
10146
10147 #include <stdio.h>
10148
10149 #ifdef RTLD_GLOBAL
10150 #  define LT_DLGLOBAL           RTLD_GLOBAL
10151 #else
10152 #  ifdef DL_GLOBAL
10153 #    define LT_DLGLOBAL         DL_GLOBAL
10154 #  else
10155 #    define LT_DLGLOBAL         0
10156 #  endif
10157 #endif
10158
10159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10160    find out it does not work in some platform. */
10161 #ifndef LT_DLLAZY_OR_NOW
10162 #  ifdef RTLD_LAZY
10163 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10164 #  else
10165 #    ifdef DL_LAZY
10166 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10167 #    else
10168 #      ifdef RTLD_NOW
10169 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10170 #      else
10171 #        ifdef DL_NOW
10172 #          define LT_DLLAZY_OR_NOW      DL_NOW
10173 #        else
10174 #          define LT_DLLAZY_OR_NOW      0
10175 #        endif
10176 #      endif
10177 #    endif
10178 #  endif
10179 #endif
10180
10181 void fnord() { int i=42;}
10182 int main ()
10183 {
10184   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10185   int status = $lt_dlunknown;
10186
10187   if (self)
10188     {
10189       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10190       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10191       /* dlclose (self); */
10192     }
10193   else
10194     puts (dlerror ());
10195
10196   return status;
10197 }
10198 _LT_EOF
10199   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10200   (eval $ac_link) 2>&5
10201   ac_status=$?
10202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10203   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10204     (./conftest; exit; ) >&5 2>/dev/null
10205     lt_status=$?
10206     case x$lt_status in
10207       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10208       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10209       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10210     esac
10211   else :
10212     # compilation failed
10213     lt_cv_dlopen_self=no
10214   fi
10215 fi
10216 rm -fr conftest*
10217
10218
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10221 $as_echo "$lt_cv_dlopen_self" >&6; }
10222
10223     if test "x$lt_cv_dlopen_self" = xyes; then
10224       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10226 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10227 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230           if test "$cross_compiling" = yes; then :
10231   lt_cv_dlopen_self_static=cross
10232 else
10233   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234   lt_status=$lt_dlunknown
10235   cat > conftest.$ac_ext <<_LT_EOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10238
10239 #if HAVE_DLFCN_H
10240 #include <dlfcn.h>
10241 #endif
10242
10243 #include <stdio.h>
10244
10245 #ifdef RTLD_GLOBAL
10246 #  define LT_DLGLOBAL           RTLD_GLOBAL
10247 #else
10248 #  ifdef DL_GLOBAL
10249 #    define LT_DLGLOBAL         DL_GLOBAL
10250 #  else
10251 #    define LT_DLGLOBAL         0
10252 #  endif
10253 #endif
10254
10255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256    find out it does not work in some platform. */
10257 #ifndef LT_DLLAZY_OR_NOW
10258 #  ifdef RTLD_LAZY
10259 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10260 #  else
10261 #    ifdef DL_LAZY
10262 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10263 #    else
10264 #      ifdef RTLD_NOW
10265 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10266 #      else
10267 #        ifdef DL_NOW
10268 #          define LT_DLLAZY_OR_NOW      DL_NOW
10269 #        else
10270 #          define LT_DLLAZY_OR_NOW      0
10271 #        endif
10272 #      endif
10273 #    endif
10274 #  endif
10275 #endif
10276
10277 void fnord() { int i=42;}
10278 int main ()
10279 {
10280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10281   int status = $lt_dlunknown;
10282
10283   if (self)
10284     {
10285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10287       /* dlclose (self); */
10288     }
10289   else
10290     puts (dlerror ());
10291
10292   return status;
10293 }
10294 _LT_EOF
10295   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10296   (eval $ac_link) 2>&5
10297   ac_status=$?
10298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10300     (./conftest; exit; ) >&5 2>/dev/null
10301     lt_status=$?
10302     case x$lt_status in
10303       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10304       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10305       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10306     esac
10307   else :
10308     # compilation failed
10309     lt_cv_dlopen_self_static=no
10310   fi
10311 fi
10312 rm -fr conftest*
10313
10314
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10317 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10318     fi
10319
10320     CPPFLAGS="$save_CPPFLAGS"
10321     LDFLAGS="$save_LDFLAGS"
10322     LIBS="$save_LIBS"
10323     ;;
10324   esac
10325
10326   case $lt_cv_dlopen_self in
10327   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10328   *) enable_dlopen_self=unknown ;;
10329   esac
10330
10331   case $lt_cv_dlopen_self_static in
10332   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10333   *) enable_dlopen_self_static=unknown ;;
10334   esac
10335 fi
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353 striplib=
10354 old_striplib=
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10356 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10357 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10358   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10359   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10361 $as_echo "yes" >&6; }
10362 else
10363 # FIXME - insert some real tests, host_os isn't really good enough
10364   case $host_os in
10365   darwin*)
10366     if test -n "$STRIP" ; then
10367       striplib="$STRIP -x"
10368       old_striplib="$STRIP -S"
10369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10370 $as_echo "yes" >&6; }
10371     else
10372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374     fi
10375     ;;
10376   *)
10377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379     ;;
10380   esac
10381 fi
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394   # Report which library types will actually be built
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10396 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10398 $as_echo "$can_build_shared" >&6; }
10399
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10401 $as_echo_n "checking whether to build shared libraries... " >&6; }
10402   test "$can_build_shared" = "no" && enable_shared=no
10403
10404   # On AIX, shared libraries and static libraries use the same namespace, and
10405   # are all built from PIC.
10406   case $host_os in
10407   aix3*)
10408     test "$enable_shared" = yes && enable_static=no
10409     if test -n "$RANLIB"; then
10410       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10411       postinstall_cmds='$RANLIB $lib'
10412     fi
10413     ;;
10414
10415   aix[4-9]*)
10416     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10417       test "$enable_shared" = yes && enable_static=no
10418     fi
10419     ;;
10420   esac
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10422 $as_echo "$enable_shared" >&6; }
10423
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10425 $as_echo_n "checking whether to build static libraries... " >&6; }
10426   # Make sure either enable_shared or enable_static is yes.
10427   test "$enable_shared" = yes || enable_static=yes
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10429 $as_echo "$enable_static" >&6; }
10430
10431
10432
10433
10434 fi
10435 ac_ext=c
10436 ac_cpp='$CPP $CPPFLAGS'
10437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10440
10441 CC="$lt_save_CC"
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455         ac_config_commands="$ac_config_commands libtool"
10456
10457
10458
10459
10460 # Only expand once:
10461
10462
10463
10464 # Checks for libraries.
10465 # FIXME: Replace `main' with a function in `-liniparser':
10466 # AC_CHECK_LIB([iniparser], [main])
10467 # FIXME: Replace `main' with a function in `-ljpeg':
10468 # AC_CHECK_LIB([jpeg], [main])
10469 # FIXME: Replace `main' with a function in `-lrt':
10470 # AC_CHECK_LIB([rt], [main])
10471
10472 # Checks for header files.
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10474 $as_echo_n "checking for ANSI C header files... " >&6; }
10475 if test "${ac_cv_header_stdc+set}" = set; then :
10476   $as_echo_n "(cached) " >&6
10477 else
10478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h.  */
10480 #include <stdlib.h>
10481 #include <stdarg.h>
10482 #include <string.h>
10483 #include <float.h>
10484
10485 int
10486 main ()
10487 {
10488
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_compile "$LINENO"; then :
10494   ac_cv_header_stdc=yes
10495 else
10496   ac_cv_header_stdc=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499
10500 if test $ac_cv_header_stdc = yes; then
10501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h.  */
10504 #include <string.h>
10505
10506 _ACEOF
10507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10508   $EGREP "memchr" >/dev/null 2>&1; then :
10509
10510 else
10511   ac_cv_header_stdc=no
10512 fi
10513 rm -f conftest*
10514
10515 fi
10516
10517 if test $ac_cv_header_stdc = yes; then
10518   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h.  */
10521 #include <stdlib.h>
10522
10523 _ACEOF
10524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10525   $EGREP "free" >/dev/null 2>&1; then :
10526
10527 else
10528   ac_cv_header_stdc=no
10529 fi
10530 rm -f conftest*
10531
10532 fi
10533
10534 if test $ac_cv_header_stdc = yes; then
10535   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10536   if test "$cross_compiling" = yes; then :
10537   :
10538 else
10539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h.  */
10541 #include <ctype.h>
10542 #include <stdlib.h>
10543 #if ((' ' & 0x0FF) == 0x020)
10544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10546 #else
10547 # define ISLOWER(c) \
10548                    (('a' <= (c) && (c) <= 'i') \
10549                      || ('j' <= (c) && (c) <= 'r') \
10550                      || ('s' <= (c) && (c) <= 'z'))
10551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10552 #endif
10553
10554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10555 int
10556 main ()
10557 {
10558   int i;
10559   for (i = 0; i < 256; i++)
10560     if (XOR (islower (i), ISLOWER (i))
10561         || toupper (i) != TOUPPER (i))
10562       return 2;
10563   return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_run "$LINENO"; then :
10567
10568 else
10569   ac_cv_header_stdc=no
10570 fi
10571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10572   conftest.$ac_objext conftest.beam conftest.$ac_ext
10573 fi
10574
10575 fi
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10578 $as_echo "$ac_cv_header_stdc" >&6; }
10579 if test $ac_cv_header_stdc = yes; then
10580
10581 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10582
10583 fi
10584
10585 for ac_header in fcntl.h memory.h stdlib.h string.h unistd.h
10586 do :
10587   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10588 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10589 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10590   cat >>confdefs.h <<_ACEOF
10591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10592 _ACEOF
10593
10594 fi
10595
10596 done
10597
10598
10599 # Checks for typedefs, structures, and compiler characteristics.
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10601 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10602 if test "${ac_cv_struct_tm+set}" = set; then :
10603   $as_echo_n "(cached) " >&6
10604 else
10605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h.  */
10607 #include <sys/types.h>
10608 #include <time.h>
10609
10610 int
10611 main ()
10612 {
10613 struct tm tm;
10614                                      int *p = &tm.tm_sec;
10615                                      return !p;
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621   ac_cv_struct_tm=time.h
10622 else
10623   ac_cv_struct_tm=sys/time.h
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 fi
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10628 $as_echo "$ac_cv_struct_tm" >&6; }
10629 if test $ac_cv_struct_tm = sys/time.h; then
10630
10631 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10632
10633 fi
10634
10635
10636 # Checks for library functions.
10637 for ac_header in stdlib.h
10638 do :
10639   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10640 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10641   cat >>confdefs.h <<_ACEOF
10642 #define HAVE_STDLIB_H 1
10643 _ACEOF
10644
10645 fi
10646
10647 done
10648
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10650 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10651 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10652   $as_echo_n "(cached) " >&6
10653 else
10654   if test "$cross_compiling" = yes; then :
10655   ac_cv_func_malloc_0_nonnull=no
10656 else
10657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h.  */
10659 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10660 # include <stdlib.h>
10661 #else
10662 char *malloc ();
10663 #endif
10664
10665 int
10666 main ()
10667 {
10668 return ! malloc (0);
10669   ;
10670   return 0;
10671 }
10672 _ACEOF
10673 if ac_fn_c_try_run "$LINENO"; then :
10674   ac_cv_func_malloc_0_nonnull=yes
10675 else
10676   ac_cv_func_malloc_0_nonnull=no
10677 fi
10678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10679   conftest.$ac_objext conftest.beam conftest.$ac_ext
10680 fi
10681
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10684 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10685 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10686
10687 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10688
10689 else
10690   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10691
10692    case " $LIBOBJS " in
10693   *" malloc.$ac_objext "* ) ;;
10694   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10695  ;;
10696 esac
10697
10698
10699 $as_echo "#define malloc rpl_malloc" >>confdefs.h
10700
10701 fi
10702
10703
10704 for ac_func in memset strdup
10705 do :
10706   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10708 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10709   cat >>confdefs.h <<_ACEOF
10710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10711 _ACEOF
10712
10713 fi
10714 done
10715
10716
10717
10718
10719
10720
10721
10722
10723 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10724         if test -n "$ac_tool_prefix"; then
10725   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10726 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   case $PKG_CONFIG in
10733   [\\/]* | ?:[\\/]*)
10734   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10735   ;;
10736   *)
10737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10739 do
10740   IFS=$as_save_IFS
10741   test -z "$as_dir" && as_dir=.
10742     for ac_exec_ext in '' $ac_executable_extensions; do
10743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10744     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746     break 2
10747   fi
10748 done
10749   done
10750 IFS=$as_save_IFS
10751
10752   ;;
10753 esac
10754 fi
10755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10756 if test -n "$PKG_CONFIG"; then
10757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10758 $as_echo "$PKG_CONFIG" >&6; }
10759 else
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10762 fi
10763
10764
10765 fi
10766 if test -z "$ac_cv_path_PKG_CONFIG"; then
10767   ac_pt_PKG_CONFIG=$PKG_CONFIG
10768   # Extract the first word of "pkg-config", so it can be a program name with args.
10769 set dummy pkg-config; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10773   $as_echo_n "(cached) " >&6
10774 else
10775   case $ac_pt_PKG_CONFIG in
10776   [\\/]* | ?:[\\/]*)
10777   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10778   ;;
10779   *)
10780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10782 do
10783   IFS=$as_save_IFS
10784   test -z "$as_dir" && as_dir=.
10785     for ac_exec_ext in '' $ac_executable_extensions; do
10786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10787     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10789     break 2
10790   fi
10791 done
10792   done
10793 IFS=$as_save_IFS
10794
10795   ;;
10796 esac
10797 fi
10798 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10799 if test -n "$ac_pt_PKG_CONFIG"; then
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10801 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10802 else
10803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805 fi
10806
10807   if test "x$ac_pt_PKG_CONFIG" = x; then
10808     PKG_CONFIG=""
10809   else
10810     case $cross_compiling:$ac_tool_warned in
10811 yes:)
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10814 ac_tool_warned=yes ;;
10815 esac
10816     PKG_CONFIG=$ac_pt_PKG_CONFIG
10817   fi
10818 else
10819   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10820 fi
10821
10822 fi
10823 if test -n "$PKG_CONFIG"; then
10824         _pkg_min_version=0.9.0
10825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10826 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10827         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10828                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829 $as_echo "yes" >&6; }
10830         else
10831                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833                 PKG_CONFIG=""
10834         fi
10835 fi
10836
10837 pkg_failed=no
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMCOMMON" >&5
10839 $as_echo_n "checking for MMCOMMON... " >&6; }
10840
10841 if test -n "$MMCOMMON_CFLAGS"; then
10842     pkg_cv_MMCOMMON_CFLAGS="$MMCOMMON_CFLAGS"
10843  elif test -n "$PKG_CONFIG"; then
10844     if test -n "$PKG_CONFIG" && \
10845     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-common\""; } >&5
10846   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
10847   ac_status=$?
10848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849   test $ac_status = 0; }; then
10850   pkg_cv_MMCOMMON_CFLAGS=`$PKG_CONFIG --cflags "mm-common" 2>/dev/null`
10851 else
10852   pkg_failed=yes
10853 fi
10854  else
10855     pkg_failed=untried
10856 fi
10857 if test -n "$MMCOMMON_LIBS"; then
10858     pkg_cv_MMCOMMON_LIBS="$MMCOMMON_LIBS"
10859  elif test -n "$PKG_CONFIG"; then
10860     if test -n "$PKG_CONFIG" && \
10861     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-common\""; } >&5
10862   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
10863   ac_status=$?
10864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865   test $ac_status = 0; }; then
10866   pkg_cv_MMCOMMON_LIBS=`$PKG_CONFIG --libs "mm-common" 2>/dev/null`
10867 else
10868   pkg_failed=yes
10869 fi
10870  else
10871     pkg_failed=untried
10872 fi
10873
10874
10875
10876 if test $pkg_failed = yes; then
10877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10879
10880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10881         _pkg_short_errors_supported=yes
10882 else
10883         _pkg_short_errors_supported=no
10884 fi
10885         if test $_pkg_short_errors_supported = yes; then
10886                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mm-common" 2>&1`
10887         else
10888                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors "mm-common" 2>&1`
10889         fi
10890         # Put the nasty error message in config.log where it belongs
10891         echo "$MMCOMMON_PKG_ERRORS" >&5
10892
10893         as_fn_error $? "Package requirements (mm-common) were not met:
10894
10895 $MMCOMMON_PKG_ERRORS
10896
10897 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10898 installed software in a non-standard prefix.
10899
10900 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
10901 and MMCOMMON_LIBS to avoid the need to call pkg-config.
10902 See the pkg-config man page for more details." "$LINENO" 5
10903 elif test $pkg_failed = untried; then
10904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10908 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10909 is in your PATH or set the PKG_CONFIG environment variable to the full
10910 path to pkg-config.
10911
10912 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
10913 and MMCOMMON_LIBS to avoid the need to call pkg-config.
10914 See the pkg-config man page for more details.
10915
10916 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10917 See \`config.log' for more details" "$LINENO" 5 ; }
10918 else
10919         MMCOMMON_CFLAGS=$pkg_cv_MMCOMMON_CFLAGS
10920         MMCOMMON_LIBS=$pkg_cv_MMCOMMON_LIBS
10921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10922 $as_echo "yes" >&6; }
10923
10924 fi
10925
10926
10927
10928
10929 pkg_failed=no
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMLOG" >&5
10931 $as_echo_n "checking for MMLOG... " >&6; }
10932
10933 if test -n "$MMLOG_CFLAGS"; then
10934     pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
10935  elif test -n "$PKG_CONFIG"; then
10936     if test -n "$PKG_CONFIG" && \
10937     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-log\""; } >&5
10938   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
10939   ac_status=$?
10940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10941   test $ac_status = 0; }; then
10942   pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
10943 else
10944   pkg_failed=yes
10945 fi
10946  else
10947     pkg_failed=untried
10948 fi
10949 if test -n "$MMLOG_LIBS"; then
10950     pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
10951  elif test -n "$PKG_CONFIG"; then
10952     if test -n "$PKG_CONFIG" && \
10953     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-log\""; } >&5
10954   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
10955   ac_status=$?
10956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957   test $ac_status = 0; }; then
10958   pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
10959 else
10960   pkg_failed=yes
10961 fi
10962  else
10963     pkg_failed=untried
10964 fi
10965
10966
10967
10968 if test $pkg_failed = yes; then
10969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971
10972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10973         _pkg_short_errors_supported=yes
10974 else
10975         _pkg_short_errors_supported=no
10976 fi
10977         if test $_pkg_short_errors_supported = yes; then
10978                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mm-log" 2>&1`
10979         else
10980                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --print-errors "mm-log" 2>&1`
10981         fi
10982         # Put the nasty error message in config.log where it belongs
10983         echo "$MMLOG_PKG_ERRORS" >&5
10984
10985         as_fn_error $? "Package requirements (mm-log) were not met:
10986
10987 $MMLOG_PKG_ERRORS
10988
10989 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10990 installed software in a non-standard prefix.
10991
10992 Alternatively, you may set the environment variables MMLOG_CFLAGS
10993 and MMLOG_LIBS to avoid the need to call pkg-config.
10994 See the pkg-config man page for more details." "$LINENO" 5
10995 elif test $pkg_failed = untried; then
10996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11000 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11001 is in your PATH or set the PKG_CONFIG environment variable to the full
11002 path to pkg-config.
11003
11004 Alternatively, you may set the environment variables MMLOG_CFLAGS
11005 and MMLOG_LIBS to avoid the need to call pkg-config.
11006 See the pkg-config man page for more details.
11007
11008 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11009 See \`config.log' for more details" "$LINENO" 5 ; }
11010 else
11011         MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
11012         MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
11013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014 $as_echo "yes" >&6; }
11015
11016 fi
11017
11018
11019
11020
11021 pkg_failed=no
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11023 $as_echo_n "checking for GLIB... " >&6; }
11024
11025 if test -n "$GLIB_CFLAGS"; then
11026     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11027  elif test -n "$PKG_CONFIG"; then
11028     if test -n "$PKG_CONFIG" && \
11029     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
11030   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11031   ac_status=$?
11032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033   test $ac_status = 0; }; then
11034   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11035 else
11036   pkg_failed=yes
11037 fi
11038  else
11039     pkg_failed=untried
11040 fi
11041 if test -n "$GLIB_LIBS"; then
11042     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11043  elif test -n "$PKG_CONFIG"; then
11044     if test -n "$PKG_CONFIG" && \
11045     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
11046   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11047   ac_status=$?
11048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11049   test $ac_status = 0; }; then
11050   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11051 else
11052   pkg_failed=yes
11053 fi
11054  else
11055     pkg_failed=untried
11056 fi
11057
11058
11059
11060 if test $pkg_failed = yes; then
11061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063
11064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11065         _pkg_short_errors_supported=yes
11066 else
11067         _pkg_short_errors_supported=no
11068 fi
11069         if test $_pkg_short_errors_supported = yes; then
11070                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11071         else
11072                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11073         fi
11074         # Put the nasty error message in config.log where it belongs
11075         echo "$GLIB_PKG_ERRORS" >&5
11076
11077         as_fn_error $? "Package requirements (glib-2.0) were not met:
11078
11079 $GLIB_PKG_ERRORS
11080
11081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11082 installed software in a non-standard prefix.
11083
11084 Alternatively, you may set the environment variables GLIB_CFLAGS
11085 and GLIB_LIBS to avoid the need to call pkg-config.
11086 See the pkg-config man page for more details." "$LINENO" 5
11087 elif test $pkg_failed = untried; then
11088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11092 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11093 is in your PATH or set the PKG_CONFIG environment variable to the full
11094 path to pkg-config.
11095
11096 Alternatively, you may set the environment variables GLIB_CFLAGS
11097 and GLIB_LIBS to avoid the need to call pkg-config.
11098 See the pkg-config man page for more details.
11099
11100 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11101 See \`config.log' for more details" "$LINENO" 5 ; }
11102 else
11103         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11104         GLIB_LIBS=$pkg_cv_GLIB_LIBS
11105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; }
11107
11108 fi
11109
11110
11111
11112
11113 pkg_failed=no
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
11115 $as_echo_n "checking for GST... " >&6; }
11116
11117 if test -n "$GST_CFLAGS"; then
11118     pkg_cv_GST_CFLAGS="$GST_CFLAGS"
11119  elif test -n "$PKG_CONFIG"; then
11120     if test -n "$PKG_CONFIG" && \
11121     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
11122   ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
11123   ac_status=$?
11124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11125   test $ac_status = 0; }; then
11126   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10" 2>/dev/null`
11127 else
11128   pkg_failed=yes
11129 fi
11130  else
11131     pkg_failed=untried
11132 fi
11133 if test -n "$GST_LIBS"; then
11134     pkg_cv_GST_LIBS="$GST_LIBS"
11135  elif test -n "$PKG_CONFIG"; then
11136     if test -n "$PKG_CONFIG" && \
11137     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
11138   ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
11139   ac_status=$?
11140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141   test $ac_status = 0; }; then
11142   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10" 2>/dev/null`
11143 else
11144   pkg_failed=yes
11145 fi
11146  else
11147     pkg_failed=untried
11148 fi
11149
11150
11151
11152 if test $pkg_failed = yes; then
11153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155
11156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11157         _pkg_short_errors_supported=yes
11158 else
11159         _pkg_short_errors_supported=no
11160 fi
11161         if test $_pkg_short_errors_supported = yes; then
11162                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gstreamer-0.10" 2>&1`
11163         else
11164                 GST_PKG_ERRORS=`$PKG_CONFIG --print-errors "gstreamer-0.10" 2>&1`
11165         fi
11166         # Put the nasty error message in config.log where it belongs
11167         echo "$GST_PKG_ERRORS" >&5
11168
11169         as_fn_error $? "Package requirements (gstreamer-0.10) were not met:
11170
11171 $GST_PKG_ERRORS
11172
11173 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11174 installed software in a non-standard prefix.
11175
11176 Alternatively, you may set the environment variables GST_CFLAGS
11177 and GST_LIBS to avoid the need to call pkg-config.
11178 See the pkg-config man page for more details." "$LINENO" 5
11179 elif test $pkg_failed = untried; then
11180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11184 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11185 is in your PATH or set the PKG_CONFIG environment variable to the full
11186 path to pkg-config.
11187
11188 Alternatively, you may set the environment variables GST_CFLAGS
11189 and GST_LIBS to avoid the need to call pkg-config.
11190 See the pkg-config man page for more details.
11191
11192 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11193 See \`config.log' for more details" "$LINENO" 5 ; }
11194 else
11195         GST_CFLAGS=$pkg_cv_GST_CFLAGS
11196         GST_LIBS=$pkg_cv_GST_LIBS
11197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198 $as_echo "yes" >&6; }
11199
11200 fi
11201
11202
11203
11204
11205 pkg_failed=no
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTAPP" >&5
11207 $as_echo_n "checking for GSTAPP... " >&6; }
11208
11209 if test -n "$GSTAPP_CFLAGS"; then
11210     pkg_cv_GSTAPP_CFLAGS="$GSTAPP_CFLAGS"
11211  elif test -n "$PKG_CONFIG"; then
11212     if test -n "$PKG_CONFIG" && \
11213     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-app-0.10\""; } >&5
11214   ($PKG_CONFIG --exists --print-errors "gstreamer-app-0.10") 2>&5
11215   ac_status=$?
11216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11217   test $ac_status = 0; }; then
11218   pkg_cv_GSTAPP_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-app-0.10" 2>/dev/null`
11219 else
11220   pkg_failed=yes
11221 fi
11222  else
11223     pkg_failed=untried
11224 fi
11225 if test -n "$GSTAPP_LIBS"; then
11226     pkg_cv_GSTAPP_LIBS="$GSTAPP_LIBS"
11227  elif test -n "$PKG_CONFIG"; then
11228     if test -n "$PKG_CONFIG" && \
11229     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-app-0.10\""; } >&5
11230   ($PKG_CONFIG --exists --print-errors "gstreamer-app-0.10") 2>&5
11231   ac_status=$?
11232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233   test $ac_status = 0; }; then
11234   pkg_cv_GSTAPP_LIBS=`$PKG_CONFIG --libs "gstreamer-app-0.10" 2>/dev/null`
11235 else
11236   pkg_failed=yes
11237 fi
11238  else
11239     pkg_failed=untried
11240 fi
11241
11242
11243
11244 if test $pkg_failed = yes; then
11245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247
11248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11249         _pkg_short_errors_supported=yes
11250 else
11251         _pkg_short_errors_supported=no
11252 fi
11253         if test $_pkg_short_errors_supported = yes; then
11254                 GSTAPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gstreamer-app-0.10" 2>&1`
11255         else
11256                 GSTAPP_PKG_ERRORS=`$PKG_CONFIG --print-errors "gstreamer-app-0.10" 2>&1`
11257         fi
11258         # Put the nasty error message in config.log where it belongs
11259         echo "$GSTAPP_PKG_ERRORS" >&5
11260
11261         as_fn_error $? "Package requirements (gstreamer-app-0.10) were not met:
11262
11263 $GSTAPP_PKG_ERRORS
11264
11265 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11266 installed software in a non-standard prefix.
11267
11268 Alternatively, you may set the environment variables GSTAPP_CFLAGS
11269 and GSTAPP_LIBS to avoid the need to call pkg-config.
11270 See the pkg-config man page for more details." "$LINENO" 5
11271 elif test $pkg_failed = untried; then
11272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11276 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11277 is in your PATH or set the PKG_CONFIG environment variable to the full
11278 path to pkg-config.
11279
11280 Alternatively, you may set the environment variables GSTAPP_CFLAGS
11281 and GSTAPP_LIBS to avoid the need to call pkg-config.
11282 See the pkg-config man page for more details.
11283
11284 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11285 See \`config.log' for more details" "$LINENO" 5 ; }
11286 else
11287         GSTAPP_CFLAGS=$pkg_cv_GSTAPP_CFLAGS
11288         GSTAPP_LIBS=$pkg_cv_GSTAPP_LIBS
11289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11290 $as_echo "yes" >&6; }
11291
11292 fi
11293
11294
11295
11296
11297 pkg_failed=no
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
11299 $as_echo_n "checking for GMODULE... " >&6; }
11300
11301 if test -n "$GMODULE_CFLAGS"; then
11302     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
11303  elif test -n "$PKG_CONFIG"; then
11304     if test -n "$PKG_CONFIG" && \
11305     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
11306   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
11307   ac_status=$?
11308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309   test $ac_status = 0; }; then
11310   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
11311 else
11312   pkg_failed=yes
11313 fi
11314  else
11315     pkg_failed=untried
11316 fi
11317 if test -n "$GMODULE_LIBS"; then
11318     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
11319  elif test -n "$PKG_CONFIG"; then
11320     if test -n "$PKG_CONFIG" && \
11321     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
11322   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
11323   ac_status=$?
11324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11325   test $ac_status = 0; }; then
11326   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
11327 else
11328   pkg_failed=yes
11329 fi
11330  else
11331     pkg_failed=untried
11332 fi
11333
11334
11335
11336 if test $pkg_failed = yes; then
11337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339
11340 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11341         _pkg_short_errors_supported=yes
11342 else
11343         _pkg_short_errors_supported=no
11344 fi
11345         if test $_pkg_short_errors_supported = yes; then
11346                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gmodule-2.0" 2>&1`
11347         else
11348                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "gmodule-2.0" 2>&1`
11349         fi
11350         # Put the nasty error message in config.log where it belongs
11351         echo "$GMODULE_PKG_ERRORS" >&5
11352
11353         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
11354
11355 $GMODULE_PKG_ERRORS
11356
11357 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11358 installed software in a non-standard prefix.
11359
11360 Alternatively, you may set the environment variables GMODULE_CFLAGS
11361 and GMODULE_LIBS to avoid the need to call pkg-config.
11362 See the pkg-config man page for more details." "$LINENO" 5
11363 elif test $pkg_failed = untried; then
11364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11368 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11369 is in your PATH or set the PKG_CONFIG environment variable to the full
11370 path to pkg-config.
11371
11372 Alternatively, you may set the environment variables GMODULE_CFLAGS
11373 and GMODULE_LIBS to avoid the need to call pkg-config.
11374 See the pkg-config man page for more details.
11375
11376 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11377 See \`config.log' for more details" "$LINENO" 5 ; }
11378 else
11379         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
11380         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
11381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383
11384 fi
11385
11386
11387
11388 ac_config_files="$ac_config_files Makefile gstcs/Makefile gstcs/mmutil-gstcs.pc"
11389
11390 cat >confcache <<\_ACEOF
11391 # This file is a shell script that caches the results of configure
11392 # tests run on this system so they can be shared between configure
11393 # scripts and configure runs, see configure's option --config-cache.
11394 # It is not useful on other systems.  If it contains results you don't
11395 # want to keep, you may remove or edit it.
11396 #
11397 # config.status only pays attention to the cache file if you give it
11398 # the --recheck option to rerun configure.
11399 #
11400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11402 # following values.
11403
11404 _ACEOF
11405
11406 # The following way of writing the cache mishandles newlines in values,
11407 # but we know of no workaround that is simple, portable, and efficient.
11408 # So, we kill variables containing newlines.
11409 # Ultrix sh set writes to stderr and can't be redirected directly,
11410 # and sets the high bit in the cache file unless we assign to the vars.
11411 (
11412   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11413     eval ac_val=\$$ac_var
11414     case $ac_val in #(
11415     *${as_nl}*)
11416       case $ac_var in #(
11417       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11419       esac
11420       case $ac_var in #(
11421       _ | IFS | as_nl) ;; #(
11422       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11423       *) { eval $ac_var=; unset $ac_var;} ;;
11424       esac ;;
11425     esac
11426   done
11427
11428   (set) 2>&1 |
11429     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11430     *${as_nl}ac_space=\ *)
11431       # `set' does not quote correctly, so add quotes: double-quote
11432       # substitution turns \\\\ into \\, and sed turns \\ into \.
11433       sed -n \
11434         "s/'/'\\\\''/g;
11435           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11436       ;; #(
11437     *)
11438       # `set' quotes correctly as required by POSIX, so do not add quotes.
11439       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11440       ;;
11441     esac |
11442     sort
11443 ) |
11444   sed '
11445      /^ac_cv_env_/b end
11446      t clear
11447      :clear
11448      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11449      t end
11450      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11451      :end' >>confcache
11452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11453   if test -w "$cache_file"; then
11454     test "x$cache_file" != "x/dev/null" &&
11455       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11456 $as_echo "$as_me: updating cache $cache_file" >&6;}
11457     cat confcache >$cache_file
11458   else
11459     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11460 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11461   fi
11462 fi
11463 rm -f confcache
11464
11465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11466 # Let make expand exec_prefix.
11467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11468
11469 DEFS=-DHAVE_CONFIG_H
11470
11471 ac_libobjs=
11472 ac_ltlibobjs=
11473 U=
11474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11475   # 1. Remove the extension, and $U if already installed.
11476   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11477   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11478   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11479   #    will be set to the directory where LIBOBJS objects are built.
11480   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11481   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11482 done
11483 LIBOBJS=$ac_libobjs
11484
11485 LTLIBOBJS=$ac_ltlibobjs
11486
11487
11488  if test -n "$EXEEXT"; then
11489   am__EXEEXT_TRUE=
11490   am__EXEEXT_FALSE='#'
11491 else
11492   am__EXEEXT_TRUE='#'
11493   am__EXEEXT_FALSE=
11494 fi
11495
11496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11497   as_fn_error $? "conditional \"AMDEP\" was never defined.
11498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11499 fi
11500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11501   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11503 fi
11504
11505 : ${CONFIG_STATUS=./config.status}
11506 ac_write_fail=0
11507 ac_clean_files_save=$ac_clean_files
11508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11511 as_write_fail=0
11512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11513 #! $SHELL
11514 # Generated by $as_me.
11515 # Run this file to recreate the current configuration.
11516 # Compiler output produced by configure, useful for debugging
11517 # configure, is in config.log if it exists.
11518
11519 debug=false
11520 ac_cs_recheck=false
11521 ac_cs_silent=false
11522
11523 SHELL=\${CONFIG_SHELL-$SHELL}
11524 export SHELL
11525 _ASEOF
11526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11527 ## -------------------- ##
11528 ## M4sh Initialization. ##
11529 ## -------------------- ##
11530
11531 # Be more Bourne compatible
11532 DUALCASE=1; export DUALCASE # for MKS sh
11533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11534   emulate sh
11535   NULLCMD=:
11536   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11537   # is contrary to our usage.  Disable this feature.
11538   alias -g '${1+"$@"}'='"$@"'
11539   setopt NO_GLOB_SUBST
11540 else
11541   case `(set -o) 2>/dev/null` in #(
11542   *posix*) :
11543     set -o posix ;; #(
11544   *) :
11545      ;;
11546 esac
11547 fi
11548
11549
11550 as_nl='
11551 '
11552 export as_nl
11553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11554 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11557 # Prefer a ksh shell builtin over an external printf program on Solaris,
11558 # but without wasting forks for bash or zsh.
11559 if test -z "$BASH_VERSION$ZSH_VERSION" \
11560     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11561   as_echo='print -r --'
11562   as_echo_n='print -rn --'
11563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11564   as_echo='printf %s\n'
11565   as_echo_n='printf %s'
11566 else
11567   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11568     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11569     as_echo_n='/usr/ucb/echo -n'
11570   else
11571     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11572     as_echo_n_body='eval
11573       arg=$1;
11574       case $arg in #(
11575       *"$as_nl"*)
11576         expr "X$arg" : "X\\(.*\\)$as_nl";
11577         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11578       esac;
11579       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11580     '
11581     export as_echo_n_body
11582     as_echo_n='sh -c $as_echo_n_body as_echo'
11583   fi
11584   export as_echo_body
11585   as_echo='sh -c $as_echo_body as_echo'
11586 fi
11587
11588 # The user is always right.
11589 if test "${PATH_SEPARATOR+set}" != set; then
11590   PATH_SEPARATOR=:
11591   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11592     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11593       PATH_SEPARATOR=';'
11594   }
11595 fi
11596
11597
11598 # IFS
11599 # We need space, tab and new line, in precisely that order.  Quoting is
11600 # there to prevent editors from complaining about space-tab.
11601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11602 # splitting by setting IFS to empty value.)
11603 IFS=" ""        $as_nl"
11604
11605 # Find who we are.  Look in the path if we contain no directory separator.
11606 case $0 in #((
11607   *[\\/]* ) as_myself=$0 ;;
11608   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611   IFS=$as_save_IFS
11612   test -z "$as_dir" && as_dir=.
11613     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11614   done
11615 IFS=$as_save_IFS
11616
11617      ;;
11618 esac
11619 # We did not find ourselves, most probably we were run as `sh COMMAND'
11620 # in which case we are not to be found in the path.
11621 if test "x$as_myself" = x; then
11622   as_myself=$0
11623 fi
11624 if test ! -f "$as_myself"; then
11625   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11626   exit 1
11627 fi
11628
11629 # Unset variables that we do not need and which cause bugs (e.g. in
11630 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11631 # suppresses any "Segmentation fault" message there.  '((' could
11632 # trigger a bug in pdksh 5.2.14.
11633 for as_var in BASH_ENV ENV MAIL MAILPATH
11634 do eval test x\${$as_var+set} = xset \
11635   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11636 done
11637 PS1='$ '
11638 PS2='> '
11639 PS4='+ '
11640
11641 # NLS nuisances.
11642 LC_ALL=C
11643 export LC_ALL
11644 LANGUAGE=C
11645 export LANGUAGE
11646
11647 # CDPATH.
11648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11649
11650
11651 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11652 # ----------------------------------------
11653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11655 # script with STATUS, using 1 if that was 0.
11656 as_fn_error ()
11657 {
11658   as_status=$1; test $as_status -eq 0 && as_status=1
11659   if test "$4"; then
11660     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11661     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11662   fi
11663   $as_echo "$as_me: error: $2" >&2
11664   as_fn_exit $as_status
11665 } # as_fn_error
11666
11667
11668 # as_fn_set_status STATUS
11669 # -----------------------
11670 # Set $? to STATUS, without forking.
11671 as_fn_set_status ()
11672 {
11673   return $1
11674 } # as_fn_set_status
11675
11676 # as_fn_exit STATUS
11677 # -----------------
11678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11679 as_fn_exit ()
11680 {
11681   set +e
11682   as_fn_set_status $1
11683   exit $1
11684 } # as_fn_exit
11685
11686 # as_fn_unset VAR
11687 # ---------------
11688 # Portably unset VAR.
11689 as_fn_unset ()
11690 {
11691   { eval $1=; unset $1;}
11692 }
11693 as_unset=as_fn_unset
11694 # as_fn_append VAR VALUE
11695 # ----------------------
11696 # Append the text in VALUE to the end of the definition contained in VAR. Take
11697 # advantage of any shell optimizations that allow amortized linear growth over
11698 # repeated appends, instead of the typical quadratic growth present in naive
11699 # implementations.
11700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11701   eval 'as_fn_append ()
11702   {
11703     eval $1+=\$2
11704   }'
11705 else
11706   as_fn_append ()
11707   {
11708     eval $1=\$$1\$2
11709   }
11710 fi # as_fn_append
11711
11712 # as_fn_arith ARG...
11713 # ------------------
11714 # Perform arithmetic evaluation on the ARGs, and store the result in the
11715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11716 # must be portable across $(()) and expr.
11717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11718   eval 'as_fn_arith ()
11719   {
11720     as_val=$(( $* ))
11721   }'
11722 else
11723   as_fn_arith ()
11724   {
11725     as_val=`expr "$@" || test $? -eq 1`
11726   }
11727 fi # as_fn_arith
11728
11729
11730 if expr a : '\(a\)' >/dev/null 2>&1 &&
11731    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11732   as_expr=expr
11733 else
11734   as_expr=false
11735 fi
11736
11737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11738   as_basename=basename
11739 else
11740   as_basename=false
11741 fi
11742
11743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11744   as_dirname=dirname
11745 else
11746   as_dirname=false
11747 fi
11748
11749 as_me=`$as_basename -- "$0" ||
11750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11751          X"$0" : 'X\(//\)$' \| \
11752          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11753 $as_echo X/"$0" |
11754     sed '/^.*\/\([^/][^/]*\)\/*$/{
11755             s//\1/
11756             q
11757           }
11758           /^X\/\(\/\/\)$/{
11759             s//\1/
11760             q
11761           }
11762           /^X\/\(\/\).*/{
11763             s//\1/
11764             q
11765           }
11766           s/.*/./; q'`
11767
11768 # Avoid depending upon Character Ranges.
11769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11772 as_cr_digits='0123456789'
11773 as_cr_alnum=$as_cr_Letters$as_cr_digits
11774
11775 ECHO_C= ECHO_N= ECHO_T=
11776 case `echo -n x` in #(((((
11777 -n*)
11778   case `echo 'xy\c'` in
11779   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11780   xy)  ECHO_C='\c';;
11781   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11782        ECHO_T=' ';;
11783   esac;;
11784 *)
11785   ECHO_N='-n';;
11786 esac
11787
11788 rm -f conf$$ conf$$.exe conf$$.file
11789 if test -d conf$$.dir; then
11790   rm -f conf$$.dir/conf$$.file
11791 else
11792   rm -f conf$$.dir
11793   mkdir conf$$.dir 2>/dev/null
11794 fi
11795 if (echo >conf$$.file) 2>/dev/null; then
11796   if ln -s conf$$.file conf$$ 2>/dev/null; then
11797     as_ln_s='ln -s'
11798     # ... but there are two gotchas:
11799     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11800     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11801     # In both cases, we have to default to `cp -p'.
11802     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11803       as_ln_s='cp -p'
11804   elif ln conf$$.file conf$$ 2>/dev/null; then
11805     as_ln_s=ln
11806   else
11807     as_ln_s='cp -p'
11808   fi
11809 else
11810   as_ln_s='cp -p'
11811 fi
11812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11813 rmdir conf$$.dir 2>/dev/null
11814
11815
11816 # as_fn_mkdir_p
11817 # -------------
11818 # Create "$as_dir" as a directory, including parents if necessary.
11819 as_fn_mkdir_p ()
11820 {
11821
11822   case $as_dir in #(
11823   -*) as_dir=./$as_dir;;
11824   esac
11825   test -d "$as_dir" || eval $as_mkdir_p || {
11826     as_dirs=
11827     while :; do
11828       case $as_dir in #(
11829       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11830       *) as_qdir=$as_dir;;
11831       esac
11832       as_dirs="'$as_qdir' $as_dirs"
11833       as_dir=`$as_dirname -- "$as_dir" ||
11834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835          X"$as_dir" : 'X\(//\)[^/]' \| \
11836          X"$as_dir" : 'X\(//\)$' \| \
11837          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11838 $as_echo X"$as_dir" |
11839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11840             s//\1/
11841             q
11842           }
11843           /^X\(\/\/\)[^/].*/{
11844             s//\1/
11845             q
11846           }
11847           /^X\(\/\/\)$/{
11848             s//\1/
11849             q
11850           }
11851           /^X\(\/\).*/{
11852             s//\1/
11853             q
11854           }
11855           s/.*/./; q'`
11856       test -d "$as_dir" && break
11857     done
11858     test -z "$as_dirs" || eval "mkdir $as_dirs"
11859   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11860
11861
11862 } # as_fn_mkdir_p
11863 if mkdir -p . 2>/dev/null; then
11864   as_mkdir_p='mkdir -p "$as_dir"'
11865 else
11866   test -d ./-p && rmdir ./-p
11867   as_mkdir_p=false
11868 fi
11869
11870 if test -x / >/dev/null 2>&1; then
11871   as_test_x='test -x'
11872 else
11873   if ls -dL / >/dev/null 2>&1; then
11874     as_ls_L_option=L
11875   else
11876     as_ls_L_option=
11877   fi
11878   as_test_x='
11879     eval sh -c '\''
11880       if test -d "$1"; then
11881         test -d "$1/.";
11882       else
11883         case $1 in #(
11884         -*)set "./$1";;
11885         esac;
11886         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11887         ???[sx]*):;;*)false;;esac;fi
11888     '\'' sh
11889   '
11890 fi
11891 as_executable_p=$as_test_x
11892
11893 # Sed expression to map a string onto a valid CPP name.
11894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11895
11896 # Sed expression to map a string onto a valid variable name.
11897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11898
11899
11900 exec 6>&1
11901 ## ----------------------------------- ##
11902 ## Main body of $CONFIG_STATUS script. ##
11903 ## ----------------------------------- ##
11904 _ASEOF
11905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11906
11907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11908 # Save the log message, to keep $0 and so on meaningful, and to
11909 # report actual input values of CONFIG_FILES etc. instead of their
11910 # values after options handling.
11911 ac_log="
11912 This file was extended by libmm-imgp-gstcs $as_me 0.1, which was
11913 generated by GNU Autoconf 2.67.  Invocation command line was
11914
11915   CONFIG_FILES    = $CONFIG_FILES
11916   CONFIG_HEADERS  = $CONFIG_HEADERS
11917   CONFIG_LINKS    = $CONFIG_LINKS
11918   CONFIG_COMMANDS = $CONFIG_COMMANDS
11919   $ $0 $@
11920
11921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11922 "
11923
11924 _ACEOF
11925
11926 case $ac_config_files in *"
11927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11928 esac
11929
11930 case $ac_config_headers in *"
11931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11932 esac
11933
11934
11935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11936 # Files that config.status was made for.
11937 config_files="$ac_config_files"
11938 config_headers="$ac_config_headers"
11939 config_commands="$ac_config_commands"
11940
11941 _ACEOF
11942
11943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11944 ac_cs_usage="\
11945 \`$as_me' instantiates files and other configuration actions
11946 from templates according to the current configuration.  Unless the files
11947 and actions are specified as TAGs, all are instantiated by default.
11948
11949 Usage: $0 [OPTION]... [TAG]...
11950
11951   -h, --help       print this help, then exit
11952   -V, --version    print version number and configuration settings, then exit
11953       --config     print configuration, then exit
11954   -q, --quiet, --silent
11955                    do not print progress messages
11956   -d, --debug      don't remove temporary files
11957       --recheck    update $as_me by reconfiguring in the same conditions
11958       --file=FILE[:TEMPLATE]
11959                    instantiate the configuration file FILE
11960       --header=FILE[:TEMPLATE]
11961                    instantiate the configuration header FILE
11962
11963 Configuration files:
11964 $config_files
11965
11966 Configuration headers:
11967 $config_headers
11968
11969 Configuration commands:
11970 $config_commands
11971
11972 Report bugs to the package provider."
11973
11974 _ACEOF
11975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11976 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11977 ac_cs_version="\\
11978 libmm-imgp-gstcs config.status 0.1
11979 configured by $0, generated by GNU Autoconf 2.67,
11980   with options \\"\$ac_cs_config\\"
11981
11982 Copyright (C) 2010 Free Software Foundation, Inc.
11983 This config.status script is free software; the Free Software Foundation
11984 gives unlimited permission to copy, distribute and modify it."
11985
11986 ac_pwd='$ac_pwd'
11987 srcdir='$srcdir'
11988 INSTALL='$INSTALL'
11989 MKDIR_P='$MKDIR_P'
11990 AWK='$AWK'
11991 test -n "\$AWK" || AWK=awk
11992 _ACEOF
11993
11994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11995 # The default lists apply if the user does not specify any file.
11996 ac_need_defaults=:
11997 while test $# != 0
11998 do
11999   case $1 in
12000   --*=?*)
12001     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12002     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12003     ac_shift=:
12004     ;;
12005   --*=)
12006     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12007     ac_optarg=
12008     ac_shift=:
12009     ;;
12010   *)
12011     ac_option=$1
12012     ac_optarg=$2
12013     ac_shift=shift
12014     ;;
12015   esac
12016
12017   case $ac_option in
12018   # Handling of the options.
12019   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12020     ac_cs_recheck=: ;;
12021   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12022     $as_echo "$ac_cs_version"; exit ;;
12023   --config | --confi | --conf | --con | --co | --c )
12024     $as_echo "$ac_cs_config"; exit ;;
12025   --debug | --debu | --deb | --de | --d | -d )
12026     debug=: ;;
12027   --file | --fil | --fi | --f )
12028     $ac_shift
12029     case $ac_optarg in
12030     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12031     '') as_fn_error $? "missing file argument" ;;
12032     esac
12033     as_fn_append CONFIG_FILES " '$ac_optarg'"
12034     ac_need_defaults=false;;
12035   --header | --heade | --head | --hea )
12036     $ac_shift
12037     case $ac_optarg in
12038     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12039     esac
12040     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12041     ac_need_defaults=false;;
12042   --he | --h)
12043     # Conflict between --help and --header
12044     as_fn_error $? "ambiguous option: \`$1'
12045 Try \`$0 --help' for more information.";;
12046   --help | --hel | -h )
12047     $as_echo "$ac_cs_usage"; exit ;;
12048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12049   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12050     ac_cs_silent=: ;;
12051
12052   # This is an error.
12053   -*) as_fn_error $? "unrecognized option: \`$1'
12054 Try \`$0 --help' for more information." ;;
12055
12056   *) as_fn_append ac_config_targets " $1"
12057      ac_need_defaults=false ;;
12058
12059   esac
12060   shift
12061 done
12062
12063 ac_configure_extra_args=
12064
12065 if $ac_cs_silent; then
12066   exec 6>/dev/null
12067   ac_configure_extra_args="$ac_configure_extra_args --silent"
12068 fi
12069
12070 _ACEOF
12071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12072 if \$ac_cs_recheck; then
12073   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12074   shift
12075   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12076   CONFIG_SHELL='$SHELL'
12077   export CONFIG_SHELL
12078   exec "\$@"
12079 fi
12080
12081 _ACEOF
12082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12083 exec 5>>config.log
12084 {
12085   echo
12086   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12087 ## Running $as_me. ##
12088 _ASBOX
12089   $as_echo "$ac_log"
12090 } >&5
12091
12092 _ACEOF
12093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094 #
12095 # INIT-COMMANDS
12096 #
12097 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12098
12099
12100 # The HP-UX ksh and POSIX shell print the target directory to stdout
12101 # if CDPATH is set.
12102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12103
12104 sed_quote_subst='$sed_quote_subst'
12105 double_quote_subst='$double_quote_subst'
12106 delay_variable_subst='$delay_variable_subst'
12107 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12108 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12109 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12110 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12111 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12112 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12113 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12114 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12115 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12116 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12117 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12118 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12119 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12120 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12121 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12122 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12123 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12124 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12125 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12126 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12127 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12128 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12129 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12130 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12131 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12132 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12133 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12134 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12135 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12136 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12137 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12138 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12139 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12140 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12141 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12142 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12144 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12145 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12146 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12147 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12148 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12149 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12150 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12151 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"`'
12152 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"`'
12153 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12154 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12155 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12156 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12157 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12158 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12159 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12160 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12161 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12162 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12163 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12164 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12165 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12166 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12167 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12168 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12169 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12172 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12173 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12174 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12175 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12176 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12177 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12178 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12180 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12181 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12182 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12183 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12184 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12185 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12186 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12187 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12188 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12189 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12190 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12191 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12192 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12193 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12194 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12195 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12196 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12197 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12198 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12199 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12200 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12201 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12202 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12203 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12204 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12205 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12206 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12207 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12208 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12209 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12210 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12211 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12212 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12213 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12214 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12215 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12216 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12217 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12218 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12219 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12220 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12221 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12222 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12223 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12224 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12225
12226 LTCC='$LTCC'
12227 LTCFLAGS='$LTCFLAGS'
12228 compiler='$compiler_DEFAULT'
12229
12230 # Quote evaled strings.
12231 for var in SED \
12232 GREP \
12233 EGREP \
12234 FGREP \
12235 LD \
12236 NM \
12237 LN_S \
12238 lt_SP2NL \
12239 lt_NL2SP \
12240 reload_flag \
12241 OBJDUMP \
12242 deplibs_check_method \
12243 file_magic_cmd \
12244 AR \
12245 AR_FLAGS \
12246 STRIP \
12247 RANLIB \
12248 CC \
12249 CFLAGS \
12250 compiler \
12251 lt_cv_sys_global_symbol_pipe \
12252 lt_cv_sys_global_symbol_to_cdecl \
12253 lt_cv_sys_global_symbol_to_c_name_address \
12254 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12255 SHELL \
12256 ECHO \
12257 lt_prog_compiler_no_builtin_flag \
12258 lt_prog_compiler_wl \
12259 lt_prog_compiler_pic \
12260 lt_prog_compiler_static \
12261 lt_cv_prog_compiler_c_o \
12262 need_locks \
12263 DSYMUTIL \
12264 NMEDIT \
12265 LIPO \
12266 OTOOL \
12267 OTOOL64 \
12268 shrext_cmds \
12269 export_dynamic_flag_spec \
12270 whole_archive_flag_spec \
12271 compiler_needs_object \
12272 with_gnu_ld \
12273 allow_undefined_flag \
12274 no_undefined_flag \
12275 hardcode_libdir_flag_spec \
12276 hardcode_libdir_flag_spec_ld \
12277 hardcode_libdir_separator \
12278 fix_srcfile_path \
12279 exclude_expsyms \
12280 include_expsyms \
12281 file_list_spec \
12282 variables_saved_for_relink \
12283 libname_spec \
12284 library_names_spec \
12285 soname_spec \
12286 finish_eval \
12287 old_striplib \
12288 striplib; do
12289     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12290     *[\\\\\\\`\\"\\\$]*)
12291       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12292       ;;
12293     *)
12294       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12295       ;;
12296     esac
12297 done
12298
12299 # Double-quote double-evaled strings.
12300 for var in reload_cmds \
12301 old_postinstall_cmds \
12302 old_postuninstall_cmds \
12303 old_archive_cmds \
12304 extract_expsyms_cmds \
12305 old_archive_from_new_cmds \
12306 old_archive_from_expsyms_cmds \
12307 archive_cmds \
12308 archive_expsym_cmds \
12309 module_cmds \
12310 module_expsym_cmds \
12311 export_symbols_cmds \
12312 prelink_cmds \
12313 postinstall_cmds \
12314 postuninstall_cmds \
12315 finish_cmds \
12316 sys_lib_search_path_spec \
12317 sys_lib_dlsearch_path_spec; do
12318     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12319     *[\\\\\\\`\\"\\\$]*)
12320       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12321       ;;
12322     *)
12323       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12324       ;;
12325     esac
12326 done
12327
12328 # Fix-up fallback echo if it was mangled by the above quoting rules.
12329 case \$lt_ECHO in
12330 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12331   ;;
12332 esac
12333
12334 ac_aux_dir='$ac_aux_dir'
12335 xsi_shell='$xsi_shell'
12336 lt_shell_append='$lt_shell_append'
12337
12338 # See if we are running on zsh, and set the options which allow our
12339 # commands through without removal of \ escapes INIT.
12340 if test -n "\${ZSH_VERSION+set}" ; then
12341    setopt NO_GLOB_SUBST
12342 fi
12343
12344
12345     PACKAGE='$PACKAGE'
12346     VERSION='$VERSION'
12347     TIMESTAMP='$TIMESTAMP'
12348     RM='$RM'
12349     ofile='$ofile'
12350
12351
12352
12353
12354 _ACEOF
12355
12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357
12358 # Handling of arguments.
12359 for ac_config_target in $ac_config_targets
12360 do
12361   case $ac_config_target in
12362     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12363     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12364     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12365     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12366     "gstcs/Makefile") CONFIG_FILES="$CONFIG_FILES gstcs/Makefile" ;;
12367     "gstcs/mmutil-gstcs.pc") CONFIG_FILES="$CONFIG_FILES gstcs/mmutil-gstcs.pc" ;;
12368
12369   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12370   esac
12371 done
12372
12373
12374 # If the user did not use the arguments to specify the items to instantiate,
12375 # then the envvar interface is used.  Set only those that are not.
12376 # We use the long form for the default assignment because of an extremely
12377 # bizarre bug on SunOS 4.1.3.
12378 if $ac_need_defaults; then
12379   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12380   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12381   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12382 fi
12383
12384 # Have a temporary directory for convenience.  Make it in the build tree
12385 # simply because there is no reason against having it here, and in addition,
12386 # creating and moving files from /tmp can sometimes cause problems.
12387 # Hook for its removal unless debugging.
12388 # Note that there is a small window in which the directory will not be cleaned:
12389 # after its creation but before its name has been assigned to `$tmp'.
12390 $debug ||
12391 {
12392   tmp=
12393   trap 'exit_status=$?
12394   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12395 ' 0
12396   trap 'as_fn_exit 1' 1 2 13 15
12397 }
12398 # Create a (secure) tmp directory for tmp files.
12399
12400 {
12401   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12402   test -n "$tmp" && test -d "$tmp"
12403 }  ||
12404 {
12405   tmp=./conf$$-$RANDOM
12406   (umask 077 && mkdir "$tmp")
12407 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12408
12409 # Set up the scripts for CONFIG_FILES section.
12410 # No need to generate them if there are no CONFIG_FILES.
12411 # This happens for instance with `./config.status config.h'.
12412 if test -n "$CONFIG_FILES"; then
12413
12414
12415 ac_cr=`echo X | tr X '\015'`
12416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12417 # But we know of no other shell where ac_cr would be empty at this
12418 # point, so we can use a bashism as a fallback.
12419 if test "x$ac_cr" = x; then
12420   eval ac_cr=\$\'\\r\'
12421 fi
12422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12424   ac_cs_awk_cr='\\r'
12425 else
12426   ac_cs_awk_cr=$ac_cr
12427 fi
12428
12429 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12430 _ACEOF
12431
12432
12433 {
12434   echo "cat >conf$$subs.awk <<_ACEOF" &&
12435   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12436   echo "_ACEOF"
12437 } >conf$$subs.sh ||
12438   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12439 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12440 ac_delim='%!_!# '
12441 for ac_last_try in false false false false false :; do
12442   . ./conf$$subs.sh ||
12443     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12444
12445   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12446   if test $ac_delim_n = $ac_delim_num; then
12447     break
12448   elif $ac_last_try; then
12449     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12450   else
12451     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12452   fi
12453 done
12454 rm -f conf$$subs.sh
12455
12456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12457 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12458 _ACEOF
12459 sed -n '
12460 h
12461 s/^/S["/; s/!.*/"]=/
12462 p
12463 g
12464 s/^[^!]*!//
12465 :repl
12466 t repl
12467 s/'"$ac_delim"'$//
12468 t delim
12469 :nl
12470 h
12471 s/\(.\{148\}\)..*/\1/
12472 t more1
12473 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12474 p
12475 n
12476 b repl
12477 :more1
12478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12479 p
12480 g
12481 s/.\{148\}//
12482 t nl
12483 :delim
12484 h
12485 s/\(.\{148\}\)..*/\1/
12486 t more2
12487 s/["\\]/\\&/g; s/^/"/; s/$/"/
12488 p
12489 b
12490 :more2
12491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12492 p
12493 g
12494 s/.\{148\}//
12495 t delim
12496 ' <conf$$subs.awk | sed '
12497 /^[^""]/{
12498   N
12499   s/\n//
12500 }
12501 ' >>$CONFIG_STATUS || ac_write_fail=1
12502 rm -f conf$$subs.awk
12503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12504 _ACAWK
12505 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12506   for (key in S) S_is_set[key] = 1
12507   FS = "\a"
12508
12509 }
12510 {
12511   line = $ 0
12512   nfields = split(line, field, "@")
12513   substed = 0
12514   len = length(field[1])
12515   for (i = 2; i < nfields; i++) {
12516     key = field[i]
12517     keylen = length(key)
12518     if (S_is_set[key]) {
12519       value = S[key]
12520       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12521       len += length(value) + length(field[++i])
12522       substed = 1
12523     } else
12524       len += 1 + keylen
12525   }
12526
12527   print line
12528 }
12529
12530 _ACAWK
12531 _ACEOF
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12534   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12535 else
12536   cat
12537 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12538   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12539 _ACEOF
12540
12541 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12542 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12543 # trailing colons and then remove the whole line if VPATH becomes empty
12544 # (actually we leave an empty line to preserve line numbers).
12545 if test "x$srcdir" = x.; then
12546   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12547 h
12548 s///
12549 s/^/:/
12550 s/[      ]*$/:/
12551 s/:\$(srcdir):/:/g
12552 s/:\${srcdir}:/:/g
12553 s/:@srcdir@:/:/g
12554 s/^:*//
12555 s/:*$//
12556 x
12557 s/\(=[   ]*\).*/\1/
12558 G
12559 s/\n//
12560 s/^[^=]*=[       ]*$//
12561 }'
12562 fi
12563
12564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565 fi # test -n "$CONFIG_FILES"
12566
12567 # Set up the scripts for CONFIG_HEADERS section.
12568 # No need to generate them if there are no CONFIG_HEADERS.
12569 # This happens for instance with `./config.status Makefile'.
12570 if test -n "$CONFIG_HEADERS"; then
12571 cat >"$tmp/defines.awk" <<\_ACAWK ||
12572 BEGIN {
12573 _ACEOF
12574
12575 # Transform confdefs.h into an awk script `defines.awk', embedded as
12576 # here-document in config.status, that substitutes the proper values into
12577 # config.h.in to produce config.h.
12578
12579 # Create a delimiter string that does not exist in confdefs.h, to ease
12580 # handling of long lines.
12581 ac_delim='%!_!# '
12582 for ac_last_try in false false :; do
12583   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12584   if test -z "$ac_t"; then
12585     break
12586   elif $ac_last_try; then
12587     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12588   else
12589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12590   fi
12591 done
12592
12593 # For the awk script, D is an array of macro values keyed by name,
12594 # likewise P contains macro parameters if any.  Preserve backslash
12595 # newline sequences.
12596
12597 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12598 sed -n '
12599 s/.\{148\}/&'"$ac_delim"'/g
12600 t rset
12601 :rset
12602 s/^[     ]*#[    ]*define[       ][      ]*/ /
12603 t def
12604 d
12605 :def
12606 s/\\$//
12607 t bsnl
12608 s/["\\]/\\&/g
12609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12610 D["\1"]=" \3"/p
12611 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12612 d
12613 :bsnl
12614 s/["\\]/\\&/g
12615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12616 D["\1"]=" \3\\\\\\n"\\/p
12617 t cont
12618 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12619 t cont
12620 d
12621 :cont
12622 n
12623 s/.\{148\}/&'"$ac_delim"'/g
12624 t clear
12625 :clear
12626 s/\\$//
12627 t bsnlc
12628 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12629 d
12630 :bsnlc
12631 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12632 b cont
12633 ' <confdefs.h | sed '
12634 s/'"$ac_delim"'/"\\\
12635 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12636
12637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638   for (key in D) D_is_set[key] = 1
12639   FS = "\a"
12640 }
12641 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12642   line = \$ 0
12643   split(line, arg, " ")
12644   if (arg[1] == "#") {
12645     defundef = arg[2]
12646     mac1 = arg[3]
12647   } else {
12648     defundef = substr(arg[1], 2)
12649     mac1 = arg[2]
12650   }
12651   split(mac1, mac2, "(") #)
12652   macro = mac2[1]
12653   prefix = substr(line, 1, index(line, defundef) - 1)
12654   if (D_is_set[macro]) {
12655     # Preserve the white space surrounding the "#".
12656     print prefix "define", macro P[macro] D[macro]
12657     next
12658   } else {
12659     # Replace #undef with comments.  This is necessary, for example,
12660     # in the case of _POSIX_SOURCE, which is predefined and required
12661     # on some systems where configure will not decide to define it.
12662     if (defundef == "undef") {
12663       print "/*", prefix defundef, macro, "*/"
12664       next
12665     }
12666   }
12667 }
12668 { print }
12669 _ACAWK
12670 _ACEOF
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12673 fi # test -n "$CONFIG_HEADERS"
12674
12675
12676 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12677 shift
12678 for ac_tag
12679 do
12680   case $ac_tag in
12681   :[FHLC]) ac_mode=$ac_tag; continue;;
12682   esac
12683   case $ac_mode$ac_tag in
12684   :[FHL]*:*);;
12685   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12686   :[FH]-) ac_tag=-:-;;
12687   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12688   esac
12689   ac_save_IFS=$IFS
12690   IFS=:
12691   set x $ac_tag
12692   IFS=$ac_save_IFS
12693   shift
12694   ac_file=$1
12695   shift
12696
12697   case $ac_mode in
12698   :L) ac_source=$1;;
12699   :[FH])
12700     ac_file_inputs=
12701     for ac_f
12702     do
12703       case $ac_f in
12704       -) ac_f="$tmp/stdin";;
12705       *) # Look for the file first in the build tree, then in the source tree
12706          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12707          # because $ac_f cannot contain `:'.
12708          test -f "$ac_f" ||
12709            case $ac_f in
12710            [\\/$]*) false;;
12711            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12712            esac ||
12713            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12714       esac
12715       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12716       as_fn_append ac_file_inputs " '$ac_f'"
12717     done
12718
12719     # Let's still pretend it is `configure' which instantiates (i.e., don't
12720     # use $as_me), people would be surprised to read:
12721     #    /* config.h.  Generated by config.status.  */
12722     configure_input='Generated from '`
12723           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12724         `' by configure.'
12725     if test x"$ac_file" != x-; then
12726       configure_input="$ac_file.  $configure_input"
12727       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12728 $as_echo "$as_me: creating $ac_file" >&6;}
12729     fi
12730     # Neutralize special characters interpreted by sed in replacement strings.
12731     case $configure_input in #(
12732     *\&* | *\|* | *\\* )
12733        ac_sed_conf_input=`$as_echo "$configure_input" |
12734        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12735     *) ac_sed_conf_input=$configure_input;;
12736     esac
12737
12738     case $ac_tag in
12739     *:-:* | *:-) cat >"$tmp/stdin" \
12740       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
12741     esac
12742     ;;
12743   esac
12744
12745   ac_dir=`$as_dirname -- "$ac_file" ||
12746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12747          X"$ac_file" : 'X\(//\)[^/]' \| \
12748          X"$ac_file" : 'X\(//\)$' \| \
12749          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12750 $as_echo X"$ac_file" |
12751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12752             s//\1/
12753             q
12754           }
12755           /^X\(\/\/\)[^/].*/{
12756             s//\1/
12757             q
12758           }
12759           /^X\(\/\/\)$/{
12760             s//\1/
12761             q
12762           }
12763           /^X\(\/\).*/{
12764             s//\1/
12765             q
12766           }
12767           s/.*/./; q'`
12768   as_dir="$ac_dir"; as_fn_mkdir_p
12769   ac_builddir=.
12770
12771 case "$ac_dir" in
12772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12773 *)
12774   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12775   # A ".." for each directory in $ac_dir_suffix.
12776   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12777   case $ac_top_builddir_sub in
12778   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12779   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12780   esac ;;
12781 esac
12782 ac_abs_top_builddir=$ac_pwd
12783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12784 # for backward compatibility:
12785 ac_top_builddir=$ac_top_build_prefix
12786
12787 case $srcdir in
12788   .)  # We are building in place.
12789     ac_srcdir=.
12790     ac_top_srcdir=$ac_top_builddir_sub
12791     ac_abs_top_srcdir=$ac_pwd ;;
12792   [\\/]* | ?:[\\/]* )  # Absolute name.
12793     ac_srcdir=$srcdir$ac_dir_suffix;
12794     ac_top_srcdir=$srcdir
12795     ac_abs_top_srcdir=$srcdir ;;
12796   *) # Relative name.
12797     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12798     ac_top_srcdir=$ac_top_build_prefix$srcdir
12799     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12800 esac
12801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12802
12803
12804   case $ac_mode in
12805   :F)
12806   #
12807   # CONFIG_FILE
12808   #
12809
12810   case $INSTALL in
12811   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12812   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12813   esac
12814   ac_MKDIR_P=$MKDIR_P
12815   case $MKDIR_P in
12816   [\\/$]* | ?:[\\/]* ) ;;
12817   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12818   esac
12819 _ACEOF
12820
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12822 # If the template does not know about datarootdir, expand it.
12823 # FIXME: This hack should be removed a few years after 2.60.
12824 ac_datarootdir_hack=; ac_datarootdir_seen=
12825 ac_sed_dataroot='
12826 /datarootdir/ {
12827   p
12828   q
12829 }
12830 /@datadir@/p
12831 /@docdir@/p
12832 /@infodir@/p
12833 /@localedir@/p
12834 /@mandir@/p'
12835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12836 *datarootdir*) ac_datarootdir_seen=yes;;
12837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12840 _ACEOF
12841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842   ac_datarootdir_hack='
12843   s&@datadir@&$datadir&g
12844   s&@docdir@&$docdir&g
12845   s&@infodir@&$infodir&g
12846   s&@localedir@&$localedir&g
12847   s&@mandir@&$mandir&g
12848   s&\\\${datarootdir}&$datarootdir&g' ;;
12849 esac
12850 _ACEOF
12851
12852 # Neutralize VPATH when `$srcdir' = `.'.
12853 # Shell code in configure.ac might set extrasub.
12854 # FIXME: do we really want to maintain this feature?
12855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12856 ac_sed_extra="$ac_vpsub
12857 $extrasub
12858 _ACEOF
12859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12860 :t
12861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12862 s|@configure_input@|$ac_sed_conf_input|;t t
12863 s&@top_builddir@&$ac_top_builddir_sub&;t t
12864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12865 s&@srcdir@&$ac_srcdir&;t t
12866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12867 s&@top_srcdir@&$ac_top_srcdir&;t t
12868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12869 s&@builddir@&$ac_builddir&;t t
12870 s&@abs_builddir@&$ac_abs_builddir&;t t
12871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12872 s&@INSTALL@&$ac_INSTALL&;t t
12873 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12874 $ac_datarootdir_hack
12875 "
12876 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12877   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12878
12879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12880   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12881   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12883 which seems to be undefined.  Please make sure it is defined" >&5
12884 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12885 which seems to be undefined.  Please make sure it is defined" >&2;}
12886
12887   rm -f "$tmp/stdin"
12888   case $ac_file in
12889   -) cat "$tmp/out" && rm -f "$tmp/out";;
12890   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12891   esac \
12892   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12893  ;;
12894   :H)
12895   #
12896   # CONFIG_HEADER
12897   #
12898   if test x"$ac_file" != x-; then
12899     {
12900       $as_echo "/* $configure_input  */" \
12901       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12902     } >"$tmp/config.h" \
12903       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12904     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12905       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12906 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12907     else
12908       rm -f "$ac_file"
12909       mv "$tmp/config.h" "$ac_file" \
12910         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12911     fi
12912   else
12913     $as_echo "/* $configure_input  */" \
12914       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12915       || as_fn_error $? "could not create -" "$LINENO" 5
12916   fi
12917 # Compute "$ac_file"'s index in $config_headers.
12918 _am_arg="$ac_file"
12919 _am_stamp_count=1
12920 for _am_header in $config_headers :; do
12921   case $_am_header in
12922     $_am_arg | $_am_arg:* )
12923       break ;;
12924     * )
12925       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12926   esac
12927 done
12928 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12929 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12930          X"$_am_arg" : 'X\(//\)[^/]' \| \
12931          X"$_am_arg" : 'X\(//\)$' \| \
12932          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12933 $as_echo X"$_am_arg" |
12934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12935             s//\1/
12936             q
12937           }
12938           /^X\(\/\/\)[^/].*/{
12939             s//\1/
12940             q
12941           }
12942           /^X\(\/\/\)$/{
12943             s//\1/
12944             q
12945           }
12946           /^X\(\/\).*/{
12947             s//\1/
12948             q
12949           }
12950           s/.*/./; q'`/stamp-h$_am_stamp_count
12951  ;;
12952
12953   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12954 $as_echo "$as_me: executing $ac_file commands" >&6;}
12955  ;;
12956   esac
12957
12958
12959   case $ac_file$ac_mode in
12960     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12961   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12962   # are listed without --file.  Let's play safe and only enable the eval
12963   # if we detect the quoting.
12964   case $CONFIG_FILES in
12965   *\'*) eval set x "$CONFIG_FILES" ;;
12966   *)   set x $CONFIG_FILES ;;
12967   esac
12968   shift
12969   for mf
12970   do
12971     # Strip MF so we end up with the name of the file.
12972     mf=`echo "$mf" | sed -e 's/:.*$//'`
12973     # Check whether this is an Automake generated Makefile or not.
12974     # We used to match only the files named `Makefile.in', but
12975     # some people rename them; so instead we look at the file content.
12976     # Grep'ing the first line is not enough: some people post-process
12977     # each Makefile.in and add a new line on top of each file to say so.
12978     # Grep'ing the whole file is not good either: AIX grep has a line
12979     # limit of 2048, but all sed's we know have understand at least 4000.
12980     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12981       dirpart=`$as_dirname -- "$mf" ||
12982 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12983          X"$mf" : 'X\(//\)[^/]' \| \
12984          X"$mf" : 'X\(//\)$' \| \
12985          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12986 $as_echo X"$mf" |
12987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12988             s//\1/
12989             q
12990           }
12991           /^X\(\/\/\)[^/].*/{
12992             s//\1/
12993             q
12994           }
12995           /^X\(\/\/\)$/{
12996             s//\1/
12997             q
12998           }
12999           /^X\(\/\).*/{
13000             s//\1/
13001             q
13002           }
13003           s/.*/./; q'`
13004     else
13005       continue
13006     fi
13007     # Extract the definition of DEPDIR, am__include, and am__quote
13008     # from the Makefile without running `make'.
13009     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13010     test -z "$DEPDIR" && continue
13011     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13012     test -z "am__include" && continue
13013     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13014     # When using ansi2knr, U may be empty or an underscore; expand it
13015     U=`sed -n 's/^U = //p' < "$mf"`
13016     # Find all dependency output files, they are included files with
13017     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13018     # simplest approach to changing $(DEPDIR) to its actual value in the
13019     # expansion.
13020     for file in `sed -n "
13021       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13022          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13023       # Make sure the directory exists.
13024       test -f "$dirpart/$file" && continue
13025       fdir=`$as_dirname -- "$file" ||
13026 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13027          X"$file" : 'X\(//\)[^/]' \| \
13028          X"$file" : 'X\(//\)$' \| \
13029          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13030 $as_echo X"$file" |
13031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13032             s//\1/
13033             q
13034           }
13035           /^X\(\/\/\)[^/].*/{
13036             s//\1/
13037             q
13038           }
13039           /^X\(\/\/\)$/{
13040             s//\1/
13041             q
13042           }
13043           /^X\(\/\).*/{
13044             s//\1/
13045             q
13046           }
13047           s/.*/./; q'`
13048       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13049       # echo "creating $dirpart/$file"
13050       echo '# dummy' > "$dirpart/$file"
13051     done
13052   done
13053 }
13054  ;;
13055     "libtool":C)
13056
13057     # See if we are running on zsh, and set the options which allow our
13058     # commands through without removal of \ escapes.
13059     if test -n "${ZSH_VERSION+set}" ; then
13060       setopt NO_GLOB_SUBST
13061     fi
13062
13063     cfgfile="${ofile}T"
13064     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13065     $RM "$cfgfile"
13066
13067     cat <<_LT_EOF >> "$cfgfile"
13068 #! $SHELL
13069
13070 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13071 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13073 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13074 #
13075 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13076 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13077 #   Written by Gordon Matzigkeit, 1996
13078 #
13079 #   This file is part of GNU Libtool.
13080 #
13081 # GNU Libtool is free software; you can redistribute it and/or
13082 # modify it under the terms of the GNU General Public License as
13083 # published by the Free Software Foundation; either version 2 of
13084 # the License, or (at your option) any later version.
13085 #
13086 # As a special exception to the GNU General Public License,
13087 # if you distribute this file as part of a program or library that
13088 # is built using GNU Libtool, you may include this file under the
13089 # same distribution terms that you use for the rest of that program.
13090 #
13091 # GNU Libtool is distributed in the hope that it will be useful,
13092 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13094 # GNU General Public License for more details.
13095 #
13096 # You should have received a copy of the GNU General Public License
13097 # along with GNU Libtool; see the file COPYING.  If not, a copy
13098 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13099 # obtained by writing to the Free Software Foundation, Inc.,
13100 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13101
13102
13103 # The names of the tagged configurations supported by this script.
13104 available_tags=""
13105
13106 # ### BEGIN LIBTOOL CONFIG
13107
13108 # Which release of libtool.m4 was used?
13109 macro_version=$macro_version
13110 macro_revision=$macro_revision
13111
13112 # Whether or not to build shared libraries.
13113 build_libtool_libs=$enable_shared
13114
13115 # Whether or not to build static libraries.
13116 build_old_libs=$enable_static
13117
13118 # What type of objects to build.
13119 pic_mode=$pic_mode
13120
13121 # Whether or not to optimize for fast installation.
13122 fast_install=$enable_fast_install
13123
13124 # The host system.
13125 host_alias=$host_alias
13126 host=$host
13127 host_os=$host_os
13128
13129 # The build system.
13130 build_alias=$build_alias
13131 build=$build
13132 build_os=$build_os
13133
13134 # A sed program that does not truncate output.
13135 SED=$lt_SED
13136
13137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13138 Xsed="\$SED -e 1s/^X//"
13139
13140 # A grep program that handles long lines.
13141 GREP=$lt_GREP
13142
13143 # An ERE matcher.
13144 EGREP=$lt_EGREP
13145
13146 # A literal string matcher.
13147 FGREP=$lt_FGREP
13148
13149 # A BSD- or MS-compatible name lister.
13150 NM=$lt_NM
13151
13152 # Whether we need soft or hard links.
13153 LN_S=$lt_LN_S
13154
13155 # What is the maximum length of a command?
13156 max_cmd_len=$max_cmd_len
13157
13158 # Object file suffix (normally "o").
13159 objext=$ac_objext
13160
13161 # Executable file suffix (normally "").
13162 exeext=$exeext
13163
13164 # whether the shell understands "unset".
13165 lt_unset=$lt_unset
13166
13167 # turn spaces into newlines.
13168 SP2NL=$lt_lt_SP2NL
13169
13170 # turn newlines into spaces.
13171 NL2SP=$lt_lt_NL2SP
13172
13173 # How to create reloadable object files.
13174 reload_flag=$lt_reload_flag
13175 reload_cmds=$lt_reload_cmds
13176
13177 # An object symbol dumper.
13178 OBJDUMP=$lt_OBJDUMP
13179
13180 # Method to check whether dependent libraries are shared objects.
13181 deplibs_check_method=$lt_deplibs_check_method
13182
13183 # Command to use when deplibs_check_method == "file_magic".
13184 file_magic_cmd=$lt_file_magic_cmd
13185
13186 # The archiver.
13187 AR=$lt_AR
13188 AR_FLAGS=$lt_AR_FLAGS
13189
13190 # A symbol stripping program.
13191 STRIP=$lt_STRIP
13192
13193 # Commands used to install an old-style archive.
13194 RANLIB=$lt_RANLIB
13195 old_postinstall_cmds=$lt_old_postinstall_cmds
13196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13197
13198 # A C compiler.
13199 LTCC=$lt_CC
13200
13201 # LTCC compiler flags.
13202 LTCFLAGS=$lt_CFLAGS
13203
13204 # Take the output of nm and produce a listing of raw symbols and C names.
13205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13206
13207 # Transform the output of nm in a proper C declaration.
13208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13209
13210 # Transform the output of nm in a C name address pair.
13211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13212
13213 # Transform the output of nm in a C name address pair when lib prefix is needed.
13214 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13215
13216 # The name of the directory that contains temporary libtool files.
13217 objdir=$objdir
13218
13219 # Shell to use when invoking shell scripts.
13220 SHELL=$lt_SHELL
13221
13222 # An echo program that does not interpret backslashes.
13223 ECHO=$lt_ECHO
13224
13225 # Used to examine libraries when file_magic_cmd begins with "file".
13226 MAGIC_CMD=$MAGIC_CMD
13227
13228 # Must we lock files when doing compilation?
13229 need_locks=$lt_need_locks
13230
13231 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13232 DSYMUTIL=$lt_DSYMUTIL
13233
13234 # Tool to change global to local symbols on Mac OS X.
13235 NMEDIT=$lt_NMEDIT
13236
13237 # Tool to manipulate fat objects and archives on Mac OS X.
13238 LIPO=$lt_LIPO
13239
13240 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13241 OTOOL=$lt_OTOOL
13242
13243 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13244 OTOOL64=$lt_OTOOL64
13245
13246 # Old archive suffix (normally "a").
13247 libext=$libext
13248
13249 # Shared library suffix (normally ".so").
13250 shrext_cmds=$lt_shrext_cmds
13251
13252 # The commands to extract the exported symbol list from a shared archive.
13253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13254
13255 # Variables whose values should be saved in libtool wrapper scripts and
13256 # restored at link time.
13257 variables_saved_for_relink=$lt_variables_saved_for_relink
13258
13259 # Do we need the "lib" prefix for modules?
13260 need_lib_prefix=$need_lib_prefix
13261
13262 # Do we need a version for libraries?
13263 need_version=$need_version
13264
13265 # Library versioning type.
13266 version_type=$version_type
13267
13268 # Shared library runtime path variable.
13269 runpath_var=$runpath_var
13270
13271 # Shared library path variable.
13272 shlibpath_var=$shlibpath_var
13273
13274 # Is shlibpath searched before the hard-coded library search path?
13275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13276
13277 # Format of library name prefix.
13278 libname_spec=$lt_libname_spec
13279
13280 # List of archive names.  First name is the real one, the rest are links.
13281 # The last name is the one that the linker finds with -lNAME
13282 library_names_spec=$lt_library_names_spec
13283
13284 # The coded name of the library, if different from the real name.
13285 soname_spec=$lt_soname_spec
13286
13287 # Command to use after installation of a shared archive.
13288 postinstall_cmds=$lt_postinstall_cmds
13289
13290 # Command to use after uninstallation of a shared archive.
13291 postuninstall_cmds=$lt_postuninstall_cmds
13292
13293 # Commands used to finish a libtool library installation in a directory.
13294 finish_cmds=$lt_finish_cmds
13295
13296 # As "finish_cmds", except a single script fragment to be evaled but
13297 # not shown.
13298 finish_eval=$lt_finish_eval
13299
13300 # Whether we should hardcode library paths into libraries.
13301 hardcode_into_libs=$hardcode_into_libs
13302
13303 # Compile-time system search path for libraries.
13304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13305
13306 # Run-time system search path for libraries.
13307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13308
13309 # Whether dlopen is supported.
13310 dlopen_support=$enable_dlopen
13311
13312 # Whether dlopen of programs is supported.
13313 dlopen_self=$enable_dlopen_self
13314
13315 # Whether dlopen of statically linked programs is supported.
13316 dlopen_self_static=$enable_dlopen_self_static
13317
13318 # Commands to strip libraries.
13319 old_striplib=$lt_old_striplib
13320 striplib=$lt_striplib
13321
13322
13323 # The linker used to build libraries.
13324 LD=$lt_LD
13325
13326 # Commands used to build an old-style archive.
13327 old_archive_cmds=$lt_old_archive_cmds
13328
13329 # A language specific compiler.
13330 CC=$lt_compiler
13331
13332 # Is the compiler the GNU compiler?
13333 with_gcc=$GCC
13334
13335 # Compiler flag to turn off builtin functions.
13336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13337
13338 # How to pass a linker flag through the compiler.
13339 wl=$lt_lt_prog_compiler_wl
13340
13341 # Additional compiler flags for building library objects.
13342 pic_flag=$lt_lt_prog_compiler_pic
13343
13344 # Compiler flag to prevent dynamic linking.
13345 link_static_flag=$lt_lt_prog_compiler_static
13346
13347 # Does compiler simultaneously support -c and -o options?
13348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13349
13350 # Whether or not to add -lc for building shared libraries.
13351 build_libtool_need_lc=$archive_cmds_need_lc
13352
13353 # Whether or not to disallow shared libs when runtime libs are static.
13354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13355
13356 # Compiler flag to allow reflexive dlopens.
13357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13358
13359 # Compiler flag to generate shared objects directly from archives.
13360 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13361
13362 # Whether the compiler copes with passing no objects directly.
13363 compiler_needs_object=$lt_compiler_needs_object
13364
13365 # Create an old-style archive from a shared archive.
13366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13367
13368 # Create a temporary old-style archive to link instead of a shared archive.
13369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13370
13371 # Commands used to build a shared archive.
13372 archive_cmds=$lt_archive_cmds
13373 archive_expsym_cmds=$lt_archive_expsym_cmds
13374
13375 # Commands used to build a loadable module if different from building
13376 # a shared archive.
13377 module_cmds=$lt_module_cmds
13378 module_expsym_cmds=$lt_module_expsym_cmds
13379
13380 # Whether we are building with GNU ld or not.
13381 with_gnu_ld=$lt_with_gnu_ld
13382
13383 # Flag that allows shared libraries with undefined symbols to be built.
13384 allow_undefined_flag=$lt_allow_undefined_flag
13385
13386 # Flag that enforces no undefined symbols.
13387 no_undefined_flag=$lt_no_undefined_flag
13388
13389 # Flag to hardcode \$libdir into a binary during linking.
13390 # This must work even if \$libdir does not exist
13391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13392
13393 # If ld is used when linking, flag to hardcode \$libdir into a binary
13394 # during linking.  This must work even if \$libdir does not exist.
13395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13396
13397 # Whether we need a single "-rpath" flag with a separated argument.
13398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13399
13400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13401 # DIR into the resulting binary.
13402 hardcode_direct=$hardcode_direct
13403
13404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13405 # DIR into the resulting binary and the resulting library dependency is
13406 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13407 # library is relocated.
13408 hardcode_direct_absolute=$hardcode_direct_absolute
13409
13410 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13411 # into the resulting binary.
13412 hardcode_minus_L=$hardcode_minus_L
13413
13414 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13415 # into the resulting binary.
13416 hardcode_shlibpath_var=$hardcode_shlibpath_var
13417
13418 # Set to "yes" if building a shared library automatically hardcodes DIR
13419 # into the library and all subsequent libraries and executables linked
13420 # against it.
13421 hardcode_automatic=$hardcode_automatic
13422
13423 # Set to yes if linker adds runtime paths of dependent libraries
13424 # to runtime path list.
13425 inherit_rpath=$inherit_rpath
13426
13427 # Whether libtool must link a program against all its dependency libraries.
13428 link_all_deplibs=$link_all_deplibs
13429
13430 # Fix the shell variable \$srcfile for the compiler.
13431 fix_srcfile_path=$lt_fix_srcfile_path
13432
13433 # Set to "yes" if exported symbols are required.
13434 always_export_symbols=$always_export_symbols
13435
13436 # The commands to list exported symbols.
13437 export_symbols_cmds=$lt_export_symbols_cmds
13438
13439 # Symbols that should not be listed in the preloaded symbols.
13440 exclude_expsyms=$lt_exclude_expsyms
13441
13442 # Symbols that must always be exported.
13443 include_expsyms=$lt_include_expsyms
13444
13445 # Commands necessary for linking programs (against libraries) with templates.
13446 prelink_cmds=$lt_prelink_cmds
13447
13448 # Specify filename containing input files.
13449 file_list_spec=$lt_file_list_spec
13450
13451 # How to hardcode a shared library path into an executable.
13452 hardcode_action=$hardcode_action
13453
13454 # ### END LIBTOOL CONFIG
13455
13456 _LT_EOF
13457
13458   case $host_os in
13459   aix3*)
13460     cat <<\_LT_EOF >> "$cfgfile"
13461 # AIX sometimes has problems with the GCC collect2 program.  For some
13462 # reason, if we set the COLLECT_NAMES environment variable, the problems
13463 # vanish in a puff of smoke.
13464 if test "X${COLLECT_NAMES+set}" != Xset; then
13465   COLLECT_NAMES=
13466   export COLLECT_NAMES
13467 fi
13468 _LT_EOF
13469     ;;
13470   esac
13471
13472
13473 ltmain="$ac_aux_dir/ltmain.sh"
13474
13475
13476   # We use sed instead of cat because bash on DJGPP gets confused if
13477   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13478   # text mode, it properly converts lines to CR/LF.  This bash problem
13479   # is reportedly fixed, but why not run on old versions too?
13480   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13481     || (rm -f "$cfgfile"; exit 1)
13482
13483   case $xsi_shell in
13484   yes)
13485     cat << \_LT_EOF >> "$cfgfile"
13486
13487 # func_dirname file append nondir_replacement
13488 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13489 # otherwise set result to NONDIR_REPLACEMENT.
13490 func_dirname ()
13491 {
13492   case ${1} in
13493     */*) func_dirname_result="${1%/*}${2}" ;;
13494     *  ) func_dirname_result="${3}" ;;
13495   esac
13496 }
13497
13498 # func_basename file
13499 func_basename ()
13500 {
13501   func_basename_result="${1##*/}"
13502 }
13503
13504 # func_dirname_and_basename file append nondir_replacement
13505 # perform func_basename and func_dirname in a single function
13506 # call:
13507 #   dirname:  Compute the dirname of FILE.  If nonempty,
13508 #             add APPEND to the result, otherwise set result
13509 #             to NONDIR_REPLACEMENT.
13510 #             value returned in "$func_dirname_result"
13511 #   basename: Compute filename of FILE.
13512 #             value retuned in "$func_basename_result"
13513 # Implementation must be kept synchronized with func_dirname
13514 # and func_basename. For efficiency, we do not delegate to
13515 # those functions but instead duplicate the functionality here.
13516 func_dirname_and_basename ()
13517 {
13518   case ${1} in
13519     */*) func_dirname_result="${1%/*}${2}" ;;
13520     *  ) func_dirname_result="${3}" ;;
13521   esac
13522   func_basename_result="${1##*/}"
13523 }
13524
13525 # func_stripname prefix suffix name
13526 # strip PREFIX and SUFFIX off of NAME.
13527 # PREFIX and SUFFIX must not contain globbing or regex special
13528 # characters, hashes, percent signs, but SUFFIX may contain a leading
13529 # dot (in which case that matches only a dot).
13530 func_stripname ()
13531 {
13532   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13533   # positional parameters, so assign one to ordinary parameter first.
13534   func_stripname_result=${3}
13535   func_stripname_result=${func_stripname_result#"${1}"}
13536   func_stripname_result=${func_stripname_result%"${2}"}
13537 }
13538
13539 # func_opt_split
13540 func_opt_split ()
13541 {
13542   func_opt_split_opt=${1%%=*}
13543   func_opt_split_arg=${1#*=}
13544 }
13545
13546 # func_lo2o object
13547 func_lo2o ()
13548 {
13549   case ${1} in
13550     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13551     *)    func_lo2o_result=${1} ;;
13552   esac
13553 }
13554
13555 # func_xform libobj-or-source
13556 func_xform ()
13557 {
13558   func_xform_result=${1%.*}.lo
13559 }
13560
13561 # func_arith arithmetic-term...
13562 func_arith ()
13563 {
13564   func_arith_result=$(( $* ))
13565 }
13566
13567 # func_len string
13568 # STRING may not start with a hyphen.
13569 func_len ()
13570 {
13571   func_len_result=${#1}
13572 }
13573
13574 _LT_EOF
13575     ;;
13576   *) # Bourne compatible functions.
13577     cat << \_LT_EOF >> "$cfgfile"
13578
13579 # func_dirname file append nondir_replacement
13580 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13581 # otherwise set result to NONDIR_REPLACEMENT.
13582 func_dirname ()
13583 {
13584   # Extract subdirectory from the argument.
13585   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13586   if test "X$func_dirname_result" = "X${1}"; then
13587     func_dirname_result="${3}"
13588   else
13589     func_dirname_result="$func_dirname_result${2}"
13590   fi
13591 }
13592
13593 # func_basename file
13594 func_basename ()
13595 {
13596   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13597 }
13598
13599
13600 # func_stripname prefix suffix name
13601 # strip PREFIX and SUFFIX off of NAME.
13602 # PREFIX and SUFFIX must not contain globbing or regex special
13603 # characters, hashes, percent signs, but SUFFIX may contain a leading
13604 # dot (in which case that matches only a dot).
13605 # func_strip_suffix prefix name
13606 func_stripname ()
13607 {
13608   case ${2} in
13609     .*) func_stripname_result=`$ECHO "X${3}" \
13610            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13611     *)  func_stripname_result=`$ECHO "X${3}" \
13612            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13613   esac
13614 }
13615
13616 # sed scripts:
13617 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13618 my_sed_long_arg='1s/^-[^=]*=//'
13619
13620 # func_opt_split
13621 func_opt_split ()
13622 {
13623   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13624   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13625 }
13626
13627 # func_lo2o object
13628 func_lo2o ()
13629 {
13630   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13631 }
13632
13633 # func_xform libobj-or-source
13634 func_xform ()
13635 {
13636   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13637 }
13638
13639 # func_arith arithmetic-term...
13640 func_arith ()
13641 {
13642   func_arith_result=`expr "$@"`
13643 }
13644
13645 # func_len string
13646 # STRING may not start with a hyphen.
13647 func_len ()
13648 {
13649   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13650 }
13651
13652 _LT_EOF
13653 esac
13654
13655 case $lt_shell_append in
13656   yes)
13657     cat << \_LT_EOF >> "$cfgfile"
13658
13659 # func_append var value
13660 # Append VALUE to the end of shell variable VAR.
13661 func_append ()
13662 {
13663   eval "$1+=\$2"
13664 }
13665 _LT_EOF
13666     ;;
13667   *)
13668     cat << \_LT_EOF >> "$cfgfile"
13669
13670 # func_append var value
13671 # Append VALUE to the end of shell variable VAR.
13672 func_append ()
13673 {
13674   eval "$1=\$$1\$2"
13675 }
13676
13677 _LT_EOF
13678     ;;
13679   esac
13680
13681
13682   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13683     || (rm -f "$cfgfile"; exit 1)
13684
13685   mv -f "$cfgfile" "$ofile" ||
13686     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13687   chmod +x "$ofile"
13688
13689  ;;
13690
13691   esac
13692 done # for ac_tag
13693
13694
13695 as_fn_exit 0
13696 _ACEOF
13697 ac_clean_files=$ac_clean_files_save
13698
13699 test $ac_write_fail = 0 ||
13700   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13701
13702
13703 # configure is writing to config.log, and then calls config.status.
13704 # config.status does its own redirection, appending to config.log.
13705 # Unfortunately, on DOS this fails, as config.log is still kept open
13706 # by configure, so config.status won't be able to write to it; its
13707 # output is simply discarded.  So we exec the FD to /dev/null,
13708 # effectively closing config.log, so it can be properly (re)opened and
13709 # appended to by config.status.  When coming back to configure, we
13710 # need to make the FD available again.
13711 if test "$no_create" != yes; then
13712   ac_cs_success=:
13713   ac_config_status_args=
13714   test "$silent" = yes &&
13715     ac_config_status_args="$ac_config_status_args --quiet"
13716   exec 5>/dev/null
13717   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13718   exec 5>>config.log
13719   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13720   # would make configure fail if this is the last instruction.
13721   $ac_cs_success || as_fn_exit 1
13722 fi
13723 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13725 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13726 fi
13727
13728