Imported Upstream version 1.2.50
[platform/upstream/libpng.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libpng 1.2.50.
4 #
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: png-mng-implement@lists.sourceforge.net about your
235 $0: system, including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='libpng'
703 PACKAGE_TARNAME='libpng'
704 PACKAGE_VERSION='1.2.50'
705 PACKAGE_STRING='libpng 1.2.50'
706 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
707 PACKAGE_URL=''
708
709 ac_unique_file="pngget.c"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 compatlib
750 binconfigs
751 pkgconfigdir
752 PNGLIB_RELEASE
753 PNGLIB_MINOR
754 PNGLIB_MAJOR
755 PNGLIB_VERSION
756 SYMBOL_PREFIX
757 HAVE_LD_VERSION_SCRIPT_FALSE
758 HAVE_LD_VERSION_SCRIPT_TRUE
759 LIBPNG_NO_MMX
760 LIBPNG_DEFINES
761 LIBOBJS
762 POW_LIB
763 OTOOL64
764 OTOOL
765 LIPO
766 NMEDIT
767 DSYMUTIL
768 lt_ECHO
769 RANLIB
770 AR
771 NM
772 ac_ct_DUMPBIN
773 DUMPBIN
774 LIBTOOL
775 LN_S
776 OBJDUMP
777 DLLTOOL
778 AS
779 CPP
780 LD
781 FGREP
782 EGREP
783 GREP
784 SED
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 am__fastdepCC_FALSE
794 am__fastdepCC_TRUE
795 CCDEPMODE
796 AMDEPBACKSLASH
797 AMDEP_FALSE
798 AMDEP_TRUE
799 am__quote
800 am__include
801 DEPDIR
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 MAINT
810 MAINTAINER_MODE_FALSE
811 MAINTAINER_MODE_TRUE
812 am__untar
813 am__tar
814 AMTAR
815 am__leading_dot
816 SET_MAKE
817 AWK
818 mkdir_p
819 MKDIR_P
820 INSTALL_STRIP_PROGRAM
821 STRIP
822 install_sh
823 MAKEINFO
824 AUTOHEADER
825 AUTOMAKE
826 AUTOCONF
827 ACLOCAL
828 VERSION
829 PACKAGE
830 CYGPATH_W
831 am__isrc
832 INSTALL_DATA
833 INSTALL_SCRIPT
834 INSTALL_PROGRAM
835 target_alias
836 host_alias
837 build_alias
838 LIBS
839 ECHO_T
840 ECHO_N
841 ECHO_C
842 DEFS
843 mandir
844 localedir
845 libdir
846 psdir
847 pdfdir
848 dvidir
849 htmldir
850 infodir
851 docdir
852 oldincludedir
853 includedir
854 localstatedir
855 sharedstatedir
856 sysconfdir
857 datadir
858 datarootdir
859 libexecdir
860 sbindir
861 bindir
862 program_transform_name
863 prefix
864 exec_prefix
865 PACKAGE_URL
866 PACKAGE_BUGREPORT
867 PACKAGE_STRING
868 PACKAGE_VERSION
869 PACKAGE_TARNAME
870 PACKAGE_NAME
871 PATH_SEPARATOR
872 SHELL'
873 ac_subst_files=''
874 ac_user_opts='
875 enable_option_checking
876 enable_maintainer_mode
877 enable_dependency_tracking
878 with_gnu_ld
879 enable_shared
880 enable_static
881 with_pic
882 enable_fast_install
883 enable_libtool_lock
884 with_pkgconfigdir
885 with_binconfigs
886 with_libpng_compat
887 '
888       ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CC
892 CFLAGS
893 LDFLAGS
894 LIBS
895 CPPFLAGS
896 CPP'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951   # If the previous option needs an argument, assign it.
952   if test -n "$ac_prev"; then
953     eval $ac_prev=\$ac_option
954     ac_prev=
955     continue
956   fi
957
958   case $ac_option in
959   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960   *)    ac_optarg=yes ;;
961   esac
962
963   # Accept the important Cygnus configure options, so we can diagnose typos.
964
965   case $ac_dashdash$ac_option in
966   --)
967     ac_dashdash=yes ;;
968
969   -bindir | --bindir | --bindi | --bind | --bin | --bi)
970     ac_prev=bindir ;;
971   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972     bindir=$ac_optarg ;;
973
974   -build | --build | --buil | --bui | --bu)
975     ac_prev=build_alias ;;
976   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977     build_alias=$ac_optarg ;;
978
979   -cache-file | --cache-file | --cache-fil | --cache-fi \
980   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981     ac_prev=cache_file ;;
982   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984     cache_file=$ac_optarg ;;
985
986   --config-cache | -C)
987     cache_file=config.cache ;;
988
989   -datadir | --datadir | --datadi | --datad)
990     ac_prev=datadir ;;
991   -datadir=* | --datadir=* | --datadi=* | --datad=*)
992     datadir=$ac_optarg ;;
993
994   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995   | --dataroo | --dataro | --datar)
996     ac_prev=datarootdir ;;
997   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999     datarootdir=$ac_optarg ;;
1000
1001   -disable-* | --disable-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error "invalid feature name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval enable_$ac_useropt=no ;;
1016
1017   -docdir | --docdir | --docdi | --doc | --do)
1018     ac_prev=docdir ;;
1019   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020     docdir=$ac_optarg ;;
1021
1022   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023     ac_prev=dvidir ;;
1024   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025     dvidir=$ac_optarg ;;
1026
1027   -enable-* | --enable-*)
1028     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029     # Reject names that are not valid shell variable names.
1030     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031       as_fn_error "invalid feature name: $ac_useropt"
1032     ac_useropt_orig=$ac_useropt
1033     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034     case $ac_user_opts in
1035       *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039          ac_unrecognized_sep=', ';;
1040     esac
1041     eval enable_$ac_useropt=\$ac_optarg ;;
1042
1043   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045   | --exec | --exe | --ex)
1046     ac_prev=exec_prefix ;;
1047   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049   | --exec=* | --exe=* | --ex=*)
1050     exec_prefix=$ac_optarg ;;
1051
1052   -gas | --gas | --ga | --g)
1053     # Obsolete; use --with-gas.
1054     with_gas=yes ;;
1055
1056   -help | --help | --hel | --he | -h)
1057     ac_init_help=long ;;
1058   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059     ac_init_help=recursive ;;
1060   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061     ac_init_help=short ;;
1062
1063   -host | --host | --hos | --ho)
1064     ac_prev=host_alias ;;
1065   -host=* | --host=* | --hos=* | --ho=*)
1066     host_alias=$ac_optarg ;;
1067
1068   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069     ac_prev=htmldir ;;
1070   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071   | --ht=*)
1072     htmldir=$ac_optarg ;;
1073
1074   -includedir | --includedir | --includedi | --included | --include \
1075   | --includ | --inclu | --incl | --inc)
1076     ac_prev=includedir ;;
1077   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078   | --includ=* | --inclu=* | --incl=* | --inc=*)
1079     includedir=$ac_optarg ;;
1080
1081   -infodir | --infodir | --infodi | --infod | --info | --inf)
1082     ac_prev=infodir ;;
1083   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084     infodir=$ac_optarg ;;
1085
1086   -libdir | --libdir | --libdi | --libd)
1087     ac_prev=libdir ;;
1088   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089     libdir=$ac_optarg ;;
1090
1091   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092   | --libexe | --libex | --libe)
1093     ac_prev=libexecdir ;;
1094   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095   | --libexe=* | --libex=* | --libe=*)
1096     libexecdir=$ac_optarg ;;
1097
1098   -localedir | --localedir | --localedi | --localed | --locale)
1099     ac_prev=localedir ;;
1100   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101     localedir=$ac_optarg ;;
1102
1103   -localstatedir | --localstatedir | --localstatedi | --localstated \
1104   | --localstate | --localstat | --localsta | --localst | --locals)
1105     ac_prev=localstatedir ;;
1106   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108     localstatedir=$ac_optarg ;;
1109
1110   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111     ac_prev=mandir ;;
1112   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113     mandir=$ac_optarg ;;
1114
1115   -nfp | --nfp | --nf)
1116     # Obsolete; use --without-fp.
1117     with_fp=no ;;
1118
1119   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120   | --no-cr | --no-c | -n)
1121     no_create=yes ;;
1122
1123   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125     no_recursion=yes ;;
1126
1127   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129   | --oldin | --oldi | --old | --ol | --o)
1130     ac_prev=oldincludedir ;;
1131   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134     oldincludedir=$ac_optarg ;;
1135
1136   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137     ac_prev=prefix ;;
1138   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139     prefix=$ac_optarg ;;
1140
1141   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142   | --program-pre | --program-pr | --program-p)
1143     ac_prev=program_prefix ;;
1144   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146     program_prefix=$ac_optarg ;;
1147
1148   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149   | --program-suf | --program-su | --program-s)
1150     ac_prev=program_suffix ;;
1151   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153     program_suffix=$ac_optarg ;;
1154
1155   -program-transform-name | --program-transform-name \
1156   | --program-transform-nam | --program-transform-na \
1157   | --program-transform-n | --program-transform- \
1158   | --program-transform | --program-transfor \
1159   | --program-transfo | --program-transf \
1160   | --program-trans | --program-tran \
1161   | --progr-tra | --program-tr | --program-t)
1162     ac_prev=program_transform_name ;;
1163   -program-transform-name=* | --program-transform-name=* \
1164   | --program-transform-nam=* | --program-transform-na=* \
1165   | --program-transform-n=* | --program-transform-=* \
1166   | --program-transform=* | --program-transfor=* \
1167   | --program-transfo=* | --program-transf=* \
1168   | --program-trans=* | --program-tran=* \
1169   | --progr-tra=* | --program-tr=* | --program-t=*)
1170     program_transform_name=$ac_optarg ;;
1171
1172   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173     ac_prev=pdfdir ;;
1174   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175     pdfdir=$ac_optarg ;;
1176
1177   -psdir | --psdir | --psdi | --psd | --ps)
1178     ac_prev=psdir ;;
1179   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180     psdir=$ac_optarg ;;
1181
1182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183   | -silent | --silent | --silen | --sile | --sil)
1184     silent=yes ;;
1185
1186   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187     ac_prev=sbindir ;;
1188   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189   | --sbi=* | --sb=*)
1190     sbindir=$ac_optarg ;;
1191
1192   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194   | --sharedst | --shareds | --shared | --share | --shar \
1195   | --sha | --sh)
1196     ac_prev=sharedstatedir ;;
1197   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200   | --sha=* | --sh=*)
1201     sharedstatedir=$ac_optarg ;;
1202
1203   -site | --site | --sit)
1204     ac_prev=site ;;
1205   -site=* | --site=* | --sit=*)
1206     site=$ac_optarg ;;
1207
1208   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209     ac_prev=srcdir ;;
1210   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211     srcdir=$ac_optarg ;;
1212
1213   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214   | --syscon | --sysco | --sysc | --sys | --sy)
1215     ac_prev=sysconfdir ;;
1216   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218     sysconfdir=$ac_optarg ;;
1219
1220   -target | --target | --targe | --targ | --tar | --ta | --t)
1221     ac_prev=target_alias ;;
1222   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223     target_alias=$ac_optarg ;;
1224
1225   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226     verbose=yes ;;
1227
1228   -version | --version | --versio | --versi | --vers | -V)
1229     ac_init_version=: ;;
1230
1231   -with-* | --with-*)
1232     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233     # Reject names that are not valid shell variable names.
1234     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235       as_fn_error "invalid package name: $ac_useropt"
1236     ac_useropt_orig=$ac_useropt
1237     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238     case $ac_user_opts in
1239       *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243          ac_unrecognized_sep=', ';;
1244     esac
1245     eval with_$ac_useropt=\$ac_optarg ;;
1246
1247   -without-* | --without-*)
1248     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251       as_fn_error "invalid package name: $ac_useropt"
1252     ac_useropt_orig=$ac_useropt
1253     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254     case $ac_user_opts in
1255       *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259          ac_unrecognized_sep=', ';;
1260     esac
1261     eval with_$ac_useropt=no ;;
1262
1263   --x)
1264     # Obsolete; use --with-x.
1265     with_x=yes ;;
1266
1267   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268   | --x-incl | --x-inc | --x-in | --x-i)
1269     ac_prev=x_includes ;;
1270   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272     x_includes=$ac_optarg ;;
1273
1274   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276     ac_prev=x_libraries ;;
1277   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279     x_libraries=$ac_optarg ;;
1280
1281   -*) as_fn_error "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information."
1283     ;;
1284
1285   *=*)
1286     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287     # Reject names that are not valid shell variable names.
1288     case $ac_envvar in #(
1289       '' | [0-9]* | *[!_$as_cr_alnum]* )
1290       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1291     esac
1292     eval $ac_envvar=\$ac_optarg
1293     export $ac_envvar ;;
1294
1295   *)
1296     # FIXME: should be removed in autoconf 3.0.
1297     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301     ;;
1302
1303   esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308   as_fn_error "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312   case $enable_option_checking in
1313     no) ;;
1314     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1315     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316   esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321                 datadir sysconfdir sharedstatedir localstatedir includedir \
1322                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323                 libdir localedir mandir
1324 do
1325   eval ac_val=\$$ac_var
1326   # Remove trailing slashes.
1327   case $ac_val in
1328     */ )
1329       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330       eval $ac_var=\$ac_val;;
1331   esac
1332   # Be sure to have absolute directory names.
1333   case $ac_val in
1334     [\\/$]* | ?:[\\/]* )  continue;;
1335     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336   esac
1337   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349   if test "x$build_alias" = x; then
1350     cross_compiling=maybe
1351     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1352     If a cross compiler is detected then cross compile mode will be used." >&2
1353   elif test "x$build_alias" != "x$host_alias"; then
1354     cross_compiling=yes
1355   fi
1356 fi
1357
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361 test "$silent" = yes && exec 6>/dev/null
1362
1363
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367   as_fn_error "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369   as_fn_error "pwd does not report name of working directory"
1370
1371
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374   ac_srcdir_defaulted=yes
1375   # Try the directory containing this script, then the parent directory.
1376   ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378          X"$as_myself" : 'X\(//\)[^/]' \| \
1379          X"$as_myself" : 'X\(//\)$' \| \
1380          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\/\)[^/].*/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\/\)$/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\).*/{
1395             s//\1/
1396             q
1397           }
1398           s/.*/./; q'`
1399   srcdir=$ac_confdir
1400   if test ! -r "$srcdir/$ac_unique_file"; then
1401     srcdir=..
1402   fi
1403 else
1404   ac_srcdir_defaulted=no
1405 fi
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1413         pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416   srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426   eval ac_env_${ac_var}_value=\$${ac_var}
1427   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435   # Omit some internal or obsolete options to make the list less imposing.
1436   # This message is too long to be a string in the A/UX 3.1 sh.
1437   cat <<_ACEOF
1438 \`configure' configures libpng 1.2.50 to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE.  See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448   -h, --help              display this help and exit
1449       --help=short        display options specific to this package
1450       --help=recursive    display the short help of all the included packages
1451   -V, --version           display version information and exit
1452   -q, --quiet, --silent   do not print \`checking...' messages
1453       --cache-file=FILE   cache test results in FILE [disabled]
1454   -C, --config-cache      alias for \`--cache-file=config.cache'
1455   -n, --no-create         do not create output files
1456       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459   --prefix=PREFIX         install architecture-independent files in PREFIX
1460                           [$ac_default_prefix]
1461   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1462                           [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472   --bindir=DIR            user executables [EPREFIX/bin]
1473   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1474   --libexecdir=DIR        program executables [EPREFIX/libexec]
1475   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1476   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1477   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1478   --libdir=DIR            object code libraries [EPREFIX/lib]
1479   --includedir=DIR        C header files [PREFIX/include]
1480   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1481   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1482   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1483   --infodir=DIR           info documentation [DATAROOTDIR/info]
1484   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1485   --mandir=DIR            man documentation [DATAROOTDIR/man]
1486   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
1487   --htmldir=DIR           html documentation [DOCDIR]
1488   --dvidir=DIR            dvi documentation [DOCDIR]
1489   --pdfdir=DIR            pdf documentation [DOCDIR]
1490   --psdir=DIR             ps documentation [DOCDIR]
1491 _ACEOF
1492
1493   cat <<\_ACEOF
1494
1495 Program names:
1496   --program-prefix=PREFIX            prepend PREFIX to installed program names
1497   --program-suffix=SUFFIX            append SUFFIX to installed program names
1498   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1499
1500 System types:
1501   --build=BUILD     configure for building on BUILD [guessed]
1502   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507   case $ac_init_help in
1508      short | recursive ) echo "Configuration of libpng 1.2.50:";;
1509    esac
1510   cat <<\_ACEOF
1511
1512 Optional Features:
1513   --disable-option-checking  ignore unrecognized --enable/--with options
1514   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1515   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1516   --enable-maintainer-mode  enable make rules and dependencies not useful
1517                           (and sometimes confusing) to the casual installer
1518   --disable-dependency-tracking  speeds up one-time build
1519   --enable-dependency-tracking   do not reject slow dependency extractors
1520   --enable-shared[=PKGS]  build shared libraries [default=yes]
1521   --enable-static[=PKGS]  build static libraries [default=yes]
1522   --enable-fast-install[=PKGS]
1523                           optimize for fast installation [default=yes]
1524   --disable-libtool-lock  avoid locking (might break parallel builds)
1525
1526 Optional Packages:
1527   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530   --with-pic              try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-pkgconfigdir     Use the specified pkgconfig dir (default is
1533                           libdir/pkgconfig)
1534   --with-binconfigs       Generate shell libpng-config scripts as well as
1535                           pkg-config data [default=yes]
1536   --with-libpng-compat    Generate the obsolete libpng.so library
1537                           [default=yes]
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CPP         C preprocessor
1548
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1551
1552 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558   # If there are subdirs, report their specific --help.
1559   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560     test -d "$ac_dir" ||
1561       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562       continue
1563     ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569   # A ".." for each directory in $ac_dir_suffix.
1570   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571   case $ac_top_builddir_sub in
1572   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574   esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582   .)  # We are building in place.
1583     ac_srcdir=.
1584     ac_top_srcdir=$ac_top_builddir_sub
1585     ac_abs_top_srcdir=$ac_pwd ;;
1586   [\\/]* | ?:[\\/]* )  # Absolute name.
1587     ac_srcdir=$srcdir$ac_dir_suffix;
1588     ac_top_srcdir=$srcdir
1589     ac_abs_top_srcdir=$srcdir ;;
1590   *) # Relative name.
1591     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592     ac_top_srcdir=$ac_top_build_prefix$srcdir
1593     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597     cd "$ac_dir" || { ac_status=$?; continue; }
1598     # Check for guested configure.
1599     if test -f "$ac_srcdir/configure.gnu"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602     elif test -f "$ac_srcdir/configure"; then
1603       echo &&
1604       $SHELL "$ac_srcdir/configure" --help=recursive
1605     else
1606       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607     fi || ac_status=$?
1608     cd "$ac_pwd" || { ac_status=$?; break; }
1609   done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614   cat <<\_ACEOF
1615 libpng configure 1.2.50
1616 generated by GNU Autoconf 2.65
1617
1618 Copyright (C) 2009 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622   exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   rm -f conftest.$ac_objext
1636   if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_compile") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } && {
1652          test -z "$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        } && test -s conftest.$ac_objext; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681   ac_status=$?
1682   if test -s conftest.err; then
1683     grep -v '^ *+' conftest.err >conftest.er1
1684     cat conftest.er1 >&5
1685     mv -f conftest.er1 conftest.err
1686   fi
1687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688   test $ac_status = 0; } >/dev/null && {
1689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690          test ! -s conftest.err
1691        }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697     ac_retval=1
1698 fi
1699   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_link LINENO
1705 # -----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_link ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   rm -f conftest.$ac_objext conftest$ac_exeext
1711   if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_link") 2>conftest.err
1719   ac_status=$?
1720   if test -s conftest.err; then
1721     grep -v '^ *+' conftest.err >conftest.er1
1722     cat conftest.er1 >&5
1723     mv -f conftest.er1 conftest.err
1724   fi
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && {
1727          test -z "$ac_c_werror_flag" ||
1728          test ! -s conftest.err
1729        } && test -s conftest$ac_exeext && {
1730          test "$cross_compiling" = yes ||
1731          $as_test_x conftest$ac_exeext
1732        }; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738         ac_retval=1
1739 fi
1740   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742   # interfere with the next link command; also delete a directory that is
1743   # left behind by Apple's compiler.  We do this before executing the actions.
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_link
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760   $as_echo_n "(cached) " >&6
1761 else
1762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 $4
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768   eval "$3=yes"
1769 else
1770   eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778
1779 } # ac_fn_c_check_header_compile
1780
1781 # ac_fn_c_try_run LINENO
1782 # ----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784 # that executables *can* be run.
1785 ac_fn_c_try_run ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_link") 2>&5
1796   ac_status=$?
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799   { { case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_try") 2>&5
1806   ac_status=$?
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; }; }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: program exited with status $ac_status" >&5
1812        $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815        ac_retval=$ac_status
1816 fi
1817   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819   as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_run
1822
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832   $as_echo_n "(cached) " >&6
1833 else
1834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1838 #define $2 innocuous_$2
1839
1840 /* System header to define __stub macros and hopefully few prototypes,
1841     which can conflict with char $2 (); below.
1842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843     <limits.h> exists even on freestanding compilers.  */
1844
1845 #ifdef __STDC__
1846 # include <limits.h>
1847 #else
1848 # include <assert.h>
1849 #endif
1850
1851 #undef $2
1852
1853 /* Override any GCC internal prototype to avoid an error.
1854    Use char because int might match the return type of a GCC
1855    builtin and then its argument prototype would still apply.  */
1856 #ifdef __cplusplus
1857 extern "C"
1858 #endif
1859 char $2 ();
1860 /* The GNU C library defines this for functions which it implements
1861     to always fail with ENOSYS.  Some functions are actually named
1862     something starting with __ and the normal name is an alias.  */
1863 #if defined __stub_$2 || defined __stub___$2
1864 choke me
1865 #endif
1866
1867 int
1868 main ()
1869 {
1870 return $2 ();
1871   ;
1872   return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876   eval "$3=yes"
1877 else
1878   eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext \
1881     conftest$ac_exeext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
1888 } # ac_fn_c_check_func
1889
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1894 # accordingly.
1895 ac_fn_c_check_header_mongrel ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902   $as_echo_n "(cached) " >&6
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 else
1908   # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917   ac_header_compiler=yes
1918 else
1919   ac_header_compiler=no
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1924
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933   ac_header_preproc=yes
1934 else
1935   ac_header_preproc=no
1936 fi
1937 rm -f conftest.err conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1940
1941 # So?  What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943   yes:no: )
1944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948     ;;
1949   no:yes:* )
1950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1958     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ( cat <<\_ASBOX
1961 ## ------------------------------------------------------ ##
1962 ## Report this to png-mng-implement@lists.sourceforge.net ##
1963 ## ------------------------------------------------------ ##
1964 _ASBOX
1965      ) | sed "s/^/$as_me: WARNING:     /" >&2
1966     ;;
1967 esac
1968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971   $as_echo_n "(cached) " >&6
1972 else
1973   eval "$3=\$ac_header_compiler"
1974 fi
1975 eval ac_res=\$$3
1976                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 fi
1979   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980
1981 } # ac_fn_c_check_header_mongrel
1982
1983 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1984 # -------------------------------------------
1985 # Tests whether TYPE exists after having included INCLUDES, setting cache
1986 # variable VAR accordingly.
1987 ac_fn_c_check_type ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   eval "$3=no"
1996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h.  */
1998 $4
1999 int
2000 main ()
2001 {
2002 if (sizeof ($2))
2003          return 0;
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 int
2013 main ()
2014 {
2015 if (sizeof (($2)))
2016             return 0;
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022
2023 else
2024   eval "$3=yes"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034
2035 } # ac_fn_c_check_type
2036 cat >config.log <<_ACEOF
2037 This file contains any messages produced by compilers while
2038 running configure, to aid debugging if configure makes a mistake.
2039
2040 It was created by libpng $as_me 1.2.50, which was
2041 generated by GNU Autoconf 2.65.  Invocation command line was
2042
2043   $ $0 $@
2044
2045 _ACEOF
2046 exec 5>>config.log
2047 {
2048 cat <<_ASUNAME
2049 ## --------- ##
2050 ## Platform. ##
2051 ## --------- ##
2052
2053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2058
2059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2060 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2061
2062 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2063 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2065 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2066 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2067 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2068 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2069
2070 _ASUNAME
2071
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077     $as_echo "PATH: $as_dir"
2078   done
2079 IFS=$as_save_IFS
2080
2081 } >&5
2082
2083 cat >&5 <<_ACEOF
2084
2085
2086 ## ----------- ##
2087 ## Core tests. ##
2088 ## ----------- ##
2089
2090 _ACEOF
2091
2092
2093 # Keep a trace of the command line.
2094 # Strip out --no-create and --no-recursion so they do not pile up.
2095 # Strip out --silent because we don't want to record it for future runs.
2096 # Also quote any args containing shell meta-characters.
2097 # Make two passes to allow for proper duplicate-argument suppression.
2098 ac_configure_args=
2099 ac_configure_args0=
2100 ac_configure_args1=
2101 ac_must_keep_next=false
2102 for ac_pass in 1 2
2103 do
2104   for ac_arg
2105   do
2106     case $ac_arg in
2107     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2108     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2109     | -silent | --silent | --silen | --sile | --sil)
2110       continue ;;
2111     *\'*)
2112       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2113     esac
2114     case $ac_pass in
2115     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2116     2)
2117       as_fn_append ac_configure_args1 " '$ac_arg'"
2118       if test $ac_must_keep_next = true; then
2119         ac_must_keep_next=false # Got value, back to normal.
2120       else
2121         case $ac_arg in
2122           *=* | --config-cache | -C | -disable-* | --disable-* \
2123           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2124           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2125           | -with-* | --with-* | -without-* | --without-* | --x)
2126             case "$ac_configure_args0 " in
2127               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2128             esac
2129             ;;
2130           -* ) ac_must_keep_next=true ;;
2131         esac
2132       fi
2133       as_fn_append ac_configure_args " '$ac_arg'"
2134       ;;
2135     esac
2136   done
2137 done
2138 { ac_configure_args0=; unset ac_configure_args0;}
2139 { ac_configure_args1=; unset ac_configure_args1;}
2140
2141 # When interrupted or exit'd, cleanup temporary files, and complete
2142 # config.log.  We remove comments because anyway the quotes in there
2143 # would cause problems or look ugly.
2144 # WARNING: Use '\'' to represent an apostrophe within the trap.
2145 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2146 trap 'exit_status=$?
2147   # Save into config.log some information that might help in debugging.
2148   {
2149     echo
2150
2151     cat <<\_ASBOX
2152 ## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##
2155 _ASBOX
2156     echo
2157     # The following way of writing the cache mishandles newlines in values,
2158 (
2159   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2160     eval ac_val=\$$ac_var
2161     case $ac_val in #(
2162     *${as_nl}*)
2163       case $ac_var in #(
2164       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2166       esac
2167       case $ac_var in #(
2168       _ | IFS | as_nl) ;; #(
2169       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2170       *) { eval $ac_var=; unset $ac_var;} ;;
2171       esac ;;
2172     esac
2173   done
2174   (set) 2>&1 |
2175     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2176     *${as_nl}ac_space=\ *)
2177       sed -n \
2178         "s/'\''/'\''\\\\'\'''\''/g;
2179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2180       ;; #(
2181     *)
2182       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183       ;;
2184     esac |
2185     sort
2186 )
2187     echo
2188
2189     cat <<\_ASBOX
2190 ## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##
2193 _ASBOX
2194     echo
2195     for ac_var in $ac_subst_vars
2196     do
2197       eval ac_val=\$$ac_var
2198       case $ac_val in
2199       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200       esac
2201       $as_echo "$ac_var='\''$ac_val'\''"
2202     done | sort
2203     echo
2204
2205     if test -n "$ac_subst_files"; then
2206       cat <<\_ASBOX
2207 ## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##
2210 _ASBOX
2211       echo
2212       for ac_var in $ac_subst_files
2213       do
2214         eval ac_val=\$$ac_var
2215         case $ac_val in
2216         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217         esac
2218         $as_echo "$ac_var='\''$ac_val'\''"
2219       done | sort
2220       echo
2221     fi
2222
2223     if test -s confdefs.h; then
2224       cat <<\_ASBOX
2225 ## ----------- ##
2226 ## confdefs.h. ##
2227 ## ----------- ##
2228 _ASBOX
2229       echo
2230       cat confdefs.h
2231       echo
2232     fi
2233     test "$ac_signal" != 0 &&
2234       $as_echo "$as_me: caught signal $ac_signal"
2235     $as_echo "$as_me: exit $exit_status"
2236   } >&5
2237   rm -f core *.core core.conftest.* &&
2238     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239     exit $exit_status
2240 ' 0
2241 for ac_signal in 1 2 13 15; do
2242   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243 done
2244 ac_signal=0
2245
2246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2247 rm -f -r conftest* confdefs.h
2248
2249 $as_echo "/* confdefs.h */" > confdefs.h
2250
2251 # Predefined preprocessor variables.
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_NAME "$PACKAGE_NAME"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_STRING "$PACKAGE_STRING"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_URL "$PACKAGE_URL"
2275 _ACEOF
2276
2277
2278 # Let the site file select an alternate cache file if it wants to.
2279 # Prefer an explicitly selected file to automatically selected ones.
2280 ac_site_file1=NONE
2281 ac_site_file2=NONE
2282 if test -n "$CONFIG_SITE"; then
2283   ac_site_file1=$CONFIG_SITE
2284 elif test "x$prefix" != xNONE; then
2285   ac_site_file1=$prefix/share/config.site
2286   ac_site_file2=$prefix/etc/config.site
2287 else
2288   ac_site_file1=$ac_default_prefix/share/config.site
2289   ac_site_file2=$ac_default_prefix/etc/config.site
2290 fi
2291 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2292 do
2293   test "x$ac_site_file" = xNONE && continue
2294   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297     sed 's/^/| /' "$ac_site_file" >&5
2298     . "$ac_site_file"
2299   fi
2300 done
2301
2302 if test -r "$cache_file"; then
2303   # Some versions of bash will fail to source /dev/null (special files
2304   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2305   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 $as_echo "$as_me: loading cache $cache_file" >&6;}
2308     case $cache_file in
2309       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310       *)                      . "./$cache_file";;
2311     esac
2312   fi
2313 else
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 $as_echo "$as_me: creating cache $cache_file" >&6;}
2316   >$cache_file
2317 fi
2318
2319 # Check that the precious variables saved in the cache have kept the same
2320 # value.
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324   eval ac_new_set=\$ac_env_${ac_var}_set
2325   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326   eval ac_new_val=\$ac_env_${ac_var}_value
2327   case $ac_old_set,$ac_new_set in
2328     set,)
2329       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331       ac_cache_corrupted=: ;;
2332     ,set)
2333       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335       ac_cache_corrupted=: ;;
2336     ,);;
2337     *)
2338       if test "x$ac_old_val" != "x$ac_new_val"; then
2339         # differences in whitespace do not lead to failure.
2340         ac_old_val_w=`echo x $ac_old_val`
2341         ac_new_val_w=`echo x $ac_new_val`
2342         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345           ac_cache_corrupted=:
2346         else
2347           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349           eval $ac_var=\$ac_old_val
2350         fi
2351         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2352 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2353         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2355       fi;;
2356   esac
2357   # Pass precious variables to config.status.
2358   if test "$ac_new_set" = set; then
2359     case $ac_new_val in
2360     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361     *) ac_arg=$ac_var=$ac_new_val ;;
2362     esac
2363     case " $ac_configure_args " in
2364       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2365       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366     esac
2367   fi
2368 done
2369 if $ac_cache_corrupted; then
2370   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 fi
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387 am__api_version='1.11'
2388
2389 ac_aux_dir=
2390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391   for ac_t in install-sh install.sh shtool; do
2392     if test -f "$ac_dir/$ac_t"; then
2393       ac_aux_dir=$ac_dir
2394       ac_install_sh="$ac_aux_dir/$ac_t -c"
2395       break 2
2396     fi
2397   done
2398 done
2399 if test -z "$ac_aux_dir"; then
2400   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401 fi
2402
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2410
2411
2412 # Find a good install program.  We prefer a C program (faster),
2413 # so one script is as good as another.  But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2418 # AIX /bin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 # Reject install programs that cannot install multiple files.
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2428 if test -z "$INSTALL"; then
2429 if test "${ac_cv_path_install+set}" = set; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437     # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in #((
2439   ./ | .// | /[cC]/* | \
2440   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442   /usr/ucb/* ) ;;
2443   *)
2444     # OSF1 and SCO ODT 3.0 have their own names for install.
2445     # Don't use installbsd from OSF since it installs stuff as root
2446     # by default.
2447     for ac_prog in ginstall scoinst install; do
2448       for ac_exec_ext in '' $ac_executable_extensions; do
2449         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2450           if test $ac_prog = install &&
2451             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452             # AIX install.  It has an incompatible calling convention.
2453             :
2454           elif test $ac_prog = install &&
2455             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456             # program-specific install script used by HP pwplus--don't use.
2457             :
2458           else
2459             rm -rf conftest.one conftest.two conftest.dir
2460             echo one > conftest.one
2461             echo two > conftest.two
2462             mkdir conftest.dir
2463             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464               test -s conftest.one && test -s conftest.two &&
2465               test -s conftest.dir/conftest.one &&
2466               test -s conftest.dir/conftest.two
2467             then
2468               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469               break 3
2470             fi
2471           fi
2472         fi
2473       done
2474     done
2475     ;;
2476 esac
2477
2478   done
2479 IFS=$as_save_IFS
2480
2481 rm -rf conftest.one conftest.two conftest.dir
2482
2483 fi
2484   if test "${ac_cv_path_install+set}" = set; then
2485     INSTALL=$ac_cv_path_install
2486   else
2487     # As a last resort, use the slow shell script.  Don't cache a
2488     # value for INSTALL within a source directory, because that will
2489     # break other packages using the cache if that directory is
2490     # removed, or if the value is a relative name.
2491     INSTALL=$ac_install_sh
2492   fi
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495 $as_echo "$INSTALL" >&6; }
2496
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506 $as_echo_n "checking whether build environment is sane... " >&6; }
2507 # Just in case
2508 sleep 1
2509 echo timestamp > conftest.file
2510 # Reject unsafe characters in $srcdir or the absolute working directory
2511 # name.  Accept space and tab only in the latter.
2512 am_lf='
2513 '
2514 case `pwd` in
2515   *[\\\"\#\$\&\'\`$am_lf]*)
2516     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2517 esac
2518 case $srcdir in
2519   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2520     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2521 esac
2522
2523 # Do `set' in a subshell so we don't clobber the current shell's
2524 # arguments.  Must try -L first in case configure is actually a
2525 # symlink; some systems play weird games with the mod time of symlinks
2526 # (eg FreeBSD returns the mod time of the symlink's containing
2527 # directory).
2528 if (
2529    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530    if test "$*" = "X"; then
2531       # -L didn't work.
2532       set X `ls -t "$srcdir/configure" conftest.file`
2533    fi
2534    rm -f conftest.file
2535    if test "$*" != "X $srcdir/configure conftest.file" \
2536       && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538       # If neither matched, then we have a broken ls.  This can happen
2539       # if, for instance, CONFIG_SHELL is bash and it inherits a
2540       # broken ls alias from the environment.  This has actually
2541       # happened.  Such a system could not be considered "sane".
2542       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544    fi
2545
2546    test "$2" = conftest.file
2547    )
2548 then
2549    # Ok.
2550    :
2551 else
2552    as_fn_error "newly created file is older than distributed files!
2553 Check your system clock" "$LINENO" 5
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 test "$program_prefix" != NONE &&
2558   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2559 # Use a double $ so make ignores it.
2560 test "$program_suffix" != NONE &&
2561   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2562 # Double any \ or $.
2563 # By default was `s,x,x', remove it if useless.
2564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2566
2567 # expand $ac_aux_dir to an absolute path
2568 am_aux_dir=`cd $ac_aux_dir && pwd`
2569
2570 if test x"${MISSING+set}" != xset; then
2571   case $am_aux_dir in
2572   *\ * | *\     *)
2573     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2574   *)
2575     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2576   esac
2577 fi
2578 # Use eval to expand $SHELL
2579 if eval "$MISSING --run true"; then
2580   am_missing_run="$MISSING --run "
2581 else
2582   am_missing_run=
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2585 fi
2586
2587 if test x"${install_sh}" != xset; then
2588   case $am_aux_dir in
2589   *\ * | *\     *)
2590     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2591   *)
2592     install_sh="\${SHELL} $am_aux_dir/install-sh"
2593   esac
2594 fi
2595
2596 # Installed binaries are usually stripped using `strip' when the user
2597 # run `make install-strip'.  However `strip' might not be the right
2598 # tool to use in cross-compilation environments, therefore Automake
2599 # will honor the `STRIP' environment variable to overrule this program.
2600 if test "$cross_compiling" != no; then
2601   if test -n "$ac_tool_prefix"; then
2602   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_STRIP+set}" = set; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   if test -n "$STRIP"; then
2610   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617     for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624   done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 STRIP=$ac_cv_prog_STRIP
2630 if test -n "$STRIP"; then
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632 $as_echo "$STRIP" >&6; }
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 fi
2640 if test -z "$ac_cv_prog_STRIP"; then
2641   ac_ct_STRIP=$STRIP
2642   # Extract the first word of "strip", so it can be a program name with args.
2643 set dummy strip; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2647   $as_echo_n "(cached) " >&6
2648 else
2649   if test -n "$ac_ct_STRIP"; then
2650   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657     for ac_exec_ext in '' $ac_executable_extensions; do
2658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659     ac_cv_prog_ac_ct_STRIP="strip"
2660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664   done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670 if test -n "$ac_ct_STRIP"; then
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672 $as_echo "$ac_ct_STRIP" >&6; }
2673 else
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678   if test "x$ac_ct_STRIP" = x; then
2679     STRIP=":"
2680   else
2681     case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2686 esac
2687     STRIP=$ac_ct_STRIP
2688   fi
2689 else
2690   STRIP="$ac_cv_prog_STRIP"
2691 fi
2692
2693 fi
2694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2698 if test -z "$MKDIR_P"; then
2699   if test "${ac_cv_path_mkdir+set}" = set; then :
2700   $as_echo_n "(cached) " >&6
2701 else
2702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707     for ac_prog in mkdir gmkdir; do
2708          for ac_exec_ext in '' $ac_executable_extensions; do
2709            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2710            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2711              'mkdir (GNU coreutils) '* | \
2712              'mkdir (coreutils) '* | \
2713              'mkdir (fileutils) '4.1*)
2714                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2715                break 3;;
2716            esac
2717          done
2718        done
2719   done
2720 IFS=$as_save_IFS
2721
2722 fi
2723
2724   test -d ./--version && rmdir ./--version
2725   if test "${ac_cv_path_mkdir+set}" = set; then
2726     MKDIR_P="$ac_cv_path_mkdir -p"
2727   else
2728     # As a last resort, use the slow shell script.  Don't cache a
2729     # value for MKDIR_P within a source directory, because that will
2730     # break other packages using the cache if that directory is
2731     # removed, or if the value is a relative name.
2732     MKDIR_P="$ac_install_sh -d"
2733   fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2736 $as_echo "$MKDIR_P" >&6; }
2737
2738 mkdir_p="$MKDIR_P"
2739 case $mkdir_p in
2740   [\\/$]* | ?:[\\/]*) ;;
2741   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2742 esac
2743
2744 for ac_prog in gawk mawk nawk awk
2745 do
2746   # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_AWK+set}" = set; then :
2751   $as_echo_n "(cached) " >&6
2752 else
2753   if test -n "$AWK"; then
2754   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_exec_ext in '' $ac_executable_extensions; do
2762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763     ac_cv_prog_AWK="$ac_prog"
2764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765     break 2
2766   fi
2767 done
2768   done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 AWK=$ac_cv_prog_AWK
2774 if test -n "$AWK"; then
2775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2776 $as_echo "$AWK" >&6; }
2777 else
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783   test -n "$AWK" && break
2784 done
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2788 set x ${MAKE-make}
2789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2790 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   cat >conftest.make <<\_ACEOF
2794 SHELL = /bin/sh
2795 all:
2796         @echo '@@@%%%=$(MAKE)=@@@%%%'
2797 _ACEOF
2798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2800   *@@@%%%=?*=@@@%%%*)
2801     eval ac_cv_prog_make_${ac_make}_set=yes;;
2802   *)
2803     eval ac_cv_prog_make_${ac_make}_set=no;;
2804 esac
2805 rm -f conftest.make
2806 fi
2807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 $as_echo "yes" >&6; }
2810   SET_MAKE=
2811 else
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814   SET_MAKE="MAKE=${MAKE-make}"
2815 fi
2816
2817 rm -rf .tst 2>/dev/null
2818 mkdir .tst 2>/dev/null
2819 if test -d .tst; then
2820   am__leading_dot=.
2821 else
2822   am__leading_dot=_
2823 fi
2824 rmdir .tst 2>/dev/null
2825
2826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828   # is not polluted with repeated "-I."
2829   am__isrc=' -I$(srcdir)'
2830   # test to see if srcdir already configured
2831   if test -f $srcdir/config.status; then
2832     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2833   fi
2834 fi
2835
2836 # test whether we have cygpath
2837 if test -z "$CYGPATH_W"; then
2838   if (cygpath --version) >/dev/null 2>/dev/null; then
2839     CYGPATH_W='cygpath -w'
2840   else
2841     CYGPATH_W=echo
2842   fi
2843 fi
2844
2845
2846 # Define the identity of the package.
2847  PACKAGE='libpng'
2848  VERSION='1.2.50'
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE "$PACKAGE"
2853 _ACEOF
2854
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define VERSION "$VERSION"
2858 _ACEOF
2859
2860 # Some tools Automake needs.
2861
2862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2863
2864
2865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2866
2867
2868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2869
2870
2871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2872
2873
2874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2875
2876 # We need awk for the "check" target.  The system "awk" is bad on
2877 # some platforms.
2878 # Always define AMTAR for backward compatibility.
2879
2880 AMTAR=${AMTAR-"${am_missing_run}tar"}
2881
2882 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2883
2884
2885
2886
2887
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2890 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2891     # Check whether --enable-maintainer-mode was given.
2892 if test "${enable_maintainer_mode+set}" = set; then :
2893   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2894 else
2895   USE_MAINTAINER_MODE=no
2896 fi
2897
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2899 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2900    if test $USE_MAINTAINER_MODE = yes; then
2901   MAINTAINER_MODE_TRUE=
2902   MAINTAINER_MODE_FALSE='#'
2903 else
2904   MAINTAINER_MODE_TRUE='#'
2905   MAINTAINER_MODE_FALSE=
2906 fi
2907
2908   MAINT=$MAINTAINER_MODE_TRUE
2909
2910
2911
2912 PNGLIB_VERSION=1.2.50
2913 PNGLIB_MAJOR=1
2914 PNGLIB_MINOR=2
2915 PNGLIB_RELEASE=50
2916
2917
2918
2919 ac_config_headers="$ac_config_headers config.h"
2920
2921
2922 # Checks for programs.
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 fi
2967 if test -z "$ac_cv_prog_CC"; then
2968   ac_ct_CC=$CC
2969   # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test -n "$ac_ct_CC"; then
2977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984     for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_ac_ct_CC="gcc"
2987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991   done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999 $as_echo "$ac_ct_CC" >&6; }
3000 else
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005   if test "x$ac_ct_CC" = x; then
3006     CC=""
3007   else
3008     case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014     CC=$ac_ct_CC
3015   fi
3016 else
3017   CC="$ac_cv_prog_CC"
3018 fi
3019
3020 if test -z "$CC"; then
3021           if test -n "$ac_tool_prefix"; then
3022     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_CC+set}" = set; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if test -n "$CC"; then
3030   ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039     ac_cv_prog_CC="${ac_tool_prefix}cc"
3040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044   done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3053 else
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059   fi
3060 fi
3061 if test -z "$CC"; then
3062   # Extract the first word of "cc", so it can be a program name with args.
3063 set dummy cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if test "${ac_cv_prog_CC+set}" = set; then :
3067   $as_echo_n "(cached) " >&6
3068 else
3069   if test -n "$CC"; then
3070   ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072   ac_prog_rejected=no
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078     for ac_exec_ext in '' $ac_executable_extensions; do
3079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081        ac_prog_rejected=yes
3082        continue
3083      fi
3084     ac_cv_prog_CC="cc"
3085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089   done
3090 IFS=$as_save_IFS
3091
3092 if test $ac_prog_rejected = yes; then
3093   # We found a bogon in the path, so make sure we never use it.
3094   set dummy $ac_cv_prog_CC
3095   shift
3096   if test $# != 0; then
3097     # We chose a different compiler from the bogus one.
3098     # However, it has the same basename, so the bogon will be chosen
3099     # first if we set CC to just the basename; use the full file name.
3100     shift
3101     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102   fi
3103 fi
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 fi
3117 if test -z "$CC"; then
3118   if test -n "$ac_tool_prefix"; then
3119   for ac_prog in cl.exe
3120   do
3121     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test -n "$CC"; then
3129   ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     for ac_exec_ext in '' $ac_executable_extensions; do
3137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143   done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158     test -n "$CC" && break
3159   done
3160 fi
3161 if test -z "$CC"; then
3162   ac_ct_CC=$CC
3163   for ac_prog in cl.exe
3164 do
3165   # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test -n "$ac_ct_CC"; then
3173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_exec_ext in '' $ac_executable_extensions; do
3181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182     ac_cv_prog_ac_ct_CC="$ac_prog"
3183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187   done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 $as_echo "$ac_ct_CC" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202   test -n "$ac_ct_CC" && break
3203 done
3204
3205   if test "x$ac_ct_CC" = x; then
3206     CC=""
3207   else
3208     case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214     CC=$ac_ct_CC
3215   fi
3216 fi
3217
3218 fi
3219
3220
3221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error "no acceptable C compiler found in \$PATH
3224 See \`config.log' for more details." "$LINENO" 5; }
3225
3226 # Provide some information about the compiler.
3227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228 set X $ac_compile
3229 ac_compiler=$2
3230 for ac_option in --version -v -V -qversion; do
3231   { { ac_try="$ac_compiler $ac_option >&5"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239   ac_status=$?
3240   if test -s conftest.err; then
3241     sed '10a\
3242 ... rest of stderr output deleted ...
3243          10q' conftest.err >conftest.er1
3244     cat conftest.er1 >&5
3245   fi
3246   rm -f conftest.er1 conftest.err
3247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248   test $ac_status = 0; }
3249 done
3250
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h.  */
3253
3254 int
3255 main ()
3256 {
3257
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3266 # of exeext.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274 ac_rmfiles=
3275 for ac_file in $ac_files
3276 do
3277   case $ac_file in
3278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280   esac
3281 done
3282 rm -f $ac_rmfiles
3283
3284 if { { ac_try="$ac_link_default"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_link_default") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294   test $ac_status = 0; }; then :
3295   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3298 # so that the user can short-circuit this test for compilers unknown to
3299 # Autoconf.
3300 for ac_file in $ac_files ''
3301 do
3302   test -f "$ac_file" || continue
3303   case $ac_file in
3304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305         ;;
3306     [ab].out )
3307         # We found the default executable, but exeext='' is most
3308         # certainly right.
3309         break;;
3310     *.* )
3311         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312         then :; else
3313            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314         fi
3315         # We set ac_cv_exeext here because the later test for it is not
3316         # safe: cross compilers may not add the suffix if given an `-o'
3317         # argument, so we may need to know it at that point already.
3318         # Even if this section looks crufty: it has the advantage of
3319         # actually working.
3320         break;;
3321     * )
3322         break;;
3323   esac
3324 done
3325 test "$ac_cv_exeext" = no && ac_cv_exeext=
3326
3327 else
3328   ac_file=''
3329 fi
3330 if test -z "$ac_file"; then :
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 { as_fn_set_status 77
3339 as_fn_error "C compiler cannot create executables
3340 See \`config.log' for more details." "$LINENO" 5; }; }
3341 else
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3346 $as_echo_n "checking for C compiler default output file name... " >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 ac_exeext=$ac_cv_exeext
3350
3351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3352 ac_clean_files=$ac_clean_files_save
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3354 $as_echo_n "checking for suffix of executables... " >&6; }
3355 if { { ac_try="$ac_link"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362   (eval "$ac_link") 2>&5
3363   ac_status=$?
3364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365   test $ac_status = 0; }; then :
3366   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3368 # work properly (i.e., refer to `conftest.exe'), while it won't with
3369 # `rm'.
3370 for ac_file in conftest.exe conftest conftest.*; do
3371   test -f "$ac_file" || continue
3372   case $ac_file in
3373     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375           break;;
3376     * ) break;;
3377   esac
3378 done
3379 else
3380   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error "cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details." "$LINENO" 5; }
3384 fi
3385 rm -f conftest conftest$ac_cv_exeext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3387 $as_echo "$ac_cv_exeext" >&6; }
3388
3389 rm -f conftest.$ac_ext
3390 EXEEXT=$ac_cv_exeext
3391 ac_exeext=$EXEEXT
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h.  */
3394 #include <stdio.h>
3395 int
3396 main ()
3397 {
3398 FILE *f = fopen ("conftest.out", "w");
3399  return ferror (f) || fclose (f) != 0;
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 ac_clean_files="$ac_clean_files conftest.out"
3406 # Check that the compiler produces executables we can run.  If not, either
3407 # the compiler is broken, or we cross compile.
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3409 $as_echo_n "checking whether we are cross compiling... " >&6; }
3410 if test "$cross_compiling" != yes; then
3411   { { ac_try="$ac_link"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418   (eval "$ac_link") 2>&5
3419   ac_status=$?
3420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421   test $ac_status = 0; }
3422   if { ac_try='./conftest$ac_cv_exeext'
3423   { { case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429   (eval "$ac_try") 2>&5
3430   ac_status=$?
3431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432   test $ac_status = 0; }; }; then
3433     cross_compiling=no
3434   else
3435     if test "$cross_compiling" = maybe; then
3436         cross_compiling=yes
3437     else
3438         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error "cannot run C compiled programs.
3441 If you meant to cross compile, use \`--host'.
3442 See \`config.log' for more details." "$LINENO" 5; }
3443     fi
3444   fi
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3447 $as_echo "$cross_compiling" >&6; }
3448
3449 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3450 ac_clean_files=$ac_clean_files_save
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3452 $as_echo_n "checking for suffix of object files... " >&6; }
3453 if test "${ac_cv_objext+set}" = set; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.o conftest.obj
3468 if { { ac_try="$ac_compile"
3469 case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475   (eval "$ac_compile") 2>&5
3476   ac_status=$?
3477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478   test $ac_status = 0; }; then :
3479   for ac_file in conftest.o conftest.obj conftest.*; do
3480   test -f "$ac_file" || continue;
3481   case $ac_file in
3482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3483     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484        break;;
3485   esac
3486 done
3487 else
3488   $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error "cannot compute suffix of object files: cannot compile
3494 See \`config.log' for more details." "$LINENO" 5; }
3495 fi
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513 #ifndef __GNUC__
3514        choke me
3515 #endif
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522   ac_compiler_gnu=yes
3523 else
3524   ac_compiler_gnu=no
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3533   GCC=yes
3534 else
3535   GCC=
3536 fi
3537 ac_test_CFLAGS=${CFLAGS+set}
3538 ac_save_CFLAGS=$CFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3541 if test "${ac_cv_prog_cc_g+set}" = set; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   ac_save_c_werror_flag=$ac_c_werror_flag
3545    ac_c_werror_flag=yes
3546    ac_cv_prog_cc_g=no
3547    CFLAGS="-g"
3548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550
3551 int
3552 main ()
3553 {
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560   ac_cv_prog_cc_g=yes
3561 else
3562   CFLAGS=""
3563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575
3576 else
3577   ac_c_werror_flag=$ac_save_c_werror_flag
3578          CFLAGS="-g"
3579          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591   ac_cv_prog_cc_g=yes
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598    ac_c_werror_flag=$ac_save_c_werror_flag
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601 $as_echo "$ac_cv_prog_cc_g" >&6; }
3602 if test "$ac_test_CFLAGS" = set; then
3603   CFLAGS=$ac_save_CFLAGS
3604 elif test $ac_cv_prog_cc_g = yes; then
3605   if test "$GCC" = yes; then
3606     CFLAGS="-g -O2"
3607   else
3608     CFLAGS="-g"
3609   fi
3610 else
3611   if test "$GCC" = yes; then
3612     CFLAGS="-O2"
3613   else
3614     CFLAGS=
3615   fi
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   ac_cv_prog_cc_c89=no
3623 ac_save_CC=$CC
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h.  */
3626 #include <stdarg.h>
3627 #include <stdio.h>
3628 #include <sys/types.h>
3629 #include <sys/stat.h>
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3634      char **p;
3635      int i;
3636 {
3637   return p[i];
3638 }
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3640 {
3641   char *s;
3642   va_list v;
3643   va_start (v,p);
3644   s = g (p, va_arg (v,int));
3645   va_end (v);
3646   return s;
3647 }
3648
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3650    function prototypes and stuff, but not '\xHH' hex character constants.
3651    These don't provoke an error unfortunately, instead are silently treated
3652    as 'x'.  The following induces an error, until -std is added to get
3653    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3654    array size at least.  It's necessary to write '\x00'==0 to get something
3655    that's true only with -std.  */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659    inside strings and character constants.  */
3660 #define FOO(x) 'x'
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667 int argc;
3668 char **argv;
3669 int
3670 main ()
3671 {
3672 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679 do
3680   CC="$ac_save_CC $ac_arg"
3681   if ac_fn_c_try_compile "$LINENO"; then :
3682   ac_cv_prog_cc_c89=$ac_arg
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext
3685   test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3689
3690 fi
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3693   x)
3694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3696   xno)
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3699   *)
3700     CC="$CC $ac_cv_prog_cc_c89"
3701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3705
3706 fi
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 DEPDIR="${am__leading_dot}deps"
3714
3715 ac_config_commands="$ac_config_commands depfiles"
3716
3717
3718 am_make=${MAKE-make}
3719 cat > confinc << 'END'
3720 am__doit:
3721         @echo this is the am__doit target
3722 .PHONY: am__doit
3723 END
3724 # If we don't find an include directive, just comment out the code.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3726 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 am__include="#"
3728 am__quote=
3729 _am_result=none
3730 # First try GNU make style include.
3731 echo "include confinc" > confmf
3732 # Ignore all kinds of additional output from `make'.
3733 case `$am_make -s -f confmf 2> /dev/null` in #(
3734 *the\ am__doit\ target*)
3735   am__include=include
3736   am__quote=
3737   _am_result=GNU
3738   ;;
3739 esac
3740 # Now try BSD make style include.
3741 if test "$am__include" = "#"; then
3742    echo '.include "confinc"' > confmf
3743    case `$am_make -s -f confmf 2> /dev/null` in #(
3744    *the\ am__doit\ target*)
3745      am__include=.include
3746      am__quote="\""
3747      _am_result=BSD
3748      ;;
3749    esac
3750 fi
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3754 $as_echo "$_am_result" >&6; }
3755 rm -f confinc confmf
3756
3757 # Check whether --enable-dependency-tracking was given.
3758 if test "${enable_dependency_tracking+set}" = set; then :
3759   enableval=$enable_dependency_tracking;
3760 fi
3761
3762 if test "x$enable_dependency_tracking" != xno; then
3763   am_depcomp="$ac_aux_dir/depcomp"
3764   AMDEPBACKSLASH='\'
3765 fi
3766  if test "x$enable_dependency_tracking" != xno; then
3767   AMDEP_TRUE=
3768   AMDEP_FALSE='#'
3769 else
3770   AMDEP_TRUE='#'
3771   AMDEP_FALSE=
3772 fi
3773
3774
3775
3776 depcc="$CC"   am_compiler_list=
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784   # We make a subdir and do the tests there.  Otherwise we can end up
3785   # making bogus files that we don't know about and never remove.  For
3786   # instance it was reported that on HP-UX the gcc test will end up
3787   # making a dummy file named `D' -- because `-MD' means `put the output
3788   # in D'.
3789   mkdir conftest.dir
3790   # Copy depcomp to subdir because otherwise we won't find it if we're
3791   # using a relative directory.
3792   cp "$am_depcomp" conftest.dir
3793   cd conftest.dir
3794   # We will build objects and dependencies in a subdirectory because
3795   # it helps to detect inapplicable dependency modes.  For instance
3796   # both Tru64's cc and ICC support -MD to output dependencies as a
3797   # side effect of compilation, but ICC will put the dependencies in
3798   # the current directory while Tru64 will put them in the object
3799   # directory.
3800   mkdir sub
3801
3802   am_cv_CC_dependencies_compiler_type=none
3803   if test "$am_compiler_list" = ""; then
3804      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805   fi
3806   am__universal=false
3807   case " $depcc " in #(
3808      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3809      esac
3810
3811   for depmode in $am_compiler_list; do
3812     # Setup a source with many dependencies, because some compilers
3813     # like to wrap large dependency lists on column 80 (with \), and
3814     # we should not choose a depcomp mode which is confused by this.
3815     #
3816     # We need to recreate these files for each test, as the compiler may
3817     # overwrite some of them when testing with obscure command lines.
3818     # This happens at least with the AIX C compiler.
3819     : > sub/conftest.c
3820     for i in 1 2 3 4 5 6; do
3821       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823       # Solaris 8's {/usr,}/bin/sh.
3824       touch sub/conftst$i.h
3825     done
3826     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
3828     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829     # mode.  It turns out that the SunPro C++ compiler does not properly
3830     # handle `-M -o', and we need to detect this.  Also, some Intel
3831     # versions had trouble with output in subdirs
3832     am__obj=sub/conftest.${OBJEXT-o}
3833     am__minus_obj="-o $am__obj"
3834     case $depmode in
3835     gcc)
3836       # This depmode causes a compiler race in universal mode.
3837       test "$am__universal" = false || continue
3838       ;;
3839     nosideeffect)
3840       # after this tag, mechanisms are not by side-effect, so they'll
3841       # only be used when explicitly requested
3842       if test "x$enable_dependency_tracking" = xyes; then
3843         continue
3844       else
3845         break
3846       fi
3847       ;;
3848     msvisualcpp | msvcmsys)
3849       # This compiler won't grok `-c -o', but also, the minuso test has
3850       # not run yet.  These depmodes are late enough in the game, and
3851       # so weak that their functioning should not be impacted.
3852       am__obj=conftest.${OBJEXT-o}
3853       am__minus_obj=
3854       ;;
3855     none) break ;;
3856     esac
3857     if depmode=$depmode \
3858        source=sub/conftest.c object=$am__obj \
3859        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861          >/dev/null 2>conftest.err &&
3862        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866       # icc doesn't choke on unknown options, it will just issue warnings
3867       # or remarks (even with -Werror).  So we grep stderr for any message
3868       # that says an option was ignored or not supported.
3869       # When given -MP, icc 7.0 and 7.1 complain thusly:
3870       #   icc: Command line warning: ignoring option '-M'; no argument required
3871       # The diagnosis changed in icc 8.0:
3872       #   icc: Command line remark: option '-MP' not supported
3873       if (grep 'ignoring option' conftest.err ||
3874           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875         am_cv_CC_dependencies_compiler_type=$depmode
3876         break
3877       fi
3878     fi
3879   done
3880
3881   cd ..
3882   rm -rf conftest.dir
3883 else
3884   am_cv_CC_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891
3892  if
3893   test "x$enable_dependency_tracking" != xno \
3894   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895   am__fastdepCC_TRUE=
3896   am__fastdepCC_FALSE='#'
3897 else
3898   am__fastdepCC_TRUE='#'
3899   am__fastdepCC_FALSE=
3900 fi
3901
3902
3903 # Make sure we can run config.sub.
3904 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3905   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3908 $as_echo_n "checking build system type... " >&6; }
3909 if test "${ac_cv_build+set}" = set; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   ac_build_alias=$build_alias
3913 test "x$ac_build_alias" = x &&
3914   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3915 test "x$ac_build_alias" = x &&
3916   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3917 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3918   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3919
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3922 $as_echo "$ac_cv_build" >&6; }
3923 case $ac_cv_build in
3924 *-*-*) ;;
3925 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3926 esac
3927 build=$ac_cv_build
3928 ac_save_IFS=$IFS; IFS='-'
3929 set x $ac_cv_build
3930 shift
3931 build_cpu=$1
3932 build_vendor=$2
3933 shift; shift
3934 # Remember, the first character of IFS is used to create $*,
3935 # except with old shells:
3936 build_os=$*
3937 IFS=$ac_save_IFS
3938 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3939
3940
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3942 $as_echo_n "checking host system type... " >&6; }
3943 if test "${ac_cv_host+set}" = set; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   if test "x$host_alias" = x; then
3947   ac_cv_host=$ac_cv_build
3948 else
3949   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3950     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3951 fi
3952
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3955 $as_echo "$ac_cv_host" >&6; }
3956 case $ac_cv_host in
3957 *-*-*) ;;
3958 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3959 esac
3960 host=$ac_cv_host
3961 ac_save_IFS=$IFS; IFS='-'
3962 set x $ac_cv_host
3963 shift
3964 host_cpu=$1
3965 host_vendor=$2
3966 shift; shift
3967 # Remember, the first character of IFS is used to create $*,
3968 # except with old shells:
3969 host_os=$*
3970 IFS=$ac_save_IFS
3971 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3972
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3975 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3976 if test "${ac_cv_path_SED+set}" = set; then :
3977   $as_echo_n "(cached) " >&6
3978 else
3979             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3980      for ac_i in 1 2 3 4 5 6 7; do
3981        ac_script="$ac_script$as_nl$ac_script"
3982      done
3983      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3984      { ac_script=; unset ac_script;}
3985      if test -z "$SED"; then
3986   ac_path_SED_found=false
3987   # Loop through the user's path and test for each of PROGNAME-LIST
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993     for ac_prog in sed gsed; do
3994     for ac_exec_ext in '' $ac_executable_extensions; do
3995       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3996       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3997 # Check for GNU ac_path_SED and select it if it is found.
3998   # Check for GNU $ac_path_SED
3999 case `"$ac_path_SED" --version 2>&1` in
4000 *GNU*)
4001   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4002 *)
4003   ac_count=0
4004   $as_echo_n 0123456789 >"conftest.in"
4005   while :
4006   do
4007     cat "conftest.in" "conftest.in" >"conftest.tmp"
4008     mv "conftest.tmp" "conftest.in"
4009     cp "conftest.in" "conftest.nl"
4010     $as_echo '' >> "conftest.nl"
4011     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013     as_fn_arith $ac_count + 1 && ac_count=$as_val
4014     if test $ac_count -gt ${ac_path_SED_max-0}; then
4015       # Best one so far, save it but keep looking for a better one
4016       ac_cv_path_SED="$ac_path_SED"
4017       ac_path_SED_max=$ac_count
4018     fi
4019     # 10*(2^10) chars as input seems more than enough
4020     test $ac_count -gt 10 && break
4021   done
4022   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024
4025       $ac_path_SED_found && break 3
4026     done
4027   done
4028   done
4029 IFS=$as_save_IFS
4030   if test -z "$ac_cv_path_SED"; then
4031     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4032   fi
4033 else
4034   ac_cv_path_SED=$SED
4035 fi
4036
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4039 $as_echo "$ac_cv_path_SED" >&6; }
4040  SED="$ac_cv_path_SED"
4041   rm -f conftest.sed
4042
4043 test -z "$SED" && SED=sed
4044 Xsed="$SED -e 1s/^X//"
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4057 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4058 if test "${ac_cv_path_GREP+set}" = set; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061   if test -z "$GREP"; then
4062   ac_path_GREP_found=false
4063   # Loop through the user's path and test for each of PROGNAME-LIST
4064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066 do
4067   IFS=$as_save_IFS
4068   test -z "$as_dir" && as_dir=.
4069     for ac_prog in grep ggrep; do
4070     for ac_exec_ext in '' $ac_executable_extensions; do
4071       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4072       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4073 # Check for GNU ac_path_GREP and select it if it is found.
4074   # Check for GNU $ac_path_GREP
4075 case `"$ac_path_GREP" --version 2>&1` in
4076 *GNU*)
4077   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4078 *)
4079   ac_count=0
4080   $as_echo_n 0123456789 >"conftest.in"
4081   while :
4082   do
4083     cat "conftest.in" "conftest.in" >"conftest.tmp"
4084     mv "conftest.tmp" "conftest.in"
4085     cp "conftest.in" "conftest.nl"
4086     $as_echo 'GREP' >> "conftest.nl"
4087     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089     as_fn_arith $ac_count + 1 && ac_count=$as_val
4090     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4091       # Best one so far, save it but keep looking for a better one
4092       ac_cv_path_GREP="$ac_path_GREP"
4093       ac_path_GREP_max=$ac_count
4094     fi
4095     # 10*(2^10) chars as input seems more than enough
4096     test $ac_count -gt 10 && break
4097   done
4098   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 esac
4100
4101       $ac_path_GREP_found && break 3
4102     done
4103   done
4104   done
4105 IFS=$as_save_IFS
4106   if test -z "$ac_cv_path_GREP"; then
4107     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4108   fi
4109 else
4110   ac_cv_path_GREP=$GREP
4111 fi
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4115 $as_echo "$ac_cv_path_GREP" >&6; }
4116  GREP="$ac_cv_path_GREP"
4117
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4120 $as_echo_n "checking for egrep... " >&6; }
4121 if test "${ac_cv_path_EGREP+set}" = set; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4125    then ac_cv_path_EGREP="$GREP -E"
4126    else
4127      if test -z "$EGREP"; then
4128   ac_path_EGREP_found=false
4129   # Loop through the user's path and test for each of PROGNAME-LIST
4130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_prog in egrep; do
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4138       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4139 # Check for GNU ac_path_EGREP and select it if it is found.
4140   # Check for GNU $ac_path_EGREP
4141 case `"$ac_path_EGREP" --version 2>&1` in
4142 *GNU*)
4143   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4144 *)
4145   ac_count=0
4146   $as_echo_n 0123456789 >"conftest.in"
4147   while :
4148   do
4149     cat "conftest.in" "conftest.in" >"conftest.tmp"
4150     mv "conftest.tmp" "conftest.in"
4151     cp "conftest.in" "conftest.nl"
4152     $as_echo 'EGREP' >> "conftest.nl"
4153     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155     as_fn_arith $ac_count + 1 && ac_count=$as_val
4156     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4157       # Best one so far, save it but keep looking for a better one
4158       ac_cv_path_EGREP="$ac_path_EGREP"
4159       ac_path_EGREP_max=$ac_count
4160     fi
4161     # 10*(2^10) chars as input seems more than enough
4162     test $ac_count -gt 10 && break
4163   done
4164   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167       $ac_path_EGREP_found && break 3
4168     done
4169   done
4170   done
4171 IFS=$as_save_IFS
4172   if test -z "$ac_cv_path_EGREP"; then
4173     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174   fi
4175 else
4176   ac_cv_path_EGREP=$EGREP
4177 fi
4178
4179    fi
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4182 $as_echo "$ac_cv_path_EGREP" >&6; }
4183  EGREP="$ac_cv_path_EGREP"
4184
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4187 $as_echo_n "checking for fgrep... " >&6; }
4188 if test "${ac_cv_path_FGREP+set}" = set; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4192    then ac_cv_path_FGREP="$GREP -F"
4193    else
4194      if test -z "$FGREP"; then
4195   ac_path_FGREP_found=false
4196   # Loop through the user's path and test for each of PROGNAME-LIST
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_prog in fgrep; do
4203     for ac_exec_ext in '' $ac_executable_extensions; do
4204       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4205       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4206 # Check for GNU ac_path_FGREP and select it if it is found.
4207   # Check for GNU $ac_path_FGREP
4208 case `"$ac_path_FGREP" --version 2>&1` in
4209 *GNU*)
4210   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4211 *)
4212   ac_count=0
4213   $as_echo_n 0123456789 >"conftest.in"
4214   while :
4215   do
4216     cat "conftest.in" "conftest.in" >"conftest.tmp"
4217     mv "conftest.tmp" "conftest.in"
4218     cp "conftest.in" "conftest.nl"
4219     $as_echo 'FGREP' >> "conftest.nl"
4220     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222     as_fn_arith $ac_count + 1 && ac_count=$as_val
4223     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4224       # Best one so far, save it but keep looking for a better one
4225       ac_cv_path_FGREP="$ac_path_FGREP"
4226       ac_path_FGREP_max=$ac_count
4227     fi
4228     # 10*(2^10) chars as input seems more than enough
4229     test $ac_count -gt 10 && break
4230   done
4231   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4233
4234       $ac_path_FGREP_found && break 3
4235     done
4236   done
4237   done
4238 IFS=$as_save_IFS
4239   if test -z "$ac_cv_path_FGREP"; then
4240     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241   fi
4242 else
4243   ac_cv_path_FGREP=$FGREP
4244 fi
4245
4246    fi
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4249 $as_echo "$ac_cv_path_FGREP" >&6; }
4250  FGREP="$ac_cv_path_FGREP"
4251
4252
4253 test -z "$GREP" && GREP=grep
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273 # Check whether --with-gnu-ld was given.
4274 if test "${with_gnu_ld+set}" = set; then :
4275   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4276 else
4277   with_gnu_ld=no
4278 fi
4279
4280 ac_prog=ld
4281 if test "$GCC" = yes; then
4282   # Check if gcc -print-prog-name=ld gives a path.
4283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4284 $as_echo_n "checking for ld used by $CC... " >&6; }
4285   case $host in
4286   *-*-mingw*)
4287     # gcc leaves a trailing carriage return which upsets mingw
4288     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4289   *)
4290     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4291   esac
4292   case $ac_prog in
4293     # Accept absolute paths.
4294     [\\/]* | ?:[\\/]*)
4295       re_direlt='/[^/][^/]*/\.\./'
4296       # Canonicalize the pathname of ld
4297       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4298       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4299         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4300       done
4301       test -z "$LD" && LD="$ac_prog"
4302       ;;
4303   "")
4304     # If it fails, then pretend we aren't using GCC.
4305     ac_prog=ld
4306     ;;
4307   *)
4308     # If it is relative, then search for the first ld in PATH.
4309     with_gnu_ld=unknown
4310     ;;
4311   esac
4312 elif test "$with_gnu_ld" = yes; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4314 $as_echo_n "checking for GNU ld... " >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4317 $as_echo_n "checking for non-GNU ld... " >&6; }
4318 fi
4319 if test "${lt_cv_path_LD+set}" = set; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if test -z "$LD"; then
4323   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4324   for ac_dir in $PATH; do
4325     IFS="$lt_save_ifs"
4326     test -z "$ac_dir" && ac_dir=.
4327     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4328       lt_cv_path_LD="$ac_dir/$ac_prog"
4329       # Check to see if the program is GNU ld.  I'd rather use --version,
4330       # but apparently some variants of GNU ld only accept -v.
4331       # Break only if it was the GNU/non-GNU ld that we prefer.
4332       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4333       *GNU* | *'with BFD'*)
4334         test "$with_gnu_ld" != no && break
4335         ;;
4336       *)
4337         test "$with_gnu_ld" != yes && break
4338         ;;
4339       esac
4340     fi
4341   done
4342   IFS="$lt_save_ifs"
4343 else
4344   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4345 fi
4346 fi
4347
4348 LD="$lt_cv_path_LD"
4349 if test -n "$LD"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4351 $as_echo "$LD" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4359 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4363 case `$LD -v 2>&1 </dev/null` in
4364 *GNU* | *'with BFD'*)
4365   lt_cv_prog_gnu_ld=yes
4366   ;;
4367 *)
4368   lt_cv_prog_gnu_ld=no
4369   ;;
4370 esac
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4373 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4374 with_gnu_ld=$lt_cv_prog_gnu_ld
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4390 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4391 # On Suns, sometimes $CPP names a directory.
4392 if test -n "$CPP" && test -d "$CPP"; then
4393   CPP=
4394 fi
4395 if test -z "$CPP"; then
4396   if test "${ac_cv_prog_CPP+set}" = set; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399       # Double quotes because CPP needs to be expanded
4400     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4401     do
4402       ac_preproc_ok=false
4403 for ac_c_preproc_warn_flag in '' yes
4404 do
4405   # Use a header file that comes with gcc, so configuring glibc
4406   # with a fresh cross-compiler works.
4407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4408   # <limits.h> exists even on freestanding compilers.
4409   # On the NeXT, cc -E runs the code through the compiler's parser,
4410   # not just through cpp. "Syntax error" is here to catch this case.
4411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413 #ifdef __STDC__
4414 # include <limits.h>
4415 #else
4416 # include <assert.h>
4417 #endif
4418                      Syntax error
4419 _ACEOF
4420 if ac_fn_c_try_cpp "$LINENO"; then :
4421
4422 else
4423   # Broken: fails on valid input.
4424 continue
4425 fi
4426 rm -f conftest.err conftest.$ac_ext
4427
4428   # OK, works on sane cases.  Now check whether nonexistent headers
4429   # can be detected and how.
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 #include <ac_nonexistent.h>
4433 _ACEOF
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4435   # Broken: success on invalid input.
4436 continue
4437 else
4438   # Passes both tests.
4439 ac_preproc_ok=:
4440 break
4441 fi
4442 rm -f conftest.err conftest.$ac_ext
4443
4444 done
4445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4446 rm -f conftest.err conftest.$ac_ext
4447 if $ac_preproc_ok; then :
4448   break
4449 fi
4450
4451     done
4452     ac_cv_prog_CPP=$CPP
4453
4454 fi
4455   CPP=$ac_cv_prog_CPP
4456 else
4457   ac_cv_prog_CPP=$CPP
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4460 $as_echo "$CPP" >&6; }
4461 ac_preproc_ok=false
4462 for ac_c_preproc_warn_flag in '' yes
4463 do
4464   # Use a header file that comes with gcc, so configuring glibc
4465   # with a fresh cross-compiler works.
4466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467   # <limits.h> exists even on freestanding compilers.
4468   # On the NeXT, cc -E runs the code through the compiler's parser,
4469   # not just through cpp. "Syntax error" is here to catch this case.
4470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h.  */
4472 #ifdef __STDC__
4473 # include <limits.h>
4474 #else
4475 # include <assert.h>
4476 #endif
4477                      Syntax error
4478 _ACEOF
4479 if ac_fn_c_try_cpp "$LINENO"; then :
4480
4481 else
4482   # Broken: fails on valid input.
4483 continue
4484 fi
4485 rm -f conftest.err conftest.$ac_ext
4486
4487   # OK, works on sane cases.  Now check whether nonexistent headers
4488   # can be detected and how.
4489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491 #include <ac_nonexistent.h>
4492 _ACEOF
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494   # Broken: success on invalid input.
4495 continue
4496 else
4497   # Passes both tests.
4498 ac_preproc_ok=:
4499 break
4500 fi
4501 rm -f conftest.err conftest.$ac_ext
4502
4503 done
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then :
4507
4508 else
4509   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4511 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4512 See \`config.log' for more details." "$LINENO" 5; }
4513 fi
4514
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521 if test -n "$ac_tool_prefix"; then
4522   # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}sed; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if test "${ac_cv_prog_SED+set}" = set; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   if test -n "$SED"; then
4530   ac_cv_prog_SED="$SED" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539     ac_cv_prog_SED="${ac_tool_prefix}sed"
4540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544   done
4545 IFS=$as_save_IFS
4546
4547 fi
4548 fi
4549 SED=$ac_cv_prog_SED
4550 if test -n "$SED"; then
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4552 $as_echo "$SED" >&6; }
4553 else
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 fi
4557
4558
4559 fi
4560 if test -z "$ac_cv_prog_SED"; then
4561   ac_ct_SED=$SED
4562   # Extract the first word of "sed", so it can be a program name with args.
4563 set dummy sed; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_SED+set}" = set; then :
4567   $as_echo_n "(cached) " >&6
4568 else
4569   if test -n "$ac_ct_SED"; then
4570   ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577     for ac_exec_ext in '' $ac_executable_extensions; do
4578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579     ac_cv_prog_ac_ct_SED="sed"
4580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584   done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4590 if test -n "$ac_ct_SED"; then
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4592 $as_echo "$ac_ct_SED" >&6; }
4593 else
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598   if test "x$ac_ct_SED" = x; then
4599     SED=":"
4600   else
4601     case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607     SED=$ac_ct_SED
4608   fi
4609 else
4610   SED="$ac_cv_prog_SED"
4611 fi
4612
4613 enable_win32_dll=yes
4614
4615 case $host in
4616 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4617   if test -n "$ac_tool_prefix"; then
4618   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}as; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_AS+set}" = set; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if test -n "$AS"; then
4626   ac_cv_prog_AS="$AS" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_AS="${ac_tool_prefix}as"
4636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640   done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 AS=$ac_cv_prog_AS
4646 if test -n "$AS"; then
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4648 $as_echo "$AS" >&6; }
4649 else
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_AS"; then
4657   ac_ct_AS=$AS
4658   # Extract the first word of "as", so it can be a program name with args.
4659 set dummy as; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   if test -n "$ac_ct_AS"; then
4666   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673     for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_ac_ct_AS="as"
4676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680   done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4686 if test -n "$ac_ct_AS"; then
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4688 $as_echo "$ac_ct_AS" >&6; }
4689 else
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694   if test "x$ac_ct_AS" = x; then
4695     AS="false"
4696   else
4697     case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703     AS=$ac_ct_AS
4704   fi
4705 else
4706   AS="$ac_cv_prog_AS"
4707 fi
4708
4709   if test -n "$ac_tool_prefix"; then
4710   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   if test -n "$DLLTOOL"; then
4718   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729     break 2
4730   fi
4731 done
4732   done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 DLLTOOL=$ac_cv_prog_DLLTOOL
4738 if test -n "$DLLTOOL"; then
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4740 $as_echo "$DLLTOOL" >&6; }
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 fi
4748 if test -z "$ac_cv_prog_DLLTOOL"; then
4749   ac_ct_DLLTOOL=$DLLTOOL
4750   # Extract the first word of "dlltool", so it can be a program name with args.
4751 set dummy dlltool; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if test -n "$ac_ct_DLLTOOL"; then
4758   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4778 if test -n "$ac_ct_DLLTOOL"; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4780 $as_echo "$ac_ct_DLLTOOL" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786   if test "x$ac_ct_DLLTOOL" = x; then
4787     DLLTOOL="false"
4788   else
4789     case $cross_compiling:$ac_tool_warned in
4790 yes:)
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793 ac_tool_warned=yes ;;
4794 esac
4795     DLLTOOL=$ac_ct_DLLTOOL
4796   fi
4797 else
4798   DLLTOOL="$ac_cv_prog_DLLTOOL"
4799 fi
4800
4801   if test -n "$ac_tool_prefix"; then
4802   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   if test -n "$OBJDUMP"; then
4810   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821     break 2
4822   fi
4823 done
4824   done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 OBJDUMP=$ac_cv_prog_OBJDUMP
4830 if test -n "$OBJDUMP"; then
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4832 $as_echo "$OBJDUMP" >&6; }
4833 else
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838
4839 fi
4840 if test -z "$ac_cv_prog_OBJDUMP"; then
4841   ac_ct_OBJDUMP=$OBJDUMP
4842   # Extract the first word of "objdump", so it can be a program name with args.
4843 set dummy objdump; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   if test -n "$ac_ct_OBJDUMP"; then
4850   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4870 if test -n "$ac_ct_OBJDUMP"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4872 $as_echo "$ac_ct_OBJDUMP" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878   if test "x$ac_ct_OBJDUMP" = x; then
4879     OBJDUMP="false"
4880   else
4881     case $cross_compiling:$ac_tool_warned in
4882 yes:)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4886 esac
4887     OBJDUMP=$ac_ct_OBJDUMP
4888   fi
4889 else
4890   OBJDUMP="$ac_cv_prog_OBJDUMP"
4891 fi
4892
4893   ;;
4894 esac
4895
4896 test -z "$AS" && AS=as
4897
4898
4899
4900
4901
4902 test -z "$DLLTOOL" && DLLTOOL=dlltool
4903
4904
4905
4906
4907
4908 test -z "$OBJDUMP" && OBJDUMP=objdump
4909
4910
4911
4912
4913
4914
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4918 $as_echo_n "checking whether ln -s works... " >&6; }
4919 LN_S=$as_ln_s
4920 if test "$LN_S" = "ln -s"; then
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 $as_echo "yes" >&6; }
4923 else
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4925 $as_echo "no, using $LN_S" >&6; }
4926 fi
4927
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4929 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4930 set x ${MAKE-make}
4931 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4932 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   cat >conftest.make <<\_ACEOF
4936 SHELL = /bin/sh
4937 all:
4938         @echo '@@@%%%=$(MAKE)=@@@%%%'
4939 _ACEOF
4940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4942   *@@@%%%=?*=@@@%%%*)
4943     eval ac_cv_prog_make_${ac_make}_set=yes;;
4944   *)
4945     eval ac_cv_prog_make_${ac_make}_set=no;;
4946 esac
4947 rm -f conftest.make
4948 fi
4949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951 $as_echo "yes" >&6; }
4952   SET_MAKE=
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956   SET_MAKE="MAKE=${MAKE-make}"
4957 fi
4958
4959 case `pwd` in
4960   *\ * | *\     *)
4961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4963 esac
4964
4965
4966
4967 macro_version='2.2.6b'
4968 macro_revision='1.3017'
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 ltmain="$ac_aux_dir/ltmain.sh"
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4985 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4986 if test "${lt_cv_path_NM+set}" = set; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   if test -n "$NM"; then
4990   # Let the user override the test.
4991   lt_cv_path_NM="$NM"
4992 else
4993   lt_nm_to_check="${ac_tool_prefix}nm"
4994   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4995     lt_nm_to_check="$lt_nm_to_check nm"
4996   fi
4997   for lt_tmp_nm in $lt_nm_to_check; do
4998     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4999     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5000       IFS="$lt_save_ifs"
5001       test -z "$ac_dir" && ac_dir=.
5002       tmp_nm="$ac_dir/$lt_tmp_nm"
5003       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5004         # Check to see if the nm accepts a BSD-compat flag.
5005         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5006         #   nm: unknown option "B" ignored
5007         # Tru64's nm complains that /dev/null is an invalid object file
5008         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5009         */dev/null* | *'Invalid file or object type'*)
5010           lt_cv_path_NM="$tmp_nm -B"
5011           break
5012           ;;
5013         *)
5014           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5015           */dev/null*)
5016             lt_cv_path_NM="$tmp_nm -p"
5017             break
5018             ;;
5019           *)
5020             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5021             continue # so that we can try to find one that supports BSD flags
5022             ;;
5023           esac
5024           ;;
5025         esac
5026       fi
5027     done
5028     IFS="$lt_save_ifs"
5029   done
5030   : ${lt_cv_path_NM=no}
5031 fi
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5034 $as_echo "$lt_cv_path_NM" >&6; }
5035 if test "$lt_cv_path_NM" != "no"; then
5036   NM="$lt_cv_path_NM"
5037 else
5038   # Didn't find any BSD compatible name lister, look for dumpbin.
5039   if test -n "$ac_tool_prefix"; then
5040   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5041   do
5042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -n "$DUMPBIN"; then
5050   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 DUMPBIN=$ac_cv_prog_DUMPBIN
5070 if test -n "$DUMPBIN"; then
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5072 $as_echo "$DUMPBIN" >&6; }
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079     test -n "$DUMPBIN" && break
5080   done
5081 fi
5082 if test -z "$DUMPBIN"; then
5083   ac_ct_DUMPBIN=$DUMPBIN
5084   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$ac_ct_DUMPBIN"; then
5094   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5114 if test -n "$ac_ct_DUMPBIN"; then
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5116 $as_echo "$ac_ct_DUMPBIN" >&6; }
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123   test -n "$ac_ct_DUMPBIN" && break
5124 done
5125
5126   if test "x$ac_ct_DUMPBIN" = x; then
5127     DUMPBIN=":"
5128   else
5129     case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5134 esac
5135     DUMPBIN=$ac_ct_DUMPBIN
5136   fi
5137 fi
5138
5139
5140   if test "$DUMPBIN" != ":"; then
5141     NM="$DUMPBIN"
5142   fi
5143 fi
5144 test -z "$NM" && NM=nm
5145
5146
5147
5148
5149
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5152 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5153 if test "${lt_cv_nm_interface+set}" = set; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   lt_cv_nm_interface="BSD nm"
5157   echo "int some_variable = 0;" > conftest.$ac_ext
5158   (eval echo "\"\$as_me:5158: $ac_compile\"" >&5)
5159   (eval "$ac_compile" 2>conftest.err)
5160   cat conftest.err >&5
5161   (eval echo "\"\$as_me:5161: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5162   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5163   cat conftest.err >&5
5164   (eval echo "\"\$as_me:5164: output\"" >&5)
5165   cat conftest.out >&5
5166   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5167     lt_cv_nm_interface="MS dumpbin"
5168   fi
5169   rm -f conftest*
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5172 $as_echo "$lt_cv_nm_interface" >&6; }
5173
5174 # find the maximum length of command line arguments
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5176 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5177 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180     i=0
5181   teststring="ABCD"
5182
5183   case $build_os in
5184   msdosdjgpp*)
5185     # On DJGPP, this test can blow up pretty badly due to problems in libc
5186     # (any single argument exceeding 2000 bytes causes a buffer overrun
5187     # during glob expansion).  Even if it were fixed, the result of this
5188     # check would be larger than it should be.
5189     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5190     ;;
5191
5192   gnu*)
5193     # Under GNU Hurd, this test is not required because there is
5194     # no limit to the length of command line arguments.
5195     # Libtool will interpret -1 as no limit whatsoever
5196     lt_cv_sys_max_cmd_len=-1;
5197     ;;
5198
5199   cygwin* | mingw* | cegcc*)
5200     # On Win9x/ME, this test blows up -- it succeeds, but takes
5201     # about 5 minutes as the teststring grows exponentially.
5202     # Worse, since 9x/ME are not pre-emptively multitasking,
5203     # you end up with a "frozen" computer, even though with patience
5204     # the test eventually succeeds (with a max line length of 256k).
5205     # Instead, let's just punt: use the minimum linelength reported by
5206     # all of the supported platforms: 8192 (on NT/2K/XP).
5207     lt_cv_sys_max_cmd_len=8192;
5208     ;;
5209
5210   amigaos*)
5211     # On AmigaOS with pdksh, this test takes hours, literally.
5212     # So we just punt and use a minimum line length of 8192.
5213     lt_cv_sys_max_cmd_len=8192;
5214     ;;
5215
5216   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217     # This has been around since 386BSD, at least.  Likely further.
5218     if test -x /sbin/sysctl; then
5219       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220     elif test -x /usr/sbin/sysctl; then
5221       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5222     else
5223       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5224     fi
5225     # And add a safety zone
5226     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5228     ;;
5229
5230   interix*)
5231     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232     lt_cv_sys_max_cmd_len=196608
5233     ;;
5234
5235   osf*)
5236     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5237     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5238     # nice to cause kernel panics so lets avoid the loop below.
5239     # First set a reasonable default.
5240     lt_cv_sys_max_cmd_len=16384
5241     #
5242     if test -x /sbin/sysconfig; then
5243       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5244         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5245       esac
5246     fi
5247     ;;
5248   sco3.2v5*)
5249     lt_cv_sys_max_cmd_len=102400
5250     ;;
5251   sysv5* | sco5v6* | sysv4.2uw2*)
5252     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5253     if test -n "$kargmax"; then
5254       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5255     else
5256       lt_cv_sys_max_cmd_len=32768
5257     fi
5258     ;;
5259   *)
5260     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5261     if test -n "$lt_cv_sys_max_cmd_len"; then
5262       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5264     else
5265       # Make teststring a little bigger before we do anything with it.
5266       # a 1K string should be a reasonable start.
5267       for i in 1 2 3 4 5 6 7 8 ; do
5268         teststring=$teststring$teststring
5269       done
5270       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5271       # If test is not a shell built-in, we'll probably end up computing a
5272       # maximum length that is only half of the actual maximum length, but
5273       # we can't tell.
5274       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5275                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5276               test $i != 17 # 1/2 MB should be enough
5277       do
5278         i=`expr $i + 1`
5279         teststring=$teststring$teststring
5280       done
5281       # Only check the string length outside the loop.
5282       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5283       teststring=
5284       # Add a significant safety factor because C++ compilers can tack on
5285       # massive amounts of additional arguments before passing them to the
5286       # linker.  It appears as though 1/2 is a usable value.
5287       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5288     fi
5289     ;;
5290   esac
5291
5292 fi
5293
5294 if test -n $lt_cv_sys_max_cmd_len ; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5299 $as_echo "none" >&6; }
5300 fi
5301 max_cmd_len=$lt_cv_sys_max_cmd_len
5302
5303
5304
5305
5306
5307
5308 : ${CP="cp -f"}
5309 : ${MV="mv -f"}
5310 : ${RM="rm -f"}
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5314 # Try some XSI features
5315 xsi_shell=no
5316 ( _lt_dummy="a/b/c"
5317   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5318       = c,a/b,, \
5319     && eval 'test $(( 1 + 1 )) -eq 2 \
5320     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5321   && xsi_shell=yes
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5323 $as_echo "$xsi_shell" >&6; }
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5328 lt_shell_append=no
5329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5330     >/dev/null 2>&1 \
5331   && lt_shell_append=yes
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5333 $as_echo "$lt_shell_append" >&6; }
5334
5335
5336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5337   lt_unset=unset
5338 else
5339   lt_unset=false
5340 fi
5341
5342
5343
5344
5345
5346 # test EBCDIC or ASCII
5347 case `echo X|tr X '\101'` in
5348  A) # ASCII based system
5349     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5350   lt_SP2NL='tr \040 \012'
5351   lt_NL2SP='tr \015\012 \040\040'
5352   ;;
5353  *) # EBCDIC based system
5354   lt_SP2NL='tr \100 \n'
5355   lt_NL2SP='tr \r\n \100\100'
5356   ;;
5357 esac
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5369 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   lt_cv_ld_reload_flag='-r'
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5378 "" | " "*) ;;
5379 *) reload_flag=" $reload_flag" ;;
5380 esac
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382 case $host_os in
5383   darwin*)
5384     if test "$GCC" = yes; then
5385       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5386     else
5387       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388     fi
5389     ;;
5390 esac
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 if test -n "$ac_tool_prefix"; then
5401   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -n "$OBJDUMP"; then
5409   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423   done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 OBJDUMP=$ac_cv_prog_OBJDUMP
5429 if test -n "$OBJDUMP"; then
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5431 $as_echo "$OBJDUMP" >&6; }
5432 else
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 fi
5439 if test -z "$ac_cv_prog_OBJDUMP"; then
5440   ac_ct_OBJDUMP=$OBJDUMP
5441   # Extract the first word of "objdump", so it can be a program name with args.
5442 set dummy objdump; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   if test -n "$ac_ct_OBJDUMP"; then
5449   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5469 if test -n "$ac_ct_OBJDUMP"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5471 $as_echo "$ac_ct_OBJDUMP" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477   if test "x$ac_ct_OBJDUMP" = x; then
5478     OBJDUMP="false"
5479   else
5480     case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486     OBJDUMP=$ac_ct_OBJDUMP
5487   fi
5488 else
5489   OBJDUMP="$ac_cv_prog_OBJDUMP"
5490 fi
5491
5492 test -z "$OBJDUMP" && OBJDUMP=objdump
5493
5494
5495
5496
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5500 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5501 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   lt_cv_file_magic_cmd='$MAGIC_CMD'
5505 lt_cv_file_magic_test_file=
5506 lt_cv_deplibs_check_method='unknown'
5507 # Need to set the preceding variable on all platforms that support
5508 # interlibrary dependencies.
5509 # 'none' -- dependencies not supported.
5510 # `unknown' -- same as none, but documents that we really don't know.
5511 # 'pass_all' -- all dependencies passed with no checks.
5512 # 'test_compile' -- check by making test program.
5513 # 'file_magic [[regex]]' -- check by looking for files in library path
5514 # which responds to the $file_magic_cmd with a given extended regex.
5515 # If you have `file' or equivalent on your system and you're not sure
5516 # whether `pass_all' will *always* work, you probably want this one.
5517
5518 case $host_os in
5519 aix[4-9]*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 beos*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 bsdi[45]*)
5528   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5529   lt_cv_file_magic_cmd='/usr/bin/file -L'
5530   lt_cv_file_magic_test_file=/shlib/libc.so
5531   ;;
5532
5533 cygwin*)
5534   # func_win32_libid is a shell function defined in ltmain.sh
5535   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536   lt_cv_file_magic_cmd='func_win32_libid'
5537   ;;
5538
5539 mingw* | pw32*)
5540   # Base MSYS/MinGW do not provide the 'file' command needed by
5541   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5542   # unless we find 'file', for example because we are cross-compiling.
5543   if ( file / ) >/dev/null 2>&1; then
5544     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545     lt_cv_file_magic_cmd='func_win32_libid'
5546   else
5547     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5548     lt_cv_file_magic_cmd='$OBJDUMP -f'
5549   fi
5550   ;;
5551
5552 cegcc)
5553   # use the weaker test based on 'objdump'. See mingw*.
5554   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5555   lt_cv_file_magic_cmd='$OBJDUMP -f'
5556   ;;
5557
5558 darwin* | rhapsody*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 freebsd* | dragonfly*)
5563   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5564     case $host_cpu in
5565     i*86 )
5566       # Not sure whether the presence of OpenBSD here was a mistake.
5567       # Let's accept both of them until this is cleared up.
5568       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569       lt_cv_file_magic_cmd=/usr/bin/file
5570       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5571       ;;
5572     esac
5573   else
5574     lt_cv_deplibs_check_method=pass_all
5575   fi
5576   ;;
5577
5578 gnu*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 hpux10.20* | hpux11*)
5583   lt_cv_file_magic_cmd=/usr/bin/file
5584   case $host_cpu in
5585   ia64*)
5586     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5588     ;;
5589   hppa*64*)
5590     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]'
5591     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5592     ;;
5593   *)
5594     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5595     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5596     ;;
5597   esac
5598   ;;
5599
5600 interix[3-9]*)
5601   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5602   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5603   ;;
5604
5605 irix5* | irix6* | nonstopux*)
5606   case $LD in
5607   *-32|*"-32 ") libmagic=32-bit;;
5608   *-n32|*"-n32 ") libmagic=N32;;
5609   *-64|*"-64 ") libmagic=64-bit;;
5610   *) libmagic=never-match;;
5611   esac
5612   lt_cv_deplibs_check_method=pass_all
5613   ;;
5614
5615 # This must be Linux ELF.
5616 linux* | k*bsd*-gnu)
5617   lt_cv_deplibs_check_method=pass_all
5618   ;;
5619
5620 netbsd*)
5621   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5622     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5623   else
5624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5625   fi
5626   ;;
5627
5628 newos6*)
5629   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5630   lt_cv_file_magic_cmd=/usr/bin/file
5631   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5632   ;;
5633
5634 *nto* | *qnx*)
5635   lt_cv_deplibs_check_method=pass_all
5636   ;;
5637
5638 openbsd*)
5639   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5640     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5641   else
5642     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643   fi
5644   ;;
5645
5646 osf3* | osf4* | osf5*)
5647   lt_cv_deplibs_check_method=pass_all
5648   ;;
5649
5650 rdos*)
5651   lt_cv_deplibs_check_method=pass_all
5652   ;;
5653
5654 solaris*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657
5658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 sysv4 | sysv4.3*)
5663   case $host_vendor in
5664   motorola)
5665     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]'
5666     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5667     ;;
5668   ncr)
5669     lt_cv_deplibs_check_method=pass_all
5670     ;;
5671   sequent)
5672     lt_cv_file_magic_cmd='/bin/file'
5673     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5674     ;;
5675   sni)
5676     lt_cv_file_magic_cmd='/bin/file'
5677     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5678     lt_cv_file_magic_test_file=/lib/libc.so
5679     ;;
5680   siemens)
5681     lt_cv_deplibs_check_method=pass_all
5682     ;;
5683   pc)
5684     lt_cv_deplibs_check_method=pass_all
5685     ;;
5686   esac
5687   ;;
5688
5689 tpf*)
5690   lt_cv_deplibs_check_method=pass_all
5691   ;;
5692 esac
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5697 file_magic_cmd=$lt_cv_file_magic_cmd
5698 deplibs_check_method=$lt_cv_deplibs_check_method
5699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 if test -n "$ac_tool_prefix"; then
5713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}ar; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_prog_AR+set}" = set; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   if test -n "$AR"; then
5721   ac_cv_prog_AR="$AR" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730     ac_cv_prog_AR="${ac_tool_prefix}ar"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737
5738 fi
5739 fi
5740 AR=$ac_cv_prog_AR
5741 if test -n "$AR"; then
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5743 $as_echo "$AR" >&6; }
5744 else
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748
5749
5750 fi
5751 if test -z "$ac_cv_prog_AR"; then
5752   ac_ct_AR=$AR
5753   # Extract the first word of "ar", so it can be a program name with args.
5754 set dummy ar; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   if test -n "$ac_ct_AR"; then
5761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_prog_ac_ct_AR="ar"
5771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775   done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781 if test -n "$ac_ct_AR"; then
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5783 $as_echo "$ac_ct_AR" >&6; }
5784 else
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789   if test "x$ac_ct_AR" = x; then
5790     AR="false"
5791   else
5792     case $cross_compiling:$ac_tool_warned in
5793 yes:)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5797 esac
5798     AR=$ac_ct_AR
5799   fi
5800 else
5801   AR="$ac_cv_prog_AR"
5802 fi
5803
5804 test -z "$AR" && AR=ar
5805 test -z "$AR_FLAGS" && AR_FLAGS=cru
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 if test -n "$ac_tool_prefix"; then
5818   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}strip; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_prog_STRIP+set}" = set; then :
5823   $as_echo_n "(cached) " >&6
5824 else
5825   if test -n "$STRIP"; then
5826   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833     for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840   done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 STRIP=$ac_cv_prog_STRIP
5846 if test -n "$STRIP"; then
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5848 $as_echo "$STRIP" >&6; }
5849 else
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 fi
5856 if test -z "$ac_cv_prog_STRIP"; then
5857   ac_ct_STRIP=$STRIP
5858   # Extract the first word of "strip", so it can be a program name with args.
5859 set dummy strip; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -n "$ac_ct_STRIP"; then
5866   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875     ac_cv_prog_ac_ct_STRIP="strip"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5886 if test -n "$ac_ct_STRIP"; then
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5888 $as_echo "$ac_ct_STRIP" >&6; }
5889 else
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894   if test "x$ac_ct_STRIP" = x; then
5895     STRIP=":"
5896   else
5897     case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903     STRIP=$ac_ct_STRIP
5904   fi
5905 else
5906   STRIP="$ac_cv_prog_STRIP"
5907 fi
5908
5909 test -z "$STRIP" && STRIP=:
5910
5911
5912
5913
5914
5915
5916 if test -n "$ac_tool_prefix"; then
5917   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   if test -n "$RANLIB"; then
5925   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932     for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939   done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5947 $as_echo "$RANLIB" >&6; }
5948 else
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954 fi
5955 if test -z "$ac_cv_prog_RANLIB"; then
5956   ac_ct_RANLIB=$RANLIB
5957   # Extract the first word of "ranlib", so it can be a program name with args.
5958 set dummy ranlib; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964   if test -n "$ac_ct_RANLIB"; then
5965   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972     for ac_exec_ext in '' $ac_executable_extensions; do
5973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974     ac_cv_prog_ac_ct_RANLIB="ranlib"
5975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979   done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5985 if test -n "$ac_ct_RANLIB"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5987 $as_echo "$ac_ct_RANLIB" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993   if test "x$ac_ct_RANLIB" = x; then
5994     RANLIB=":"
5995   else
5996     case $cross_compiling:$ac_tool_warned in
5997 yes:)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6001 esac
6002     RANLIB=$ac_ct_RANLIB
6003   fi
6004 else
6005   RANLIB="$ac_cv_prog_RANLIB"
6006 fi
6007
6008 test -z "$RANLIB" && RANLIB=:
6009
6010
6011
6012
6013
6014
6015 # Determine commands to create old-style static archives.
6016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6017 old_postinstall_cmds='chmod 644 $oldlib'
6018 old_postuninstall_cmds=
6019
6020 if test -n "$RANLIB"; then
6021   case $host_os in
6022   openbsd*)
6023     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6024     ;;
6025   *)
6026     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6027     ;;
6028   esac
6029   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6030 fi
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 # If no C compiler was specified, use CC.
6066 LTCC=${LTCC-"$CC"}
6067
6068 # If no C compiler flags were specified, use CFLAGS.
6069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6070
6071 # Allow CC to be a program name with arguments.
6072 compiler=$CC
6073
6074
6075 # Check for command to grab the raw symbol name followed by C symbol from nm.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081
6082 # These are sane defaults that work on at least a few old systems.
6083 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6084
6085 # Character class describing NM global symbol codes.
6086 symcode='[BCDEGRST]'
6087
6088 # Regexp to match symbols that can be accessed directly from C.
6089 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6090
6091 # Define system-specific variables.
6092 case $host_os in
6093 aix*)
6094   symcode='[BCDT]'
6095   ;;
6096 cygwin* | mingw* | pw32* | cegcc*)
6097   symcode='[ABCDGISTW]'
6098   ;;
6099 hpux*)
6100   if test "$host_cpu" = ia64; then
6101     symcode='[ABCDEGRST]'
6102   fi
6103   ;;
6104 irix* | nonstopux*)
6105   symcode='[BCDEGRST]'
6106   ;;
6107 osf*)
6108   symcode='[BCDEGQRST]'
6109   ;;
6110 solaris*)
6111   symcode='[BDRT]'
6112   ;;
6113 sco3.2v5*)
6114   symcode='[DT]'
6115   ;;
6116 sysv4.2uw2*)
6117   symcode='[DT]'
6118   ;;
6119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6120   symcode='[ABDT]'
6121   ;;
6122 sysv4)
6123   symcode='[DFNSTU]'
6124   ;;
6125 esac
6126
6127 # If we're using GNU nm, then use its standard symbol codes.
6128 case `$NM -V 2>&1` in
6129 *GNU* | *'with BFD'*)
6130   symcode='[ABCDGIRSTW]' ;;
6131 esac
6132
6133 # Transform an extracted symbol line into a proper C declaration.
6134 # Some systems (esp. on ia64) link data and code symbols differently,
6135 # so use this general approach.
6136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6137
6138 # Transform an extracted symbol line into symbol name and symbol address
6139 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6140 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'"
6141
6142 # Handle CRLF in mingw tool chain
6143 opt_cr=
6144 case $build_os in
6145 mingw*)
6146   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6147   ;;
6148 esac
6149
6150 # Try without a prefix underscore, then with it.
6151 for ac_symprfx in "" "_"; do
6152
6153   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6154   symxfrm="\\1 $ac_symprfx\\2 \\2"
6155
6156   # Write the raw and C identifiers.
6157   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158     # Fake it for dumpbin and say T for any non-static function
6159     # and D for any global variable.
6160     # Also find C++ and __fastcall symbols from MSVC++,
6161     # which start with @ or ?.
6162     lt_cv_sys_global_symbol_pipe="$AWK '"\
6163 "     {last_section=section; section=\$ 3};"\
6164 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165 "     \$ 0!~/External *\|/{next};"\
6166 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6167 "     {if(hide[section]) next};"\
6168 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6169 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6170 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6171 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6172 "     ' prfx=^$ac_symprfx"
6173   else
6174     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6175   fi
6176
6177   # Check to see that the pipe works correctly.
6178   pipe_works=no
6179
6180   rm -f conftest*
6181   cat > conftest.$ac_ext <<_LT_EOF
6182 #ifdef __cplusplus
6183 extern "C" {
6184 #endif
6185 char nm_test_var;
6186 void nm_test_func(void);
6187 void nm_test_func(void){}
6188 #ifdef __cplusplus
6189 }
6190 #endif
6191 int main(){nm_test_var='a';nm_test_func();return(0);}
6192 _LT_EOF
6193
6194   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195   (eval $ac_compile) 2>&5
6196   ac_status=$?
6197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198   test $ac_status = 0; }; then
6199     # Now try to grab the symbols.
6200     nlist=conftest.nm
6201     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6202   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6203   ac_status=$?
6204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205   test $ac_status = 0; } && test -s "$nlist"; then
6206       # Try sorting and uniquifying the output.
6207       if sort "$nlist" | uniq > "$nlist"T; then
6208         mv -f "$nlist"T "$nlist"
6209       else
6210         rm -f "$nlist"T
6211       fi
6212
6213       # Make sure that we snagged all the symbols we need.
6214       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6215         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6216           cat <<_LT_EOF > conftest.$ac_ext
6217 #ifdef __cplusplus
6218 extern "C" {
6219 #endif
6220
6221 _LT_EOF
6222           # Now generate the symbol file.
6223           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6224
6225           cat <<_LT_EOF >> conftest.$ac_ext
6226
6227 /* The mapping between symbol names and symbols.  */
6228 const struct {
6229   const char *name;
6230   void       *address;
6231 }
6232 lt__PROGRAM__LTX_preloaded_symbols[] =
6233 {
6234   { "@PROGRAM@", (void *) 0 },
6235 _LT_EOF
6236           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6237           cat <<\_LT_EOF >> conftest.$ac_ext
6238   {0, (void *) 0}
6239 };
6240
6241 /* This works around a problem in FreeBSD linker */
6242 #ifdef FREEBSD_WORKAROUND
6243 static const void *lt_preloaded_setup() {
6244   return lt__PROGRAM__LTX_preloaded_symbols;
6245 }
6246 #endif
6247
6248 #ifdef __cplusplus
6249 }
6250 #endif
6251 _LT_EOF
6252           # Now try linking the two files.
6253           mv conftest.$ac_objext conftstm.$ac_objext
6254           lt_save_LIBS="$LIBS"
6255           lt_save_CFLAGS="$CFLAGS"
6256           LIBS="conftstm.$ac_objext"
6257           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6258           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6259   (eval $ac_link) 2>&5
6260   ac_status=$?
6261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6263             pipe_works=yes
6264           fi
6265           LIBS="$lt_save_LIBS"
6266           CFLAGS="$lt_save_CFLAGS"
6267         else
6268           echo "cannot find nm_test_func in $nlist" >&5
6269         fi
6270       else
6271         echo "cannot find nm_test_var in $nlist" >&5
6272       fi
6273     else
6274       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6275     fi
6276   else
6277     echo "$progname: failed program was:" >&5
6278     cat conftest.$ac_ext >&5
6279   fi
6280   rm -rf conftest* conftst*
6281
6282   # Do not use the global_symbol_pipe unless it works.
6283   if test "$pipe_works" = yes; then
6284     break
6285   else
6286     lt_cv_sys_global_symbol_pipe=
6287   fi
6288 done
6289
6290 fi
6291
6292 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6293   lt_cv_sys_global_symbol_to_cdecl=
6294 fi
6295 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6297 $as_echo "failed" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6300 $as_echo "ok" >&6; }
6301 fi
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 # Check whether --enable-libtool-lock was given.
6326 if test "${enable_libtool_lock+set}" = set; then :
6327   enableval=$enable_libtool_lock;
6328 fi
6329
6330 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6331
6332 # Some flags need to be propagated to the compiler or linker for good
6333 # libtool support.
6334 case $host in
6335 ia64-*-hpux*)
6336   # Find out which ABI we are using.
6337   echo 'int i;' > conftest.$ac_ext
6338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339   (eval $ac_compile) 2>&5
6340   ac_status=$?
6341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342   test $ac_status = 0; }; then
6343     case `/usr/bin/file conftest.$ac_objext` in
6344       *ELF-32*)
6345         HPUX_IA64_MODE="32"
6346         ;;
6347       *ELF-64*)
6348         HPUX_IA64_MODE="64"
6349         ;;
6350     esac
6351   fi
6352   rm -rf conftest*
6353   ;;
6354 *-*-irix6*)
6355   # Find out which ABI we are using.
6356   echo '#line 6356 "configure"' > conftest.$ac_ext
6357   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358   (eval $ac_compile) 2>&5
6359   ac_status=$?
6360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361   test $ac_status = 0; }; then
6362     if test "$lt_cv_prog_gnu_ld" = yes; then
6363       case `/usr/bin/file conftest.$ac_objext` in
6364         *32-bit*)
6365           LD="${LD-ld} -melf32bsmip"
6366           ;;
6367         *N32*)
6368           LD="${LD-ld} -melf32bmipn32"
6369           ;;
6370         *64-bit*)
6371           LD="${LD-ld} -melf64bmip"
6372         ;;
6373       esac
6374     else
6375       case `/usr/bin/file conftest.$ac_objext` in
6376         *32-bit*)
6377           LD="${LD-ld} -32"
6378           ;;
6379         *N32*)
6380           LD="${LD-ld} -n32"
6381           ;;
6382         *64-bit*)
6383           LD="${LD-ld} -64"
6384           ;;
6385       esac
6386     fi
6387   fi
6388   rm -rf conftest*
6389   ;;
6390
6391 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6392 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6393   # Find out which ABI we are using.
6394   echo 'int i;' > conftest.$ac_ext
6395   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396   (eval $ac_compile) 2>&5
6397   ac_status=$?
6398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399   test $ac_status = 0; }; then
6400     case `/usr/bin/file conftest.o` in
6401       *32-bit*)
6402         case $host in
6403           x86_64-*kfreebsd*-gnu)
6404             LD="${LD-ld} -m elf_i386_fbsd"
6405             ;;
6406           x86_64-*linux*)
6407             LD="${LD-ld} -m elf_i386"
6408             ;;
6409           ppc64-*linux*|powerpc64-*linux*)
6410             LD="${LD-ld} -m elf32ppclinux"
6411             ;;
6412           s390x-*linux*)
6413             LD="${LD-ld} -m elf_s390"
6414             ;;
6415           sparc64-*linux*)
6416             LD="${LD-ld} -m elf32_sparc"
6417             ;;
6418         esac
6419         ;;
6420       *64-bit*)
6421         case $host in
6422           x86_64-*kfreebsd*-gnu)
6423             LD="${LD-ld} -m elf_x86_64_fbsd"
6424             ;;
6425           x86_64-*linux*)
6426             LD="${LD-ld} -m elf_x86_64"
6427             ;;
6428           ppc*-*linux*|powerpc*-*linux*)
6429             LD="${LD-ld} -m elf64ppc"
6430             ;;
6431           s390*-*linux*|s390*-*tpf*)
6432             LD="${LD-ld} -m elf64_s390"
6433             ;;
6434           sparc*-*linux*)
6435             LD="${LD-ld} -m elf64_sparc"
6436             ;;
6437         esac
6438         ;;
6439     esac
6440   fi
6441   rm -rf conftest*
6442   ;;
6443
6444 *-*-sco3.2v5*)
6445   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6446   SAVE_CFLAGS="$CFLAGS"
6447   CFLAGS="$CFLAGS -belf"
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6449 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6450 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   ac_ext=c
6454 ac_cpp='$CPP $CPPFLAGS'
6455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458
6459      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h.  */
6461
6462 int
6463 main ()
6464 {
6465
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"; then :
6471   lt_cv_cc_needs_belf=yes
6472 else
6473   lt_cv_cc_needs_belf=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext \
6476     conftest$ac_exeext conftest.$ac_ext
6477      ac_ext=c
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482
6483 fi
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6485 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6486   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6487     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6488     CFLAGS="$SAVE_CFLAGS"
6489   fi
6490   ;;
6491 sparc*-*solaris*)
6492   # Find out which ABI we are using.
6493   echo 'int i;' > conftest.$ac_ext
6494   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6495   (eval $ac_compile) 2>&5
6496   ac_status=$?
6497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498   test $ac_status = 0; }; then
6499     case `/usr/bin/file conftest.o` in
6500     *64-bit*)
6501       case $lt_cv_prog_gnu_ld in
6502       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6503       *)
6504         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6505           LD="${LD-ld} -64"
6506         fi
6507         ;;
6508       esac
6509       ;;
6510     esac
6511   fi
6512   rm -rf conftest*
6513   ;;
6514 esac
6515
6516 need_locks="$enable_libtool_lock"
6517
6518
6519   case $host_os in
6520     rhapsody* | darwin*)
6521     if test -n "$ac_tool_prefix"; then
6522   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -n "$DSYMUTIL"; then
6530   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537     for ac_exec_ext in '' $ac_executable_extensions; do
6538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544   done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6550 if test -n "$DSYMUTIL"; then
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6552 $as_echo "$DSYMUTIL" >&6; }
6553 else
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_DSYMUTIL"; then
6561   ac_ct_DSYMUTIL=$DSYMUTIL
6562   # Extract the first word of "dsymutil", so it can be a program name with args.
6563 set dummy dsymutil; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   if test -n "$ac_ct_DSYMUTIL"; then
6570   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577     for ac_exec_ext in '' $ac_executable_extensions; do
6578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584   done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6590 if test -n "$ac_ct_DSYMUTIL"; then
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6592 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6593 else
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598   if test "x$ac_ct_DSYMUTIL" = x; then
6599     DSYMUTIL=":"
6600   else
6601     case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607     DSYMUTIL=$ac_ct_DSYMUTIL
6608   fi
6609 else
6610   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6611 fi
6612
6613     if test -n "$ac_tool_prefix"; then
6614   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   if test -n "$NMEDIT"; then
6622   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 NMEDIT=$ac_cv_prog_NMEDIT
6642 if test -n "$NMEDIT"; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6644 $as_echo "$NMEDIT" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650
6651 fi
6652 if test -z "$ac_cv_prog_NMEDIT"; then
6653   ac_ct_NMEDIT=$NMEDIT
6654   # Extract the first word of "nmedit", so it can be a program name with args.
6655 set dummy nmedit; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$ac_ct_NMEDIT"; then
6662   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6682 if test -n "$ac_ct_NMEDIT"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6684 $as_echo "$ac_ct_NMEDIT" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690   if test "x$ac_ct_NMEDIT" = x; then
6691     NMEDIT=":"
6692   else
6693     case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699     NMEDIT=$ac_ct_NMEDIT
6700   fi
6701 else
6702   NMEDIT="$ac_cv_prog_NMEDIT"
6703 fi
6704
6705     if test -n "$ac_tool_prefix"; then
6706   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if test "${ac_cv_prog_LIPO+set}" = set; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$LIPO"; then
6714   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 LIPO=$ac_cv_prog_LIPO
6734 if test -n "$LIPO"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6736 $as_echo "$LIPO" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_LIPO"; then
6745   ac_ct_LIPO=$LIPO
6746   # Extract the first word of "lipo", so it can be a program name with args.
6747 set dummy lipo; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$ac_ct_LIPO"; then
6754   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763     ac_cv_prog_ac_ct_LIPO="lipo"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6774 if test -n "$ac_ct_LIPO"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6776 $as_echo "$ac_ct_LIPO" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782   if test "x$ac_ct_LIPO" = x; then
6783     LIPO=":"
6784   else
6785     case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6790 esac
6791     LIPO=$ac_ct_LIPO
6792   fi
6793 else
6794   LIPO="$ac_cv_prog_LIPO"
6795 fi
6796
6797     if test -n "$ac_tool_prefix"; then
6798   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}otool; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$OTOOL"; then
6806   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 OTOOL=$ac_cv_prog_OTOOL
6826 if test -n "$OTOOL"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6828 $as_echo "$OTOOL" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_OTOOL"; then
6837   ac_ct_OTOOL=$OTOOL
6838   # Extract the first word of "otool", so it can be a program name with args.
6839 set dummy otool; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$ac_ct_OTOOL"; then
6846   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_prog_ac_ct_OTOOL="otool"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6866 if test -n "$ac_ct_OTOOL"; then
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6868 $as_echo "$ac_ct_OTOOL" >&6; }
6869 else
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874   if test "x$ac_ct_OTOOL" = x; then
6875     OTOOL=":"
6876   else
6877     case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883     OTOOL=$ac_ct_OTOOL
6884   fi
6885 else
6886   OTOOL="$ac_cv_prog_OTOOL"
6887 fi
6888
6889     if test -n "$ac_tool_prefix"; then
6890   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   if test -n "$OTOOL64"; then
6898   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 OTOOL64=$ac_cv_prog_OTOOL64
6918 if test -n "$OTOOL64"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6920 $as_echo "$OTOOL64" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926
6927 fi
6928 if test -z "$ac_cv_prog_OTOOL64"; then
6929   ac_ct_OTOOL64=$OTOOL64
6930   # Extract the first word of "otool64", so it can be a program name with args.
6931 set dummy otool64; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   if test -n "$ac_ct_OTOOL64"; then
6938   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947     ac_cv_prog_ac_ct_OTOOL64="otool64"
6948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952   done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6958 if test -n "$ac_ct_OTOOL64"; then
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6960 $as_echo "$ac_ct_OTOOL64" >&6; }
6961 else
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966   if test "x$ac_ct_OTOOL64" = x; then
6967     OTOOL64=":"
6968   else
6969     case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975     OTOOL64=$ac_ct_OTOOL64
6976   fi
6977 else
6978   OTOOL64="$ac_cv_prog_OTOOL64"
6979 fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7008 $as_echo_n "checking for -single_module linker flag... " >&6; }
7009 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   lt_cv_apple_cc_single_mod=no
7013       if test -z "${LT_MULTI_MODULE}"; then
7014         # By default we will add the -single_module flag. You can override
7015         # by either setting the environment variable LT_MULTI_MODULE
7016         # non-empty at configure time, or by adding -multi_module to the
7017         # link flags.
7018         rm -rf libconftest.dylib*
7019         echo "int foo(void){return 1;}" > conftest.c
7020         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7021 -dynamiclib -Wl,-single_module conftest.c" >&5
7022         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7023           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7024         _lt_result=$?
7025         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7026           lt_cv_apple_cc_single_mod=yes
7027         else
7028           cat conftest.err >&5
7029         fi
7030         rm -rf libconftest.dylib*
7031         rm -f conftest.*
7032       fi
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7035 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7037 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7038 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   lt_cv_ld_exported_symbols_list=no
7042       save_LDFLAGS=$LDFLAGS
7043       echo "_main" > conftest.sym
7044       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7045       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h.  */
7047
7048 int
7049 main ()
7050 {
7051
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057   lt_cv_ld_exported_symbols_list=yes
7058 else
7059   lt_cv_ld_exported_symbols_list=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext \
7062     conftest$ac_exeext conftest.$ac_ext
7063         LDFLAGS="$save_LDFLAGS"
7064
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7067 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7068     case $host_os in
7069     rhapsody* | darwin1.[012])
7070       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7071     darwin1.*)
7072       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7073     darwin*) # darwin 5.x on
7074       # if running on 10.5 or later, the deployment target defaults
7075       # to the OS version, if on x86, and 10.4, the deployment
7076       # target defaults to 10.4. Don't you love it?
7077       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7078         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7079           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7080         10.[012]*)
7081           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7082         10.*)
7083           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7084       esac
7085     ;;
7086   esac
7087     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7088       _lt_dar_single_mod='$single_module'
7089     fi
7090     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7091       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7092     else
7093       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7094     fi
7095     if test "$DSYMUTIL" != ":"; then
7096       _lt_dsymutil='~$DSYMUTIL $lib || :'
7097     else
7098       _lt_dsymutil=
7099     fi
7100     ;;
7101   esac
7102
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7105 $as_echo_n "checking for ANSI C header files... " >&6; }
7106 if test "${ac_cv_header_stdc+set}" = set; then :
7107   $as_echo_n "(cached) " >&6
7108 else
7109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h.  */
7111 #include <stdlib.h>
7112 #include <stdarg.h>
7113 #include <string.h>
7114 #include <float.h>
7115
7116 int
7117 main ()
7118 {
7119
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125   ac_cv_header_stdc=yes
7126 else
7127   ac_cv_header_stdc=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130
7131 if test $ac_cv_header_stdc = yes; then
7132   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h.  */
7135 #include <string.h>
7136
7137 _ACEOF
7138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7139   $EGREP "memchr" >/dev/null 2>&1; then :
7140
7141 else
7142   ac_cv_header_stdc=no
7143 fi
7144 rm -f conftest*
7145
7146 fi
7147
7148 if test $ac_cv_header_stdc = yes; then
7149   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h.  */
7152 #include <stdlib.h>
7153
7154 _ACEOF
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156   $EGREP "free" >/dev/null 2>&1; then :
7157
7158 else
7159   ac_cv_header_stdc=no
7160 fi
7161 rm -f conftest*
7162
7163 fi
7164
7165 if test $ac_cv_header_stdc = yes; then
7166   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7167   if test "$cross_compiling" = yes; then :
7168   :
7169 else
7170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h.  */
7172 #include <ctype.h>
7173 #include <stdlib.h>
7174 #if ((' ' & 0x0FF) == 0x020)
7175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7177 #else
7178 # define ISLOWER(c) \
7179                    (('a' <= (c) && (c) <= 'i') \
7180                      || ('j' <= (c) && (c) <= 'r') \
7181                      || ('s' <= (c) && (c) <= 'z'))
7182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7183 #endif
7184
7185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7186 int
7187 main ()
7188 {
7189   int i;
7190   for (i = 0; i < 256; i++)
7191     if (XOR (islower (i), ISLOWER (i))
7192         || toupper (i) != TOUPPER (i))
7193       return 2;
7194   return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_run "$LINENO"; then :
7198
7199 else
7200   ac_cv_header_stdc=no
7201 fi
7202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7203   conftest.$ac_objext conftest.beam conftest.$ac_ext
7204 fi
7205
7206 fi
7207 fi
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7209 $as_echo "$ac_cv_header_stdc" >&6; }
7210 if test $ac_cv_header_stdc = yes; then
7211
7212 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7213
7214 fi
7215
7216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7218                   inttypes.h stdint.h unistd.h
7219 do :
7220   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7222 "
7223 eval as_val=\$$as_ac_Header
7224    if test "x$as_val" = x""yes; then :
7225   cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230
7231 done
7232
7233
7234 for ac_header in dlfcn.h
7235 do :
7236   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7237 "
7238 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7239   cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DLFCN_H 1
7241 _ACEOF
7242
7243 fi
7244
7245 done
7246
7247
7248
7249 # Set options
7250
7251
7252
7253         enable_dlopen=no
7254
7255
7256
7257             # Check whether --enable-shared was given.
7258 if test "${enable_shared+set}" = set; then :
7259   enableval=$enable_shared; p=${PACKAGE-default}
7260     case $enableval in
7261     yes) enable_shared=yes ;;
7262     no) enable_shared=no ;;
7263     *)
7264       enable_shared=no
7265       # Look at the argument we got.  We use all the common list separators.
7266       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7267       for pkg in $enableval; do
7268         IFS="$lt_save_ifs"
7269         if test "X$pkg" = "X$p"; then
7270           enable_shared=yes
7271         fi
7272       done
7273       IFS="$lt_save_ifs"
7274       ;;
7275     esac
7276 else
7277   enable_shared=yes
7278 fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288   # Check whether --enable-static was given.
7289 if test "${enable_static+set}" = set; then :
7290   enableval=$enable_static; p=${PACKAGE-default}
7291     case $enableval in
7292     yes) enable_static=yes ;;
7293     no) enable_static=no ;;
7294     *)
7295      enable_static=no
7296       # Look at the argument we got.  We use all the common list separators.
7297       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7298       for pkg in $enableval; do
7299         IFS="$lt_save_ifs"
7300         if test "X$pkg" = "X$p"; then
7301           enable_static=yes
7302         fi
7303       done
7304       IFS="$lt_save_ifs"
7305       ;;
7306     esac
7307 else
7308   enable_static=yes
7309 fi
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 # Check whether --with-pic was given.
7321 if test "${with_pic+set}" = set; then :
7322   withval=$with_pic; pic_mode="$withval"
7323 else
7324   pic_mode=default
7325 fi
7326
7327
7328 test -z "$pic_mode" && pic_mode=default
7329
7330
7331
7332
7333
7334
7335
7336   # Check whether --enable-fast-install was given.
7337 if test "${enable_fast_install+set}" = set; then :
7338   enableval=$enable_fast_install; p=${PACKAGE-default}
7339     case $enableval in
7340     yes) enable_fast_install=yes ;;
7341     no) enable_fast_install=no ;;
7342     *)
7343       enable_fast_install=no
7344       # Look at the argument we got.  We use all the common list separators.
7345       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346       for pkg in $enableval; do
7347         IFS="$lt_save_ifs"
7348         if test "X$pkg" = "X$p"; then
7349           enable_fast_install=yes
7350         fi
7351       done
7352       IFS="$lt_save_ifs"
7353       ;;
7354     esac
7355 else
7356   enable_fast_install=yes
7357 fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 # This can be used to rebuild libtool when needed
7370 LIBTOOL_DEPS="$ltmain"
7371
7372 # Always use our own libtool.
7373 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 test -z "$LN_S" && LN_S="ln -s"
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 if test -n "${ZSH_VERSION+set}" ; then
7415    setopt NO_GLOB_SUBST
7416 fi
7417
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7419 $as_echo_n "checking for objdir... " >&6; }
7420 if test "${lt_cv_objdir+set}" = set; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   rm -f .libs 2>/dev/null
7424 mkdir .libs 2>/dev/null
7425 if test -d .libs; then
7426   lt_cv_objdir=.libs
7427 else
7428   # MS-DOS does not allow filenames that begin with a dot.
7429   lt_cv_objdir=_libs
7430 fi
7431 rmdir .libs 2>/dev/null
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7434 $as_echo "$lt_cv_objdir" >&6; }
7435 objdir=$lt_cv_objdir
7436
7437
7438
7439
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define LT_OBJDIR "$lt_cv_objdir/"
7443 _ACEOF
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461 case $host_os in
7462 aix3*)
7463   # AIX sometimes has problems with the GCC collect2 program.  For some
7464   # reason, if we set the COLLECT_NAMES environment variable, the problems
7465   # vanish in a puff of smoke.
7466   if test "X${COLLECT_NAMES+set}" != Xset; then
7467     COLLECT_NAMES=
7468     export COLLECT_NAMES
7469   fi
7470   ;;
7471 esac
7472
7473 # Sed substitution that helps us do robust quoting.  It backslashifies
7474 # metacharacters that are still active within double-quoted strings.
7475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7476
7477 # Same as above, but do not quote variable references.
7478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7479
7480 # Sed substitution to delay expansion of an escaped shell variable in a
7481 # double_quote_subst'ed string.
7482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7483
7484 # Sed substitution to delay expansion of an escaped single quote.
7485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7486
7487 # Sed substitution to avoid accidental globbing in evaled expressions
7488 no_glob_subst='s/\*/\\\*/g'
7489
7490 # Global variables:
7491 ofile=libtool
7492 can_build_shared=yes
7493
7494 # All known linkers require a `.a' archive for static linking (except MSVC,
7495 # which needs '.lib').
7496 libext=a
7497
7498 with_gnu_ld="$lt_cv_prog_gnu_ld"
7499
7500 old_CC="$CC"
7501 old_CFLAGS="$CFLAGS"
7502
7503 # Set sane defaults for various variables
7504 test -z "$CC" && CC=cc
7505 test -z "$LTCC" && LTCC=$CC
7506 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7507 test -z "$LD" && LD=ld
7508 test -z "$ac_objext" && ac_objext=o
7509
7510 for cc_temp in $compiler""; do
7511   case $cc_temp in
7512     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7513     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7514     \-*) ;;
7515     *) break;;
7516   esac
7517 done
7518 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7519
7520
7521 # Only perform the check for file, if the check method requires it
7522 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7523 case $deplibs_check_method in
7524 file_magic*)
7525   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7527 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7528 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   case $MAGIC_CMD in
7532 [\\/*] |  ?:[\\/]*)
7533   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7534   ;;
7535 *)
7536   lt_save_MAGIC_CMD="$MAGIC_CMD"
7537   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7538   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7539   for ac_dir in $ac_dummy; do
7540     IFS="$lt_save_ifs"
7541     test -z "$ac_dir" && ac_dir=.
7542     if test -f $ac_dir/${ac_tool_prefix}file; then
7543       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7544       if test -n "$file_magic_test_file"; then
7545         case $deplibs_check_method in
7546         "file_magic "*)
7547           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7548           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7549           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7550             $EGREP "$file_magic_regex" > /dev/null; then
7551             :
7552           else
7553             cat <<_LT_EOF 1>&2
7554
7555 *** Warning: the command libtool uses to detect shared libraries,
7556 *** $file_magic_cmd, produces output that libtool cannot recognize.
7557 *** The result is that libtool may fail to recognize shared libraries
7558 *** as such.  This will affect the creation of libtool libraries that
7559 *** depend on shared libraries, but programs linked with such libtool
7560 *** libraries will work regardless of this problem.  Nevertheless, you
7561 *** may want to report the problem to your system manager and/or to
7562 *** bug-libtool@gnu.org
7563
7564 _LT_EOF
7565           fi ;;
7566         esac
7567       fi
7568       break
7569     fi
7570   done
7571   IFS="$lt_save_ifs"
7572   MAGIC_CMD="$lt_save_MAGIC_CMD"
7573   ;;
7574 esac
7575 fi
7576
7577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7578 if test -n "$MAGIC_CMD"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7580 $as_echo "$MAGIC_CMD" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586
7587
7588
7589
7590 if test -z "$lt_cv_path_MAGIC_CMD"; then
7591   if test -n "$ac_tool_prefix"; then
7592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7593 $as_echo_n "checking for file... " >&6; }
7594 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   case $MAGIC_CMD in
7598 [\\/*] |  ?:[\\/]*)
7599   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7600   ;;
7601 *)
7602   lt_save_MAGIC_CMD="$MAGIC_CMD"
7603   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7604   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7605   for ac_dir in $ac_dummy; do
7606     IFS="$lt_save_ifs"
7607     test -z "$ac_dir" && ac_dir=.
7608     if test -f $ac_dir/file; then
7609       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7610       if test -n "$file_magic_test_file"; then
7611         case $deplibs_check_method in
7612         "file_magic "*)
7613           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7614           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7615           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7616             $EGREP "$file_magic_regex" > /dev/null; then
7617             :
7618           else
7619             cat <<_LT_EOF 1>&2
7620
7621 *** Warning: the command libtool uses to detect shared libraries,
7622 *** $file_magic_cmd, produces output that libtool cannot recognize.
7623 *** The result is that libtool may fail to recognize shared libraries
7624 *** as such.  This will affect the creation of libtool libraries that
7625 *** depend on shared libraries, but programs linked with such libtool
7626 *** libraries will work regardless of this problem.  Nevertheless, you
7627 *** may want to report the problem to your system manager and/or to
7628 *** bug-libtool@gnu.org
7629
7630 _LT_EOF
7631           fi ;;
7632         esac
7633       fi
7634       break
7635     fi
7636   done
7637   IFS="$lt_save_ifs"
7638   MAGIC_CMD="$lt_save_MAGIC_CMD"
7639   ;;
7640 esac
7641 fi
7642
7643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7644 if test -n "$MAGIC_CMD"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7646 $as_echo "$MAGIC_CMD" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653   else
7654     MAGIC_CMD=:
7655   fi
7656 fi
7657
7658   fi
7659   ;;
7660 esac
7661
7662 # Use C for the default configuration in the libtool script
7663
7664 lt_save_CC="$CC"
7665 ac_ext=c
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671
7672 # Source file extension for C test sources.
7673 ac_ext=c
7674
7675 # Object file extension for compiled C test sources.
7676 objext=o
7677 objext=$objext
7678
7679 # Code to be used in simple compile tests
7680 lt_simple_compile_test_code="int some_variable = 0;"
7681
7682 # Code to be used in simple link tests
7683 lt_simple_link_test_code='int main(){return(0);}'
7684
7685
7686
7687
7688
7689
7690
7691 # If no C compiler was specified, use CC.
7692 LTCC=${LTCC-"$CC"}
7693
7694 # If no C compiler flags were specified, use CFLAGS.
7695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7696
7697 # Allow CC to be a program name with arguments.
7698 compiler=$CC
7699
7700 # Save the default compiler, since it gets overwritten when the other
7701 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7702 compiler_DEFAULT=$CC
7703
7704 # save warnings/boilerplate of simple test code
7705 ac_outfile=conftest.$ac_objext
7706 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7708 _lt_compiler_boilerplate=`cat conftest.err`
7709 $RM conftest*
7710
7711 ac_outfile=conftest.$ac_objext
7712 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7714 _lt_linker_boilerplate=`cat conftest.err`
7715 $RM -r conftest*
7716
7717
7718 if test -n "$compiler"; then
7719
7720 lt_prog_compiler_no_builtin_flag=
7721
7722 if test "$GCC" = yes; then
7723   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7724
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7726 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7727 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7728   $as_echo_n "(cached) " >&6
7729 else
7730   lt_cv_prog_compiler_rtti_exceptions=no
7731    ac_outfile=conftest.$ac_objext
7732    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7733    lt_compiler_flag="-fno-rtti -fno-exceptions"
7734    # Insert the option either (1) after the last *FLAGS variable, or
7735    # (2) before a word containing "conftest.", or (3) at the end.
7736    # Note that $ac_compile itself does not contain backslashes and begins
7737    # with a dollar sign (not a hyphen), so the echo should work correctly.
7738    # The option is referenced via a variable to avoid confusing sed.
7739    lt_compile=`echo "$ac_compile" | $SED \
7740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742    -e 's:$: $lt_compiler_flag:'`
7743    (eval echo "\"\$as_me:7743: $lt_compile\"" >&5)
7744    (eval "$lt_compile" 2>conftest.err)
7745    ac_status=$?
7746    cat conftest.err >&5
7747    echo "$as_me:7747: \$? = $ac_status" >&5
7748    if (exit $ac_status) && test -s "$ac_outfile"; then
7749      # The compiler can only warn and ignore the option if not recognized
7750      # So say no if there are warnings other than the usual output.
7751      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7752      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7753      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7754        lt_cv_prog_compiler_rtti_exceptions=yes
7755      fi
7756    fi
7757    $RM conftest*
7758
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7761 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7762
7763 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7764     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7765 else
7766     :
7767 fi
7768
7769 fi
7770
7771
7772
7773
7774
7775
7776   lt_prog_compiler_wl=
7777 lt_prog_compiler_pic=
7778 lt_prog_compiler_static=
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7781 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7782
7783   if test "$GCC" = yes; then
7784     lt_prog_compiler_wl='-Wl,'
7785     lt_prog_compiler_static='-static'
7786
7787     case $host_os in
7788       aix*)
7789       # All AIX code is PIC.
7790       if test "$host_cpu" = ia64; then
7791         # AIX 5 now supports IA64 processor
7792         lt_prog_compiler_static='-Bstatic'
7793       fi
7794       ;;
7795
7796     amigaos*)
7797       case $host_cpu in
7798       powerpc)
7799             # see comment about AmigaOS4 .so support
7800             lt_prog_compiler_pic='-fPIC'
7801         ;;
7802       m68k)
7803             # FIXME: we need at least 68020 code to build shared libraries, but
7804             # adding the `-m68020' flag to GCC prevents building anything better,
7805             # like `-m68040'.
7806             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7807         ;;
7808       esac
7809       ;;
7810
7811     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7812       # PIC is the default for these OSes.
7813       ;;
7814
7815     mingw* | cygwin* | pw32* | os2* | cegcc*)
7816       # This hack is so that the source file can tell whether it is being
7817       # built for inclusion in a dll (and should export symbols for example).
7818       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7819       # (--disable-auto-import) libraries
7820       lt_prog_compiler_pic='-DDLL_EXPORT'
7821       ;;
7822
7823     darwin* | rhapsody*)
7824       # PIC is the default on this platform
7825       # Common symbols not allowed in MH_DYLIB files
7826       lt_prog_compiler_pic='-fno-common'
7827       ;;
7828
7829     hpux*)
7830       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7831       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7832       # sets the default TLS model and affects inlining.
7833       case $host_cpu in
7834       hppa*64*)
7835         # +Z the default
7836         ;;
7837       *)
7838         lt_prog_compiler_pic='-fPIC'
7839         ;;
7840       esac
7841       ;;
7842
7843     interix[3-9]*)
7844       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7845       # Instead, we relocate shared libraries at runtime.
7846       ;;
7847
7848     msdosdjgpp*)
7849       # Just because we use GCC doesn't mean we suddenly get shared libraries
7850       # on systems that don't support them.
7851       lt_prog_compiler_can_build_shared=no
7852       enable_shared=no
7853       ;;
7854
7855     *nto* | *qnx*)
7856       # QNX uses GNU C++, but need to define -shared option too, otherwise
7857       # it will coredump.
7858       lt_prog_compiler_pic='-fPIC -shared'
7859       ;;
7860
7861     sysv4*MP*)
7862       if test -d /usr/nec; then
7863         lt_prog_compiler_pic=-Kconform_pic
7864       fi
7865       ;;
7866
7867     *)
7868       lt_prog_compiler_pic='-fPIC'
7869       ;;
7870     esac
7871   else
7872     # PORTME Check for flag to pass linker flags through the system compiler.
7873     case $host_os in
7874     aix*)
7875       lt_prog_compiler_wl='-Wl,'
7876       if test "$host_cpu" = ia64; then
7877         # AIX 5 now supports IA64 processor
7878         lt_prog_compiler_static='-Bstatic'
7879       else
7880         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7881       fi
7882       ;;
7883
7884     mingw* | cygwin* | pw32* | os2* | cegcc*)
7885       # This hack is so that the source file can tell whether it is being
7886       # built for inclusion in a dll (and should export symbols for example).
7887       lt_prog_compiler_pic='-DDLL_EXPORT'
7888       ;;
7889
7890     hpux9* | hpux10* | hpux11*)
7891       lt_prog_compiler_wl='-Wl,'
7892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7893       # not for PA HP-UX.
7894       case $host_cpu in
7895       hppa*64*|ia64*)
7896         # +Z the default
7897         ;;
7898       *)
7899         lt_prog_compiler_pic='+Z'
7900         ;;
7901       esac
7902       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7903       lt_prog_compiler_static='${wl}-a ${wl}archive'
7904       ;;
7905
7906     irix5* | irix6* | nonstopux*)
7907       lt_prog_compiler_wl='-Wl,'
7908       # PIC (with -KPIC) is the default.
7909       lt_prog_compiler_static='-non_shared'
7910       ;;
7911
7912     linux* | k*bsd*-gnu)
7913       case $cc_basename in
7914       # old Intel for x86_64 which still supported -KPIC.
7915       ecc*)
7916         lt_prog_compiler_wl='-Wl,'
7917         lt_prog_compiler_pic='-KPIC'
7918         lt_prog_compiler_static='-static'
7919         ;;
7920       # icc used to be incompatible with GCC.
7921       # ICC 10 doesn't accept -KPIC any more.
7922       icc* | ifort*)
7923         lt_prog_compiler_wl='-Wl,'
7924         lt_prog_compiler_pic='-fPIC'
7925         lt_prog_compiler_static='-static'
7926         ;;
7927       # Lahey Fortran 8.1.
7928       lf95*)
7929         lt_prog_compiler_wl='-Wl,'
7930         lt_prog_compiler_pic='--shared'
7931         lt_prog_compiler_static='--static'
7932         ;;
7933       pgcc* | pgf77* | pgf90* | pgf95*)
7934         # Portland Group compilers (*not* the Pentium gcc compiler,
7935         # which looks to be a dead project)
7936         lt_prog_compiler_wl='-Wl,'
7937         lt_prog_compiler_pic='-fpic'
7938         lt_prog_compiler_static='-Bstatic'
7939         ;;
7940       ccc*)
7941         lt_prog_compiler_wl='-Wl,'
7942         # All Alpha code is PIC.
7943         lt_prog_compiler_static='-non_shared'
7944         ;;
7945       xl*)
7946         # IBM XL C 8.0/Fortran 10.1 on PPC
7947         lt_prog_compiler_wl='-Wl,'
7948         lt_prog_compiler_pic='-qpic'
7949         lt_prog_compiler_static='-qstaticlink'
7950         ;;
7951       *)
7952         case `$CC -V 2>&1 | sed 5q` in
7953         *Sun\ C*)
7954           # Sun C 5.9
7955           lt_prog_compiler_pic='-KPIC'
7956           lt_prog_compiler_static='-Bstatic'
7957           lt_prog_compiler_wl='-Wl,'
7958           ;;
7959         *Sun\ F*)
7960           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7961           lt_prog_compiler_pic='-KPIC'
7962           lt_prog_compiler_static='-Bstatic'
7963           lt_prog_compiler_wl=''
7964           ;;
7965         esac
7966         ;;
7967       esac
7968       ;;
7969
7970     newsos6)
7971       lt_prog_compiler_pic='-KPIC'
7972       lt_prog_compiler_static='-Bstatic'
7973       ;;
7974
7975     *nto* | *qnx*)
7976       # QNX uses GNU C++, but need to define -shared option too, otherwise
7977       # it will coredump.
7978       lt_prog_compiler_pic='-fPIC -shared'
7979       ;;
7980
7981     osf3* | osf4* | osf5*)
7982       lt_prog_compiler_wl='-Wl,'
7983       # All OSF/1 code is PIC.
7984       lt_prog_compiler_static='-non_shared'
7985       ;;
7986
7987     rdos*)
7988       lt_prog_compiler_static='-non_shared'
7989       ;;
7990
7991     solaris*)
7992       lt_prog_compiler_pic='-KPIC'
7993       lt_prog_compiler_static='-Bstatic'
7994       case $cc_basename in
7995       f77* | f90* | f95*)
7996         lt_prog_compiler_wl='-Qoption ld ';;
7997       *)
7998         lt_prog_compiler_wl='-Wl,';;
7999       esac
8000       ;;
8001
8002     sunos4*)
8003       lt_prog_compiler_wl='-Qoption ld '
8004       lt_prog_compiler_pic='-PIC'
8005       lt_prog_compiler_static='-Bstatic'
8006       ;;
8007
8008     sysv4 | sysv4.2uw2* | sysv4.3*)
8009       lt_prog_compiler_wl='-Wl,'
8010       lt_prog_compiler_pic='-KPIC'
8011       lt_prog_compiler_static='-Bstatic'
8012       ;;
8013
8014     sysv4*MP*)
8015       if test -d /usr/nec ;then
8016         lt_prog_compiler_pic='-Kconform_pic'
8017         lt_prog_compiler_static='-Bstatic'
8018       fi
8019       ;;
8020
8021     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8022       lt_prog_compiler_wl='-Wl,'
8023       lt_prog_compiler_pic='-KPIC'
8024       lt_prog_compiler_static='-Bstatic'
8025       ;;
8026
8027     unicos*)
8028       lt_prog_compiler_wl='-Wl,'
8029       lt_prog_compiler_can_build_shared=no
8030       ;;
8031
8032     uts4*)
8033       lt_prog_compiler_pic='-pic'
8034       lt_prog_compiler_static='-Bstatic'
8035       ;;
8036
8037     *)
8038       lt_prog_compiler_can_build_shared=no
8039       ;;
8040     esac
8041   fi
8042
8043 case $host_os in
8044   # For platforms which do not support PIC, -DPIC is meaningless:
8045   *djgpp*)
8046     lt_prog_compiler_pic=
8047     ;;
8048   *)
8049     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8050     ;;
8051 esac
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8053 $as_echo "$lt_prog_compiler_pic" >&6; }
8054
8055
8056
8057
8058
8059
8060 #
8061 # Check to make sure the PIC flag actually works.
8062 #
8063 if test -n "$lt_prog_compiler_pic"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8065 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8066 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8067   $as_echo_n "(cached) " >&6
8068 else
8069   lt_cv_prog_compiler_pic_works=no
8070    ac_outfile=conftest.$ac_objext
8071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8073    # Insert the option either (1) after the last *FLAGS variable, or
8074    # (2) before a word containing "conftest.", or (3) at the end.
8075    # Note that $ac_compile itself does not contain backslashes and begins
8076    # with a dollar sign (not a hyphen), so the echo should work correctly.
8077    # The option is referenced via a variable to avoid confusing sed.
8078    lt_compile=`echo "$ac_compile" | $SED \
8079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081    -e 's:$: $lt_compiler_flag:'`
8082    (eval echo "\"\$as_me:8082: $lt_compile\"" >&5)
8083    (eval "$lt_compile" 2>conftest.err)
8084    ac_status=$?
8085    cat conftest.err >&5
8086    echo "$as_me:8086: \$? = $ac_status" >&5
8087    if (exit $ac_status) && test -s "$ac_outfile"; then
8088      # The compiler can only warn and ignore the option if not recognized
8089      # So say no if there are warnings other than the usual output.
8090      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8091      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8092      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8093        lt_cv_prog_compiler_pic_works=yes
8094      fi
8095    fi
8096    $RM conftest*
8097
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8100 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8101
8102 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8103     case $lt_prog_compiler_pic in
8104      "" | " "*) ;;
8105      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8106      esac
8107 else
8108     lt_prog_compiler_pic=
8109      lt_prog_compiler_can_build_shared=no
8110 fi
8111
8112 fi
8113
8114
8115
8116
8117
8118
8119 #
8120 # Check to make sure the static flag actually works.
8121 #
8122 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8124 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8125 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   lt_cv_prog_compiler_static_works=no
8129    save_LDFLAGS="$LDFLAGS"
8130    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8131    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8132    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8133      # The linker can only warn and ignore the option if not recognized
8134      # So say no if there are warnings
8135      if test -s conftest.err; then
8136        # Append any errors to the config.log.
8137        cat conftest.err 1>&5
8138        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8139        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8140        if diff conftest.exp conftest.er2 >/dev/null; then
8141          lt_cv_prog_compiler_static_works=yes
8142        fi
8143      else
8144        lt_cv_prog_compiler_static_works=yes
8145      fi
8146    fi
8147    $RM -r conftest*
8148    LDFLAGS="$save_LDFLAGS"
8149
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8152 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8153
8154 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8155     :
8156 else
8157     lt_prog_compiler_static=
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8168 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   lt_cv_prog_compiler_c_o=no
8172    $RM -r conftest 2>/dev/null
8173    mkdir conftest
8174    cd conftest
8175    mkdir out
8176    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8177
8178    lt_compiler_flag="-o out/conftest2.$ac_objext"
8179    # Insert the option either (1) after the last *FLAGS variable, or
8180    # (2) before a word containing "conftest.", or (3) at the end.
8181    # Note that $ac_compile itself does not contain backslashes and begins
8182    # with a dollar sign (not a hyphen), so the echo should work correctly.
8183    lt_compile=`echo "$ac_compile" | $SED \
8184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8186    -e 's:$: $lt_compiler_flag:'`
8187    (eval echo "\"\$as_me:8187: $lt_compile\"" >&5)
8188    (eval "$lt_compile" 2>out/conftest.err)
8189    ac_status=$?
8190    cat out/conftest.err >&5
8191    echo "$as_me:8191: \$? = $ac_status" >&5
8192    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8193    then
8194      # The compiler can only warn and ignore the option if not recognized
8195      # So say no if there are warnings
8196      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8197      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8198      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8199        lt_cv_prog_compiler_c_o=yes
8200      fi
8201    fi
8202    chmod u+w . 2>&5
8203    $RM conftest*
8204    # SGI C++ compiler will create directory out/ii_files/ for
8205    # template instantiation
8206    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8207    $RM out/* && rmdir out
8208    cd ..
8209    $RM -r conftest
8210    $RM conftest*
8211
8212 fi
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8214 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8215
8216
8217
8218
8219
8220
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8223 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   lt_cv_prog_compiler_c_o=no
8227    $RM -r conftest 2>/dev/null
8228    mkdir conftest
8229    cd conftest
8230    mkdir out
8231    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232
8233    lt_compiler_flag="-o out/conftest2.$ac_objext"
8234    # Insert the option either (1) after the last *FLAGS variable, or
8235    # (2) before a word containing "conftest.", or (3) at the end.
8236    # Note that $ac_compile itself does not contain backslashes and begins
8237    # with a dollar sign (not a hyphen), so the echo should work correctly.
8238    lt_compile=`echo "$ac_compile" | $SED \
8239    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241    -e 's:$: $lt_compiler_flag:'`
8242    (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243    (eval "$lt_compile" 2>out/conftest.err)
8244    ac_status=$?
8245    cat out/conftest.err >&5
8246    echo "$as_me:8246: \$? = $ac_status" >&5
8247    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8248    then
8249      # The compiler can only warn and ignore the option if not recognized
8250      # So say no if there are warnings
8251      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8252      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254        lt_cv_prog_compiler_c_o=yes
8255      fi
8256    fi
8257    chmod u+w . 2>&5
8258    $RM conftest*
8259    # SGI C++ compiler will create directory out/ii_files/ for
8260    # template instantiation
8261    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262    $RM out/* && rmdir out
8263    cd ..
8264    $RM -r conftest
8265    $RM conftest*
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8269 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8270
8271
8272
8273
8274 hard_links="nottested"
8275 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8276   # do not overwrite the value of need_locks provided by the user
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8278 $as_echo_n "checking if we can lock with hard links... " >&6; }
8279   hard_links=yes
8280   $RM conftest*
8281   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8282   touch conftest.a
8283   ln conftest.a conftest.b 2>&5 || hard_links=no
8284   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8286 $as_echo "$hard_links" >&6; }
8287   if test "$hard_links" = no; then
8288     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8289 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8290     need_locks=warn
8291   fi
8292 else
8293   need_locks=no
8294 fi
8295
8296
8297
8298
8299
8300
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8302 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8303
8304   runpath_var=
8305   allow_undefined_flag=
8306   always_export_symbols=no
8307   archive_cmds=
8308   archive_expsym_cmds=
8309   compiler_needs_object=no
8310   enable_shared_with_static_runtimes=no
8311   export_dynamic_flag_spec=
8312   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8313   hardcode_automatic=no
8314   hardcode_direct=no
8315   hardcode_direct_absolute=no
8316   hardcode_libdir_flag_spec=
8317   hardcode_libdir_flag_spec_ld=
8318   hardcode_libdir_separator=
8319   hardcode_minus_L=no
8320   hardcode_shlibpath_var=unsupported
8321   inherit_rpath=no
8322   link_all_deplibs=unknown
8323   module_cmds=
8324   module_expsym_cmds=
8325   old_archive_from_new_cmds=
8326   old_archive_from_expsyms_cmds=
8327   thread_safe_flag_spec=
8328   whole_archive_flag_spec=
8329   # include_expsyms should be a list of space-separated symbols to be *always*
8330   # included in the symbol list
8331   include_expsyms=
8332   # exclude_expsyms can be an extended regexp of symbols to exclude
8333   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8334   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8335   # as well as any symbol that contains `d'.
8336   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8337   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8338   # platforms (ab)use it in PIC code, but their linkers get confused if
8339   # the symbol is explicitly referenced.  Since portable code cannot
8340   # rely on this symbol name, it's probably fine to never include it in
8341   # preloaded symbol tables.
8342   # Exclude shared library initialization/finalization symbols.
8343   extract_expsyms_cmds=
8344
8345   case $host_os in
8346   cygwin* | mingw* | pw32* | cegcc*)
8347     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8348     # When not using gcc, we currently assume that we are using
8349     # Microsoft Visual C++.
8350     if test "$GCC" != yes; then
8351       with_gnu_ld=no
8352     fi
8353     ;;
8354   interix*)
8355     # we just hope/assume this is gcc and not c89 (= MSVC++)
8356     with_gnu_ld=yes
8357     ;;
8358   openbsd*)
8359     with_gnu_ld=no
8360     ;;
8361   esac
8362
8363   ld_shlibs=yes
8364   if test "$with_gnu_ld" = yes; then
8365     # If archive_cmds runs LD, not CC, wlarc should be empty
8366     wlarc='${wl}'
8367
8368     # Set some defaults for GNU ld with shared library support. These
8369     # are reset later if shared libraries are not supported. Putting them
8370     # here allows them to be overridden if necessary.
8371     runpath_var=LD_RUN_PATH
8372     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373     export_dynamic_flag_spec='${wl}--export-dynamic'
8374     # ancient GNU ld didn't support --whole-archive et. al.
8375     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8376       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8377     else
8378       whole_archive_flag_spec=
8379     fi
8380     supports_anon_versioning=no
8381     case `$LD -v 2>&1` in
8382       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8383       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8384       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8385       *\ 2.11.*) ;; # other 2.11 versions
8386       *) supports_anon_versioning=yes ;;
8387     esac
8388
8389     # See if GNU ld supports shared libraries.
8390     case $host_os in
8391     aix[3-9]*)
8392       # On AIX/PPC, the GNU linker is very broken
8393       if test "$host_cpu" != ia64; then
8394         ld_shlibs=no
8395         cat <<_LT_EOF 1>&2
8396
8397 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8398 *** to be unable to reliably create shared libraries on AIX.
8399 *** Therefore, libtool is disabling shared libraries support.  If you
8400 *** really care for shared libraries, you may want to modify your PATH
8401 *** so that a non-GNU linker is found, and then restart.
8402
8403 _LT_EOF
8404       fi
8405       ;;
8406
8407     amigaos*)
8408       case $host_cpu in
8409       powerpc)
8410             # see comment about AmigaOS4 .so support
8411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8412             archive_expsym_cmds=''
8413         ;;
8414       m68k)
8415             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)'
8416             hardcode_libdir_flag_spec='-L$libdir'
8417             hardcode_minus_L=yes
8418         ;;
8419       esac
8420       ;;
8421
8422     beos*)
8423       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8424         allow_undefined_flag=unsupported
8425         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8426         # support --undefined.  This deserves some investigation.  FIXME
8427         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428       else
8429         ld_shlibs=no
8430       fi
8431       ;;
8432
8433     cygwin* | mingw* | pw32* | cegcc*)
8434       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8435       # as there is no search path for DLLs.
8436       hardcode_libdir_flag_spec='-L$libdir'
8437       allow_undefined_flag=unsupported
8438       always_export_symbols=no
8439       enable_shared_with_static_runtimes=yes
8440       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8441
8442       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8443         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8444         # If the export-symbols file already is a .def file (1st line
8445         # is EXPORTS), use it as is; otherwise, prepend...
8446         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8447           cp $export_symbols $output_objdir/$soname.def;
8448         else
8449           echo EXPORTS > $output_objdir/$soname.def;
8450           cat $export_symbols >> $output_objdir/$soname.def;
8451         fi~
8452         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453       else
8454         ld_shlibs=no
8455       fi
8456       ;;
8457
8458     interix[3-9]*)
8459       hardcode_direct=no
8460       hardcode_shlibpath_var=no
8461       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8462       export_dynamic_flag_spec='${wl}-E'
8463       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8464       # Instead, shared libraries are loaded at an image base (0x10000000 by
8465       # default) and relocated if they conflict, which is a slow very memory
8466       # consuming and fragmenting process.  To avoid this, we pick a random,
8467       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8468       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8469       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8470       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'
8471       ;;
8472
8473     gnu* | linux* | tpf* | k*bsd*-gnu)
8474       tmp_diet=no
8475       if test "$host_os" = linux-dietlibc; then
8476         case $cc_basename in
8477           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8478         esac
8479       fi
8480       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8481          && test "$tmp_diet" = no
8482       then
8483         tmp_addflag=
8484         tmp_sharedflag='-shared'
8485         case $cc_basename,$host_cpu in
8486         pgcc*)                          # Portland Group C compiler
8487           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'
8488           tmp_addflag=' $pic_flag'
8489           ;;
8490         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8491           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'
8492           tmp_addflag=' $pic_flag -Mnomain' ;;
8493         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8494           tmp_addflag=' -i_dynamic' ;;
8495         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8496           tmp_addflag=' -i_dynamic -nofor_main' ;;
8497         ifc* | ifort*)                  # Intel Fortran compiler
8498           tmp_addflag=' -nofor_main' ;;
8499         lf95*)                          # Lahey Fortran 8.1
8500           whole_archive_flag_spec=
8501           tmp_sharedflag='--shared' ;;
8502         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8503           tmp_sharedflag='-qmkshrobj'
8504           tmp_addflag= ;;
8505         esac
8506         case `$CC -V 2>&1 | sed 5q` in
8507         *Sun\ C*)                       # Sun C 5.9
8508           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'
8509           compiler_needs_object=yes
8510           tmp_sharedflag='-G' ;;
8511         *Sun\ F*)                       # Sun Fortran 8.3
8512           tmp_sharedflag='-G' ;;
8513         esac
8514         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8515
8516         if test "x$supports_anon_versioning" = xyes; then
8517           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8518             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8519             echo "local: *; };" >> $output_objdir/$libname.ver~
8520             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8521         fi
8522
8523         case $cc_basename in
8524         xlf*)
8525           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8526           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8527           hardcode_libdir_flag_spec=
8528           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8529           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8530           if test "x$supports_anon_versioning" = xyes; then
8531             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8532               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8533               echo "local: *; };" >> $output_objdir/$libname.ver~
8534               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8535           fi
8536           ;;
8537         esac
8538       else
8539         ld_shlibs=no
8540       fi
8541       ;;
8542
8543     netbsd*)
8544       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8545         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8546         wlarc=
8547       else
8548         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550       fi
8551       ;;
8552
8553     solaris*)
8554       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8555         ld_shlibs=no
8556         cat <<_LT_EOF 1>&2
8557
8558 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8559 *** create shared libraries on Solaris systems.  Therefore, libtool
8560 *** is disabling shared libraries support.  We urge you to upgrade GNU
8561 *** binutils to release 2.9.1 or newer.  Another option is to modify
8562 *** your PATH or compiler configuration so that the native linker is
8563 *** used, and then restart.
8564
8565 _LT_EOF
8566       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8569       else
8570         ld_shlibs=no
8571       fi
8572       ;;
8573
8574     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8575       case `$LD -v 2>&1` in
8576         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8577         ld_shlibs=no
8578         cat <<_LT_EOF 1>&2
8579
8580 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8581 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8582 *** is disabling shared libraries support.  We urge you to upgrade GNU
8583 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8584 *** your PATH or compiler configuration so that the native linker is
8585 *** used, and then restart.
8586
8587 _LT_EOF
8588         ;;
8589         *)
8590           # For security reasons, it is highly recommended that you always
8591           # use absolute paths for naming shared libraries, and exclude the
8592           # DT_RUNPATH tag from executables and libraries.  But doing so
8593           # requires that you compile everything twice, which is a pain.
8594           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8596             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8598           else
8599             ld_shlibs=no
8600           fi
8601         ;;
8602       esac
8603       ;;
8604
8605     sunos4*)
8606       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607       wlarc=
8608       hardcode_direct=yes
8609       hardcode_shlibpath_var=no
8610       ;;
8611
8612     *)
8613       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8614         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616       else
8617         ld_shlibs=no
8618       fi
8619       ;;
8620     esac
8621
8622     if test "$ld_shlibs" = no; then
8623       runpath_var=
8624       hardcode_libdir_flag_spec=
8625       export_dynamic_flag_spec=
8626       whole_archive_flag_spec=
8627     fi
8628   else
8629     # PORTME fill in a description of your system's linker (not GNU ld)
8630     case $host_os in
8631     aix3*)
8632       allow_undefined_flag=unsupported
8633       always_export_symbols=yes
8634       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'
8635       # Note: this linker hardcodes the directories in LIBPATH if there
8636       # are no directories specified by -L.
8637       hardcode_minus_L=yes
8638       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8639         # Neither direct hardcoding nor static linking is supported with a
8640         # broken collect2.
8641         hardcode_direct=unsupported
8642       fi
8643       ;;
8644
8645     aix[4-9]*)
8646       if test "$host_cpu" = ia64; then
8647         # On IA64, the linker does run time linking by default, so we don't
8648         # have to do anything special.
8649         aix_use_runtimelinking=no
8650         exp_sym_flag='-Bexport'
8651         no_entry_flag=""
8652       else
8653         # If we're using GNU nm, then we don't want the "-C" option.
8654         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8655         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8656           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'
8657         else
8658           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'
8659         fi
8660         aix_use_runtimelinking=no
8661
8662         # Test if we are trying to use run time linking or normal
8663         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8664         # need to do runtime linking.
8665         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8666           for ld_flag in $LDFLAGS; do
8667           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8668             aix_use_runtimelinking=yes
8669             break
8670           fi
8671           done
8672           ;;
8673         esac
8674
8675         exp_sym_flag='-bexport'
8676         no_entry_flag='-bnoentry'
8677       fi
8678
8679       # When large executables or shared objects are built, AIX ld can
8680       # have problems creating the table of contents.  If linking a library
8681       # or program results in "error TOC overflow" add -mminimal-toc to
8682       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8683       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8684
8685       archive_cmds=''
8686       hardcode_direct=yes
8687       hardcode_direct_absolute=yes
8688       hardcode_libdir_separator=':'
8689       link_all_deplibs=yes
8690       file_list_spec='${wl}-f,'
8691
8692       if test "$GCC" = yes; then
8693         case $host_os in aix4.[012]|aix4.[012].*)
8694         # We only want to do this on AIX 4.2 and lower, the check
8695         # below for broken collect2 doesn't work under 4.3+
8696           collect2name=`${CC} -print-prog-name=collect2`
8697           if test -f "$collect2name" &&
8698            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8699           then
8700           # We have reworked collect2
8701           :
8702           else
8703           # We have old collect2
8704           hardcode_direct=unsupported
8705           # It fails to find uninstalled libraries when the uninstalled
8706           # path is not listed in the libpath.  Setting hardcode_minus_L
8707           # to unsupported forces relinking
8708           hardcode_minus_L=yes
8709           hardcode_libdir_flag_spec='-L$libdir'
8710           hardcode_libdir_separator=
8711           fi
8712           ;;
8713         esac
8714         shared_flag='-shared'
8715         if test "$aix_use_runtimelinking" = yes; then
8716           shared_flag="$shared_flag "'${wl}-G'
8717         fi
8718       else
8719         # not using gcc
8720         if test "$host_cpu" = ia64; then
8721         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722         # chokes on -Wl,-G. The following line is correct:
8723           shared_flag='-G'
8724         else
8725           if test "$aix_use_runtimelinking" = yes; then
8726             shared_flag='${wl}-G'
8727           else
8728             shared_flag='${wl}-bM:SRE'
8729           fi
8730         fi
8731       fi
8732
8733       export_dynamic_flag_spec='${wl}-bexpall'
8734       # It seems that -bexpall does not export symbols beginning with
8735       # underscore (_), so it is better to generate a list of symbols to export.
8736       always_export_symbols=yes
8737       if test "$aix_use_runtimelinking" = yes; then
8738         # Warning - without using the other runtime loading flags (-brtl),
8739         # -berok will link without error, but may produce a broken library.
8740         allow_undefined_flag='-berok'
8741         # Determine the default libpath from the value encoded in an
8742         # empty executable.
8743         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h.  */
8745
8746 int
8747 main ()
8748 {
8749
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755
8756 lt_aix_libpath_sed='
8757     /Import File Strings/,/^$/ {
8758         /^0/ {
8759             s/^0  *\(.*\)$/\1/
8760             p
8761         }
8762     }'
8763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8764 # Check for a 64-bit object if we didn't find anything.
8765 if test -z "$aix_libpath"; then
8766   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8767 fi
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext \
8770     conftest$ac_exeext conftest.$ac_ext
8771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8772
8773         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8774         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"
8775       else
8776         if test "$host_cpu" = ia64; then
8777           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8778           allow_undefined_flag="-z nodefs"
8779           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"
8780         else
8781          # Determine the default libpath from the value encoded in an
8782          # empty executable.
8783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h.  */
8785
8786 int
8787 main ()
8788 {
8789
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"; then :
8795
8796 lt_aix_libpath_sed='
8797     /Import File Strings/,/^$/ {
8798         /^0/ {
8799             s/^0  *\(.*\)$/\1/
8800             p
8801         }
8802     }'
8803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8804 # Check for a 64-bit object if we didn't find anything.
8805 if test -z "$aix_libpath"; then
8806   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8807 fi
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810     conftest$ac_exeext conftest.$ac_ext
8811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8812
8813          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8814           # Warning - without using the other run time loading flags,
8815           # -berok will link without error, but may produce a broken library.
8816           no_undefined_flag=' ${wl}-bernotok'
8817           allow_undefined_flag=' ${wl}-berok'
8818           # Exported symbols can be pulled into shared objects from archives
8819           whole_archive_flag_spec='$convenience'
8820           archive_cmds_need_lc=yes
8821           # This is similar to how AIX traditionally builds its shared libraries.
8822           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'
8823         fi
8824       fi
8825       ;;
8826
8827     amigaos*)
8828       case $host_cpu in
8829       powerpc)
8830             # see comment about AmigaOS4 .so support
8831             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832             archive_expsym_cmds=''
8833         ;;
8834       m68k)
8835             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)'
8836             hardcode_libdir_flag_spec='-L$libdir'
8837             hardcode_minus_L=yes
8838         ;;
8839       esac
8840       ;;
8841
8842     bsdi[45]*)
8843       export_dynamic_flag_spec=-rdynamic
8844       ;;
8845
8846     cygwin* | mingw* | pw32* | cegcc*)
8847       # When not using gcc, we currently assume that we are using
8848       # Microsoft Visual C++.
8849       # hardcode_libdir_flag_spec is actually meaningless, as there is
8850       # no search path for DLLs.
8851       hardcode_libdir_flag_spec=' '
8852       allow_undefined_flag=unsupported
8853       # Tell ltmain to make .lib files, not .a files.
8854       libext=lib
8855       # Tell ltmain to make .dll files, not .so files.
8856       shrext_cmds=".dll"
8857       # FIXME: Setting linknames here is a bad hack.
8858       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8859       # The linker will automatically build a .lib file if we build a DLL.
8860       old_archive_from_new_cmds='true'
8861       # FIXME: Should let the user specify the lib program.
8862       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8863       fix_srcfile_path='`cygpath -w "$srcfile"`'
8864       enable_shared_with_static_runtimes=yes
8865       ;;
8866
8867     darwin* | rhapsody*)
8868
8869
8870   archive_cmds_need_lc=no
8871   hardcode_direct=no
8872   hardcode_automatic=yes
8873   hardcode_shlibpath_var=unsupported
8874   whole_archive_flag_spec=''
8875   link_all_deplibs=yes
8876   allow_undefined_flag="$_lt_dar_allow_undefined"
8877   case $cc_basename in
8878      ifort*) _lt_dar_can_shared=yes ;;
8879      *) _lt_dar_can_shared=$GCC ;;
8880   esac
8881   if test "$_lt_dar_can_shared" = "yes"; then
8882     output_verbose_link_cmd=echo
8883     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8884     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8885     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}"
8886     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}"
8887
8888   else
8889   ld_shlibs=no
8890   fi
8891
8892       ;;
8893
8894     dgux*)
8895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896       hardcode_libdir_flag_spec='-L$libdir'
8897       hardcode_shlibpath_var=no
8898       ;;
8899
8900     freebsd1*)
8901       ld_shlibs=no
8902       ;;
8903
8904     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8905     # support.  Future versions do this automatically, but an explicit c++rt0.o
8906     # does not break anything, and helps significantly (at the cost of a little
8907     # extra space).
8908     freebsd2.2*)
8909       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8910       hardcode_libdir_flag_spec='-R$libdir'
8911       hardcode_direct=yes
8912       hardcode_shlibpath_var=no
8913       ;;
8914
8915     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8916     freebsd2*)
8917       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8918       hardcode_direct=yes
8919       hardcode_minus_L=yes
8920       hardcode_shlibpath_var=no
8921       ;;
8922
8923     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8924     freebsd* | dragonfly*)
8925       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8926       hardcode_libdir_flag_spec='-R$libdir'
8927       hardcode_direct=yes
8928       hardcode_shlibpath_var=no
8929       ;;
8930
8931     hpux9*)
8932       if test "$GCC" = yes; then
8933         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'
8934       else
8935         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'
8936       fi
8937       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8938       hardcode_libdir_separator=:
8939       hardcode_direct=yes
8940
8941       # hardcode_minus_L: Not really in the search PATH,
8942       # but as the default location of the library.
8943       hardcode_minus_L=yes
8944       export_dynamic_flag_spec='${wl}-E'
8945       ;;
8946
8947     hpux10*)
8948       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8949         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8950       else
8951         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8952       fi
8953       if test "$with_gnu_ld" = no; then
8954         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8955         hardcode_libdir_flag_spec_ld='+b $libdir'
8956         hardcode_libdir_separator=:
8957         hardcode_direct=yes
8958         hardcode_direct_absolute=yes
8959         export_dynamic_flag_spec='${wl}-E'
8960         # hardcode_minus_L: Not really in the search PATH,
8961         # but as the default location of the library.
8962         hardcode_minus_L=yes
8963       fi
8964       ;;
8965
8966     hpux11*)
8967       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8968         case $host_cpu in
8969         hppa*64*)
8970           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971           ;;
8972         ia64*)
8973           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8974           ;;
8975         *)
8976           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8977           ;;
8978         esac
8979       else
8980         case $host_cpu in
8981         hppa*64*)
8982           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983           ;;
8984         ia64*)
8985           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8986           ;;
8987         *)
8988           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8989           ;;
8990         esac
8991       fi
8992       if test "$with_gnu_ld" = no; then
8993         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8994         hardcode_libdir_separator=:
8995
8996         case $host_cpu in
8997         hppa*64*|ia64*)
8998           hardcode_direct=no
8999           hardcode_shlibpath_var=no
9000           ;;
9001         *)
9002           hardcode_direct=yes
9003           hardcode_direct_absolute=yes
9004           export_dynamic_flag_spec='${wl}-E'
9005
9006           # hardcode_minus_L: Not really in the search PATH,
9007           # but as the default location of the library.
9008           hardcode_minus_L=yes
9009           ;;
9010         esac
9011       fi
9012       ;;
9013
9014     irix5* | irix6* | nonstopux*)
9015       if test "$GCC" = yes; then
9016         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'
9017         # Try to use the -exported_symbol ld option, if it does not
9018         # work, assume that -exports_file does not work either and
9019         # implicitly export all symbols.
9020         save_LDFLAGS="$LDFLAGS"
9021         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9022         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h.  */
9024 int foo(void) {}
9025 _ACEOF
9026 if ac_fn_c_try_link "$LINENO"; then :
9027   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'
9028
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext \
9031     conftest$ac_exeext conftest.$ac_ext
9032         LDFLAGS="$save_LDFLAGS"
9033       else
9034         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'
9035         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'
9036       fi
9037       archive_cmds_need_lc='no'
9038       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039       hardcode_libdir_separator=:
9040       inherit_rpath=yes
9041       link_all_deplibs=yes
9042       ;;
9043
9044     netbsd*)
9045       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9046         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9047       else
9048         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9049       fi
9050       hardcode_libdir_flag_spec='-R$libdir'
9051       hardcode_direct=yes
9052       hardcode_shlibpath_var=no
9053       ;;
9054
9055     newsos6)
9056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057       hardcode_direct=yes
9058       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059       hardcode_libdir_separator=:
9060       hardcode_shlibpath_var=no
9061       ;;
9062
9063     *nto* | *qnx*)
9064       ;;
9065
9066     openbsd*)
9067       if test -f /usr/libexec/ld.so; then
9068         hardcode_direct=yes
9069         hardcode_shlibpath_var=no
9070         hardcode_direct_absolute=yes
9071         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9072           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9073           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9074           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9075           export_dynamic_flag_spec='${wl}-E'
9076         else
9077           case $host_os in
9078            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9079              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080              hardcode_libdir_flag_spec='-R$libdir'
9081              ;;
9082            *)
9083              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9084              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9085              ;;
9086           esac
9087         fi
9088       else
9089         ld_shlibs=no
9090       fi
9091       ;;
9092
9093     os2*)
9094       hardcode_libdir_flag_spec='-L$libdir'
9095       hardcode_minus_L=yes
9096       allow_undefined_flag=unsupported
9097       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'
9098       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9099       ;;
9100
9101     osf3*)
9102       if test "$GCC" = yes; then
9103         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9104         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'
9105       else
9106         allow_undefined_flag=' -expect_unresolved \*'
9107         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'
9108       fi
9109       archive_cmds_need_lc='no'
9110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111       hardcode_libdir_separator=:
9112       ;;
9113
9114     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9115       if test "$GCC" = yes; then
9116         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9117         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'
9118         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9119       else
9120         allow_undefined_flag=' -expect_unresolved \*'
9121         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'
9122         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~
9123         $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'
9124
9125         # Both c and cxx compiler support -rpath directly
9126         hardcode_libdir_flag_spec='-rpath $libdir'
9127       fi
9128       archive_cmds_need_lc='no'
9129       hardcode_libdir_separator=:
9130       ;;
9131
9132     solaris*)
9133       no_undefined_flag=' -z defs'
9134       if test "$GCC" = yes; then
9135         wlarc='${wl}'
9136         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9138           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9139       else
9140         case `$CC -V 2>&1` in
9141         *"Compilers 5.0"*)
9142           wlarc=''
9143           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9145           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9146           ;;
9147         *)
9148           wlarc='${wl}'
9149           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9150           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9151           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9152           ;;
9153         esac
9154       fi
9155       hardcode_libdir_flag_spec='-R$libdir'
9156       hardcode_shlibpath_var=no
9157       case $host_os in
9158       solaris2.[0-5] | solaris2.[0-5].*) ;;
9159       *)
9160         # The compiler driver will combine and reorder linker options,
9161         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9162         # but is careful enough not to reorder.
9163         # Supported since Solaris 2.6 (maybe 2.5.1?)
9164         if test "$GCC" = yes; then
9165           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9166         else
9167           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9168         fi
9169         ;;
9170       esac
9171       link_all_deplibs=yes
9172       ;;
9173
9174     sunos4*)
9175       if test "x$host_vendor" = xsequent; then
9176         # Use $CC to link under sequent, because it throws in some extra .o
9177         # files that make .init and .fini sections work.
9178         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9179       else
9180         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9181       fi
9182       hardcode_libdir_flag_spec='-L$libdir'
9183       hardcode_direct=yes
9184       hardcode_minus_L=yes
9185       hardcode_shlibpath_var=no
9186       ;;
9187
9188     sysv4)
9189       case $host_vendor in
9190         sni)
9191           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192           hardcode_direct=yes # is this really true???
9193         ;;
9194         siemens)
9195           ## LD is ld it makes a PLAMLIB
9196           ## CC just makes a GrossModule.
9197           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9198           reload_cmds='$CC -r -o $output$reload_objs'
9199           hardcode_direct=no
9200         ;;
9201         motorola)
9202           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9204         ;;
9205       esac
9206       runpath_var='LD_RUN_PATH'
9207       hardcode_shlibpath_var=no
9208       ;;
9209
9210     sysv4.3*)
9211       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212       hardcode_shlibpath_var=no
9213       export_dynamic_flag_spec='-Bexport'
9214       ;;
9215
9216     sysv4*MP*)
9217       if test -d /usr/nec; then
9218         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219         hardcode_shlibpath_var=no
9220         runpath_var=LD_RUN_PATH
9221         hardcode_runpath_var=yes
9222         ld_shlibs=yes
9223       fi
9224       ;;
9225
9226     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9227       no_undefined_flag='${wl}-z,text'
9228       archive_cmds_need_lc=no
9229       hardcode_shlibpath_var=no
9230       runpath_var='LD_RUN_PATH'
9231
9232       if test "$GCC" = yes; then
9233         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9235       else
9236         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238       fi
9239       ;;
9240
9241     sysv5* | sco3.2v5* | sco5v6*)
9242       # Note: We can NOT use -z defs as we might desire, because we do not
9243       # link with -lc, and that would cause any symbols used from libc to
9244       # always be unresolved, which means just about no library would
9245       # ever link correctly.  If we're not using GNU ld we use -z text
9246       # though, which does catch some bad symbols but isn't as heavy-handed
9247       # as -z defs.
9248       no_undefined_flag='${wl}-z,text'
9249       allow_undefined_flag='${wl}-z,nodefs'
9250       archive_cmds_need_lc=no
9251       hardcode_shlibpath_var=no
9252       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9253       hardcode_libdir_separator=':'
9254       link_all_deplibs=yes
9255       export_dynamic_flag_spec='${wl}-Bexport'
9256       runpath_var='LD_RUN_PATH'
9257
9258       if test "$GCC" = yes; then
9259         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9261       else
9262         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9264       fi
9265       ;;
9266
9267     uts4*)
9268       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269       hardcode_libdir_flag_spec='-L$libdir'
9270       hardcode_shlibpath_var=no
9271       ;;
9272
9273     *)
9274       ld_shlibs=no
9275       ;;
9276     esac
9277
9278     if test x$host_vendor = xsni; then
9279       case $host in
9280       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9281         export_dynamic_flag_spec='${wl}-Blargedynsym'
9282         ;;
9283       esac
9284     fi
9285   fi
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9288 $as_echo "$ld_shlibs" >&6; }
9289 test "$ld_shlibs" = no && can_build_shared=no
9290
9291 with_gnu_ld=$with_gnu_ld
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 #
9308 # Do we need to explicitly link libc?
9309 #
9310 case "x$archive_cmds_need_lc" in
9311 x|xyes)
9312   # Assume -lc should be added
9313   archive_cmds_need_lc=yes
9314
9315   if test "$enable_shared" = yes && test "$GCC" = yes; then
9316     case $archive_cmds in
9317     *'~'*)
9318       # FIXME: we may have to deal with multi-command sequences.
9319       ;;
9320     '$CC '*)
9321       # Test whether the compiler implicitly links with -lc since on some
9322       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9323       # to ld, don't add -lc before -lgcc.
9324       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9326       $RM conftest*
9327       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9328
9329       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9330   (eval $ac_compile) 2>&5
9331   ac_status=$?
9332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333   test $ac_status = 0; } 2>conftest.err; then
9334         soname=conftest
9335         lib=conftest
9336         libobjs=conftest.$ac_objext
9337         deplibs=
9338         wl=$lt_prog_compiler_wl
9339         pic_flag=$lt_prog_compiler_pic
9340         compiler_flags=-v
9341         linker_flags=-v
9342         verstring=
9343         output_objdir=.
9344         libname=conftest
9345         lt_save_allow_undefined_flag=$allow_undefined_flag
9346         allow_undefined_flag=
9347         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9348   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9349   ac_status=$?
9350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351   test $ac_status = 0; }
9352         then
9353           archive_cmds_need_lc=no
9354         else
9355           archive_cmds_need_lc=yes
9356         fi
9357         allow_undefined_flag=$lt_save_allow_undefined_flag
9358       else
9359         cat conftest.err 1>&5
9360       fi
9361       $RM conftest*
9362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9363 $as_echo "$archive_cmds_need_lc" >&6; }
9364       ;;
9365     esac
9366   fi
9367   ;;
9368 esac
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9527 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9528
9529 if test "$GCC" = yes; then
9530   case $host_os in
9531     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9532     *) lt_awk_arg="/^libraries:/" ;;
9533   esac
9534   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9535   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9536     # if the path contains ";" then we assume it to be the separator
9537     # otherwise default to the standard path separator (i.e. ":") - it is
9538     # assumed that no part of a normal pathname contains ";" but that should
9539     # okay in the real world where ";" in dirpaths is itself problematic.
9540     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9541   else
9542     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9543   fi
9544   # Ok, now we have the path, separated by spaces, we can step through it
9545   # and add multilib dir if necessary.
9546   lt_tmp_lt_search_path_spec=
9547   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9548   for lt_sys_path in $lt_search_path_spec; do
9549     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9550       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9551     else
9552       test -d "$lt_sys_path" && \
9553         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9554     fi
9555   done
9556   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9557 BEGIN {RS=" "; FS="/|\n";} {
9558   lt_foo="";
9559   lt_count=0;
9560   for (lt_i = NF; lt_i > 0; lt_i--) {
9561     if ($lt_i != "" && $lt_i != ".") {
9562       if ($lt_i == "..") {
9563         lt_count++;
9564       } else {
9565         if (lt_count == 0) {
9566           lt_foo="/" $lt_i lt_foo;
9567         } else {
9568           lt_count--;
9569         }
9570       }
9571     }
9572   }
9573   if (lt_foo != "") { lt_freq[lt_foo]++; }
9574   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9575 }'`
9576   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9577 else
9578   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9579 fi
9580 library_names_spec=
9581 libname_spec='lib$name'
9582 soname_spec=
9583 shrext_cmds=".so"
9584 postinstall_cmds=
9585 postuninstall_cmds=
9586 finish_cmds=
9587 finish_eval=
9588 shlibpath_var=
9589 shlibpath_overrides_runpath=unknown
9590 version_type=none
9591 dynamic_linker="$host_os ld.so"
9592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9593 need_lib_prefix=unknown
9594 hardcode_into_libs=no
9595
9596 # when you set need_version to no, make sure it does not cause -set_version
9597 # flags to be left without arguments
9598 need_version=unknown
9599
9600 case $host_os in
9601 aix3*)
9602   version_type=linux
9603   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9604   shlibpath_var=LIBPATH
9605
9606   # AIX 3 has no versioning support, so we append a major version to the name.
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   ;;
9609
9610 aix[4-9]*)
9611   version_type=linux
9612   need_lib_prefix=no
9613   need_version=no
9614   hardcode_into_libs=yes
9615   if test "$host_cpu" = ia64; then
9616     # AIX 5 supports IA64
9617     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9618     shlibpath_var=LD_LIBRARY_PATH
9619   else
9620     # With GCC up to 2.95.x, collect2 would create an import file
9621     # for dependence libraries.  The import file would start with
9622     # the line `#! .'.  This would cause the generated library to
9623     # depend on `.', always an invalid library.  This was fixed in
9624     # development snapshots of GCC prior to 3.0.
9625     case $host_os in
9626       aix4 | aix4.[01] | aix4.[01].*)
9627       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9628            echo ' yes '
9629            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9630         :
9631       else
9632         can_build_shared=no
9633       fi
9634       ;;
9635     esac
9636     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9637     # soname into executable. Probably we can add versioning support to
9638     # collect2, so additional links can be useful in future.
9639     if test "$aix_use_runtimelinking" = yes; then
9640       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9641       # instead of lib<name>.a to let people know that these are not
9642       # typical AIX shared libraries.
9643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644     else
9645       # We preserve .a as extension for shared libraries through AIX4.2
9646       # and later when we are not doing run time linking.
9647       library_names_spec='${libname}${release}.a $libname.a'
9648       soname_spec='${libname}${release}${shared_ext}$major'
9649     fi
9650     shlibpath_var=LIBPATH
9651   fi
9652   ;;
9653
9654 amigaos*)
9655   case $host_cpu in
9656   powerpc)
9657     # Since July 2007 AmigaOS4 officially supports .so libraries.
9658     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660     ;;
9661   m68k)
9662     library_names_spec='$libname.ixlibrary $libname.a'
9663     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9664     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'
9665     ;;
9666   esac
9667   ;;
9668
9669 beos*)
9670   library_names_spec='${libname}${shared_ext}'
9671   dynamic_linker="$host_os ld.so"
9672   shlibpath_var=LIBRARY_PATH
9673   ;;
9674
9675 bsdi[45]*)
9676   version_type=linux
9677   need_version=no
9678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679   soname_spec='${libname}${release}${shared_ext}$major'
9680   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9681   shlibpath_var=LD_LIBRARY_PATH
9682   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9683   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9684   # the default ld.so.conf also contains /usr/contrib/lib and
9685   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9686   # libtool to hard-code these into programs
9687   ;;
9688
9689 cygwin* | mingw* | pw32* | cegcc*)
9690   version_type=windows
9691   shrext_cmds=".dll"
9692   need_version=no
9693   need_lib_prefix=no
9694
9695   case $GCC,$host_os in
9696   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9697     library_names_spec='$libname.dll.a'
9698     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9699     postinstall_cmds='base_file=`basename \${file}`~
9700       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9701       dldir=$destdir/`dirname \$dlpath`~
9702       test -d \$dldir || mkdir -p \$dldir~
9703       $install_prog $dir/$dlname \$dldir/$dlname~
9704       chmod a+x \$dldir/$dlname~
9705       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9706         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9707       fi'
9708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9709       dlpath=$dir/\$dldll~
9710        $RM \$dlpath'
9711     shlibpath_overrides_runpath=yes
9712
9713     case $host_os in
9714     cygwin*)
9715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9718       ;;
9719     mingw* | cegcc*)
9720       # MinGW DLLs use traditional 'lib' prefix
9721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9724         # It is most probably a Windows format PATH printed by
9725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9726         # path with ; separators, and with drive letters. We can handle the
9727         # drive letters (cygwin fileutils understands them), so leave them,
9728         # especially as we might pass files found there to a mingw objdump,
9729         # which wouldn't understand a cygwinified path. Ahh.
9730         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9731       else
9732         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9733       fi
9734       ;;
9735     pw32*)
9736       # pw32 DLLs use 'pw' prefix rather than 'lib'
9737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9738       ;;
9739     esac
9740     ;;
9741
9742   *)
9743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9744     ;;
9745   esac
9746   dynamic_linker='Win32 ld.exe'
9747   # FIXME: first we should search . and the directory the executable is in
9748   shlibpath_var=PATH
9749   ;;
9750
9751 darwin* | rhapsody*)
9752   dynamic_linker="$host_os dyld"
9753   version_type=darwin
9754   need_lib_prefix=no
9755   need_version=no
9756   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9757   soname_spec='${libname}${release}${major}$shared_ext'
9758   shlibpath_overrides_runpath=yes
9759   shlibpath_var=DYLD_LIBRARY_PATH
9760   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9761
9762   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9763   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9764   ;;
9765
9766 dgux*)
9767   version_type=linux
9768   need_lib_prefix=no
9769   need_version=no
9770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9771   soname_spec='${libname}${release}${shared_ext}$major'
9772   shlibpath_var=LD_LIBRARY_PATH
9773   ;;
9774
9775 freebsd1*)
9776   dynamic_linker=no
9777   ;;
9778
9779 freebsd* | dragonfly*)
9780   # DragonFly does not have aout.  When/if they implement a new
9781   # versioning mechanism, adjust this.
9782   if test -x /usr/bin/objformat; then
9783     objformat=`/usr/bin/objformat`
9784   else
9785     case $host_os in
9786     freebsd[123]*) objformat=aout ;;
9787     *) objformat=elf ;;
9788     esac
9789   fi
9790   version_type=freebsd-$objformat
9791   case $version_type in
9792     freebsd-elf*)
9793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9794       need_version=no
9795       need_lib_prefix=no
9796       ;;
9797     freebsd-*)
9798       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9799       need_version=yes
9800       ;;
9801   esac
9802   shlibpath_var=LD_LIBRARY_PATH
9803   case $host_os in
9804   freebsd2*)
9805     shlibpath_overrides_runpath=yes
9806     ;;
9807   freebsd3.[01]* | freebsdelf3.[01]*)
9808     shlibpath_overrides_runpath=yes
9809     hardcode_into_libs=yes
9810     ;;
9811   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9812   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9813     shlibpath_overrides_runpath=no
9814     hardcode_into_libs=yes
9815     ;;
9816   *) # from 4.6 on, and DragonFly
9817     shlibpath_overrides_runpath=yes
9818     hardcode_into_libs=yes
9819     ;;
9820   esac
9821   ;;
9822
9823 gnu*)
9824   version_type=linux
9825   need_lib_prefix=no
9826   need_version=no
9827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9828   soname_spec='${libname}${release}${shared_ext}$major'
9829   shlibpath_var=LD_LIBRARY_PATH
9830   hardcode_into_libs=yes
9831   ;;
9832
9833 hpux9* | hpux10* | hpux11*)
9834   # Give a soname corresponding to the major version so that dld.sl refuses to
9835   # link against other versions.
9836   version_type=sunos
9837   need_lib_prefix=no
9838   need_version=no
9839   case $host_cpu in
9840   ia64*)
9841     shrext_cmds='.so'
9842     hardcode_into_libs=yes
9843     dynamic_linker="$host_os dld.so"
9844     shlibpath_var=LD_LIBRARY_PATH
9845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847     soname_spec='${libname}${release}${shared_ext}$major'
9848     if test "X$HPUX_IA64_MODE" = X32; then
9849       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9850     else
9851       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9852     fi
9853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9854     ;;
9855   hppa*64*)
9856     shrext_cmds='.sl'
9857     hardcode_into_libs=yes
9858     dynamic_linker="$host_os dld.sl"
9859     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862     soname_spec='${libname}${release}${shared_ext}$major'
9863     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9865     ;;
9866   *)
9867     shrext_cmds='.sl'
9868     dynamic_linker="$host_os dld.sl"
9869     shlibpath_var=SHLIB_PATH
9870     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872     soname_spec='${libname}${release}${shared_ext}$major'
9873     ;;
9874   esac
9875   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9876   postinstall_cmds='chmod 555 $lib'
9877   ;;
9878
9879 interix[3-9]*)
9880   version_type=linux
9881   need_lib_prefix=no
9882   need_version=no
9883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884   soname_spec='${libname}${release}${shared_ext}$major'
9885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9886   shlibpath_var=LD_LIBRARY_PATH
9887   shlibpath_overrides_runpath=no
9888   hardcode_into_libs=yes
9889   ;;
9890
9891 irix5* | irix6* | nonstopux*)
9892   case $host_os in
9893     nonstopux*) version_type=nonstopux ;;
9894     *)
9895         if test "$lt_cv_prog_gnu_ld" = yes; then
9896                 version_type=linux
9897         else
9898                 version_type=irix
9899         fi ;;
9900   esac
9901   need_lib_prefix=no
9902   need_version=no
9903   soname_spec='${libname}${release}${shared_ext}$major'
9904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9905   case $host_os in
9906   irix5* | nonstopux*)
9907     libsuff= shlibsuff=
9908     ;;
9909   *)
9910     case $LD in # libtool.m4 will add one of these switches to LD
9911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9912       libsuff= shlibsuff= libmagic=32-bit;;
9913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9914       libsuff=32 shlibsuff=N32 libmagic=N32;;
9915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9917     *) libsuff= shlibsuff= libmagic=never-match;;
9918     esac
9919     ;;
9920   esac
9921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9922   shlibpath_overrides_runpath=no
9923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9925   hardcode_into_libs=yes
9926   ;;
9927
9928 # No shared lib support for Linux oldld, aout, or coff.
9929 linux*oldld* | linux*aout* | linux*coff*)
9930   dynamic_linker=no
9931   ;;
9932
9933 # This must be Linux ELF.
9934 linux* | k*bsd*-gnu)
9935   version_type=linux
9936   need_lib_prefix=no
9937   need_version=no
9938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939   soname_spec='${libname}${release}${shared_ext}$major'
9940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9941   shlibpath_var=LD_LIBRARY_PATH
9942   shlibpath_overrides_runpath=no
9943   # Some binutils ld are patched to set DT_RUNPATH
9944   save_LDFLAGS=$LDFLAGS
9945   save_libdir=$libdir
9946   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9947        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h.  */
9950
9951 int
9952 main ()
9953 {
9954
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9961   shlibpath_overrides_runpath=yes
9962 fi
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965     conftest$ac_exeext conftest.$ac_ext
9966   LDFLAGS=$save_LDFLAGS
9967   libdir=$save_libdir
9968
9969   # This implies no fast_install, which is unacceptable.
9970   # Some rework will be needed to allow for fast_install
9971   # before this can be enabled.
9972   hardcode_into_libs=yes
9973
9974   # Append ld.so.conf contents to the search path
9975   if test -f /etc/ld.so.conf; then
9976     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' ' '`
9977     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9978   fi
9979
9980   # We used to test for /lib/ld.so.1 and disable shared libraries on
9981   # powerpc, because MkLinux only supported shared libraries with the
9982   # GNU dynamic linker.  Since this was broken with cross compilers,
9983   # most powerpc-linux boxes support dynamic linking these days and
9984   # people can always --disable-shared, the test was removed, and we
9985   # assume the GNU/Linux dynamic linker is in use.
9986   dynamic_linker='GNU/Linux ld.so'
9987   ;;
9988
9989 netbsd*)
9990   version_type=sunos
9991   need_lib_prefix=no
9992   need_version=no
9993   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9995     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9996     dynamic_linker='NetBSD (a.out) ld.so'
9997   else
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     dynamic_linker='NetBSD ld.elf_so'
10001   fi
10002   shlibpath_var=LD_LIBRARY_PATH
10003   shlibpath_overrides_runpath=yes
10004   hardcode_into_libs=yes
10005   ;;
10006
10007 newsos6)
10008   version_type=linux
10009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010   shlibpath_var=LD_LIBRARY_PATH
10011   shlibpath_overrides_runpath=yes
10012   ;;
10013
10014 *nto* | *qnx*)
10015   version_type=qnx
10016   need_lib_prefix=no
10017   need_version=no
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019   soname_spec='${libname}${release}${shared_ext}$major'
10020   shlibpath_var=LD_LIBRARY_PATH
10021   shlibpath_overrides_runpath=no
10022   hardcode_into_libs=yes
10023   dynamic_linker='ldqnx.so'
10024   ;;
10025
10026 openbsd*)
10027   version_type=sunos
10028   sys_lib_dlsearch_path_spec="/usr/lib"
10029   need_lib_prefix=no
10030   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10031   case $host_os in
10032     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10033     *)                          need_version=no  ;;
10034   esac
10035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10037   shlibpath_var=LD_LIBRARY_PATH
10038   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10039     case $host_os in
10040       openbsd2.[89] | openbsd2.[89].*)
10041         shlibpath_overrides_runpath=no
10042         ;;
10043       *)
10044         shlibpath_overrides_runpath=yes
10045         ;;
10046       esac
10047   else
10048     shlibpath_overrides_runpath=yes
10049   fi
10050   ;;
10051
10052 os2*)
10053   libname_spec='$name'
10054   shrext_cmds=".dll"
10055   need_lib_prefix=no
10056   library_names_spec='$libname${shared_ext} $libname.a'
10057   dynamic_linker='OS/2 ld.exe'
10058   shlibpath_var=LIBPATH
10059   ;;
10060
10061 osf3* | osf4* | osf5*)
10062   version_type=osf
10063   need_lib_prefix=no
10064   need_version=no
10065   soname_spec='${libname}${release}${shared_ext}$major'
10066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067   shlibpath_var=LD_LIBRARY_PATH
10068   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10069   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10070   ;;
10071
10072 rdos*)
10073   dynamic_linker=no
10074   ;;
10075
10076 solaris*)
10077   version_type=linux
10078   need_lib_prefix=no
10079   need_version=no
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081   soname_spec='${libname}${release}${shared_ext}$major'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   shlibpath_overrides_runpath=yes
10084   hardcode_into_libs=yes
10085   # ldd complains unless libraries are executable
10086   postinstall_cmds='chmod +x $lib'
10087   ;;
10088
10089 sunos4*)
10090   version_type=sunos
10091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   shlibpath_overrides_runpath=yes
10095   if test "$with_gnu_ld" = yes; then
10096     need_lib_prefix=no
10097   fi
10098   need_version=yes
10099   ;;
10100
10101 sysv4 | sysv4.3*)
10102   version_type=linux
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   shlibpath_var=LD_LIBRARY_PATH
10106   case $host_vendor in
10107     sni)
10108       shlibpath_overrides_runpath=no
10109       need_lib_prefix=no
10110       runpath_var=LD_RUN_PATH
10111       ;;
10112     siemens)
10113       need_lib_prefix=no
10114       ;;
10115     motorola)
10116       need_lib_prefix=no
10117       need_version=no
10118       shlibpath_overrides_runpath=no
10119       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10120       ;;
10121   esac
10122   ;;
10123
10124 sysv4*MP*)
10125   if test -d /usr/nec ;then
10126     version_type=linux
10127     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10128     soname_spec='$libname${shared_ext}.$major'
10129     shlibpath_var=LD_LIBRARY_PATH
10130   fi
10131   ;;
10132
10133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10134   version_type=freebsd-elf
10135   need_lib_prefix=no
10136   need_version=no
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   shlibpath_overrides_runpath=yes
10141   hardcode_into_libs=yes
10142   if test "$with_gnu_ld" = yes; then
10143     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10144   else
10145     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10146     case $host_os in
10147       sco3.2v5*)
10148         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10149         ;;
10150     esac
10151   fi
10152   sys_lib_dlsearch_path_spec='/usr/lib'
10153   ;;
10154
10155 tpf*)
10156   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10157   version_type=linux
10158   need_lib_prefix=no
10159   need_version=no
10160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161   shlibpath_var=LD_LIBRARY_PATH
10162   shlibpath_overrides_runpath=no
10163   hardcode_into_libs=yes
10164   ;;
10165
10166 uts4*)
10167   version_type=linux
10168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169   soname_spec='${libname}${release}${shared_ext}$major'
10170   shlibpath_var=LD_LIBRARY_PATH
10171   ;;
10172
10173 *)
10174   dynamic_linker=no
10175   ;;
10176 esac
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10178 $as_echo "$dynamic_linker" >&6; }
10179 test "$dynamic_linker" = no && can_build_shared=no
10180
10181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10182 if test "$GCC" = yes; then
10183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10184 fi
10185
10186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10187   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10188 fi
10189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10190   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10191 fi
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10280 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10281 hardcode_action=
10282 if test -n "$hardcode_libdir_flag_spec" ||
10283    test -n "$runpath_var" ||
10284    test "X$hardcode_automatic" = "Xyes" ; then
10285
10286   # We can hardcode non-existent directories.
10287   if test "$hardcode_direct" != no &&
10288      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10289      # have to relink, otherwise we might link with an installed library
10290      # when we should be linking with a yet-to-be-installed one
10291      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10292      test "$hardcode_minus_L" != no; then
10293     # Linking always hardcodes the temporary library directory.
10294     hardcode_action=relink
10295   else
10296     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10297     hardcode_action=immediate
10298   fi
10299 else
10300   # We cannot hardcode anything, or else we can only hardcode existing
10301   # directories.
10302   hardcode_action=unsupported
10303 fi
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10305 $as_echo "$hardcode_action" >&6; }
10306
10307 if test "$hardcode_action" = relink ||
10308    test "$inherit_rpath" = yes; then
10309   # Fast installation is not supported
10310   enable_fast_install=no
10311 elif test "$shlibpath_overrides_runpath" = yes ||
10312      test "$enable_shared" = no; then
10313   # Fast installation is not necessary
10314   enable_fast_install=needless
10315 fi
10316
10317
10318
10319
10320
10321
10322   if test "x$enable_dlopen" != xyes; then
10323   enable_dlopen=unknown
10324   enable_dlopen_self=unknown
10325   enable_dlopen_self_static=unknown
10326 else
10327   lt_cv_dlopen=no
10328   lt_cv_dlopen_libs=
10329
10330   case $host_os in
10331   beos*)
10332     lt_cv_dlopen="load_add_on"
10333     lt_cv_dlopen_libs=
10334     lt_cv_dlopen_self=yes
10335     ;;
10336
10337   mingw* | pw32* | cegcc*)
10338     lt_cv_dlopen="LoadLibrary"
10339     lt_cv_dlopen_libs=
10340     ;;
10341
10342   cygwin*)
10343     lt_cv_dlopen="dlopen"
10344     lt_cv_dlopen_libs=
10345     ;;
10346
10347   darwin*)
10348   # if libdl is installed we need to link against it
10349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-ldl  $LIBS"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h.  */
10358
10359 /* Override any GCC internal prototype to avoid an error.
10360    Use char because int might match the return type of a GCC
10361    builtin and then its argument prototype would still apply.  */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char dlopen ();
10366 int
10367 main ()
10368 {
10369 return dlopen ();
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375   ac_cv_lib_dl_dlopen=yes
10376 else
10377   ac_cv_lib_dl_dlopen=no
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext \
10380     conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10385 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10386   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10387 else
10388
10389     lt_cv_dlopen="dyld"
10390     lt_cv_dlopen_libs=
10391     lt_cv_dlopen_self=yes
10392
10393 fi
10394
10395     ;;
10396
10397   *)
10398     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10399 if test "x$ac_cv_func_shl_load" = x""yes; then :
10400   lt_cv_dlopen="shl_load"
10401 else
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10403 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10404 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10405   $as_echo_n "(cached) " >&6
10406 else
10407   ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-ldld  $LIBS"
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413    Use char because int might match the return type of a GCC
10414    builtin and then its argument prototype would still apply.  */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char shl_load ();
10419 int
10420 main ()
10421 {
10422 return shl_load ();
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428   ac_cv_lib_dld_shl_load=yes
10429 else
10430   ac_cv_lib_dld_shl_load=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433     conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS
10435 fi
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10437 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10438 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10439   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10440 else
10441   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10442 if test "x$ac_cv_func_dlopen" = x""yes; then :
10443   lt_cv_dlopen="dlopen"
10444 else
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10446 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10447 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10448   $as_echo_n "(cached) " >&6
10449 else
10450   ac_check_lib_save_LIBS=$LIBS
10451 LIBS="-ldl  $LIBS"
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h.  */
10454
10455 /* Override any GCC internal prototype to avoid an error.
10456    Use char because int might match the return type of a GCC
10457    builtin and then its argument prototype would still apply.  */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 char dlopen ();
10462 int
10463 main ()
10464 {
10465 return dlopen ();
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471   ac_cv_lib_dl_dlopen=yes
10472 else
10473   ac_cv_lib_dl_dlopen=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext \
10476     conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10480 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10481 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10482   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10483 else
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10485 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10486 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10487   $as_echo_n "(cached) " >&6
10488 else
10489   ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-lsvld  $LIBS"
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h.  */
10493
10494 /* Override any GCC internal prototype to avoid an error.
10495    Use char because int might match the return type of a GCC
10496    builtin and then its argument prototype would still apply.  */
10497 #ifdef __cplusplus
10498 extern "C"
10499 #endif
10500 char dlopen ();
10501 int
10502 main ()
10503 {
10504 return dlopen ();
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"; then :
10510   ac_cv_lib_svld_dlopen=yes
10511 else
10512   ac_cv_lib_svld_dlopen=no
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext \
10515     conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_lib_save_LIBS
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10519 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10520 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10522 else
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10524 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10525 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10526   $as_echo_n "(cached) " >&6
10527 else
10528   ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-ldld  $LIBS"
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h.  */
10532
10533 /* Override any GCC internal prototype to avoid an error.
10534    Use char because int might match the return type of a GCC
10535    builtin and then its argument prototype would still apply.  */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char dld_link ();
10540 int
10541 main ()
10542 {
10543 return dld_link ();
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549   ac_cv_lib_dld_dld_link=yes
10550 else
10551   ac_cv_lib_dld_dld_link=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext \
10554     conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10558 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10559 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10560   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10561 fi
10562
10563
10564 fi
10565
10566
10567 fi
10568
10569
10570 fi
10571
10572
10573 fi
10574
10575
10576 fi
10577
10578     ;;
10579   esac
10580
10581   if test "x$lt_cv_dlopen" != xno; then
10582     enable_dlopen=yes
10583   else
10584     enable_dlopen=no
10585   fi
10586
10587   case $lt_cv_dlopen in
10588   dlopen)
10589     save_CPPFLAGS="$CPPFLAGS"
10590     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10591
10592     save_LDFLAGS="$LDFLAGS"
10593     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10594
10595     save_LIBS="$LIBS"
10596     LIBS="$lt_cv_dlopen_libs $LIBS"
10597
10598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10599 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10600 if test "${lt_cv_dlopen_self+set}" = set; then :
10601   $as_echo_n "(cached) " >&6
10602 else
10603           if test "$cross_compiling" = yes; then :
10604   lt_cv_dlopen_self=cross
10605 else
10606   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10607   lt_status=$lt_dlunknown
10608   cat > conftest.$ac_ext <<_LT_EOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10611
10612 #if HAVE_DLFCN_H
10613 #include <dlfcn.h>
10614 #endif
10615
10616 #include <stdio.h>
10617
10618 #ifdef RTLD_GLOBAL
10619 #  define LT_DLGLOBAL           RTLD_GLOBAL
10620 #else
10621 #  ifdef DL_GLOBAL
10622 #    define LT_DLGLOBAL         DL_GLOBAL
10623 #  else
10624 #    define LT_DLGLOBAL         0
10625 #  endif
10626 #endif
10627
10628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10629    find out it does not work in some platform. */
10630 #ifndef LT_DLLAZY_OR_NOW
10631 #  ifdef RTLD_LAZY
10632 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10633 #  else
10634 #    ifdef DL_LAZY
10635 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10636 #    else
10637 #      ifdef RTLD_NOW
10638 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10639 #      else
10640 #        ifdef DL_NOW
10641 #          define LT_DLLAZY_OR_NOW      DL_NOW
10642 #        else
10643 #          define LT_DLLAZY_OR_NOW      0
10644 #        endif
10645 #      endif
10646 #    endif
10647 #  endif
10648 #endif
10649
10650 void fnord() { int i=42;}
10651 int main ()
10652 {
10653   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10654   int status = $lt_dlunknown;
10655
10656   if (self)
10657     {
10658       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10659       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10660       /* dlclose (self); */
10661     }
10662   else
10663     puts (dlerror ());
10664
10665   return status;
10666 }
10667 _LT_EOF
10668   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10669   (eval $ac_link) 2>&5
10670   ac_status=$?
10671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10672   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10673     (./conftest; exit; ) >&5 2>/dev/null
10674     lt_status=$?
10675     case x$lt_status in
10676       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10677       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10678       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10679     esac
10680   else :
10681     # compilation failed
10682     lt_cv_dlopen_self=no
10683   fi
10684 fi
10685 rm -fr conftest*
10686
10687
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10690 $as_echo "$lt_cv_dlopen_self" >&6; }
10691
10692     if test "x$lt_cv_dlopen_self" = xyes; then
10693       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10696 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699           if test "$cross_compiling" = yes; then :
10700   lt_cv_dlopen_self_static=cross
10701 else
10702   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10703   lt_status=$lt_dlunknown
10704   cat > conftest.$ac_ext <<_LT_EOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10707
10708 #if HAVE_DLFCN_H
10709 #include <dlfcn.h>
10710 #endif
10711
10712 #include <stdio.h>
10713
10714 #ifdef RTLD_GLOBAL
10715 #  define LT_DLGLOBAL           RTLD_GLOBAL
10716 #else
10717 #  ifdef DL_GLOBAL
10718 #    define LT_DLGLOBAL         DL_GLOBAL
10719 #  else
10720 #    define LT_DLGLOBAL         0
10721 #  endif
10722 #endif
10723
10724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10725    find out it does not work in some platform. */
10726 #ifndef LT_DLLAZY_OR_NOW
10727 #  ifdef RTLD_LAZY
10728 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10729 #  else
10730 #    ifdef DL_LAZY
10731 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10732 #    else
10733 #      ifdef RTLD_NOW
10734 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10735 #      else
10736 #        ifdef DL_NOW
10737 #          define LT_DLLAZY_OR_NOW      DL_NOW
10738 #        else
10739 #          define LT_DLLAZY_OR_NOW      0
10740 #        endif
10741 #      endif
10742 #    endif
10743 #  endif
10744 #endif
10745
10746 void fnord() { int i=42;}
10747 int main ()
10748 {
10749   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10750   int status = $lt_dlunknown;
10751
10752   if (self)
10753     {
10754       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10755       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10756       /* dlclose (self); */
10757     }
10758   else
10759     puts (dlerror ());
10760
10761   return status;
10762 }
10763 _LT_EOF
10764   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10765   (eval $ac_link) 2>&5
10766   ac_status=$?
10767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10769     (./conftest; exit; ) >&5 2>/dev/null
10770     lt_status=$?
10771     case x$lt_status in
10772       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10773       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10774       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10775     esac
10776   else :
10777     # compilation failed
10778     lt_cv_dlopen_self_static=no
10779   fi
10780 fi
10781 rm -fr conftest*
10782
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10786 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10787     fi
10788
10789     CPPFLAGS="$save_CPPFLAGS"
10790     LDFLAGS="$save_LDFLAGS"
10791     LIBS="$save_LIBS"
10792     ;;
10793   esac
10794
10795   case $lt_cv_dlopen_self in
10796   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10797   *) enable_dlopen_self=unknown ;;
10798   esac
10799
10800   case $lt_cv_dlopen_self_static in
10801   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10802   *) enable_dlopen_self_static=unknown ;;
10803   esac
10804 fi
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 striplib=
10823 old_striplib=
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10825 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10826 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10827   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10828   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10830 $as_echo "yes" >&6; }
10831 else
10832 # FIXME - insert some real tests, host_os isn't really good enough
10833   case $host_os in
10834   darwin*)
10835     if test -n "$STRIP" ; then
10836       striplib="$STRIP -x"
10837       old_striplib="$STRIP -S"
10838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10839 $as_echo "yes" >&6; }
10840     else
10841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10843     fi
10844     ;;
10845   *)
10846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848     ;;
10849   esac
10850 fi
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863   # Report which library types will actually be built
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10865 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10867 $as_echo "$can_build_shared" >&6; }
10868
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10870 $as_echo_n "checking whether to build shared libraries... " >&6; }
10871   test "$can_build_shared" = "no" && enable_shared=no
10872
10873   # On AIX, shared libraries and static libraries use the same namespace, and
10874   # are all built from PIC.
10875   case $host_os in
10876   aix3*)
10877     test "$enable_shared" = yes && enable_static=no
10878     if test -n "$RANLIB"; then
10879       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10880       postinstall_cmds='$RANLIB $lib'
10881     fi
10882     ;;
10883
10884   aix[4-9]*)
10885     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10886       test "$enable_shared" = yes && enable_static=no
10887     fi
10888     ;;
10889   esac
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10891 $as_echo "$enable_shared" >&6; }
10892
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10894 $as_echo_n "checking whether to build static libraries... " >&6; }
10895   # Make sure either enable_shared or enable_static is yes.
10896   test "$enable_shared" = yes || enable_static=yes
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10898 $as_echo "$enable_static" >&6; }
10899
10900
10901
10902
10903 fi
10904 ac_ext=c
10905 ac_cpp='$CPP $CPPFLAGS'
10906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10909
10910 CC="$lt_save_CC"
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924         ac_config_commands="$ac_config_commands libtool"
10925
10926
10927
10928
10929 # Only expand once:
10930
10931
10932
10933 # Checks for header files.
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10935 $as_echo_n "checking for ANSI C header files... " >&6; }
10936 if test "${ac_cv_header_stdc+set}" = set; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h.  */
10941 #include <stdlib.h>
10942 #include <stdarg.h>
10943 #include <string.h>
10944 #include <float.h>
10945
10946 int
10947 main ()
10948 {
10949
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955   ac_cv_header_stdc=yes
10956 else
10957   ac_cv_header_stdc=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960
10961 if test $ac_cv_header_stdc = yes; then
10962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h.  */
10965 #include <string.h>
10966
10967 _ACEOF
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969   $EGREP "memchr" >/dev/null 2>&1; then :
10970
10971 else
10972   ac_cv_header_stdc=no
10973 fi
10974 rm -f conftest*
10975
10976 fi
10977
10978 if test $ac_cv_header_stdc = yes; then
10979   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h.  */
10982 #include <stdlib.h>
10983
10984 _ACEOF
10985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10986   $EGREP "free" >/dev/null 2>&1; then :
10987
10988 else
10989   ac_cv_header_stdc=no
10990 fi
10991 rm -f conftest*
10992
10993 fi
10994
10995 if test $ac_cv_header_stdc = yes; then
10996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10997   if test "$cross_compiling" = yes; then :
10998   :
10999 else
11000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h.  */
11002 #include <ctype.h>
11003 #include <stdlib.h>
11004 #if ((' ' & 0x0FF) == 0x020)
11005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11007 #else
11008 # define ISLOWER(c) \
11009                    (('a' <= (c) && (c) <= 'i') \
11010                      || ('j' <= (c) && (c) <= 'r') \
11011                      || ('s' <= (c) && (c) <= 'z'))
11012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11013 #endif
11014
11015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11016 int
11017 main ()
11018 {
11019   int i;
11020   for (i = 0; i < 256; i++)
11021     if (XOR (islower (i), ISLOWER (i))
11022         || toupper (i) != TOUPPER (i))
11023       return 2;
11024   return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_run "$LINENO"; then :
11028
11029 else
11030   ac_cv_header_stdc=no
11031 fi
11032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11033   conftest.$ac_objext conftest.beam conftest.$ac_ext
11034 fi
11035
11036 fi
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11039 $as_echo "$ac_cv_header_stdc" >&6; }
11040 if test $ac_cv_header_stdc = yes; then
11041
11042 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11043
11044 fi
11045
11046 for ac_header in malloc.h stdlib.h string.h strings.h
11047 do :
11048   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11050 eval as_val=\$$as_ac_Header
11051    if test "x$as_val" = x""yes; then :
11052   cat >>confdefs.h <<_ACEOF
11053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057
11058 done
11059
11060
11061 # Checks for typedefs, structures, and compiler characteristics.
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11063 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11064 if test "${ac_cv_c_const+set}" = set; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h.  */
11069
11070 int
11071 main ()
11072 {
11073 /* FIXME: Include the comments suggested by Paul. */
11074 #ifndef __cplusplus
11075   /* Ultrix mips cc rejects this.  */
11076   typedef int charset[2];
11077   const charset cs;
11078   /* SunOS 4.1.1 cc rejects this.  */
11079   char const *const *pcpcc;
11080   char **ppc;
11081   /* NEC SVR4.0.2 mips cc rejects this.  */
11082   struct point {int x, y;};
11083   static struct point const zero = {0,0};
11084   /* AIX XL C 1.02.0.0 rejects this.
11085      It does not let you subtract one const X* pointer from another in
11086      an arm of an if-expression whose if-part is not a constant
11087      expression */
11088   const char *g = "string";
11089   pcpcc = &g + (g ? g-g : 0);
11090   /* HPUX 7.0 cc rejects these. */
11091   ++pcpcc;
11092   ppc = (char**) pcpcc;
11093   pcpcc = (char const *const *) ppc;
11094   { /* SCO 3.2v4 cc rejects this.  */
11095     char *t;
11096     char const *s = 0 ? (char *) 0 : (char const *) 0;
11097
11098     *t++ = 0;
11099     if (s) return 0;
11100   }
11101   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11102     int x[] = {25, 17};
11103     const int *foo = &x[0];
11104     ++foo;
11105   }
11106   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11107     typedef const int *iptr;
11108     iptr p = 0;
11109     ++p;
11110   }
11111   { /* AIX XL C 1.02.0.0 rejects this saying
11112        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11113     struct s { int j; const int *ap[3]; };
11114     struct s *b; b->j = 5;
11115   }
11116   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11117     const int foo = 10;
11118     if (!foo) return 0;
11119   }
11120   return !cs[0] && !zero.x;
11121 #endif
11122
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 if ac_fn_c_try_compile "$LINENO"; then :
11128   ac_cv_c_const=yes
11129 else
11130   ac_cv_c_const=no
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133 fi
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11135 $as_echo "$ac_cv_c_const" >&6; }
11136 if test $ac_cv_c_const = no; then
11137
11138 $as_echo "#define const /**/" >>confdefs.h
11139
11140 fi
11141
11142 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11143 if test "x$ac_cv_type_size_t" = x""yes; then :
11144
11145 else
11146
11147 cat >>confdefs.h <<_ACEOF
11148 #define size_t unsigned int
11149 _ACEOF
11150
11151 fi
11152
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11154 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11155 if test "${ac_cv_struct_tm+set}" = set; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h.  */
11160 #include <sys/types.h>
11161 #include <time.h>
11162
11163 int
11164 main ()
11165 {
11166 struct tm tm;
11167                                      int *p = &tm.tm_sec;
11168                                      return !p;
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_compile "$LINENO"; then :
11174   ac_cv_struct_tm=time.h
11175 else
11176   ac_cv_struct_tm=sys/time.h
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11181 $as_echo "$ac_cv_struct_tm" >&6; }
11182 if test $ac_cv_struct_tm = sys/time.h; then
11183
11184 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11185
11186 fi
11187
11188
11189 # Checks for library functions.
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11191 $as_echo_n "checking for working strtod... " >&6; }
11192 if test "${ac_cv_func_strtod+set}" = set; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   if test "$cross_compiling" = yes; then :
11196   ac_cv_func_strtod=no
11197 else
11198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h.  */
11200
11201 $ac_includes_default
11202 #ifndef strtod
11203 double strtod ();
11204 #endif
11205 int
11206 main()
11207 {
11208   {
11209     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
11210     char *string = " +69";
11211     char *term;
11212     double value;
11213     value = strtod (string, &term);
11214     if (value != 69 || term != (string + 4))
11215       return 1;
11216   }
11217
11218   {
11219     /* Under Solaris 2.4, strtod returns the wrong value for the
11220        terminating character under some conditions.  */
11221     char *string = "NaN";
11222     char *term;
11223     strtod (string, &term);
11224     if (term != string && *(term - 1) == 0)
11225       return 1;
11226   }
11227   return 0;
11228 }
11229
11230 _ACEOF
11231 if ac_fn_c_try_run "$LINENO"; then :
11232   ac_cv_func_strtod=yes
11233 else
11234   ac_cv_func_strtod=no
11235 fi
11236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11237   conftest.$ac_objext conftest.beam conftest.$ac_ext
11238 fi
11239
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11242 $as_echo "$ac_cv_func_strtod" >&6; }
11243 if test $ac_cv_func_strtod = no; then
11244   case " $LIBOBJS " in
11245   *" strtod.$ac_objext "* ) ;;
11246   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11247  ;;
11248 esac
11249
11250 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11251 if test "x$ac_cv_func_pow" = x""yes; then :
11252
11253 fi
11254
11255 if test $ac_cv_func_pow = no; then
11256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11257 $as_echo_n "checking for pow in -lm... " >&6; }
11258 if test "${ac_cv_lib_m_pow+set}" = set; then :
11259   $as_echo_n "(cached) " >&6
11260 else
11261   ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-lm  $LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h.  */
11265
11266 /* Override any GCC internal prototype to avoid an error.
11267    Use char because int might match the return type of a GCC
11268    builtin and then its argument prototype would still apply.  */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char pow ();
11273 int
11274 main ()
11275 {
11276 return pow ();
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282   ac_cv_lib_m_pow=yes
11283 else
11284   ac_cv_lib_m_pow=no
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287     conftest$ac_exeext conftest.$ac_ext
11288 LIBS=$ac_check_lib_save_LIBS
11289 fi
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11291 $as_echo "$ac_cv_lib_m_pow" >&6; }
11292 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11293   POW_LIB=-lm
11294 else
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11296 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11297 fi
11298
11299 fi
11300
11301 fi
11302
11303 for ac_func in memset
11304 do :
11305   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
11306 if test "x$ac_cv_func_memset" = x""yes; then :
11307   cat >>confdefs.h <<_ACEOF
11308 #define HAVE_MEMSET 1
11309 _ACEOF
11310
11311 else
11312   as_fn_error "memset not found in libc" "$LINENO" 5
11313 fi
11314 done
11315
11316 for ac_func in pow
11317 do :
11318   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11319 if test "x$ac_cv_func_pow" = x""yes; then :
11320   cat >>confdefs.h <<_ACEOF
11321 #define HAVE_POW 1
11322 _ACEOF
11323
11324 else
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11326 $as_echo_n "checking for pow in -lm... " >&6; }
11327 if test "${ac_cv_lib_m_pow+set}" = set; then :
11328   $as_echo_n "(cached) " >&6
11329 else
11330   ac_check_lib_save_LIBS=$LIBS
11331 LIBS="-lm  $LIBS"
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h.  */
11334
11335 /* Override any GCC internal prototype to avoid an error.
11336    Use char because int might match the return type of a GCC
11337    builtin and then its argument prototype would still apply.  */
11338 #ifdef __cplusplus
11339 extern "C"
11340 #endif
11341 char pow ();
11342 int
11343 main ()
11344 {
11345 return pow ();
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"; then :
11351   ac_cv_lib_m_pow=yes
11352 else
11353   ac_cv_lib_m_pow=no
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext \
11356     conftest$ac_exeext conftest.$ac_ext
11357 LIBS=$ac_check_lib_save_LIBS
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11360 $as_echo "$ac_cv_lib_m_pow" >&6; }
11361 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11362   cat >>confdefs.h <<_ACEOF
11363 #define HAVE_LIBM 1
11364 _ACEOF
11365
11366   LIBS="-lm $LIBS"
11367
11368 else
11369   as_fn_error "cannot find pow" "$LINENO" 5
11370 fi
11371
11372 fi
11373 done
11374
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
11376 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
11377 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380   ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-lz  $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h.  */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386    Use char because int might match the return type of a GCC
11387    builtin and then its argument prototype would still apply.  */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char zlibVersion ();
11392 int
11393 main ()
11394 {
11395 return zlibVersion ();
11396   ;
11397   return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401   ac_cv_lib_z_zlibVersion=yes
11402 else
11403   ac_cv_lib_z_zlibVersion=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406     conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
11410 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
11411 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
11412   cat >>confdefs.h <<_ACEOF
11413 #define HAVE_LIBZ 1
11414 _ACEOF
11415
11416   LIBS="-lz $LIBS"
11417
11418 else
11419   as_fn_error "zlib not installed" "$LINENO" 5
11420 fi
11421
11422
11423 case $host_os in
11424   aix*)
11425    LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG -D_ALL_SOURCE;;
11426   *)
11427    LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG;;
11428 esac
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
11430 $as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h.  */
11433 #include "$srcdir/pnggccrd.c"
11434 int
11435 main ()
11436 {
11437 return 0;
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_compile "$LINENO"; then :
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445   LIBPNG_NO_MMX=""
11446 else
11447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449   LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
11453
11454
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
11457 $as_echo_n "checking if libraries can be versioned... " >&6; }
11458 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
11459 if test "$GLD"; then
11460     have_ld_version_script=yes
11461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11462 $as_echo "yes" >&6; }
11463 else
11464     have_ld_version_script=no
11465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
11468 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
11469 fi
11470  if test "$have_ld_version_script" = "yes"; then
11471   HAVE_LD_VERSION_SCRIPT_TRUE=
11472   HAVE_LD_VERSION_SCRIPT_FALSE='#'
11473 else
11474   HAVE_LD_VERSION_SCRIPT_TRUE='#'
11475   HAVE_LD_VERSION_SCRIPT_FALSE=
11476 fi
11477
11478
11479 if test "$have_ld_version_script" = "yes"; then
11480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
11481 $as_echo_n "checking for symbol prefix... " >&6; }
11482     SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
11483                    | ${CPP-${CC-gcc} -E} - 2>&1 \
11484                    | ${EGREP-grep} "^PREFIX=" \
11485                    | ${SED-sed} "s:^PREFIX=::"`
11486
11487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
11488 $as_echo "$SYMBOL_PREFIX" >&6; }
11489 fi
11490
11491 # Substitutions for .in files
11492
11493
11494
11495
11496
11497 # Additional arguments (and substitutions)
11498 # Allow the pkg-config directory to be set
11499
11500 # Check whether --with-pkgconfigdir was given.
11501 if test "${with_pkgconfigdir+set}" = set; then :
11502   withval=$with_pkgconfigdir; pkgconfigdir=${withval}
11503 else
11504   pkgconfigdir='${libdir}/pkgconfig'
11505 fi
11506
11507
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
11510 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
11511
11512 # Make the *-config binary config scripts optional
11513
11514 # Check whether --with-binconfigs was given.
11515 if test "${with_binconfigs+set}" = set; then :
11516   withval=$with_binconfigs; if test "${withval}" = no; then
11517                 binconfigs=
11518                 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
11519 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
11520         else
11521                 binconfigs='${binconfigs}'
11522         fi
11523 else
11524   binconfigs='${binconfigs}'
11525 fi
11526
11527
11528
11529 # Allow the old version number library, libpng.so, to be removed from
11530 # the build
11531
11532 # Check whether --with-libpng-compat was given.
11533 if test "${with_libpng_compat+set}" = set; then :
11534   withval=$with_libpng_compat; if test "${withval}" = no; then
11535                 compatlib=
11536                 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng.so will not be built" >&5
11537 $as_echo "$as_me: libpng.so will not be built" >&6;}
11538         else
11539                 compatlib=libpng.la
11540         fi
11541 else
11542   compatlib=libpng.la
11543 fi
11544
11545
11546
11547 # Config files, substituting as above
11548 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
11549
11550 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
11551
11552
11553 cat >confcache <<\_ACEOF
11554 # This file is a shell script that caches the results of configure
11555 # tests run on this system so they can be shared between configure
11556 # scripts and configure runs, see configure's option --config-cache.
11557 # It is not useful on other systems.  If it contains results you don't
11558 # want to keep, you may remove or edit it.
11559 #
11560 # config.status only pays attention to the cache file if you give it
11561 # the --recheck option to rerun configure.
11562 #
11563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11565 # following values.
11566
11567 _ACEOF
11568
11569 # The following way of writing the cache mishandles newlines in values,
11570 # but we know of no workaround that is simple, portable, and efficient.
11571 # So, we kill variables containing newlines.
11572 # Ultrix sh set writes to stderr and can't be redirected directly,
11573 # and sets the high bit in the cache file unless we assign to the vars.
11574 (
11575   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11576     eval ac_val=\$$ac_var
11577     case $ac_val in #(
11578     *${as_nl}*)
11579       case $ac_var in #(
11580       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11582       esac
11583       case $ac_var in #(
11584       _ | IFS | as_nl) ;; #(
11585       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11586       *) { eval $ac_var=; unset $ac_var;} ;;
11587       esac ;;
11588     esac
11589   done
11590
11591   (set) 2>&1 |
11592     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11593     *${as_nl}ac_space=\ *)
11594       # `set' does not quote correctly, so add quotes: double-quote
11595       # substitution turns \\\\ into \\, and sed turns \\ into \.
11596       sed -n \
11597         "s/'/'\\\\''/g;
11598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11599       ;; #(
11600     *)
11601       # `set' quotes correctly as required by POSIX, so do not add quotes.
11602       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11603       ;;
11604     esac |
11605     sort
11606 ) |
11607   sed '
11608      /^ac_cv_env_/b end
11609      t clear
11610      :clear
11611      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11612      t end
11613      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11614      :end' >>confcache
11615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11616   if test -w "$cache_file"; then
11617     test "x$cache_file" != "x/dev/null" &&
11618       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11619 $as_echo "$as_me: updating cache $cache_file" >&6;}
11620     cat confcache >$cache_file
11621   else
11622     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11623 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11624   fi
11625 fi
11626 rm -f confcache
11627
11628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11629 # Let make expand exec_prefix.
11630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11631
11632 DEFS=-DHAVE_CONFIG_H
11633
11634 ac_libobjs=
11635 ac_ltlibobjs=
11636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11637   # 1. Remove the extension, and $U if already installed.
11638   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11639   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11640   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11641   #    will be set to the directory where LIBOBJS objects are built.
11642   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11643   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11644 done
11645 LIBOBJS=$ac_libobjs
11646
11647 LTLIBOBJS=$ac_ltlibobjs
11648
11649
11650  if test -n "$EXEEXT"; then
11651   am__EXEEXT_TRUE=
11652   am__EXEEXT_FALSE='#'
11653 else
11654   am__EXEEXT_TRUE='#'
11655   am__EXEEXT_FALSE=
11656 fi
11657
11658 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11659   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11661 fi
11662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11663   as_fn_error "conditional \"AMDEP\" was never defined.
11664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11665 fi
11666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11667   as_fn_error "conditional \"am__fastdepCC\" was never defined.
11668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11669 fi
11670 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
11671   as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
11672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11673 fi
11674
11675 : ${CONFIG_STATUS=./config.status}
11676 ac_write_fail=0
11677 ac_clean_files_save=$ac_clean_files
11678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11681 as_write_fail=0
11682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11683 #! $SHELL
11684 # Generated by $as_me.
11685 # Run this file to recreate the current configuration.
11686 # Compiler output produced by configure, useful for debugging
11687 # configure, is in config.log if it exists.
11688
11689 debug=false
11690 ac_cs_recheck=false
11691 ac_cs_silent=false
11692
11693 SHELL=\${CONFIG_SHELL-$SHELL}
11694 export SHELL
11695 _ASEOF
11696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11697 ## -------------------- ##
11698 ## M4sh Initialization. ##
11699 ## -------------------- ##
11700
11701 # Be more Bourne compatible
11702 DUALCASE=1; export DUALCASE # for MKS sh
11703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11704   emulate sh
11705   NULLCMD=:
11706   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11707   # is contrary to our usage.  Disable this feature.
11708   alias -g '${1+"$@"}'='"$@"'
11709   setopt NO_GLOB_SUBST
11710 else
11711   case `(set -o) 2>/dev/null` in #(
11712   *posix*) :
11713     set -o posix ;; #(
11714   *) :
11715      ;;
11716 esac
11717 fi
11718
11719
11720 as_nl='
11721 '
11722 export as_nl
11723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11727 # Prefer a ksh shell builtin over an external printf program on Solaris,
11728 # but without wasting forks for bash or zsh.
11729 if test -z "$BASH_VERSION$ZSH_VERSION" \
11730     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11731   as_echo='print -r --'
11732   as_echo_n='print -rn --'
11733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11734   as_echo='printf %s\n'
11735   as_echo_n='printf %s'
11736 else
11737   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11738     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11739     as_echo_n='/usr/ucb/echo -n'
11740   else
11741     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11742     as_echo_n_body='eval
11743       arg=$1;
11744       case $arg in #(
11745       *"$as_nl"*)
11746         expr "X$arg" : "X\\(.*\\)$as_nl";
11747         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11748       esac;
11749       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11750     '
11751     export as_echo_n_body
11752     as_echo_n='sh -c $as_echo_n_body as_echo'
11753   fi
11754   export as_echo_body
11755   as_echo='sh -c $as_echo_body as_echo'
11756 fi
11757
11758 # The user is always right.
11759 if test "${PATH_SEPARATOR+set}" != set; then
11760   PATH_SEPARATOR=:
11761   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11762     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11763       PATH_SEPARATOR=';'
11764   }
11765 fi
11766
11767
11768 # IFS
11769 # We need space, tab and new line, in precisely that order.  Quoting is
11770 # there to prevent editors from complaining about space-tab.
11771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11772 # splitting by setting IFS to empty value.)
11773 IFS=" ""        $as_nl"
11774
11775 # Find who we are.  Look in the path if we contain no directory separator.
11776 case $0 in #((
11777   *[\\/]* ) as_myself=$0 ;;
11778   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11780 do
11781   IFS=$as_save_IFS
11782   test -z "$as_dir" && as_dir=.
11783     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11784   done
11785 IFS=$as_save_IFS
11786
11787      ;;
11788 esac
11789 # We did not find ourselves, most probably we were run as `sh COMMAND'
11790 # in which case we are not to be found in the path.
11791 if test "x$as_myself" = x; then
11792   as_myself=$0
11793 fi
11794 if test ! -f "$as_myself"; then
11795   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11796   exit 1
11797 fi
11798
11799 # Unset variables that we do not need and which cause bugs (e.g. in
11800 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11801 # suppresses any "Segmentation fault" message there.  '((' could
11802 # trigger a bug in pdksh 5.2.14.
11803 for as_var in BASH_ENV ENV MAIL MAILPATH
11804 do eval test x\${$as_var+set} = xset \
11805   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11806 done
11807 PS1='$ '
11808 PS2='> '
11809 PS4='+ '
11810
11811 # NLS nuisances.
11812 LC_ALL=C
11813 export LC_ALL
11814 LANGUAGE=C
11815 export LANGUAGE
11816
11817 # CDPATH.
11818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11819
11820
11821 # as_fn_error ERROR [LINENO LOG_FD]
11822 # ---------------------------------
11823 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11824 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11825 # script with status $?, using 1 if that was 0.
11826 as_fn_error ()
11827 {
11828   as_status=$?; test $as_status -eq 0 && as_status=1
11829   if test "$3"; then
11830     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11831     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11832   fi
11833   $as_echo "$as_me: error: $1" >&2
11834   as_fn_exit $as_status
11835 } # as_fn_error
11836
11837
11838 # as_fn_set_status STATUS
11839 # -----------------------
11840 # Set $? to STATUS, without forking.
11841 as_fn_set_status ()
11842 {
11843   return $1
11844 } # as_fn_set_status
11845
11846 # as_fn_exit STATUS
11847 # -----------------
11848 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11849 as_fn_exit ()
11850 {
11851   set +e
11852   as_fn_set_status $1
11853   exit $1
11854 } # as_fn_exit
11855
11856 # as_fn_unset VAR
11857 # ---------------
11858 # Portably unset VAR.
11859 as_fn_unset ()
11860 {
11861   { eval $1=; unset $1;}
11862 }
11863 as_unset=as_fn_unset
11864 # as_fn_append VAR VALUE
11865 # ----------------------
11866 # Append the text in VALUE to the end of the definition contained in VAR. Take
11867 # advantage of any shell optimizations that allow amortized linear growth over
11868 # repeated appends, instead of the typical quadratic growth present in naive
11869 # implementations.
11870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11871   eval 'as_fn_append ()
11872   {
11873     eval $1+=\$2
11874   }'
11875 else
11876   as_fn_append ()
11877   {
11878     eval $1=\$$1\$2
11879   }
11880 fi # as_fn_append
11881
11882 # as_fn_arith ARG...
11883 # ------------------
11884 # Perform arithmetic evaluation on the ARGs, and store the result in the
11885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11886 # must be portable across $(()) and expr.
11887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11888   eval 'as_fn_arith ()
11889   {
11890     as_val=$(( $* ))
11891   }'
11892 else
11893   as_fn_arith ()
11894   {
11895     as_val=`expr "$@" || test $? -eq 1`
11896   }
11897 fi # as_fn_arith
11898
11899
11900 if expr a : '\(a\)' >/dev/null 2>&1 &&
11901    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11902   as_expr=expr
11903 else
11904   as_expr=false
11905 fi
11906
11907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11908   as_basename=basename
11909 else
11910   as_basename=false
11911 fi
11912
11913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11914   as_dirname=dirname
11915 else
11916   as_dirname=false
11917 fi
11918
11919 as_me=`$as_basename -- "$0" ||
11920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11921          X"$0" : 'X\(//\)$' \| \
11922          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11923 $as_echo X/"$0" |
11924     sed '/^.*\/\([^/][^/]*\)\/*$/{
11925             s//\1/
11926             q
11927           }
11928           /^X\/\(\/\/\)$/{
11929             s//\1/
11930             q
11931           }
11932           /^X\/\(\/\).*/{
11933             s//\1/
11934             q
11935           }
11936           s/.*/./; q'`
11937
11938 # Avoid depending upon Character Ranges.
11939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11942 as_cr_digits='0123456789'
11943 as_cr_alnum=$as_cr_Letters$as_cr_digits
11944
11945 ECHO_C= ECHO_N= ECHO_T=
11946 case `echo -n x` in #(((((
11947 -n*)
11948   case `echo 'xy\c'` in
11949   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11950   xy)  ECHO_C='\c';;
11951   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11952        ECHO_T=' ';;
11953   esac;;
11954 *)
11955   ECHO_N='-n';;
11956 esac
11957
11958 rm -f conf$$ conf$$.exe conf$$.file
11959 if test -d conf$$.dir; then
11960   rm -f conf$$.dir/conf$$.file
11961 else
11962   rm -f conf$$.dir
11963   mkdir conf$$.dir 2>/dev/null
11964 fi
11965 if (echo >conf$$.file) 2>/dev/null; then
11966   if ln -s conf$$.file conf$$ 2>/dev/null; then
11967     as_ln_s='ln -s'
11968     # ... but there are two gotchas:
11969     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11970     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11971     # In both cases, we have to default to `cp -p'.
11972     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11973       as_ln_s='cp -p'
11974   elif ln conf$$.file conf$$ 2>/dev/null; then
11975     as_ln_s=ln
11976   else
11977     as_ln_s='cp -p'
11978   fi
11979 else
11980   as_ln_s='cp -p'
11981 fi
11982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983 rmdir conf$$.dir 2>/dev/null
11984
11985
11986 # as_fn_mkdir_p
11987 # -------------
11988 # Create "$as_dir" as a directory, including parents if necessary.
11989 as_fn_mkdir_p ()
11990 {
11991
11992   case $as_dir in #(
11993   -*) as_dir=./$as_dir;;
11994   esac
11995   test -d "$as_dir" || eval $as_mkdir_p || {
11996     as_dirs=
11997     while :; do
11998       case $as_dir in #(
11999       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12000       *) as_qdir=$as_dir;;
12001       esac
12002       as_dirs="'$as_qdir' $as_dirs"
12003       as_dir=`$as_dirname -- "$as_dir" ||
12004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005          X"$as_dir" : 'X\(//\)[^/]' \| \
12006          X"$as_dir" : 'X\(//\)$' \| \
12007          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12008 $as_echo X"$as_dir" |
12009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12010             s//\1/
12011             q
12012           }
12013           /^X\(\/\/\)[^/].*/{
12014             s//\1/
12015             q
12016           }
12017           /^X\(\/\/\)$/{
12018             s//\1/
12019             q
12020           }
12021           /^X\(\/\).*/{
12022             s//\1/
12023             q
12024           }
12025           s/.*/./; q'`
12026       test -d "$as_dir" && break
12027     done
12028     test -z "$as_dirs" || eval "mkdir $as_dirs"
12029   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12030
12031
12032 } # as_fn_mkdir_p
12033 if mkdir -p . 2>/dev/null; then
12034   as_mkdir_p='mkdir -p "$as_dir"'
12035 else
12036   test -d ./-p && rmdir ./-p
12037   as_mkdir_p=false
12038 fi
12039
12040 if test -x / >/dev/null 2>&1; then
12041   as_test_x='test -x'
12042 else
12043   if ls -dL / >/dev/null 2>&1; then
12044     as_ls_L_option=L
12045   else
12046     as_ls_L_option=
12047   fi
12048   as_test_x='
12049     eval sh -c '\''
12050       if test -d "$1"; then
12051         test -d "$1/.";
12052       else
12053         case $1 in #(
12054         -*)set "./$1";;
12055         esac;
12056         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12057         ???[sx]*):;;*)false;;esac;fi
12058     '\'' sh
12059   '
12060 fi
12061 as_executable_p=$as_test_x
12062
12063 # Sed expression to map a string onto a valid CPP name.
12064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12065
12066 # Sed expression to map a string onto a valid variable name.
12067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12068
12069
12070 exec 6>&1
12071 ## ----------------------------------- ##
12072 ## Main body of $CONFIG_STATUS script. ##
12073 ## ----------------------------------- ##
12074 _ASEOF
12075 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12076
12077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078 # Save the log message, to keep $0 and so on meaningful, and to
12079 # report actual input values of CONFIG_FILES etc. instead of their
12080 # values after options handling.
12081 ac_log="
12082 This file was extended by libpng $as_me 1.2.50, which was
12083 generated by GNU Autoconf 2.65.  Invocation command line was
12084
12085   CONFIG_FILES    = $CONFIG_FILES
12086   CONFIG_HEADERS  = $CONFIG_HEADERS
12087   CONFIG_LINKS    = $CONFIG_LINKS
12088   CONFIG_COMMANDS = $CONFIG_COMMANDS
12089   $ $0 $@
12090
12091 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12092 "
12093
12094 _ACEOF
12095
12096 case $ac_config_files in *"
12097 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12098 esac
12099
12100 case $ac_config_headers in *"
12101 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12102 esac
12103
12104
12105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106 # Files that config.status was made for.
12107 config_files="$ac_config_files"
12108 config_headers="$ac_config_headers"
12109 config_commands="$ac_config_commands"
12110
12111 _ACEOF
12112
12113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114 ac_cs_usage="\
12115 \`$as_me' instantiates files and other configuration actions
12116 from templates according to the current configuration.  Unless the files
12117 and actions are specified as TAGs, all are instantiated by default.
12118
12119 Usage: $0 [OPTION]... [TAG]...
12120
12121   -h, --help       print this help, then exit
12122   -V, --version    print version number and configuration settings, then exit
12123       --config     print configuration, then exit
12124   -q, --quiet, --silent
12125                    do not print progress messages
12126   -d, --debug      don't remove temporary files
12127       --recheck    update $as_me by reconfiguring in the same conditions
12128       --file=FILE[:TEMPLATE]
12129                    instantiate the configuration file FILE
12130       --header=FILE[:TEMPLATE]
12131                    instantiate the configuration header FILE
12132
12133 Configuration files:
12134 $config_files
12135
12136 Configuration headers:
12137 $config_headers
12138
12139 Configuration commands:
12140 $config_commands
12141
12142 Report bugs to <png-mng-implement@lists.sourceforge.net>."
12143
12144 _ACEOF
12145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12147 ac_cs_version="\\
12148 libpng config.status 1.2.50
12149 configured by $0, generated by GNU Autoconf 2.65,
12150   with options \\"\$ac_cs_config\\"
12151
12152 Copyright (C) 2009 Free Software Foundation, Inc.
12153 This config.status script is free software; the Free Software Foundation
12154 gives unlimited permission to copy, distribute and modify it."
12155
12156 ac_pwd='$ac_pwd'
12157 srcdir='$srcdir'
12158 INSTALL='$INSTALL'
12159 MKDIR_P='$MKDIR_P'
12160 AWK='$AWK'
12161 test -n "\$AWK" || AWK=awk
12162 _ACEOF
12163
12164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12165 # The default lists apply if the user does not specify any file.
12166 ac_need_defaults=:
12167 while test $# != 0
12168 do
12169   case $1 in
12170   --*=*)
12171     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12172     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12173     ac_shift=:
12174     ;;
12175   *)
12176     ac_option=$1
12177     ac_optarg=$2
12178     ac_shift=shift
12179     ;;
12180   esac
12181
12182   case $ac_option in
12183   # Handling of the options.
12184   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12185     ac_cs_recheck=: ;;
12186   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12187     $as_echo "$ac_cs_version"; exit ;;
12188   --config | --confi | --conf | --con | --co | --c )
12189     $as_echo "$ac_cs_config"; exit ;;
12190   --debug | --debu | --deb | --de | --d | -d )
12191     debug=: ;;
12192   --file | --fil | --fi | --f )
12193     $ac_shift
12194     case $ac_optarg in
12195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12196     esac
12197     as_fn_append CONFIG_FILES " '$ac_optarg'"
12198     ac_need_defaults=false;;
12199   --header | --heade | --head | --hea )
12200     $ac_shift
12201     case $ac_optarg in
12202     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12203     esac
12204     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12205     ac_need_defaults=false;;
12206   --he | --h)
12207     # Conflict between --help and --header
12208     as_fn_error "ambiguous option: \`$1'
12209 Try \`$0 --help' for more information.";;
12210   --help | --hel | -h )
12211     $as_echo "$ac_cs_usage"; exit ;;
12212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12213   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12214     ac_cs_silent=: ;;
12215
12216   # This is an error.
12217   -*) as_fn_error "unrecognized option: \`$1'
12218 Try \`$0 --help' for more information." ;;
12219
12220   *) as_fn_append ac_config_targets " $1"
12221      ac_need_defaults=false ;;
12222
12223   esac
12224   shift
12225 done
12226
12227 ac_configure_extra_args=
12228
12229 if $ac_cs_silent; then
12230   exec 6>/dev/null
12231   ac_configure_extra_args="$ac_configure_extra_args --silent"
12232 fi
12233
12234 _ACEOF
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236 if \$ac_cs_recheck; then
12237   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12238   shift
12239   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12240   CONFIG_SHELL='$SHELL'
12241   export CONFIG_SHELL
12242   exec "\$@"
12243 fi
12244
12245 _ACEOF
12246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12247 exec 5>>config.log
12248 {
12249   echo
12250   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12251 ## Running $as_me. ##
12252 _ASBOX
12253   $as_echo "$ac_log"
12254 } >&5
12255
12256 _ACEOF
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258 #
12259 # INIT-COMMANDS
12260 #
12261 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12262
12263
12264 # The HP-UX ksh and POSIX shell print the target directory to stdout
12265 # if CDPATH is set.
12266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12267
12268 sed_quote_subst='$sed_quote_subst'
12269 double_quote_subst='$double_quote_subst'
12270 delay_variable_subst='$delay_variable_subst'
12271 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12272 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12273 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12274 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12275 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12276 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12277 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12278 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12279 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12280 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12281 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12282 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12283 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12284 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12285 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12286 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12287 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12288 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12289 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12290 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12291 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12292 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12293 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12294 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12295 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12296 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12297 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12298 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12299 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12300 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12301 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12302 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12303 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12304 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12305 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12306 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12307 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12308 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12309 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12310 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12311 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12312 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12313 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12314 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12315 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12316 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12317 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"`'
12318 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"`'
12319 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12320 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12321 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12322 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12323 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12324 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12325 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12326 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12327 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12328 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12329 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12330 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12331 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12332 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12333 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12334 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12335 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12336 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12338 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12339 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12340 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12341 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12342 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12343 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12344 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12345 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12346 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12347 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12348 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12349 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12350 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12351 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12352 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12353 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12354 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12355 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12356 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12357 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12358 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12359 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12360 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12361 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12362 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12363 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12364 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12365 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12366 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12367 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12368 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12369 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12370 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12371 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12372 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12373 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12374 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12375 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12376 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12377 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12378 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12379 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12380 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12381 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12382 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12383 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12384 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12385 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12386 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12387 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12388 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12389 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12390 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12391
12392 LTCC='$LTCC'
12393 LTCFLAGS='$LTCFLAGS'
12394 compiler='$compiler_DEFAULT'
12395
12396 # Quote evaled strings.
12397 for var in SED \
12398 GREP \
12399 EGREP \
12400 FGREP \
12401 LD \
12402 NM \
12403 LN_S \
12404 lt_SP2NL \
12405 lt_NL2SP \
12406 reload_flag \
12407 deplibs_check_method \
12408 file_magic_cmd \
12409 AR \
12410 AR_FLAGS \
12411 STRIP \
12412 RANLIB \
12413 CC \
12414 CFLAGS \
12415 compiler \
12416 lt_cv_sys_global_symbol_pipe \
12417 lt_cv_sys_global_symbol_to_cdecl \
12418 lt_cv_sys_global_symbol_to_c_name_address \
12419 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12420 SHELL \
12421 ECHO \
12422 lt_prog_compiler_no_builtin_flag \
12423 lt_prog_compiler_wl \
12424 lt_prog_compiler_pic \
12425 lt_prog_compiler_static \
12426 lt_cv_prog_compiler_c_o \
12427 need_locks \
12428 DSYMUTIL \
12429 NMEDIT \
12430 LIPO \
12431 OTOOL \
12432 OTOOL64 \
12433 shrext_cmds \
12434 export_dynamic_flag_spec \
12435 whole_archive_flag_spec \
12436 compiler_needs_object \
12437 with_gnu_ld \
12438 allow_undefined_flag \
12439 no_undefined_flag \
12440 hardcode_libdir_flag_spec \
12441 hardcode_libdir_flag_spec_ld \
12442 hardcode_libdir_separator \
12443 fix_srcfile_path \
12444 exclude_expsyms \
12445 include_expsyms \
12446 file_list_spec \
12447 variables_saved_for_relink \
12448 libname_spec \
12449 library_names_spec \
12450 soname_spec \
12451 finish_eval \
12452 old_striplib \
12453 striplib; do
12454     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12455     *[\\\\\\\`\\"\\\$]*)
12456       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12457       ;;
12458     *)
12459       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12460       ;;
12461     esac
12462 done
12463
12464 # Double-quote double-evaled strings.
12465 for var in reload_cmds \
12466 old_postinstall_cmds \
12467 old_postuninstall_cmds \
12468 old_archive_cmds \
12469 extract_expsyms_cmds \
12470 old_archive_from_new_cmds \
12471 old_archive_from_expsyms_cmds \
12472 archive_cmds \
12473 archive_expsym_cmds \
12474 module_cmds \
12475 module_expsym_cmds \
12476 export_symbols_cmds \
12477 prelink_cmds \
12478 postinstall_cmds \
12479 postuninstall_cmds \
12480 finish_cmds \
12481 sys_lib_search_path_spec \
12482 sys_lib_dlsearch_path_spec; do
12483     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12484     *[\\\\\\\`\\"\\\$]*)
12485       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12486       ;;
12487     *)
12488       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12489       ;;
12490     esac
12491 done
12492
12493 # Fix-up fallback echo if it was mangled by the above quoting rules.
12494 case \$lt_ECHO in
12495 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12496   ;;
12497 esac
12498
12499 ac_aux_dir='$ac_aux_dir'
12500 xsi_shell='$xsi_shell'
12501 lt_shell_append='$lt_shell_append'
12502
12503 # See if we are running on zsh, and set the options which allow our
12504 # commands through without removal of \ escapes INIT.
12505 if test -n "\${ZSH_VERSION+set}" ; then
12506    setopt NO_GLOB_SUBST
12507 fi
12508
12509
12510     PACKAGE='$PACKAGE'
12511     VERSION='$VERSION'
12512     TIMESTAMP='$TIMESTAMP'
12513     RM='$RM'
12514     ofile='$ofile'
12515
12516
12517
12518
12519 _ACEOF
12520
12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522
12523 # Handling of arguments.
12524 for ac_config_target in $ac_config_targets
12525 do
12526   case $ac_config_target in
12527     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12528     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12529     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12530     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12531     "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
12532     "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
12533
12534   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12535   esac
12536 done
12537
12538
12539 # If the user did not use the arguments to specify the items to instantiate,
12540 # then the envvar interface is used.  Set only those that are not.
12541 # We use the long form for the default assignment because of an extremely
12542 # bizarre bug on SunOS 4.1.3.
12543 if $ac_need_defaults; then
12544   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12545   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12546   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12547 fi
12548
12549 # Have a temporary directory for convenience.  Make it in the build tree
12550 # simply because there is no reason against having it here, and in addition,
12551 # creating and moving files from /tmp can sometimes cause problems.
12552 # Hook for its removal unless debugging.
12553 # Note that there is a small window in which the directory will not be cleaned:
12554 # after its creation but before its name has been assigned to `$tmp'.
12555 $debug ||
12556 {
12557   tmp=
12558   trap 'exit_status=$?
12559   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12560 ' 0
12561   trap 'as_fn_exit 1' 1 2 13 15
12562 }
12563 # Create a (secure) tmp directory for tmp files.
12564
12565 {
12566   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12567   test -n "$tmp" && test -d "$tmp"
12568 }  ||
12569 {
12570   tmp=./conf$$-$RANDOM
12571   (umask 077 && mkdir "$tmp")
12572 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12573
12574 # Set up the scripts for CONFIG_FILES section.
12575 # No need to generate them if there are no CONFIG_FILES.
12576 # This happens for instance with `./config.status config.h'.
12577 if test -n "$CONFIG_FILES"; then
12578
12579
12580 ac_cr=`echo X | tr X '\015'`
12581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12582 # But we know of no other shell where ac_cr would be empty at this
12583 # point, so we can use a bashism as a fallback.
12584 if test "x$ac_cr" = x; then
12585   eval ac_cr=\$\'\\r\'
12586 fi
12587 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12589   ac_cs_awk_cr='\r'
12590 else
12591   ac_cs_awk_cr=$ac_cr
12592 fi
12593
12594 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12595 _ACEOF
12596
12597
12598 {
12599   echo "cat >conf$$subs.awk <<_ACEOF" &&
12600   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12601   echo "_ACEOF"
12602 } >conf$$subs.sh ||
12603   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12604 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12605 ac_delim='%!_!# '
12606 for ac_last_try in false false false false false :; do
12607   . ./conf$$subs.sh ||
12608     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12609
12610   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12611   if test $ac_delim_n = $ac_delim_num; then
12612     break
12613   elif $ac_last_try; then
12614     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12615   else
12616     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12617   fi
12618 done
12619 rm -f conf$$subs.sh
12620
12621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12623 _ACEOF
12624 sed -n '
12625 h
12626 s/^/S["/; s/!.*/"]=/
12627 p
12628 g
12629 s/^[^!]*!//
12630 :repl
12631 t repl
12632 s/'"$ac_delim"'$//
12633 t delim
12634 :nl
12635 h
12636 s/\(.\{148\}\)..*/\1/
12637 t more1
12638 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12639 p
12640 n
12641 b repl
12642 :more1
12643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12644 p
12645 g
12646 s/.\{148\}//
12647 t nl
12648 :delim
12649 h
12650 s/\(.\{148\}\)..*/\1/
12651 t more2
12652 s/["\\]/\\&/g; s/^/"/; s/$/"/
12653 p
12654 b
12655 :more2
12656 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12657 p
12658 g
12659 s/.\{148\}//
12660 t delim
12661 ' <conf$$subs.awk | sed '
12662 /^[^""]/{
12663   N
12664   s/\n//
12665 }
12666 ' >>$CONFIG_STATUS || ac_write_fail=1
12667 rm -f conf$$subs.awk
12668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12669 _ACAWK
12670 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12671   for (key in S) S_is_set[key] = 1
12672   FS = "\a"
12673
12674 }
12675 {
12676   line = $ 0
12677   nfields = split(line, field, "@")
12678   substed = 0
12679   len = length(field[1])
12680   for (i = 2; i < nfields; i++) {
12681     key = field[i]
12682     keylen = length(key)
12683     if (S_is_set[key]) {
12684       value = S[key]
12685       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12686       len += length(value) + length(field[++i])
12687       substed = 1
12688     } else
12689       len += 1 + keylen
12690   }
12691
12692   print line
12693 }
12694
12695 _ACAWK
12696 _ACEOF
12697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12699   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12700 else
12701   cat
12702 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12703   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12704 _ACEOF
12705
12706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12708 # trailing colons and then remove the whole line if VPATH becomes empty
12709 # (actually we leave an empty line to preserve line numbers).
12710 if test "x$srcdir" = x.; then
12711   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12712 s/:*\$(srcdir):*/:/
12713 s/:*\${srcdir}:*/:/
12714 s/:*@srcdir@:*/:/
12715 s/^\([^=]*=[     ]*\):*/\1/
12716 s/:*$//
12717 s/^[^=]*=[       ]*$//
12718 }'
12719 fi
12720
12721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12722 fi # test -n "$CONFIG_FILES"
12723
12724 # Set up the scripts for CONFIG_HEADERS section.
12725 # No need to generate them if there are no CONFIG_HEADERS.
12726 # This happens for instance with `./config.status Makefile'.
12727 if test -n "$CONFIG_HEADERS"; then
12728 cat >"$tmp/defines.awk" <<\_ACAWK ||
12729 BEGIN {
12730 _ACEOF
12731
12732 # Transform confdefs.h into an awk script `defines.awk', embedded as
12733 # here-document in config.status, that substitutes the proper values into
12734 # config.h.in to produce config.h.
12735
12736 # Create a delimiter string that does not exist in confdefs.h, to ease
12737 # handling of long lines.
12738 ac_delim='%!_!# '
12739 for ac_last_try in false false :; do
12740   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12741   if test -z "$ac_t"; then
12742     break
12743   elif $ac_last_try; then
12744     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12745   else
12746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12747   fi
12748 done
12749
12750 # For the awk script, D is an array of macro values keyed by name,
12751 # likewise P contains macro parameters if any.  Preserve backslash
12752 # newline sequences.
12753
12754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12755 sed -n '
12756 s/.\{148\}/&'"$ac_delim"'/g
12757 t rset
12758 :rset
12759 s/^[     ]*#[    ]*define[       ][      ]*/ /
12760 t def
12761 d
12762 :def
12763 s/\\$//
12764 t bsnl
12765 s/["\\]/\\&/g
12766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12767 D["\1"]=" \3"/p
12768 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12769 d
12770 :bsnl
12771 s/["\\]/\\&/g
12772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12773 D["\1"]=" \3\\\\\\n"\\/p
12774 t cont
12775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12776 t cont
12777 d
12778 :cont
12779 n
12780 s/.\{148\}/&'"$ac_delim"'/g
12781 t clear
12782 :clear
12783 s/\\$//
12784 t bsnlc
12785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12786 d
12787 :bsnlc
12788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12789 b cont
12790 ' <confdefs.h | sed '
12791 s/'"$ac_delim"'/"\\\
12792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12793
12794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12795   for (key in D) D_is_set[key] = 1
12796   FS = "\a"
12797 }
12798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12799   line = \$ 0
12800   split(line, arg, " ")
12801   if (arg[1] == "#") {
12802     defundef = arg[2]
12803     mac1 = arg[3]
12804   } else {
12805     defundef = substr(arg[1], 2)
12806     mac1 = arg[2]
12807   }
12808   split(mac1, mac2, "(") #)
12809   macro = mac2[1]
12810   prefix = substr(line, 1, index(line, defundef) - 1)
12811   if (D_is_set[macro]) {
12812     # Preserve the white space surrounding the "#".
12813     print prefix "define", macro P[macro] D[macro]
12814     next
12815   } else {
12816     # Replace #undef with comments.  This is necessary, for example,
12817     # in the case of _POSIX_SOURCE, which is predefined and required
12818     # on some systems where configure will not decide to define it.
12819     if (defundef == "undef") {
12820       print "/*", prefix defundef, macro, "*/"
12821       next
12822     }
12823   }
12824 }
12825 { print }
12826 _ACAWK
12827 _ACEOF
12828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12829   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12830 fi # test -n "$CONFIG_HEADERS"
12831
12832
12833 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12834 shift
12835 for ac_tag
12836 do
12837   case $ac_tag in
12838   :[FHLC]) ac_mode=$ac_tag; continue;;
12839   esac
12840   case $ac_mode$ac_tag in
12841   :[FHL]*:*);;
12842   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12843   :[FH]-) ac_tag=-:-;;
12844   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12845   esac
12846   ac_save_IFS=$IFS
12847   IFS=:
12848   set x $ac_tag
12849   IFS=$ac_save_IFS
12850   shift
12851   ac_file=$1
12852   shift
12853
12854   case $ac_mode in
12855   :L) ac_source=$1;;
12856   :[FH])
12857     ac_file_inputs=
12858     for ac_f
12859     do
12860       case $ac_f in
12861       -) ac_f="$tmp/stdin";;
12862       *) # Look for the file first in the build tree, then in the source tree
12863          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12864          # because $ac_f cannot contain `:'.
12865          test -f "$ac_f" ||
12866            case $ac_f in
12867            [\\/$]*) false;;
12868            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12869            esac ||
12870            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12871       esac
12872       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12873       as_fn_append ac_file_inputs " '$ac_f'"
12874     done
12875
12876     # Let's still pretend it is `configure' which instantiates (i.e., don't
12877     # use $as_me), people would be surprised to read:
12878     #    /* config.h.  Generated by config.status.  */
12879     configure_input='Generated from '`
12880           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12881         `' by configure.'
12882     if test x"$ac_file" != x-; then
12883       configure_input="$ac_file.  $configure_input"
12884       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12885 $as_echo "$as_me: creating $ac_file" >&6;}
12886     fi
12887     # Neutralize special characters interpreted by sed in replacement strings.
12888     case $configure_input in #(
12889     *\&* | *\|* | *\\* )
12890        ac_sed_conf_input=`$as_echo "$configure_input" |
12891        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12892     *) ac_sed_conf_input=$configure_input;;
12893     esac
12894
12895     case $ac_tag in
12896     *:-:* | *:-) cat >"$tmp/stdin" \
12897       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12898     esac
12899     ;;
12900   esac
12901
12902   ac_dir=`$as_dirname -- "$ac_file" ||
12903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12904          X"$ac_file" : 'X\(//\)[^/]' \| \
12905          X"$ac_file" : 'X\(//\)$' \| \
12906          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12907 $as_echo X"$ac_file" |
12908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12909             s//\1/
12910             q
12911           }
12912           /^X\(\/\/\)[^/].*/{
12913             s//\1/
12914             q
12915           }
12916           /^X\(\/\/\)$/{
12917             s//\1/
12918             q
12919           }
12920           /^X\(\/\).*/{
12921             s//\1/
12922             q
12923           }
12924           s/.*/./; q'`
12925   as_dir="$ac_dir"; as_fn_mkdir_p
12926   ac_builddir=.
12927
12928 case "$ac_dir" in
12929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12930 *)
12931   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12932   # A ".." for each directory in $ac_dir_suffix.
12933   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12934   case $ac_top_builddir_sub in
12935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12937   esac ;;
12938 esac
12939 ac_abs_top_builddir=$ac_pwd
12940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12941 # for backward compatibility:
12942 ac_top_builddir=$ac_top_build_prefix
12943
12944 case $srcdir in
12945   .)  # We are building in place.
12946     ac_srcdir=.
12947     ac_top_srcdir=$ac_top_builddir_sub
12948     ac_abs_top_srcdir=$ac_pwd ;;
12949   [\\/]* | ?:[\\/]* )  # Absolute name.
12950     ac_srcdir=$srcdir$ac_dir_suffix;
12951     ac_top_srcdir=$srcdir
12952     ac_abs_top_srcdir=$srcdir ;;
12953   *) # Relative name.
12954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12955     ac_top_srcdir=$ac_top_build_prefix$srcdir
12956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12957 esac
12958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12959
12960
12961   case $ac_mode in
12962   :F)
12963   #
12964   # CONFIG_FILE
12965   #
12966
12967   case $INSTALL in
12968   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12969   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12970   esac
12971   ac_MKDIR_P=$MKDIR_P
12972   case $MKDIR_P in
12973   [\\/$]* | ?:[\\/]* ) ;;
12974   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12975   esac
12976 _ACEOF
12977
12978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12979 # If the template does not know about datarootdir, expand it.
12980 # FIXME: This hack should be removed a few years after 2.60.
12981 ac_datarootdir_hack=; ac_datarootdir_seen=
12982 ac_sed_dataroot='
12983 /datarootdir/ {
12984   p
12985   q
12986 }
12987 /@datadir@/p
12988 /@docdir@/p
12989 /@infodir@/p
12990 /@localedir@/p
12991 /@mandir@/p'
12992 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12993 *datarootdir*) ac_datarootdir_seen=yes;;
12994 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12996 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12997 _ACEOF
12998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12999   ac_datarootdir_hack='
13000   s&@datadir@&$datadir&g
13001   s&@docdir@&$docdir&g
13002   s&@infodir@&$infodir&g
13003   s&@localedir@&$localedir&g
13004   s&@mandir@&$mandir&g
13005   s&\\\${datarootdir}&$datarootdir&g' ;;
13006 esac
13007 _ACEOF
13008
13009 # Neutralize VPATH when `$srcdir' = `.'.
13010 # Shell code in configure.ac might set extrasub.
13011 # FIXME: do we really want to maintain this feature?
13012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013 ac_sed_extra="$ac_vpsub
13014 $extrasub
13015 _ACEOF
13016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13017 :t
13018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13019 s|@configure_input@|$ac_sed_conf_input|;t t
13020 s&@top_builddir@&$ac_top_builddir_sub&;t t
13021 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13022 s&@srcdir@&$ac_srcdir&;t t
13023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13024 s&@top_srcdir@&$ac_top_srcdir&;t t
13025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13026 s&@builddir@&$ac_builddir&;t t
13027 s&@abs_builddir@&$ac_abs_builddir&;t t
13028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13029 s&@INSTALL@&$ac_INSTALL&;t t
13030 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13031 $ac_datarootdir_hack
13032 "
13033 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13034   || as_fn_error "could not create $ac_file" "$LINENO" 5
13035
13036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13037   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13038   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13040 which seems to be undefined.  Please make sure it is defined." >&5
13041 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13042 which seems to be undefined.  Please make sure it is defined." >&2;}
13043
13044   rm -f "$tmp/stdin"
13045   case $ac_file in
13046   -) cat "$tmp/out" && rm -f "$tmp/out";;
13047   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13048   esac \
13049   || as_fn_error "could not create $ac_file" "$LINENO" 5
13050  ;;
13051   :H)
13052   #
13053   # CONFIG_HEADER
13054   #
13055   if test x"$ac_file" != x-; then
13056     {
13057       $as_echo "/* $configure_input  */" \
13058       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13059     } >"$tmp/config.h" \
13060       || as_fn_error "could not create $ac_file" "$LINENO" 5
13061     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13062       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13063 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13064     else
13065       rm -f "$ac_file"
13066       mv "$tmp/config.h" "$ac_file" \
13067         || as_fn_error "could not create $ac_file" "$LINENO" 5
13068     fi
13069   else
13070     $as_echo "/* $configure_input  */" \
13071       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13072       || as_fn_error "could not create -" "$LINENO" 5
13073   fi
13074 # Compute "$ac_file"'s index in $config_headers.
13075 _am_arg="$ac_file"
13076 _am_stamp_count=1
13077 for _am_header in $config_headers :; do
13078   case $_am_header in
13079     $_am_arg | $_am_arg:* )
13080       break ;;
13081     * )
13082       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13083   esac
13084 done
13085 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13086 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13087          X"$_am_arg" : 'X\(//\)[^/]' \| \
13088          X"$_am_arg" : 'X\(//\)$' \| \
13089          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13090 $as_echo X"$_am_arg" |
13091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13092             s//\1/
13093             q
13094           }
13095           /^X\(\/\/\)[^/].*/{
13096             s//\1/
13097             q
13098           }
13099           /^X\(\/\/\)$/{
13100             s//\1/
13101             q
13102           }
13103           /^X\(\/\).*/{
13104             s//\1/
13105             q
13106           }
13107           s/.*/./; q'`/stamp-h$_am_stamp_count
13108  ;;
13109
13110   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13111 $as_echo "$as_me: executing $ac_file commands" >&6;}
13112  ;;
13113   esac
13114
13115
13116   case $ac_file$ac_mode in
13117     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13118   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13119   # are listed without --file.  Let's play safe and only enable the eval
13120   # if we detect the quoting.
13121   case $CONFIG_FILES in
13122   *\'*) eval set x "$CONFIG_FILES" ;;
13123   *)   set x $CONFIG_FILES ;;
13124   esac
13125   shift
13126   for mf
13127   do
13128     # Strip MF so we end up with the name of the file.
13129     mf=`echo "$mf" | sed -e 's/:.*$//'`
13130     # Check whether this is an Automake generated Makefile or not.
13131     # We used to match only the files named `Makefile.in', but
13132     # some people rename them; so instead we look at the file content.
13133     # Grep'ing the first line is not enough: some people post-process
13134     # each Makefile.in and add a new line on top of each file to say so.
13135     # Grep'ing the whole file is not good either: AIX grep has a line
13136     # limit of 2048, but all sed's we know have understand at least 4000.
13137     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13138       dirpart=`$as_dirname -- "$mf" ||
13139 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13140          X"$mf" : 'X\(//\)[^/]' \| \
13141          X"$mf" : 'X\(//\)$' \| \
13142          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13143 $as_echo X"$mf" |
13144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13145             s//\1/
13146             q
13147           }
13148           /^X\(\/\/\)[^/].*/{
13149             s//\1/
13150             q
13151           }
13152           /^X\(\/\/\)$/{
13153             s//\1/
13154             q
13155           }
13156           /^X\(\/\).*/{
13157             s//\1/
13158             q
13159           }
13160           s/.*/./; q'`
13161     else
13162       continue
13163     fi
13164     # Extract the definition of DEPDIR, am__include, and am__quote
13165     # from the Makefile without running `make'.
13166     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13167     test -z "$DEPDIR" && continue
13168     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13169     test -z "am__include" && continue
13170     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13171     # When using ansi2knr, U may be empty or an underscore; expand it
13172     U=`sed -n 's/^U = //p' < "$mf"`
13173     # Find all dependency output files, they are included files with
13174     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13175     # simplest approach to changing $(DEPDIR) to its actual value in the
13176     # expansion.
13177     for file in `sed -n "
13178       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13179          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13180       # Make sure the directory exists.
13181       test -f "$dirpart/$file" && continue
13182       fdir=`$as_dirname -- "$file" ||
13183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13184          X"$file" : 'X\(//\)[^/]' \| \
13185          X"$file" : 'X\(//\)$' \| \
13186          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13187 $as_echo X"$file" |
13188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13189             s//\1/
13190             q
13191           }
13192           /^X\(\/\/\)[^/].*/{
13193             s//\1/
13194             q
13195           }
13196           /^X\(\/\/\)$/{
13197             s//\1/
13198             q
13199           }
13200           /^X\(\/\).*/{
13201             s//\1/
13202             q
13203           }
13204           s/.*/./; q'`
13205       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13206       # echo "creating $dirpart/$file"
13207       echo '# dummy' > "$dirpart/$file"
13208     done
13209   done
13210 }
13211  ;;
13212     "libtool":C)
13213
13214     # See if we are running on zsh, and set the options which allow our
13215     # commands through without removal of \ escapes.
13216     if test -n "${ZSH_VERSION+set}" ; then
13217       setopt NO_GLOB_SUBST
13218     fi
13219
13220     cfgfile="${ofile}T"
13221     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13222     $RM "$cfgfile"
13223
13224     cat <<_LT_EOF >> "$cfgfile"
13225 #! $SHELL
13226
13227 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13228 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13230 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13231 #
13232 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13233 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13234 #   Written by Gordon Matzigkeit, 1996
13235 #
13236 #   This file is part of GNU Libtool.
13237 #
13238 # GNU Libtool is free software; you can redistribute it and/or
13239 # modify it under the terms of the GNU General Public License as
13240 # published by the Free Software Foundation; either version 2 of
13241 # the License, or (at your option) any later version.
13242 #
13243 # As a special exception to the GNU General Public License,
13244 # if you distribute this file as part of a program or library that
13245 # is built using GNU Libtool, you may include this file under the
13246 # same distribution terms that you use for the rest of that program.
13247 #
13248 # GNU Libtool is distributed in the hope that it will be useful,
13249 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13250 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13251 # GNU General Public License for more details.
13252 #
13253 # You should have received a copy of the GNU General Public License
13254 # along with GNU Libtool; see the file COPYING.  If not, a copy
13255 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13256 # obtained by writing to the Free Software Foundation, Inc.,
13257 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13258
13259
13260 # The names of the tagged configurations supported by this script.
13261 available_tags=""
13262
13263 # ### BEGIN LIBTOOL CONFIG
13264
13265 # A sed program that does not truncate output.
13266 SED=$lt_SED
13267
13268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13269 Xsed="\$SED -e 1s/^X//"
13270
13271 # A grep program that handles long lines.
13272 GREP=$lt_GREP
13273
13274 # An ERE matcher.
13275 EGREP=$lt_EGREP
13276
13277 # A literal string matcher.
13278 FGREP=$lt_FGREP
13279
13280 # Assembler program.
13281 AS=$AS
13282
13283 # DLL creation program.
13284 DLLTOOL=$DLLTOOL
13285
13286 # Object dumper program.
13287 OBJDUMP=$OBJDUMP
13288
13289 # Which release of libtool.m4 was used?
13290 macro_version=$macro_version
13291 macro_revision=$macro_revision
13292
13293 # Whether or not to build shared libraries.
13294 build_libtool_libs=$enable_shared
13295
13296 # Whether or not to build static libraries.
13297 build_old_libs=$enable_static
13298
13299 # What type of objects to build.
13300 pic_mode=$pic_mode
13301
13302 # Whether or not to optimize for fast installation.
13303 fast_install=$enable_fast_install
13304
13305 # The host system.
13306 host_alias=$host_alias
13307 host=$host
13308 host_os=$host_os
13309
13310 # The build system.
13311 build_alias=$build_alias
13312 build=$build
13313 build_os=$build_os
13314
13315 # A BSD- or MS-compatible name lister.
13316 NM=$lt_NM
13317
13318 # Whether we need soft or hard links.
13319 LN_S=$lt_LN_S
13320
13321 # What is the maximum length of a command?
13322 max_cmd_len=$max_cmd_len
13323
13324 # Object file suffix (normally "o").
13325 objext=$ac_objext
13326
13327 # Executable file suffix (normally "").
13328 exeext=$exeext
13329
13330 # whether the shell understands "unset".
13331 lt_unset=$lt_unset
13332
13333 # turn spaces into newlines.
13334 SP2NL=$lt_lt_SP2NL
13335
13336 # turn newlines into spaces.
13337 NL2SP=$lt_lt_NL2SP
13338
13339 # How to create reloadable object files.
13340 reload_flag=$lt_reload_flag
13341 reload_cmds=$lt_reload_cmds
13342
13343 # Method to check whether dependent libraries are shared objects.
13344 deplibs_check_method=$lt_deplibs_check_method
13345
13346 # Command to use when deplibs_check_method == "file_magic".
13347 file_magic_cmd=$lt_file_magic_cmd
13348
13349 # The archiver.
13350 AR=$lt_AR
13351 AR_FLAGS=$lt_AR_FLAGS
13352
13353 # A symbol stripping program.
13354 STRIP=$lt_STRIP
13355
13356 # Commands used to install an old-style archive.
13357 RANLIB=$lt_RANLIB
13358 old_postinstall_cmds=$lt_old_postinstall_cmds
13359 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13360
13361 # A C compiler.
13362 LTCC=$lt_CC
13363
13364 # LTCC compiler flags.
13365 LTCFLAGS=$lt_CFLAGS
13366
13367 # Take the output of nm and produce a listing of raw symbols and C names.
13368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13369
13370 # Transform the output of nm in a proper C declaration.
13371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13372
13373 # Transform the output of nm in a C name address pair.
13374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13375
13376 # Transform the output of nm in a C name address pair when lib prefix is needed.
13377 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13378
13379 # The name of the directory that contains temporary libtool files.
13380 objdir=$objdir
13381
13382 # Shell to use when invoking shell scripts.
13383 SHELL=$lt_SHELL
13384
13385 # An echo program that does not interpret backslashes.
13386 ECHO=$lt_ECHO
13387
13388 # Used to examine libraries when file_magic_cmd begins with "file".
13389 MAGIC_CMD=$MAGIC_CMD
13390
13391 # Must we lock files when doing compilation?
13392 need_locks=$lt_need_locks
13393
13394 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13395 DSYMUTIL=$lt_DSYMUTIL
13396
13397 # Tool to change global to local symbols on Mac OS X.
13398 NMEDIT=$lt_NMEDIT
13399
13400 # Tool to manipulate fat objects and archives on Mac OS X.
13401 LIPO=$lt_LIPO
13402
13403 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13404 OTOOL=$lt_OTOOL
13405
13406 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13407 OTOOL64=$lt_OTOOL64
13408
13409 # Old archive suffix (normally "a").
13410 libext=$libext
13411
13412 # Shared library suffix (normally ".so").
13413 shrext_cmds=$lt_shrext_cmds
13414
13415 # The commands to extract the exported symbol list from a shared archive.
13416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13417
13418 # Variables whose values should be saved in libtool wrapper scripts and
13419 # restored at link time.
13420 variables_saved_for_relink=$lt_variables_saved_for_relink
13421
13422 # Do we need the "lib" prefix for modules?
13423 need_lib_prefix=$need_lib_prefix
13424
13425 # Do we need a version for libraries?
13426 need_version=$need_version
13427
13428 # Library versioning type.
13429 version_type=$version_type
13430
13431 # Shared library runtime path variable.
13432 runpath_var=$runpath_var
13433
13434 # Shared library path variable.
13435 shlibpath_var=$shlibpath_var
13436
13437 # Is shlibpath searched before the hard-coded library search path?
13438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13439
13440 # Format of library name prefix.
13441 libname_spec=$lt_libname_spec
13442
13443 # List of archive names.  First name is the real one, the rest are links.
13444 # The last name is the one that the linker finds with -lNAME
13445 library_names_spec=$lt_library_names_spec
13446
13447 # The coded name of the library, if different from the real name.
13448 soname_spec=$lt_soname_spec
13449
13450 # Command to use after installation of a shared archive.
13451 postinstall_cmds=$lt_postinstall_cmds
13452
13453 # Command to use after uninstallation of a shared archive.
13454 postuninstall_cmds=$lt_postuninstall_cmds
13455
13456 # Commands used to finish a libtool library installation in a directory.
13457 finish_cmds=$lt_finish_cmds
13458
13459 # As "finish_cmds", except a single script fragment to be evaled but
13460 # not shown.
13461 finish_eval=$lt_finish_eval
13462
13463 # Whether we should hardcode library paths into libraries.
13464 hardcode_into_libs=$hardcode_into_libs
13465
13466 # Compile-time system search path for libraries.
13467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13468
13469 # Run-time system search path for libraries.
13470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13471
13472 # Whether dlopen is supported.
13473 dlopen_support=$enable_dlopen
13474
13475 # Whether dlopen of programs is supported.
13476 dlopen_self=$enable_dlopen_self
13477
13478 # Whether dlopen of statically linked programs is supported.
13479 dlopen_self_static=$enable_dlopen_self_static
13480
13481 # Commands to strip libraries.
13482 old_striplib=$lt_old_striplib
13483 striplib=$lt_striplib
13484
13485
13486 # The linker used to build libraries.
13487 LD=$lt_LD
13488
13489 # Commands used to build an old-style archive.
13490 old_archive_cmds=$lt_old_archive_cmds
13491
13492 # A language specific compiler.
13493 CC=$lt_compiler
13494
13495 # Is the compiler the GNU compiler?
13496 with_gcc=$GCC
13497
13498 # Compiler flag to turn off builtin functions.
13499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13500
13501 # How to pass a linker flag through the compiler.
13502 wl=$lt_lt_prog_compiler_wl
13503
13504 # Additional compiler flags for building library objects.
13505 pic_flag=$lt_lt_prog_compiler_pic
13506
13507 # Compiler flag to prevent dynamic linking.
13508 link_static_flag=$lt_lt_prog_compiler_static
13509
13510 # Does compiler simultaneously support -c and -o options?
13511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13512
13513 # Whether or not to add -lc for building shared libraries.
13514 build_libtool_need_lc=$archive_cmds_need_lc
13515
13516 # Whether or not to disallow shared libs when runtime libs are static.
13517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13518
13519 # Compiler flag to allow reflexive dlopens.
13520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13521
13522 # Compiler flag to generate shared objects directly from archives.
13523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13524
13525 # Whether the compiler copes with passing no objects directly.
13526 compiler_needs_object=$lt_compiler_needs_object
13527
13528 # Create an old-style archive from a shared archive.
13529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13530
13531 # Create a temporary old-style archive to link instead of a shared archive.
13532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13533
13534 # Commands used to build a shared archive.
13535 archive_cmds=$lt_archive_cmds
13536 archive_expsym_cmds=$lt_archive_expsym_cmds
13537
13538 # Commands used to build a loadable module if different from building
13539 # a shared archive.
13540 module_cmds=$lt_module_cmds
13541 module_expsym_cmds=$lt_module_expsym_cmds
13542
13543 # Whether we are building with GNU ld or not.
13544 with_gnu_ld=$lt_with_gnu_ld
13545
13546 # Flag that allows shared libraries with undefined symbols to be built.
13547 allow_undefined_flag=$lt_allow_undefined_flag
13548
13549 # Flag that enforces no undefined symbols.
13550 no_undefined_flag=$lt_no_undefined_flag
13551
13552 # Flag to hardcode \$libdir into a binary during linking.
13553 # This must work even if \$libdir does not exist
13554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13555
13556 # If ld is used when linking, flag to hardcode \$libdir into a binary
13557 # during linking.  This must work even if \$libdir does not exist.
13558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13559
13560 # Whether we need a single "-rpath" flag with a separated argument.
13561 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13562
13563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13564 # DIR into the resulting binary.
13565 hardcode_direct=$hardcode_direct
13566
13567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13568 # DIR into the resulting binary and the resulting library dependency is
13569 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13570 # library is relocated.
13571 hardcode_direct_absolute=$hardcode_direct_absolute
13572
13573 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13574 # into the resulting binary.
13575 hardcode_minus_L=$hardcode_minus_L
13576
13577 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13578 # into the resulting binary.
13579 hardcode_shlibpath_var=$hardcode_shlibpath_var
13580
13581 # Set to "yes" if building a shared library automatically hardcodes DIR
13582 # into the library and all subsequent libraries and executables linked
13583 # against it.
13584 hardcode_automatic=$hardcode_automatic
13585
13586 # Set to yes if linker adds runtime paths of dependent libraries
13587 # to runtime path list.
13588 inherit_rpath=$inherit_rpath
13589
13590 # Whether libtool must link a program against all its dependency libraries.
13591 link_all_deplibs=$link_all_deplibs
13592
13593 # Fix the shell variable \$srcfile for the compiler.
13594 fix_srcfile_path=$lt_fix_srcfile_path
13595
13596 # Set to "yes" if exported symbols are required.
13597 always_export_symbols=$always_export_symbols
13598
13599 # The commands to list exported symbols.
13600 export_symbols_cmds=$lt_export_symbols_cmds
13601
13602 # Symbols that should not be listed in the preloaded symbols.
13603 exclude_expsyms=$lt_exclude_expsyms
13604
13605 # Symbols that must always be exported.
13606 include_expsyms=$lt_include_expsyms
13607
13608 # Commands necessary for linking programs (against libraries) with templates.
13609 prelink_cmds=$lt_prelink_cmds
13610
13611 # Specify filename containing input files.
13612 file_list_spec=$lt_file_list_spec
13613
13614 # How to hardcode a shared library path into an executable.
13615 hardcode_action=$hardcode_action
13616
13617 # ### END LIBTOOL CONFIG
13618
13619 _LT_EOF
13620
13621   case $host_os in
13622   aix3*)
13623     cat <<\_LT_EOF >> "$cfgfile"
13624 # AIX sometimes has problems with the GCC collect2 program.  For some
13625 # reason, if we set the COLLECT_NAMES environment variable, the problems
13626 # vanish in a puff of smoke.
13627 if test "X${COLLECT_NAMES+set}" != Xset; then
13628   COLLECT_NAMES=
13629   export COLLECT_NAMES
13630 fi
13631 _LT_EOF
13632     ;;
13633   esac
13634
13635
13636 ltmain="$ac_aux_dir/ltmain.sh"
13637
13638
13639   # We use sed instead of cat because bash on DJGPP gets confused if
13640   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13641   # text mode, it properly converts lines to CR/LF.  This bash problem
13642   # is reportedly fixed, but why not run on old versions too?
13643   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13644     || (rm -f "$cfgfile"; exit 1)
13645
13646   case $xsi_shell in
13647   yes)
13648     cat << \_LT_EOF >> "$cfgfile"
13649
13650 # func_dirname file append nondir_replacement
13651 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13652 # otherwise set result to NONDIR_REPLACEMENT.
13653 func_dirname ()
13654 {
13655   case ${1} in
13656     */*) func_dirname_result="${1%/*}${2}" ;;
13657     *  ) func_dirname_result="${3}" ;;
13658   esac
13659 }
13660
13661 # func_basename file
13662 func_basename ()
13663 {
13664   func_basename_result="${1##*/}"
13665 }
13666
13667 # func_dirname_and_basename file append nondir_replacement
13668 # perform func_basename and func_dirname in a single function
13669 # call:
13670 #   dirname:  Compute the dirname of FILE.  If nonempty,
13671 #             add APPEND to the result, otherwise set result
13672 #             to NONDIR_REPLACEMENT.
13673 #             value returned in "$func_dirname_result"
13674 #   basename: Compute filename of FILE.
13675 #             value retuned in "$func_basename_result"
13676 # Implementation must be kept synchronized with func_dirname
13677 # and func_basename. For efficiency, we do not delegate to
13678 # those functions but instead duplicate the functionality here.
13679 func_dirname_and_basename ()
13680 {
13681   case ${1} in
13682     */*) func_dirname_result="${1%/*}${2}" ;;
13683     *  ) func_dirname_result="${3}" ;;
13684   esac
13685   func_basename_result="${1##*/}"
13686 }
13687
13688 # func_stripname prefix suffix name
13689 # strip PREFIX and SUFFIX off of NAME.
13690 # PREFIX and SUFFIX must not contain globbing or regex special
13691 # characters, hashes, percent signs, but SUFFIX may contain a leading
13692 # dot (in which case that matches only a dot).
13693 func_stripname ()
13694 {
13695   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13696   # positional parameters, so assign one to ordinary parameter first.
13697   func_stripname_result=${3}
13698   func_stripname_result=${func_stripname_result#"${1}"}
13699   func_stripname_result=${func_stripname_result%"${2}"}
13700 }
13701
13702 # func_opt_split
13703 func_opt_split ()
13704 {
13705   func_opt_split_opt=${1%%=*}
13706   func_opt_split_arg=${1#*=}
13707 }
13708
13709 # func_lo2o object
13710 func_lo2o ()
13711 {
13712   case ${1} in
13713     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13714     *)    func_lo2o_result=${1} ;;
13715   esac
13716 }
13717
13718 # func_xform libobj-or-source
13719 func_xform ()
13720 {
13721   func_xform_result=${1%.*}.lo
13722 }
13723
13724 # func_arith arithmetic-term...
13725 func_arith ()
13726 {
13727   func_arith_result=$(( $* ))
13728 }
13729
13730 # func_len string
13731 # STRING may not start with a hyphen.
13732 func_len ()
13733 {
13734   func_len_result=${#1}
13735 }
13736
13737 _LT_EOF
13738     ;;
13739   *) # Bourne compatible functions.
13740     cat << \_LT_EOF >> "$cfgfile"
13741
13742 # func_dirname file append nondir_replacement
13743 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13744 # otherwise set result to NONDIR_REPLACEMENT.
13745 func_dirname ()
13746 {
13747   # Extract subdirectory from the argument.
13748   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13749   if test "X$func_dirname_result" = "X${1}"; then
13750     func_dirname_result="${3}"
13751   else
13752     func_dirname_result="$func_dirname_result${2}"
13753   fi
13754 }
13755
13756 # func_basename file
13757 func_basename ()
13758 {
13759   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13760 }
13761
13762
13763 # func_stripname prefix suffix name
13764 # strip PREFIX and SUFFIX off of NAME.
13765 # PREFIX and SUFFIX must not contain globbing or regex special
13766 # characters, hashes, percent signs, but SUFFIX may contain a leading
13767 # dot (in which case that matches only a dot).
13768 # func_strip_suffix prefix name
13769 func_stripname ()
13770 {
13771   case ${2} in
13772     .*) func_stripname_result=`$ECHO "X${3}" \
13773            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13774     *)  func_stripname_result=`$ECHO "X${3}" \
13775            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13776   esac
13777 }
13778
13779 # sed scripts:
13780 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13781 my_sed_long_arg='1s/^-[^=]*=//'
13782
13783 # func_opt_split
13784 func_opt_split ()
13785 {
13786   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13787   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13788 }
13789
13790 # func_lo2o object
13791 func_lo2o ()
13792 {
13793   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13794 }
13795
13796 # func_xform libobj-or-source
13797 func_xform ()
13798 {
13799   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13800 }
13801
13802 # func_arith arithmetic-term...
13803 func_arith ()
13804 {
13805   func_arith_result=`expr "$@"`
13806 }
13807
13808 # func_len string
13809 # STRING may not start with a hyphen.
13810 func_len ()
13811 {
13812   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13813 }
13814
13815 _LT_EOF
13816 esac
13817
13818 case $lt_shell_append in
13819   yes)
13820     cat << \_LT_EOF >> "$cfgfile"
13821
13822 # func_append var value
13823 # Append VALUE to the end of shell variable VAR.
13824 func_append ()
13825 {
13826   eval "$1+=\$2"
13827 }
13828 _LT_EOF
13829     ;;
13830   *)
13831     cat << \_LT_EOF >> "$cfgfile"
13832
13833 # func_append var value
13834 # Append VALUE to the end of shell variable VAR.
13835 func_append ()
13836 {
13837   eval "$1=\$$1\$2"
13838 }
13839
13840 _LT_EOF
13841     ;;
13842   esac
13843
13844
13845   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13846     || (rm -f "$cfgfile"; exit 1)
13847
13848   mv -f "$cfgfile" "$ofile" ||
13849     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13850   chmod +x "$ofile"
13851
13852  ;;
13853     "libpng-config":F) chmod +x libpng-config ;;
13854
13855   esac
13856 done # for ac_tag
13857
13858
13859 as_fn_exit 0
13860 _ACEOF
13861 ac_clean_files=$ac_clean_files_save
13862
13863 test $ac_write_fail = 0 ||
13864   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13865
13866
13867 # configure is writing to config.log, and then calls config.status.
13868 # config.status does its own redirection, appending to config.log.
13869 # Unfortunately, on DOS this fails, as config.log is still kept open
13870 # by configure, so config.status won't be able to write to it; its
13871 # output is simply discarded.  So we exec the FD to /dev/null,
13872 # effectively closing config.log, so it can be properly (re)opened and
13873 # appended to by config.status.  When coming back to configure, we
13874 # need to make the FD available again.
13875 if test "$no_create" != yes; then
13876   ac_cs_success=:
13877   ac_config_status_args=
13878   test "$silent" = yes &&
13879     ac_config_status_args="$ac_config_status_args --quiet"
13880   exec 5>/dev/null
13881   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13882   exec 5>>config.log
13883   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13884   # would make configure fail if this is the last instruction.
13885   $ac_cs_success || as_fn_exit $?
13886 fi
13887 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13888   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13889 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13890 fi
13891