1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libjpeg 7.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='libjpeg'
745PACKAGE_TARNAME='libjpeg'
746PACKAGE_VERSION='7.0'
747PACKAGE_STRING='libjpeg 7.0'
748PACKAGE_BUGREPORT=''
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764#  include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769#  include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790JPEG_LIB_VERSION
791MEMORYMGR
792OTOOL64
793OTOOL
794LIPO
795NMEDIT
796DSYMUTIL
797lt_ECHO
798RANLIB
799AR
800NM
801ac_ct_DUMPBIN
802DUMPBIN
803LD
804FGREP
805SED
806LIBTOOL
807OBJDUMP
808DLLTOOL
809AS
810HAVE_LD_VERSION_SCRIPT_FALSE
811HAVE_LD_VERSION_SCRIPT_TRUE
812LN_S
813MAINT
814MAINTAINER_MODE_FALSE
815MAINTAINER_MODE_TRUE
816ANSI2KNR
817U
818EGREP
819GREP
820CPP
821am__fastdepCC_FALSE
822am__fastdepCC_TRUE
823CCDEPMODE
824AMDEPBACKSLASH
825AMDEP_FALSE
826AMDEP_TRUE
827am__quote
828am__include
829DEPDIR
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837AM_BACKSLASH
838AM_DEFAULT_VERBOSITY
839am__untar
840am__tar
841AMTAR
842am__leading_dot
843SET_MAKE
844AWK
845mkdir_p
846MKDIR_P
847INSTALL_STRIP_PROGRAM
848STRIP
849install_sh
850MAKEINFO
851AUTOHEADER
852AUTOMAKE
853AUTOCONF
854ACLOCAL
855VERSION
856PACKAGE
857CYGPATH_W
858am__isrc
859INSTALL_DATA
860INSTALL_SCRIPT
861INSTALL_PROGRAM
862target_os
863target_vendor
864target_cpu
865target
866host_os
867host_vendor
868host_cpu
869host
870build_os
871build_vendor
872build_cpu
873build
874target_alias
875host_alias
876build_alias
877LIBS
878ECHO_T
879ECHO_N
880ECHO_C
881DEFS
882mandir
883localedir
884libdir
885psdir
886pdfdir
887dvidir
888htmldir
889infodir
890docdir
891oldincludedir
892includedir
893localstatedir
894sharedstatedir
895sysconfdir
896datadir
897datarootdir
898libexecdir
899sbindir
900bindir
901program_transform_name
902prefix
903exec_prefix
904PACKAGE_BUGREPORT
905PACKAGE_STRING
906PACKAGE_VERSION
907PACKAGE_TARNAME
908PACKAGE_NAME
909PATH_SEPARATOR
910SHELL'
911ac_subst_files=''
912ac_user_opts='
913enable_option_checking
914enable_silent_rules
915enable_dependency_tracking
916enable_maintainer_mode
917enable_ld_version_script
918enable_shared
919enable_static
920with_pic
921enable_fast_install
922with_gnu_ld
923enable_libtool_lock
924enable_maxmem
925'
926      ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CPP'
935
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989  # If the previous option needs an argument, assign it.
990  if test -n "$ac_prev"; then
991    eval $ac_prev=\$ac_option
992    ac_prev=
993    continue
994  fi
995
996  case $ac_option in
997  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998  *)	ac_optarg=yes ;;
999  esac
1000
1001  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003  case $ac_dashdash$ac_option in
1004  --)
1005    ac_dashdash=yes ;;
1006
1007  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008    ac_prev=bindir ;;
1009  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010    bindir=$ac_optarg ;;
1011
1012  -build | --build | --buil | --bui | --bu)
1013    ac_prev=build_alias ;;
1014  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015    build_alias=$ac_optarg ;;
1016
1017  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019    ac_prev=cache_file ;;
1020  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022    cache_file=$ac_optarg ;;
1023
1024  --config-cache | -C)
1025    cache_file=config.cache ;;
1026
1027  -datadir | --datadir | --datadi | --datad)
1028    ac_prev=datadir ;;
1029  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030    datadir=$ac_optarg ;;
1031
1032  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033  | --dataroo | --dataro | --datar)
1034    ac_prev=datarootdir ;;
1035  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037    datarootdir=$ac_optarg ;;
1038
1039  -disable-* | --disable-*)
1040    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044   { (exit 1); exit 1; }; }
1045    ac_useropt_orig=$ac_useropt
1046    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047    case $ac_user_opts in
1048      *"
1049"enable_$ac_useropt"
1050"*) ;;
1051      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052	 ac_unrecognized_sep=', ';;
1053    esac
1054    eval enable_$ac_useropt=no ;;
1055
1056  -docdir | --docdir | --docdi | --doc | --do)
1057    ac_prev=docdir ;;
1058  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059    docdir=$ac_optarg ;;
1060
1061  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062    ac_prev=dvidir ;;
1063  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064    dvidir=$ac_optarg ;;
1065
1066  -enable-* | --enable-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071   { (exit 1); exit 1; }; }
1072    ac_useropt_orig=$ac_useropt
1073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074    case $ac_user_opts in
1075      *"
1076"enable_$ac_useropt"
1077"*) ;;
1078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079	 ac_unrecognized_sep=', ';;
1080    esac
1081    eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085  | --exec | --exe | --ex)
1086    ac_prev=exec_prefix ;;
1087  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089  | --exec=* | --exe=* | --ex=*)
1090    exec_prefix=$ac_optarg ;;
1091
1092  -gas | --gas | --ga | --g)
1093    # Obsolete; use --with-gas.
1094    with_gas=yes ;;
1095
1096  -help | --help | --hel | --he | -h)
1097    ac_init_help=long ;;
1098  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099    ac_init_help=recursive ;;
1100  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101    ac_init_help=short ;;
1102
1103  -host | --host | --hos | --ho)
1104    ac_prev=host_alias ;;
1105  -host=* | --host=* | --hos=* | --ho=*)
1106    host_alias=$ac_optarg ;;
1107
1108  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109    ac_prev=htmldir ;;
1110  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111  | --ht=*)
1112    htmldir=$ac_optarg ;;
1113
1114  -includedir | --includedir | --includedi | --included | --include \
1115  | --includ | --inclu | --incl | --inc)
1116    ac_prev=includedir ;;
1117  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118  | --includ=* | --inclu=* | --incl=* | --inc=*)
1119    includedir=$ac_optarg ;;
1120
1121  -infodir | --infodir | --infodi | --infod | --info | --inf)
1122    ac_prev=infodir ;;
1123  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124    infodir=$ac_optarg ;;
1125
1126  -libdir | --libdir | --libdi | --libd)
1127    ac_prev=libdir ;;
1128  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129    libdir=$ac_optarg ;;
1130
1131  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132  | --libexe | --libex | --libe)
1133    ac_prev=libexecdir ;;
1134  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135  | --libexe=* | --libex=* | --libe=*)
1136    libexecdir=$ac_optarg ;;
1137
1138  -localedir | --localedir | --localedi | --localed | --locale)
1139    ac_prev=localedir ;;
1140  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141    localedir=$ac_optarg ;;
1142
1143  -localstatedir | --localstatedir | --localstatedi | --localstated \
1144  | --localstate | --localstat | --localsta | --localst | --locals)
1145    ac_prev=localstatedir ;;
1146  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148    localstatedir=$ac_optarg ;;
1149
1150  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151    ac_prev=mandir ;;
1152  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153    mandir=$ac_optarg ;;
1154
1155  -nfp | --nfp | --nf)
1156    # Obsolete; use --without-fp.
1157    with_fp=no ;;
1158
1159  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160  | --no-cr | --no-c | -n)
1161    no_create=yes ;;
1162
1163  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165    no_recursion=yes ;;
1166
1167  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169  | --oldin | --oldi | --old | --ol | --o)
1170    ac_prev=oldincludedir ;;
1171  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174    oldincludedir=$ac_optarg ;;
1175
1176  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177    ac_prev=prefix ;;
1178  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179    prefix=$ac_optarg ;;
1180
1181  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182  | --program-pre | --program-pr | --program-p)
1183    ac_prev=program_prefix ;;
1184  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186    program_prefix=$ac_optarg ;;
1187
1188  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189  | --program-suf | --program-su | --program-s)
1190    ac_prev=program_suffix ;;
1191  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193    program_suffix=$ac_optarg ;;
1194
1195  -program-transform-name | --program-transform-name \
1196  | --program-transform-nam | --program-transform-na \
1197  | --program-transform-n | --program-transform- \
1198  | --program-transform | --program-transfor \
1199  | --program-transfo | --program-transf \
1200  | --program-trans | --program-tran \
1201  | --progr-tra | --program-tr | --program-t)
1202    ac_prev=program_transform_name ;;
1203  -program-transform-name=* | --program-transform-name=* \
1204  | --program-transform-nam=* | --program-transform-na=* \
1205  | --program-transform-n=* | --program-transform-=* \
1206  | --program-transform=* | --program-transfor=* \
1207  | --program-transfo=* | --program-transf=* \
1208  | --program-trans=* | --program-tran=* \
1209  | --progr-tra=* | --program-tr=* | --program-t=*)
1210    program_transform_name=$ac_optarg ;;
1211
1212  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213    ac_prev=pdfdir ;;
1214  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215    pdfdir=$ac_optarg ;;
1216
1217  -psdir | --psdir | --psdi | --psd | --ps)
1218    ac_prev=psdir ;;
1219  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220    psdir=$ac_optarg ;;
1221
1222  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223  | -silent | --silent | --silen | --sile | --sil)
1224    silent=yes ;;
1225
1226  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227    ac_prev=sbindir ;;
1228  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229  | --sbi=* | --sb=*)
1230    sbindir=$ac_optarg ;;
1231
1232  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234  | --sharedst | --shareds | --shared | --share | --shar \
1235  | --sha | --sh)
1236    ac_prev=sharedstatedir ;;
1237  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240  | --sha=* | --sh=*)
1241    sharedstatedir=$ac_optarg ;;
1242
1243  -site | --site | --sit)
1244    ac_prev=site ;;
1245  -site=* | --site=* | --sit=*)
1246    site=$ac_optarg ;;
1247
1248  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249    ac_prev=srcdir ;;
1250  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251    srcdir=$ac_optarg ;;
1252
1253  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254  | --syscon | --sysco | --sysc | --sys | --sy)
1255    ac_prev=sysconfdir ;;
1256  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258    sysconfdir=$ac_optarg ;;
1259
1260  -target | --target | --targe | --targ | --tar | --ta | --t)
1261    ac_prev=target_alias ;;
1262  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263    target_alias=$ac_optarg ;;
1264
1265  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266    verbose=yes ;;
1267
1268  -version | --version | --versio | --versi | --vers | -V)
1269    ac_init_version=: ;;
1270
1271  -with-* | --with-*)
1272    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276   { (exit 1); exit 1; }; }
1277    ac_useropt_orig=$ac_useropt
1278    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279    case $ac_user_opts in
1280      *"
1281"with_$ac_useropt"
1282"*) ;;
1283      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284	 ac_unrecognized_sep=', ';;
1285    esac
1286    eval with_$ac_useropt=\$ac_optarg ;;
1287
1288  -without-* | --without-*)
1289    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290    # Reject names that are not valid shell variable names.
1291    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293   { (exit 1); exit 1; }; }
1294    ac_useropt_orig=$ac_useropt
1295    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296    case $ac_user_opts in
1297      *"
1298"with_$ac_useropt"
1299"*) ;;
1300      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301	 ac_unrecognized_sep=', ';;
1302    esac
1303    eval with_$ac_useropt=no ;;
1304
1305  --x)
1306    # Obsolete; use --with-x.
1307    with_x=yes ;;
1308
1309  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310  | --x-incl | --x-inc | --x-in | --x-i)
1311    ac_prev=x_includes ;;
1312  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314    x_includes=$ac_optarg ;;
1315
1316  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318    ac_prev=x_libraries ;;
1319  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321    x_libraries=$ac_optarg ;;
1322
1323  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1324Try \`$0 --help' for more information." >&2
1325   { (exit 1); exit 1; }; }
1326    ;;
1327
1328  *=*)
1329    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330    # Reject names that are not valid shell variable names.
1331    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333   { (exit 1); exit 1; }; }
1334    eval $ac_envvar=\$ac_optarg
1335    export $ac_envvar ;;
1336
1337  *)
1338    # FIXME: should be removed in autoconf 3.0.
1339    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343    ;;
1344
1345  esac
1346done
1347
1348if test -n "$ac_prev"; then
1349  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1351   { (exit 1); exit 1; }; }
1352fi
1353
1354if test -n "$ac_unrecognized_opts"; then
1355  case $enable_option_checking in
1356    no) ;;
1357    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1358   { (exit 1); exit 1; }; } ;;
1359    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360  esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365		datadir sysconfdir sharedstatedir localstatedir includedir \
1366		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367		libdir localedir mandir
1368do
1369  eval ac_val=\$$ac_var
1370  # Remove trailing slashes.
1371  case $ac_val in
1372    */ )
1373      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374      eval $ac_var=\$ac_val;;
1375  esac
1376  # Be sure to have absolute directory names.
1377  case $ac_val in
1378    [\\/$]* | ?:[\\/]* )  continue;;
1379    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380  esac
1381  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382   { (exit 1); exit 1; }; }
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394  if test "x$build_alias" = x; then
1395    cross_compiling=maybe
1396    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397    If a cross compiler is detected then cross compile mode will be used." >&2
1398  elif test "x$build_alias" != "x$host_alias"; then
1399    cross_compiling=yes
1400  fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
1407
1408
1409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1413   { (exit 1); exit 1; }; }
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416   { (exit 1); exit 1; }; }
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425	 X"$as_myself" : 'X\(//\)[^/]' \| \
1426	 X"$as_myself" : 'X\(//\)$' \| \
1427	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)[^/].*/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\).*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1456   { (exit 1); exit 1; }; }
1457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1461   { (exit 1); exit 1; }; }
1462	pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465  srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_env_${ac_var}_value=\$${ac_var}
1476  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484  # Omit some internal or obsolete options to make the list less imposing.
1485  # This message is too long to be a string in the A/UX 3.1 sh.
1486  cat <<_ACEOF
1487\`configure' configures libjpeg 7.0 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497  -h, --help              display this help and exit
1498      --help=short        display options specific to this package
1499      --help=recursive    display the short help of all the included packages
1500  -V, --version           display version information and exit
1501  -q, --quiet, --silent   do not print \`checking...' messages
1502      --cache-file=FILE   cache test results in FILE [disabled]
1503  -C, --config-cache      alias for \`--cache-file=config.cache'
1504  -n, --no-create         do not create output files
1505      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508  --prefix=PREFIX         install architecture-independent files in PREFIX
1509                          [$ac_default_prefix]
1510  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                          [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521  --bindir=DIR            user executables [EPREFIX/bin]
1522  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527  --libdir=DIR            object code libraries [EPREFIX/lib]
1528  --includedir=DIR        C header files [PREFIX/include]
1529  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1530  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1531  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1532  --infodir=DIR           info documentation [DATAROOTDIR/info]
1533  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1534  --mandir=DIR            man documentation [DATAROOTDIR/man]
1535  --docdir=DIR            documentation root [DATAROOTDIR/doc/libjpeg]
1536  --htmldir=DIR           html documentation [DOCDIR]
1537  --dvidir=DIR            dvi documentation [DOCDIR]
1538  --pdfdir=DIR            pdf documentation [DOCDIR]
1539  --psdir=DIR             ps documentation [DOCDIR]
1540_ACEOF
1541
1542  cat <<\_ACEOF
1543
1544Program names:
1545  --program-prefix=PREFIX            prepend PREFIX to installed program names
1546  --program-suffix=SUFFIX            append SUFFIX to installed program names
1547  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1548
1549System types:
1550  --build=BUILD     configure for building on BUILD [guessed]
1551  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1552  --target=TARGET   configure for building compilers for TARGET [HOST]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of libjpeg 7.0:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-option-checking  ignore unrecognized --enable/--with options
1564  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566  --enable-silent-rules          less verbose build output (undo: `make V=1')
1567  --disable-silent-rules         verbose build output (undo: `make V=0')
1568  --disable-dependency-tracking  speeds up one-time build
1569  --enable-dependency-tracking   do not reject slow dependency extractors
1570  --enable-maintainer-mode  enable make rules and dependencies not useful
1571			  (and sometimes confusing) to the casual installer
1572  --enable-ld-version-script
1573                          enable linker version script (default is enabled
1574                          when possible)
1575  --enable-shared[=PKGS]  build shared libraries [default=yes]
1576  --enable-static[=PKGS]  build static libraries [default=yes]
1577  --enable-fast-install[=PKGS]
1578                          optimize for fast installation [default=yes]
1579  --disable-libtool-lock  avoid locking (might break parallel builds)
1580  --enable-maxmem=N     enable use of temp files, set max mem usage to N MB
1581
1582Optional Packages:
1583  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585  --with-pic              try to use only PIC/non-PIC objects [default=use
1586                          both]
1587  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588
1589Some influential environment variables:
1590  CC          C compiler command
1591  CFLAGS      C compiler flags
1592  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593              nonstandard directory <lib dir>
1594  LIBS        libraries to pass to the linker, e.g. -l<library>
1595  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596              you have headers in a nonstandard directory <include dir>
1597  CPP         C preprocessor
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607  # If there are subdirs, report their specific --help.
1608  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609    test -d "$ac_dir" ||
1610      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611      continue
1612    ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618  # A ".." for each directory in $ac_dir_suffix.
1619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620  case $ac_top_builddir_sub in
1621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623  esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631  .)  # We are building in place.
1632    ac_srcdir=.
1633    ac_top_srcdir=$ac_top_builddir_sub
1634    ac_abs_top_srcdir=$ac_pwd ;;
1635  [\\/]* | ?:[\\/]* )  # Absolute name.
1636    ac_srcdir=$srcdir$ac_dir_suffix;
1637    ac_top_srcdir=$srcdir
1638    ac_abs_top_srcdir=$srcdir ;;
1639  *) # Relative name.
1640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641    ac_top_srcdir=$ac_top_build_prefix$srcdir
1642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646    cd "$ac_dir" || { ac_status=$?; continue; }
1647    # Check for guested configure.
1648    if test -f "$ac_srcdir/configure.gnu"; then
1649      echo &&
1650      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651    elif test -f "$ac_srcdir/configure"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure" --help=recursive
1654    else
1655      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656    fi || ac_status=$?
1657    cd "$ac_pwd" || { ac_status=$?; break; }
1658  done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663  cat <<\_ACEOF
1664libjpeg configure 7.0
1665generated by GNU Autoconf 2.63
1666
1667Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16682002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
1672  exit
1673fi
1674cat >config.log <<_ACEOF
1675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
1678It was created by libjpeg $as_me 7.0, which was
1679generated by GNU Autoconf 2.63.  Invocation command line was
1680
1681  $ $0 $@
1682
1683_ACEOF
1684exec 5>>config.log
1685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1699
1700/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1701/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1704/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1705/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1706/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713  IFS=$as_save_IFS
1714  test -z "$as_dir" && as_dir=.
1715  $as_echo "PATH: $as_dir"
1716done
1717IFS=$as_save_IFS
1718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
1733# Strip out --silent because we don't want to record it for future runs.
1734# Also quote any args containing shell meta-characters.
1735# Make two passes to allow for proper duplicate-argument suppression.
1736ac_configure_args=
1737ac_configure_args0=
1738ac_configure_args1=
1739ac_must_keep_next=false
1740for ac_pass in 1 2
1741do
1742  for ac_arg
1743  do
1744    case $ac_arg in
1745    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747    | -silent | --silent | --silen | --sile | --sil)
1748      continue ;;
1749    *\'*)
1750      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751    esac
1752    case $ac_pass in
1753    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754    2)
1755      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756      if test $ac_must_keep_next = true; then
1757	ac_must_keep_next=false # Got value, back to normal.
1758      else
1759	case $ac_arg in
1760	  *=* | --config-cache | -C | -disable-* | --disable-* \
1761	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763	  | -with-* | --with-* | -without-* | --without-* | --x)
1764	    case "$ac_configure_args0 " in
1765	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766	    esac
1767	    ;;
1768	  -* ) ac_must_keep_next=true ;;
1769	esac
1770      fi
1771      ac_configure_args="$ac_configure_args '$ac_arg'"
1772      ;;
1773    esac
1774  done
1775done
1776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log.  We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
1782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784trap 'exit_status=$?
1785  # Save into config.log some information that might help in debugging.
1786  {
1787    echo
1788
1789    cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794    echo
1795    # The following way of writing the cache mishandles newlines in values,
1796(
1797  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798    eval ac_val=\$$ac_var
1799    case $ac_val in #(
1800    *${as_nl}*)
1801      case $ac_var in #(
1802      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1803$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1804      esac
1805      case $ac_var in #(
1806      _ | IFS | as_nl) ;; #(
1807      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808      *) $as_unset $ac_var ;;
1809      esac ;;
1810    esac
1811  done
1812  (set) 2>&1 |
1813    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814    *${as_nl}ac_space=\ *)
1815      sed -n \
1816	"s/'\''/'\''\\\\'\'''\''/g;
1817	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818      ;; #(
1819    *)
1820      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821      ;;
1822    esac |
1823    sort
1824)
1825    echo
1826
1827    cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832    echo
1833    for ac_var in $ac_subst_vars
1834    do
1835      eval ac_val=\$$ac_var
1836      case $ac_val in
1837      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838      esac
1839      $as_echo "$ac_var='\''$ac_val'\''"
1840    done | sort
1841    echo
1842
1843    if test -n "$ac_subst_files"; then
1844      cat <<\_ASBOX
1845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
1848_ASBOX
1849      echo
1850      for ac_var in $ac_subst_files
1851      do
1852	eval ac_val=\$$ac_var
1853	case $ac_val in
1854	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855	esac
1856	$as_echo "$ac_var='\''$ac_val'\''"
1857      done | sort
1858      echo
1859    fi
1860
1861    if test -s confdefs.h; then
1862      cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867      echo
1868      cat confdefs.h
1869      echo
1870    fi
1871    test "$ac_signal" != 0 &&
1872      $as_echo "$as_me: caught signal $ac_signal"
1873    $as_echo "$as_me: exit $exit_status"
1874  } >&5
1875  rm -f core *.core core.conftest.* &&
1876    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877    exit $exit_status
1878' 0
1879for ac_signal in 1 2 13 15; do
1880  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
1885rm -f -r conftest* confdefs.h
1886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer an explicitly selected file to automatically selected ones.
1916ac_site_file1=NONE
1917ac_site_file2=NONE
1918if test -n "$CONFIG_SITE"; then
1919  ac_site_file1=$CONFIG_SITE
1920elif test "x$prefix" != xNONE; then
1921  ac_site_file1=$prefix/share/config.site
1922  ac_site_file2=$prefix/etc/config.site
1923else
1924  ac_site_file1=$ac_default_prefix/share/config.site
1925  ac_site_file2=$ac_default_prefix/etc/config.site
1926fi
1927for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928do
1929  test "x$ac_site_file" = xNONE && continue
1930  if test -r "$ac_site_file"; then
1931    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933    sed 's/^/| /' "$ac_site_file" >&5
1934    . "$ac_site_file"
1935  fi
1936done
1937
1938if test -r "$cache_file"; then
1939  # Some versions of bash will fail to source /dev/null (special
1940  # files actually), so we avoid doing that.
1941  if test -f "$cache_file"; then
1942    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943$as_echo "$as_me: loading cache $cache_file" >&6;}
1944    case $cache_file in
1945      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946      *)                      . "./$cache_file";;
1947    esac
1948  fi
1949else
1950  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951$as_echo "$as_me: creating cache $cache_file" >&6;}
1952  >$cache_file
1953fi
1954
1955# Check that the precious variables saved in the cache have kept the same
1956# value.
1957ac_cache_corrupted=false
1958for ac_var in $ac_precious_vars; do
1959  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960  eval ac_new_set=\$ac_env_${ac_var}_set
1961  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962  eval ac_new_val=\$ac_env_${ac_var}_value
1963  case $ac_old_set,$ac_new_set in
1964    set,)
1965      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967      ac_cache_corrupted=: ;;
1968    ,set)
1969      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971      ac_cache_corrupted=: ;;
1972    ,);;
1973    *)
1974      if test "x$ac_old_val" != "x$ac_new_val"; then
1975	# differences in whitespace do not lead to failure.
1976	ac_old_val_w=`echo x $ac_old_val`
1977	ac_new_val_w=`echo x $ac_new_val`
1978	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981	  ac_cache_corrupted=:
1982	else
1983	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985	  eval $ac_var=\$ac_old_val
1986	fi
1987	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1988$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1989	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1990$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1991      fi;;
1992  esac
1993  # Pass precious variables to config.status.
1994  if test "$ac_new_set" = set; then
1995    case $ac_new_val in
1996    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997    *) ac_arg=$ac_var=$ac_new_val ;;
1998    esac
1999    case " $ac_configure_args " in
2000      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2001      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002    esac
2003  fi
2004done
2005if $ac_cache_corrupted; then
2006  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2008  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2009$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2011$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2012   { (exit 1); exit 1; }; }
2013fi
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044
2045
2046
2047# Directory where autotools helper scripts lives.
2048ac_aux_dir=
2049for ac_dir in . "$srcdir"/.; do
2050  if test -f "$ac_dir/install-sh"; then
2051    ac_aux_dir=$ac_dir
2052    ac_install_sh="$ac_aux_dir/install-sh -c"
2053    break
2054  elif test -f "$ac_dir/install.sh"; then
2055    ac_aux_dir=$ac_dir
2056    ac_install_sh="$ac_aux_dir/install.sh -c"
2057    break
2058  elif test -f "$ac_dir/shtool"; then
2059    ac_aux_dir=$ac_dir
2060    ac_install_sh="$ac_aux_dir/shtool install -c"
2061    break
2062  fi
2063done
2064if test -z "$ac_aux_dir"; then
2065  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2066$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2067   { (exit 1); exit 1; }; }
2068fi
2069
2070# These three variables are undocumented and unsupported,
2071# and are intended to be withdrawn in a future Autoconf release.
2072# They can cause serious problems if a builder's source tree is in a directory
2073# whose full name contains unusual characters.
2074ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2075ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2076ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2077
2078
2079
2080# Generate configuration headers.
2081ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2082
2083
2084# Hack: disable autoheader so that it doesn't overwrite our cfg template.
2085AUTOHEADER="echo autoheader ignored"
2086
2087# Check system type
2088# Make sure we can run config.sub.
2089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092   { (exit 1); exit 1; }; }
2093
2094{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2095$as_echo_n "checking build system type... " >&6; }
2096if test "${ac_cv_build+set}" = set; then
2097  $as_echo_n "(cached) " >&6
2098else
2099  ac_build_alias=$build_alias
2100test "x$ac_build_alias" = x &&
2101  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102test "x$ac_build_alias" = x &&
2103  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105   { (exit 1); exit 1; }; }
2106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109   { (exit 1); exit 1; }; }
2110
2111fi
2112{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113$as_echo "$ac_cv_build" >&6; }
2114case $ac_cv_build in
2115*-*-*) ;;
2116*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2118   { (exit 1); exit 1; }; };;
2119esac
2120build=$ac_cv_build
2121ac_save_IFS=$IFS; IFS='-'
2122set x $ac_cv_build
2123shift
2124build_cpu=$1
2125build_vendor=$2
2126shift; shift
2127# Remember, the first character of IFS is used to create $*,
2128# except with old shells:
2129build_os=$*
2130IFS=$ac_save_IFS
2131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2132
2133
2134{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2135$as_echo_n "checking host system type... " >&6; }
2136if test "${ac_cv_host+set}" = set; then
2137  $as_echo_n "(cached) " >&6
2138else
2139  if test "x$host_alias" = x; then
2140  ac_cv_host=$ac_cv_build
2141else
2142  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148fi
2149{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150$as_echo "$ac_cv_host" >&6; }
2151case $ac_cv_host in
2152*-*-*) ;;
2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2155   { (exit 1); exit 1; }; };;
2156esac
2157host=$ac_cv_host
2158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_host
2160shift
2161host_cpu=$1
2162host_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166host_os=$*
2167IFS=$ac_save_IFS
2168case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169
2170
2171{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2172$as_echo_n "checking target system type... " >&6; }
2173if test "${ac_cv_target+set}" = set; then
2174  $as_echo_n "(cached) " >&6
2175else
2176  if test "x$target_alias" = x; then
2177  ac_cv_target=$ac_cv_host
2178else
2179  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2180    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2182   { (exit 1); exit 1; }; }
2183fi
2184
2185fi
2186{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187$as_echo "$ac_cv_target" >&6; }
2188case $ac_cv_target in
2189*-*-*) ;;
2190*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2192   { (exit 1); exit 1; }; };;
2193esac
2194target=$ac_cv_target
2195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_target
2197shift
2198target_cpu=$1
2199target_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203target_os=$*
2204IFS=$ac_save_IFS
2205case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2206
2207
2208# The aliases save the names the user supplied, while $host etc.
2209# will get canonicalized.
2210test -n "$target_alias" &&
2211  test "$program_prefix$program_suffix$program_transform_name" = \
2212    NONENONEs,x,x, &&
2213  program_prefix=${target_alias}-
2214
2215# Initialize Automake
2216# Don't require all the GNU mandated files
2217am__api_version='1.11'
2218
2219# Find a good install program.  We prefer a C program (faster),
2220# so one script is as good as another.  But avoid the broken or
2221# incompatible versions:
2222# SysV /etc/install, /usr/sbin/install
2223# SunOS /usr/etc/install
2224# IRIX /sbin/install
2225# AIX /bin/install
2226# AmigaOS /C/install, which installs bootblocks on floppy discs
2227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230# OS/2's system install, which has a completely different semantic
2231# ./install, which can be erroneously created by make from ./install.sh.
2232# Reject install programs that cannot install multiple files.
2233{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2234$as_echo_n "checking for a BSD-compatible install... " >&6; }
2235if test -z "$INSTALL"; then
2236if test "${ac_cv_path_install+set}" = set; then
2237  $as_echo_n "(cached) " >&6
2238else
2239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242  IFS=$as_save_IFS
2243  test -z "$as_dir" && as_dir=.
2244  # Account for people who put trailing slashes in PATH elements.
2245case $as_dir/ in
2246  ./ | .// | /cC/* | \
2247  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2249  /usr/ucb/* ) ;;
2250  *)
2251    # OSF1 and SCO ODT 3.0 have their own names for install.
2252    # Don't use installbsd from OSF since it installs stuff as root
2253    # by default.
2254    for ac_prog in ginstall scoinst install; do
2255      for ac_exec_ext in '' $ac_executable_extensions; do
2256	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2257	  if test $ac_prog = install &&
2258	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259	    # AIX install.  It has an incompatible calling convention.
2260	    :
2261	  elif test $ac_prog = install &&
2262	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263	    # program-specific install script used by HP pwplus--don't use.
2264	    :
2265	  else
2266	    rm -rf conftest.one conftest.two conftest.dir
2267	    echo one > conftest.one
2268	    echo two > conftest.two
2269	    mkdir conftest.dir
2270	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2271	      test -s conftest.one && test -s conftest.two &&
2272	      test -s conftest.dir/conftest.one &&
2273	      test -s conftest.dir/conftest.two
2274	    then
2275	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276	      break 3
2277	    fi
2278	  fi
2279	fi
2280      done
2281    done
2282    ;;
2283esac
2284
2285done
2286IFS=$as_save_IFS
2287
2288rm -rf conftest.one conftest.two conftest.dir
2289
2290fi
2291  if test "${ac_cv_path_install+set}" = set; then
2292    INSTALL=$ac_cv_path_install
2293  else
2294    # As a last resort, use the slow shell script.  Don't cache a
2295    # value for INSTALL within a source directory, because that will
2296    # break other packages using the cache if that directory is
2297    # removed, or if the value is a relative name.
2298    INSTALL=$ac_install_sh
2299  fi
2300fi
2301{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2302$as_echo "$INSTALL" >&6; }
2303
2304# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305# It thinks the first close brace ends the variable substitution.
2306test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307
2308test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309
2310test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311
2312{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2313$as_echo_n "checking whether build environment is sane... " >&6; }
2314# Just in case
2315sleep 1
2316echo timestamp > conftest.file
2317# Reject unsafe characters in $srcdir or the absolute working directory
2318# name.  Accept space and tab only in the latter.
2319am_lf='
2320'
2321case `pwd` in
2322  *[\\\"\#\$\&\'\`$am_lf]*)
2323    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2324$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2325   { (exit 1); exit 1; }; };;
2326esac
2327case $srcdir in
2328  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2329    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2330$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2331   { (exit 1); exit 1; }; };;
2332esac
2333
2334# Do `set' in a subshell so we don't clobber the current shell's
2335# arguments.  Must try -L first in case configure is actually a
2336# symlink; some systems play weird games with the mod time of symlinks
2337# (eg FreeBSD returns the mod time of the symlink's containing
2338# directory).
2339if (
2340   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2341   if test "$*" = "X"; then
2342      # -L didn't work.
2343      set X `ls -t "$srcdir/configure" conftest.file`
2344   fi
2345   rm -f conftest.file
2346   if test "$*" != "X $srcdir/configure conftest.file" \
2347      && test "$*" != "X conftest.file $srcdir/configure"; then
2348
2349      # If neither matched, then we have a broken ls.  This can happen
2350      # if, for instance, CONFIG_SHELL is bash and it inherits a
2351      # broken ls alias from the environment.  This has actually
2352      # happened.  Such a system could not be considered "sane".
2353      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2354alias in your environment" >&5
2355$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2356alias in your environment" >&2;}
2357   { (exit 1); exit 1; }; }
2358   fi
2359
2360   test "$2" = conftest.file
2361   )
2362then
2363   # Ok.
2364   :
2365else
2366   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2367Check your system clock" >&5
2368$as_echo "$as_me: error: newly created file is older than distributed files!
2369Check your system clock" >&2;}
2370   { (exit 1); exit 1; }; }
2371fi
2372{ $as_echo "$as_me:$LINENO: result: yes" >&5
2373$as_echo "yes" >&6; }
2374test "$program_prefix" != NONE &&
2375  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2376# Use a double $ so make ignores it.
2377test "$program_suffix" != NONE &&
2378  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2379# Double any \ or $.
2380# By default was `s,x,x', remove it if useless.
2381ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2382program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2383
2384# expand $ac_aux_dir to an absolute path
2385am_aux_dir=`cd $ac_aux_dir && pwd`
2386
2387if test x"${MISSING+set}" != xset; then
2388  case $am_aux_dir in
2389  *\ * | *\	*)
2390    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2391  *)
2392    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2393  esac
2394fi
2395# Use eval to expand $SHELL
2396if eval "$MISSING --run true"; then
2397  am_missing_run="$MISSING --run "
2398else
2399  am_missing_run=
2400  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2401$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2402fi
2403
2404if test x"${install_sh}" != xset; then
2405  case $am_aux_dir in
2406  *\ * | *\	*)
2407    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2408  *)
2409    install_sh="\${SHELL} $am_aux_dir/install-sh"
2410  esac
2411fi
2412
2413# Installed binaries are usually stripped using `strip' when the user
2414# run `make install-strip'.  However `strip' might not be the right
2415# tool to use in cross-compilation environments, therefore Automake
2416# will honor the `STRIP' environment variable to overrule this program.
2417if test "$cross_compiling" != no; then
2418  if test -n "$ac_tool_prefix"; then
2419  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2420set dummy ${ac_tool_prefix}strip; ac_word=$2
2421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2422$as_echo_n "checking for $ac_word... " >&6; }
2423if test "${ac_cv_prog_STRIP+set}" = set; then
2424  $as_echo_n "(cached) " >&6
2425else
2426  if test -n "$STRIP"; then
2427  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2428else
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432  IFS=$as_save_IFS
2433  test -z "$as_dir" && as_dir=.
2434  for ac_exec_ext in '' $ac_executable_extensions; do
2435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2437    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438    break 2
2439  fi
2440done
2441done
2442IFS=$as_save_IFS
2443
2444fi
2445fi
2446STRIP=$ac_cv_prog_STRIP
2447if test -n "$STRIP"; then
2448  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2449$as_echo "$STRIP" >&6; }
2450else
2451  { $as_echo "$as_me:$LINENO: result: no" >&5
2452$as_echo "no" >&6; }
2453fi
2454
2455
2456fi
2457if test -z "$ac_cv_prog_STRIP"; then
2458  ac_ct_STRIP=$STRIP
2459  # Extract the first word of "strip", so it can be a program name with args.
2460set dummy strip; ac_word=$2
2461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2464  $as_echo_n "(cached) " >&6
2465else
2466  if test -n "$ac_ct_STRIP"; then
2467  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474  for ac_exec_ext in '' $ac_executable_extensions; do
2475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476    ac_cv_prog_ac_ct_STRIP="strip"
2477    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2487if test -n "$ac_ct_STRIP"; then
2488  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2489$as_echo "$ac_ct_STRIP" >&6; }
2490else
2491  { $as_echo "$as_me:$LINENO: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495  if test "x$ac_ct_STRIP" = x; then
2496    STRIP=":"
2497  else
2498    case $cross_compiling:$ac_tool_warned in
2499yes:)
2500{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2502ac_tool_warned=yes ;;
2503esac
2504    STRIP=$ac_ct_STRIP
2505  fi
2506else
2507  STRIP="$ac_cv_prog_STRIP"
2508fi
2509
2510fi
2511INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2512
2513{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2514$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2515if test -z "$MKDIR_P"; then
2516  if test "${ac_cv_path_mkdir+set}" = set; then
2517  $as_echo_n "(cached) " >&6
2518else
2519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524  for ac_prog in mkdir gmkdir; do
2525	 for ac_exec_ext in '' $ac_executable_extensions; do
2526	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2527	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2528	     'mkdir (GNU coreutils) '* | \
2529	     'mkdir (coreutils) '* | \
2530	     'mkdir (fileutils) '4.1*)
2531	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2532	       break 3;;
2533	   esac
2534	 done
2535       done
2536done
2537IFS=$as_save_IFS
2538
2539fi
2540
2541  if test "${ac_cv_path_mkdir+set}" = set; then
2542    MKDIR_P="$ac_cv_path_mkdir -p"
2543  else
2544    # As a last resort, use the slow shell script.  Don't cache a
2545    # value for MKDIR_P within a source directory, because that will
2546    # break other packages using the cache if that directory is
2547    # removed, or if the value is a relative name.
2548    test -d ./--version && rmdir ./--version
2549    MKDIR_P="$ac_install_sh -d"
2550  fi
2551fi
2552{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2553$as_echo "$MKDIR_P" >&6; }
2554
2555mkdir_p="$MKDIR_P"
2556case $mkdir_p in
2557  [\\/$]* | ?:[\\/]*) ;;
2558  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2559esac
2560
2561for ac_prog in gawk mawk nawk awk
2562do
2563  # Extract the first word of "$ac_prog", so it can be a program name with args.
2564set dummy $ac_prog; ac_word=$2
2565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
2567if test "${ac_cv_prog_AWK+set}" = set; then
2568  $as_echo_n "(cached) " >&6
2569else
2570  if test -n "$AWK"; then
2571  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578  for ac_exec_ext in '' $ac_executable_extensions; do
2579  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580    ac_cv_prog_AWK="$ac_prog"
2581    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582    break 2
2583  fi
2584done
2585done
2586IFS=$as_save_IFS
2587
2588fi
2589fi
2590AWK=$ac_cv_prog_AWK
2591if test -n "$AWK"; then
2592  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2593$as_echo "$AWK" >&6; }
2594else
2595  { $as_echo "$as_me:$LINENO: result: no" >&5
2596$as_echo "no" >&6; }
2597fi
2598
2599
2600  test -n "$AWK" && break
2601done
2602
2603{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2604$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2605set x ${MAKE-make}
2606ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2607if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2608  $as_echo_n "(cached) " >&6
2609else
2610  cat >conftest.make <<\_ACEOF
2611SHELL = /bin/sh
2612all:
2613	@echo '@@@%%%=$(MAKE)=@@@%%%'
2614_ACEOF
2615# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2616case `${MAKE-make} -f conftest.make 2>/dev/null` in
2617  *@@@%%%=?*=@@@%%%*)
2618    eval ac_cv_prog_make_${ac_make}_set=yes;;
2619  *)
2620    eval ac_cv_prog_make_${ac_make}_set=no;;
2621esac
2622rm -f conftest.make
2623fi
2624if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2625  { $as_echo "$as_me:$LINENO: result: yes" >&5
2626$as_echo "yes" >&6; }
2627  SET_MAKE=
2628else
2629  { $as_echo "$as_me:$LINENO: result: no" >&5
2630$as_echo "no" >&6; }
2631  SET_MAKE="MAKE=${MAKE-make}"
2632fi
2633
2634rm -rf .tst 2>/dev/null
2635mkdir .tst 2>/dev/null
2636if test -d .tst; then
2637  am__leading_dot=.
2638else
2639  am__leading_dot=_
2640fi
2641rmdir .tst 2>/dev/null
2642
2643if test "`cd $srcdir && pwd`" != "`pwd`"; then
2644  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2645  # is not polluted with repeated "-I."
2646  am__isrc=' -I$(srcdir)'
2647  # test to see if srcdir already configured
2648  if test -f $srcdir/config.status; then
2649    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2650$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2651   { (exit 1); exit 1; }; }
2652  fi
2653fi
2654
2655# test whether we have cygpath
2656if test -z "$CYGPATH_W"; then
2657  if (cygpath --version) >/dev/null 2>/dev/null; then
2658    CYGPATH_W='cygpath -w'
2659  else
2660    CYGPATH_W=echo
2661  fi
2662fi
2663
2664
2665# Define the identity of the package.
2666 PACKAGE='libjpeg'
2667 VERSION='7.0'
2668
2669
2670cat >>confdefs.h <<_ACEOF
2671#define PACKAGE "$PACKAGE"
2672_ACEOF
2673
2674
2675cat >>confdefs.h <<_ACEOF
2676#define VERSION "$VERSION"
2677_ACEOF
2678
2679# Some tools Automake needs.
2680
2681ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2682
2683
2684AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2685
2686
2687AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2688
2689
2690AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2691
2692
2693MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2694
2695# We need awk for the "check" target.  The system "awk" is bad on
2696# some platforms.
2697# Always define AMTAR for backward compatibility.
2698
2699AMTAR=${AMTAR-"${am_missing_run}tar"}
2700
2701am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2702
2703
2704
2705
2706
2707
2708# Make --enable-silent-rules the default.
2709# To get verbose build output you may configure
2710# with --disable-silent-rules or use "make V=1".
2711# Check whether --enable-silent-rules was given.
2712if test "${enable_silent_rules+set}" = set; then
2713  enableval=$enable_silent_rules;
2714fi
2715
2716case $enable_silent_rules in
2717yes) AM_DEFAULT_VERBOSITY=0;;
2718no)  AM_DEFAULT_VERBOSITY=1;;
2719*)   AM_DEFAULT_VERBOSITY=0;;
2720esac
2721AM_BACKSLASH='\'
2722
2723
2724# This is required when using the de-ANSI-fication feature.
2725DEPDIR="${am__leading_dot}deps"
2726
2727ac_config_commands="$ac_config_commands depfiles"
2728
2729
2730am_make=${MAKE-make}
2731cat > confinc << 'END'
2732am__doit:
2733	@echo this is the am__doit target
2734.PHONY: am__doit
2735END
2736# If we don't find an include directive, just comment out the code.
2737{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2738$as_echo_n "checking for style of include used by $am_make... " >&6; }
2739am__include="#"
2740am__quote=
2741_am_result=none
2742# First try GNU make style include.
2743echo "include confinc" > confmf
2744# Ignore all kinds of additional output from `make'.
2745case `$am_make -s -f confmf 2> /dev/null` in #(
2746*the\ am__doit\ target*)
2747  am__include=include
2748  am__quote=
2749  _am_result=GNU
2750  ;;
2751esac
2752# Now try BSD make style include.
2753if test "$am__include" = "#"; then
2754   echo '.include "confinc"' > confmf
2755   case `$am_make -s -f confmf 2> /dev/null` in #(
2756   *the\ am__doit\ target*)
2757     am__include=.include
2758     am__quote="\""
2759     _am_result=BSD
2760     ;;
2761   esac
2762fi
2763
2764
2765{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2766$as_echo "$_am_result" >&6; }
2767rm -f confinc confmf
2768
2769# Check whether --enable-dependency-tracking was given.
2770if test "${enable_dependency_tracking+set}" = set; then
2771  enableval=$enable_dependency_tracking;
2772fi
2773
2774if test "x$enable_dependency_tracking" != xno; then
2775  am_depcomp="$ac_aux_dir/depcomp"
2776  AMDEPBACKSLASH='\'
2777fi
2778 if test "x$enable_dependency_tracking" != xno; then
2779  AMDEP_TRUE=
2780  AMDEP_FALSE='#'
2781else
2782  AMDEP_TRUE='#'
2783  AMDEP_FALSE=
2784fi
2785
2786
2787ac_ext=c
2788ac_cpp='$CPP $CPPFLAGS'
2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792if test -n "$ac_tool_prefix"; then
2793  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_CC+set}" = set; then
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$CC"; then
2801  ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808  for ac_exec_ext in '' $ac_executable_extensions; do
2809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2823$as_echo "$CC" >&6; }
2824else
2825  { $as_echo "$as_me:$LINENO: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$ac_cv_prog_CC"; then
2832  ac_ct_CC=$CC
2833  # Extract the first word of "gcc", so it can be a program name with args.
2834set dummy gcc; ac_word=$2
2835{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$ac_ct_CC"; then
2841  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848  for ac_exec_ext in '' $ac_executable_extensions; do
2849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850    ac_cv_prog_ac_ct_CC="gcc"
2851    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861if test -n "$ac_ct_CC"; then
2862  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863$as_echo "$ac_ct_CC" >&6; }
2864else
2865  { $as_echo "$as_me:$LINENO: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869  if test "x$ac_ct_CC" = x; then
2870    CC=""
2871  else
2872    case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876ac_tool_warned=yes ;;
2877esac
2878    CC=$ac_ct_CC
2879  fi
2880else
2881  CC="$ac_cv_prog_CC"
2882fi
2883
2884if test -z "$CC"; then
2885          if test -n "$ac_tool_prefix"; then
2886    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887set dummy ${ac_tool_prefix}cc; ac_word=$2
2888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2889$as_echo_n "checking for $ac_word... " >&6; }
2890if test "${ac_cv_prog_CC+set}" = set; then
2891  $as_echo_n "(cached) " >&6
2892else
2893  if test -n "$CC"; then
2894  ac_cv_prog_CC="$CC" # Let the user override the test.
2895else
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  test -z "$as_dir" && as_dir=.
2901  for ac_exec_ext in '' $ac_executable_extensions; do
2902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903    ac_cv_prog_CC="${ac_tool_prefix}cc"
2904    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905    break 2
2906  fi
2907done
2908done
2909IFS=$as_save_IFS
2910
2911fi
2912fi
2913CC=$ac_cv_prog_CC
2914if test -n "$CC"; then
2915  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2916$as_echo "$CC" >&6; }
2917else
2918  { $as_echo "$as_me:$LINENO: result: no" >&5
2919$as_echo "no" >&6; }
2920fi
2921
2922
2923  fi
2924fi
2925if test -z "$CC"; then
2926  # Extract the first word of "cc", so it can be a program name with args.
2927set dummy cc; ac_word=$2
2928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if test "${ac_cv_prog_CC+set}" = set; then
2931  $as_echo_n "(cached) " >&6
2932else
2933  if test -n "$CC"; then
2934  ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
2936  ac_prog_rejected=no
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942  for ac_exec_ext in '' $ac_executable_extensions; do
2943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945       ac_prog_rejected=yes
2946       continue
2947     fi
2948    ac_cv_prog_CC="cc"
2949    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953done
2954IFS=$as_save_IFS
2955
2956if test $ac_prog_rejected = yes; then
2957  # We found a bogon in the path, so make sure we never use it.
2958  set dummy $ac_cv_prog_CC
2959  shift
2960  if test $# != 0; then
2961    # We chose a different compiler from the bogus one.
2962    # However, it has the same basename, so the bogon will be chosen
2963    # first if we set CC to just the basename; use the full file name.
2964    shift
2965    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2966  fi
2967fi
2968fi
2969fi
2970CC=$ac_cv_prog_CC
2971if test -n "$CC"; then
2972  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2973$as_echo "$CC" >&6; }
2974else
2975  { $as_echo "$as_me:$LINENO: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979
2980fi
2981if test -z "$CC"; then
2982  if test -n "$ac_tool_prefix"; then
2983  for ac_prog in cl.exe
2984  do
2985    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988$as_echo_n "checking for $ac_word... " >&6; }
2989if test "${ac_cv_prog_CC+set}" = set; then
2990  $as_echo_n "(cached) " >&6
2991else
2992  if test -n "$CC"; then
2993  ac_cv_prog_CC="$CC" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998  IFS=$as_save_IFS
2999  test -z "$as_dir" && as_dir=.
3000  for ac_exec_ext in '' $ac_executable_extensions; do
3001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004    break 2
3005  fi
3006done
3007done
3008IFS=$as_save_IFS
3009
3010fi
3011fi
3012CC=$ac_cv_prog_CC
3013if test -n "$CC"; then
3014  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3015$as_echo "$CC" >&6; }
3016else
3017  { $as_echo "$as_me:$LINENO: result: no" >&5
3018$as_echo "no" >&6; }
3019fi
3020
3021
3022    test -n "$CC" && break
3023  done
3024fi
3025if test -z "$CC"; then
3026  ac_ct_CC=$CC
3027  for ac_prog in cl.exe
3028do
3029  # Extract the first word of "$ac_prog", so it can be a program name with args.
3030set dummy $ac_prog; ac_word=$2
3031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
3033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3034  $as_echo_n "(cached) " >&6
3035else
3036  if test -n "$ac_ct_CC"; then
3037  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042  IFS=$as_save_IFS
3043  test -z "$as_dir" && as_dir=.
3044  for ac_exec_ext in '' $ac_executable_extensions; do
3045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046    ac_cv_prog_ac_ct_CC="$ac_prog"
3047    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051done
3052IFS=$as_save_IFS
3053
3054fi
3055fi
3056ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057if test -n "$ac_ct_CC"; then
3058  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3059$as_echo "$ac_ct_CC" >&6; }
3060else
3061  { $as_echo "$as_me:$LINENO: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065
3066  test -n "$ac_ct_CC" && break
3067done
3068
3069  if test "x$ac_ct_CC" = x; then
3070    CC=""
3071  else
3072    case $cross_compiling:$ac_tool_warned in
3073yes:)
3074{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076ac_tool_warned=yes ;;
3077esac
3078    CC=$ac_ct_CC
3079  fi
3080fi
3081
3082fi
3083
3084
3085test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3088See \`config.log' for more details." >&5
3089$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3090See \`config.log' for more details." >&2;}
3091   { (exit 1); exit 1; }; }; }
3092
3093# Provide some information about the compiler.
3094$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3095set X $ac_compile
3096ac_compiler=$2
3097{ (ac_try="$ac_compiler --version >&5"
3098case "(($ac_try" in
3099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100  *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103$as_echo "$ac_try_echo") >&5
3104  (eval "$ac_compiler --version >&5") 2>&5
3105  ac_status=$?
3106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }
3108{ (ac_try="$ac_compiler -v >&5"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114$as_echo "$ac_try_echo") >&5
3115  (eval "$ac_compiler -v >&5") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }
3119{ (ac_try="$ac_compiler -V >&5"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3125$as_echo "$ac_try_echo") >&5
3126  (eval "$ac_compiler -V >&5") 2>&5
3127  ac_status=$?
3128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }
3130
3131cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h.  */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h.  */
3137
3138int
3139main ()
3140{
3141
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146ac_clean_files_save=$ac_clean_files
3147ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3148# Try to create an executable without -o first, disregard a.out.
3149# It will help us diagnose broken compilers, and finding out an intuition
3150# of exeext.
3151{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3152$as_echo_n "checking for C compiler default output file name... " >&6; }
3153ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3154
3155# The possible output files:
3156ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3157
3158ac_rmfiles=
3159for ac_file in $ac_files
3160do
3161  case $ac_file in
3162    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3163    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3164  esac
3165done
3166rm -f $ac_rmfiles
3167
3168if { (ac_try="$ac_link_default"
3169case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3174$as_echo "$ac_try_echo") >&5
3175  (eval "$ac_link_default") 2>&5
3176  ac_status=$?
3177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); }; then
3179  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3180# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3181# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3182# so that the user can short-circuit this test for compilers unknown to
3183# Autoconf.
3184for ac_file in $ac_files ''
3185do
3186  test -f "$ac_file" || continue
3187  case $ac_file in
3188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3189	;;
3190    [ab].out )
3191	# We found the default executable, but exeext='' is most
3192	# certainly right.
3193	break;;
3194    *.* )
3195        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3196	then :; else
3197	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198	fi
3199	# We set ac_cv_exeext here because the later test for it is not
3200	# safe: cross compilers may not add the suffix if given an `-o'
3201	# argument, so we may need to know it at that point already.
3202	# Even if this section looks crufty: it has the advantage of
3203	# actually working.
3204	break;;
3205    * )
3206	break;;
3207  esac
3208done
3209test "$ac_cv_exeext" = no && ac_cv_exeext=
3210
3211else
3212  ac_file=''
3213fi
3214
3215{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3216$as_echo "$ac_file" >&6; }
3217if test -z "$ac_file"; then
3218  $as_echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
3221{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3224See \`config.log' for more details." >&5
3225$as_echo "$as_me: error: C compiler cannot create executables
3226See \`config.log' for more details." >&2;}
3227   { (exit 77); exit 77; }; }; }
3228fi
3229
3230ac_exeext=$ac_cv_exeext
3231
3232# Check that the compiler produces executables we can run.  If not, either
3233# the compiler is broken, or we cross compile.
3234{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3235$as_echo_n "checking whether the C compiler works... " >&6; }
3236# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3237# If not cross compiling, check that we can run a simple program.
3238if test "$cross_compiling" != yes; then
3239  if { ac_try='./$ac_file'
3240  { (case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245$as_echo "$ac_try_echo") >&5
3246  (eval "$ac_try") 2>&5
3247  ac_status=$?
3248  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); }; }; then
3250    cross_compiling=no
3251  else
3252    if test "$cross_compiling" = maybe; then
3253	cross_compiling=yes
3254    else
3255	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3258If you meant to cross compile, use \`--host'.
3259See \`config.log' for more details." >&5
3260$as_echo "$as_me: error: cannot run C compiled programs.
3261If you meant to cross compile, use \`--host'.
3262See \`config.log' for more details." >&2;}
3263   { (exit 1); exit 1; }; }; }
3264    fi
3265  fi
3266fi
3267{ $as_echo "$as_me:$LINENO: result: yes" >&5
3268$as_echo "yes" >&6; }
3269
3270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271ac_clean_files=$ac_clean_files_save
3272# Check that the compiler produces executables we can run.  If not, either
3273# the compiler is broken, or we cross compile.
3274{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3275$as_echo_n "checking whether we are cross compiling... " >&6; }
3276{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3277$as_echo "$cross_compiling" >&6; }
3278
3279{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3280$as_echo_n "checking for suffix of executables... " >&6; }
3281if { (ac_try="$ac_link"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287$as_echo "$ac_try_echo") >&5
3288  (eval "$ac_link") 2>&5
3289  ac_status=$?
3290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; then
3292  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3293# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3294# work properly (i.e., refer to `conftest.exe'), while it won't with
3295# `rm'.
3296for ac_file in conftest.exe conftest conftest.*; do
3297  test -f "$ac_file" || continue
3298  case $ac_file in
3299    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3300    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301	  break;;
3302    * ) break;;
3303  esac
3304done
3305else
3306  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309See \`config.log' for more details." >&5
3310$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311See \`config.log' for more details." >&2;}
3312   { (exit 1); exit 1; }; }; }
3313fi
3314
3315rm -f conftest$ac_cv_exeext
3316{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317$as_echo "$ac_cv_exeext" >&6; }
3318
3319rm -f conftest.$ac_ext
3320EXEEXT=$ac_cv_exeext
3321ac_exeext=$EXEEXT
3322{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323$as_echo_n "checking for suffix of object files... " >&6; }
3324if test "${ac_cv_objext+set}" = set; then
3325  $as_echo_n "(cached) " >&6
3326else
3327  cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h.  */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342rm -f conftest.o conftest.obj
3343if { (ac_try="$ac_compile"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349$as_echo "$ac_try_echo") >&5
3350  (eval "$ac_compile") 2>&5
3351  ac_status=$?
3352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); }; then
3354  for ac_file in conftest.o conftest.obj conftest.*; do
3355  test -f "$ac_file" || continue;
3356  case $ac_file in
3357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3358    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3359       break;;
3360  esac
3361done
3362else
3363  $as_echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3369See \`config.log' for more details." >&5
3370$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3371See \`config.log' for more details." >&2;}
3372   { (exit 1); exit 1; }; }; }
3373fi
3374
3375rm -f conftest.$ac_cv_objext conftest.$ac_ext
3376fi
3377{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3378$as_echo "$ac_cv_objext" >&6; }
3379OBJEXT=$ac_cv_objext
3380ac_objext=$OBJEXT
3381{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3382$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3383if test "${ac_cv_c_compiler_gnu+set}" = set; then
3384  $as_echo_n "(cached) " >&6
3385else
3386  cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h.  */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h.  */
3392
3393int
3394main ()
3395{
3396#ifndef __GNUC__
3397       choke me
3398#endif
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404rm -f conftest.$ac_objext
3405if { (ac_try="$ac_compile"
3406case "(($ac_try" in
3407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408  *) ac_try_echo=$ac_try;;
3409esac
3410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3411$as_echo "$ac_try_echo") >&5
3412  (eval "$ac_compile") 2>conftest.er1
3413  ac_status=$?
3414  grep -v '^ *+' conftest.er1 >conftest.err
3415  rm -f conftest.er1
3416  cat conftest.err >&5
3417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); } && {
3419	 test -z "$ac_c_werror_flag" ||
3420	 test ! -s conftest.err
3421       } && test -s conftest.$ac_objext; then
3422  ac_compiler_gnu=yes
3423else
3424  $as_echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427	ac_compiler_gnu=no
3428fi
3429
3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431ac_cv_c_compiler_gnu=$ac_compiler_gnu
3432
3433fi
3434{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3435$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436if test $ac_compiler_gnu = yes; then
3437  GCC=yes
3438else
3439  GCC=
3440fi
3441ac_test_CFLAGS=${CFLAGS+set}
3442ac_save_CFLAGS=$CFLAGS
3443{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3444$as_echo_n "checking whether $CC accepts -g... " >&6; }
3445if test "${ac_cv_prog_cc_g+set}" = set; then
3446  $as_echo_n "(cached) " >&6
3447else
3448  ac_save_c_werror_flag=$ac_c_werror_flag
3449   ac_c_werror_flag=yes
3450   ac_cv_prog_cc_g=no
3451   CFLAGS="-g"
3452   cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h.  */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h.  */
3458
3459int
3460main ()
3461{
3462
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext
3468if { (ac_try="$ac_compile"
3469case "(($ac_try" in
3470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471  *) ac_try_echo=$ac_try;;
3472esac
3473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474$as_echo "$ac_try_echo") >&5
3475  (eval "$ac_compile") 2>conftest.er1
3476  ac_status=$?
3477  grep -v '^ *+' conftest.er1 >conftest.err
3478  rm -f conftest.er1
3479  cat conftest.err >&5
3480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); } && {
3482	 test -z "$ac_c_werror_flag" ||
3483	 test ! -s conftest.err
3484       } && test -s conftest.$ac_objext; then
3485  ac_cv_prog_cc_g=yes
3486else
3487  $as_echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490	CFLAGS=""
3491      cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497
3498int
3499main ()
3500{
3501
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (ac_try="$ac_compile"
3508case "(($ac_try" in
3509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510  *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513$as_echo "$ac_try_echo") >&5
3514  (eval "$ac_compile") 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } && {
3521	 test -z "$ac_c_werror_flag" ||
3522	 test ! -s conftest.err
3523       } && test -s conftest.$ac_objext; then
3524  :
3525else
3526  $as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529	ac_c_werror_flag=$ac_save_c_werror_flag
3530	 CFLAGS="-g"
3531	 cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (ac_try="$ac_compile"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3553$as_echo "$ac_try_echo") >&5
3554  (eval "$ac_compile") 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } && {
3561	 test -z "$ac_c_werror_flag" ||
3562	 test ! -s conftest.err
3563       } && test -s conftest.$ac_objext; then
3564  ac_cv_prog_cc_g=yes
3565else
3566  $as_echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569
3570fi
3571
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
3574
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579   ac_c_werror_flag=$ac_save_c_werror_flag
3580fi
3581{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3582$as_echo "$ac_cv_prog_cc_g" >&6; }
3583if test "$ac_test_CFLAGS" = set; then
3584  CFLAGS=$ac_save_CFLAGS
3585elif test $ac_cv_prog_cc_g = yes; then
3586  if test "$GCC" = yes; then
3587    CFLAGS="-g -O2"
3588  else
3589    CFLAGS="-g"
3590  fi
3591else
3592  if test "$GCC" = yes; then
3593    CFLAGS="-O2"
3594  else
3595    CFLAGS=
3596  fi
3597fi
3598{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3599$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3600if test "${ac_cv_prog_cc_c89+set}" = set; then
3601  $as_echo_n "(cached) " >&6
3602else
3603  ac_cv_prog_cc_c89=no
3604ac_save_CC=$CC
3605cat >conftest.$ac_ext <<_ACEOF
3606/* confdefs.h.  */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h.  */
3611#include <stdarg.h>
3612#include <stdio.h>
3613#include <sys/types.h>
3614#include <sys/stat.h>
3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3616struct buf { int x; };
3617FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618static char *e (p, i)
3619     char **p;
3620     int i;
3621{
3622  return p[i];
3623}
3624static char *f (char * (*g) (char **, int), char **p, ...)
3625{
3626  char *s;
3627  va_list v;
3628  va_start (v,p);
3629  s = g (p, va_arg (v,int));
3630  va_end (v);
3631  return s;
3632}
3633
3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3635   function prototypes and stuff, but not '\xHH' hex character constants.
3636   These don't provoke an error unfortunately, instead are silently treated
3637   as 'x'.  The following induces an error, until -std is added to get
3638   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3639   array size at least.  It's necessary to write '\x00'==0 to get something
3640   that's true only with -std.  */
3641int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644   inside strings and character constants.  */
3645#define FOO(x) 'x'
3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648int test (int i, double x);
3649struct s1 {int (*f) (int a);};
3650struct s2 {int (*f) (double a);};
3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652int argc;
3653char **argv;
3654int
3655main ()
3656{
3657return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664do
3665  CC="$ac_save_CC $ac_arg"
3666  rm -f conftest.$ac_objext
3667if { (ac_try="$ac_compile"
3668case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3673$as_echo "$ac_try_echo") >&5
3674  (eval "$ac_compile") 2>conftest.er1
3675  ac_status=$?
3676  grep -v '^ *+' conftest.er1 >conftest.err
3677  rm -f conftest.er1
3678  cat conftest.err >&5
3679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); } && {
3681	 test -z "$ac_c_werror_flag" ||
3682	 test ! -s conftest.err
3683       } && test -s conftest.$ac_objext; then
3684  ac_cv_prog_cc_c89=$ac_arg
3685else
3686  $as_echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689
3690fi
3691
3692rm -f core conftest.err conftest.$ac_objext
3693  test "x$ac_cv_prog_cc_c89" != "xno" && break
3694done
3695rm -f conftest.$ac_ext
3696CC=$ac_save_CC
3697
3698fi
3699# AC_CACHE_VAL
3700case "x$ac_cv_prog_cc_c89" in
3701  x)
3702    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3703$as_echo "none needed" >&6; } ;;
3704  xno)
3705    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3706$as_echo "unsupported" >&6; } ;;
3707  *)
3708    CC="$CC $ac_cv_prog_cc_c89"
3709    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3710$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711esac
3712
3713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720depcc="$CC"   am_compiler_list=
3721
3722{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3723$as_echo_n "checking dependency style of $depcc... " >&6; }
3724if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3725  $as_echo_n "(cached) " >&6
3726else
3727  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3728  # We make a subdir and do the tests there.  Otherwise we can end up
3729  # making bogus files that we don't know about and never remove.  For
3730  # instance it was reported that on HP-UX the gcc test will end up
3731  # making a dummy file named `D' -- because `-MD' means `put the output
3732  # in D'.
3733  mkdir conftest.dir
3734  # Copy depcomp to subdir because otherwise we won't find it if we're
3735  # using a relative directory.
3736  cp "$am_depcomp" conftest.dir
3737  cd conftest.dir
3738  # We will build objects and dependencies in a subdirectory because
3739  # it helps to detect inapplicable dependency modes.  For instance
3740  # both Tru64's cc and ICC support -MD to output dependencies as a
3741  # side effect of compilation, but ICC will put the dependencies in
3742  # the current directory while Tru64 will put them in the object
3743  # directory.
3744  mkdir sub
3745
3746  am_cv_CC_dependencies_compiler_type=none
3747  if test "$am_compiler_list" = ""; then
3748     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3749  fi
3750  am__universal=false
3751  case " $depcc " in #(
3752     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3753     esac
3754
3755  for depmode in $am_compiler_list; do
3756    # Setup a source with many dependencies, because some compilers
3757    # like to wrap large dependency lists on column 80 (with \), and
3758    # we should not choose a depcomp mode which is confused by this.
3759    #
3760    # We need to recreate these files for each test, as the compiler may
3761    # overwrite some of them when testing with obscure command lines.
3762    # This happens at least with the AIX C compiler.
3763    : > sub/conftest.c
3764    for i in 1 2 3 4 5 6; do
3765      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3766      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3767      # Solaris 8's {/usr,}/bin/sh.
3768      touch sub/conftst$i.h
3769    done
3770    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3771
3772    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3773    # mode.  It turns out that the SunPro C++ compiler does not properly
3774    # handle `-M -o', and we need to detect this.  Also, some Intel
3775    # versions had trouble with output in subdirs
3776    am__obj=sub/conftest.${OBJEXT-o}
3777    am__minus_obj="-o $am__obj"
3778    case $depmode in
3779    gcc)
3780      # This depmode causes a compiler race in universal mode.
3781      test "$am__universal" = false || continue
3782      ;;
3783    nosideeffect)
3784      # after this tag, mechanisms are not by side-effect, so they'll
3785      # only be used when explicitly requested
3786      if test "x$enable_dependency_tracking" = xyes; then
3787	continue
3788      else
3789	break
3790      fi
3791      ;;
3792    msvisualcpp | msvcmsys)
3793      # This compiler won't grok `-c -o', but also, the minuso test has
3794      # not run yet.  These depmodes are late enough in the game, and
3795      # so weak that their functioning should not be impacted.
3796      am__obj=conftest.${OBJEXT-o}
3797      am__minus_obj=
3798      ;;
3799    none) break ;;
3800    esac
3801    if depmode=$depmode \
3802       source=sub/conftest.c object=$am__obj \
3803       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3804       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3805         >/dev/null 2>conftest.err &&
3806       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3807       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3808       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3809       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3810      # icc doesn't choke on unknown options, it will just issue warnings
3811      # or remarks (even with -Werror).  So we grep stderr for any message
3812      # that says an option was ignored or not supported.
3813      # When given -MP, icc 7.0 and 7.1 complain thusly:
3814      #   icc: Command line warning: ignoring option '-M'; no argument required
3815      # The diagnosis changed in icc 8.0:
3816      #   icc: Command line remark: option '-MP' not supported
3817      if (grep 'ignoring option' conftest.err ||
3818          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3819        am_cv_CC_dependencies_compiler_type=$depmode
3820        break
3821      fi
3822    fi
3823  done
3824
3825  cd ..
3826  rm -rf conftest.dir
3827else
3828  am_cv_CC_dependencies_compiler_type=none
3829fi
3830
3831fi
3832{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3833$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3834CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3835
3836 if
3837  test "x$enable_dependency_tracking" != xno \
3838  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3839  am__fastdepCC_TRUE=
3840  am__fastdepCC_FALSE='#'
3841else
3842  am__fastdepCC_TRUE='#'
3843  am__fastdepCC_FALSE=
3844fi
3845
3846
3847{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
3848$as_echo_n "checking for function prototypes... " >&6; }
3849if test "$ac_cv_prog_cc_c89" != no; then
3850  { $as_echo "$as_me:$LINENO: result: yes" >&5
3851$as_echo "yes" >&6; }
3852
3853cat >>confdefs.h <<\_ACEOF
3854#define PROTOTYPES 1
3855_ACEOF
3856
3857
3858cat >>confdefs.h <<\_ACEOF
3859#define __PROTOTYPES 1
3860_ACEOF
3861
3862else
3863  { $as_echo "$as_me:$LINENO: result: no" >&5
3864$as_echo "no" >&6; }
3865fi
3866
3867
3868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874$as_echo_n "checking how to run the C preprocessor... " >&6; }
3875# On Suns, sometimes $CPP names a directory.
3876if test -n "$CPP" && test -d "$CPP"; then
3877  CPP=
3878fi
3879if test -z "$CPP"; then
3880  if test "${ac_cv_prog_CPP+set}" = set; then
3881  $as_echo_n "(cached) " >&6
3882else
3883      # Double quotes because CPP needs to be expanded
3884    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3885    do
3886      ac_preproc_ok=false
3887for ac_c_preproc_warn_flag in '' yes
3888do
3889  # Use a header file that comes with gcc, so configuring glibc
3890  # with a fresh cross-compiler works.
3891  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892  # <limits.h> exists even on freestanding compilers.
3893  # On the NeXT, cc -E runs the code through the compiler's parser,
3894  # not just through cpp. "Syntax error" is here to catch this case.
3895  cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h.  */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h.  */
3901#ifdef __STDC__
3902# include <limits.h>
3903#else
3904# include <assert.h>
3905#endif
3906		     Syntax error
3907_ACEOF
3908if { (ac_try="$ac_cpp conftest.$ac_ext"
3909case "(($ac_try" in
3910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911  *) ac_try_echo=$ac_try;;
3912esac
3913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914$as_echo "$ac_try_echo") >&5
3915  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916  ac_status=$?
3917  grep -v '^ *+' conftest.er1 >conftest.err
3918  rm -f conftest.er1
3919  cat conftest.err >&5
3920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); } >/dev/null && {
3922	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923	 test ! -s conftest.err
3924       }; then
3925  :
3926else
3927  $as_echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930  # Broken: fails on valid input.
3931continue
3932fi
3933
3934rm -f conftest.err conftest.$ac_ext
3935
3936  # OK, works on sane cases.  Now check whether nonexistent headers
3937  # can be detected and how.
3938  cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h.  */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h.  */
3944#include <ac_nonexistent.h>
3945_ACEOF
3946if { (ac_try="$ac_cpp conftest.$ac_ext"
3947case "(($ac_try" in
3948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949  *) ac_try_echo=$ac_try;;
3950esac
3951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952$as_echo "$ac_try_echo") >&5
3953  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3954  ac_status=$?
3955  grep -v '^ *+' conftest.er1 >conftest.err
3956  rm -f conftest.er1
3957  cat conftest.err >&5
3958  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } >/dev/null && {
3960	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961	 test ! -s conftest.err
3962       }; then
3963  # Broken: success on invalid input.
3964continue
3965else
3966  $as_echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969  # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
3973
3974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then
3980  break
3981fi
3982
3983    done
3984    ac_cv_prog_CPP=$CPP
3985
3986fi
3987  CPP=$ac_cv_prog_CPP
3988else
3989  ac_cv_prog_CPP=$CPP
3990fi
3991{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3992$as_echo "$CPP" >&6; }
3993ac_preproc_ok=false
3994for ac_c_preproc_warn_flag in '' yes
3995do
3996  # Use a header file that comes with gcc, so configuring glibc
3997  # with a fresh cross-compiler works.
3998  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999  # <limits.h> exists even on freestanding compilers.
4000  # On the NeXT, cc -E runs the code through the compiler's parser,
4001  # not just through cpp. "Syntax error" is here to catch this case.
4002  cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h.  */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h.  */
4008#ifdef __STDC__
4009# include <limits.h>
4010#else
4011# include <assert.h>
4012#endif
4013		     Syntax error
4014_ACEOF
4015if { (ac_try="$ac_cpp conftest.$ac_ext"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4021$as_echo "$ac_try_echo") >&5
4022  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4023  ac_status=$?
4024  grep -v '^ *+' conftest.er1 >conftest.err
4025  rm -f conftest.er1
4026  cat conftest.err >&5
4027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028  (exit $ac_status); } >/dev/null && {
4029	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4030	 test ! -s conftest.err
4031       }; then
4032  :
4033else
4034  $as_echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037  # Broken: fails on valid input.
4038continue
4039fi
4040
4041rm -f conftest.err conftest.$ac_ext
4042
4043  # OK, works on sane cases.  Now check whether nonexistent headers
4044  # can be detected and how.
4045  cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h.  */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h.  */
4051#include <ac_nonexistent.h>
4052_ACEOF
4053if { (ac_try="$ac_cpp conftest.$ac_ext"
4054case "(($ac_try" in
4055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056  *) ac_try_echo=$ac_try;;
4057esac
4058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059$as_echo "$ac_try_echo") >&5
4060  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061  ac_status=$?
4062  grep -v '^ *+' conftest.er1 >conftest.err
4063  rm -f conftest.er1
4064  cat conftest.err >&5
4065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); } >/dev/null && {
4067	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068	 test ! -s conftest.err
4069       }; then
4070  # Broken: success on invalid input.
4071continue
4072else
4073  $as_echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076  # Passes both tests.
4077ac_preproc_ok=:
4078break
4079fi
4080
4081rm -f conftest.err conftest.$ac_ext
4082
4083done
4084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085rm -f conftest.err conftest.$ac_ext
4086if $ac_preproc_ok; then
4087  :
4088else
4089  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4092See \`config.log' for more details." >&5
4093$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4094See \`config.log' for more details." >&2;}
4095   { (exit 1); exit 1; }; }; }
4096fi
4097
4098ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4106$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4107if test "${ac_cv_path_GREP+set}" = set; then
4108  $as_echo_n "(cached) " >&6
4109else
4110  if test -z "$GREP"; then
4111  ac_path_GREP_found=false
4112  # Loop through the user's path and test for each of PROGNAME-LIST
4113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4115do
4116  IFS=$as_save_IFS
4117  test -z "$as_dir" && as_dir=.
4118  for ac_prog in grep ggrep; do
4119    for ac_exec_ext in '' $ac_executable_extensions; do
4120      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4121      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4122# Check for GNU ac_path_GREP and select it if it is found.
4123  # Check for GNU $ac_path_GREP
4124case `"$ac_path_GREP" --version 2>&1` in
4125*GNU*)
4126  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4127*)
4128  ac_count=0
4129  $as_echo_n 0123456789 >"conftest.in"
4130  while :
4131  do
4132    cat "conftest.in" "conftest.in" >"conftest.tmp"
4133    mv "conftest.tmp" "conftest.in"
4134    cp "conftest.in" "conftest.nl"
4135    $as_echo 'GREP' >> "conftest.nl"
4136    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138    ac_count=`expr $ac_count + 1`
4139    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4140      # Best one so far, save it but keep looking for a better one
4141      ac_cv_path_GREP="$ac_path_GREP"
4142      ac_path_GREP_max=$ac_count
4143    fi
4144    # 10*(2^10) chars as input seems more than enough
4145    test $ac_count -gt 10 && break
4146  done
4147  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148esac
4149
4150      $ac_path_GREP_found && break 3
4151    done
4152  done
4153done
4154IFS=$as_save_IFS
4155  if test -z "$ac_cv_path_GREP"; then
4156    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4157$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4158   { (exit 1); exit 1; }; }
4159  fi
4160else
4161  ac_cv_path_GREP=$GREP
4162fi
4163
4164fi
4165{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4166$as_echo "$ac_cv_path_GREP" >&6; }
4167 GREP="$ac_cv_path_GREP"
4168
4169
4170{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4171$as_echo_n "checking for egrep... " >&6; }
4172if test "${ac_cv_path_EGREP+set}" = set; then
4173  $as_echo_n "(cached) " >&6
4174else
4175  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176   then ac_cv_path_EGREP="$GREP -E"
4177   else
4178     if test -z "$EGREP"; then
4179  ac_path_EGREP_found=false
4180  # Loop through the user's path and test for each of PROGNAME-LIST
4181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183do
4184  IFS=$as_save_IFS
4185  test -z "$as_dir" && as_dir=.
4186  for ac_prog in egrep; do
4187    for ac_exec_ext in '' $ac_executable_extensions; do
4188      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4190# Check for GNU ac_path_EGREP and select it if it is found.
4191  # Check for GNU $ac_path_EGREP
4192case `"$ac_path_EGREP" --version 2>&1` in
4193*GNU*)
4194  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195*)
4196  ac_count=0
4197  $as_echo_n 0123456789 >"conftest.in"
4198  while :
4199  do
4200    cat "conftest.in" "conftest.in" >"conftest.tmp"
4201    mv "conftest.tmp" "conftest.in"
4202    cp "conftest.in" "conftest.nl"
4203    $as_echo 'EGREP' >> "conftest.nl"
4204    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206    ac_count=`expr $ac_count + 1`
4207    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208      # Best one so far, save it but keep looking for a better one
4209      ac_cv_path_EGREP="$ac_path_EGREP"
4210      ac_path_EGREP_max=$ac_count
4211    fi
4212    # 10*(2^10) chars as input seems more than enough
4213    test $ac_count -gt 10 && break
4214  done
4215  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216esac
4217
4218      $ac_path_EGREP_found && break 3
4219    done
4220  done
4221done
4222IFS=$as_save_IFS
4223  if test -z "$ac_cv_path_EGREP"; then
4224    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226   { (exit 1); exit 1; }; }
4227  fi
4228else
4229  ac_cv_path_EGREP=$EGREP
4230fi
4231
4232   fi
4233fi
4234{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235$as_echo "$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4237
4238
4239{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240$as_echo_n "checking for ANSI C header files... " >&6; }
4241if test "${ac_cv_header_stdc+set}" = set; then
4242  $as_echo_n "(cached) " >&6
4243else
4244  cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h.  */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h.  */
4250#include <stdlib.h>
4251#include <stdarg.h>
4252#include <string.h>
4253#include <float.h>
4254
4255int
4256main ()
4257{
4258
4259  ;
4260  return 0;
4261}
4262_ACEOF
4263rm -f conftest.$ac_objext
4264if { (ac_try="$ac_compile"
4265case "(($ac_try" in
4266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267  *) ac_try_echo=$ac_try;;
4268esac
4269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4270$as_echo "$ac_try_echo") >&5
4271  (eval "$ac_compile") 2>conftest.er1
4272  ac_status=$?
4273  grep -v '^ *+' conftest.er1 >conftest.err
4274  rm -f conftest.er1
4275  cat conftest.err >&5
4276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); } && {
4278	 test -z "$ac_c_werror_flag" ||
4279	 test ! -s conftest.err
4280       } && test -s conftest.$ac_objext; then
4281  ac_cv_header_stdc=yes
4282else
4283  $as_echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286	ac_cv_header_stdc=no
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290
4291if test $ac_cv_header_stdc = yes; then
4292  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293  cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h.  */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h.  */
4299#include <string.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303  $EGREP "memchr" >/dev/null 2>&1; then
4304  :
4305else
4306  ac_cv_header_stdc=no
4307fi
4308rm -f conftest*
4309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314  cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h.  */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h.  */
4320#include <stdlib.h>
4321
4322_ACEOF
4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324  $EGREP "free" >/dev/null 2>&1; then
4325  :
4326else
4327  ac_cv_header_stdc=no
4328fi
4329rm -f conftest*
4330
4331fi
4332
4333if test $ac_cv_header_stdc = yes; then
4334  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335  if test "$cross_compiling" = yes; then
4336  :
4337else
4338  cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344#include <ctype.h>
4345#include <stdlib.h>
4346#if ((' ' & 0x0FF) == 0x020)
4347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349#else
4350# define ISLOWER(c) \
4351		   (('a' <= (c) && (c) <= 'i') \
4352		     || ('j' <= (c) && (c) <= 'r') \
4353		     || ('s' <= (c) && (c) <= 'z'))
4354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355#endif
4356
4357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358int
4359main ()
4360{
4361  int i;
4362  for (i = 0; i < 256; i++)
4363    if (XOR (islower (i), ISLOWER (i))
4364	|| toupper (i) != TOUPPER (i))
4365      return 2;
4366  return 0;
4367}
4368_ACEOF
4369rm -f conftest$ac_exeext
4370if { (ac_try="$ac_link"
4371case "(($ac_try" in
4372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373  *) ac_try_echo=$ac_try;;
4374esac
4375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376$as_echo "$ac_try_echo") >&5
4377  (eval "$ac_link") 2>&5
4378  ac_status=$?
4379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4381  { (case "(($ac_try" in
4382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383  *) ac_try_echo=$ac_try;;
4384esac
4385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4386$as_echo "$ac_try_echo") >&5
4387  (eval "$ac_try") 2>&5
4388  ac_status=$?
4389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); }; }; then
4391  :
4392else
4393  $as_echo "$as_me: program exited with status $ac_status" >&5
4394$as_echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397( exit $ac_status )
4398ac_cv_header_stdc=no
4399fi
4400rm -rf conftest.dSYM
4401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4402fi
4403
4404
4405fi
4406fi
4407{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4408$as_echo "$ac_cv_header_stdc" >&6; }
4409if test $ac_cv_header_stdc = yes; then
4410
4411cat >>confdefs.h <<\_ACEOF
4412#define STDC_HEADERS 1
4413_ACEOF
4414
4415fi
4416
4417# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4428		  inttypes.h stdint.h unistd.h
4429do
4430as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4432$as_echo_n "checking for $ac_header... " >&6; }
4433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4434  $as_echo_n "(cached) " >&6
4435else
4436  cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h.  */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h.  */
4442$ac_includes_default
4443
4444#include <$ac_header>
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (ac_try="$ac_compile"
4448case "(($ac_try" in
4449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450  *) ac_try_echo=$ac_try;;
4451esac
4452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453$as_echo "$ac_try_echo") >&5
4454  (eval "$ac_compile") 2>conftest.er1
4455  ac_status=$?
4456  grep -v '^ *+' conftest.er1 >conftest.err
4457  rm -f conftest.er1
4458  cat conftest.err >&5
4459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); } && {
4461	 test -z "$ac_c_werror_flag" ||
4462	 test ! -s conftest.err
4463       } && test -s conftest.$ac_objext; then
4464  eval "$as_ac_Header=yes"
4465else
4466  $as_echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469	eval "$as_ac_Header=no"
4470fi
4471
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473fi
4474ac_res=`eval 'as_val=${'$as_ac_Header'}
4475		 $as_echo "$as_val"'`
4476	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4477$as_echo "$ac_res" >&6; }
4478as_val=`eval 'as_val=${'$as_ac_Header'}
4479		 $as_echo "$as_val"'`
4480   if test "x$as_val" = x""yes; then
4481  cat >>confdefs.h <<_ACEOF
4482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4483_ACEOF
4484
4485fi
4486
4487done
4488
4489
4490
4491if test "$ac_cv_prog_cc_stdc" != no; then
4492  U= ANSI2KNR=
4493else
4494  U=_ ANSI2KNR=./ansi2knr
4495fi
4496# Ensure some checks needed by ansi2knr itself.
4497
4498
4499for ac_header in string.h
4500do
4501as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4503  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4504$as_echo_n "checking for $ac_header... " >&6; }
4505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4506  $as_echo_n "(cached) " >&6
4507fi
4508ac_res=`eval 'as_val=${'$as_ac_Header'}
4509		 $as_echo "$as_val"'`
4510	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4511$as_echo "$ac_res" >&6; }
4512else
4513  # Is the header compilable?
4514{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4515$as_echo_n "checking $ac_header usability... " >&6; }
4516cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h.  */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h.  */
4522$ac_includes_default
4523#include <$ac_header>
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (ac_try="$ac_compile"
4527case "(($ac_try" in
4528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529  *) ac_try_echo=$ac_try;;
4530esac
4531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4532$as_echo "$ac_try_echo") >&5
4533  (eval "$ac_compile") 2>conftest.er1
4534  ac_status=$?
4535  grep -v '^ *+' conftest.er1 >conftest.err
4536  rm -f conftest.er1
4537  cat conftest.err >&5
4538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } && {
4540	 test -z "$ac_c_werror_flag" ||
4541	 test ! -s conftest.err
4542       } && test -s conftest.$ac_objext; then
4543  ac_header_compiler=yes
4544else
4545  $as_echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
4548	ac_header_compiler=no
4549fi
4550
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4553$as_echo "$ac_header_compiler" >&6; }
4554
4555# Is the header present?
4556{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4557$as_echo_n "checking $ac_header presence... " >&6; }
4558cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h.  */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h.  */
4564#include <$ac_header>
4565_ACEOF
4566if { (ac_try="$ac_cpp conftest.$ac_ext"
4567case "(($ac_try" in
4568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569  *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572$as_echo "$ac_try_echo") >&5
4573  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4574  ac_status=$?
4575  grep -v '^ *+' conftest.er1 >conftest.err
4576  rm -f conftest.er1
4577  cat conftest.err >&5
4578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); } >/dev/null && {
4580	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4581	 test ! -s conftest.err
4582       }; then
4583  ac_header_preproc=yes
4584else
4585  $as_echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588  ac_header_preproc=no
4589fi
4590
4591rm -f conftest.err conftest.$ac_ext
4592{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4593$as_echo "$ac_header_preproc" >&6; }
4594
4595# So?  What about this header?
4596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4597  yes:no: )
4598    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4599$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4600    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4601$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4602    ac_header_preproc=yes
4603    ;;
4604  no:yes:* )
4605    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4606$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4607    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4608$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4609    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4610$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4611    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4612$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4613    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4614$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4615    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4616$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4617
4618    ;;
4619esac
4620{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4621$as_echo_n "checking for $ac_header... " >&6; }
4622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4623  $as_echo_n "(cached) " >&6
4624else
4625  eval "$as_ac_Header=\$ac_header_preproc"
4626fi
4627ac_res=`eval 'as_val=${'$as_ac_Header'}
4628		 $as_echo "$as_val"'`
4629	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4630$as_echo "$ac_res" >&6; }
4631
4632fi
4633as_val=`eval 'as_val=${'$as_ac_Header'}
4634		 $as_echo "$as_val"'`
4635   if test "x$as_val" = x""yes; then
4636  cat >>confdefs.h <<_ACEOF
4637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638_ACEOF
4639
4640fi
4641
4642done
4643
4644
4645
4646# Add configure option --enable-maintainer-mode which enables
4647# dependency checking and generation useful to package maintainers.
4648# This is made an option to avoid confusing end users.
4649
4650{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4651$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4652    # Check whether --enable-maintainer-mode was given.
4653if test "${enable_maintainer_mode+set}" = set; then
4654  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4655else
4656  USE_MAINTAINER_MODE=no
4657fi
4658
4659  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4660$as_echo "$USE_MAINTAINER_MODE" >&6; }
4661   if test $USE_MAINTAINER_MODE = yes; then
4662  MAINTAINER_MODE_TRUE=
4663  MAINTAINER_MODE_FALSE='#'
4664else
4665  MAINTAINER_MODE_TRUE='#'
4666  MAINTAINER_MODE_FALSE=
4667fi
4668
4669  MAINT=$MAINTAINER_MODE_TRUE
4670
4671
4672
4673# Check for programs
4674ac_ext=c
4675ac_cpp='$CPP $CPPFLAGS'
4676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679if test -n "$ac_tool_prefix"; then
4680  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4681set dummy ${ac_tool_prefix}gcc; ac_word=$2
4682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4683$as_echo_n "checking for $ac_word... " >&6; }
4684if test "${ac_cv_prog_CC+set}" = set; then
4685  $as_echo_n "(cached) " >&6
4686else
4687  if test -n "$CC"; then
4688  ac_cv_prog_CC="$CC" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693  IFS=$as_save_IFS
4694  test -z "$as_dir" && as_dir=.
4695  for ac_exec_ext in '' $ac_executable_extensions; do
4696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4698    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699    break 2
4700  fi
4701done
4702done
4703IFS=$as_save_IFS
4704
4705fi
4706fi
4707CC=$ac_cv_prog_CC
4708if test -n "$CC"; then
4709  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4710$as_echo "$CC" >&6; }
4711else
4712  { $as_echo "$as_me:$LINENO: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716
4717fi
4718if test -z "$ac_cv_prog_CC"; then
4719  ac_ct_CC=$CC
4720  # Extract the first word of "gcc", so it can be a program name with args.
4721set dummy gcc; ac_word=$2
4722{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4725  $as_echo_n "(cached) " >&6
4726else
4727  if test -n "$ac_ct_CC"; then
4728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733  IFS=$as_save_IFS
4734  test -z "$as_dir" && as_dir=.
4735  for ac_exec_ext in '' $ac_executable_extensions; do
4736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737    ac_cv_prog_ac_ct_CC="gcc"
4738    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739    break 2
4740  fi
4741done
4742done
4743IFS=$as_save_IFS
4744
4745fi
4746fi
4747ac_ct_CC=$ac_cv_prog_ac_ct_CC
4748if test -n "$ac_ct_CC"; then
4749  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4750$as_echo "$ac_ct_CC" >&6; }
4751else
4752  { $as_echo "$as_me:$LINENO: result: no" >&5
4753$as_echo "no" >&6; }
4754fi
4755
4756  if test "x$ac_ct_CC" = x; then
4757    CC=""
4758  else
4759    case $cross_compiling:$ac_tool_warned in
4760yes:)
4761{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763ac_tool_warned=yes ;;
4764esac
4765    CC=$ac_ct_CC
4766  fi
4767else
4768  CC="$ac_cv_prog_CC"
4769fi
4770
4771if test -z "$CC"; then
4772          if test -n "$ac_tool_prefix"; then
4773    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4774set dummy ${ac_tool_prefix}cc; ac_word=$2
4775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4776$as_echo_n "checking for $ac_word... " >&6; }
4777if test "${ac_cv_prog_CC+set}" = set; then
4778  $as_echo_n "(cached) " >&6
4779else
4780  if test -n "$CC"; then
4781  ac_cv_prog_CC="$CC" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788  for ac_exec_ext in '' $ac_executable_extensions; do
4789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790    ac_cv_prog_CC="${ac_tool_prefix}cc"
4791    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800CC=$ac_cv_prog_CC
4801if test -n "$CC"; then
4802  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4803$as_echo "$CC" >&6; }
4804else
4805  { $as_echo "$as_me:$LINENO: result: no" >&5
4806$as_echo "no" >&6; }
4807fi
4808
4809
4810  fi
4811fi
4812if test -z "$CC"; then
4813  # Extract the first word of "cc", so it can be a program name with args.
4814set dummy cc; ac_word=$2
4815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if test "${ac_cv_prog_CC+set}" = set; then
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -n "$CC"; then
4821  ac_cv_prog_CC="$CC" # Let the user override the test.
4822else
4823  ac_prog_rejected=no
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829  for ac_exec_ext in '' $ac_executable_extensions; do
4830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4832       ac_prog_rejected=yes
4833       continue
4834     fi
4835    ac_cv_prog_CC="cc"
4836    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837    break 2
4838  fi
4839done
4840done
4841IFS=$as_save_IFS
4842
4843if test $ac_prog_rejected = yes; then
4844  # We found a bogon in the path, so make sure we never use it.
4845  set dummy $ac_cv_prog_CC
4846  shift
4847  if test $# != 0; then
4848    # We chose a different compiler from the bogus one.
4849    # However, it has the same basename, so the bogon will be chosen
4850    # first if we set CC to just the basename; use the full file name.
4851    shift
4852    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4853  fi
4854fi
4855fi
4856fi
4857CC=$ac_cv_prog_CC
4858if test -n "$CC"; then
4859  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4860$as_echo "$CC" >&6; }
4861else
4862  { $as_echo "$as_me:$LINENO: result: no" >&5
4863$as_echo "no" >&6; }
4864fi
4865
4866
4867fi
4868if test -z "$CC"; then
4869  if test -n "$ac_tool_prefix"; then
4870  for ac_prog in cl.exe
4871  do
4872    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4874{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if test "${ac_cv_prog_CC+set}" = set; then
4877  $as_echo_n "(cached) " >&6
4878else
4879  if test -n "$CC"; then
4880  ac_cv_prog_CC="$CC" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885  IFS=$as_save_IFS
4886  test -z "$as_dir" && as_dir=.
4887  for ac_exec_ext in '' $ac_executable_extensions; do
4888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4890    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891    break 2
4892  fi
4893done
4894done
4895IFS=$as_save_IFS
4896
4897fi
4898fi
4899CC=$ac_cv_prog_CC
4900if test -n "$CC"; then
4901  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4902$as_echo "$CC" >&6; }
4903else
4904  { $as_echo "$as_me:$LINENO: result: no" >&5
4905$as_echo "no" >&6; }
4906fi
4907
4908
4909    test -n "$CC" && break
4910  done
4911fi
4912if test -z "$CC"; then
4913  ac_ct_CC=$CC
4914  for ac_prog in cl.exe
4915do
4916  # Extract the first word of "$ac_prog", so it can be a program name with args.
4917set dummy $ac_prog; ac_word=$2
4918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4919$as_echo_n "checking for $ac_word... " >&6; }
4920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4921  $as_echo_n "(cached) " >&6
4922else
4923  if test -n "$ac_ct_CC"; then
4924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4925else
4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929  IFS=$as_save_IFS
4930  test -z "$as_dir" && as_dir=.
4931  for ac_exec_ext in '' $ac_executable_extensions; do
4932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933    ac_cv_prog_ac_ct_CC="$ac_prog"
4934    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935    break 2
4936  fi
4937done
4938done
4939IFS=$as_save_IFS
4940
4941fi
4942fi
4943ac_ct_CC=$ac_cv_prog_ac_ct_CC
4944if test -n "$ac_ct_CC"; then
4945  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4946$as_echo "$ac_ct_CC" >&6; }
4947else
4948  { $as_echo "$as_me:$LINENO: result: no" >&5
4949$as_echo "no" >&6; }
4950fi
4951
4952
4953  test -n "$ac_ct_CC" && break
4954done
4955
4956  if test "x$ac_ct_CC" = x; then
4957    CC=""
4958  else
4959    case $cross_compiling:$ac_tool_warned in
4960yes:)
4961{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4963ac_tool_warned=yes ;;
4964esac
4965    CC=$ac_ct_CC
4966  fi
4967fi
4968
4969fi
4970
4971
4972test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4975See \`config.log' for more details." >&5
4976$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4977See \`config.log' for more details." >&2;}
4978   { (exit 1); exit 1; }; }; }
4979
4980# Provide some information about the compiler.
4981$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4982set X $ac_compile
4983ac_compiler=$2
4984{ (ac_try="$ac_compiler --version >&5"
4985case "(($ac_try" in
4986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987  *) ac_try_echo=$ac_try;;
4988esac
4989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990$as_echo "$ac_try_echo") >&5
4991  (eval "$ac_compiler --version >&5") 2>&5
4992  ac_status=$?
4993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); }
4995{ (ac_try="$ac_compiler -v >&5"
4996case "(($ac_try" in
4997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998  *) ac_try_echo=$ac_try;;
4999esac
5000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5001$as_echo "$ac_try_echo") >&5
5002  (eval "$ac_compiler -v >&5") 2>&5
5003  ac_status=$?
5004  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005  (exit $ac_status); }
5006{ (ac_try="$ac_compiler -V >&5"
5007case "(($ac_try" in
5008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009  *) ac_try_echo=$ac_try;;
5010esac
5011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5012$as_echo "$ac_try_echo") >&5
5013  (eval "$ac_compiler -V >&5") 2>&5
5014  ac_status=$?
5015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }
5017
5018{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5019$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5020if test "${ac_cv_c_compiler_gnu+set}" = set; then
5021  $as_echo_n "(cached) " >&6
5022else
5023  cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029
5030int
5031main ()
5032{
5033#ifndef __GNUC__
5034       choke me
5035#endif
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext
5042if { (ac_try="$ac_compile"
5043case "(($ac_try" in
5044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045  *) ac_try_echo=$ac_try;;
5046esac
5047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048$as_echo "$ac_try_echo") >&5
5049  (eval "$ac_compile") 2>conftest.er1
5050  ac_status=$?
5051  grep -v '^ *+' conftest.er1 >conftest.err
5052  rm -f conftest.er1
5053  cat conftest.err >&5
5054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); } && {
5056	 test -z "$ac_c_werror_flag" ||
5057	 test ! -s conftest.err
5058       } && test -s conftest.$ac_objext; then
5059  ac_compiler_gnu=yes
5060else
5061  $as_echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064	ac_compiler_gnu=no
5065fi
5066
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068ac_cv_c_compiler_gnu=$ac_compiler_gnu
5069
5070fi
5071{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5072$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5073if test $ac_compiler_gnu = yes; then
5074  GCC=yes
5075else
5076  GCC=
5077fi
5078ac_test_CFLAGS=${CFLAGS+set}
5079ac_save_CFLAGS=$CFLAGS
5080{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5081$as_echo_n "checking whether $CC accepts -g... " >&6; }
5082if test "${ac_cv_prog_cc_g+set}" = set; then
5083  $as_echo_n "(cached) " >&6
5084else
5085  ac_save_c_werror_flag=$ac_c_werror_flag
5086   ac_c_werror_flag=yes
5087   ac_cv_prog_cc_g=no
5088   CFLAGS="-g"
5089   cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095
5096int
5097main ()
5098{
5099
5100  ;
5101  return 0;
5102}
5103_ACEOF
5104rm -f conftest.$ac_objext
5105if { (ac_try="$ac_compile"
5106case "(($ac_try" in
5107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108  *) ac_try_echo=$ac_try;;
5109esac
5110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111$as_echo "$ac_try_echo") >&5
5112  (eval "$ac_compile") 2>conftest.er1
5113  ac_status=$?
5114  grep -v '^ *+' conftest.er1 >conftest.err
5115  rm -f conftest.er1
5116  cat conftest.err >&5
5117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); } && {
5119	 test -z "$ac_c_werror_flag" ||
5120	 test ! -s conftest.err
5121       } && test -s conftest.$ac_objext; then
5122  ac_cv_prog_cc_g=yes
5123else
5124  $as_echo "$as_me: failed program was:" >&5
5125sed 's/^/| /' conftest.$ac_ext >&5
5126
5127	CFLAGS=""
5128      cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134
5135int
5136main ()
5137{
5138
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (ac_try="$ac_compile"
5145case "(($ac_try" in
5146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147  *) ac_try_echo=$ac_try;;
5148esac
5149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150$as_echo "$ac_try_echo") >&5
5151  (eval "$ac_compile") 2>conftest.er1
5152  ac_status=$?
5153  grep -v '^ *+' conftest.er1 >conftest.err
5154  rm -f conftest.er1
5155  cat conftest.err >&5
5156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } && {
5158	 test -z "$ac_c_werror_flag" ||
5159	 test ! -s conftest.err
5160       } && test -s conftest.$ac_objext; then
5161  :
5162else
5163  $as_echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166	ac_c_werror_flag=$ac_save_c_werror_flag
5167	 CFLAGS="-g"
5168	 cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174
5175int
5176main ()
5177{
5178
5179  ;
5180  return 0;
5181}
5182_ACEOF
5183rm -f conftest.$ac_objext
5184if { (ac_try="$ac_compile"
5185case "(($ac_try" in
5186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187  *) ac_try_echo=$ac_try;;
5188esac
5189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5190$as_echo "$ac_try_echo") >&5
5191  (eval "$ac_compile") 2>conftest.er1
5192  ac_status=$?
5193  grep -v '^ *+' conftest.er1 >conftest.err
5194  rm -f conftest.er1
5195  cat conftest.err >&5
5196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } && {
5198	 test -z "$ac_c_werror_flag" ||
5199	 test ! -s conftest.err
5200       } && test -s conftest.$ac_objext; then
5201  ac_cv_prog_cc_g=yes
5202else
5203  $as_echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206
5207fi
5208
5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210fi
5211
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
5214
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216   ac_c_werror_flag=$ac_save_c_werror_flag
5217fi
5218{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5219$as_echo "$ac_cv_prog_cc_g" >&6; }
5220if test "$ac_test_CFLAGS" = set; then
5221  CFLAGS=$ac_save_CFLAGS
5222elif test $ac_cv_prog_cc_g = yes; then
5223  if test "$GCC" = yes; then
5224    CFLAGS="-g -O2"
5225  else
5226    CFLAGS="-g"
5227  fi
5228else
5229  if test "$GCC" = yes; then
5230    CFLAGS="-O2"
5231  else
5232    CFLAGS=
5233  fi
5234fi
5235{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5236$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5237if test "${ac_cv_prog_cc_c89+set}" = set; then
5238  $as_echo_n "(cached) " >&6
5239else
5240  ac_cv_prog_cc_c89=no
5241ac_save_CC=$CC
5242cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h.  */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h.  */
5248#include <stdarg.h>
5249#include <stdio.h>
5250#include <sys/types.h>
5251#include <sys/stat.h>
5252/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5253struct buf { int x; };
5254FILE * (*rcsopen) (struct buf *, struct stat *, int);
5255static char *e (p, i)
5256     char **p;
5257     int i;
5258{
5259  return p[i];
5260}
5261static char *f (char * (*g) (char **, int), char **p, ...)
5262{
5263  char *s;
5264  va_list v;
5265  va_start (v,p);
5266  s = g (p, va_arg (v,int));
5267  va_end (v);
5268  return s;
5269}
5270
5271/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5272   function prototypes and stuff, but not '\xHH' hex character constants.
5273   These don't provoke an error unfortunately, instead are silently treated
5274   as 'x'.  The following induces an error, until -std is added to get
5275   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5276   array size at least.  It's necessary to write '\x00'==0 to get something
5277   that's true only with -std.  */
5278int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5279
5280/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5281   inside strings and character constants.  */
5282#define FOO(x) 'x'
5283int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5284
5285int test (int i, double x);
5286struct s1 {int (*f) (int a);};
5287struct s2 {int (*f) (double a);};
5288int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5289int argc;
5290char **argv;
5291int
5292main ()
5293{
5294return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5295  ;
5296  return 0;
5297}
5298_ACEOF
5299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5300	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5301do
5302  CC="$ac_save_CC $ac_arg"
5303  rm -f conftest.$ac_objext
5304if { (ac_try="$ac_compile"
5305case "(($ac_try" in
5306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307  *) ac_try_echo=$ac_try;;
5308esac
5309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310$as_echo "$ac_try_echo") >&5
5311  (eval "$ac_compile") 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } && {
5318	 test -z "$ac_c_werror_flag" ||
5319	 test ! -s conftest.err
5320       } && test -s conftest.$ac_objext; then
5321  ac_cv_prog_cc_c89=$ac_arg
5322else
5323  $as_echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326
5327fi
5328
5329rm -f core conftest.err conftest.$ac_objext
5330  test "x$ac_cv_prog_cc_c89" != "xno" && break
5331done
5332rm -f conftest.$ac_ext
5333CC=$ac_save_CC
5334
5335fi
5336# AC_CACHE_VAL
5337case "x$ac_cv_prog_cc_c89" in
5338  x)
5339    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5340$as_echo "none needed" >&6; } ;;
5341  xno)
5342    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5343$as_echo "unsupported" >&6; } ;;
5344  *)
5345    CC="$CC $ac_cv_prog_cc_c89"
5346    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5347$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5348esac
5349
5350
5351ac_ext=c
5352ac_cpp='$CPP $CPPFLAGS'
5353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357depcc="$CC"   am_compiler_list=
5358
5359{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5360$as_echo_n "checking dependency style of $depcc... " >&6; }
5361if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5362  $as_echo_n "(cached) " >&6
5363else
5364  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5365  # We make a subdir and do the tests there.  Otherwise we can end up
5366  # making bogus files that we don't know about and never remove.  For
5367  # instance it was reported that on HP-UX the gcc test will end up
5368  # making a dummy file named `D' -- because `-MD' means `put the output
5369  # in D'.
5370  mkdir conftest.dir
5371  # Copy depcomp to subdir because otherwise we won't find it if we're
5372  # using a relative directory.
5373  cp "$am_depcomp" conftest.dir
5374  cd conftest.dir
5375  # We will build objects and dependencies in a subdirectory because
5376  # it helps to detect inapplicable dependency modes.  For instance
5377  # both Tru64's cc and ICC support -MD to output dependencies as a
5378  # side effect of compilation, but ICC will put the dependencies in
5379  # the current directory while Tru64 will put them in the object
5380  # directory.
5381  mkdir sub
5382
5383  am_cv_CC_dependencies_compiler_type=none
5384  if test "$am_compiler_list" = ""; then
5385     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386  fi
5387  am__universal=false
5388  case " $depcc " in #(
5389     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390     esac
5391
5392  for depmode in $am_compiler_list; do
5393    # Setup a source with many dependencies, because some compilers
5394    # like to wrap large dependency lists on column 80 (with \), and
5395    # we should not choose a depcomp mode which is confused by this.
5396    #
5397    # We need to recreate these files for each test, as the compiler may
5398    # overwrite some of them when testing with obscure command lines.
5399    # This happens at least with the AIX C compiler.
5400    : > sub/conftest.c
5401    for i in 1 2 3 4 5 6; do
5402      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5404      # Solaris 8's {/usr,}/bin/sh.
5405      touch sub/conftst$i.h
5406    done
5407    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5410    # mode.  It turns out that the SunPro C++ compiler does not properly
5411    # handle `-M -o', and we need to detect this.  Also, some Intel
5412    # versions had trouble with output in subdirs
5413    am__obj=sub/conftest.${OBJEXT-o}
5414    am__minus_obj="-o $am__obj"
5415    case $depmode in
5416    gcc)
5417      # This depmode causes a compiler race in universal mode.
5418      test "$am__universal" = false || continue
5419      ;;
5420    nosideeffect)
5421      # after this tag, mechanisms are not by side-effect, so they'll
5422      # only be used when explicitly requested
5423      if test "x$enable_dependency_tracking" = xyes; then
5424	continue
5425      else
5426	break
5427      fi
5428      ;;
5429    msvisualcpp | msvcmsys)
5430      # This compiler won't grok `-c -o', but also, the minuso test has
5431      # not run yet.  These depmodes are late enough in the game, and
5432      # so weak that their functioning should not be impacted.
5433      am__obj=conftest.${OBJEXT-o}
5434      am__minus_obj=
5435      ;;
5436    none) break ;;
5437    esac
5438    if depmode=$depmode \
5439       source=sub/conftest.c object=$am__obj \
5440       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442         >/dev/null 2>conftest.err &&
5443       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447      # icc doesn't choke on unknown options, it will just issue warnings
5448      # or remarks (even with -Werror).  So we grep stderr for any message
5449      # that says an option was ignored or not supported.
5450      # When given -MP, icc 7.0 and 7.1 complain thusly:
5451      #   icc: Command line warning: ignoring option '-M'; no argument required
5452      # The diagnosis changed in icc 8.0:
5453      #   icc: Command line remark: option '-MP' not supported
5454      if (grep 'ignoring option' conftest.err ||
5455          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456        am_cv_CC_dependencies_compiler_type=$depmode
5457        break
5458      fi
5459    fi
5460  done
5461
5462  cd ..
5463  rm -rf conftest.dir
5464else
5465  am_cv_CC_dependencies_compiler_type=none
5466fi
5467
5468fi
5469{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5470$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5471CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5472
5473 if
5474  test "x$enable_dependency_tracking" != xno \
5475  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5476  am__fastdepCC_TRUE=
5477  am__fastdepCC_FALSE='#'
5478else
5479  am__fastdepCC_TRUE='#'
5480  am__fastdepCC_FALSE=
5481fi
5482
5483
5484   case $ac_cv_prog_cc_stdc in
5485  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5486  *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5487$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5488if test "${ac_cv_prog_cc_c99+set}" = set; then
5489  $as_echo_n "(cached) " >&6
5490else
5491  ac_cv_prog_cc_c99=no
5492ac_save_CC=$CC
5493cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499#include <stdarg.h>
5500#include <stdbool.h>
5501#include <stdlib.h>
5502#include <wchar.h>
5503#include <stdio.h>
5504
5505// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5506#define debug(...) fprintf (stderr, __VA_ARGS__)
5507#define showlist(...) puts (#__VA_ARGS__)
5508#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5509static void
5510test_varargs_macros (void)
5511{
5512  int x = 1234;
5513  int y = 5678;
5514  debug ("Flag");
5515  debug ("X = %d\n", x);
5516  showlist (The first, second, and third items.);
5517  report (x>y, "x is %d but y is %d", x, y);
5518}
5519
5520// Check long long types.
5521#define BIG64 18446744073709551615ull
5522#define BIG32 4294967295ul
5523#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5524#if !BIG_OK
5525  your preprocessor is broken;
5526#endif
5527#if BIG_OK
5528#else
5529  your preprocessor is broken;
5530#endif
5531static long long int bignum = -9223372036854775807LL;
5532static unsigned long long int ubignum = BIG64;
5533
5534struct incomplete_array
5535{
5536  int datasize;
5537  double data[];
5538};
5539
5540struct named_init {
5541  int number;
5542  const wchar_t *name;
5543  double average;
5544};
5545
5546typedef const char *ccp;
5547
5548static inline int
5549test_restrict (ccp restrict text)
5550{
5551  // See if C++-style comments work.
5552  // Iterate through items via the restricted pointer.
5553  // Also check for declarations in for loops.
5554  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5555    continue;
5556  return 0;
5557}
5558
5559// Check varargs and va_copy.
5560static void
5561test_varargs (const char *format, ...)
5562{
5563  va_list args;
5564  va_start (args, format);
5565  va_list args_copy;
5566  va_copy (args_copy, args);
5567
5568  const char *str;
5569  int number;
5570  float fnumber;
5571
5572  while (*format)
5573    {
5574      switch (*format++)
5575	{
5576	case 's': // string
5577	  str = va_arg (args_copy, const char *);
5578	  break;
5579	case 'd': // int
5580	  number = va_arg (args_copy, int);
5581	  break;
5582	case 'f': // float
5583	  fnumber = va_arg (args_copy, double);
5584	  break;
5585	default:
5586	  break;
5587	}
5588    }
5589  va_end (args_copy);
5590  va_end (args);
5591}
5592
5593int
5594main ()
5595{
5596
5597  // Check bool.
5598  _Bool success = false;
5599
5600  // Check restrict.
5601  if (test_restrict ("String literal") == 0)
5602    success = true;
5603  char *restrict newvar = "Another string";
5604
5605  // Check varargs.
5606  test_varargs ("s, d' f .", "string", 65, 34.234);
5607  test_varargs_macros ();
5608
5609  // Check flexible array members.
5610  struct incomplete_array *ia =
5611    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5612  ia->datasize = 10;
5613  for (int i = 0; i < ia->datasize; ++i)
5614    ia->data[i] = i * 1.234;
5615
5616  // Check named initializers.
5617  struct named_init ni = {
5618    .number = 34,
5619    .name = L"Test wide string",
5620    .average = 543.34343,
5621  };
5622
5623  ni.number = 58;
5624
5625  int dynamic_array[ni.number];
5626  dynamic_array[ni.number - 1] = 543;
5627
5628  // work around unused variable warnings
5629  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5630	  || dynamic_array[ni.number - 1] != 543);
5631
5632  ;
5633  return 0;
5634}
5635_ACEOF
5636for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5637do
5638  CC="$ac_save_CC $ac_arg"
5639  rm -f conftest.$ac_objext
5640if { (ac_try="$ac_compile"
5641case "(($ac_try" in
5642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643  *) ac_try_echo=$ac_try;;
5644esac
5645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5646$as_echo "$ac_try_echo") >&5
5647  (eval "$ac_compile") 2>conftest.er1
5648  ac_status=$?
5649  grep -v '^ *+' conftest.er1 >conftest.err
5650  rm -f conftest.er1
5651  cat conftest.err >&5
5652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); } && {
5654	 test -z "$ac_c_werror_flag" ||
5655	 test ! -s conftest.err
5656       } && test -s conftest.$ac_objext; then
5657  ac_cv_prog_cc_c99=$ac_arg
5658else
5659  $as_echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662
5663fi
5664
5665rm -f core conftest.err conftest.$ac_objext
5666  test "x$ac_cv_prog_cc_c99" != "xno" && break
5667done
5668rm -f conftest.$ac_ext
5669CC=$ac_save_CC
5670
5671fi
5672# AC_CACHE_VAL
5673case "x$ac_cv_prog_cc_c99" in
5674  x)
5675    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5676$as_echo "none needed" >&6; } ;;
5677  xno)
5678    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5679$as_echo "unsupported" >&6; } ;;
5680  *)
5681    CC="$CC $ac_cv_prog_cc_c99"
5682    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5683$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5684esac
5685if test "x$ac_cv_prog_cc_c99" != xno; then
5686  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5687else
5688  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5689$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5690if test "${ac_cv_prog_cc_c89+set}" = set; then
5691  $as_echo_n "(cached) " >&6
5692else
5693  ac_cv_prog_cc_c89=no
5694ac_save_CC=$CC
5695cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h.  */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h.  */
5701#include <stdarg.h>
5702#include <stdio.h>
5703#include <sys/types.h>
5704#include <sys/stat.h>
5705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5706struct buf { int x; };
5707FILE * (*rcsopen) (struct buf *, struct stat *, int);
5708static char *e (p, i)
5709     char **p;
5710     int i;
5711{
5712  return p[i];
5713}
5714static char *f (char * (*g) (char **, int), char **p, ...)
5715{
5716  char *s;
5717  va_list v;
5718  va_start (v,p);
5719  s = g (p, va_arg (v,int));
5720  va_end (v);
5721  return s;
5722}
5723
5724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5725   function prototypes and stuff, but not '\xHH' hex character constants.
5726   These don't provoke an error unfortunately, instead are silently treated
5727   as 'x'.  The following induces an error, until -std is added to get
5728   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5729   array size at least.  It's necessary to write '\x00'==0 to get something
5730   that's true only with -std.  */
5731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5732
5733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5734   inside strings and character constants.  */
5735#define FOO(x) 'x'
5736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5737
5738int test (int i, double x);
5739struct s1 {int (*f) (int a);};
5740struct s2 {int (*f) (double a);};
5741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5742int argc;
5743char **argv;
5744int
5745main ()
5746{
5747return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5753	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5754do
5755  CC="$ac_save_CC $ac_arg"
5756  rm -f conftest.$ac_objext
5757if { (ac_try="$ac_compile"
5758case "(($ac_try" in
5759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760  *) ac_try_echo=$ac_try;;
5761esac
5762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763$as_echo "$ac_try_echo") >&5
5764  (eval "$ac_compile") 2>conftest.er1
5765  ac_status=$?
5766  grep -v '^ *+' conftest.er1 >conftest.err
5767  rm -f conftest.er1
5768  cat conftest.err >&5
5769  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770  (exit $ac_status); } && {
5771	 test -z "$ac_c_werror_flag" ||
5772	 test ! -s conftest.err
5773       } && test -s conftest.$ac_objext; then
5774  ac_cv_prog_cc_c89=$ac_arg
5775else
5776  $as_echo "$as_me: failed program was:" >&5
5777sed 's/^/| /' conftest.$ac_ext >&5
5778
5779
5780fi
5781
5782rm -f core conftest.err conftest.$ac_objext
5783  test "x$ac_cv_prog_cc_c89" != "xno" && break
5784done
5785rm -f conftest.$ac_ext
5786CC=$ac_save_CC
5787
5788fi
5789# AC_CACHE_VAL
5790case "x$ac_cv_prog_cc_c89" in
5791  x)
5792    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5793$as_echo "none needed" >&6; } ;;
5794  xno)
5795    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5796$as_echo "unsupported" >&6; } ;;
5797  *)
5798    CC="$CC $ac_cv_prog_cc_c89"
5799    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5800$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5801esac
5802if test "x$ac_cv_prog_cc_c89" != xno; then
5803  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5804else
5805  ac_cv_prog_cc_stdc=no
5806fi
5807
5808
5809fi
5810
5811 ;;
5812esac
5813  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
5814$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5815  if test "${ac_cv_prog_cc_stdc+set}" = set; then
5816  $as_echo_n "(cached) " >&6
5817fi
5818
5819  case $ac_cv_prog_cc_stdc in
5820  no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5821$as_echo "unsupported" >&6; } ;;
5822  '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
5823$as_echo "none needed" >&6; } ;;
5824  *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5825$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5826esac
5827
5828
5829ac_ext=c
5830ac_cpp='$CPP $CPPFLAGS'
5831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5835$as_echo_n "checking how to run the C preprocessor... " >&6; }
5836# On Suns, sometimes $CPP names a directory.
5837if test -n "$CPP" && test -d "$CPP"; then
5838  CPP=
5839fi
5840if test -z "$CPP"; then
5841  if test "${ac_cv_prog_CPP+set}" = set; then
5842  $as_echo_n "(cached) " >&6
5843else
5844      # Double quotes because CPP needs to be expanded
5845    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5846    do
5847      ac_preproc_ok=false
5848for ac_c_preproc_warn_flag in '' yes
5849do
5850  # Use a header file that comes with gcc, so configuring glibc
5851  # with a fresh cross-compiler works.
5852  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853  # <limits.h> exists even on freestanding compilers.
5854  # On the NeXT, cc -E runs the code through the compiler's parser,
5855  # not just through cpp. "Syntax error" is here to catch this case.
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862#ifdef __STDC__
5863# include <limits.h>
5864#else
5865# include <assert.h>
5866#endif
5867		     Syntax error
5868_ACEOF
5869if { (ac_try="$ac_cpp conftest.$ac_ext"
5870case "(($ac_try" in
5871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872  *) ac_try_echo=$ac_try;;
5873esac
5874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875$as_echo "$ac_try_echo") >&5
5876  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877  ac_status=$?
5878  grep -v '^ *+' conftest.er1 >conftest.err
5879  rm -f conftest.er1
5880  cat conftest.err >&5
5881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); } >/dev/null && {
5883	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5884	 test ! -s conftest.err
5885       }; then
5886  :
5887else
5888  $as_echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891  # Broken: fails on valid input.
5892continue
5893fi
5894
5895rm -f conftest.err conftest.$ac_ext
5896
5897  # OK, works on sane cases.  Now check whether nonexistent headers
5898  # can be detected and how.
5899  cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905#include <ac_nonexistent.h>
5906_ACEOF
5907if { (ac_try="$ac_cpp conftest.$ac_ext"
5908case "(($ac_try" in
5909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910  *) ac_try_echo=$ac_try;;
5911esac
5912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913$as_echo "$ac_try_echo") >&5
5914  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5915  ac_status=$?
5916  grep -v '^ *+' conftest.er1 >conftest.err
5917  rm -f conftest.er1
5918  cat conftest.err >&5
5919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); } >/dev/null && {
5921	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5922	 test ! -s conftest.err
5923       }; then
5924  # Broken: success on invalid input.
5925continue
5926else
5927  $as_echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930  # Passes both tests.
5931ac_preproc_ok=:
5932break
5933fi
5934
5935rm -f conftest.err conftest.$ac_ext
5936
5937done
5938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5939rm -f conftest.err conftest.$ac_ext
5940if $ac_preproc_ok; then
5941  break
5942fi
5943
5944    done
5945    ac_cv_prog_CPP=$CPP
5946
5947fi
5948  CPP=$ac_cv_prog_CPP
5949else
5950  ac_cv_prog_CPP=$CPP
5951fi
5952{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5953$as_echo "$CPP" >&6; }
5954ac_preproc_ok=false
5955for ac_c_preproc_warn_flag in '' yes
5956do
5957  # Use a header file that comes with gcc, so configuring glibc
5958  # with a fresh cross-compiler works.
5959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5960  # <limits.h> exists even on freestanding compilers.
5961  # On the NeXT, cc -E runs the code through the compiler's parser,
5962  # not just through cpp. "Syntax error" is here to catch this case.
5963  cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h.  */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h.  */
5969#ifdef __STDC__
5970# include <limits.h>
5971#else
5972# include <assert.h>
5973#endif
5974		     Syntax error
5975_ACEOF
5976if { (ac_try="$ac_cpp conftest.$ac_ext"
5977case "(($ac_try" in
5978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979  *) ac_try_echo=$ac_try;;
5980esac
5981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5982$as_echo "$ac_try_echo") >&5
5983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5984  ac_status=$?
5985  grep -v '^ *+' conftest.er1 >conftest.err
5986  rm -f conftest.er1
5987  cat conftest.err >&5
5988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); } >/dev/null && {
5990	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5991	 test ! -s conftest.err
5992       }; then
5993  :
5994else
5995  $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998  # Broken: fails on valid input.
5999continue
6000fi
6001
6002rm -f conftest.err conftest.$ac_ext
6003
6004  # OK, works on sane cases.  Now check whether nonexistent headers
6005  # can be detected and how.
6006  cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h.  */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h.  */
6012#include <ac_nonexistent.h>
6013_ACEOF
6014if { (ac_try="$ac_cpp conftest.$ac_ext"
6015case "(($ac_try" in
6016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017  *) ac_try_echo=$ac_try;;
6018esac
6019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020$as_echo "$ac_try_echo") >&5
6021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } >/dev/null && {
6028	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6029	 test ! -s conftest.err
6030       }; then
6031  # Broken: success on invalid input.
6032continue
6033else
6034  $as_echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037  # Passes both tests.
6038ac_preproc_ok=:
6039break
6040fi
6041
6042rm -f conftest.err conftest.$ac_ext
6043
6044done
6045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046rm -f conftest.err conftest.$ac_ext
6047if $ac_preproc_ok; then
6048  :
6049else
6050  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6053See \`config.log' for more details." >&5
6054$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6055See \`config.log' for more details." >&2;}
6056   { (exit 1); exit 1; }; }; }
6057fi
6058
6059ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
6065# Find a good install program.  We prefer a C program (faster),
6066# so one script is as good as another.  But avoid the broken or
6067# incompatible versions:
6068# SysV /etc/install, /usr/sbin/install
6069# SunOS /usr/etc/install
6070# IRIX /sbin/install
6071# AIX /bin/install
6072# AmigaOS /C/install, which installs bootblocks on floppy discs
6073# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6074# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6075# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6076# OS/2's system install, which has a completely different semantic
6077# ./install, which can be erroneously created by make from ./install.sh.
6078# Reject install programs that cannot install multiple files.
6079{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6080$as_echo_n "checking for a BSD-compatible install... " >&6; }
6081if test -z "$INSTALL"; then
6082if test "${ac_cv_path_install+set}" = set; then
6083  $as_echo_n "(cached) " >&6
6084else
6085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090  # Account for people who put trailing slashes in PATH elements.
6091case $as_dir/ in
6092  ./ | .// | /cC/* | \
6093  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6094  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6095  /usr/ucb/* ) ;;
6096  *)
6097    # OSF1 and SCO ODT 3.0 have their own names for install.
6098    # Don't use installbsd from OSF since it installs stuff as root
6099    # by default.
6100    for ac_prog in ginstall scoinst install; do
6101      for ac_exec_ext in '' $ac_executable_extensions; do
6102	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6103	  if test $ac_prog = install &&
6104	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6105	    # AIX install.  It has an incompatible calling convention.
6106	    :
6107	  elif test $ac_prog = install &&
6108	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6109	    # program-specific install script used by HP pwplus--don't use.
6110	    :
6111	  else
6112	    rm -rf conftest.one conftest.two conftest.dir
6113	    echo one > conftest.one
6114	    echo two > conftest.two
6115	    mkdir conftest.dir
6116	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6117	      test -s conftest.one && test -s conftest.two &&
6118	      test -s conftest.dir/conftest.one &&
6119	      test -s conftest.dir/conftest.two
6120	    then
6121	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6122	      break 3
6123	    fi
6124	  fi
6125	fi
6126      done
6127    done
6128    ;;
6129esac
6130
6131done
6132IFS=$as_save_IFS
6133
6134rm -rf conftest.one conftest.two conftest.dir
6135
6136fi
6137  if test "${ac_cv_path_install+set}" = set; then
6138    INSTALL=$ac_cv_path_install
6139  else
6140    # As a last resort, use the slow shell script.  Don't cache a
6141    # value for INSTALL within a source directory, because that will
6142    # break other packages using the cache if that directory is
6143    # removed, or if the value is a relative name.
6144    INSTALL=$ac_install_sh
6145  fi
6146fi
6147{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6148$as_echo "$INSTALL" >&6; }
6149
6150# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6151# It thinks the first close brace ends the variable substitution.
6152test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6153
6154test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6155
6156test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6157
6158{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6159$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6160set x ${MAKE-make}
6161ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6162if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6163  $as_echo_n "(cached) " >&6
6164else
6165  cat >conftest.make <<\_ACEOF
6166SHELL = /bin/sh
6167all:
6168	@echo '@@@%%%=$(MAKE)=@@@%%%'
6169_ACEOF
6170# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6171case `${MAKE-make} -f conftest.make 2>/dev/null` in
6172  *@@@%%%=?*=@@@%%%*)
6173    eval ac_cv_prog_make_${ac_make}_set=yes;;
6174  *)
6175    eval ac_cv_prog_make_${ac_make}_set=no;;
6176esac
6177rm -f conftest.make
6178fi
6179if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6180  { $as_echo "$as_me:$LINENO: result: yes" >&5
6181$as_echo "yes" >&6; }
6182  SET_MAKE=
6183else
6184  { $as_echo "$as_me:$LINENO: result: no" >&5
6185$as_echo "no" >&6; }
6186  SET_MAKE="MAKE=${MAKE-make}"
6187fi
6188
6189{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6190$as_echo_n "checking whether ln -s works... " >&6; }
6191LN_S=$as_ln_s
6192if test "$LN_S" = "ln -s"; then
6193  { $as_echo "$as_me:$LINENO: result: yes" >&5
6194$as_echo "yes" >&6; }
6195else
6196  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6197$as_echo "no, using $LN_S" >&6; }
6198fi
6199
6200
6201# Check if LD supports linker scripts,
6202# and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
6203# Check whether --enable-ld-version-script was given.
6204if test "${enable_ld_version_script+set}" = set; then
6205  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
6206fi
6207
6208if test -z "$have_ld_version_script"; then
6209  { $as_echo "$as_me:$LINENO: checking if LD -Wl,--version-script works" >&5
6210$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
6211  save_LDFLAGS="$LDFLAGS"
6212  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
6213  cat > conftest.map <<EOF
6214VERS_1 {
6215        global: sym;
6216};
6217
6218VERS_2 {
6219        global: sym;
6220} VERS_1;
6221EOF
6222  cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h.  */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h.  */
6228
6229int
6230main ()
6231{
6232
6233  ;
6234  return 0;
6235}
6236_ACEOF
6237rm -f conftest.$ac_objext conftest$ac_exeext
6238if { (ac_try="$ac_link"
6239case "(($ac_try" in
6240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241  *) ac_try_echo=$ac_try;;
6242esac
6243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6244$as_echo "$ac_try_echo") >&5
6245  (eval "$ac_link") 2>conftest.er1
6246  ac_status=$?
6247  grep -v '^ *+' conftest.er1 >conftest.err
6248  rm -f conftest.er1
6249  cat conftest.err >&5
6250  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251  (exit $ac_status); } && {
6252	 test -z "$ac_c_werror_flag" ||
6253	 test ! -s conftest.err
6254       } && test -s conftest$ac_exeext && {
6255	 test "$cross_compiling" = yes ||
6256	 $as_test_x conftest$ac_exeext
6257       }; then
6258  have_ld_version_script=yes
6259else
6260  $as_echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263	have_ld_version_script=no
6264fi
6265
6266rm -rf conftest.dSYM
6267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6268      conftest$ac_exeext conftest.$ac_ext
6269  rm -f conftest.map
6270  LDFLAGS="$save_LDFLAGS"
6271  { $as_echo "$as_me:$LINENO: result: $have_ld_version_script" >&5
6272$as_echo "$have_ld_version_script" >&6; }
6273fi
6274 if test "$have_ld_version_script" = "yes"; then
6275  HAVE_LD_VERSION_SCRIPT_TRUE=
6276  HAVE_LD_VERSION_SCRIPT_FALSE='#'
6277else
6278  HAVE_LD_VERSION_SCRIPT_TRUE='#'
6279  HAVE_LD_VERSION_SCRIPT_FALSE=
6280fi
6281
6282
6283# See if compiler supports prototypes.
6284{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6285$as_echo_n "checking for function prototypes... " >&6; }
6286if test "${ijg_cv_have_prototypes+set}" = set; then
6287  $as_echo_n "(cached) " >&6
6288else
6289  cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h.  */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h.  */
6295
6296int testfunction (int arg1, int * arg2); /* check prototypes */
6297struct methods_struct {		/* check method-pointer declarations */
6298  int (*error_exit) (char *msgtext);
6299  int (*trace_message) (char *msgtext);
6300  int (*another_method) (void);
6301};
6302int testfunction (int arg1, int * arg2) /* check definitions */
6303{ return arg2[arg1]; }
6304int test2function (void)	/* check void arg list */
6305{ return 0; }
6306
6307int
6308main ()
6309{
6310
6311  ;
6312  return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (ac_try="$ac_compile"
6317case "(($ac_try" in
6318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319  *) ac_try_echo=$ac_try;;
6320esac
6321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6322$as_echo "$ac_try_echo") >&5
6323  (eval "$ac_compile") 2>conftest.er1
6324  ac_status=$?
6325  grep -v '^ *+' conftest.er1 >conftest.err
6326  rm -f conftest.er1
6327  cat conftest.err >&5
6328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); } && {
6330	 test -z "$ac_c_werror_flag" ||
6331	 test ! -s conftest.err
6332       } && test -s conftest.$ac_objext; then
6333  ijg_cv_have_prototypes=yes
6334else
6335  $as_echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338	ijg_cv_have_prototypes=no
6339fi
6340
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342fi
6343
6344{ $as_echo "$as_me:$LINENO: result: $ijg_cv_have_prototypes" >&5
6345$as_echo "$ijg_cv_have_prototypes" >&6; }
6346if test $ijg_cv_have_prototypes = yes; then
6347
6348cat >>confdefs.h <<\_ACEOF
6349#define HAVE_PROTOTYPES 1
6350_ACEOF
6351
6352else
6353  echo Your compiler does not seem to know about function prototypes.
6354  echo Perhaps it needs a special switch to enable ANSI C mode.
6355  echo If so, we recommend running configure like this:
6356  echo "   ./configure  CC='cc -switch'"
6357  echo where -switch is the proper switch.
6358fi
6359
6360# Check header files
6361
6362
6363
6364for ac_header in stddef.h stdlib.h locale.h
6365do
6366as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6368  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6369$as_echo_n "checking for $ac_header... " >&6; }
6370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371  $as_echo_n "(cached) " >&6
6372fi
6373ac_res=`eval 'as_val=${'$as_ac_Header'}
6374		 $as_echo "$as_val"'`
6375	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6376$as_echo "$ac_res" >&6; }
6377else
6378  # Is the header compilable?
6379{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6380$as_echo_n "checking $ac_header usability... " >&6; }
6381cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387$ac_includes_default
6388#include <$ac_header>
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (ac_try="$ac_compile"
6392case "(($ac_try" in
6393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394  *) ac_try_echo=$ac_try;;
6395esac
6396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6397$as_echo "$ac_try_echo") >&5
6398  (eval "$ac_compile") 2>conftest.er1
6399  ac_status=$?
6400  grep -v '^ *+' conftest.er1 >conftest.err
6401  rm -f conftest.er1
6402  cat conftest.err >&5
6403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404  (exit $ac_status); } && {
6405	 test -z "$ac_c_werror_flag" ||
6406	 test ! -s conftest.err
6407       } && test -s conftest.$ac_objext; then
6408  ac_header_compiler=yes
6409else
6410  $as_echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413	ac_header_compiler=no
6414fi
6415
6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418$as_echo "$ac_header_compiler" >&6; }
6419
6420# Is the header present?
6421{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6422$as_echo_n "checking $ac_header presence... " >&6; }
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429#include <$ac_header>
6430_ACEOF
6431if { (ac_try="$ac_cpp conftest.$ac_ext"
6432case "(($ac_try" in
6433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434  *) ac_try_echo=$ac_try;;
6435esac
6436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6437$as_echo "$ac_try_echo") >&5
6438  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6439  ac_status=$?
6440  grep -v '^ *+' conftest.er1 >conftest.err
6441  rm -f conftest.er1
6442  cat conftest.err >&5
6443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } >/dev/null && {
6445	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6446	 test ! -s conftest.err
6447       }; then
6448  ac_header_preproc=yes
6449else
6450  $as_echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453  ac_header_preproc=no
6454fi
6455
6456rm -f conftest.err conftest.$ac_ext
6457{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458$as_echo "$ac_header_preproc" >&6; }
6459
6460# So?  What about this header?
6461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462  yes:no: )
6463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467    ac_header_preproc=yes
6468    ;;
6469  no:yes:* )
6470    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6473$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6474    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6477$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6478    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6482
6483    ;;
6484esac
6485{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6486$as_echo_n "checking for $ac_header... " >&6; }
6487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6488  $as_echo_n "(cached) " >&6
6489else
6490  eval "$as_ac_Header=\$ac_header_preproc"
6491fi
6492ac_res=`eval 'as_val=${'$as_ac_Header'}
6493		 $as_echo "$as_val"'`
6494	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6495$as_echo "$ac_res" >&6; }
6496
6497fi
6498as_val=`eval 'as_val=${'$as_ac_Header'}
6499		 $as_echo "$as_val"'`
6500   if test "x$as_val" = x""yes; then
6501  cat >>confdefs.h <<_ACEOF
6502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6503_ACEOF
6504
6505fi
6506
6507done
6508
6509if test "${ac_cv_header_string_h+set}" = set; then
6510  { $as_echo "$as_me:$LINENO: checking for string.h" >&5
6511$as_echo_n "checking for string.h... " >&6; }
6512if test "${ac_cv_header_string_h+set}" = set; then
6513  $as_echo_n "(cached) " >&6
6514fi
6515{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6516$as_echo "$ac_cv_header_string_h" >&6; }
6517else
6518  # Is the header compilable?
6519{ $as_echo "$as_me:$LINENO: checking string.h usability" >&5
6520$as_echo_n "checking string.h usability... " >&6; }
6521cat >conftest.$ac_ext <<_ACEOF
6522/* confdefs.h.  */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h.  */
6527$ac_includes_default
6528#include <string.h>
6529_ACEOF
6530rm -f conftest.$ac_objext
6531if { (ac_try="$ac_compile"
6532case "(($ac_try" in
6533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534  *) ac_try_echo=$ac_try;;
6535esac
6536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6537$as_echo "$ac_try_echo") >&5
6538  (eval "$ac_compile") 2>conftest.er1
6539  ac_status=$?
6540  grep -v '^ *+' conftest.er1 >conftest.err
6541  rm -f conftest.er1
6542  cat conftest.err >&5
6543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); } && {
6545	 test -z "$ac_c_werror_flag" ||
6546	 test ! -s conftest.err
6547       } && test -s conftest.$ac_objext; then
6548  ac_header_compiler=yes
6549else
6550  $as_echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553	ac_header_compiler=no
6554fi
6555
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6558$as_echo "$ac_header_compiler" >&6; }
6559
6560# Is the header present?
6561{ $as_echo "$as_me:$LINENO: checking string.h presence" >&5
6562$as_echo_n "checking string.h presence... " >&6; }
6563cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569#include <string.h>
6570_ACEOF
6571if { (ac_try="$ac_cpp conftest.$ac_ext"
6572case "(($ac_try" in
6573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574  *) ac_try_echo=$ac_try;;
6575esac
6576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6577$as_echo "$ac_try_echo") >&5
6578  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6579  ac_status=$?
6580  grep -v '^ *+' conftest.er1 >conftest.err
6581  rm -f conftest.er1
6582  cat conftest.err >&5
6583  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584  (exit $ac_status); } >/dev/null && {
6585	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6586	 test ! -s conftest.err
6587       }; then
6588  ac_header_preproc=yes
6589else
6590  $as_echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593  ac_header_preproc=no
6594fi
6595
6596rm -f conftest.err conftest.$ac_ext
6597{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6598$as_echo "$ac_header_preproc" >&6; }
6599
6600# So?  What about this header?
6601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6602  yes:no: )
6603    { $as_echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6604$as_echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6605    { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6606$as_echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6607    ac_header_preproc=yes
6608    ;;
6609  no:yes:* )
6610    { $as_echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6611$as_echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6612    { $as_echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6613$as_echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6614    { $as_echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6615$as_echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6616    { $as_echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6617$as_echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6618    { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6619$as_echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6620    { $as_echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6621$as_echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6622
6623    ;;
6624esac
6625{ $as_echo "$as_me:$LINENO: checking for string.h" >&5
6626$as_echo_n "checking for string.h... " >&6; }
6627if test "${ac_cv_header_string_h+set}" = set; then
6628  $as_echo_n "(cached) " >&6
6629else
6630  ac_cv_header_string_h=$ac_header_preproc
6631fi
6632{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6633$as_echo "$ac_cv_header_string_h" >&6; }
6634
6635fi
6636if test "x$ac_cv_header_string_h" = x""yes; then
6637  :
6638else
6639
6640cat >>confdefs.h <<\_ACEOF
6641#define NEED_BSD_STRINGS 1
6642_ACEOF
6643
6644fi
6645
6646
6647
6648# See whether type size_t is defined in any ANSI-standard places;
6649# if not, perhaps it is defined in <sys/types.h>.
6650{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6651$as_echo_n "checking for size_t... " >&6; }
6652cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658
6659#ifdef HAVE_STDDEF_H
6660#include <stddef.h>
6661#endif
6662#ifdef HAVE_STDLIB_H
6663#include <stdlib.h>
6664#endif
6665#include <stdio.h>
6666#ifdef NEED_BSD_STRINGS
6667#include <strings.h>
6668#else
6669#include <string.h>
6670#endif
6671typedef size_t my_size_t;
6672
6673int
6674main ()
6675{
6676 my_size_t foovar;
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681rm -f conftest.$ac_objext
6682if { (ac_try="$ac_compile"
6683case "(($ac_try" in
6684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685  *) ac_try_echo=$ac_try;;
6686esac
6687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6688$as_echo "$ac_try_echo") >&5
6689  (eval "$ac_compile") 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } && {
6696	 test -z "$ac_c_werror_flag" ||
6697	 test ! -s conftest.err
6698       } && test -s conftest.$ac_objext; then
6699  ijg_size_t_ok=yes
6700else
6701  $as_echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704	ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
6705fi
6706
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708{ $as_echo "$as_me:$LINENO: result: $ijg_size_t_ok" >&5
6709$as_echo "$ijg_size_t_ok" >&6; }
6710if test "$ijg_size_t_ok" != yes; then
6711if test "${ac_cv_header_sys_types_h+set}" = set; then
6712  { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
6713$as_echo_n "checking for sys/types.h... " >&6; }
6714if test "${ac_cv_header_sys_types_h+set}" = set; then
6715  $as_echo_n "(cached) " >&6
6716fi
6717{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
6718$as_echo "$ac_cv_header_sys_types_h" >&6; }
6719else
6720  # Is the header compilable?
6721{ $as_echo "$as_me:$LINENO: checking sys/types.h usability" >&5
6722$as_echo_n "checking sys/types.h usability... " >&6; }
6723cat >conftest.$ac_ext <<_ACEOF
6724/* confdefs.h.  */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h.  */
6729$ac_includes_default
6730#include <sys/types.h>
6731_ACEOF
6732rm -f conftest.$ac_objext
6733if { (ac_try="$ac_compile"
6734case "(($ac_try" in
6735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736  *) ac_try_echo=$ac_try;;
6737esac
6738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739$as_echo "$ac_try_echo") >&5
6740  (eval "$ac_compile") 2>conftest.er1
6741  ac_status=$?
6742  grep -v '^ *+' conftest.er1 >conftest.err
6743  rm -f conftest.er1
6744  cat conftest.err >&5
6745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746  (exit $ac_status); } && {
6747	 test -z "$ac_c_werror_flag" ||
6748	 test ! -s conftest.err
6749       } && test -s conftest.$ac_objext; then
6750  ac_header_compiler=yes
6751else
6752  $as_echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
6755	ac_header_compiler=no
6756fi
6757
6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760$as_echo "$ac_header_compiler" >&6; }
6761
6762# Is the header present?
6763{ $as_echo "$as_me:$LINENO: checking sys/types.h presence" >&5
6764$as_echo_n "checking sys/types.h presence... " >&6; }
6765cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h.  */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h.  */
6771#include <sys/types.h>
6772_ACEOF
6773if { (ac_try="$ac_cpp conftest.$ac_ext"
6774case "(($ac_try" in
6775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776  *) ac_try_echo=$ac_try;;
6777esac
6778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779$as_echo "$ac_try_echo") >&5
6780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6781  ac_status=$?
6782  grep -v '^ *+' conftest.er1 >conftest.err
6783  rm -f conftest.er1
6784  cat conftest.err >&5
6785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786  (exit $ac_status); } >/dev/null && {
6787	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6788	 test ! -s conftest.err
6789       }; then
6790  ac_header_preproc=yes
6791else
6792  $as_echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795  ac_header_preproc=no
6796fi
6797
6798rm -f conftest.err conftest.$ac_ext
6799{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6800$as_echo "$ac_header_preproc" >&6; }
6801
6802# So?  What about this header?
6803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6804  yes:no: )
6805    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
6806$as_echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6807    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
6808$as_echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
6809    ac_header_preproc=yes
6810    ;;
6811  no:yes:* )
6812    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
6813$as_echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
6814    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
6815$as_echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
6816    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
6817$as_echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
6818    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
6819$as_echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6820    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
6821$as_echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
6822    { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
6823$as_echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
6824
6825    ;;
6826esac
6827{ $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
6828$as_echo_n "checking for sys/types.h... " >&6; }
6829if test "${ac_cv_header_sys_types_h+set}" = set; then
6830  $as_echo_n "(cached) " >&6
6831else
6832  ac_cv_header_sys_types_h=$ac_header_preproc
6833fi
6834{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
6835$as_echo "$ac_cv_header_sys_types_h" >&6; }
6836
6837fi
6838if test "x$ac_cv_header_sys_types_h" = x""yes; then
6839
6840cat >>confdefs.h <<\_ACEOF
6841#define NEED_SYS_TYPES_H 1
6842_ACEOF
6843
6844cat >conftest.$ac_ext <<_ACEOF
6845/* confdefs.h.  */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h.  */
6850#include <sys/types.h>
6851_ACEOF
6852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853  $EGREP "size_t" >/dev/null 2>&1; then
6854  ijg_size_t_ok="size_t is in sys/types.h"
6855else
6856  ijg_size_t_ok=no
6857fi
6858rm -f conftest*
6859
6860else
6861  ijg_size_t_ok=no
6862fi
6863
6864
6865{ $as_echo "$as_me:$LINENO: result: $ijg_size_t_ok" >&5
6866$as_echo "$ijg_size_t_ok" >&6; }
6867if test "$ijg_size_t_ok" = no; then
6868  echo Type size_t is not defined in any of the usual places.
6869  echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
6870fi
6871fi
6872
6873# Check compiler characteristics
6874{ $as_echo "$as_me:$LINENO: checking for type unsigned char" >&5
6875$as_echo_n "checking for type unsigned char... " >&6; }
6876cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882
6883int
6884main ()
6885{
6886 unsigned char un_char;
6887  ;
6888  return 0;
6889}
6890_ACEOF
6891rm -f conftest.$ac_objext
6892if { (ac_try="$ac_compile"
6893case "(($ac_try" in
6894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895  *) ac_try_echo=$ac_try;;
6896esac
6897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898$as_echo "$ac_try_echo") >&5
6899  (eval "$ac_compile") 2>conftest.er1
6900  ac_status=$?
6901  grep -v '^ *+' conftest.er1 >conftest.err
6902  rm -f conftest.er1
6903  cat conftest.err >&5
6904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); } && {
6906	 test -z "$ac_c_werror_flag" ||
6907	 test ! -s conftest.err
6908       } && test -s conftest.$ac_objext; then
6909  { $as_echo "$as_me:$LINENO: result: yes" >&5
6910$as_echo "yes" >&6; }
6911
6912cat >>confdefs.h <<\_ACEOF
6913#define HAVE_UNSIGNED_CHAR 1
6914_ACEOF
6915
6916else
6917  $as_echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920	{ $as_echo "$as_me:$LINENO: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925{ $as_echo "$as_me:$LINENO: checking for type unsigned short" >&5
6926$as_echo_n "checking for type unsigned short... " >&6; }
6927cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h.  */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h.  */
6933
6934int
6935main ()
6936{
6937 unsigned short un_short;
6938  ;
6939  return 0;
6940}
6941_ACEOF
6942rm -f conftest.$ac_objext
6943if { (ac_try="$ac_compile"
6944case "(($ac_try" in
6945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946  *) ac_try_echo=$ac_try;;
6947esac
6948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949$as_echo "$ac_try_echo") >&5
6950  (eval "$ac_compile") 2>conftest.er1
6951  ac_status=$?
6952  grep -v '^ *+' conftest.er1 >conftest.err
6953  rm -f conftest.er1
6954  cat conftest.err >&5
6955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); } && {
6957	 test -z "$ac_c_werror_flag" ||
6958	 test ! -s conftest.err
6959       } && test -s conftest.$ac_objext; then
6960  { $as_echo "$as_me:$LINENO: result: yes" >&5
6961$as_echo "yes" >&6; }
6962
6963cat >>confdefs.h <<\_ACEOF
6964#define HAVE_UNSIGNED_SHORT 1
6965_ACEOF
6966
6967else
6968  $as_echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
6971	{ $as_echo "$as_me:$LINENO: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974
6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976{ $as_echo "$as_me:$LINENO: checking for type void" >&5
6977$as_echo_n "checking for type void... " >&6; }
6978cat >conftest.$ac_ext <<_ACEOF
6979/* confdefs.h.  */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h.  */
6984
6985/* Caution: a C++ compiler will insist on valid prototypes */
6986typedef void * void_ptr;	/* check void * */
6987#ifdef HAVE_PROTOTYPES		/* check ptr to function returning void */
6988typedef void (*void_func) (int a, int b);
6989#else
6990typedef void (*void_func) ();
6991#endif
6992
6993#ifdef HAVE_PROTOTYPES		/* check void function result */
6994void test3function (void_ptr arg1, void_func arg2)
6995#else
6996void test3function (arg1, arg2)
6997     void_ptr arg1;
6998     void_func arg2;
6999#endif
7000{
7001  char * locptr = (char *) arg1; /* check casting to and from void * */
7002  arg1 = (void *) locptr;
7003  (*arg2) (1, 2);		/* check call of fcn returning void */
7004}
7005
7006int
7007main ()
7008{
7009
7010  ;
7011  return 0;
7012}
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (ac_try="$ac_compile"
7016case "(($ac_try" in
7017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018  *) ac_try_echo=$ac_try;;
7019esac
7020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7021$as_echo "$ac_try_echo") >&5
7022  (eval "$ac_compile") 2>conftest.er1
7023  ac_status=$?
7024  grep -v '^ *+' conftest.er1 >conftest.err
7025  rm -f conftest.er1
7026  cat conftest.err >&5
7027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } && {
7029	 test -z "$ac_c_werror_flag" ||
7030	 test ! -s conftest.err
7031       } && test -s conftest.$ac_objext; then
7032  { $as_echo "$as_me:$LINENO: result: yes" >&5
7033$as_echo "yes" >&6; }
7034else
7035  $as_echo "$as_me: failed program was:" >&5
7036sed 's/^/| /' conftest.$ac_ext >&5
7037
7038	{ $as_echo "$as_me:$LINENO: result: no" >&5
7039$as_echo "no" >&6; }
7040
7041cat >>confdefs.h <<\_ACEOF
7042#define void char
7043_ACEOF
7044
7045fi
7046
7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7049$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7050if test "${ac_cv_c_const+set}" = set; then
7051  $as_echo_n "(cached) " >&6
7052else
7053  cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h.  */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h.  */
7059
7060int
7061main ()
7062{
7063/* FIXME: Include the comments suggested by Paul. */
7064#ifndef __cplusplus
7065  /* Ultrix mips cc rejects this.  */
7066  typedef int charset[2];
7067  const charset cs;
7068  /* SunOS 4.1.1 cc rejects this.  */
7069  char const *const *pcpcc;
7070  char **ppc;
7071  /* NEC SVR4.0.2 mips cc rejects this.  */
7072  struct point {int x, y;};
7073  static struct point const zero = {0,0};
7074  /* AIX XL C 1.02.0.0 rejects this.
7075     It does not let you subtract one const X* pointer from another in
7076     an arm of an if-expression whose if-part is not a constant
7077     expression */
7078  const char *g = "string";
7079  pcpcc = &g + (g ? g-g : 0);
7080  /* HPUX 7.0 cc rejects these. */
7081  ++pcpcc;
7082  ppc = (char**) pcpcc;
7083  pcpcc = (char const *const *) ppc;
7084  { /* SCO 3.2v4 cc rejects this.  */
7085    char *t;
7086    char const *s = 0 ? (char *) 0 : (char const *) 0;
7087
7088    *t++ = 0;
7089    if (s) return 0;
7090  }
7091  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7092    int x[] = {25, 17};
7093    const int *foo = &x[0];
7094    ++foo;
7095  }
7096  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7097    typedef const int *iptr;
7098    iptr p = 0;
7099    ++p;
7100  }
7101  { /* AIX XL C 1.02.0.0 rejects this saying
7102       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7103    struct s { int j; const int *ap[3]; };
7104    struct s *b; b->j = 5;
7105  }
7106  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7107    const int foo = 10;
7108    if (!foo) return 0;
7109  }
7110  return !cs[0] && !zero.x;
7111#endif
7112
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext
7118if { (ac_try="$ac_compile"
7119case "(($ac_try" in
7120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121  *) ac_try_echo=$ac_try;;
7122esac
7123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7124$as_echo "$ac_try_echo") >&5
7125  (eval "$ac_compile") 2>conftest.er1
7126  ac_status=$?
7127  grep -v '^ *+' conftest.er1 >conftest.err
7128  rm -f conftest.er1
7129  cat conftest.err >&5
7130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); } && {
7132	 test -z "$ac_c_werror_flag" ||
7133	 test ! -s conftest.err
7134       } && test -s conftest.$ac_objext; then
7135  ac_cv_c_const=yes
7136else
7137  $as_echo "$as_me: failed program was:" >&5
7138sed 's/^/| /' conftest.$ac_ext >&5
7139
7140	ac_cv_c_const=no
7141fi
7142
7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144fi
7145{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7146$as_echo "$ac_cv_c_const" >&6; }
7147if test $ac_cv_c_const = no; then
7148
7149cat >>confdefs.h <<\_ACEOF
7150#define const /**/
7151_ACEOF
7152
7153fi
7154
7155
7156# Check for non-broken inline under various spellings
7157{ $as_echo "$as_me:$LINENO: checking for inline" >&5
7158$as_echo_n "checking for inline... " >&6; }
7159ijg_cv_inline=""
7160cat >conftest.$ac_ext <<_ACEOF
7161/* confdefs.h.  */
7162_ACEOF
7163cat confdefs.h >>conftest.$ac_ext
7164cat >>conftest.$ac_ext <<_ACEOF
7165/* end confdefs.h.  */
7166
7167int
7168main ()
7169{
7170} __inline__ int foo() { return 0; }
7171int bar() { return foo();
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176rm -f conftest.$ac_objext
7177if { (ac_try="$ac_compile"
7178case "(($ac_try" in
7179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180  *) ac_try_echo=$ac_try;;
7181esac
7182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7183$as_echo "$ac_try_echo") >&5
7184  (eval "$ac_compile") 2>conftest.er1
7185  ac_status=$?
7186  grep -v '^ *+' conftest.er1 >conftest.err
7187  rm -f conftest.er1
7188  cat conftest.err >&5
7189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190  (exit $ac_status); } && {
7191	 test -z "$ac_c_werror_flag" ||
7192	 test ! -s conftest.err
7193       } && test -s conftest.$ac_objext; then
7194  ijg_cv_inline="__inline__"
7195else
7196  $as_echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
7199	cat >conftest.$ac_ext <<_ACEOF
7200/* confdefs.h.  */
7201_ACEOF
7202cat confdefs.h >>conftest.$ac_ext
7203cat >>conftest.$ac_ext <<_ACEOF
7204/* end confdefs.h.  */
7205
7206int
7207main ()
7208{
7209} __inline int foo() { return 0; }
7210int bar() { return foo();
7211  ;
7212  return 0;
7213}
7214_ACEOF
7215rm -f conftest.$ac_objext
7216if { (ac_try="$ac_compile"
7217case "(($ac_try" in
7218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219  *) ac_try_echo=$ac_try;;
7220esac
7221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7222$as_echo "$ac_try_echo") >&5
7223  (eval "$ac_compile") 2>conftest.er1
7224  ac_status=$?
7225  grep -v '^ *+' conftest.er1 >conftest.err
7226  rm -f conftest.er1
7227  cat conftest.err >&5
7228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); } && {
7230	 test -z "$ac_c_werror_flag" ||
7231	 test ! -s conftest.err
7232       } && test -s conftest.$ac_objext; then
7233  ijg_cv_inline="__inline"
7234else
7235  $as_echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238	cat >conftest.$ac_ext <<_ACEOF
7239/* confdefs.h.  */
7240_ACEOF
7241cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF
7243/* end confdefs.h.  */
7244
7245int
7246main ()
7247{
7248} inline int foo() { return 0; }
7249int bar() { return foo();
7250  ;
7251  return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext
7255if { (ac_try="$ac_compile"
7256case "(($ac_try" in
7257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258  *) ac_try_echo=$ac_try;;
7259esac
7260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261$as_echo "$ac_try_echo") >&5
7262  (eval "$ac_compile") 2>conftest.er1
7263  ac_status=$?
7264  grep -v '^ *+' conftest.er1 >conftest.err
7265  rm -f conftest.er1
7266  cat conftest.err >&5
7267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); } && {
7269	 test -z "$ac_c_werror_flag" ||
7270	 test ! -s conftest.err
7271       } && test -s conftest.$ac_objext; then
7272  ijg_cv_inline="inline"
7273else
7274  $as_echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277
7278fi
7279
7280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281fi
7282
7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284fi
7285
7286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287{ $as_echo "$as_me:$LINENO: result: $ijg_cv_inline" >&5
7288$as_echo "$ijg_cv_inline" >&6; }
7289
7290cat >>confdefs.h <<_ACEOF
7291#define INLINE $ijg_cv_inline
7292_ACEOF
7293
7294
7295# We cannot check for bogus warnings, but at least we can check for errors
7296{ $as_echo "$as_me:$LINENO: checking for broken incomplete types" >&5
7297$as_echo_n "checking for broken incomplete types... " >&6; }
7298cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h.  */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h.  */
7304 typedef struct undefined_structure * undef_struct_ptr;
7305int
7306main ()
7307{
7308
7309  ;
7310  return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext
7314if { (ac_try="$ac_compile"
7315case "(($ac_try" in
7316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317  *) ac_try_echo=$ac_try;;
7318esac
7319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7320$as_echo "$ac_try_echo") >&5
7321  (eval "$ac_compile") 2>conftest.er1
7322  ac_status=$?
7323  grep -v '^ *+' conftest.er1 >conftest.err
7324  rm -f conftest.er1
7325  cat conftest.err >&5
7326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); } && {
7328	 test -z "$ac_c_werror_flag" ||
7329	 test ! -s conftest.err
7330       } && test -s conftest.$ac_objext; then
7331  { $as_echo "$as_me:$LINENO: result: ok" >&5
7332$as_echo "ok" >&6; }
7333else
7334  $as_echo "$as_me: failed program was:" >&5
7335sed 's/^/| /' conftest.$ac_ext >&5
7336
7337	{ $as_echo "$as_me:$LINENO: result: broken" >&5
7338$as_echo "broken" >&6; }
7339
7340cat >>confdefs.h <<\_ACEOF
7341#define INCOMPLETE_TYPES_BROKEN 1
7342_ACEOF
7343
7344fi
7345
7346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347
7348# Test whether global names are unique to at least 15 chars
7349{ $as_echo "$as_me:$LINENO: checking for short external names" >&5
7350$as_echo_n "checking for short external names... " >&6; }
7351cat >conftest.$ac_ext <<_ACEOF
7352/* confdefs.h.  */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h.  */
7357
7358int possibly_duplicate_function () { return 0; }
7359int possibly_dupli_function () { return 1; }
7360
7361int
7362main ()
7363{
7364
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369rm -f conftest.$ac_objext conftest$ac_exeext
7370if { (ac_try="$ac_link"
7371case "(($ac_try" in
7372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373  *) ac_try_echo=$ac_try;;
7374esac
7375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376$as_echo "$ac_try_echo") >&5
7377  (eval "$ac_link") 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } && {
7384	 test -z "$ac_c_werror_flag" ||
7385	 test ! -s conftest.err
7386       } && test -s conftest$ac_exeext && {
7387	 test "$cross_compiling" = yes ||
7388	 $as_test_x conftest$ac_exeext
7389       }; then
7390  { $as_echo "$as_me:$LINENO: result: ok" >&5
7391$as_echo "ok" >&6; }
7392else
7393  $as_echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396	{ $as_echo "$as_me:$LINENO: result: short" >&5
7397$as_echo "short" >&6; }
7398
7399cat >>confdefs.h <<\_ACEOF
7400#define NEED_SHORT_EXTERNAL_NAMES 1
7401_ACEOF
7402
7403fi
7404
7405rm -rf conftest.dSYM
7406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7407      conftest$ac_exeext conftest.$ac_ext
7408
7409# Run-time checks
7410{ $as_echo "$as_me:$LINENO: checking to see if char is signed" >&5
7411$as_echo_n "checking to see if char is signed... " >&6; }
7412if test "$cross_compiling" = yes; then
7413  echo Assuming that char is signed on target machine.
7414echo If it is unsigned, this will be a little bit inefficient.
7415
7416else
7417  cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h.  */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h.  */
7423
7424#ifdef HAVE_PROTOTYPES
7425int is_char_signed (int arg)
7426#else
7427int is_char_signed (arg)
7428     int arg;
7429#endif
7430{
7431  if (arg == 189) {		/* expected result for unsigned char */
7432    return 0;			/* type char is unsigned */
7433  }
7434  else if (arg != -67) {	/* expected result for signed char */
7435    printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
7436    printf("I fear the JPEG software will not work at all.\n\n");
7437  }
7438  return 1;			/* assume char is signed otherwise */
7439}
7440char signed_char_check = (char) (-67);
7441int main() {
7442  exit(is_char_signed((int) signed_char_check));
7443}
7444_ACEOF
7445rm -f conftest$ac_exeext
7446if { (ac_try="$ac_link"
7447case "(($ac_try" in
7448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449  *) ac_try_echo=$ac_try;;
7450esac
7451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452$as_echo "$ac_try_echo") >&5
7453  (eval "$ac_link") 2>&5
7454  ac_status=$?
7455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457  { (case "(($ac_try" in
7458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459  *) ac_try_echo=$ac_try;;
7460esac
7461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462$as_echo "$ac_try_echo") >&5
7463  (eval "$ac_try") 2>&5
7464  ac_status=$?
7465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; }; then
7467  { $as_echo "$as_me:$LINENO: result: no" >&5
7468$as_echo "no" >&6; }
7469
7470cat >>confdefs.h <<\_ACEOF
7471#define CHAR_IS_UNSIGNED 1
7472_ACEOF
7473
7474else
7475  $as_echo "$as_me: program exited with status $ac_status" >&5
7476$as_echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479( exit $ac_status )
7480{ $as_echo "$as_me:$LINENO: result: yes" >&5
7481$as_echo "yes" >&6; }
7482fi
7483rm -rf conftest.dSYM
7484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7485fi
7486
7487
7488{ $as_echo "$as_me:$LINENO: checking to see if right shift is signed" >&5
7489$as_echo_n "checking to see if right shift is signed... " >&6; }
7490if test "$cross_compiling" = yes; then
7491  { $as_echo "$as_me:$LINENO: result: Assuming that right shift is signed on target machine." >&5
7492$as_echo "Assuming that right shift is signed on target machine." >&6; }
7493else
7494  cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h.  */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h.  */
7500
7501#ifdef HAVE_PROTOTYPES
7502int is_shifting_signed (long arg)
7503#else
7504int is_shifting_signed (arg)
7505     long arg;
7506#endif
7507/* See whether right-shift on a long is signed or not. */
7508{
7509  long res = arg >> 4;
7510
7511  if (res == -0x7F7E80CL) {	/* expected result for signed shift */
7512    return 1;			/* right shift is signed */
7513  }
7514  /* see if unsigned-shift hack will fix it. */
7515  /* we can't just test exact value since it depends on width of long... */
7516  res |= (~0L) << (32-4);
7517  if (res == -0x7F7E80CL) {	/* expected result now? */
7518    return 0;			/* right shift is unsigned */
7519  }
7520  printf("Right shift isn't acting as I expect it to.\n");
7521  printf("I fear the JPEG software will not work at all.\n\n");
7522  return 0;			/* try it with unsigned anyway */
7523}
7524int main() {
7525  exit(is_shifting_signed(-0x7F7E80B1L));
7526}
7527_ACEOF
7528rm -f conftest$ac_exeext
7529if { (ac_try="$ac_link"
7530case "(($ac_try" in
7531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532  *) ac_try_echo=$ac_try;;
7533esac
7534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535$as_echo "$ac_try_echo") >&5
7536  (eval "$ac_link") 2>&5
7537  ac_status=$?
7538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7540  { (case "(($ac_try" in
7541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542  *) ac_try_echo=$ac_try;;
7543esac
7544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7545$as_echo "$ac_try_echo") >&5
7546  (eval "$ac_try") 2>&5
7547  ac_status=$?
7548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549  (exit $ac_status); }; }; then
7550  { $as_echo "$as_me:$LINENO: result: no" >&5
7551$as_echo "no" >&6; }
7552
7553cat >>confdefs.h <<\_ACEOF
7554#define RIGHT_SHIFT_IS_UNSIGNED 1
7555_ACEOF
7556
7557else
7558  $as_echo "$as_me: program exited with status $ac_status" >&5
7559$as_echo "$as_me: failed program was:" >&5
7560sed 's/^/| /' conftest.$ac_ext >&5
7561
7562( exit $ac_status )
7563{ $as_echo "$as_me:$LINENO: result: yes" >&5
7564$as_echo "yes" >&6; }
7565fi
7566rm -rf conftest.dSYM
7567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7568fi
7569
7570
7571{ $as_echo "$as_me:$LINENO: checking to see if fopen accepts b spec" >&5
7572$as_echo_n "checking to see if fopen accepts b spec... " >&6; }
7573if test "$cross_compiling" = yes; then
7574  { $as_echo "$as_me:$LINENO: result: Assuming that it does." >&5
7575$as_echo "Assuming that it does." >&6; }
7576else
7577  cat >conftest.$ac_ext <<_ACEOF
7578/* confdefs.h.  */
7579_ACEOF
7580cat confdefs.h >>conftest.$ac_ext
7581cat >>conftest.$ac_ext <<_ACEOF
7582/* end confdefs.h.  */
7583
7584#include <stdio.h>
7585int main() {
7586  if (fopen("conftestdata", "wb") != NULL)
7587    exit(0);
7588  exit(1);
7589}
7590_ACEOF
7591rm -f conftest$ac_exeext
7592if { (ac_try="$ac_link"
7593case "(($ac_try" in
7594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595  *) ac_try_echo=$ac_try;;
7596esac
7597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7598$as_echo "$ac_try_echo") >&5
7599  (eval "$ac_link") 2>&5
7600  ac_status=$?
7601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7603  { (case "(($ac_try" in
7604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605  *) ac_try_echo=$ac_try;;
7606esac
7607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7608$as_echo "$ac_try_echo") >&5
7609  (eval "$ac_try") 2>&5
7610  ac_status=$?
7611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); }; }; then
7613  { $as_echo "$as_me:$LINENO: result: yes" >&5
7614$as_echo "yes" >&6; }
7615else
7616  $as_echo "$as_me: program exited with status $ac_status" >&5
7617$as_echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620( exit $ac_status )
7621{ $as_echo "$as_me:$LINENO: result: no" >&5
7622$as_echo "no" >&6; }
7623
7624cat >>confdefs.h <<\_ACEOF
7625#define DONT_USE_B_MODE 1
7626_ACEOF
7627
7628fi
7629rm -rf conftest.dSYM
7630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7631fi
7632
7633
7634
7635# Configure libtool
7636enable_win32_dll=yes
7637
7638case $host in
7639*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7640  if test -n "$ac_tool_prefix"; then
7641  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7642set dummy ${ac_tool_prefix}as; ac_word=$2
7643{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
7645if test "${ac_cv_prog_AS+set}" = set; then
7646  $as_echo_n "(cached) " >&6
7647else
7648  if test -n "$AS"; then
7649  ac_cv_prog_AS="$AS" # Let the user override the test.
7650else
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654  IFS=$as_save_IFS
7655  test -z "$as_dir" && as_dir=.
7656  for ac_exec_ext in '' $ac_executable_extensions; do
7657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658    ac_cv_prog_AS="${ac_tool_prefix}as"
7659    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660    break 2
7661  fi
7662done
7663done
7664IFS=$as_save_IFS
7665
7666fi
7667fi
7668AS=$ac_cv_prog_AS
7669if test -n "$AS"; then
7670  { $as_echo "$as_me:$LINENO: result: $AS" >&5
7671$as_echo "$AS" >&6; }
7672else
7673  { $as_echo "$as_me:$LINENO: result: no" >&5
7674$as_echo "no" >&6; }
7675fi
7676
7677
7678fi
7679if test -z "$ac_cv_prog_AS"; then
7680  ac_ct_AS=$AS
7681  # Extract the first word of "as", so it can be a program name with args.
7682set dummy as; ac_word=$2
7683{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7684$as_echo_n "checking for $ac_word... " >&6; }
7685if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7686  $as_echo_n "(cached) " >&6
7687else
7688  if test -n "$ac_ct_AS"; then
7689  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7690else
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694  IFS=$as_save_IFS
7695  test -z "$as_dir" && as_dir=.
7696  for ac_exec_ext in '' $ac_executable_extensions; do
7697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7698    ac_cv_prog_ac_ct_AS="as"
7699    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700    break 2
7701  fi
7702done
7703done
7704IFS=$as_save_IFS
7705
7706fi
7707fi
7708ac_ct_AS=$ac_cv_prog_ac_ct_AS
7709if test -n "$ac_ct_AS"; then
7710  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7711$as_echo "$ac_ct_AS" >&6; }
7712else
7713  { $as_echo "$as_me:$LINENO: result: no" >&5
7714$as_echo "no" >&6; }
7715fi
7716
7717  if test "x$ac_ct_AS" = x; then
7718    AS="false"
7719  else
7720    case $cross_compiling:$ac_tool_warned in
7721yes:)
7722{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7724ac_tool_warned=yes ;;
7725esac
7726    AS=$ac_ct_AS
7727  fi
7728else
7729  AS="$ac_cv_prog_AS"
7730fi
7731
7732  if test -n "$ac_tool_prefix"; then
7733  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7734set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7736$as_echo_n "checking for $ac_word... " >&6; }
7737if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7738  $as_echo_n "(cached) " >&6
7739else
7740  if test -n "$DLLTOOL"; then
7741  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746  IFS=$as_save_IFS
7747  test -z "$as_dir" && as_dir=.
7748  for ac_exec_ext in '' $ac_executable_extensions; do
7749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7751    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752    break 2
7753  fi
7754done
7755done
7756IFS=$as_save_IFS
7757
7758fi
7759fi
7760DLLTOOL=$ac_cv_prog_DLLTOOL
7761if test -n "$DLLTOOL"; then
7762  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7763$as_echo "$DLLTOOL" >&6; }
7764else
7765  { $as_echo "$as_me:$LINENO: result: no" >&5
7766$as_echo "no" >&6; }
7767fi
7768
7769
7770fi
7771if test -z "$ac_cv_prog_DLLTOOL"; then
7772  ac_ct_DLLTOOL=$DLLTOOL
7773  # Extract the first word of "dlltool", so it can be a program name with args.
7774set dummy dlltool; ac_word=$2
7775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7778  $as_echo_n "(cached) " >&6
7779else
7780  if test -n "$ac_ct_DLLTOOL"; then
7781  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786  IFS=$as_save_IFS
7787  test -z "$as_dir" && as_dir=.
7788  for ac_exec_ext in '' $ac_executable_extensions; do
7789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7791    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792    break 2
7793  fi
7794done
7795done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7801if test -n "$ac_ct_DLLTOOL"; then
7802  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7803$as_echo "$ac_ct_DLLTOOL" >&6; }
7804else
7805  { $as_echo "$as_me:$LINENO: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809  if test "x$ac_ct_DLLTOOL" = x; then
7810    DLLTOOL="false"
7811  else
7812    case $cross_compiling:$ac_tool_warned in
7813yes:)
7814{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816ac_tool_warned=yes ;;
7817esac
7818    DLLTOOL=$ac_ct_DLLTOOL
7819  fi
7820else
7821  DLLTOOL="$ac_cv_prog_DLLTOOL"
7822fi
7823
7824  if test -n "$ac_tool_prefix"; then
7825  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7826set dummy ${ac_tool_prefix}objdump; ac_word=$2
7827{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
7829if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7830  $as_echo_n "(cached) " >&6
7831else
7832  if test -n "$OBJDUMP"; then
7833  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838  IFS=$as_save_IFS
7839  test -z "$as_dir" && as_dir=.
7840  for ac_exec_ext in '' $ac_executable_extensions; do
7841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7843    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844    break 2
7845  fi
7846done
7847done
7848IFS=$as_save_IFS
7849
7850fi
7851fi
7852OBJDUMP=$ac_cv_prog_OBJDUMP
7853if test -n "$OBJDUMP"; then
7854  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7855$as_echo "$OBJDUMP" >&6; }
7856else
7857  { $as_echo "$as_me:$LINENO: result: no" >&5
7858$as_echo "no" >&6; }
7859fi
7860
7861
7862fi
7863if test -z "$ac_cv_prog_OBJDUMP"; then
7864  ac_ct_OBJDUMP=$OBJDUMP
7865  # Extract the first word of "objdump", so it can be a program name with args.
7866set dummy objdump; ac_word=$2
7867{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7868$as_echo_n "checking for $ac_word... " >&6; }
7869if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7870  $as_echo_n "(cached) " >&6
7871else
7872  if test -n "$ac_ct_OBJDUMP"; then
7873  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7874else
7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878  IFS=$as_save_IFS
7879  test -z "$as_dir" && as_dir=.
7880  for ac_exec_ext in '' $ac_executable_extensions; do
7881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7883    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884    break 2
7885  fi
7886done
7887done
7888IFS=$as_save_IFS
7889
7890fi
7891fi
7892ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7893if test -n "$ac_ct_OBJDUMP"; then
7894  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7895$as_echo "$ac_ct_OBJDUMP" >&6; }
7896else
7897  { $as_echo "$as_me:$LINENO: result: no" >&5
7898$as_echo "no" >&6; }
7899fi
7900
7901  if test "x$ac_ct_OBJDUMP" = x; then
7902    OBJDUMP="false"
7903  else
7904    case $cross_compiling:$ac_tool_warned in
7905yes:)
7906{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908ac_tool_warned=yes ;;
7909esac
7910    OBJDUMP=$ac_ct_OBJDUMP
7911  fi
7912else
7913  OBJDUMP="$ac_cv_prog_OBJDUMP"
7914fi
7915
7916  ;;
7917esac
7918
7919test -z "$AS" && AS=as
7920
7921
7922
7923
7924
7925test -z "$DLLTOOL" && DLLTOOL=dlltool
7926
7927
7928
7929
7930
7931test -z "$OBJDUMP" && OBJDUMP=objdump
7932
7933
7934
7935
7936
7937
7938
7939case `pwd` in
7940  *\ * | *\	*)
7941    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7942$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7943esac
7944
7945
7946
7947macro_version='2.2.6'
7948macro_revision='1.3012'
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962ltmain="$ac_aux_dir/ltmain.sh"
7963
7964{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7965$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7966if test "${ac_cv_path_SED+set}" = set; then
7967  $as_echo_n "(cached) " >&6
7968else
7969            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7970     for ac_i in 1 2 3 4 5 6 7; do
7971       ac_script="$ac_script$as_nl$ac_script"
7972     done
7973     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7974     $as_unset ac_script || ac_script=
7975     if test -z "$SED"; then
7976  ac_path_SED_found=false
7977  # Loop through the user's path and test for each of PROGNAME-LIST
7978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981  IFS=$as_save_IFS
7982  test -z "$as_dir" && as_dir=.
7983  for ac_prog in sed gsed; do
7984    for ac_exec_ext in '' $ac_executable_extensions; do
7985      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7986      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7987# Check for GNU ac_path_SED and select it if it is found.
7988  # Check for GNU $ac_path_SED
7989case `"$ac_path_SED" --version 2>&1` in
7990*GNU*)
7991  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7992*)
7993  ac_count=0
7994  $as_echo_n 0123456789 >"conftest.in"
7995  while :
7996  do
7997    cat "conftest.in" "conftest.in" >"conftest.tmp"
7998    mv "conftest.tmp" "conftest.in"
7999    cp "conftest.in" "conftest.nl"
8000    $as_echo '' >> "conftest.nl"
8001    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8002    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8003    ac_count=`expr $ac_count + 1`
8004    if test $ac_count -gt ${ac_path_SED_max-0}; then
8005      # Best one so far, save it but keep looking for a better one
8006      ac_cv_path_SED="$ac_path_SED"
8007      ac_path_SED_max=$ac_count
8008    fi
8009    # 10*(2^10) chars as input seems more than enough
8010    test $ac_count -gt 10 && break
8011  done
8012  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8013esac
8014
8015      $ac_path_SED_found && break 3
8016    done
8017  done
8018done
8019IFS=$as_save_IFS
8020  if test -z "$ac_cv_path_SED"; then
8021    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
8022$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
8023   { (exit 1); exit 1; }; }
8024  fi
8025else
8026  ac_cv_path_SED=$SED
8027fi
8028
8029fi
8030{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
8031$as_echo "$ac_cv_path_SED" >&6; }
8032 SED="$ac_cv_path_SED"
8033  rm -f conftest.sed
8034
8035test -z "$SED" && SED=sed
8036Xsed="$SED -e 1s/^X//"
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
8049$as_echo_n "checking for fgrep... " >&6; }
8050if test "${ac_cv_path_FGREP+set}" = set; then
8051  $as_echo_n "(cached) " >&6
8052else
8053  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8054   then ac_cv_path_FGREP="$GREP -F"
8055   else
8056     if test -z "$FGREP"; then
8057  ac_path_FGREP_found=false
8058  # Loop through the user's path and test for each of PROGNAME-LIST
8059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8061do
8062  IFS=$as_save_IFS
8063  test -z "$as_dir" && as_dir=.
8064  for ac_prog in fgrep; do
8065    for ac_exec_ext in '' $ac_executable_extensions; do
8066      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8067      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8068# Check for GNU ac_path_FGREP and select it if it is found.
8069  # Check for GNU $ac_path_FGREP
8070case `"$ac_path_FGREP" --version 2>&1` in
8071*GNU*)
8072  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8073*)
8074  ac_count=0
8075  $as_echo_n 0123456789 >"conftest.in"
8076  while :
8077  do
8078    cat "conftest.in" "conftest.in" >"conftest.tmp"
8079    mv "conftest.tmp" "conftest.in"
8080    cp "conftest.in" "conftest.nl"
8081    $as_echo 'FGREP' >> "conftest.nl"
8082    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8083    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8084    ac_count=`expr $ac_count + 1`
8085    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8086      # Best one so far, save it but keep looking for a better one
8087      ac_cv_path_FGREP="$ac_path_FGREP"
8088      ac_path_FGREP_max=$ac_count
8089    fi
8090    # 10*(2^10) chars as input seems more than enough
8091    test $ac_count -gt 10 && break
8092  done
8093  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8094esac
8095
8096      $ac_path_FGREP_found && break 3
8097    done
8098  done
8099done
8100IFS=$as_save_IFS
8101  if test -z "$ac_cv_path_FGREP"; then
8102    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8103$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8104   { (exit 1); exit 1; }; }
8105  fi
8106else
8107  ac_cv_path_FGREP=$FGREP
8108fi
8109
8110   fi
8111fi
8112{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
8113$as_echo "$ac_cv_path_FGREP" >&6; }
8114 FGREP="$ac_cv_path_FGREP"
8115
8116
8117test -z "$GREP" && GREP=grep
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137# Check whether --with-gnu-ld was given.
8138if test "${with_gnu_ld+set}" = set; then
8139  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8140else
8141  with_gnu_ld=no
8142fi
8143
8144ac_prog=ld
8145if test "$GCC" = yes; then
8146  # Check if gcc -print-prog-name=ld gives a path.
8147  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8148$as_echo_n "checking for ld used by $CC... " >&6; }
8149  case $host in
8150  *-*-mingw*)
8151    # gcc leaves a trailing carriage return which upsets mingw
8152    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8153  *)
8154    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8155  esac
8156  case $ac_prog in
8157    # Accept absolute paths.
8158    [\\/]* | ?:[\\/]*)
8159      re_direlt='/[^/][^/]*/\.\./'
8160      # Canonicalize the pathname of ld
8161      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8162      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8163	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8164      done
8165      test -z "$LD" && LD="$ac_prog"
8166      ;;
8167  "")
8168    # If it fails, then pretend we aren't using GCC.
8169    ac_prog=ld
8170    ;;
8171  *)
8172    # If it is relative, then search for the first ld in PATH.
8173    with_gnu_ld=unknown
8174    ;;
8175  esac
8176elif test "$with_gnu_ld" = yes; then
8177  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8178$as_echo_n "checking for GNU ld... " >&6; }
8179else
8180  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8181$as_echo_n "checking for non-GNU ld... " >&6; }
8182fi
8183if test "${lt_cv_path_LD+set}" = set; then
8184  $as_echo_n "(cached) " >&6
8185else
8186  if test -z "$LD"; then
8187  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8188  for ac_dir in $PATH; do
8189    IFS="$lt_save_ifs"
8190    test -z "$ac_dir" && ac_dir=.
8191    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8192      lt_cv_path_LD="$ac_dir/$ac_prog"
8193      # Check to see if the program is GNU ld.  I'd rather use --version,
8194      # but apparently some variants of GNU ld only accept -v.
8195      # Break only if it was the GNU/non-GNU ld that we prefer.
8196      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8197      *GNU* | *'with BFD'*)
8198	test "$with_gnu_ld" != no && break
8199	;;
8200      *)
8201	test "$with_gnu_ld" != yes && break
8202	;;
8203      esac
8204    fi
8205  done
8206  IFS="$lt_save_ifs"
8207else
8208  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8209fi
8210fi
8211
8212LD="$lt_cv_path_LD"
8213if test -n "$LD"; then
8214  { $as_echo "$as_me:$LINENO: result: $LD" >&5
8215$as_echo "$LD" >&6; }
8216else
8217  { $as_echo "$as_me:$LINENO: result: no" >&5
8218$as_echo "no" >&6; }
8219fi
8220test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8221$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8222   { (exit 1); exit 1; }; }
8223{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8224$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8225if test "${lt_cv_prog_gnu_ld+set}" = set; then
8226  $as_echo_n "(cached) " >&6
8227else
8228  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8229case `$LD -v 2>&1 </dev/null` in
8230*GNU* | *'with BFD'*)
8231  lt_cv_prog_gnu_ld=yes
8232  ;;
8233*)
8234  lt_cv_prog_gnu_ld=no
8235  ;;
8236esac
8237fi
8238{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8239$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8240with_gnu_ld=$lt_cv_prog_gnu_ld
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
8251$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8252if test "${lt_cv_path_NM+set}" = set; then
8253  $as_echo_n "(cached) " >&6
8254else
8255  if test -n "$NM"; then
8256  # Let the user override the test.
8257  lt_cv_path_NM="$NM"
8258else
8259  lt_nm_to_check="${ac_tool_prefix}nm"
8260  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8261    lt_nm_to_check="$lt_nm_to_check nm"
8262  fi
8263  for lt_tmp_nm in $lt_nm_to_check; do
8264    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8265    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8266      IFS="$lt_save_ifs"
8267      test -z "$ac_dir" && ac_dir=.
8268      tmp_nm="$ac_dir/$lt_tmp_nm"
8269      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8270	# Check to see if the nm accepts a BSD-compat flag.
8271	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8272	#   nm: unknown option "B" ignored
8273	# Tru64's nm complains that /dev/null is an invalid object file
8274	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8275	*/dev/null* | *'Invalid file or object type'*)
8276	  lt_cv_path_NM="$tmp_nm -B"
8277	  break
8278	  ;;
8279	*)
8280	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8281	  */dev/null*)
8282	    lt_cv_path_NM="$tmp_nm -p"
8283	    break
8284	    ;;
8285	  *)
8286	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8287	    continue # so that we can try to find one that supports BSD flags
8288	    ;;
8289	  esac
8290	  ;;
8291	esac
8292      fi
8293    done
8294    IFS="$lt_save_ifs"
8295  done
8296  : ${lt_cv_path_NM=no}
8297fi
8298fi
8299{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8300$as_echo "$lt_cv_path_NM" >&6; }
8301if test "$lt_cv_path_NM" != "no"; then
8302  NM="$lt_cv_path_NM"
8303else
8304  # Didn't find any BSD compatible name lister, look for dumpbin.
8305  if test -n "$ac_tool_prefix"; then
8306  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8307  do
8308    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8311$as_echo_n "checking for $ac_word... " >&6; }
8312if test "${ac_cv_prog_DUMPBIN+set}" = set; then
8313  $as_echo_n "(cached) " >&6
8314else
8315  if test -n "$DUMPBIN"; then
8316  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8317else
8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321  IFS=$as_save_IFS
8322  test -z "$as_dir" && as_dir=.
8323  for ac_exec_ext in '' $ac_executable_extensions; do
8324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8326    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327    break 2
8328  fi
8329done
8330done
8331IFS=$as_save_IFS
8332
8333fi
8334fi
8335DUMPBIN=$ac_cv_prog_DUMPBIN
8336if test -n "$DUMPBIN"; then
8337  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
8338$as_echo "$DUMPBIN" >&6; }
8339else
8340  { $as_echo "$as_me:$LINENO: result: no" >&5
8341$as_echo "no" >&6; }
8342fi
8343
8344
8345    test -n "$DUMPBIN" && break
8346  done
8347fi
8348if test -z "$DUMPBIN"; then
8349  ac_ct_DUMPBIN=$DUMPBIN
8350  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8351do
8352  # Extract the first word of "$ac_prog", so it can be a program name with args.
8353set dummy $ac_prog; ac_word=$2
8354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
8357  $as_echo_n "(cached) " >&6
8358else
8359  if test -n "$ac_ct_DUMPBIN"; then
8360  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365  IFS=$as_save_IFS
8366  test -z "$as_dir" && as_dir=.
8367  for ac_exec_ext in '' $ac_executable_extensions; do
8368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8370    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8371    break 2
8372  fi
8373done
8374done
8375IFS=$as_save_IFS
8376
8377fi
8378fi
8379ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8380if test -n "$ac_ct_DUMPBIN"; then
8381  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8382$as_echo "$ac_ct_DUMPBIN" >&6; }
8383else
8384  { $as_echo "$as_me:$LINENO: result: no" >&5
8385$as_echo "no" >&6; }
8386fi
8387
8388
8389  test -n "$ac_ct_DUMPBIN" && break
8390done
8391
8392  if test "x$ac_ct_DUMPBIN" = x; then
8393    DUMPBIN=":"
8394  else
8395    case $cross_compiling:$ac_tool_warned in
8396yes:)
8397{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399ac_tool_warned=yes ;;
8400esac
8401    DUMPBIN=$ac_ct_DUMPBIN
8402  fi
8403fi
8404
8405
8406  if test "$DUMPBIN" != ":"; then
8407    NM="$DUMPBIN"
8408  fi
8409fi
8410test -z "$NM" && NM=nm
8411
8412
8413
8414
8415
8416
8417{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8418$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8419if test "${lt_cv_nm_interface+set}" = set; then
8420  $as_echo_n "(cached) " >&6
8421else
8422  lt_cv_nm_interface="BSD nm"
8423  echo "int some_variable = 0;" > conftest.$ac_ext
8424  (eval echo "\"\$as_me:8424: $ac_compile\"" >&5)
8425  (eval "$ac_compile" 2>conftest.err)
8426  cat conftest.err >&5
8427  (eval echo "\"\$as_me:8427: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8428  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8429  cat conftest.err >&5
8430  (eval echo "\"\$as_me:8430: output\"" >&5)
8431  cat conftest.out >&5
8432  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8433    lt_cv_nm_interface="MS dumpbin"
8434  fi
8435  rm -f conftest*
8436fi
8437{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8438$as_echo "$lt_cv_nm_interface" >&6; }
8439
8440# find the maximum length of command line arguments
8441{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8442$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8443if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8444  $as_echo_n "(cached) " >&6
8445else
8446    i=0
8447  teststring="ABCD"
8448
8449  case $build_os in
8450  msdosdjgpp*)
8451    # On DJGPP, this test can blow up pretty badly due to problems in libc
8452    # (any single argument exceeding 2000 bytes causes a buffer overrun
8453    # during glob expansion).  Even if it were fixed, the result of this
8454    # check would be larger than it should be.
8455    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8456    ;;
8457
8458  gnu*)
8459    # Under GNU Hurd, this test is not required because there is
8460    # no limit to the length of command line arguments.
8461    # Libtool will interpret -1 as no limit whatsoever
8462    lt_cv_sys_max_cmd_len=-1;
8463    ;;
8464
8465  cygwin* | mingw* | cegcc*)
8466    # On Win9x/ME, this test blows up -- it succeeds, but takes
8467    # about 5 minutes as the teststring grows exponentially.
8468    # Worse, since 9x/ME are not pre-emptively multitasking,
8469    # you end up with a "frozen" computer, even though with patience
8470    # the test eventually succeeds (with a max line length of 256k).
8471    # Instead, let's just punt: use the minimum linelength reported by
8472    # all of the supported platforms: 8192 (on NT/2K/XP).
8473    lt_cv_sys_max_cmd_len=8192;
8474    ;;
8475
8476  amigaos*)
8477    # On AmigaOS with pdksh, this test takes hours, literally.
8478    # So we just punt and use a minimum line length of 8192.
8479    lt_cv_sys_max_cmd_len=8192;
8480    ;;
8481
8482  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8483    # This has been around since 386BSD, at least.  Likely further.
8484    if test -x /sbin/sysctl; then
8485      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8486    elif test -x /usr/sbin/sysctl; then
8487      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8488    else
8489      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8490    fi
8491    # And add a safety zone
8492    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8493    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8494    ;;
8495
8496  interix*)
8497    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8498    lt_cv_sys_max_cmd_len=196608
8499    ;;
8500
8501  osf*)
8502    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8503    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8504    # nice to cause kernel panics so lets avoid the loop below.
8505    # First set a reasonable default.
8506    lt_cv_sys_max_cmd_len=16384
8507    #
8508    if test -x /sbin/sysconfig; then
8509      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8510        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8511      esac
8512    fi
8513    ;;
8514  sco3.2v5*)
8515    lt_cv_sys_max_cmd_len=102400
8516    ;;
8517  sysv5* | sco5v6* | sysv4.2uw2*)
8518    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8519    if test -n "$kargmax"; then
8520      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8521    else
8522      lt_cv_sys_max_cmd_len=32768
8523    fi
8524    ;;
8525  *)
8526    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8527    if test -n "$lt_cv_sys_max_cmd_len"; then
8528      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8529      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8530    else
8531      # Make teststring a little bigger before we do anything with it.
8532      # a 1K string should be a reasonable start.
8533      for i in 1 2 3 4 5 6 7 8 ; do
8534        teststring=$teststring$teststring
8535      done
8536      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8537      # If test is not a shell built-in, we'll probably end up computing a
8538      # maximum length that is only half of the actual maximum length, but
8539      # we can't tell.
8540      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8541	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8542	      test $i != 17 # 1/2 MB should be enough
8543      do
8544        i=`expr $i + 1`
8545        teststring=$teststring$teststring
8546      done
8547      # Only check the string length outside the loop.
8548      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8549      teststring=
8550      # Add a significant safety factor because C++ compilers can tack on
8551      # massive amounts of additional arguments before passing them to the
8552      # linker.  It appears as though 1/2 is a usable value.
8553      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8554    fi
8555    ;;
8556  esac
8557
8558fi
8559
8560if test -n $lt_cv_sys_max_cmd_len ; then
8561  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8562$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8563else
8564  { $as_echo "$as_me:$LINENO: result: none" >&5
8565$as_echo "none" >&6; }
8566fi
8567max_cmd_len=$lt_cv_sys_max_cmd_len
8568
8569
8570
8571
8572
8573
8574: ${CP="cp -f"}
8575: ${MV="mv -f"}
8576: ${RM="rm -f"}
8577
8578{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8579$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8580# Try some XSI features
8581xsi_shell=no
8582( _lt_dummy="a/b/c"
8583  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8584      = c,a/b,, \
8585    && eval 'test $(( 1 + 1 )) -eq 2 \
8586    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8587  && xsi_shell=yes
8588{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
8589$as_echo "$xsi_shell" >&6; }
8590
8591
8592{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8593$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8594lt_shell_append=no
8595( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8596    >/dev/null 2>&1 \
8597  && lt_shell_append=yes
8598{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8599$as_echo "$lt_shell_append" >&6; }
8600
8601
8602if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8603  lt_unset=unset
8604else
8605  lt_unset=false
8606fi
8607
8608
8609
8610
8611
8612# test EBCDIC or ASCII
8613case `echo X|tr X '\101'` in
8614 A) # ASCII based system
8615    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8616  lt_SP2NL='tr \040 \012'
8617  lt_NL2SP='tr \015\012 \040\040'
8618  ;;
8619 *) # EBCDIC based system
8620  lt_SP2NL='tr \100 \n'
8621  lt_NL2SP='tr \r\n \100\100'
8622  ;;
8623esac
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8634$as_echo_n "checking for $LD option to reload object files... " >&6; }
8635if test "${lt_cv_ld_reload_flag+set}" = set; then
8636  $as_echo_n "(cached) " >&6
8637else
8638  lt_cv_ld_reload_flag='-r'
8639fi
8640{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8641$as_echo "$lt_cv_ld_reload_flag" >&6; }
8642reload_flag=$lt_cv_ld_reload_flag
8643case $reload_flag in
8644"" | " "*) ;;
8645*) reload_flag=" $reload_flag" ;;
8646esac
8647reload_cmds='$LD$reload_flag -o $output$reload_objs'
8648case $host_os in
8649  darwin*)
8650    if test "$GCC" = yes; then
8651      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8652    else
8653      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8654    fi
8655    ;;
8656esac
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666if test -n "$ac_tool_prefix"; then
8667  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8668set dummy ${ac_tool_prefix}objdump; ac_word=$2
8669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8670$as_echo_n "checking for $ac_word... " >&6; }
8671if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8672  $as_echo_n "(cached) " >&6
8673else
8674  if test -n "$OBJDUMP"; then
8675  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8676else
8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680  IFS=$as_save_IFS
8681  test -z "$as_dir" && as_dir=.
8682  for ac_exec_ext in '' $ac_executable_extensions; do
8683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8684    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8685    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8686    break 2
8687  fi
8688done
8689done
8690IFS=$as_save_IFS
8691
8692fi
8693fi
8694OBJDUMP=$ac_cv_prog_OBJDUMP
8695if test -n "$OBJDUMP"; then
8696  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8697$as_echo "$OBJDUMP" >&6; }
8698else
8699  { $as_echo "$as_me:$LINENO: result: no" >&5
8700$as_echo "no" >&6; }
8701fi
8702
8703
8704fi
8705if test -z "$ac_cv_prog_OBJDUMP"; then
8706  ac_ct_OBJDUMP=$OBJDUMP
8707  # Extract the first word of "objdump", so it can be a program name with args.
8708set dummy objdump; ac_word=$2
8709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8710$as_echo_n "checking for $ac_word... " >&6; }
8711if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8712  $as_echo_n "(cached) " >&6
8713else
8714  if test -n "$ac_ct_OBJDUMP"; then
8715  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8716else
8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720  IFS=$as_save_IFS
8721  test -z "$as_dir" && as_dir=.
8722  for ac_exec_ext in '' $ac_executable_extensions; do
8723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8725    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726    break 2
8727  fi
8728done
8729done
8730IFS=$as_save_IFS
8731
8732fi
8733fi
8734ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8735if test -n "$ac_ct_OBJDUMP"; then
8736  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8737$as_echo "$ac_ct_OBJDUMP" >&6; }
8738else
8739  { $as_echo "$as_me:$LINENO: result: no" >&5
8740$as_echo "no" >&6; }
8741fi
8742
8743  if test "x$ac_ct_OBJDUMP" = x; then
8744    OBJDUMP="false"
8745  else
8746    case $cross_compiling:$ac_tool_warned in
8747yes:)
8748{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8750ac_tool_warned=yes ;;
8751esac
8752    OBJDUMP=$ac_ct_OBJDUMP
8753  fi
8754else
8755  OBJDUMP="$ac_cv_prog_OBJDUMP"
8756fi
8757
8758test -z "$OBJDUMP" && OBJDUMP=objdump
8759
8760
8761
8762
8763
8764
8765{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8766$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8767if test "${lt_cv_deplibs_check_method+set}" = set; then
8768  $as_echo_n "(cached) " >&6
8769else
8770  lt_cv_file_magic_cmd='$MAGIC_CMD'
8771lt_cv_file_magic_test_file=
8772lt_cv_deplibs_check_method='unknown'
8773# Need to set the preceding variable on all platforms that support
8774# interlibrary dependencies.
8775# 'none' -- dependencies not supported.
8776# `unknown' -- same as none, but documents that we really don't know.
8777# 'pass_all' -- all dependencies passed with no checks.
8778# 'test_compile' -- check by making test program.
8779# 'file_magic [[regex]]' -- check by looking for files in library path
8780# which responds to the $file_magic_cmd with a given extended regex.
8781# If you have `file' or equivalent on your system and you're not sure
8782# whether `pass_all' will *always* work, you probably want this one.
8783
8784case $host_os in
8785aix[4-9]*)
8786  lt_cv_deplibs_check_method=pass_all
8787  ;;
8788
8789beos*)
8790  lt_cv_deplibs_check_method=pass_all
8791  ;;
8792
8793bsdi[45]*)
8794  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8795  lt_cv_file_magic_cmd='/usr/bin/file -L'
8796  lt_cv_file_magic_test_file=/shlib/libc.so
8797  ;;
8798
8799cygwin*)
8800  # func_win32_libid is a shell function defined in ltmain.sh
8801  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8802  lt_cv_file_magic_cmd='func_win32_libid'
8803  ;;
8804
8805mingw* | pw32*)
8806  # Base MSYS/MinGW do not provide the 'file' command needed by
8807  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8808  # unless we find 'file', for example because we are cross-compiling.
8809  if ( file / ) >/dev/null 2>&1; then
8810    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8811    lt_cv_file_magic_cmd='func_win32_libid'
8812  else
8813    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8814    lt_cv_file_magic_cmd='$OBJDUMP -f'
8815  fi
8816  ;;
8817
8818cegcc)
8819  # use the weaker test based on 'objdump'. See mingw*.
8820  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8821  lt_cv_file_magic_cmd='$OBJDUMP -f'
8822  ;;
8823
8824darwin* | rhapsody*)
8825  lt_cv_deplibs_check_method=pass_all
8826  ;;
8827
8828freebsd* | dragonfly*)
8829  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8830    case $host_cpu in
8831    i*86 )
8832      # Not sure whether the presence of OpenBSD here was a mistake.
8833      # Let's accept both of them until this is cleared up.
8834      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8835      lt_cv_file_magic_cmd=/usr/bin/file
8836      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8837      ;;
8838    esac
8839  else
8840    lt_cv_deplibs_check_method=pass_all
8841  fi
8842  ;;
8843
8844gnu*)
8845  lt_cv_deplibs_check_method=pass_all
8846  ;;
8847
8848hpux10.20* | hpux11*)
8849  lt_cv_file_magic_cmd=/usr/bin/file
8850  case $host_cpu in
8851  ia64*)
8852    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8853    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8854    ;;
8855  hppa*64*)
8856    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]'
8857    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8858    ;;
8859  *)
8860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8861    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8862    ;;
8863  esac
8864  ;;
8865
8866interix[3-9]*)
8867  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8868  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8869  ;;
8870
8871irix5* | irix6* | nonstopux*)
8872  case $LD in
8873  *-32|*"-32 ") libmagic=32-bit;;
8874  *-n32|*"-n32 ") libmagic=N32;;
8875  *-64|*"-64 ") libmagic=64-bit;;
8876  *) libmagic=never-match;;
8877  esac
8878  lt_cv_deplibs_check_method=pass_all
8879  ;;
8880
8881# This must be Linux ELF.
8882linux* | k*bsd*-gnu)
8883  lt_cv_deplibs_check_method=pass_all
8884  ;;
8885
8886netbsd*)
8887  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8888    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8889  else
8890    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8891  fi
8892  ;;
8893
8894newos6*)
8895  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8896  lt_cv_file_magic_cmd=/usr/bin/file
8897  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8898  ;;
8899
8900*nto* | *qnx*)
8901  lt_cv_deplibs_check_method=pass_all
8902  ;;
8903
8904openbsd*)
8905  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8906    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8907  else
8908    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8909  fi
8910  ;;
8911
8912osf3* | osf4* | osf5*)
8913  lt_cv_deplibs_check_method=pass_all
8914  ;;
8915
8916rdos*)
8917  lt_cv_deplibs_check_method=pass_all
8918  ;;
8919
8920solaris*)
8921  lt_cv_deplibs_check_method=pass_all
8922  ;;
8923
8924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8925  lt_cv_deplibs_check_method=pass_all
8926  ;;
8927
8928sysv4 | sysv4.3*)
8929  case $host_vendor in
8930  motorola)
8931    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]'
8932    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8933    ;;
8934  ncr)
8935    lt_cv_deplibs_check_method=pass_all
8936    ;;
8937  sequent)
8938    lt_cv_file_magic_cmd='/bin/file'
8939    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8940    ;;
8941  sni)
8942    lt_cv_file_magic_cmd='/bin/file'
8943    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8944    lt_cv_file_magic_test_file=/lib/libc.so
8945    ;;
8946  siemens)
8947    lt_cv_deplibs_check_method=pass_all
8948    ;;
8949  pc)
8950    lt_cv_deplibs_check_method=pass_all
8951    ;;
8952  esac
8953  ;;
8954
8955tpf*)
8956  lt_cv_deplibs_check_method=pass_all
8957  ;;
8958esac
8959
8960fi
8961{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8962$as_echo "$lt_cv_deplibs_check_method" >&6; }
8963file_magic_cmd=$lt_cv_file_magic_cmd
8964deplibs_check_method=$lt_cv_deplibs_check_method
8965test -z "$deplibs_check_method" && deplibs_check_method=unknown
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978if test -n "$ac_tool_prefix"; then
8979  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8980set dummy ${ac_tool_prefix}ar; ac_word=$2
8981{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8982$as_echo_n "checking for $ac_word... " >&6; }
8983if test "${ac_cv_prog_AR+set}" = set; then
8984  $as_echo_n "(cached) " >&6
8985else
8986  if test -n "$AR"; then
8987  ac_cv_prog_AR="$AR" # Let the user override the test.
8988else
8989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990for as_dir in $PATH
8991do
8992  IFS=$as_save_IFS
8993  test -z "$as_dir" && as_dir=.
8994  for ac_exec_ext in '' $ac_executable_extensions; do
8995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996    ac_cv_prog_AR="${ac_tool_prefix}ar"
8997    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8998    break 2
8999  fi
9000done
9001done
9002IFS=$as_save_IFS
9003
9004fi
9005fi
9006AR=$ac_cv_prog_AR
9007if test -n "$AR"; then
9008  { $as_echo "$as_me:$LINENO: result: $AR" >&5
9009$as_echo "$AR" >&6; }
9010else
9011  { $as_echo "$as_me:$LINENO: result: no" >&5
9012$as_echo "no" >&6; }
9013fi
9014
9015
9016fi
9017if test -z "$ac_cv_prog_AR"; then
9018  ac_ct_AR=$AR
9019  # Extract the first word of "ar", so it can be a program name with args.
9020set dummy ar; ac_word=$2
9021{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9024  $as_echo_n "(cached) " >&6
9025else
9026  if test -n "$ac_ct_AR"; then
9027  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032  IFS=$as_save_IFS
9033  test -z "$as_dir" && as_dir=.
9034  for ac_exec_ext in '' $ac_executable_extensions; do
9035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036    ac_cv_prog_ac_ct_AR="ar"
9037    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038    break 2
9039  fi
9040done
9041done
9042IFS=$as_save_IFS
9043
9044fi
9045fi
9046ac_ct_AR=$ac_cv_prog_ac_ct_AR
9047if test -n "$ac_ct_AR"; then
9048  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9049$as_echo "$ac_ct_AR" >&6; }
9050else
9051  { $as_echo "$as_me:$LINENO: result: no" >&5
9052$as_echo "no" >&6; }
9053fi
9054
9055  if test "x$ac_ct_AR" = x; then
9056    AR="false"
9057  else
9058    case $cross_compiling:$ac_tool_warned in
9059yes:)
9060{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9062ac_tool_warned=yes ;;
9063esac
9064    AR=$ac_ct_AR
9065  fi
9066else
9067  AR="$ac_cv_prog_AR"
9068fi
9069
9070test -z "$AR" && AR=ar
9071test -z "$AR_FLAGS" && AR_FLAGS=cru
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083if test -n "$ac_tool_prefix"; then
9084  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9085set dummy ${ac_tool_prefix}strip; ac_word=$2
9086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9087$as_echo_n "checking for $ac_word... " >&6; }
9088if test "${ac_cv_prog_STRIP+set}" = set; then
9089  $as_echo_n "(cached) " >&6
9090else
9091  if test -n "$STRIP"; then
9092  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9093else
9094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095for as_dir in $PATH
9096do
9097  IFS=$as_save_IFS
9098  test -z "$as_dir" && as_dir=.
9099  for ac_exec_ext in '' $ac_executable_extensions; do
9100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9101    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9102    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9103    break 2
9104  fi
9105done
9106done
9107IFS=$as_save_IFS
9108
9109fi
9110fi
9111STRIP=$ac_cv_prog_STRIP
9112if test -n "$STRIP"; then
9113  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9114$as_echo "$STRIP" >&6; }
9115else
9116  { $as_echo "$as_me:$LINENO: result: no" >&5
9117$as_echo "no" >&6; }
9118fi
9119
9120
9121fi
9122if test -z "$ac_cv_prog_STRIP"; then
9123  ac_ct_STRIP=$STRIP
9124  # Extract the first word of "strip", so it can be a program name with args.
9125set dummy strip; ac_word=$2
9126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9127$as_echo_n "checking for $ac_word... " >&6; }
9128if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9129  $as_echo_n "(cached) " >&6
9130else
9131  if test -n "$ac_ct_STRIP"; then
9132  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9133else
9134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135for as_dir in $PATH
9136do
9137  IFS=$as_save_IFS
9138  test -z "$as_dir" && as_dir=.
9139  for ac_exec_ext in '' $ac_executable_extensions; do
9140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9141    ac_cv_prog_ac_ct_STRIP="strip"
9142    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9143    break 2
9144  fi
9145done
9146done
9147IFS=$as_save_IFS
9148
9149fi
9150fi
9151ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9152if test -n "$ac_ct_STRIP"; then
9153  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9154$as_echo "$ac_ct_STRIP" >&6; }
9155else
9156  { $as_echo "$as_me:$LINENO: result: no" >&5
9157$as_echo "no" >&6; }
9158fi
9159
9160  if test "x$ac_ct_STRIP" = x; then
9161    STRIP=":"
9162  else
9163    case $cross_compiling:$ac_tool_warned in
9164yes:)
9165{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167ac_tool_warned=yes ;;
9168esac
9169    STRIP=$ac_ct_STRIP
9170  fi
9171else
9172  STRIP="$ac_cv_prog_STRIP"
9173fi
9174
9175test -z "$STRIP" && STRIP=:
9176
9177
9178
9179
9180
9181
9182if test -n "$ac_tool_prefix"; then
9183  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9184set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9186$as_echo_n "checking for $ac_word... " >&6; }
9187if test "${ac_cv_prog_RANLIB+set}" = set; then
9188  $as_echo_n "(cached) " >&6
9189else
9190  if test -n "$RANLIB"; then
9191  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9192else
9193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194for as_dir in $PATH
9195do
9196  IFS=$as_save_IFS
9197  test -z "$as_dir" && as_dir=.
9198  for ac_exec_ext in '' $ac_executable_extensions; do
9199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9200    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9201    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202    break 2
9203  fi
9204done
9205done
9206IFS=$as_save_IFS
9207
9208fi
9209fi
9210RANLIB=$ac_cv_prog_RANLIB
9211if test -n "$RANLIB"; then
9212  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9213$as_echo "$RANLIB" >&6; }
9214else
9215  { $as_echo "$as_me:$LINENO: result: no" >&5
9216$as_echo "no" >&6; }
9217fi
9218
9219
9220fi
9221if test -z "$ac_cv_prog_RANLIB"; then
9222  ac_ct_RANLIB=$RANLIB
9223  # Extract the first word of "ranlib", so it can be a program name with args.
9224set dummy ranlib; ac_word=$2
9225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9228  $as_echo_n "(cached) " >&6
9229else
9230  if test -n "$ac_ct_RANLIB"; then
9231  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9232else
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236  IFS=$as_save_IFS
9237  test -z "$as_dir" && as_dir=.
9238  for ac_exec_ext in '' $ac_executable_extensions; do
9239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9240    ac_cv_prog_ac_ct_RANLIB="ranlib"
9241    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9242    break 2
9243  fi
9244done
9245done
9246IFS=$as_save_IFS
9247
9248fi
9249fi
9250ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9251if test -n "$ac_ct_RANLIB"; then
9252  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9253$as_echo "$ac_ct_RANLIB" >&6; }
9254else
9255  { $as_echo "$as_me:$LINENO: result: no" >&5
9256$as_echo "no" >&6; }
9257fi
9258
9259  if test "x$ac_ct_RANLIB" = x; then
9260    RANLIB=":"
9261  else
9262    case $cross_compiling:$ac_tool_warned in
9263yes:)
9264{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9266ac_tool_warned=yes ;;
9267esac
9268    RANLIB=$ac_ct_RANLIB
9269  fi
9270else
9271  RANLIB="$ac_cv_prog_RANLIB"
9272fi
9273
9274test -z "$RANLIB" && RANLIB=:
9275
9276
9277
9278
9279
9280
9281# Determine commands to create old-style static archives.
9282old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9283old_postinstall_cmds='chmod 644 $oldlib'
9284old_postuninstall_cmds=
9285
9286if test -n "$RANLIB"; then
9287  case $host_os in
9288  openbsd*)
9289    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9290    ;;
9291  *)
9292    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9293    ;;
9294  esac
9295  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9296fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331# If no C compiler was specified, use CC.
9332LTCC=${LTCC-"$CC"}
9333
9334# If no C compiler flags were specified, use CFLAGS.
9335LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9336
9337# Allow CC to be a program name with arguments.
9338compiler=$CC
9339
9340
9341# Check for command to grab the raw symbol name followed by C symbol from nm.
9342{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9343$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9344if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9345  $as_echo_n "(cached) " >&6
9346else
9347
9348# These are sane defaults that work on at least a few old systems.
9349# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9350
9351# Character class describing NM global symbol codes.
9352symcode='[BCDEGRST]'
9353
9354# Regexp to match symbols that can be accessed directly from C.
9355sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9356
9357# Define system-specific variables.
9358case $host_os in
9359aix*)
9360  symcode='[BCDT]'
9361  ;;
9362cygwin* | mingw* | pw32* | cegcc*)
9363  symcode='[ABCDGISTW]'
9364  ;;
9365hpux*)
9366  if test "$host_cpu" = ia64; then
9367    symcode='[ABCDEGRST]'
9368  fi
9369  ;;
9370irix* | nonstopux*)
9371  symcode='[BCDEGRST]'
9372  ;;
9373osf*)
9374  symcode='[BCDEGQRST]'
9375  ;;
9376solaris*)
9377  symcode='[BDRT]'
9378  ;;
9379sco3.2v5*)
9380  symcode='[DT]'
9381  ;;
9382sysv4.2uw2*)
9383  symcode='[DT]'
9384  ;;
9385sysv5* | sco5v6* | unixware* | OpenUNIX*)
9386  symcode='[ABDT]'
9387  ;;
9388sysv4)
9389  symcode='[DFNSTU]'
9390  ;;
9391esac
9392
9393# If we're using GNU nm, then use its standard symbol codes.
9394case `$NM -V 2>&1` in
9395*GNU* | *'with BFD'*)
9396  symcode='[ABCDGIRSTW]' ;;
9397esac
9398
9399# Transform an extracted symbol line into a proper C declaration.
9400# Some systems (esp. on ia64) link data and code symbols differently,
9401# so use this general approach.
9402lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9403
9404# Transform an extracted symbol line into symbol name and symbol address
9405lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9406lt_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'"
9407
9408# Handle CRLF in mingw tool chain
9409opt_cr=
9410case $build_os in
9411mingw*)
9412  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9413  ;;
9414esac
9415
9416# Try without a prefix underscore, then with it.
9417for ac_symprfx in "" "_"; do
9418
9419  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9420  symxfrm="\\1 $ac_symprfx\\2 \\2"
9421
9422  # Write the raw and C identifiers.
9423  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9424    # Fake it for dumpbin and say T for any non-static function
9425    # and D for any global variable.
9426    # Also find C++ and __fastcall symbols from MSVC++,
9427    # which start with @ or ?.
9428    lt_cv_sys_global_symbol_pipe="$AWK '"\
9429"     {last_section=section; section=\$ 3};"\
9430"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9431"     \$ 0!~/External *\|/{next};"\
9432"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9433"     {if(hide[section]) next};"\
9434"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9435"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9436"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9437"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9438"     ' prfx=^$ac_symprfx"
9439  else
9440    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9441  fi
9442
9443  # Check to see that the pipe works correctly.
9444  pipe_works=no
9445
9446  rm -f conftest*
9447  cat > conftest.$ac_ext <<_LT_EOF
9448#ifdef __cplusplus
9449extern "C" {
9450#endif
9451char nm_test_var;
9452void nm_test_func(void);
9453void nm_test_func(void){}
9454#ifdef __cplusplus
9455}
9456#endif
9457int main(){nm_test_var='a';nm_test_func();return(0);}
9458_LT_EOF
9459
9460  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461  (eval $ac_compile) 2>&5
9462  ac_status=$?
9463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464  (exit $ac_status); }; then
9465    # Now try to grab the symbols.
9466    nlist=conftest.nm
9467    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9468  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9469  ac_status=$?
9470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471  (exit $ac_status); } && test -s "$nlist"; then
9472      # Try sorting and uniquifying the output.
9473      if sort "$nlist" | uniq > "$nlist"T; then
9474	mv -f "$nlist"T "$nlist"
9475      else
9476	rm -f "$nlist"T
9477      fi
9478
9479      # Make sure that we snagged all the symbols we need.
9480      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9481	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9482	  cat <<_LT_EOF > conftest.$ac_ext
9483#ifdef __cplusplus
9484extern "C" {
9485#endif
9486
9487_LT_EOF
9488	  # Now generate the symbol file.
9489	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9490
9491	  cat <<_LT_EOF >> conftest.$ac_ext
9492
9493/* The mapping between symbol names and symbols.  */
9494const struct {
9495  const char *name;
9496  void       *address;
9497}
9498lt__PROGRAM__LTX_preloaded_symbols[] =
9499{
9500  { "@PROGRAM@", (void *) 0 },
9501_LT_EOF
9502	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9503	  cat <<\_LT_EOF >> conftest.$ac_ext
9504  {0, (void *) 0}
9505};
9506
9507/* This works around a problem in FreeBSD linker */
9508#ifdef FREEBSD_WORKAROUND
9509static const void *lt_preloaded_setup() {
9510  return lt__PROGRAM__LTX_preloaded_symbols;
9511}
9512#endif
9513
9514#ifdef __cplusplus
9515}
9516#endif
9517_LT_EOF
9518	  # Now try linking the two files.
9519	  mv conftest.$ac_objext conftstm.$ac_objext
9520	  lt_save_LIBS="$LIBS"
9521	  lt_save_CFLAGS="$CFLAGS"
9522	  LIBS="conftstm.$ac_objext"
9523	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9524	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525  (eval $ac_link) 2>&5
9526  ac_status=$?
9527  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9529	    pipe_works=yes
9530	  fi
9531	  LIBS="$lt_save_LIBS"
9532	  CFLAGS="$lt_save_CFLAGS"
9533	else
9534	  echo "cannot find nm_test_func in $nlist" >&5
9535	fi
9536      else
9537	echo "cannot find nm_test_var in $nlist" >&5
9538      fi
9539    else
9540      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9541    fi
9542  else
9543    echo "$progname: failed program was:" >&5
9544    cat conftest.$ac_ext >&5
9545  fi
9546  rm -rf conftest* conftst*
9547
9548  # Do not use the global_symbol_pipe unless it works.
9549  if test "$pipe_works" = yes; then
9550    break
9551  else
9552    lt_cv_sys_global_symbol_pipe=
9553  fi
9554done
9555
9556fi
9557
9558if test -z "$lt_cv_sys_global_symbol_pipe"; then
9559  lt_cv_sys_global_symbol_to_cdecl=
9560fi
9561if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9562  { $as_echo "$as_me:$LINENO: result: failed" >&5
9563$as_echo "failed" >&6; }
9564else
9565  { $as_echo "$as_me:$LINENO: result: ok" >&5
9566$as_echo "ok" >&6; }
9567fi
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590# Check whether --enable-libtool-lock was given.
9591if test "${enable_libtool_lock+set}" = set; then
9592  enableval=$enable_libtool_lock;
9593fi
9594
9595test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9596
9597# Some flags need to be propagated to the compiler or linker for good
9598# libtool support.
9599case $host in
9600ia64-*-hpux*)
9601  # Find out which ABI we are using.
9602  echo 'int i;' > conftest.$ac_ext
9603  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604  (eval $ac_compile) 2>&5
9605  ac_status=$?
9606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); }; then
9608    case `/usr/bin/file conftest.$ac_objext` in
9609      *ELF-32*)
9610	HPUX_IA64_MODE="32"
9611	;;
9612      *ELF-64*)
9613	HPUX_IA64_MODE="64"
9614	;;
9615    esac
9616  fi
9617  rm -rf conftest*
9618  ;;
9619*-*-irix6*)
9620  # Find out which ABI we are using.
9621  echo '#line 9621 "configure"' > conftest.$ac_ext
9622  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623  (eval $ac_compile) 2>&5
9624  ac_status=$?
9625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626  (exit $ac_status); }; then
9627    if test "$lt_cv_prog_gnu_ld" = yes; then
9628      case `/usr/bin/file conftest.$ac_objext` in
9629	*32-bit*)
9630	  LD="${LD-ld} -melf32bsmip"
9631	  ;;
9632	*N32*)
9633	  LD="${LD-ld} -melf32bmipn32"
9634	  ;;
9635	*64-bit*)
9636	  LD="${LD-ld} -melf64bmip"
9637	;;
9638      esac
9639    else
9640      case `/usr/bin/file conftest.$ac_objext` in
9641	*32-bit*)
9642	  LD="${LD-ld} -32"
9643	  ;;
9644	*N32*)
9645	  LD="${LD-ld} -n32"
9646	  ;;
9647	*64-bit*)
9648	  LD="${LD-ld} -64"
9649	  ;;
9650      esac
9651    fi
9652  fi
9653  rm -rf conftest*
9654  ;;
9655
9656x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9657s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9658  # Find out which ABI we are using.
9659  echo 'int i;' > conftest.$ac_ext
9660  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661  (eval $ac_compile) 2>&5
9662  ac_status=$?
9663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); }; then
9665    case `/usr/bin/file conftest.o` in
9666      *32-bit*)
9667	case $host in
9668	  x86_64-*kfreebsd*-gnu)
9669	    LD="${LD-ld} -m elf_i386_fbsd"
9670	    ;;
9671	  x86_64-*linux*)
9672	    LD="${LD-ld} -m elf_i386"
9673	    ;;
9674	  ppc64-*linux*|powerpc64-*linux*)
9675	    LD="${LD-ld} -m elf32ppclinux"
9676	    ;;
9677	  s390x-*linux*)
9678	    LD="${LD-ld} -m elf_s390"
9679	    ;;
9680	  sparc64-*linux*)
9681	    LD="${LD-ld} -m elf32_sparc"
9682	    ;;
9683	esac
9684	;;
9685      *64-bit*)
9686	case $host in
9687	  x86_64-*kfreebsd*-gnu)
9688	    LD="${LD-ld} -m elf_x86_64_fbsd"
9689	    ;;
9690	  x86_64-*linux*)
9691	    LD="${LD-ld} -m elf_x86_64"
9692	    ;;
9693	  ppc*-*linux*|powerpc*-*linux*)
9694	    LD="${LD-ld} -m elf64ppc"
9695	    ;;
9696	  s390*-*linux*|s390*-*tpf*)
9697	    LD="${LD-ld} -m elf64_s390"
9698	    ;;
9699	  sparc*-*linux*)
9700	    LD="${LD-ld} -m elf64_sparc"
9701	    ;;
9702	esac
9703	;;
9704    esac
9705  fi
9706  rm -rf conftest*
9707  ;;
9708
9709*-*-sco3.2v5*)
9710  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9711  SAVE_CFLAGS="$CFLAGS"
9712  CFLAGS="$CFLAGS -belf"
9713  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9714$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9715if test "${lt_cv_cc_needs_belf+set}" = set; then
9716  $as_echo_n "(cached) " >&6
9717else
9718  ac_ext=c
9719ac_cpp='$CPP $CPPFLAGS'
9720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9722ac_compiler_gnu=$ac_cv_c_compiler_gnu
9723
9724     cat >conftest.$ac_ext <<_ACEOF
9725/* confdefs.h.  */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h.  */
9730
9731int
9732main ()
9733{
9734
9735  ;
9736  return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext conftest$ac_exeext
9740if { (ac_try="$ac_link"
9741case "(($ac_try" in
9742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743  *) ac_try_echo=$ac_try;;
9744esac
9745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9746$as_echo "$ac_try_echo") >&5
9747  (eval "$ac_link") 2>conftest.er1
9748  ac_status=$?
9749  grep -v '^ *+' conftest.er1 >conftest.err
9750  rm -f conftest.er1
9751  cat conftest.err >&5
9752  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753  (exit $ac_status); } && {
9754	 test -z "$ac_c_werror_flag" ||
9755	 test ! -s conftest.err
9756       } && test -s conftest$ac_exeext && {
9757	 test "$cross_compiling" = yes ||
9758	 $as_test_x conftest$ac_exeext
9759       }; then
9760  lt_cv_cc_needs_belf=yes
9761else
9762  $as_echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
9764
9765	lt_cv_cc_needs_belf=no
9766fi
9767
9768rm -rf conftest.dSYM
9769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770      conftest$ac_exeext conftest.$ac_ext
9771     ac_ext=c
9772ac_cpp='$CPP $CPPFLAGS'
9773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775ac_compiler_gnu=$ac_cv_c_compiler_gnu
9776
9777fi
9778{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9779$as_echo "$lt_cv_cc_needs_belf" >&6; }
9780  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9781    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9782    CFLAGS="$SAVE_CFLAGS"
9783  fi
9784  ;;
9785sparc*-*solaris*)
9786  # Find out which ABI we are using.
9787  echo 'int i;' > conftest.$ac_ext
9788  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789  (eval $ac_compile) 2>&5
9790  ac_status=$?
9791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792  (exit $ac_status); }; then
9793    case `/usr/bin/file conftest.o` in
9794    *64-bit*)
9795      case $lt_cv_prog_gnu_ld in
9796      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9797      *)
9798	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9799	  LD="${LD-ld} -64"
9800	fi
9801	;;
9802      esac
9803      ;;
9804    esac
9805  fi
9806  rm -rf conftest*
9807  ;;
9808esac
9809
9810need_locks="$enable_libtool_lock"
9811
9812
9813  case $host_os in
9814    rhapsody* | darwin*)
9815    if test -n "$ac_tool_prefix"; then
9816  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9817set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9819$as_echo_n "checking for $ac_word... " >&6; }
9820if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9821  $as_echo_n "(cached) " >&6
9822else
9823  if test -n "$DSYMUTIL"; then
9824  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9825else
9826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827for as_dir in $PATH
9828do
9829  IFS=$as_save_IFS
9830  test -z "$as_dir" && as_dir=.
9831  for ac_exec_ext in '' $ac_executable_extensions; do
9832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9834    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835    break 2
9836  fi
9837done
9838done
9839IFS=$as_save_IFS
9840
9841fi
9842fi
9843DSYMUTIL=$ac_cv_prog_DSYMUTIL
9844if test -n "$DSYMUTIL"; then
9845  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9846$as_echo "$DSYMUTIL" >&6; }
9847else
9848  { $as_echo "$as_me:$LINENO: result: no" >&5
9849$as_echo "no" >&6; }
9850fi
9851
9852
9853fi
9854if test -z "$ac_cv_prog_DSYMUTIL"; then
9855  ac_ct_DSYMUTIL=$DSYMUTIL
9856  # Extract the first word of "dsymutil", so it can be a program name with args.
9857set dummy dsymutil; ac_word=$2
9858{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9859$as_echo_n "checking for $ac_word... " >&6; }
9860if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9861  $as_echo_n "(cached) " >&6
9862else
9863  if test -n "$ac_ct_DSYMUTIL"; then
9864  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869  IFS=$as_save_IFS
9870  test -z "$as_dir" && as_dir=.
9871  for ac_exec_ext in '' $ac_executable_extensions; do
9872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9874    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875    break 2
9876  fi
9877done
9878done
9879IFS=$as_save_IFS
9880
9881fi
9882fi
9883ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9884if test -n "$ac_ct_DSYMUTIL"; then
9885  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9886$as_echo "$ac_ct_DSYMUTIL" >&6; }
9887else
9888  { $as_echo "$as_me:$LINENO: result: no" >&5
9889$as_echo "no" >&6; }
9890fi
9891
9892  if test "x$ac_ct_DSYMUTIL" = x; then
9893    DSYMUTIL=":"
9894  else
9895    case $cross_compiling:$ac_tool_warned in
9896yes:)
9897{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9899ac_tool_warned=yes ;;
9900esac
9901    DSYMUTIL=$ac_ct_DSYMUTIL
9902  fi
9903else
9904  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9905fi
9906
9907    if test -n "$ac_tool_prefix"; then
9908  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9909set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9911$as_echo_n "checking for $ac_word... " >&6; }
9912if test "${ac_cv_prog_NMEDIT+set}" = set; then
9913  $as_echo_n "(cached) " >&6
9914else
9915  if test -n "$NMEDIT"; then
9916  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921  IFS=$as_save_IFS
9922  test -z "$as_dir" && as_dir=.
9923  for ac_exec_ext in '' $ac_executable_extensions; do
9924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9926    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927    break 2
9928  fi
9929done
9930done
9931IFS=$as_save_IFS
9932
9933fi
9934fi
9935NMEDIT=$ac_cv_prog_NMEDIT
9936if test -n "$NMEDIT"; then
9937  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9938$as_echo "$NMEDIT" >&6; }
9939else
9940  { $as_echo "$as_me:$LINENO: result: no" >&5
9941$as_echo "no" >&6; }
9942fi
9943
9944
9945fi
9946if test -z "$ac_cv_prog_NMEDIT"; then
9947  ac_ct_NMEDIT=$NMEDIT
9948  # Extract the first word of "nmedit", so it can be a program name with args.
9949set dummy nmedit; ac_word=$2
9950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
9952if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9953  $as_echo_n "(cached) " >&6
9954else
9955  if test -n "$ac_ct_NMEDIT"; then
9956  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961  IFS=$as_save_IFS
9962  test -z "$as_dir" && as_dir=.
9963  for ac_exec_ext in '' $ac_executable_extensions; do
9964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9966    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9967    break 2
9968  fi
9969done
9970done
9971IFS=$as_save_IFS
9972
9973fi
9974fi
9975ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9976if test -n "$ac_ct_NMEDIT"; then
9977  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9978$as_echo "$ac_ct_NMEDIT" >&6; }
9979else
9980  { $as_echo "$as_me:$LINENO: result: no" >&5
9981$as_echo "no" >&6; }
9982fi
9983
9984  if test "x$ac_ct_NMEDIT" = x; then
9985    NMEDIT=":"
9986  else
9987    case $cross_compiling:$ac_tool_warned in
9988yes:)
9989{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9991ac_tool_warned=yes ;;
9992esac
9993    NMEDIT=$ac_ct_NMEDIT
9994  fi
9995else
9996  NMEDIT="$ac_cv_prog_NMEDIT"
9997fi
9998
9999    if test -n "$ac_tool_prefix"; then
10000  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10001set dummy ${ac_tool_prefix}lipo; ac_word=$2
10002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10003$as_echo_n "checking for $ac_word... " >&6; }
10004if test "${ac_cv_prog_LIPO+set}" = set; then
10005  $as_echo_n "(cached) " >&6
10006else
10007  if test -n "$LIPO"; then
10008  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10009else
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013  IFS=$as_save_IFS
10014  test -z "$as_dir" && as_dir=.
10015  for ac_exec_ext in '' $ac_executable_extensions; do
10016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10018    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019    break 2
10020  fi
10021done
10022done
10023IFS=$as_save_IFS
10024
10025fi
10026fi
10027LIPO=$ac_cv_prog_LIPO
10028if test -n "$LIPO"; then
10029  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10030$as_echo "$LIPO" >&6; }
10031else
10032  { $as_echo "$as_me:$LINENO: result: no" >&5
10033$as_echo "no" >&6; }
10034fi
10035
10036
10037fi
10038if test -z "$ac_cv_prog_LIPO"; then
10039  ac_ct_LIPO=$LIPO
10040  # Extract the first word of "lipo", so it can be a program name with args.
10041set dummy lipo; ac_word=$2
10042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
10044if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10045  $as_echo_n "(cached) " >&6
10046else
10047  if test -n "$ac_ct_LIPO"; then
10048  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053  IFS=$as_save_IFS
10054  test -z "$as_dir" && as_dir=.
10055  for ac_exec_ext in '' $ac_executable_extensions; do
10056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057    ac_cv_prog_ac_ct_LIPO="lipo"
10058    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059    break 2
10060  fi
10061done
10062done
10063IFS=$as_save_IFS
10064
10065fi
10066fi
10067ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10068if test -n "$ac_ct_LIPO"; then
10069  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10070$as_echo "$ac_ct_LIPO" >&6; }
10071else
10072  { $as_echo "$as_me:$LINENO: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076  if test "x$ac_ct_LIPO" = x; then
10077    LIPO=":"
10078  else
10079    case $cross_compiling:$ac_tool_warned in
10080yes:)
10081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10083ac_tool_warned=yes ;;
10084esac
10085    LIPO=$ac_ct_LIPO
10086  fi
10087else
10088  LIPO="$ac_cv_prog_LIPO"
10089fi
10090
10091    if test -n "$ac_tool_prefix"; then
10092  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10093set dummy ${ac_tool_prefix}otool; ac_word=$2
10094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10095$as_echo_n "checking for $ac_word... " >&6; }
10096if test "${ac_cv_prog_OTOOL+set}" = set; then
10097  $as_echo_n "(cached) " >&6
10098else
10099  if test -n "$OTOOL"; then
10100  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10101else
10102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103for as_dir in $PATH
10104do
10105  IFS=$as_save_IFS
10106  test -z "$as_dir" && as_dir=.
10107  for ac_exec_ext in '' $ac_executable_extensions; do
10108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10110    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111    break 2
10112  fi
10113done
10114done
10115IFS=$as_save_IFS
10116
10117fi
10118fi
10119OTOOL=$ac_cv_prog_OTOOL
10120if test -n "$OTOOL"; then
10121  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10122$as_echo "$OTOOL" >&6; }
10123else
10124  { $as_echo "$as_me:$LINENO: result: no" >&5
10125$as_echo "no" >&6; }
10126fi
10127
10128
10129fi
10130if test -z "$ac_cv_prog_OTOOL"; then
10131  ac_ct_OTOOL=$OTOOL
10132  # Extract the first word of "otool", so it can be a program name with args.
10133set dummy otool; ac_word=$2
10134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10137  $as_echo_n "(cached) " >&6
10138else
10139  if test -n "$ac_ct_OTOOL"; then
10140  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145  IFS=$as_save_IFS
10146  test -z "$as_dir" && as_dir=.
10147  for ac_exec_ext in '' $ac_executable_extensions; do
10148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10149    ac_cv_prog_ac_ct_OTOOL="otool"
10150    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151    break 2
10152  fi
10153done
10154done
10155IFS=$as_save_IFS
10156
10157fi
10158fi
10159ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10160if test -n "$ac_ct_OTOOL"; then
10161  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10162$as_echo "$ac_ct_OTOOL" >&6; }
10163else
10164  { $as_echo "$as_me:$LINENO: result: no" >&5
10165$as_echo "no" >&6; }
10166fi
10167
10168  if test "x$ac_ct_OTOOL" = x; then
10169    OTOOL=":"
10170  else
10171    case $cross_compiling:$ac_tool_warned in
10172yes:)
10173{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10175ac_tool_warned=yes ;;
10176esac
10177    OTOOL=$ac_ct_OTOOL
10178  fi
10179else
10180  OTOOL="$ac_cv_prog_OTOOL"
10181fi
10182
10183    if test -n "$ac_tool_prefix"; then
10184  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10185set dummy ${ac_tool_prefix}otool64; ac_word=$2
10186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10187$as_echo_n "checking for $ac_word... " >&6; }
10188if test "${ac_cv_prog_OTOOL64+set}" = set; then
10189  $as_echo_n "(cached) " >&6
10190else
10191  if test -n "$OTOOL64"; then
10192  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10193else
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197  IFS=$as_save_IFS
10198  test -z "$as_dir" && as_dir=.
10199  for ac_exec_ext in '' $ac_executable_extensions; do
10200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10202    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203    break 2
10204  fi
10205done
10206done
10207IFS=$as_save_IFS
10208
10209fi
10210fi
10211OTOOL64=$ac_cv_prog_OTOOL64
10212if test -n "$OTOOL64"; then
10213  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10214$as_echo "$OTOOL64" >&6; }
10215else
10216  { $as_echo "$as_me:$LINENO: result: no" >&5
10217$as_echo "no" >&6; }
10218fi
10219
10220
10221fi
10222if test -z "$ac_cv_prog_OTOOL64"; then
10223  ac_ct_OTOOL64=$OTOOL64
10224  # Extract the first word of "otool64", so it can be a program name with args.
10225set dummy otool64; ac_word=$2
10226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10227$as_echo_n "checking for $ac_word... " >&6; }
10228if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10229  $as_echo_n "(cached) " >&6
10230else
10231  if test -n "$ac_ct_OTOOL64"; then
10232  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237  IFS=$as_save_IFS
10238  test -z "$as_dir" && as_dir=.
10239  for ac_exec_ext in '' $ac_executable_extensions; do
10240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10241    ac_cv_prog_ac_ct_OTOOL64="otool64"
10242    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10243    break 2
10244  fi
10245done
10246done
10247IFS=$as_save_IFS
10248
10249fi
10250fi
10251ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10252if test -n "$ac_ct_OTOOL64"; then
10253  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10254$as_echo "$ac_ct_OTOOL64" >&6; }
10255else
10256  { $as_echo "$as_me:$LINENO: result: no" >&5
10257$as_echo "no" >&6; }
10258fi
10259
10260  if test "x$ac_ct_OTOOL64" = x; then
10261    OTOOL64=":"
10262  else
10263    case $cross_compiling:$ac_tool_warned in
10264yes:)
10265{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10267ac_tool_warned=yes ;;
10268esac
10269    OTOOL64=$ac_ct_OTOOL64
10270  fi
10271else
10272  OTOOL64="$ac_cv_prog_OTOOL64"
10273fi
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10302$as_echo_n "checking for -single_module linker flag... " >&6; }
10303if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10304  $as_echo_n "(cached) " >&6
10305else
10306  lt_cv_apple_cc_single_mod=no
10307      if test -z "${LT_MULTI_MODULE}"; then
10308	# By default we will add the -single_module flag. You can override
10309	# by either setting the environment variable LT_MULTI_MODULE
10310	# non-empty at configure time, or by adding -multi_module to the
10311	# link flags.
10312	rm -rf libconftest.dylib*
10313	echo "int foo(void){return 1;}" > conftest.c
10314	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10315-dynamiclib -Wl,-single_module conftest.c" >&5
10316	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10317	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10318        _lt_result=$?
10319	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10320	  lt_cv_apple_cc_single_mod=yes
10321	else
10322	  cat conftest.err >&5
10323	fi
10324	rm -rf libconftest.dylib*
10325	rm -f conftest.*
10326      fi
10327fi
10328{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10329$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10330    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10331$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10332if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10333  $as_echo_n "(cached) " >&6
10334else
10335  lt_cv_ld_exported_symbols_list=no
10336      save_LDFLAGS=$LDFLAGS
10337      echo "_main" > conftest.sym
10338      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10339      cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h.  */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h.  */
10345
10346int
10347main ()
10348{
10349
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354rm -f conftest.$ac_objext conftest$ac_exeext
10355if { (ac_try="$ac_link"
10356case "(($ac_try" in
10357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358  *) ac_try_echo=$ac_try;;
10359esac
10360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10361$as_echo "$ac_try_echo") >&5
10362  (eval "$ac_link") 2>conftest.er1
10363  ac_status=$?
10364  grep -v '^ *+' conftest.er1 >conftest.err
10365  rm -f conftest.er1
10366  cat conftest.err >&5
10367  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); } && {
10369	 test -z "$ac_c_werror_flag" ||
10370	 test ! -s conftest.err
10371       } && test -s conftest$ac_exeext && {
10372	 test "$cross_compiling" = yes ||
10373	 $as_test_x conftest$ac_exeext
10374       }; then
10375  lt_cv_ld_exported_symbols_list=yes
10376else
10377  $as_echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380	lt_cv_ld_exported_symbols_list=no
10381fi
10382
10383rm -rf conftest.dSYM
10384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385      conftest$ac_exeext conftest.$ac_ext
10386	LDFLAGS="$save_LDFLAGS"
10387
10388fi
10389{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10390$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10391    case $host_os in
10392    rhapsody* | darwin1.[012])
10393      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10394    darwin1.*)
10395      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10396    darwin*) # darwin 5.x on
10397      # if running on 10.5 or later, the deployment target defaults
10398      # to the OS version, if on x86, and 10.4, the deployment
10399      # target defaults to 10.4. Don't you love it?
10400      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10401	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10402	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10403	10.[012]*)
10404	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10405	10.*)
10406	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10407      esac
10408    ;;
10409  esac
10410    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10411      _lt_dar_single_mod='$single_module'
10412    fi
10413    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10414      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10415    else
10416      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10417    fi
10418    if test "$DSYMUTIL" != ":"; then
10419      _lt_dsymutil='~$DSYMUTIL $lib || :'
10420    else
10421      _lt_dsymutil=
10422    fi
10423    ;;
10424  esac
10425
10426
10427for ac_header in dlfcn.h
10428do
10429as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10430{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10431$as_echo_n "checking for $ac_header... " >&6; }
10432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10433  $as_echo_n "(cached) " >&6
10434else
10435  cat >conftest.$ac_ext <<_ACEOF
10436/* confdefs.h.  */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
10440/* end confdefs.h.  */
10441$ac_includes_default
10442
10443#include <$ac_header>
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (ac_try="$ac_compile"
10447case "(($ac_try" in
10448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449  *) ac_try_echo=$ac_try;;
10450esac
10451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10452$as_echo "$ac_try_echo") >&5
10453  (eval "$ac_compile") 2>conftest.er1
10454  ac_status=$?
10455  grep -v '^ *+' conftest.er1 >conftest.err
10456  rm -f conftest.er1
10457  cat conftest.err >&5
10458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); } && {
10460	 test -z "$ac_c_werror_flag" ||
10461	 test ! -s conftest.err
10462       } && test -s conftest.$ac_objext; then
10463  eval "$as_ac_Header=yes"
10464else
10465  $as_echo "$as_me: failed program was:" >&5
10466sed 's/^/| /' conftest.$ac_ext >&5
10467
10468	eval "$as_ac_Header=no"
10469fi
10470
10471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472fi
10473ac_res=`eval 'as_val=${'$as_ac_Header'}
10474		 $as_echo "$as_val"'`
10475	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10476$as_echo "$ac_res" >&6; }
10477as_val=`eval 'as_val=${'$as_ac_Header'}
10478		 $as_echo "$as_val"'`
10479   if test "x$as_val" = x""yes; then
10480  cat >>confdefs.h <<_ACEOF
10481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10482_ACEOF
10483
10484fi
10485
10486done
10487
10488
10489
10490# Set options
10491
10492
10493
10494        enable_dlopen=no
10495
10496
10497
10498            # Check whether --enable-shared was given.
10499if test "${enable_shared+set}" = set; then
10500  enableval=$enable_shared; p=${PACKAGE-default}
10501    case $enableval in
10502    yes) enable_shared=yes ;;
10503    no) enable_shared=no ;;
10504    *)
10505      enable_shared=no
10506      # Look at the argument we got.  We use all the common list separators.
10507      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10508      for pkg in $enableval; do
10509	IFS="$lt_save_ifs"
10510	if test "X$pkg" = "X$p"; then
10511	  enable_shared=yes
10512	fi
10513      done
10514      IFS="$lt_save_ifs"
10515      ;;
10516    esac
10517else
10518  enable_shared=yes
10519fi
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529  # Check whether --enable-static was given.
10530if test "${enable_static+set}" = set; then
10531  enableval=$enable_static; p=${PACKAGE-default}
10532    case $enableval in
10533    yes) enable_static=yes ;;
10534    no) enable_static=no ;;
10535    *)
10536     enable_static=no
10537      # Look at the argument we got.  We use all the common list separators.
10538      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10539      for pkg in $enableval; do
10540	IFS="$lt_save_ifs"
10541	if test "X$pkg" = "X$p"; then
10542	  enable_static=yes
10543	fi
10544      done
10545      IFS="$lt_save_ifs"
10546      ;;
10547    esac
10548else
10549  enable_static=yes
10550fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561# Check whether --with-pic was given.
10562if test "${with_pic+set}" = set; then
10563  withval=$with_pic; pic_mode="$withval"
10564else
10565  pic_mode=default
10566fi
10567
10568
10569test -z "$pic_mode" && pic_mode=default
10570
10571
10572
10573
10574
10575
10576
10577  # Check whether --enable-fast-install was given.
10578if test "${enable_fast_install+set}" = set; then
10579  enableval=$enable_fast_install; p=${PACKAGE-default}
10580    case $enableval in
10581    yes) enable_fast_install=yes ;;
10582    no) enable_fast_install=no ;;
10583    *)
10584      enable_fast_install=no
10585      # Look at the argument we got.  We use all the common list separators.
10586      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10587      for pkg in $enableval; do
10588	IFS="$lt_save_ifs"
10589	if test "X$pkg" = "X$p"; then
10590	  enable_fast_install=yes
10591	fi
10592      done
10593      IFS="$lt_save_ifs"
10594      ;;
10595    esac
10596else
10597  enable_fast_install=yes
10598fi
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610# This can be used to rebuild libtool when needed
10611LIBTOOL_DEPS="$ltmain"
10612
10613# Always use our own libtool.
10614LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640test -z "$LN_S" && LN_S="ln -s"
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655if test -n "${ZSH_VERSION+set}" ; then
10656   setopt NO_GLOB_SUBST
10657fi
10658
10659{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10660$as_echo_n "checking for objdir... " >&6; }
10661if test "${lt_cv_objdir+set}" = set; then
10662  $as_echo_n "(cached) " >&6
10663else
10664  rm -f .libs 2>/dev/null
10665mkdir .libs 2>/dev/null
10666if test -d .libs; then
10667  lt_cv_objdir=.libs
10668else
10669  # MS-DOS does not allow filenames that begin with a dot.
10670  lt_cv_objdir=_libs
10671fi
10672rmdir .libs 2>/dev/null
10673fi
10674{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10675$as_echo "$lt_cv_objdir" >&6; }
10676objdir=$lt_cv_objdir
10677
10678
10679
10680
10681
10682cat >>confdefs.h <<_ACEOF
10683#define LT_OBJDIR "$lt_cv_objdir/"
10684_ACEOF
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702case $host_os in
10703aix3*)
10704  # AIX sometimes has problems with the GCC collect2 program.  For some
10705  # reason, if we set the COLLECT_NAMES environment variable, the problems
10706  # vanish in a puff of smoke.
10707  if test "X${COLLECT_NAMES+set}" != Xset; then
10708    COLLECT_NAMES=
10709    export COLLECT_NAMES
10710  fi
10711  ;;
10712esac
10713
10714# Sed substitution that helps us do robust quoting.  It backslashifies
10715# metacharacters that are still active within double-quoted strings.
10716sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10717
10718# Same as above, but do not quote variable references.
10719double_quote_subst='s/\(["`\\]\)/\\\1/g'
10720
10721# Sed substitution to delay expansion of an escaped shell variable in a
10722# double_quote_subst'ed string.
10723delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10724
10725# Sed substitution to delay expansion of an escaped single quote.
10726delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10727
10728# Sed substitution to avoid accidental globbing in evaled expressions
10729no_glob_subst='s/\*/\\\*/g'
10730
10731# Global variables:
10732ofile=libtool
10733can_build_shared=yes
10734
10735# All known linkers require a `.a' archive for static linking (except MSVC,
10736# which needs '.lib').
10737libext=a
10738
10739with_gnu_ld="$lt_cv_prog_gnu_ld"
10740
10741old_CC="$CC"
10742old_CFLAGS="$CFLAGS"
10743
10744# Set sane defaults for various variables
10745test -z "$CC" && CC=cc
10746test -z "$LTCC" && LTCC=$CC
10747test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10748test -z "$LD" && LD=ld
10749test -z "$ac_objext" && ac_objext=o
10750
10751for cc_temp in $compiler""; do
10752  case $cc_temp in
10753    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10754    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10755    \-*) ;;
10756    *) break;;
10757  esac
10758done
10759cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10760
10761
10762# Only perform the check for file, if the check method requires it
10763test -z "$MAGIC_CMD" && MAGIC_CMD=file
10764case $deplibs_check_method in
10765file_magic*)
10766  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10767    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10768$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10769if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10770  $as_echo_n "(cached) " >&6
10771else
10772  case $MAGIC_CMD in
10773[\\/*] |  ?:[\\/]*)
10774  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10775  ;;
10776*)
10777  lt_save_MAGIC_CMD="$MAGIC_CMD"
10778  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10779  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10780  for ac_dir in $ac_dummy; do
10781    IFS="$lt_save_ifs"
10782    test -z "$ac_dir" && ac_dir=.
10783    if test -f $ac_dir/${ac_tool_prefix}file; then
10784      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10785      if test -n "$file_magic_test_file"; then
10786	case $deplibs_check_method in
10787	"file_magic "*)
10788	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10789	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10790	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10791	    $EGREP "$file_magic_regex" > /dev/null; then
10792	    :
10793	  else
10794	    cat <<_LT_EOF 1>&2
10795
10796*** Warning: the command libtool uses to detect shared libraries,
10797*** $file_magic_cmd, produces output that libtool cannot recognize.
10798*** The result is that libtool may fail to recognize shared libraries
10799*** as such.  This will affect the creation of libtool libraries that
10800*** depend on shared libraries, but programs linked with such libtool
10801*** libraries will work regardless of this problem.  Nevertheless, you
10802*** may want to report the problem to your system manager and/or to
10803*** bug-libtool@gnu.org
10804
10805_LT_EOF
10806	  fi ;;
10807	esac
10808      fi
10809      break
10810    fi
10811  done
10812  IFS="$lt_save_ifs"
10813  MAGIC_CMD="$lt_save_MAGIC_CMD"
10814  ;;
10815esac
10816fi
10817
10818MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10819if test -n "$MAGIC_CMD"; then
10820  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10821$as_echo "$MAGIC_CMD" >&6; }
10822else
10823  { $as_echo "$as_me:$LINENO: result: no" >&5
10824$as_echo "no" >&6; }
10825fi
10826
10827
10828
10829
10830
10831if test -z "$lt_cv_path_MAGIC_CMD"; then
10832  if test -n "$ac_tool_prefix"; then
10833    { $as_echo "$as_me:$LINENO: checking for file" >&5
10834$as_echo_n "checking for file... " >&6; }
10835if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10836  $as_echo_n "(cached) " >&6
10837else
10838  case $MAGIC_CMD in
10839[\\/*] |  ?:[\\/]*)
10840  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10841  ;;
10842*)
10843  lt_save_MAGIC_CMD="$MAGIC_CMD"
10844  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10845  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10846  for ac_dir in $ac_dummy; do
10847    IFS="$lt_save_ifs"
10848    test -z "$ac_dir" && ac_dir=.
10849    if test -f $ac_dir/file; then
10850      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10851      if test -n "$file_magic_test_file"; then
10852	case $deplibs_check_method in
10853	"file_magic "*)
10854	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10855	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10856	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10857	    $EGREP "$file_magic_regex" > /dev/null; then
10858	    :
10859	  else
10860	    cat <<_LT_EOF 1>&2
10861
10862*** Warning: the command libtool uses to detect shared libraries,
10863*** $file_magic_cmd, produces output that libtool cannot recognize.
10864*** The result is that libtool may fail to recognize shared libraries
10865*** as such.  This will affect the creation of libtool libraries that
10866*** depend on shared libraries, but programs linked with such libtool
10867*** libraries will work regardless of this problem.  Nevertheless, you
10868*** may want to report the problem to your system manager and/or to
10869*** bug-libtool@gnu.org
10870
10871_LT_EOF
10872	  fi ;;
10873	esac
10874      fi
10875      break
10876    fi
10877  done
10878  IFS="$lt_save_ifs"
10879  MAGIC_CMD="$lt_save_MAGIC_CMD"
10880  ;;
10881esac
10882fi
10883
10884MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10885if test -n "$MAGIC_CMD"; then
10886  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10887$as_echo "$MAGIC_CMD" >&6; }
10888else
10889  { $as_echo "$as_me:$LINENO: result: no" >&5
10890$as_echo "no" >&6; }
10891fi
10892
10893
10894  else
10895    MAGIC_CMD=:
10896  fi
10897fi
10898
10899  fi
10900  ;;
10901esac
10902
10903# Use C for the default configuration in the libtool script
10904
10905lt_save_CC="$CC"
10906ac_ext=c
10907ac_cpp='$CPP $CPPFLAGS'
10908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10910ac_compiler_gnu=$ac_cv_c_compiler_gnu
10911
10912
10913# Source file extension for C test sources.
10914ac_ext=c
10915
10916# Object file extension for compiled C test sources.
10917objext=o
10918objext=$objext
10919
10920# Code to be used in simple compile tests
10921lt_simple_compile_test_code="int some_variable = 0;"
10922
10923# Code to be used in simple link tests
10924lt_simple_link_test_code='int main(){return(0);}'
10925
10926
10927
10928
10929
10930
10931
10932# If no C compiler was specified, use CC.
10933LTCC=${LTCC-"$CC"}
10934
10935# If no C compiler flags were specified, use CFLAGS.
10936LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10937
10938# Allow CC to be a program name with arguments.
10939compiler=$CC
10940
10941# Save the default compiler, since it gets overwritten when the other
10942# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10943compiler_DEFAULT=$CC
10944
10945# save warnings/boilerplate of simple test code
10946ac_outfile=conftest.$ac_objext
10947echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10948eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10949_lt_compiler_boilerplate=`cat conftest.err`
10950$RM conftest*
10951
10952ac_outfile=conftest.$ac_objext
10953echo "$lt_simple_link_test_code" >conftest.$ac_ext
10954eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10955_lt_linker_boilerplate=`cat conftest.err`
10956$RM -r conftest*
10957
10958
10959if test -n "$compiler"; then
10960
10961lt_prog_compiler_no_builtin_flag=
10962
10963if test "$GCC" = yes; then
10964  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10965
10966  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10967$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10968if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10969  $as_echo_n "(cached) " >&6
10970else
10971  lt_cv_prog_compiler_rtti_exceptions=no
10972   ac_outfile=conftest.$ac_objext
10973   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10974   lt_compiler_flag="-fno-rtti -fno-exceptions"
10975   # Insert the option either (1) after the last *FLAGS variable, or
10976   # (2) before a word containing "conftest.", or (3) at the end.
10977   # Note that $ac_compile itself does not contain backslashes and begins
10978   # with a dollar sign (not a hyphen), so the echo should work correctly.
10979   # The option is referenced via a variable to avoid confusing sed.
10980   lt_compile=`echo "$ac_compile" | $SED \
10981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10983   -e 's:$: $lt_compiler_flag:'`
10984   (eval echo "\"\$as_me:10984: $lt_compile\"" >&5)
10985   (eval "$lt_compile" 2>conftest.err)
10986   ac_status=$?
10987   cat conftest.err >&5
10988   echo "$as_me:10988: \$? = $ac_status" >&5
10989   if (exit $ac_status) && test -s "$ac_outfile"; then
10990     # The compiler can only warn and ignore the option if not recognized
10991     # So say no if there are warnings other than the usual output.
10992     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10993     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10994     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10995       lt_cv_prog_compiler_rtti_exceptions=yes
10996     fi
10997   fi
10998   $RM conftest*
10999
11000fi
11001{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11002$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11003
11004if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11005    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11006else
11007    :
11008fi
11009
11010fi
11011
11012
11013
11014
11015
11016
11017  lt_prog_compiler_wl=
11018lt_prog_compiler_pic=
11019lt_prog_compiler_static=
11020
11021{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11022$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11023
11024  if test "$GCC" = yes; then
11025    lt_prog_compiler_wl='-Wl,'
11026    lt_prog_compiler_static='-static'
11027
11028    case $host_os in
11029      aix*)
11030      # All AIX code is PIC.
11031      if test "$host_cpu" = ia64; then
11032	# AIX 5 now supports IA64 processor
11033	lt_prog_compiler_static='-Bstatic'
11034      fi
11035      ;;
11036
11037    amigaos*)
11038      case $host_cpu in
11039      powerpc)
11040            # see comment about AmigaOS4 .so support
11041            lt_prog_compiler_pic='-fPIC'
11042        ;;
11043      m68k)
11044            # FIXME: we need at least 68020 code to build shared libraries, but
11045            # adding the `-m68020' flag to GCC prevents building anything better,
11046            # like `-m68040'.
11047            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11048        ;;
11049      esac
11050      ;;
11051
11052    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11053      # PIC is the default for these OSes.
11054      ;;
11055
11056    mingw* | cygwin* | pw32* | os2* | cegcc*)
11057      # This hack is so that the source file can tell whether it is being
11058      # built for inclusion in a dll (and should export symbols for example).
11059      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11060      # (--disable-auto-import) libraries
11061      lt_prog_compiler_pic='-DDLL_EXPORT'
11062      ;;
11063
11064    darwin* | rhapsody*)
11065      # PIC is the default on this platform
11066      # Common symbols not allowed in MH_DYLIB files
11067      lt_prog_compiler_pic='-fno-common'
11068      ;;
11069
11070    hpux*)
11071      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11072      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11073      # sets the default TLS model and affects inlining.
11074      case $host_cpu in
11075      hppa*64*)
11076	# +Z the default
11077	;;
11078      *)
11079	lt_prog_compiler_pic='-fPIC'
11080	;;
11081      esac
11082      ;;
11083
11084    interix[3-9]*)
11085      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11086      # Instead, we relocate shared libraries at runtime.
11087      ;;
11088
11089    msdosdjgpp*)
11090      # Just because we use GCC doesn't mean we suddenly get shared libraries
11091      # on systems that don't support them.
11092      lt_prog_compiler_can_build_shared=no
11093      enable_shared=no
11094      ;;
11095
11096    *nto* | *qnx*)
11097      # QNX uses GNU C++, but need to define -shared option too, otherwise
11098      # it will coredump.
11099      lt_prog_compiler_pic='-fPIC -shared'
11100      ;;
11101
11102    sysv4*MP*)
11103      if test -d /usr/nec; then
11104	lt_prog_compiler_pic=-Kconform_pic
11105      fi
11106      ;;
11107
11108    *)
11109      lt_prog_compiler_pic='-fPIC'
11110      ;;
11111    esac
11112  else
11113    # PORTME Check for flag to pass linker flags through the system compiler.
11114    case $host_os in
11115    aix*)
11116      lt_prog_compiler_wl='-Wl,'
11117      if test "$host_cpu" = ia64; then
11118	# AIX 5 now supports IA64 processor
11119	lt_prog_compiler_static='-Bstatic'
11120      else
11121	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11122      fi
11123      ;;
11124
11125    mingw* | cygwin* | pw32* | os2* | cegcc*)
11126      # This hack is so that the source file can tell whether it is being
11127      # built for inclusion in a dll (and should export symbols for example).
11128      lt_prog_compiler_pic='-DDLL_EXPORT'
11129      ;;
11130
11131    hpux9* | hpux10* | hpux11*)
11132      lt_prog_compiler_wl='-Wl,'
11133      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11134      # not for PA HP-UX.
11135      case $host_cpu in
11136      hppa*64*|ia64*)
11137	# +Z the default
11138	;;
11139      *)
11140	lt_prog_compiler_pic='+Z'
11141	;;
11142      esac
11143      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11144      lt_prog_compiler_static='${wl}-a ${wl}archive'
11145      ;;
11146
11147    irix5* | irix6* | nonstopux*)
11148      lt_prog_compiler_wl='-Wl,'
11149      # PIC (with -KPIC) is the default.
11150      lt_prog_compiler_static='-non_shared'
11151      ;;
11152
11153    linux* | k*bsd*-gnu)
11154      case $cc_basename in
11155      # old Intel for x86_64 which still supported -KPIC.
11156      ecc*)
11157	lt_prog_compiler_wl='-Wl,'
11158	lt_prog_compiler_pic='-KPIC'
11159	lt_prog_compiler_static='-static'
11160        ;;
11161      # icc used to be incompatible with GCC.
11162      # ICC 10 doesn't accept -KPIC any more.
11163      icc* | ifort*)
11164	lt_prog_compiler_wl='-Wl,'
11165	lt_prog_compiler_pic='-fPIC'
11166	lt_prog_compiler_static='-static'
11167        ;;
11168      # Lahey Fortran 8.1.
11169      lf95*)
11170	lt_prog_compiler_wl='-Wl,'
11171	lt_prog_compiler_pic='--shared'
11172	lt_prog_compiler_static='--static'
11173	;;
11174      pgcc* | pgf77* | pgf90* | pgf95*)
11175        # Portland Group compilers (*not* the Pentium gcc compiler,
11176	# which looks to be a dead project)
11177	lt_prog_compiler_wl='-Wl,'
11178	lt_prog_compiler_pic='-fpic'
11179	lt_prog_compiler_static='-Bstatic'
11180        ;;
11181      ccc*)
11182        lt_prog_compiler_wl='-Wl,'
11183        # All Alpha code is PIC.
11184        lt_prog_compiler_static='-non_shared'
11185        ;;
11186      xl*)
11187	# IBM XL C 8.0/Fortran 10.1 on PPC
11188	lt_prog_compiler_wl='-Wl,'
11189	lt_prog_compiler_pic='-qpic'
11190	lt_prog_compiler_static='-qstaticlink'
11191	;;
11192      *)
11193	case `$CC -V 2>&1 | sed 5q` in
11194	*Sun\ C*)
11195	  # Sun C 5.9
11196	  lt_prog_compiler_pic='-KPIC'
11197	  lt_prog_compiler_static='-Bstatic'
11198	  lt_prog_compiler_wl='-Wl,'
11199	  ;;
11200	*Sun\ F*)
11201	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11202	  lt_prog_compiler_pic='-KPIC'
11203	  lt_prog_compiler_static='-Bstatic'
11204	  lt_prog_compiler_wl=''
11205	  ;;
11206	esac
11207	;;
11208      esac
11209      ;;
11210
11211    newsos6)
11212      lt_prog_compiler_pic='-KPIC'
11213      lt_prog_compiler_static='-Bstatic'
11214      ;;
11215
11216    *nto* | *qnx*)
11217      # QNX uses GNU C++, but need to define -shared option too, otherwise
11218      # it will coredump.
11219      lt_prog_compiler_pic='-fPIC -shared'
11220      ;;
11221
11222    osf3* | osf4* | osf5*)
11223      lt_prog_compiler_wl='-Wl,'
11224      # All OSF/1 code is PIC.
11225      lt_prog_compiler_static='-non_shared'
11226      ;;
11227
11228    rdos*)
11229      lt_prog_compiler_static='-non_shared'
11230      ;;
11231
11232    solaris*)
11233      lt_prog_compiler_pic='-KPIC'
11234      lt_prog_compiler_static='-Bstatic'
11235      case $cc_basename in
11236      f77* | f90* | f95*)
11237	lt_prog_compiler_wl='-Qoption ld ';;
11238      *)
11239	lt_prog_compiler_wl='-Wl,';;
11240      esac
11241      ;;
11242
11243    sunos4*)
11244      lt_prog_compiler_wl='-Qoption ld '
11245      lt_prog_compiler_pic='-PIC'
11246      lt_prog_compiler_static='-Bstatic'
11247      ;;
11248
11249    sysv4 | sysv4.2uw2* | sysv4.3*)
11250      lt_prog_compiler_wl='-Wl,'
11251      lt_prog_compiler_pic='-KPIC'
11252      lt_prog_compiler_static='-Bstatic'
11253      ;;
11254
11255    sysv4*MP*)
11256      if test -d /usr/nec ;then
11257	lt_prog_compiler_pic='-Kconform_pic'
11258	lt_prog_compiler_static='-Bstatic'
11259      fi
11260      ;;
11261
11262    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11263      lt_prog_compiler_wl='-Wl,'
11264      lt_prog_compiler_pic='-KPIC'
11265      lt_prog_compiler_static='-Bstatic'
11266      ;;
11267
11268    unicos*)
11269      lt_prog_compiler_wl='-Wl,'
11270      lt_prog_compiler_can_build_shared=no
11271      ;;
11272
11273    uts4*)
11274      lt_prog_compiler_pic='-pic'
11275      lt_prog_compiler_static='-Bstatic'
11276      ;;
11277
11278    *)
11279      lt_prog_compiler_can_build_shared=no
11280      ;;
11281    esac
11282  fi
11283
11284case $host_os in
11285  # For platforms which do not support PIC, -DPIC is meaningless:
11286  *djgpp*)
11287    lt_prog_compiler_pic=
11288    ;;
11289  *)
11290    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11291    ;;
11292esac
11293{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11294$as_echo "$lt_prog_compiler_pic" >&6; }
11295
11296
11297
11298
11299
11300
11301#
11302# Check to make sure the PIC flag actually works.
11303#
11304if test -n "$lt_prog_compiler_pic"; then
11305  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11306$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11307if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11308  $as_echo_n "(cached) " >&6
11309else
11310  lt_cv_prog_compiler_pic_works=no
11311   ac_outfile=conftest.$ac_objext
11312   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11313   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11314   # Insert the option either (1) after the last *FLAGS variable, or
11315   # (2) before a word containing "conftest.", or (3) at the end.
11316   # Note that $ac_compile itself does not contain backslashes and begins
11317   # with a dollar sign (not a hyphen), so the echo should work correctly.
11318   # The option is referenced via a variable to avoid confusing sed.
11319   lt_compile=`echo "$ac_compile" | $SED \
11320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11322   -e 's:$: $lt_compiler_flag:'`
11323   (eval echo "\"\$as_me:11323: $lt_compile\"" >&5)
11324   (eval "$lt_compile" 2>conftest.err)
11325   ac_status=$?
11326   cat conftest.err >&5
11327   echo "$as_me:11327: \$? = $ac_status" >&5
11328   if (exit $ac_status) && test -s "$ac_outfile"; then
11329     # The compiler can only warn and ignore the option if not recognized
11330     # So say no if there are warnings other than the usual output.
11331     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11334       lt_cv_prog_compiler_pic_works=yes
11335     fi
11336   fi
11337   $RM conftest*
11338
11339fi
11340{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11341$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11342
11343if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11344    case $lt_prog_compiler_pic in
11345     "" | " "*) ;;
11346     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11347     esac
11348else
11349    lt_prog_compiler_pic=
11350     lt_prog_compiler_can_build_shared=no
11351fi
11352
11353fi
11354
11355
11356
11357
11358
11359
11360#
11361# Check to make sure the static flag actually works.
11362#
11363wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11364{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11365$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11366if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11367  $as_echo_n "(cached) " >&6
11368else
11369  lt_cv_prog_compiler_static_works=no
11370   save_LDFLAGS="$LDFLAGS"
11371   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11372   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11373   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11374     # The linker can only warn and ignore the option if not recognized
11375     # So say no if there are warnings
11376     if test -s conftest.err; then
11377       # Append any errors to the config.log.
11378       cat conftest.err 1>&5
11379       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11380       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11381       if diff conftest.exp conftest.er2 >/dev/null; then
11382         lt_cv_prog_compiler_static_works=yes
11383       fi
11384     else
11385       lt_cv_prog_compiler_static_works=yes
11386     fi
11387   fi
11388   $RM -r conftest*
11389   LDFLAGS="$save_LDFLAGS"
11390
11391fi
11392{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11393$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11394
11395if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11396    :
11397else
11398    lt_prog_compiler_static=
11399fi
11400
11401
11402
11403
11404
11405
11406
11407  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11408$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11409if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11410  $as_echo_n "(cached) " >&6
11411else
11412  lt_cv_prog_compiler_c_o=no
11413   $RM -r conftest 2>/dev/null
11414   mkdir conftest
11415   cd conftest
11416   mkdir out
11417   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11418
11419   lt_compiler_flag="-o out/conftest2.$ac_objext"
11420   # Insert the option either (1) after the last *FLAGS variable, or
11421   # (2) before a word containing "conftest.", or (3) at the end.
11422   # Note that $ac_compile itself does not contain backslashes and begins
11423   # with a dollar sign (not a hyphen), so the echo should work correctly.
11424   lt_compile=`echo "$ac_compile" | $SED \
11425   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11426   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11427   -e 's:$: $lt_compiler_flag:'`
11428   (eval echo "\"\$as_me:11428: $lt_compile\"" >&5)
11429   (eval "$lt_compile" 2>out/conftest.err)
11430   ac_status=$?
11431   cat out/conftest.err >&5
11432   echo "$as_me:11432: \$? = $ac_status" >&5
11433   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11434   then
11435     # The compiler can only warn and ignore the option if not recognized
11436     # So say no if there are warnings
11437     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11438     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11439     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11440       lt_cv_prog_compiler_c_o=yes
11441     fi
11442   fi
11443   chmod u+w . 2>&5
11444   $RM conftest*
11445   # SGI C++ compiler will create directory out/ii_files/ for
11446   # template instantiation
11447   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11448   $RM out/* && rmdir out
11449   cd ..
11450   $RM -r conftest
11451   $RM conftest*
11452
11453fi
11454{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11455$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11456
11457
11458
11459
11460
11461
11462  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11463$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11464if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11465  $as_echo_n "(cached) " >&6
11466else
11467  lt_cv_prog_compiler_c_o=no
11468   $RM -r conftest 2>/dev/null
11469   mkdir conftest
11470   cd conftest
11471   mkdir out
11472   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11473
11474   lt_compiler_flag="-o out/conftest2.$ac_objext"
11475   # Insert the option either (1) after the last *FLAGS variable, or
11476   # (2) before a word containing "conftest.", or (3) at the end.
11477   # Note that $ac_compile itself does not contain backslashes and begins
11478   # with a dollar sign (not a hyphen), so the echo should work correctly.
11479   lt_compile=`echo "$ac_compile" | $SED \
11480   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11481   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11482   -e 's:$: $lt_compiler_flag:'`
11483   (eval echo "\"\$as_me:11483: $lt_compile\"" >&5)
11484   (eval "$lt_compile" 2>out/conftest.err)
11485   ac_status=$?
11486   cat out/conftest.err >&5
11487   echo "$as_me:11487: \$? = $ac_status" >&5
11488   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11489   then
11490     # The compiler can only warn and ignore the option if not recognized
11491     # So say no if there are warnings
11492     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11493     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11494     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11495       lt_cv_prog_compiler_c_o=yes
11496     fi
11497   fi
11498   chmod u+w . 2>&5
11499   $RM conftest*
11500   # SGI C++ compiler will create directory out/ii_files/ for
11501   # template instantiation
11502   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11503   $RM out/* && rmdir out
11504   cd ..
11505   $RM -r conftest
11506   $RM conftest*
11507
11508fi
11509{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11510$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11511
11512
11513
11514
11515hard_links="nottested"
11516if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11517  # do not overwrite the value of need_locks provided by the user
11518  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11519$as_echo_n "checking if we can lock with hard links... " >&6; }
11520  hard_links=yes
11521  $RM conftest*
11522  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11523  touch conftest.a
11524  ln conftest.a conftest.b 2>&5 || hard_links=no
11525  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11526  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11527$as_echo "$hard_links" >&6; }
11528  if test "$hard_links" = no; then
11529    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11530$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11531    need_locks=warn
11532  fi
11533else
11534  need_locks=no
11535fi
11536
11537
11538
11539
11540
11541
11542  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11543$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11544
11545  runpath_var=
11546  allow_undefined_flag=
11547  always_export_symbols=no
11548  archive_cmds=
11549  archive_expsym_cmds=
11550  compiler_needs_object=no
11551  enable_shared_with_static_runtimes=no
11552  export_dynamic_flag_spec=
11553  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11554  hardcode_automatic=no
11555  hardcode_direct=no
11556  hardcode_direct_absolute=no
11557  hardcode_libdir_flag_spec=
11558  hardcode_libdir_flag_spec_ld=
11559  hardcode_libdir_separator=
11560  hardcode_minus_L=no
11561  hardcode_shlibpath_var=unsupported
11562  inherit_rpath=no
11563  link_all_deplibs=unknown
11564  module_cmds=
11565  module_expsym_cmds=
11566  old_archive_from_new_cmds=
11567  old_archive_from_expsyms_cmds=
11568  thread_safe_flag_spec=
11569  whole_archive_flag_spec=
11570  # include_expsyms should be a list of space-separated symbols to be *always*
11571  # included in the symbol list
11572  include_expsyms=
11573  # exclude_expsyms can be an extended regexp of symbols to exclude
11574  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11575  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11576  # as well as any symbol that contains `d'.
11577  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11578  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11579  # platforms (ab)use it in PIC code, but their linkers get confused if
11580  # the symbol is explicitly referenced.  Since portable code cannot
11581  # rely on this symbol name, it's probably fine to never include it in
11582  # preloaded symbol tables.
11583  # Exclude shared library initialization/finalization symbols.
11584  extract_expsyms_cmds=
11585
11586  case $host_os in
11587  cygwin* | mingw* | pw32* | cegcc*)
11588    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11589    # When not using gcc, we currently assume that we are using
11590    # Microsoft Visual C++.
11591    if test "$GCC" != yes; then
11592      with_gnu_ld=no
11593    fi
11594    ;;
11595  interix*)
11596    # we just hope/assume this is gcc and not c89 (= MSVC++)
11597    with_gnu_ld=yes
11598    ;;
11599  openbsd*)
11600    with_gnu_ld=no
11601    ;;
11602  esac
11603
11604  ld_shlibs=yes
11605  if test "$with_gnu_ld" = yes; then
11606    # If archive_cmds runs LD, not CC, wlarc should be empty
11607    wlarc='${wl}'
11608
11609    # Set some defaults for GNU ld with shared library support. These
11610    # are reset later if shared libraries are not supported. Putting them
11611    # here allows them to be overridden if necessary.
11612    runpath_var=LD_RUN_PATH
11613    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11614    export_dynamic_flag_spec='${wl}--export-dynamic'
11615    # ancient GNU ld didn't support --whole-archive et. al.
11616    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11617      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11618    else
11619      whole_archive_flag_spec=
11620    fi
11621    supports_anon_versioning=no
11622    case `$LD -v 2>&1` in
11623      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11624      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11625      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11626      *\ 2.11.*) ;; # other 2.11 versions
11627      *) supports_anon_versioning=yes ;;
11628    esac
11629
11630    # See if GNU ld supports shared libraries.
11631    case $host_os in
11632    aix[3-9]*)
11633      # On AIX/PPC, the GNU linker is very broken
11634      if test "$host_cpu" != ia64; then
11635	ld_shlibs=no
11636	cat <<_LT_EOF 1>&2
11637
11638*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11639*** to be unable to reliably create shared libraries on AIX.
11640*** Therefore, libtool is disabling shared libraries support.  If you
11641*** really care for shared libraries, you may want to modify your PATH
11642*** so that a non-GNU linker is found, and then restart.
11643
11644_LT_EOF
11645      fi
11646      ;;
11647
11648    amigaos*)
11649      case $host_cpu in
11650      powerpc)
11651            # see comment about AmigaOS4 .so support
11652            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11653            archive_expsym_cmds=''
11654        ;;
11655      m68k)
11656            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)'
11657            hardcode_libdir_flag_spec='-L$libdir'
11658            hardcode_minus_L=yes
11659        ;;
11660      esac
11661      ;;
11662
11663    beos*)
11664      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11665	allow_undefined_flag=unsupported
11666	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11667	# support --undefined.  This deserves some investigation.  FIXME
11668	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11669      else
11670	ld_shlibs=no
11671      fi
11672      ;;
11673
11674    cygwin* | mingw* | pw32* | cegcc*)
11675      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11676      # as there is no search path for DLLs.
11677      hardcode_libdir_flag_spec='-L$libdir'
11678      allow_undefined_flag=unsupported
11679      always_export_symbols=no
11680      enable_shared_with_static_runtimes=yes
11681      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11682
11683      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11684        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11685	# If the export-symbols file already is a .def file (1st line
11686	# is EXPORTS), use it as is; otherwise, prepend...
11687	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11688	  cp $export_symbols $output_objdir/$soname.def;
11689	else
11690	  echo EXPORTS > $output_objdir/$soname.def;
11691	  cat $export_symbols >> $output_objdir/$soname.def;
11692	fi~
11693	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11694      else
11695	ld_shlibs=no
11696      fi
11697      ;;
11698
11699    interix[3-9]*)
11700      hardcode_direct=no
11701      hardcode_shlibpath_var=no
11702      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11703      export_dynamic_flag_spec='${wl}-E'
11704      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11705      # Instead, shared libraries are loaded at an image base (0x10000000 by
11706      # default) and relocated if they conflict, which is a slow very memory
11707      # consuming and fragmenting process.  To avoid this, we pick a random,
11708      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11709      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11710      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11711      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'
11712      ;;
11713
11714    gnu* | linux* | tpf* | k*bsd*-gnu)
11715      tmp_diet=no
11716      if test "$host_os" = linux-dietlibc; then
11717	case $cc_basename in
11718	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11719	esac
11720      fi
11721      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11722	 && test "$tmp_diet" = no
11723      then
11724	tmp_addflag=
11725	tmp_sharedflag='-shared'
11726	case $cc_basename,$host_cpu in
11727        pgcc*)				# Portland Group C compiler
11728	  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'
11729	  tmp_addflag=' $pic_flag'
11730	  ;;
11731	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11732	  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'
11733	  tmp_addflag=' $pic_flag -Mnomain' ;;
11734	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11735	  tmp_addflag=' -i_dynamic' ;;
11736	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11737	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11738	ifc* | ifort*)			# Intel Fortran compiler
11739	  tmp_addflag=' -nofor_main' ;;
11740	lf95*)				# Lahey Fortran 8.1
11741	  whole_archive_flag_spec=
11742	  tmp_sharedflag='--shared' ;;
11743	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
11744	  tmp_sharedflag='-qmkshrobj'
11745	  tmp_addflag= ;;
11746	esac
11747	case `$CC -V 2>&1 | sed 5q` in
11748	*Sun\ C*)			# Sun C 5.9
11749	  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'
11750	  compiler_needs_object=yes
11751	  tmp_sharedflag='-G' ;;
11752	*Sun\ F*)			# Sun Fortran 8.3
11753	  tmp_sharedflag='-G' ;;
11754	esac
11755	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11756
11757        if test "x$supports_anon_versioning" = xyes; then
11758          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11759	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11760	    echo "local: *; };" >> $output_objdir/$libname.ver~
11761	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11762        fi
11763
11764	case $cc_basename in
11765	xlf*)
11766	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11767	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11768	  hardcode_libdir_flag_spec=
11769	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11770	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11771	  if test "x$supports_anon_versioning" = xyes; then
11772	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11773	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11774	      echo "local: *; };" >> $output_objdir/$libname.ver~
11775	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11776	  fi
11777	  ;;
11778	esac
11779      else
11780        ld_shlibs=no
11781      fi
11782      ;;
11783
11784    netbsd*)
11785      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11786	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11787	wlarc=
11788      else
11789	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11790	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11791      fi
11792      ;;
11793
11794    solaris*)
11795      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11796	ld_shlibs=no
11797	cat <<_LT_EOF 1>&2
11798
11799*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11800*** create shared libraries on Solaris systems.  Therefore, libtool
11801*** is disabling shared libraries support.  We urge you to upgrade GNU
11802*** binutils to release 2.9.1 or newer.  Another option is to modify
11803*** your PATH or compiler configuration so that the native linker is
11804*** used, and then restart.
11805
11806_LT_EOF
11807      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11808	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11810      else
11811	ld_shlibs=no
11812      fi
11813      ;;
11814
11815    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11816      case `$LD -v 2>&1` in
11817        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11818	ld_shlibs=no
11819	cat <<_LT_EOF 1>&2
11820
11821*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11822*** reliably create shared libraries on SCO systems.  Therefore, libtool
11823*** is disabling shared libraries support.  We urge you to upgrade GNU
11824*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11825*** your PATH or compiler configuration so that the native linker is
11826*** used, and then restart.
11827
11828_LT_EOF
11829	;;
11830	*)
11831	  # For security reasons, it is highly recommended that you always
11832	  # use absolute paths for naming shared libraries, and exclude the
11833	  # DT_RUNPATH tag from executables and libraries.  But doing so
11834	  # requires that you compile everything twice, which is a pain.
11835	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11836	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11837	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11839	  else
11840	    ld_shlibs=no
11841	  fi
11842	;;
11843      esac
11844      ;;
11845
11846    sunos4*)
11847      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11848      wlarc=
11849      hardcode_direct=yes
11850      hardcode_shlibpath_var=no
11851      ;;
11852
11853    *)
11854      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11855	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11856	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11857      else
11858	ld_shlibs=no
11859      fi
11860      ;;
11861    esac
11862
11863    if test "$ld_shlibs" = no; then
11864      runpath_var=
11865      hardcode_libdir_flag_spec=
11866      export_dynamic_flag_spec=
11867      whole_archive_flag_spec=
11868    fi
11869  else
11870    # PORTME fill in a description of your system's linker (not GNU ld)
11871    case $host_os in
11872    aix3*)
11873      allow_undefined_flag=unsupported
11874      always_export_symbols=yes
11875      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'
11876      # Note: this linker hardcodes the directories in LIBPATH if there
11877      # are no directories specified by -L.
11878      hardcode_minus_L=yes
11879      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11880	# Neither direct hardcoding nor static linking is supported with a
11881	# broken collect2.
11882	hardcode_direct=unsupported
11883      fi
11884      ;;
11885
11886    aix[4-9]*)
11887      if test "$host_cpu" = ia64; then
11888	# On IA64, the linker does run time linking by default, so we don't
11889	# have to do anything special.
11890	aix_use_runtimelinking=no
11891	exp_sym_flag='-Bexport'
11892	no_entry_flag=""
11893      else
11894	# If we're using GNU nm, then we don't want the "-C" option.
11895	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11896	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11897	  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'
11898	else
11899	  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'
11900	fi
11901	aix_use_runtimelinking=no
11902
11903	# Test if we are trying to use run time linking or normal
11904	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11905	# need to do runtime linking.
11906	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11907	  for ld_flag in $LDFLAGS; do
11908	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11909	    aix_use_runtimelinking=yes
11910	    break
11911	  fi
11912	  done
11913	  ;;
11914	esac
11915
11916	exp_sym_flag='-bexport'
11917	no_entry_flag='-bnoentry'
11918      fi
11919
11920      # When large executables or shared objects are built, AIX ld can
11921      # have problems creating the table of contents.  If linking a library
11922      # or program results in "error TOC overflow" add -mminimal-toc to
11923      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11924      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11925
11926      archive_cmds=''
11927      hardcode_direct=yes
11928      hardcode_direct_absolute=yes
11929      hardcode_libdir_separator=':'
11930      link_all_deplibs=yes
11931      file_list_spec='${wl}-f,'
11932
11933      if test "$GCC" = yes; then
11934	case $host_os in aix4.[012]|aix4.[012].*)
11935	# We only want to do this on AIX 4.2 and lower, the check
11936	# below for broken collect2 doesn't work under 4.3+
11937	  collect2name=`${CC} -print-prog-name=collect2`
11938	  if test -f "$collect2name" &&
11939	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11940	  then
11941	  # We have reworked collect2
11942	  :
11943	  else
11944	  # We have old collect2
11945	  hardcode_direct=unsupported
11946	  # It fails to find uninstalled libraries when the uninstalled
11947	  # path is not listed in the libpath.  Setting hardcode_minus_L
11948	  # to unsupported forces relinking
11949	  hardcode_minus_L=yes
11950	  hardcode_libdir_flag_spec='-L$libdir'
11951	  hardcode_libdir_separator=
11952	  fi
11953	  ;;
11954	esac
11955	shared_flag='-shared'
11956	if test "$aix_use_runtimelinking" = yes; then
11957	  shared_flag="$shared_flag "'${wl}-G'
11958	fi
11959      else
11960	# not using gcc
11961	if test "$host_cpu" = ia64; then
11962	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11963	# chokes on -Wl,-G. The following line is correct:
11964	  shared_flag='-G'
11965	else
11966	  if test "$aix_use_runtimelinking" = yes; then
11967	    shared_flag='${wl}-G'
11968	  else
11969	    shared_flag='${wl}-bM:SRE'
11970	  fi
11971	fi
11972      fi
11973
11974      export_dynamic_flag_spec='${wl}-bexpall'
11975      # It seems that -bexpall does not export symbols beginning with
11976      # underscore (_), so it is better to generate a list of symbols to export.
11977      always_export_symbols=yes
11978      if test "$aix_use_runtimelinking" = yes; then
11979	# Warning - without using the other runtime loading flags (-brtl),
11980	# -berok will link without error, but may produce a broken library.
11981	allow_undefined_flag='-berok'
11982        # Determine the default libpath from the value encoded in an
11983        # empty executable.
11984        cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h.  */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h.  */
11990
11991int
11992main ()
11993{
11994
11995  ;
11996  return 0;
11997}
11998_ACEOF
11999rm -f conftest.$ac_objext conftest$ac_exeext
12000if { (ac_try="$ac_link"
12001case "(($ac_try" in
12002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003  *) ac_try_echo=$ac_try;;
12004esac
12005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12006$as_echo "$ac_try_echo") >&5
12007  (eval "$ac_link") 2>conftest.er1
12008  ac_status=$?
12009  grep -v '^ *+' conftest.er1 >conftest.err
12010  rm -f conftest.er1
12011  cat conftest.err >&5
12012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013  (exit $ac_status); } && {
12014	 test -z "$ac_c_werror_flag" ||
12015	 test ! -s conftest.err
12016       } && test -s conftest$ac_exeext && {
12017	 test "$cross_compiling" = yes ||
12018	 $as_test_x conftest$ac_exeext
12019       }; then
12020
12021lt_aix_libpath_sed='
12022    /Import File Strings/,/^$/ {
12023	/^0/ {
12024	    s/^0  *\(.*\)$/\1/
12025	    p
12026	}
12027    }'
12028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12029# Check for a 64-bit object if we didn't find anything.
12030if test -z "$aix_libpath"; then
12031  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12032fi
12033else
12034  $as_echo "$as_me: failed program was:" >&5
12035sed 's/^/| /' conftest.$ac_ext >&5
12036
12037
12038fi
12039
12040rm -rf conftest.dSYM
12041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12042      conftest$ac_exeext conftest.$ac_ext
12043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12044
12045        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12046        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"
12047      else
12048	if test "$host_cpu" = ia64; then
12049	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12050	  allow_undefined_flag="-z nodefs"
12051	  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"
12052	else
12053	 # Determine the default libpath from the value encoded in an
12054	 # empty executable.
12055	 cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h.  */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h.  */
12061
12062int
12063main ()
12064{
12065
12066  ;
12067  return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext conftest$ac_exeext
12071if { (ac_try="$ac_link"
12072case "(($ac_try" in
12073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074  *) ac_try_echo=$ac_try;;
12075esac
12076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077$as_echo "$ac_try_echo") >&5
12078  (eval "$ac_link") 2>conftest.er1
12079  ac_status=$?
12080  grep -v '^ *+' conftest.er1 >conftest.err
12081  rm -f conftest.er1
12082  cat conftest.err >&5
12083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084  (exit $ac_status); } && {
12085	 test -z "$ac_c_werror_flag" ||
12086	 test ! -s conftest.err
12087       } && test -s conftest$ac_exeext && {
12088	 test "$cross_compiling" = yes ||
12089	 $as_test_x conftest$ac_exeext
12090       }; then
12091
12092lt_aix_libpath_sed='
12093    /Import File Strings/,/^$/ {
12094	/^0/ {
12095	    s/^0  *\(.*\)$/\1/
12096	    p
12097	}
12098    }'
12099aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12100# Check for a 64-bit object if we didn't find anything.
12101if test -z "$aix_libpath"; then
12102  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12103fi
12104else
12105  $as_echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108
12109fi
12110
12111rm -rf conftest.dSYM
12112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12113      conftest$ac_exeext conftest.$ac_ext
12114if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12115
12116	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12117	  # Warning - without using the other run time loading flags,
12118	  # -berok will link without error, but may produce a broken library.
12119	  no_undefined_flag=' ${wl}-bernotok'
12120	  allow_undefined_flag=' ${wl}-berok'
12121	  # Exported symbols can be pulled into shared objects from archives
12122	  whole_archive_flag_spec='$convenience'
12123	  archive_cmds_need_lc=yes
12124	  # This is similar to how AIX traditionally builds its shared libraries.
12125	  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'
12126	fi
12127      fi
12128      ;;
12129
12130    amigaos*)
12131      case $host_cpu in
12132      powerpc)
12133            # see comment about AmigaOS4 .so support
12134            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12135            archive_expsym_cmds=''
12136        ;;
12137      m68k)
12138            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)'
12139            hardcode_libdir_flag_spec='-L$libdir'
12140            hardcode_minus_L=yes
12141        ;;
12142      esac
12143      ;;
12144
12145    bsdi[45]*)
12146      export_dynamic_flag_spec=-rdynamic
12147      ;;
12148
12149    cygwin* | mingw* | pw32* | cegcc*)
12150      # When not using gcc, we currently assume that we are using
12151      # Microsoft Visual C++.
12152      # hardcode_libdir_flag_spec is actually meaningless, as there is
12153      # no search path for DLLs.
12154      hardcode_libdir_flag_spec=' '
12155      allow_undefined_flag=unsupported
12156      # Tell ltmain to make .lib files, not .a files.
12157      libext=lib
12158      # Tell ltmain to make .dll files, not .so files.
12159      shrext_cmds=".dll"
12160      # FIXME: Setting linknames here is a bad hack.
12161      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12162      # The linker will automatically build a .lib file if we build a DLL.
12163      old_archive_from_new_cmds='true'
12164      # FIXME: Should let the user specify the lib program.
12165      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12166      fix_srcfile_path='`cygpath -w "$srcfile"`'
12167      enable_shared_with_static_runtimes=yes
12168      ;;
12169
12170    darwin* | rhapsody*)
12171
12172
12173  archive_cmds_need_lc=no
12174  hardcode_direct=no
12175  hardcode_automatic=yes
12176  hardcode_shlibpath_var=unsupported
12177  whole_archive_flag_spec=''
12178  link_all_deplibs=yes
12179  allow_undefined_flag="$_lt_dar_allow_undefined"
12180  case $cc_basename in
12181     ifort*) _lt_dar_can_shared=yes ;;
12182     *) _lt_dar_can_shared=$GCC ;;
12183  esac
12184  if test "$_lt_dar_can_shared" = "yes"; then
12185    output_verbose_link_cmd=echo
12186    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12187    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12188    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}"
12189    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}"
12190
12191  else
12192  ld_shlibs=no
12193  fi
12194
12195      ;;
12196
12197    dgux*)
12198      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12199      hardcode_libdir_flag_spec='-L$libdir'
12200      hardcode_shlibpath_var=no
12201      ;;
12202
12203    freebsd1*)
12204      ld_shlibs=no
12205      ;;
12206
12207    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12208    # support.  Future versions do this automatically, but an explicit c++rt0.o
12209    # does not break anything, and helps significantly (at the cost of a little
12210    # extra space).
12211    freebsd2.2*)
12212      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12213      hardcode_libdir_flag_spec='-R$libdir'
12214      hardcode_direct=yes
12215      hardcode_shlibpath_var=no
12216      ;;
12217
12218    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12219    freebsd2*)
12220      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12221      hardcode_direct=yes
12222      hardcode_minus_L=yes
12223      hardcode_shlibpath_var=no
12224      ;;
12225
12226    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12227    freebsd* | dragonfly*)
12228      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12229      hardcode_libdir_flag_spec='-R$libdir'
12230      hardcode_direct=yes
12231      hardcode_shlibpath_var=no
12232      ;;
12233
12234    hpux9*)
12235      if test "$GCC" = yes; then
12236	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'
12237      else
12238	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'
12239      fi
12240      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12241      hardcode_libdir_separator=:
12242      hardcode_direct=yes
12243
12244      # hardcode_minus_L: Not really in the search PATH,
12245      # but as the default location of the library.
12246      hardcode_minus_L=yes
12247      export_dynamic_flag_spec='${wl}-E'
12248      ;;
12249
12250    hpux10*)
12251      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12252	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12253      else
12254	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12255      fi
12256      if test "$with_gnu_ld" = no; then
12257	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12258	hardcode_libdir_flag_spec_ld='+b $libdir'
12259	hardcode_libdir_separator=:
12260	hardcode_direct=yes
12261	hardcode_direct_absolute=yes
12262	export_dynamic_flag_spec='${wl}-E'
12263	# hardcode_minus_L: Not really in the search PATH,
12264	# but as the default location of the library.
12265	hardcode_minus_L=yes
12266      fi
12267      ;;
12268
12269    hpux11*)
12270      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12271	case $host_cpu in
12272	hppa*64*)
12273	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12274	  ;;
12275	ia64*)
12276	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12277	  ;;
12278	*)
12279	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12280	  ;;
12281	esac
12282      else
12283	case $host_cpu in
12284	hppa*64*)
12285	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12286	  ;;
12287	ia64*)
12288	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12289	  ;;
12290	*)
12291	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12292	  ;;
12293	esac
12294      fi
12295      if test "$with_gnu_ld" = no; then
12296	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12297	hardcode_libdir_separator=:
12298
12299	case $host_cpu in
12300	hppa*64*|ia64*)
12301	  hardcode_direct=no
12302	  hardcode_shlibpath_var=no
12303	  ;;
12304	*)
12305	  hardcode_direct=yes
12306	  hardcode_direct_absolute=yes
12307	  export_dynamic_flag_spec='${wl}-E'
12308
12309	  # hardcode_minus_L: Not really in the search PATH,
12310	  # but as the default location of the library.
12311	  hardcode_minus_L=yes
12312	  ;;
12313	esac
12314      fi
12315      ;;
12316
12317    irix5* | irix6* | nonstopux*)
12318      if test "$GCC" = yes; then
12319	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'
12320	# Try to use the -exported_symbol ld option, if it does not
12321	# work, assume that -exports_file does not work either and
12322	# implicitly export all symbols.
12323        save_LDFLAGS="$LDFLAGS"
12324        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12325        cat >conftest.$ac_ext <<_ACEOF
12326int foo(void) {}
12327_ACEOF
12328rm -f conftest.$ac_objext conftest$ac_exeext
12329if { (ac_try="$ac_link"
12330case "(($ac_try" in
12331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332  *) ac_try_echo=$ac_try;;
12333esac
12334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12335$as_echo "$ac_try_echo") >&5
12336  (eval "$ac_link") 2>conftest.er1
12337  ac_status=$?
12338  grep -v '^ *+' conftest.er1 >conftest.err
12339  rm -f conftest.er1
12340  cat conftest.err >&5
12341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342  (exit $ac_status); } && {
12343	 test -z "$ac_c_werror_flag" ||
12344	 test ! -s conftest.err
12345       } && test -s conftest$ac_exeext && {
12346	 test "$cross_compiling" = yes ||
12347	 $as_test_x conftest$ac_exeext
12348       }; then
12349  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'
12350
12351else
12352  $as_echo "$as_me: failed program was:" >&5
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
12355
12356fi
12357
12358rm -rf conftest.dSYM
12359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360      conftest$ac_exeext conftest.$ac_ext
12361        LDFLAGS="$save_LDFLAGS"
12362      else
12363	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'
12364	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'
12365      fi
12366      archive_cmds_need_lc='no'
12367      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12368      hardcode_libdir_separator=:
12369      inherit_rpath=yes
12370      link_all_deplibs=yes
12371      ;;
12372
12373    netbsd*)
12374      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12375	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12376      else
12377	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12378      fi
12379      hardcode_libdir_flag_spec='-R$libdir'
12380      hardcode_direct=yes
12381      hardcode_shlibpath_var=no
12382      ;;
12383
12384    newsos6)
12385      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12386      hardcode_direct=yes
12387      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12388      hardcode_libdir_separator=:
12389      hardcode_shlibpath_var=no
12390      ;;
12391
12392    *nto* | *qnx*)
12393      ;;
12394
12395    openbsd*)
12396      if test -f /usr/libexec/ld.so; then
12397	hardcode_direct=yes
12398	hardcode_shlibpath_var=no
12399	hardcode_direct_absolute=yes
12400	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12401	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12402	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12403	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12404	  export_dynamic_flag_spec='${wl}-E'
12405	else
12406	  case $host_os in
12407	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12408	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12409	     hardcode_libdir_flag_spec='-R$libdir'
12410	     ;;
12411	   *)
12412	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12413	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12414	     ;;
12415	  esac
12416	fi
12417      else
12418	ld_shlibs=no
12419      fi
12420      ;;
12421
12422    os2*)
12423      hardcode_libdir_flag_spec='-L$libdir'
12424      hardcode_minus_L=yes
12425      allow_undefined_flag=unsupported
12426      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'
12427      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12428      ;;
12429
12430    osf3*)
12431      if test "$GCC" = yes; then
12432	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12433	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'
12434      else
12435	allow_undefined_flag=' -expect_unresolved \*'
12436	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'
12437      fi
12438      archive_cmds_need_lc='no'
12439      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12440      hardcode_libdir_separator=:
12441      ;;
12442
12443    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12444      if test "$GCC" = yes; then
12445	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12446	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'
12447	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12448      else
12449	allow_undefined_flag=' -expect_unresolved \*'
12450	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'
12451	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~
12452	$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'
12453
12454	# Both c and cxx compiler support -rpath directly
12455	hardcode_libdir_flag_spec='-rpath $libdir'
12456      fi
12457      archive_cmds_need_lc='no'
12458      hardcode_libdir_separator=:
12459      ;;
12460
12461    solaris*)
12462      no_undefined_flag=' -z defs'
12463      if test "$GCC" = yes; then
12464	wlarc='${wl}'
12465	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12466	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12467	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12468      else
12469	case `$CC -V 2>&1` in
12470	*"Compilers 5.0"*)
12471	  wlarc=''
12472	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12473	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12474	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12475	  ;;
12476	*)
12477	  wlarc='${wl}'
12478	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12479	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12480	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12481	  ;;
12482	esac
12483      fi
12484      hardcode_libdir_flag_spec='-R$libdir'
12485      hardcode_shlibpath_var=no
12486      case $host_os in
12487      solaris2.[0-5] | solaris2.[0-5].*) ;;
12488      *)
12489	# The compiler driver will combine and reorder linker options,
12490	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12491	# but is careful enough not to reorder.
12492	# Supported since Solaris 2.6 (maybe 2.5.1?)
12493	if test "$GCC" = yes; then
12494	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12495	else
12496	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12497	fi
12498	;;
12499      esac
12500      link_all_deplibs=yes
12501      ;;
12502
12503    sunos4*)
12504      if test "x$host_vendor" = xsequent; then
12505	# Use $CC to link under sequent, because it throws in some extra .o
12506	# files that make .init and .fini sections work.
12507	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12508      else
12509	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12510      fi
12511      hardcode_libdir_flag_spec='-L$libdir'
12512      hardcode_direct=yes
12513      hardcode_minus_L=yes
12514      hardcode_shlibpath_var=no
12515      ;;
12516
12517    sysv4)
12518      case $host_vendor in
12519	sni)
12520	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12521	  hardcode_direct=yes # is this really true???
12522	;;
12523	siemens)
12524	  ## LD is ld it makes a PLAMLIB
12525	  ## CC just makes a GrossModule.
12526	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12527	  reload_cmds='$CC -r -o $output$reload_objs'
12528	  hardcode_direct=no
12529        ;;
12530	motorola)
12531	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12532	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12533	;;
12534      esac
12535      runpath_var='LD_RUN_PATH'
12536      hardcode_shlibpath_var=no
12537      ;;
12538
12539    sysv4.3*)
12540      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12541      hardcode_shlibpath_var=no
12542      export_dynamic_flag_spec='-Bexport'
12543      ;;
12544
12545    sysv4*MP*)
12546      if test -d /usr/nec; then
12547	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12548	hardcode_shlibpath_var=no
12549	runpath_var=LD_RUN_PATH
12550	hardcode_runpath_var=yes
12551	ld_shlibs=yes
12552      fi
12553      ;;
12554
12555    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12556      no_undefined_flag='${wl}-z,text'
12557      archive_cmds_need_lc=no
12558      hardcode_shlibpath_var=no
12559      runpath_var='LD_RUN_PATH'
12560
12561      if test "$GCC" = yes; then
12562	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12563	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564      else
12565	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567      fi
12568      ;;
12569
12570    sysv5* | sco3.2v5* | sco5v6*)
12571      # Note: We can NOT use -z defs as we might desire, because we do not
12572      # link with -lc, and that would cause any symbols used from libc to
12573      # always be unresolved, which means just about no library would
12574      # ever link correctly.  If we're not using GNU ld we use -z text
12575      # though, which does catch some bad symbols but isn't as heavy-handed
12576      # as -z defs.
12577      no_undefined_flag='${wl}-z,text'
12578      allow_undefined_flag='${wl}-z,nodefs'
12579      archive_cmds_need_lc=no
12580      hardcode_shlibpath_var=no
12581      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12582      hardcode_libdir_separator=':'
12583      link_all_deplibs=yes
12584      export_dynamic_flag_spec='${wl}-Bexport'
12585      runpath_var='LD_RUN_PATH'
12586
12587      if test "$GCC" = yes; then
12588	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12589	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12590      else
12591	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12592	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12593      fi
12594      ;;
12595
12596    uts4*)
12597      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12598      hardcode_libdir_flag_spec='-L$libdir'
12599      hardcode_shlibpath_var=no
12600      ;;
12601
12602    *)
12603      ld_shlibs=no
12604      ;;
12605    esac
12606
12607    if test x$host_vendor = xsni; then
12608      case $host in
12609      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12610	export_dynamic_flag_spec='${wl}-Blargedynsym'
12611	;;
12612      esac
12613    fi
12614  fi
12615
12616{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12617$as_echo "$ld_shlibs" >&6; }
12618test "$ld_shlibs" = no && can_build_shared=no
12619
12620with_gnu_ld=$with_gnu_ld
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636#
12637# Do we need to explicitly link libc?
12638#
12639case "x$archive_cmds_need_lc" in
12640x|xyes)
12641  # Assume -lc should be added
12642  archive_cmds_need_lc=yes
12643
12644  if test "$enable_shared" = yes && test "$GCC" = yes; then
12645    case $archive_cmds in
12646    *'~'*)
12647      # FIXME: we may have to deal with multi-command sequences.
12648      ;;
12649    '$CC '*)
12650      # Test whether the compiler implicitly links with -lc since on some
12651      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12652      # to ld, don't add -lc before -lgcc.
12653      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12654$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12655      $RM conftest*
12656      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12657
12658      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659  (eval $ac_compile) 2>&5
12660  ac_status=$?
12661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662  (exit $ac_status); } 2>conftest.err; then
12663        soname=conftest
12664        lib=conftest
12665        libobjs=conftest.$ac_objext
12666        deplibs=
12667        wl=$lt_prog_compiler_wl
12668	pic_flag=$lt_prog_compiler_pic
12669        compiler_flags=-v
12670        linker_flags=-v
12671        verstring=
12672        output_objdir=.
12673        libname=conftest
12674        lt_save_allow_undefined_flag=$allow_undefined_flag
12675        allow_undefined_flag=
12676        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12677  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12678  ac_status=$?
12679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680  (exit $ac_status); }
12681        then
12682	  archive_cmds_need_lc=no
12683        else
12684	  archive_cmds_need_lc=yes
12685        fi
12686        allow_undefined_flag=$lt_save_allow_undefined_flag
12687      else
12688        cat conftest.err 1>&5
12689      fi
12690      $RM conftest*
12691      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12692$as_echo "$archive_cmds_need_lc" >&6; }
12693      ;;
12694    esac
12695  fi
12696  ;;
12697esac
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12856$as_echo_n "checking dynamic linker characteristics... " >&6; }
12857
12858if test "$GCC" = yes; then
12859  case $host_os in
12860    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12861    *) lt_awk_arg="/^libraries:/" ;;
12862  esac
12863  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12864  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12865    # if the path contains ";" then we assume it to be the separator
12866    # otherwise default to the standard path separator (i.e. ":") - it is
12867    # assumed that no part of a normal pathname contains ";" but that should
12868    # okay in the real world where ";" in dirpaths is itself problematic.
12869    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12870  else
12871    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12872  fi
12873  # Ok, now we have the path, separated by spaces, we can step through it
12874  # and add multilib dir if necessary.
12875  lt_tmp_lt_search_path_spec=
12876  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12877  for lt_sys_path in $lt_search_path_spec; do
12878    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12879      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12880    else
12881      test -d "$lt_sys_path" && \
12882	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12883    fi
12884  done
12885  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12886BEGIN {RS=" "; FS="/|\n";} {
12887  lt_foo="";
12888  lt_count=0;
12889  for (lt_i = NF; lt_i > 0; lt_i--) {
12890    if ($lt_i != "" && $lt_i != ".") {
12891      if ($lt_i == "..") {
12892        lt_count++;
12893      } else {
12894        if (lt_count == 0) {
12895          lt_foo="/" $lt_i lt_foo;
12896        } else {
12897          lt_count--;
12898        }
12899      }
12900    }
12901  }
12902  if (lt_foo != "") { lt_freq[lt_foo]++; }
12903  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12904}'`
12905  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12906else
12907  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12908fi
12909library_names_spec=
12910libname_spec='lib$name'
12911soname_spec=
12912shrext_cmds=".so"
12913postinstall_cmds=
12914postuninstall_cmds=
12915finish_cmds=
12916finish_eval=
12917shlibpath_var=
12918shlibpath_overrides_runpath=unknown
12919version_type=none
12920dynamic_linker="$host_os ld.so"
12921sys_lib_dlsearch_path_spec="/lib /usr/lib"
12922need_lib_prefix=unknown
12923hardcode_into_libs=no
12924
12925# when you set need_version to no, make sure it does not cause -set_version
12926# flags to be left without arguments
12927need_version=unknown
12928
12929case $host_os in
12930aix3*)
12931  version_type=linux
12932  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12933  shlibpath_var=LIBPATH
12934
12935  # AIX 3 has no versioning support, so we append a major version to the name.
12936  soname_spec='${libname}${release}${shared_ext}$major'
12937  ;;
12938
12939aix[4-9]*)
12940  version_type=linux
12941  need_lib_prefix=no
12942  need_version=no
12943  hardcode_into_libs=yes
12944  if test "$host_cpu" = ia64; then
12945    # AIX 5 supports IA64
12946    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12947    shlibpath_var=LD_LIBRARY_PATH
12948  else
12949    # With GCC up to 2.95.x, collect2 would create an import file
12950    # for dependence libraries.  The import file would start with
12951    # the line `#! .'.  This would cause the generated library to
12952    # depend on `.', always an invalid library.  This was fixed in
12953    # development snapshots of GCC prior to 3.0.
12954    case $host_os in
12955      aix4 | aix4.[01] | aix4.[01].*)
12956      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12957	   echo ' yes '
12958	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12959	:
12960      else
12961	can_build_shared=no
12962      fi
12963      ;;
12964    esac
12965    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12966    # soname into executable. Probably we can add versioning support to
12967    # collect2, so additional links can be useful in future.
12968    if test "$aix_use_runtimelinking" = yes; then
12969      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12970      # instead of lib<name>.a to let people know that these are not
12971      # typical AIX shared libraries.
12972      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973    else
12974      # We preserve .a as extension for shared libraries through AIX4.2
12975      # and later when we are not doing run time linking.
12976      library_names_spec='${libname}${release}.a $libname.a'
12977      soname_spec='${libname}${release}${shared_ext}$major'
12978    fi
12979    shlibpath_var=LIBPATH
12980  fi
12981  ;;
12982
12983amigaos*)
12984  case $host_cpu in
12985  powerpc)
12986    # Since July 2007 AmigaOS4 officially supports .so libraries.
12987    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12988    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989    ;;
12990  m68k)
12991    library_names_spec='$libname.ixlibrary $libname.a'
12992    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12993    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'
12994    ;;
12995  esac
12996  ;;
12997
12998beos*)
12999  library_names_spec='${libname}${shared_ext}'
13000  dynamic_linker="$host_os ld.so"
13001  shlibpath_var=LIBRARY_PATH
13002  ;;
13003
13004bsdi[45]*)
13005  version_type=linux
13006  need_version=no
13007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008  soname_spec='${libname}${release}${shared_ext}$major'
13009  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13010  shlibpath_var=LD_LIBRARY_PATH
13011  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13012  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13013  # the default ld.so.conf also contains /usr/contrib/lib and
13014  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13015  # libtool to hard-code these into programs
13016  ;;
13017
13018cygwin* | mingw* | pw32* | cegcc*)
13019  version_type=windows
13020  shrext_cmds=".dll"
13021  need_version=no
13022  need_lib_prefix=no
13023
13024  case $GCC,$host_os in
13025  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13026    library_names_spec='$libname.dll.a'
13027    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13028    postinstall_cmds='base_file=`basename \${file}`~
13029      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13030      dldir=$destdir/`dirname \$dlpath`~
13031      test -d \$dldir || mkdir -p \$dldir~
13032      $install_prog $dir/$dlname \$dldir/$dlname~
13033      chmod a+x \$dldir/$dlname~
13034      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13035        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13036      fi'
13037    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13038      dlpath=$dir/\$dldll~
13039       $RM \$dlpath'
13040    shlibpath_overrides_runpath=yes
13041
13042    case $host_os in
13043    cygwin*)
13044      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13045      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13046      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13047      ;;
13048    mingw* | cegcc*)
13049      # MinGW DLLs use traditional 'lib' prefix
13050      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13051      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13052      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13053        # It is most probably a Windows format PATH printed by
13054        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13055        # path with ; separators, and with drive letters. We can handle the
13056        # drive letters (cygwin fileutils understands them), so leave them,
13057        # especially as we might pass files found there to a mingw objdump,
13058        # which wouldn't understand a cygwinified path. Ahh.
13059        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13060      else
13061        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13062      fi
13063      ;;
13064    pw32*)
13065      # pw32 DLLs use 'pw' prefix rather than 'lib'
13066      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13067      ;;
13068    esac
13069    ;;
13070
13071  *)
13072    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13073    ;;
13074  esac
13075  dynamic_linker='Win32 ld.exe'
13076  # FIXME: first we should search . and the directory the executable is in
13077  shlibpath_var=PATH
13078  ;;
13079
13080darwin* | rhapsody*)
13081  dynamic_linker="$host_os dyld"
13082  version_type=darwin
13083  need_lib_prefix=no
13084  need_version=no
13085  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13086  soname_spec='${libname}${release}${major}$shared_ext'
13087  shlibpath_overrides_runpath=yes
13088  shlibpath_var=DYLD_LIBRARY_PATH
13089  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13090
13091  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13092  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13093  ;;
13094
13095dgux*)
13096  version_type=linux
13097  need_lib_prefix=no
13098  need_version=no
13099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13100  soname_spec='${libname}${release}${shared_ext}$major'
13101  shlibpath_var=LD_LIBRARY_PATH
13102  ;;
13103
13104freebsd1*)
13105  dynamic_linker=no
13106  ;;
13107
13108freebsd* | dragonfly*)
13109  # DragonFly does not have aout.  When/if they implement a new
13110  # versioning mechanism, adjust this.
13111  if test -x /usr/bin/objformat; then
13112    objformat=`/usr/bin/objformat`
13113  else
13114    case $host_os in
13115    freebsd[123]*) objformat=aout ;;
13116    *) objformat=elf ;;
13117    esac
13118  fi
13119  version_type=freebsd-$objformat
13120  case $version_type in
13121    freebsd-elf*)
13122      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13123      need_version=no
13124      need_lib_prefix=no
13125      ;;
13126    freebsd-*)
13127      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13128      need_version=yes
13129      ;;
13130  esac
13131  shlibpath_var=LD_LIBRARY_PATH
13132  case $host_os in
13133  freebsd2*)
13134    shlibpath_overrides_runpath=yes
13135    ;;
13136  freebsd3.[01]* | freebsdelf3.[01]*)
13137    shlibpath_overrides_runpath=yes
13138    hardcode_into_libs=yes
13139    ;;
13140  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13141  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13142    shlibpath_overrides_runpath=no
13143    hardcode_into_libs=yes
13144    ;;
13145  *) # from 4.6 on, and DragonFly
13146    shlibpath_overrides_runpath=yes
13147    hardcode_into_libs=yes
13148    ;;
13149  esac
13150  ;;
13151
13152gnu*)
13153  version_type=linux
13154  need_lib_prefix=no
13155  need_version=no
13156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13157  soname_spec='${libname}${release}${shared_ext}$major'
13158  shlibpath_var=LD_LIBRARY_PATH
13159  hardcode_into_libs=yes
13160  ;;
13161
13162hpux9* | hpux10* | hpux11*)
13163  # Give a soname corresponding to the major version so that dld.sl refuses to
13164  # link against other versions.
13165  version_type=sunos
13166  need_lib_prefix=no
13167  need_version=no
13168  case $host_cpu in
13169  ia64*)
13170    shrext_cmds='.so'
13171    hardcode_into_libs=yes
13172    dynamic_linker="$host_os dld.so"
13173    shlibpath_var=LD_LIBRARY_PATH
13174    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13175    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13176    soname_spec='${libname}${release}${shared_ext}$major'
13177    if test "X$HPUX_IA64_MODE" = X32; then
13178      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13179    else
13180      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13181    fi
13182    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13183    ;;
13184  hppa*64*)
13185    shrext_cmds='.sl'
13186    hardcode_into_libs=yes
13187    dynamic_linker="$host_os dld.sl"
13188    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13189    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13190    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191    soname_spec='${libname}${release}${shared_ext}$major'
13192    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13193    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13194    ;;
13195  *)
13196    shrext_cmds='.sl'
13197    dynamic_linker="$host_os dld.sl"
13198    shlibpath_var=SHLIB_PATH
13199    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13200    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201    soname_spec='${libname}${release}${shared_ext}$major'
13202    ;;
13203  esac
13204  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13205  postinstall_cmds='chmod 555 $lib'
13206  ;;
13207
13208interix[3-9]*)
13209  version_type=linux
13210  need_lib_prefix=no
13211  need_version=no
13212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13213  soname_spec='${libname}${release}${shared_ext}$major'
13214  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13215  shlibpath_var=LD_LIBRARY_PATH
13216  shlibpath_overrides_runpath=no
13217  hardcode_into_libs=yes
13218  ;;
13219
13220irix5* | irix6* | nonstopux*)
13221  case $host_os in
13222    nonstopux*) version_type=nonstopux ;;
13223    *)
13224	if test "$lt_cv_prog_gnu_ld" = yes; then
13225		version_type=linux
13226	else
13227		version_type=irix
13228	fi ;;
13229  esac
13230  need_lib_prefix=no
13231  need_version=no
13232  soname_spec='${libname}${release}${shared_ext}$major'
13233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13234  case $host_os in
13235  irix5* | nonstopux*)
13236    libsuff= shlibsuff=
13237    ;;
13238  *)
13239    case $LD in # libtool.m4 will add one of these switches to LD
13240    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13241      libsuff= shlibsuff= libmagic=32-bit;;
13242    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13243      libsuff=32 shlibsuff=N32 libmagic=N32;;
13244    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13245      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13246    *) libsuff= shlibsuff= libmagic=never-match;;
13247    esac
13248    ;;
13249  esac
13250  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13251  shlibpath_overrides_runpath=no
13252  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13253  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13254  hardcode_into_libs=yes
13255  ;;
13256
13257# No shared lib support for Linux oldld, aout, or coff.
13258linux*oldld* | linux*aout* | linux*coff*)
13259  dynamic_linker=no
13260  ;;
13261
13262# This must be Linux ELF.
13263linux* | k*bsd*-gnu)
13264  version_type=linux
13265  need_lib_prefix=no
13266  need_version=no
13267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268  soname_spec='${libname}${release}${shared_ext}$major'
13269  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13270  shlibpath_var=LD_LIBRARY_PATH
13271  shlibpath_overrides_runpath=no
13272  # Some binutils ld are patched to set DT_RUNPATH
13273  save_LDFLAGS=$LDFLAGS
13274  save_libdir=$libdir
13275  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13276       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13277  cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h.  */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h.  */
13283
13284int
13285main ()
13286{
13287
13288  ;
13289  return 0;
13290}
13291_ACEOF
13292rm -f conftest.$ac_objext conftest$ac_exeext
13293if { (ac_try="$ac_link"
13294case "(($ac_try" in
13295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296  *) ac_try_echo=$ac_try;;
13297esac
13298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13299$as_echo "$ac_try_echo") >&5
13300  (eval "$ac_link") 2>conftest.er1
13301  ac_status=$?
13302  grep -v '^ *+' conftest.er1 >conftest.err
13303  rm -f conftest.er1
13304  cat conftest.err >&5
13305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306  (exit $ac_status); } && {
13307	 test -z "$ac_c_werror_flag" ||
13308	 test ! -s conftest.err
13309       } && test -s conftest$ac_exeext && {
13310	 test "$cross_compiling" = yes ||
13311	 $as_test_x conftest$ac_exeext
13312       }; then
13313  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13314  shlibpath_overrides_runpath=yes
13315fi
13316
13317else
13318  $as_echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321
13322fi
13323
13324rm -rf conftest.dSYM
13325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13326      conftest$ac_exeext conftest.$ac_ext
13327  LDFLAGS=$save_LDFLAGS
13328  libdir=$save_libdir
13329
13330  # This implies no fast_install, which is unacceptable.
13331  # Some rework will be needed to allow for fast_install
13332  # before this can be enabled.
13333  hardcode_into_libs=yes
13334
13335  # Append ld.so.conf contents to the search path
13336  if test -f /etc/ld.so.conf; then
13337    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' ' '`
13338    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13339  fi
13340
13341  # We used to test for /lib/ld.so.1 and disable shared libraries on
13342  # powerpc, because MkLinux only supported shared libraries with the
13343  # GNU dynamic linker.  Since this was broken with cross compilers,
13344  # most powerpc-linux boxes support dynamic linking these days and
13345  # people can always --disable-shared, the test was removed, and we
13346  # assume the GNU/Linux dynamic linker is in use.
13347  dynamic_linker='GNU/Linux ld.so'
13348  ;;
13349
13350netbsd*)
13351  version_type=sunos
13352  need_lib_prefix=no
13353  need_version=no
13354  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13356    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13357    dynamic_linker='NetBSD (a.out) ld.so'
13358  else
13359    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13360    soname_spec='${libname}${release}${shared_ext}$major'
13361    dynamic_linker='NetBSD ld.elf_so'
13362  fi
13363  shlibpath_var=LD_LIBRARY_PATH
13364  shlibpath_overrides_runpath=yes
13365  hardcode_into_libs=yes
13366  ;;
13367
13368newsos6)
13369  version_type=linux
13370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371  shlibpath_var=LD_LIBRARY_PATH
13372  shlibpath_overrides_runpath=yes
13373  ;;
13374
13375*nto* | *qnx*)
13376  version_type=qnx
13377  need_lib_prefix=no
13378  need_version=no
13379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380  soname_spec='${libname}${release}${shared_ext}$major'
13381  shlibpath_var=LD_LIBRARY_PATH
13382  shlibpath_overrides_runpath=no
13383  hardcode_into_libs=yes
13384  dynamic_linker='ldqnx.so'
13385  ;;
13386
13387openbsd*)
13388  version_type=sunos
13389  sys_lib_dlsearch_path_spec="/usr/lib"
13390  need_lib_prefix=no
13391  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13392  case $host_os in
13393    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13394    *)				need_version=no  ;;
13395  esac
13396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13397  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13398  shlibpath_var=LD_LIBRARY_PATH
13399  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13400    case $host_os in
13401      openbsd2.[89] | openbsd2.[89].*)
13402	shlibpath_overrides_runpath=no
13403	;;
13404      *)
13405	shlibpath_overrides_runpath=yes
13406	;;
13407      esac
13408  else
13409    shlibpath_overrides_runpath=yes
13410  fi
13411  ;;
13412
13413os2*)
13414  libname_spec='$name'
13415  shrext_cmds=".dll"
13416  need_lib_prefix=no
13417  library_names_spec='$libname${shared_ext} $libname.a'
13418  dynamic_linker='OS/2 ld.exe'
13419  shlibpath_var=LIBPATH
13420  ;;
13421
13422osf3* | osf4* | osf5*)
13423  version_type=osf
13424  need_lib_prefix=no
13425  need_version=no
13426  soname_spec='${libname}${release}${shared_ext}$major'
13427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13428  shlibpath_var=LD_LIBRARY_PATH
13429  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13430  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13431  ;;
13432
13433rdos*)
13434  dynamic_linker=no
13435  ;;
13436
13437solaris*)
13438  version_type=linux
13439  need_lib_prefix=no
13440  need_version=no
13441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442  soname_spec='${libname}${release}${shared_ext}$major'
13443  shlibpath_var=LD_LIBRARY_PATH
13444  shlibpath_overrides_runpath=yes
13445  hardcode_into_libs=yes
13446  # ldd complains unless libraries are executable
13447  postinstall_cmds='chmod +x $lib'
13448  ;;
13449
13450sunos4*)
13451  version_type=sunos
13452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13453  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13454  shlibpath_var=LD_LIBRARY_PATH
13455  shlibpath_overrides_runpath=yes
13456  if test "$with_gnu_ld" = yes; then
13457    need_lib_prefix=no
13458  fi
13459  need_version=yes
13460  ;;
13461
13462sysv4 | sysv4.3*)
13463  version_type=linux
13464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465  soname_spec='${libname}${release}${shared_ext}$major'
13466  shlibpath_var=LD_LIBRARY_PATH
13467  case $host_vendor in
13468    sni)
13469      shlibpath_overrides_runpath=no
13470      need_lib_prefix=no
13471      runpath_var=LD_RUN_PATH
13472      ;;
13473    siemens)
13474      need_lib_prefix=no
13475      ;;
13476    motorola)
13477      need_lib_prefix=no
13478      need_version=no
13479      shlibpath_overrides_runpath=no
13480      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13481      ;;
13482  esac
13483  ;;
13484
13485sysv4*MP*)
13486  if test -d /usr/nec ;then
13487    version_type=linux
13488    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13489    soname_spec='$libname${shared_ext}.$major'
13490    shlibpath_var=LD_LIBRARY_PATH
13491  fi
13492  ;;
13493
13494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13495  version_type=freebsd-elf
13496  need_lib_prefix=no
13497  need_version=no
13498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13499  soname_spec='${libname}${release}${shared_ext}$major'
13500  shlibpath_var=LD_LIBRARY_PATH
13501  shlibpath_overrides_runpath=yes
13502  hardcode_into_libs=yes
13503  if test "$with_gnu_ld" = yes; then
13504    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13505  else
13506    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13507    case $host_os in
13508      sco3.2v5*)
13509        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13510	;;
13511    esac
13512  fi
13513  sys_lib_dlsearch_path_spec='/usr/lib'
13514  ;;
13515
13516tpf*)
13517  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13518  version_type=linux
13519  need_lib_prefix=no
13520  need_version=no
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  shlibpath_overrides_runpath=no
13524  hardcode_into_libs=yes
13525  ;;
13526
13527uts4*)
13528  version_type=linux
13529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530  soname_spec='${libname}${release}${shared_ext}$major'
13531  shlibpath_var=LD_LIBRARY_PATH
13532  ;;
13533
13534*)
13535  dynamic_linker=no
13536  ;;
13537esac
13538{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13539$as_echo "$dynamic_linker" >&6; }
13540test "$dynamic_linker" = no && can_build_shared=no
13541
13542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13543if test "$GCC" = yes; then
13544  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13545fi
13546
13547if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13548  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13549fi
13550if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13551  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13552fi
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13641$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13642hardcode_action=
13643if test -n "$hardcode_libdir_flag_spec" ||
13644   test -n "$runpath_var" ||
13645   test "X$hardcode_automatic" = "Xyes" ; then
13646
13647  # We can hardcode non-existent directories.
13648  if test "$hardcode_direct" != no &&
13649     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13650     # have to relink, otherwise we might link with an installed library
13651     # when we should be linking with a yet-to-be-installed one
13652     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13653     test "$hardcode_minus_L" != no; then
13654    # Linking always hardcodes the temporary library directory.
13655    hardcode_action=relink
13656  else
13657    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13658    hardcode_action=immediate
13659  fi
13660else
13661  # We cannot hardcode anything, or else we can only hardcode existing
13662  # directories.
13663  hardcode_action=unsupported
13664fi
13665{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13666$as_echo "$hardcode_action" >&6; }
13667
13668if test "$hardcode_action" = relink ||
13669   test "$inherit_rpath" = yes; then
13670  # Fast installation is not supported
13671  enable_fast_install=no
13672elif test "$shlibpath_overrides_runpath" = yes ||
13673     test "$enable_shared" = no; then
13674  # Fast installation is not necessary
13675  enable_fast_install=needless
13676fi
13677
13678
13679
13680
13681
13682
13683  if test "x$enable_dlopen" != xyes; then
13684  enable_dlopen=unknown
13685  enable_dlopen_self=unknown
13686  enable_dlopen_self_static=unknown
13687else
13688  lt_cv_dlopen=no
13689  lt_cv_dlopen_libs=
13690
13691  case $host_os in
13692  beos*)
13693    lt_cv_dlopen="load_add_on"
13694    lt_cv_dlopen_libs=
13695    lt_cv_dlopen_self=yes
13696    ;;
13697
13698  mingw* | pw32* | cegcc*)
13699    lt_cv_dlopen="LoadLibrary"
13700    lt_cv_dlopen_libs=
13701    ;;
13702
13703  cygwin*)
13704    lt_cv_dlopen="dlopen"
13705    lt_cv_dlopen_libs=
13706    ;;
13707
13708  darwin*)
13709  # if libdl is installed we need to link against it
13710    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13711$as_echo_n "checking for dlopen in -ldl... " >&6; }
13712if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13713  $as_echo_n "(cached) " >&6
13714else
13715  ac_check_lib_save_LIBS=$LIBS
13716LIBS="-ldl  $LIBS"
13717cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h.  */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h.  */
13723
13724/* Override any GCC internal prototype to avoid an error.
13725   Use char because int might match the return type of a GCC
13726   builtin and then its argument prototype would still apply.  */
13727#ifdef __cplusplus
13728extern "C"
13729#endif
13730char dlopen ();
13731int
13732main ()
13733{
13734return dlopen ();
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739rm -f conftest.$ac_objext conftest$ac_exeext
13740if { (ac_try="$ac_link"
13741case "(($ac_try" in
13742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743  *) ac_try_echo=$ac_try;;
13744esac
13745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13746$as_echo "$ac_try_echo") >&5
13747  (eval "$ac_link") 2>conftest.er1
13748  ac_status=$?
13749  grep -v '^ *+' conftest.er1 >conftest.err
13750  rm -f conftest.er1
13751  cat conftest.err >&5
13752  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753  (exit $ac_status); } && {
13754	 test -z "$ac_c_werror_flag" ||
13755	 test ! -s conftest.err
13756       } && test -s conftest$ac_exeext && {
13757	 test "$cross_compiling" = yes ||
13758	 $as_test_x conftest$ac_exeext
13759       }; then
13760  ac_cv_lib_dl_dlopen=yes
13761else
13762  $as_echo "$as_me: failed program was:" >&5
13763sed 's/^/| /' conftest.$ac_ext >&5
13764
13765	ac_cv_lib_dl_dlopen=no
13766fi
13767
13768rm -rf conftest.dSYM
13769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13770      conftest$ac_exeext conftest.$ac_ext
13771LIBS=$ac_check_lib_save_LIBS
13772fi
13773{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13774$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13775if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13776  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13777else
13778
13779    lt_cv_dlopen="dyld"
13780    lt_cv_dlopen_libs=
13781    lt_cv_dlopen_self=yes
13782
13783fi
13784
13785    ;;
13786
13787  *)
13788    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13789$as_echo_n "checking for shl_load... " >&6; }
13790if test "${ac_cv_func_shl_load+set}" = set; then
13791  $as_echo_n "(cached) " >&6
13792else
13793  cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h.  */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h.  */
13799/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13801#define shl_load innocuous_shl_load
13802
13803/* System header to define __stub macros and hopefully few prototypes,
13804    which can conflict with char shl_load (); below.
13805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13806    <limits.h> exists even on freestanding compilers.  */
13807
13808#ifdef __STDC__
13809# include <limits.h>
13810#else
13811# include <assert.h>
13812#endif
13813
13814#undef shl_load
13815
13816/* Override any GCC internal prototype to avoid an error.
13817   Use char because int might match the return type of a GCC
13818   builtin and then its argument prototype would still apply.  */
13819#ifdef __cplusplus
13820extern "C"
13821#endif
13822char shl_load ();
13823/* The GNU C library defines this for functions which it implements
13824    to always fail with ENOSYS.  Some functions are actually named
13825    something starting with __ and the normal name is an alias.  */
13826#if defined __stub_shl_load || defined __stub___shl_load
13827choke me
13828#endif
13829
13830int
13831main ()
13832{
13833return shl_load ();
13834  ;
13835  return 0;
13836}
13837_ACEOF
13838rm -f conftest.$ac_objext conftest$ac_exeext
13839if { (ac_try="$ac_link"
13840case "(($ac_try" in
13841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842  *) ac_try_echo=$ac_try;;
13843esac
13844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13845$as_echo "$ac_try_echo") >&5
13846  (eval "$ac_link") 2>conftest.er1
13847  ac_status=$?
13848  grep -v '^ *+' conftest.er1 >conftest.err
13849  rm -f conftest.er1
13850  cat conftest.err >&5
13851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852  (exit $ac_status); } && {
13853	 test -z "$ac_c_werror_flag" ||
13854	 test ! -s conftest.err
13855       } && test -s conftest$ac_exeext && {
13856	 test "$cross_compiling" = yes ||
13857	 $as_test_x conftest$ac_exeext
13858       }; then
13859  ac_cv_func_shl_load=yes
13860else
13861  $as_echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864	ac_cv_func_shl_load=no
13865fi
13866
13867rm -rf conftest.dSYM
13868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13869      conftest$ac_exeext conftest.$ac_ext
13870fi
13871{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13872$as_echo "$ac_cv_func_shl_load" >&6; }
13873if test "x$ac_cv_func_shl_load" = x""yes; then
13874  lt_cv_dlopen="shl_load"
13875else
13876  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13877$as_echo_n "checking for shl_load in -ldld... " >&6; }
13878if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13879  $as_echo_n "(cached) " >&6
13880else
13881  ac_check_lib_save_LIBS=$LIBS
13882LIBS="-ldld  $LIBS"
13883cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h.  */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h.  */
13889
13890/* Override any GCC internal prototype to avoid an error.
13891   Use char because int might match the return type of a GCC
13892   builtin and then its argument prototype would still apply.  */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char shl_load ();
13897int
13898main ()
13899{
13900return shl_load ();
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext conftest$ac_exeext
13906if { (ac_try="$ac_link"
13907case "(($ac_try" in
13908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909  *) ac_try_echo=$ac_try;;
13910esac
13911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13912$as_echo "$ac_try_echo") >&5
13913  (eval "$ac_link") 2>conftest.er1
13914  ac_status=$?
13915  grep -v '^ *+' conftest.er1 >conftest.err
13916  rm -f conftest.er1
13917  cat conftest.err >&5
13918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919  (exit $ac_status); } && {
13920	 test -z "$ac_c_werror_flag" ||
13921	 test ! -s conftest.err
13922       } && test -s conftest$ac_exeext && {
13923	 test "$cross_compiling" = yes ||
13924	 $as_test_x conftest$ac_exeext
13925       }; then
13926  ac_cv_lib_dld_shl_load=yes
13927else
13928  $as_echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931	ac_cv_lib_dld_shl_load=no
13932fi
13933
13934rm -rf conftest.dSYM
13935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13936      conftest$ac_exeext conftest.$ac_ext
13937LIBS=$ac_check_lib_save_LIBS
13938fi
13939{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13940$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13941if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13942  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13943else
13944  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13945$as_echo_n "checking for dlopen... " >&6; }
13946if test "${ac_cv_func_dlopen+set}" = set; then
13947  $as_echo_n "(cached) " >&6
13948else
13949  cat >conftest.$ac_ext <<_ACEOF
13950/* confdefs.h.  */
13951_ACEOF
13952cat confdefs.h >>conftest.$ac_ext
13953cat >>conftest.$ac_ext <<_ACEOF
13954/* end confdefs.h.  */
13955/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13956   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13957#define dlopen innocuous_dlopen
13958
13959/* System header to define __stub macros and hopefully few prototypes,
13960    which can conflict with char dlopen (); below.
13961    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13962    <limits.h> exists even on freestanding compilers.  */
13963
13964#ifdef __STDC__
13965# include <limits.h>
13966#else
13967# include <assert.h>
13968#endif
13969
13970#undef dlopen
13971
13972/* Override any GCC internal prototype to avoid an error.
13973   Use char because int might match the return type of a GCC
13974   builtin and then its argument prototype would still apply.  */
13975#ifdef __cplusplus
13976extern "C"
13977#endif
13978char dlopen ();
13979/* The GNU C library defines this for functions which it implements
13980    to always fail with ENOSYS.  Some functions are actually named
13981    something starting with __ and the normal name is an alias.  */
13982#if defined __stub_dlopen || defined __stub___dlopen
13983choke me
13984#endif
13985
13986int
13987main ()
13988{
13989return dlopen ();
13990  ;
13991  return 0;
13992}
13993_ACEOF
13994rm -f conftest.$ac_objext conftest$ac_exeext
13995if { (ac_try="$ac_link"
13996case "(($ac_try" in
13997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998  *) ac_try_echo=$ac_try;;
13999esac
14000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14001$as_echo "$ac_try_echo") >&5
14002  (eval "$ac_link") 2>conftest.er1
14003  ac_status=$?
14004  grep -v '^ *+' conftest.er1 >conftest.err
14005  rm -f conftest.er1
14006  cat conftest.err >&5
14007  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008  (exit $ac_status); } && {
14009	 test -z "$ac_c_werror_flag" ||
14010	 test ! -s conftest.err
14011       } && test -s conftest$ac_exeext && {
14012	 test "$cross_compiling" = yes ||
14013	 $as_test_x conftest$ac_exeext
14014       }; then
14015  ac_cv_func_dlopen=yes
14016else
14017  $as_echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020	ac_cv_func_dlopen=no
14021fi
14022
14023rm -rf conftest.dSYM
14024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14025      conftest$ac_exeext conftest.$ac_ext
14026fi
14027{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14028$as_echo "$ac_cv_func_dlopen" >&6; }
14029if test "x$ac_cv_func_dlopen" = x""yes; then
14030  lt_cv_dlopen="dlopen"
14031else
14032  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14033$as_echo_n "checking for dlopen in -ldl... " >&6; }
14034if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14035  $as_echo_n "(cached) " >&6
14036else
14037  ac_check_lib_save_LIBS=$LIBS
14038LIBS="-ldl  $LIBS"
14039cat >conftest.$ac_ext <<_ACEOF
14040/* confdefs.h.  */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h.  */
14045
14046/* Override any GCC internal prototype to avoid an error.
14047   Use char because int might match the return type of a GCC
14048   builtin and then its argument prototype would still apply.  */
14049#ifdef __cplusplus
14050extern "C"
14051#endif
14052char dlopen ();
14053int
14054main ()
14055{
14056return dlopen ();
14057  ;
14058  return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext conftest$ac_exeext
14062if { (ac_try="$ac_link"
14063case "(($ac_try" in
14064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065  *) ac_try_echo=$ac_try;;
14066esac
14067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14068$as_echo "$ac_try_echo") >&5
14069  (eval "$ac_link") 2>conftest.er1
14070  ac_status=$?
14071  grep -v '^ *+' conftest.er1 >conftest.err
14072  rm -f conftest.er1
14073  cat conftest.err >&5
14074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075  (exit $ac_status); } && {
14076	 test -z "$ac_c_werror_flag" ||
14077	 test ! -s conftest.err
14078       } && test -s conftest$ac_exeext && {
14079	 test "$cross_compiling" = yes ||
14080	 $as_test_x conftest$ac_exeext
14081       }; then
14082  ac_cv_lib_dl_dlopen=yes
14083else
14084  $as_echo "$as_me: failed program was:" >&5
14085sed 's/^/| /' conftest.$ac_ext >&5
14086
14087	ac_cv_lib_dl_dlopen=no
14088fi
14089
14090rm -rf conftest.dSYM
14091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14092      conftest$ac_exeext conftest.$ac_ext
14093LIBS=$ac_check_lib_save_LIBS
14094fi
14095{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14097if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14098  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14099else
14100  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14101$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14102if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14103  $as_echo_n "(cached) " >&6
14104else
14105  ac_check_lib_save_LIBS=$LIBS
14106LIBS="-lsvld  $LIBS"
14107cat >conftest.$ac_ext <<_ACEOF
14108/* confdefs.h.  */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
14112/* end confdefs.h.  */
14113
14114/* Override any GCC internal prototype to avoid an error.
14115   Use char because int might match the return type of a GCC
14116   builtin and then its argument prototype would still apply.  */
14117#ifdef __cplusplus
14118extern "C"
14119#endif
14120char dlopen ();
14121int
14122main ()
14123{
14124return dlopen ();
14125  ;
14126  return 0;
14127}
14128_ACEOF
14129rm -f conftest.$ac_objext conftest$ac_exeext
14130if { (ac_try="$ac_link"
14131case "(($ac_try" in
14132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133  *) ac_try_echo=$ac_try;;
14134esac
14135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14136$as_echo "$ac_try_echo") >&5
14137  (eval "$ac_link") 2>conftest.er1
14138  ac_status=$?
14139  grep -v '^ *+' conftest.er1 >conftest.err
14140  rm -f conftest.er1
14141  cat conftest.err >&5
14142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143  (exit $ac_status); } && {
14144	 test -z "$ac_c_werror_flag" ||
14145	 test ! -s conftest.err
14146       } && test -s conftest$ac_exeext && {
14147	 test "$cross_compiling" = yes ||
14148	 $as_test_x conftest$ac_exeext
14149       }; then
14150  ac_cv_lib_svld_dlopen=yes
14151else
14152  $as_echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155	ac_cv_lib_svld_dlopen=no
14156fi
14157
14158rm -rf conftest.dSYM
14159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14160      conftest$ac_exeext conftest.$ac_ext
14161LIBS=$ac_check_lib_save_LIBS
14162fi
14163{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14164$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14165if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14166  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14167else
14168  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14169$as_echo_n "checking for dld_link in -ldld... " >&6; }
14170if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14171  $as_echo_n "(cached) " >&6
14172else
14173  ac_check_lib_save_LIBS=$LIBS
14174LIBS="-ldld  $LIBS"
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h.  */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h.  */
14181
14182/* Override any GCC internal prototype to avoid an error.
14183   Use char because int might match the return type of a GCC
14184   builtin and then its argument prototype would still apply.  */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char dld_link ();
14189int
14190main ()
14191{
14192return dld_link ();
14193  ;
14194  return 0;
14195}
14196_ACEOF
14197rm -f conftest.$ac_objext conftest$ac_exeext
14198if { (ac_try="$ac_link"
14199case "(($ac_try" in
14200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201  *) ac_try_echo=$ac_try;;
14202esac
14203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204$as_echo "$ac_try_echo") >&5
14205  (eval "$ac_link") 2>conftest.er1
14206  ac_status=$?
14207  grep -v '^ *+' conftest.er1 >conftest.err
14208  rm -f conftest.er1
14209  cat conftest.err >&5
14210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211  (exit $ac_status); } && {
14212	 test -z "$ac_c_werror_flag" ||
14213	 test ! -s conftest.err
14214       } && test -s conftest$ac_exeext && {
14215	 test "$cross_compiling" = yes ||
14216	 $as_test_x conftest$ac_exeext
14217       }; then
14218  ac_cv_lib_dld_dld_link=yes
14219else
14220  $as_echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223	ac_cv_lib_dld_dld_link=no
14224fi
14225
14226rm -rf conftest.dSYM
14227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14228      conftest$ac_exeext conftest.$ac_ext
14229LIBS=$ac_check_lib_save_LIBS
14230fi
14231{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14232$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14233if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14234  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14235fi
14236
14237
14238fi
14239
14240
14241fi
14242
14243
14244fi
14245
14246
14247fi
14248
14249
14250fi
14251
14252    ;;
14253  esac
14254
14255  if test "x$lt_cv_dlopen" != xno; then
14256    enable_dlopen=yes
14257  else
14258    enable_dlopen=no
14259  fi
14260
14261  case $lt_cv_dlopen in
14262  dlopen)
14263    save_CPPFLAGS="$CPPFLAGS"
14264    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14265
14266    save_LDFLAGS="$LDFLAGS"
14267    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14268
14269    save_LIBS="$LIBS"
14270    LIBS="$lt_cv_dlopen_libs $LIBS"
14271
14272    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14273$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14274if test "${lt_cv_dlopen_self+set}" = set; then
14275  $as_echo_n "(cached) " >&6
14276else
14277  	  if test "$cross_compiling" = yes; then :
14278  lt_cv_dlopen_self=cross
14279else
14280  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14281  lt_status=$lt_dlunknown
14282  cat > conftest.$ac_ext <<_LT_EOF
14283#line 14283 "configure"
14284#include "confdefs.h"
14285
14286#if HAVE_DLFCN_H
14287#include <dlfcn.h>
14288#endif
14289
14290#include <stdio.h>
14291
14292#ifdef RTLD_GLOBAL
14293#  define LT_DLGLOBAL		RTLD_GLOBAL
14294#else
14295#  ifdef DL_GLOBAL
14296#    define LT_DLGLOBAL		DL_GLOBAL
14297#  else
14298#    define LT_DLGLOBAL		0
14299#  endif
14300#endif
14301
14302/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14303   find out it does not work in some platform. */
14304#ifndef LT_DLLAZY_OR_NOW
14305#  ifdef RTLD_LAZY
14306#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14307#  else
14308#    ifdef DL_LAZY
14309#      define LT_DLLAZY_OR_NOW		DL_LAZY
14310#    else
14311#      ifdef RTLD_NOW
14312#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14313#      else
14314#        ifdef DL_NOW
14315#          define LT_DLLAZY_OR_NOW	DL_NOW
14316#        else
14317#          define LT_DLLAZY_OR_NOW	0
14318#        endif
14319#      endif
14320#    endif
14321#  endif
14322#endif
14323
14324void fnord() { int i=42;}
14325int main ()
14326{
14327  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14328  int status = $lt_dlunknown;
14329
14330  if (self)
14331    {
14332      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14333      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14334      /* dlclose (self); */
14335    }
14336  else
14337    puts (dlerror ());
14338
14339  return status;
14340}
14341_LT_EOF
14342  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343  (eval $ac_link) 2>&5
14344  ac_status=$?
14345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14347    (./conftest; exit; ) >&5 2>/dev/null
14348    lt_status=$?
14349    case x$lt_status in
14350      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14351      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14352      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14353    esac
14354  else :
14355    # compilation failed
14356    lt_cv_dlopen_self=no
14357  fi
14358fi
14359rm -fr conftest*
14360
14361
14362fi
14363{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14364$as_echo "$lt_cv_dlopen_self" >&6; }
14365
14366    if test "x$lt_cv_dlopen_self" = xyes; then
14367      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14368      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14369$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14370if test "${lt_cv_dlopen_self_static+set}" = set; then
14371  $as_echo_n "(cached) " >&6
14372else
14373  	  if test "$cross_compiling" = yes; then :
14374  lt_cv_dlopen_self_static=cross
14375else
14376  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14377  lt_status=$lt_dlunknown
14378  cat > conftest.$ac_ext <<_LT_EOF
14379#line 14379 "configure"
14380#include "confdefs.h"
14381
14382#if HAVE_DLFCN_H
14383#include <dlfcn.h>
14384#endif
14385
14386#include <stdio.h>
14387
14388#ifdef RTLD_GLOBAL
14389#  define LT_DLGLOBAL		RTLD_GLOBAL
14390#else
14391#  ifdef DL_GLOBAL
14392#    define LT_DLGLOBAL		DL_GLOBAL
14393#  else
14394#    define LT_DLGLOBAL		0
14395#  endif
14396#endif
14397
14398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14399   find out it does not work in some platform. */
14400#ifndef LT_DLLAZY_OR_NOW
14401#  ifdef RTLD_LAZY
14402#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14403#  else
14404#    ifdef DL_LAZY
14405#      define LT_DLLAZY_OR_NOW		DL_LAZY
14406#    else
14407#      ifdef RTLD_NOW
14408#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14409#      else
14410#        ifdef DL_NOW
14411#          define LT_DLLAZY_OR_NOW	DL_NOW
14412#        else
14413#          define LT_DLLAZY_OR_NOW	0
14414#        endif
14415#      endif
14416#    endif
14417#  endif
14418#endif
14419
14420void fnord() { int i=42;}
14421int main ()
14422{
14423  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14424  int status = $lt_dlunknown;
14425
14426  if (self)
14427    {
14428      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14429      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14430      /* dlclose (self); */
14431    }
14432  else
14433    puts (dlerror ());
14434
14435  return status;
14436}
14437_LT_EOF
14438  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439  (eval $ac_link) 2>&5
14440  ac_status=$?
14441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14443    (./conftest; exit; ) >&5 2>/dev/null
14444    lt_status=$?
14445    case x$lt_status in
14446      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14447      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14448      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14449    esac
14450  else :
14451    # compilation failed
14452    lt_cv_dlopen_self_static=no
14453  fi
14454fi
14455rm -fr conftest*
14456
14457
14458fi
14459{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14460$as_echo "$lt_cv_dlopen_self_static" >&6; }
14461    fi
14462
14463    CPPFLAGS="$save_CPPFLAGS"
14464    LDFLAGS="$save_LDFLAGS"
14465    LIBS="$save_LIBS"
14466    ;;
14467  esac
14468
14469  case $lt_cv_dlopen_self in
14470  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14471  *) enable_dlopen_self=unknown ;;
14472  esac
14473
14474  case $lt_cv_dlopen_self_static in
14475  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14476  *) enable_dlopen_self_static=unknown ;;
14477  esac
14478fi
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496striplib=
14497old_striplib=
14498{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14499$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14500if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14501  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14502  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14503  { $as_echo "$as_me:$LINENO: result: yes" >&5
14504$as_echo "yes" >&6; }
14505else
14506# FIXME - insert some real tests, host_os isn't really good enough
14507  case $host_os in
14508  darwin*)
14509    if test -n "$STRIP" ; then
14510      striplib="$STRIP -x"
14511      old_striplib="$STRIP -S"
14512      { $as_echo "$as_me:$LINENO: result: yes" >&5
14513$as_echo "yes" >&6; }
14514    else
14515      { $as_echo "$as_me:$LINENO: result: no" >&5
14516$as_echo "no" >&6; }
14517    fi
14518    ;;
14519  *)
14520    { $as_echo "$as_me:$LINENO: result: no" >&5
14521$as_echo "no" >&6; }
14522    ;;
14523  esac
14524fi
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537  # Report which library types will actually be built
14538  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14539$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14540  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14541$as_echo "$can_build_shared" >&6; }
14542
14543  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14544$as_echo_n "checking whether to build shared libraries... " >&6; }
14545  test "$can_build_shared" = "no" && enable_shared=no
14546
14547  # On AIX, shared libraries and static libraries use the same namespace, and
14548  # are all built from PIC.
14549  case $host_os in
14550  aix3*)
14551    test "$enable_shared" = yes && enable_static=no
14552    if test -n "$RANLIB"; then
14553      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14554      postinstall_cmds='$RANLIB $lib'
14555    fi
14556    ;;
14557
14558  aix[4-9]*)
14559    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14560      test "$enable_shared" = yes && enable_static=no
14561    fi
14562    ;;
14563  esac
14564  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14565$as_echo "$enable_shared" >&6; }
14566
14567  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14568$as_echo_n "checking whether to build static libraries... " >&6; }
14569  # Make sure either enable_shared or enable_static is yes.
14570  test "$enable_shared" = yes || enable_static=yes
14571  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14572$as_echo "$enable_static" >&6; }
14573
14574
14575
14576
14577fi
14578ac_ext=c
14579ac_cpp='$CPP $CPPFLAGS'
14580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582ac_compiler_gnu=$ac_cv_c_compiler_gnu
14583
14584CC="$lt_save_CC"
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598        ac_config_commands="$ac_config_commands libtool"
14599
14600
14601
14602
14603# Only expand once:
14604
14605
14606
14607# Select memory manager depending on user input.
14608# If no "-enable-maxmem", use jmemnobs
14609MEMORYMGR='jmemnobs'
14610MAXMEM="no"
14611# Check whether --enable-maxmem was given.
14612if test "${enable_maxmem+set}" = set; then
14613  enableval=$enable_maxmem; MAXMEM="$enableval"
14614fi
14615
14616if test "x$MAXMEM" = xyes; then
14617  MAXMEM=1
14618fi
14619if test "x$MAXMEM" != xno; then
14620  if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
14621    { { $as_echo "$as_me:$LINENO: error: non-numeric argument to --enable-maxmem" >&5
14622$as_echo "$as_me: error: non-numeric argument to --enable-maxmem" >&2;}
14623   { (exit 1); exit 1; }; }
14624  fi
14625  DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
14626
14627cat >>confdefs.h <<_ACEOF
14628#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
14629_ACEOF
14630
14631{ $as_echo "$as_me:$LINENO: checking for 'tmpfile()'" >&5
14632$as_echo_n "checking for 'tmpfile()'... " >&6; }
14633cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h.  */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h.  */
14639#include <stdio.h>
14640int
14641main ()
14642{
14643 FILE * tfile = tmpfile();
14644  ;
14645  return 0;
14646}
14647_ACEOF
14648rm -f conftest.$ac_objext conftest$ac_exeext
14649if { (ac_try="$ac_link"
14650case "(($ac_try" in
14651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652  *) ac_try_echo=$ac_try;;
14653esac
14654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655$as_echo "$ac_try_echo") >&5
14656  (eval "$ac_link") 2>conftest.er1
14657  ac_status=$?
14658  grep -v '^ *+' conftest.er1 >conftest.err
14659  rm -f conftest.er1
14660  cat conftest.err >&5
14661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662  (exit $ac_status); } && {
14663	 test -z "$ac_c_werror_flag" ||
14664	 test ! -s conftest.err
14665       } && test -s conftest$ac_exeext && {
14666	 test "$cross_compiling" = yes ||
14667	 $as_test_x conftest$ac_exeext
14668       }; then
14669  { $as_echo "$as_me:$LINENO: result: yes" >&5
14670$as_echo "yes" >&6; }
14671MEMORYMGR='jmemansi'
14672else
14673  $as_echo "$as_me: failed program was:" >&5
14674sed 's/^/| /' conftest.$ac_ext >&5
14675
14676	{ $as_echo "$as_me:$LINENO: result: no" >&5
14677$as_echo "no" >&6; }
14678MEMORYMGR='jmemname'
14679
14680# Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
14681
14682cat >>confdefs.h <<\_ACEOF
14683#define NEED_SIGNAL_CATCHER 1
14684_ACEOF
14685
14686{ $as_echo "$as_me:$LINENO: checking for 'mktemp()'" >&5
14687$as_echo_n "checking for 'mktemp()'... " >&6; }
14688cat >conftest.$ac_ext <<_ACEOF
14689/* confdefs.h.  */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h.  */
14694
14695int
14696main ()
14697{
14698 char fname[80]; mktemp(fname);
14699  ;
14700  return 0;
14701}
14702_ACEOF
14703rm -f conftest.$ac_objext conftest$ac_exeext
14704if { (ac_try="$ac_link"
14705case "(($ac_try" in
14706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707  *) ac_try_echo=$ac_try;;
14708esac
14709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710$as_echo "$ac_try_echo") >&5
14711  (eval "$ac_link") 2>conftest.er1
14712  ac_status=$?
14713  grep -v '^ *+' conftest.er1 >conftest.err
14714  rm -f conftest.er1
14715  cat conftest.err >&5
14716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717  (exit $ac_status); } && {
14718	 test -z "$ac_c_werror_flag" ||
14719	 test ! -s conftest.err
14720       } && test -s conftest$ac_exeext && {
14721	 test "$cross_compiling" = yes ||
14722	 $as_test_x conftest$ac_exeext
14723       }; then
14724  { $as_echo "$as_me:$LINENO: result: yes" >&5
14725$as_echo "yes" >&6; }
14726else
14727  $as_echo "$as_me: failed program was:" >&5
14728sed 's/^/| /' conftest.$ac_ext >&5
14729
14730	{ $as_echo "$as_me:$LINENO: result: no" >&5
14731$as_echo "no" >&6; }
14732
14733cat >>confdefs.h <<\_ACEOF
14734#define NO_MKTEMP 1
14735_ACEOF
14736
14737fi
14738
14739rm -rf conftest.dSYM
14740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14741      conftest$ac_exeext conftest.$ac_ext
14742fi
14743
14744rm -rf conftest.dSYM
14745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14746      conftest$ac_exeext conftest.$ac_ext
14747fi
14748
14749
14750# Extract the library version ID from jpeglib.h.
14751{ $as_echo "$as_me:$LINENO: checking libjpeg version number" >&5
14752$as_echo_n "checking libjpeg version number... " >&6; }
14753JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
14754JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION / 10`:`expr $JPEG_LIB_VERSION % 10`"
14755{ $as_echo "$as_me:$LINENO: result: $JPEG_LIB_VERSION" >&5
14756$as_echo "$JPEG_LIB_VERSION" >&6; }
14757
14758
14759ac_config_files="$ac_config_files Makefile"
14760
14761cat >confcache <<\_ACEOF
14762# This file is a shell script that caches the results of configure
14763# tests run on this system so they can be shared between configure
14764# scripts and configure runs, see configure's option --config-cache.
14765# It is not useful on other systems.  If it contains results you don't
14766# want to keep, you may remove or edit it.
14767#
14768# config.status only pays attention to the cache file if you give it
14769# the --recheck option to rerun configure.
14770#
14771# `ac_cv_env_foo' variables (set or unset) will be overridden when
14772# loading this file, other *unset* `ac_cv_foo' will be assigned the
14773# following values.
14774
14775_ACEOF
14776
14777# The following way of writing the cache mishandles newlines in values,
14778# but we know of no workaround that is simple, portable, and efficient.
14779# So, we kill variables containing newlines.
14780# Ultrix sh set writes to stderr and can't be redirected directly,
14781# and sets the high bit in the cache file unless we assign to the vars.
14782(
14783  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14784    eval ac_val=\$$ac_var
14785    case $ac_val in #(
14786    *${as_nl}*)
14787      case $ac_var in #(
14788      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14789$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14790      esac
14791      case $ac_var in #(
14792      _ | IFS | as_nl) ;; #(
14793      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14794      *) $as_unset $ac_var ;;
14795      esac ;;
14796    esac
14797  done
14798
14799  (set) 2>&1 |
14800    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14801    *${as_nl}ac_space=\ *)
14802      # `set' does not quote correctly, so add quotes (double-quote
14803      # substitution turns \\\\ into \\, and sed turns \\ into \).
14804      sed -n \
14805	"s/'/'\\\\''/g;
14806	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14807      ;; #(
14808    *)
14809      # `set' quotes correctly as required by POSIX, so do not add quotes.
14810      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14811      ;;
14812    esac |
14813    sort
14814) |
14815  sed '
14816     /^ac_cv_env_/b end
14817     t clear
14818     :clear
14819     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14820     t end
14821     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14822     :end' >>confcache
14823if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14824  if test -w "$cache_file"; then
14825    test "x$cache_file" != "x/dev/null" &&
14826      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14827$as_echo "$as_me: updating cache $cache_file" >&6;}
14828    cat confcache >$cache_file
14829  else
14830    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14831$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14832  fi
14833fi
14834rm -f confcache
14835
14836test "x$prefix" = xNONE && prefix=$ac_default_prefix
14837# Let make expand exec_prefix.
14838test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14839
14840DEFS=-DHAVE_CONFIG_H
14841
14842ac_libobjs=
14843ac_ltlibobjs=
14844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14845  # 1. Remove the extension, and $U if already installed.
14846  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14847  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14848  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14849  #    will be set to the directory where LIBOBJS objects are built.
14850  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14851  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14852done
14853LIBOBJS=$ac_libobjs
14854
14855LTLIBOBJS=$ac_ltlibobjs
14856
14857
14858 if test -n "$EXEEXT"; then
14859  am__EXEEXT_TRUE=
14860  am__EXEEXT_FALSE='#'
14861else
14862  am__EXEEXT_TRUE='#'
14863  am__EXEEXT_FALSE=
14864fi
14865
14866if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14867  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14868Usually this means the macro was only invoked conditionally." >&5
14869$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14870Usually this means the macro was only invoked conditionally." >&2;}
14871   { (exit 1); exit 1; }; }
14872fi
14873if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14874  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14875Usually this means the macro was only invoked conditionally." >&5
14876$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14877Usually this means the macro was only invoked conditionally." >&2;}
14878   { (exit 1); exit 1; }; }
14879fi
14880if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14881  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14882Usually this means the macro was only invoked conditionally." >&5
14883$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14884Usually this means the macro was only invoked conditionally." >&2;}
14885   { (exit 1); exit 1; }; }
14886fi
14887if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14888  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14889Usually this means the macro was only invoked conditionally." >&5
14890$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14891Usually this means the macro was only invoked conditionally." >&2;}
14892   { (exit 1); exit 1; }; }
14893fi
14894if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
14895  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14896Usually this means the macro was only invoked conditionally." >&5
14897$as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14898Usually this means the macro was only invoked conditionally." >&2;}
14899   { (exit 1); exit 1; }; }
14900fi
14901
14902: ${CONFIG_STATUS=./config.status}
14903ac_write_fail=0
14904ac_clean_files_save=$ac_clean_files
14905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14906{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14907$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14908cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14909#! $SHELL
14910# Generated by $as_me.
14911# Run this file to recreate the current configuration.
14912# Compiler output produced by configure, useful for debugging
14913# configure, is in config.log if it exists.
14914
14915debug=false
14916ac_cs_recheck=false
14917ac_cs_silent=false
14918SHELL=\${CONFIG_SHELL-$SHELL}
14919_ACEOF
14920
14921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922## --------------------- ##
14923## M4sh Initialization.  ##
14924## --------------------- ##
14925
14926# Be more Bourne compatible
14927DUALCASE=1; export DUALCASE # for MKS sh
14928if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14929  emulate sh
14930  NULLCMD=:
14931  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14932  # is contrary to our usage.  Disable this feature.
14933  alias -g '${1+"$@"}'='"$@"'
14934  setopt NO_GLOB_SUBST
14935else
14936  case `(set -o) 2>/dev/null` in
14937  *posix*) set -o posix ;;
14938esac
14939
14940fi
14941
14942
14943
14944
14945# PATH needs CR
14946# Avoid depending upon Character Ranges.
14947as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14948as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14949as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14950as_cr_digits='0123456789'
14951as_cr_alnum=$as_cr_Letters$as_cr_digits
14952
14953as_nl='
14954'
14955export as_nl
14956# Printing a long string crashes Solaris 7 /usr/bin/printf.
14957as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14958as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14959as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14960if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14961  as_echo='printf %s\n'
14962  as_echo_n='printf %s'
14963else
14964  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14965    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14966    as_echo_n='/usr/ucb/echo -n'
14967  else
14968    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14969    as_echo_n_body='eval
14970      arg=$1;
14971      case $arg in
14972      *"$as_nl"*)
14973	expr "X$arg" : "X\\(.*\\)$as_nl";
14974	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14975      esac;
14976      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14977    '
14978    export as_echo_n_body
14979    as_echo_n='sh -c $as_echo_n_body as_echo'
14980  fi
14981  export as_echo_body
14982  as_echo='sh -c $as_echo_body as_echo'
14983fi
14984
14985# The user is always right.
14986if test "${PATH_SEPARATOR+set}" != set; then
14987  PATH_SEPARATOR=:
14988  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14989    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14990      PATH_SEPARATOR=';'
14991  }
14992fi
14993
14994# Support unset when possible.
14995if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14996  as_unset=unset
14997else
14998  as_unset=false
14999fi
15000
15001
15002# IFS
15003# We need space, tab and new line, in precisely that order.  Quoting is
15004# there to prevent editors from complaining about space-tab.
15005# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15006# splitting by setting IFS to empty value.)
15007IFS=" ""	$as_nl"
15008
15009# Find who we are.  Look in the path if we contain no directory separator.
15010case $0 in
15011  *[\\/]* ) as_myself=$0 ;;
15012  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013for as_dir in $PATH
15014do
15015  IFS=$as_save_IFS
15016  test -z "$as_dir" && as_dir=.
15017  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15018done
15019IFS=$as_save_IFS
15020
15021     ;;
15022esac
15023# We did not find ourselves, most probably we were run as `sh COMMAND'
15024# in which case we are not to be found in the path.
15025if test "x$as_myself" = x; then
15026  as_myself=$0
15027fi
15028if test ! -f "$as_myself"; then
15029  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15030  { (exit 1); exit 1; }
15031fi
15032
15033# Work around bugs in pre-3.0 UWIN ksh.
15034for as_var in ENV MAIL MAILPATH
15035do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15036done
15037PS1='$ '
15038PS2='> '
15039PS4='+ '
15040
15041# NLS nuisances.
15042LC_ALL=C
15043export LC_ALL
15044LANGUAGE=C
15045export LANGUAGE
15046
15047# Required to use basename.
15048if expr a : '\(a\)' >/dev/null 2>&1 &&
15049   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15050  as_expr=expr
15051else
15052  as_expr=false
15053fi
15054
15055if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15056  as_basename=basename
15057else
15058  as_basename=false
15059fi
15060
15061
15062# Name of the executable.
15063as_me=`$as_basename -- "$0" ||
15064$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15065	 X"$0" : 'X\(//\)$' \| \
15066	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15067$as_echo X/"$0" |
15068    sed '/^.*\/\([^/][^/]*\)\/*$/{
15069	    s//\1/
15070	    q
15071	  }
15072	  /^X\/\(\/\/\)$/{
15073	    s//\1/
15074	    q
15075	  }
15076	  /^X\/\(\/\).*/{
15077	    s//\1/
15078	    q
15079	  }
15080	  s/.*/./; q'`
15081
15082# CDPATH.
15083$as_unset CDPATH
15084
15085
15086
15087  as_lineno_1=$LINENO
15088  as_lineno_2=$LINENO
15089  test "x$as_lineno_1" != "x$as_lineno_2" &&
15090  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15091
15092  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15093  # uniformly replaced by the line number.  The first 'sed' inserts a
15094  # line-number line after each line using $LINENO; the second 'sed'
15095  # does the real work.  The second script uses 'N' to pair each
15096  # line-number line with the line containing $LINENO, and appends
15097  # trailing '-' during substitution so that $LINENO is not a special
15098  # case at line end.
15099  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15100  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15101  # E. McMahon (1931-1989) for sed's syntax.  :-)
15102  sed -n '
15103    p
15104    /[$]LINENO/=
15105  ' <$as_myself |
15106    sed '
15107      s/[$]LINENO.*/&-/
15108      t lineno
15109      b
15110      :lineno
15111      N
15112      :loop
15113      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15114      t loop
15115      s/-\n.*//
15116    ' >$as_me.lineno &&
15117  chmod +x "$as_me.lineno" ||
15118    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15119   { (exit 1); exit 1; }; }
15120
15121  # Don't try to exec as it changes $[0], causing all sort of problems
15122  # (the dirname of $[0] is not the place where we might find the
15123  # original and so on.  Autoconf is especially sensitive to this).
15124  . "./$as_me.lineno"
15125  # Exit status is that of the last command.
15126  exit
15127}
15128
15129
15130if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15131  as_dirname=dirname
15132else
15133  as_dirname=false
15134fi
15135
15136ECHO_C= ECHO_N= ECHO_T=
15137case `echo -n x` in
15138-n*)
15139  case `echo 'x\c'` in
15140  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15141  *)   ECHO_C='\c';;
15142  esac;;
15143*)
15144  ECHO_N='-n';;
15145esac
15146if expr a : '\(a\)' >/dev/null 2>&1 &&
15147   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15148  as_expr=expr
15149else
15150  as_expr=false
15151fi
15152
15153rm -f conf$$ conf$$.exe conf$$.file
15154if test -d conf$$.dir; then
15155  rm -f conf$$.dir/conf$$.file
15156else
15157  rm -f conf$$.dir
15158  mkdir conf$$.dir 2>/dev/null
15159fi
15160if (echo >conf$$.file) 2>/dev/null; then
15161  if ln -s conf$$.file conf$$ 2>/dev/null; then
15162    as_ln_s='ln -s'
15163    # ... but there are two gotchas:
15164    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15165    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15166    # In both cases, we have to default to `cp -p'.
15167    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15168      as_ln_s='cp -p'
15169  elif ln conf$$.file conf$$ 2>/dev/null; then
15170    as_ln_s=ln
15171  else
15172    as_ln_s='cp -p'
15173  fi
15174else
15175  as_ln_s='cp -p'
15176fi
15177rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15178rmdir conf$$.dir 2>/dev/null
15179
15180if mkdir -p . 2>/dev/null; then
15181  as_mkdir_p=:
15182else
15183  test -d ./-p && rmdir ./-p
15184  as_mkdir_p=false
15185fi
15186
15187if test -x / >/dev/null 2>&1; then
15188  as_test_x='test -x'
15189else
15190  if ls -dL / >/dev/null 2>&1; then
15191    as_ls_L_option=L
15192  else
15193    as_ls_L_option=
15194  fi
15195  as_test_x='
15196    eval sh -c '\''
15197      if test -d "$1"; then
15198	test -d "$1/.";
15199      else
15200	case $1 in
15201	-*)set "./$1";;
15202	esac;
15203	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15204	???[sx]*):;;*)false;;esac;fi
15205    '\'' sh
15206  '
15207fi
15208as_executable_p=$as_test_x
15209
15210# Sed expression to map a string onto a valid CPP name.
15211as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15212
15213# Sed expression to map a string onto a valid variable name.
15214as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15215
15216
15217exec 6>&1
15218
15219# Save the log message, to keep $[0] and so on meaningful, and to
15220# report actual input values of CONFIG_FILES etc. instead of their
15221# values after options handling.
15222ac_log="
15223This file was extended by libjpeg $as_me 7.0, which was
15224generated by GNU Autoconf 2.63.  Invocation command line was
15225
15226  CONFIG_FILES    = $CONFIG_FILES
15227  CONFIG_HEADERS  = $CONFIG_HEADERS
15228  CONFIG_LINKS    = $CONFIG_LINKS
15229  CONFIG_COMMANDS = $CONFIG_COMMANDS
15230  $ $0 $@
15231
15232on `(hostname || uname -n) 2>/dev/null | sed 1q`
15233"
15234
15235_ACEOF
15236
15237case $ac_config_files in *"
15238"*) set x $ac_config_files; shift; ac_config_files=$*;;
15239esac
15240
15241case $ac_config_headers in *"
15242"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15243esac
15244
15245
15246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247# Files that config.status was made for.
15248config_files="$ac_config_files"
15249config_headers="$ac_config_headers"
15250config_commands="$ac_config_commands"
15251
15252_ACEOF
15253
15254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15255ac_cs_usage="\
15256\`$as_me' instantiates files from templates according to the
15257current configuration.
15258
15259Usage: $0 [OPTION]... [FILE]...
15260
15261  -h, --help       print this help, then exit
15262  -V, --version    print version number and configuration settings, then exit
15263  -q, --quiet, --silent
15264                   do not print progress messages
15265  -d, --debug      don't remove temporary files
15266      --recheck    update $as_me by reconfiguring in the same conditions
15267      --file=FILE[:TEMPLATE]
15268                   instantiate the configuration file FILE
15269      --header=FILE[:TEMPLATE]
15270                   instantiate the configuration header FILE
15271
15272Configuration files:
15273$config_files
15274
15275Configuration headers:
15276$config_headers
15277
15278Configuration commands:
15279$config_commands
15280
15281Report bugs to <bug-autoconf@gnu.org>."
15282
15283_ACEOF
15284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285ac_cs_version="\\
15286libjpeg config.status 7.0
15287configured by $0, generated by GNU Autoconf 2.63,
15288  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15289
15290Copyright (C) 2008 Free Software Foundation, Inc.
15291This config.status script is free software; the Free Software Foundation
15292gives unlimited permission to copy, distribute and modify it."
15293
15294ac_pwd='$ac_pwd'
15295srcdir='$srcdir'
15296INSTALL='$INSTALL'
15297MKDIR_P='$MKDIR_P'
15298AWK='$AWK'
15299test -n "\$AWK" || AWK=awk
15300_ACEOF
15301
15302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303# The default lists apply if the user does not specify any file.
15304ac_need_defaults=:
15305while test $# != 0
15306do
15307  case $1 in
15308  --*=*)
15309    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15310    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15311    ac_shift=:
15312    ;;
15313  *)
15314    ac_option=$1
15315    ac_optarg=$2
15316    ac_shift=shift
15317    ;;
15318  esac
15319
15320  case $ac_option in
15321  # Handling of the options.
15322  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15323    ac_cs_recheck=: ;;
15324  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15325    $as_echo "$ac_cs_version"; exit ;;
15326  --debug | --debu | --deb | --de | --d | -d )
15327    debug=: ;;
15328  --file | --fil | --fi | --f )
15329    $ac_shift
15330    case $ac_optarg in
15331    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15332    esac
15333    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15334    ac_need_defaults=false;;
15335  --header | --heade | --head | --hea )
15336    $ac_shift
15337    case $ac_optarg in
15338    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15339    esac
15340    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15341    ac_need_defaults=false;;
15342  --he | --h)
15343    # Conflict between --help and --header
15344    { $as_echo "$as_me: error: ambiguous option: $1
15345Try \`$0 --help' for more information." >&2
15346   { (exit 1); exit 1; }; };;
15347  --help | --hel | -h )
15348    $as_echo "$ac_cs_usage"; exit ;;
15349  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15350  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15351    ac_cs_silent=: ;;
15352
15353  # This is an error.
15354  -*) { $as_echo "$as_me: error: unrecognized option: $1
15355Try \`$0 --help' for more information." >&2
15356   { (exit 1); exit 1; }; } ;;
15357
15358  *) ac_config_targets="$ac_config_targets $1"
15359     ac_need_defaults=false ;;
15360
15361  esac
15362  shift
15363done
15364
15365ac_configure_extra_args=
15366
15367if $ac_cs_silent; then
15368  exec 6>/dev/null
15369  ac_configure_extra_args="$ac_configure_extra_args --silent"
15370fi
15371
15372_ACEOF
15373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374if \$ac_cs_recheck; then
15375  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15376  shift
15377  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15378  CONFIG_SHELL='$SHELL'
15379  export CONFIG_SHELL
15380  exec "\$@"
15381fi
15382
15383_ACEOF
15384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385exec 5>>config.log
15386{
15387  echo
15388  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15389## Running $as_me. ##
15390_ASBOX
15391  $as_echo "$ac_log"
15392} >&5
15393
15394_ACEOF
15395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396#
15397# INIT-COMMANDS
15398#
15399AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15400
15401
15402# The HP-UX ksh and POSIX shell print the target directory to stdout
15403# if CDPATH is set.
15404(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15405
15406sed_quote_subst='$sed_quote_subst'
15407double_quote_subst='$double_quote_subst'
15408delay_variable_subst='$delay_variable_subst'
15409AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15410DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15411OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15412macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15413macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15414enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15415enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15416pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15417enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15418host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15419host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15420host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15421build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15422build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15423build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15424SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15425Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15426GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15427EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15428FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15429LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15430NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15431LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15432max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15433ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15434exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15435lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15436lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15437lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15438reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15439reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15440deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15441file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15442AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15443AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15444STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15445RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15446old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15447old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15448old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15449CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15450CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15451compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15452GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15453lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15454lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15455lt_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"`'
15456lt_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"`'
15457objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15458SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15459ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15460MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15461lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15462lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15463lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15464lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15465lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15466need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15467DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15468NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15469LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15470OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15471OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15472libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15473shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15474extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15475archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15476enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15477export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15478whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15479compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15480old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15481old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15482archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15483archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15484module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15485module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15486with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15487allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15488no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15489hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15490hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15491hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15492hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15493hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15494hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15495hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15496hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15497inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15498link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15499fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15500always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15501export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15502exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15503include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15504prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15505file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15506variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15507need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15508need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15509version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15510runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15511shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15512shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15513libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15514library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15515soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15516postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15517postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15518finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15519finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15520hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15521sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15522sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15523hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15524enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15525enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15526enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15527old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15528striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15529
15530LTCC='$LTCC'
15531LTCFLAGS='$LTCFLAGS'
15532compiler='$compiler_DEFAULT'
15533
15534# Quote evaled strings.
15535for var in SED \
15536GREP \
15537EGREP \
15538FGREP \
15539LD \
15540NM \
15541LN_S \
15542lt_SP2NL \
15543lt_NL2SP \
15544reload_flag \
15545deplibs_check_method \
15546file_magic_cmd \
15547AR \
15548AR_FLAGS \
15549STRIP \
15550RANLIB \
15551CC \
15552CFLAGS \
15553compiler \
15554lt_cv_sys_global_symbol_pipe \
15555lt_cv_sys_global_symbol_to_cdecl \
15556lt_cv_sys_global_symbol_to_c_name_address \
15557lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15558SHELL \
15559ECHO \
15560lt_prog_compiler_no_builtin_flag \
15561lt_prog_compiler_wl \
15562lt_prog_compiler_pic \
15563lt_prog_compiler_static \
15564lt_cv_prog_compiler_c_o \
15565need_locks \
15566DSYMUTIL \
15567NMEDIT \
15568LIPO \
15569OTOOL \
15570OTOOL64 \
15571shrext_cmds \
15572export_dynamic_flag_spec \
15573whole_archive_flag_spec \
15574compiler_needs_object \
15575with_gnu_ld \
15576allow_undefined_flag \
15577no_undefined_flag \
15578hardcode_libdir_flag_spec \
15579hardcode_libdir_flag_spec_ld \
15580hardcode_libdir_separator \
15581fix_srcfile_path \
15582exclude_expsyms \
15583include_expsyms \
15584file_list_spec \
15585variables_saved_for_relink \
15586libname_spec \
15587library_names_spec \
15588soname_spec \
15589finish_eval \
15590old_striplib \
15591striplib; do
15592    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15593    *[\\\\\\\`\\"\\\$]*)
15594      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15595      ;;
15596    *)
15597      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15598      ;;
15599    esac
15600done
15601
15602# Double-quote double-evaled strings.
15603for var in reload_cmds \
15604old_postinstall_cmds \
15605old_postuninstall_cmds \
15606old_archive_cmds \
15607extract_expsyms_cmds \
15608old_archive_from_new_cmds \
15609old_archive_from_expsyms_cmds \
15610archive_cmds \
15611archive_expsym_cmds \
15612module_cmds \
15613module_expsym_cmds \
15614export_symbols_cmds \
15615prelink_cmds \
15616postinstall_cmds \
15617postuninstall_cmds \
15618finish_cmds \
15619sys_lib_search_path_spec \
15620sys_lib_dlsearch_path_spec; do
15621    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15622    *[\\\\\\\`\\"\\\$]*)
15623      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15624      ;;
15625    *)
15626      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15627      ;;
15628    esac
15629done
15630
15631# Fix-up fallback echo if it was mangled by the above quoting rules.
15632case \$lt_ECHO in
15633*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15634  ;;
15635esac
15636
15637ac_aux_dir='$ac_aux_dir'
15638xsi_shell='$xsi_shell'
15639lt_shell_append='$lt_shell_append'
15640
15641# See if we are running on zsh, and set the options which allow our
15642# commands through without removal of \ escapes INIT.
15643if test -n "\${ZSH_VERSION+set}" ; then
15644   setopt NO_GLOB_SUBST
15645fi
15646
15647
15648    PACKAGE='$PACKAGE'
15649    VERSION='$VERSION'
15650    TIMESTAMP='$TIMESTAMP'
15651    RM='$RM'
15652    ofile='$ofile'
15653
15654
15655
15656
15657_ACEOF
15658
15659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660
15661# Handling of arguments.
15662for ac_config_target in $ac_config_targets
15663do
15664  case $ac_config_target in
15665    "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
15666    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15667    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15668    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15669
15670  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15671$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15672   { (exit 1); exit 1; }; };;
15673  esac
15674done
15675
15676
15677# If the user did not use the arguments to specify the items to instantiate,
15678# then the envvar interface is used.  Set only those that are not.
15679# We use the long form for the default assignment because of an extremely
15680# bizarre bug on SunOS 4.1.3.
15681if $ac_need_defaults; then
15682  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15683  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15684  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15685fi
15686
15687# Have a temporary directory for convenience.  Make it in the build tree
15688# simply because there is no reason against having it here, and in addition,
15689# creating and moving files from /tmp can sometimes cause problems.
15690# Hook for its removal unless debugging.
15691# Note that there is a small window in which the directory will not be cleaned:
15692# after its creation but before its name has been assigned to `$tmp'.
15693$debug ||
15694{
15695  tmp=
15696  trap 'exit_status=$?
15697  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15698' 0
15699  trap '{ (exit 1); exit 1; }' 1 2 13 15
15700}
15701# Create a (secure) tmp directory for tmp files.
15702
15703{
15704  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15705  test -n "$tmp" && test -d "$tmp"
15706}  ||
15707{
15708  tmp=./conf$$-$RANDOM
15709  (umask 077 && mkdir "$tmp")
15710} ||
15711{
15712   $as_echo "$as_me: cannot create a temporary directory in ." >&2
15713   { (exit 1); exit 1; }
15714}
15715
15716# Set up the scripts for CONFIG_FILES section.
15717# No need to generate them if there are no CONFIG_FILES.
15718# This happens for instance with `./config.status config.h'.
15719if test -n "$CONFIG_FILES"; then
15720
15721
15722ac_cr='
15723'
15724ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15725if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15726  ac_cs_awk_cr='\\r'
15727else
15728  ac_cs_awk_cr=$ac_cr
15729fi
15730
15731echo 'BEGIN {' >"$tmp/subs1.awk" &&
15732_ACEOF
15733
15734
15735{
15736  echo "cat >conf$$subs.awk <<_ACEOF" &&
15737  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15738  echo "_ACEOF"
15739} >conf$$subs.sh ||
15740  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15741$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15742   { (exit 1); exit 1; }; }
15743ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15744ac_delim='%!_!# '
15745for ac_last_try in false false false false false :; do
15746  . ./conf$$subs.sh ||
15747    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15748$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15749   { (exit 1); exit 1; }; }
15750
15751  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15752  if test $ac_delim_n = $ac_delim_num; then
15753    break
15754  elif $ac_last_try; then
15755    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15756$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15757   { (exit 1); exit 1; }; }
15758  else
15759    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15760  fi
15761done
15762rm -f conf$$subs.sh
15763
15764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15765cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15766_ACEOF
15767sed -n '
15768h
15769s/^/S["/; s/!.*/"]=/
15770p
15771g
15772s/^[^!]*!//
15773:repl
15774t repl
15775s/'"$ac_delim"'$//
15776t delim
15777:nl
15778h
15779s/\(.\{148\}\).*/\1/
15780t more1
15781s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15782p
15783n
15784b repl
15785:more1
15786s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15787p
15788g
15789s/.\{148\}//
15790t nl
15791:delim
15792h
15793s/\(.\{148\}\).*/\1/
15794t more2
15795s/["\\]/\\&/g; s/^/"/; s/$/"/
15796p
15797b
15798:more2
15799s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15800p
15801g
15802s/.\{148\}//
15803t delim
15804' <conf$$subs.awk | sed '
15805/^[^""]/{
15806  N
15807  s/\n//
15808}
15809' >>$CONFIG_STATUS || ac_write_fail=1
15810rm -f conf$$subs.awk
15811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15812_ACAWK
15813cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15814  for (key in S) S_is_set[key] = 1
15815  FS = ""
15816
15817}
15818{
15819  line = $ 0
15820  nfields = split(line, field, "@")
15821  substed = 0
15822  len = length(field[1])
15823  for (i = 2; i < nfields; i++) {
15824    key = field[i]
15825    keylen = length(key)
15826    if (S_is_set[key]) {
15827      value = S[key]
15828      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15829      len += length(value) + length(field[++i])
15830      substed = 1
15831    } else
15832      len += 1 + keylen
15833  }
15834
15835  print line
15836}
15837
15838_ACAWK
15839_ACEOF
15840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15841if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15842  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15843else
15844  cat
15845fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15846  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15847$as_echo "$as_me: error: could not setup config files machinery" >&2;}
15848   { (exit 1); exit 1; }; }
15849_ACEOF
15850
15851# VPATH may cause trouble with some makes, so we remove $(srcdir),
15852# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15853# trailing colons and then remove the whole line if VPATH becomes empty
15854# (actually we leave an empty line to preserve line numbers).
15855if test "x$srcdir" = x.; then
15856  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15857s/:*\$(srcdir):*/:/
15858s/:*\${srcdir}:*/:/
15859s/:*@srcdir@:*/:/
15860s/^\([^=]*=[	 ]*\):*/\1/
15861s/:*$//
15862s/^[^=]*=[	 ]*$//
15863}'
15864fi
15865
15866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15867fi # test -n "$CONFIG_FILES"
15868
15869# Set up the scripts for CONFIG_HEADERS section.
15870# No need to generate them if there are no CONFIG_HEADERS.
15871# This happens for instance with `./config.status Makefile'.
15872if test -n "$CONFIG_HEADERS"; then
15873cat >"$tmp/defines.awk" <<\_ACAWK ||
15874BEGIN {
15875_ACEOF
15876
15877# Transform confdefs.h into an awk script `defines.awk', embedded as
15878# here-document in config.status, that substitutes the proper values into
15879# config.h.in to produce config.h.
15880
15881# Create a delimiter string that does not exist in confdefs.h, to ease
15882# handling of long lines.
15883ac_delim='%!_!# '
15884for ac_last_try in false false :; do
15885  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15886  if test -z "$ac_t"; then
15887    break
15888  elif $ac_last_try; then
15889    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15890$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15891   { (exit 1); exit 1; }; }
15892  else
15893    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15894  fi
15895done
15896
15897# For the awk script, D is an array of macro values keyed by name,
15898# likewise P contains macro parameters if any.  Preserve backslash
15899# newline sequences.
15900
15901ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15902sed -n '
15903s/.\{148\}/&'"$ac_delim"'/g
15904t rset
15905:rset
15906s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15907t def
15908d
15909:def
15910s/\\$//
15911t bsnl
15912s/["\\]/\\&/g
15913s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15914D["\1"]=" \3"/p
15915s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15916d
15917:bsnl
15918s/["\\]/\\&/g
15919s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15920D["\1"]=" \3\\\\\\n"\\/p
15921t cont
15922s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15923t cont
15924d
15925:cont
15926n
15927s/.\{148\}/&'"$ac_delim"'/g
15928t clear
15929:clear
15930s/\\$//
15931t bsnlc
15932s/["\\]/\\&/g; s/^/"/; s/$/"/p
15933d
15934:bsnlc
15935s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15936b cont
15937' <confdefs.h | sed '
15938s/'"$ac_delim"'/"\\\
15939"/g' >>$CONFIG_STATUS || ac_write_fail=1
15940
15941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15942  for (key in D) D_is_set[key] = 1
15943  FS = ""
15944}
15945/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15946  line = \$ 0
15947  split(line, arg, " ")
15948  if (arg[1] == "#") {
15949    defundef = arg[2]
15950    mac1 = arg[3]
15951  } else {
15952    defundef = substr(arg[1], 2)
15953    mac1 = arg[2]
15954  }
15955  split(mac1, mac2, "(") #)
15956  macro = mac2[1]
15957  prefix = substr(line, 1, index(line, defundef) - 1)
15958  if (D_is_set[macro]) {
15959    # Preserve the white space surrounding the "#".
15960    print prefix "define", macro P[macro] D[macro]
15961    next
15962  } else {
15963    # Replace #undef with comments.  This is necessary, for example,
15964    # in the case of _POSIX_SOURCE, which is predefined and required
15965    # on some systems where configure will not decide to define it.
15966    if (defundef == "undef") {
15967      print "/*", prefix defundef, macro, "*/"
15968      next
15969    }
15970  }
15971}
15972{ print }
15973_ACAWK
15974_ACEOF
15975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15977$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15978   { (exit 1); exit 1; }; }
15979fi # test -n "$CONFIG_HEADERS"
15980
15981
15982eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15983shift
15984for ac_tag
15985do
15986  case $ac_tag in
15987  :[FHLC]) ac_mode=$ac_tag; continue;;
15988  esac
15989  case $ac_mode$ac_tag in
15990  :[FHL]*:*);;
15991  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15992$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15993   { (exit 1); exit 1; }; };;
15994  :[FH]-) ac_tag=-:-;;
15995  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15996  esac
15997  ac_save_IFS=$IFS
15998  IFS=:
15999  set x $ac_tag
16000  IFS=$ac_save_IFS
16001  shift
16002  ac_file=$1
16003  shift
16004
16005  case $ac_mode in
16006  :L) ac_source=$1;;
16007  :[FH])
16008    ac_file_inputs=
16009    for ac_f
16010    do
16011      case $ac_f in
16012      -) ac_f="$tmp/stdin";;
16013      *) # Look for the file first in the build tree, then in the source tree
16014	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16015	 # because $ac_f cannot contain `:'.
16016	 test -f "$ac_f" ||
16017	   case $ac_f in
16018	   [\\/$]*) false;;
16019	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16020	   esac ||
16021	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16022$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16023   { (exit 1); exit 1; }; };;
16024      esac
16025      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16026      ac_file_inputs="$ac_file_inputs '$ac_f'"
16027    done
16028
16029    # Let's still pretend it is `configure' which instantiates (i.e., don't
16030    # use $as_me), people would be surprised to read:
16031    #    /* config.h.  Generated by config.status.  */
16032    configure_input='Generated from '`
16033	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16034	`' by configure.'
16035    if test x"$ac_file" != x-; then
16036      configure_input="$ac_file.  $configure_input"
16037      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16038$as_echo "$as_me: creating $ac_file" >&6;}
16039    fi
16040    # Neutralize special characters interpreted by sed in replacement strings.
16041    case $configure_input in #(
16042    *\&* | *\|* | *\\* )
16043       ac_sed_conf_input=`$as_echo "$configure_input" |
16044       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16045    *) ac_sed_conf_input=$configure_input;;
16046    esac
16047
16048    case $ac_tag in
16049    *:-:* | *:-) cat >"$tmp/stdin" \
16050      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16051$as_echo "$as_me: error: could not create $ac_file" >&2;}
16052   { (exit 1); exit 1; }; } ;;
16053    esac
16054    ;;
16055  esac
16056
16057  ac_dir=`$as_dirname -- "$ac_file" ||
16058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16059	 X"$ac_file" : 'X\(//\)[^/]' \| \
16060	 X"$ac_file" : 'X\(//\)$' \| \
16061	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16062$as_echo X"$ac_file" |
16063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16064	    s//\1/
16065	    q
16066	  }
16067	  /^X\(\/\/\)[^/].*/{
16068	    s//\1/
16069	    q
16070	  }
16071	  /^X\(\/\/\)$/{
16072	    s//\1/
16073	    q
16074	  }
16075	  /^X\(\/\).*/{
16076	    s//\1/
16077	    q
16078	  }
16079	  s/.*/./; q'`
16080  { as_dir="$ac_dir"
16081  case $as_dir in #(
16082  -*) as_dir=./$as_dir;;
16083  esac
16084  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16085    as_dirs=
16086    while :; do
16087      case $as_dir in #(
16088      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16089      *) as_qdir=$as_dir;;
16090      esac
16091      as_dirs="'$as_qdir' $as_dirs"
16092      as_dir=`$as_dirname -- "$as_dir" ||
16093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16094	 X"$as_dir" : 'X\(//\)[^/]' \| \
16095	 X"$as_dir" : 'X\(//\)$' \| \
16096	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16097$as_echo X"$as_dir" |
16098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16099	    s//\1/
16100	    q
16101	  }
16102	  /^X\(\/\/\)[^/].*/{
16103	    s//\1/
16104	    q
16105	  }
16106	  /^X\(\/\/\)$/{
16107	    s//\1/
16108	    q
16109	  }
16110	  /^X\(\/\).*/{
16111	    s//\1/
16112	    q
16113	  }
16114	  s/.*/./; q'`
16115      test -d "$as_dir" && break
16116    done
16117    test -z "$as_dirs" || eval "mkdir $as_dirs"
16118  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16119$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16120   { (exit 1); exit 1; }; }; }
16121  ac_builddir=.
16122
16123case "$ac_dir" in
16124.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16125*)
16126  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16127  # A ".." for each directory in $ac_dir_suffix.
16128  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16129  case $ac_top_builddir_sub in
16130  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16131  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16132  esac ;;
16133esac
16134ac_abs_top_builddir=$ac_pwd
16135ac_abs_builddir=$ac_pwd$ac_dir_suffix
16136# for backward compatibility:
16137ac_top_builddir=$ac_top_build_prefix
16138
16139case $srcdir in
16140  .)  # We are building in place.
16141    ac_srcdir=.
16142    ac_top_srcdir=$ac_top_builddir_sub
16143    ac_abs_top_srcdir=$ac_pwd ;;
16144  [\\/]* | ?:[\\/]* )  # Absolute name.
16145    ac_srcdir=$srcdir$ac_dir_suffix;
16146    ac_top_srcdir=$srcdir
16147    ac_abs_top_srcdir=$srcdir ;;
16148  *) # Relative name.
16149    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16150    ac_top_srcdir=$ac_top_build_prefix$srcdir
16151    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16152esac
16153ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16154
16155
16156  case $ac_mode in
16157  :F)
16158  #
16159  # CONFIG_FILE
16160  #
16161
16162  case $INSTALL in
16163  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16164  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16165  esac
16166  ac_MKDIR_P=$MKDIR_P
16167  case $MKDIR_P in
16168  [\\/$]* | ?:[\\/]* ) ;;
16169  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16170  esac
16171_ACEOF
16172
16173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16174# If the template does not know about datarootdir, expand it.
16175# FIXME: This hack should be removed a few years after 2.60.
16176ac_datarootdir_hack=; ac_datarootdir_seen=
16177
16178ac_sed_dataroot='
16179/datarootdir/ {
16180  p
16181  q
16182}
16183/@datadir@/p
16184/@docdir@/p
16185/@infodir@/p
16186/@localedir@/p
16187/@mandir@/p
16188'
16189case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16190*datarootdir*) ac_datarootdir_seen=yes;;
16191*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16192  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16193$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16194_ACEOF
16195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196  ac_datarootdir_hack='
16197  s&@datadir@&$datadir&g
16198  s&@docdir@&$docdir&g
16199  s&@infodir@&$infodir&g
16200  s&@localedir@&$localedir&g
16201  s&@mandir@&$mandir&g
16202    s&\\\${datarootdir}&$datarootdir&g' ;;
16203esac
16204_ACEOF
16205
16206# Neutralize VPATH when `$srcdir' = `.'.
16207# Shell code in configure.ac might set extrasub.
16208# FIXME: do we really want to maintain this feature?
16209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16210ac_sed_extra="$ac_vpsub
16211$extrasub
16212_ACEOF
16213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16214:t
16215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16216s|@configure_input@|$ac_sed_conf_input|;t t
16217s&@top_builddir@&$ac_top_builddir_sub&;t t
16218s&@top_build_prefix@&$ac_top_build_prefix&;t t
16219s&@srcdir@&$ac_srcdir&;t t
16220s&@abs_srcdir@&$ac_abs_srcdir&;t t
16221s&@top_srcdir@&$ac_top_srcdir&;t t
16222s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16223s&@builddir@&$ac_builddir&;t t
16224s&@abs_builddir@&$ac_abs_builddir&;t t
16225s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16226s&@INSTALL@&$ac_INSTALL&;t t
16227s&@MKDIR_P@&$ac_MKDIR_P&;t t
16228$ac_datarootdir_hack
16229"
16230eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16231  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16232$as_echo "$as_me: error: could not create $ac_file" >&2;}
16233   { (exit 1); exit 1; }; }
16234
16235test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16236  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16237  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16238  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16239which seems to be undefined.  Please make sure it is defined." >&5
16240$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16241which seems to be undefined.  Please make sure it is defined." >&2;}
16242
16243  rm -f "$tmp/stdin"
16244  case $ac_file in
16245  -) cat "$tmp/out" && rm -f "$tmp/out";;
16246  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16247  esac \
16248  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16249$as_echo "$as_me: error: could not create $ac_file" >&2;}
16250   { (exit 1); exit 1; }; }
16251 ;;
16252  :H)
16253  #
16254  # CONFIG_HEADER
16255  #
16256  if test x"$ac_file" != x-; then
16257    {
16258      $as_echo "/* $configure_input  */" \
16259      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16260    } >"$tmp/config.h" \
16261      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16262$as_echo "$as_me: error: could not create $ac_file" >&2;}
16263   { (exit 1); exit 1; }; }
16264    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16265      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16266$as_echo "$as_me: $ac_file is unchanged" >&6;}
16267    else
16268      rm -f "$ac_file"
16269      mv "$tmp/config.h" "$ac_file" \
16270	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16271$as_echo "$as_me: error: could not create $ac_file" >&2;}
16272   { (exit 1); exit 1; }; }
16273    fi
16274  else
16275    $as_echo "/* $configure_input  */" \
16276      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16277      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16278$as_echo "$as_me: error: could not create -" >&2;}
16279   { (exit 1); exit 1; }; }
16280  fi
16281# Compute "$ac_file"'s index in $config_headers.
16282_am_arg="$ac_file"
16283_am_stamp_count=1
16284for _am_header in $config_headers :; do
16285  case $_am_header in
16286    $_am_arg | $_am_arg:* )
16287      break ;;
16288    * )
16289      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16290  esac
16291done
16292echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16293$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16294	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16295	 X"$_am_arg" : 'X\(//\)$' \| \
16296	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16297$as_echo X"$_am_arg" |
16298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16299	    s//\1/
16300	    q
16301	  }
16302	  /^X\(\/\/\)[^/].*/{
16303	    s//\1/
16304	    q
16305	  }
16306	  /^X\(\/\/\)$/{
16307	    s//\1/
16308	    q
16309	  }
16310	  /^X\(\/\).*/{
16311	    s//\1/
16312	    q
16313	  }
16314	  s/.*/./; q'`/stamp-h$_am_stamp_count
16315 ;;
16316
16317  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16318$as_echo "$as_me: executing $ac_file commands" >&6;}
16319 ;;
16320  esac
16321
16322
16323  case $ac_file$ac_mode in
16324    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16325  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16326  # are listed without --file.  Let's play safe and only enable the eval
16327  # if we detect the quoting.
16328  case $CONFIG_FILES in
16329  *\'*) eval set x "$CONFIG_FILES" ;;
16330  *)   set x $CONFIG_FILES ;;
16331  esac
16332  shift
16333  for mf
16334  do
16335    # Strip MF so we end up with the name of the file.
16336    mf=`echo "$mf" | sed -e 's/:.*$//'`
16337    # Check whether this is an Automake generated Makefile or not.
16338    # We used to match only the files named `Makefile.in', but
16339    # some people rename them; so instead we look at the file content.
16340    # Grep'ing the first line is not enough: some people post-process
16341    # each Makefile.in and add a new line on top of each file to say so.
16342    # Grep'ing the whole file is not good either: AIX grep has a line
16343    # limit of 2048, but all sed's we know have understand at least 4000.
16344    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16345      dirpart=`$as_dirname -- "$mf" ||
16346$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16347	 X"$mf" : 'X\(//\)[^/]' \| \
16348	 X"$mf" : 'X\(//\)$' \| \
16349	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16350$as_echo X"$mf" |
16351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16352	    s//\1/
16353	    q
16354	  }
16355	  /^X\(\/\/\)[^/].*/{
16356	    s//\1/
16357	    q
16358	  }
16359	  /^X\(\/\/\)$/{
16360	    s//\1/
16361	    q
16362	  }
16363	  /^X\(\/\).*/{
16364	    s//\1/
16365	    q
16366	  }
16367	  s/.*/./; q'`
16368    else
16369      continue
16370    fi
16371    # Extract the definition of DEPDIR, am__include, and am__quote
16372    # from the Makefile without running `make'.
16373    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16374    test -z "$DEPDIR" && continue
16375    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16376    test -z "am__include" && continue
16377    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16378    # When using ansi2knr, U may be empty or an underscore; expand it
16379    U=`sed -n 's/^U = //p' < "$mf"`
16380    # Find all dependency output files, they are included files with
16381    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16382    # simplest approach to changing $(DEPDIR) to its actual value in the
16383    # expansion.
16384    for file in `sed -n "
16385      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16386	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16387      # Make sure the directory exists.
16388      test -f "$dirpart/$file" && continue
16389      fdir=`$as_dirname -- "$file" ||
16390$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16391	 X"$file" : 'X\(//\)[^/]' \| \
16392	 X"$file" : 'X\(//\)$' \| \
16393	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16394$as_echo X"$file" |
16395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16396	    s//\1/
16397	    q
16398	  }
16399	  /^X\(\/\/\)[^/].*/{
16400	    s//\1/
16401	    q
16402	  }
16403	  /^X\(\/\/\)$/{
16404	    s//\1/
16405	    q
16406	  }
16407	  /^X\(\/\).*/{
16408	    s//\1/
16409	    q
16410	  }
16411	  s/.*/./; q'`
16412      { as_dir=$dirpart/$fdir
16413  case $as_dir in #(
16414  -*) as_dir=./$as_dir;;
16415  esac
16416  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16417    as_dirs=
16418    while :; do
16419      case $as_dir in #(
16420      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16421      *) as_qdir=$as_dir;;
16422      esac
16423      as_dirs="'$as_qdir' $as_dirs"
16424      as_dir=`$as_dirname -- "$as_dir" ||
16425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16426	 X"$as_dir" : 'X\(//\)[^/]' \| \
16427	 X"$as_dir" : 'X\(//\)$' \| \
16428	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16429$as_echo X"$as_dir" |
16430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16431	    s//\1/
16432	    q
16433	  }
16434	  /^X\(\/\/\)[^/].*/{
16435	    s//\1/
16436	    q
16437	  }
16438	  /^X\(\/\/\)$/{
16439	    s//\1/
16440	    q
16441	  }
16442	  /^X\(\/\).*/{
16443	    s//\1/
16444	    q
16445	  }
16446	  s/.*/./; q'`
16447      test -d "$as_dir" && break
16448    done
16449    test -z "$as_dirs" || eval "mkdir $as_dirs"
16450  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16451$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16452   { (exit 1); exit 1; }; }; }
16453      # echo "creating $dirpart/$file"
16454      echo '# dummy' > "$dirpart/$file"
16455    done
16456  done
16457}
16458 ;;
16459    "libtool":C)
16460
16461    # See if we are running on zsh, and set the options which allow our
16462    # commands through without removal of \ escapes.
16463    if test -n "${ZSH_VERSION+set}" ; then
16464      setopt NO_GLOB_SUBST
16465    fi
16466
16467    cfgfile="${ofile}T"
16468    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16469    $RM "$cfgfile"
16470
16471    cat <<_LT_EOF >> "$cfgfile"
16472#! $SHELL
16473
16474# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16475# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16476# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16477# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16478#
16479#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16480#                 2006, 2007, 2008 Free Software Foundation, Inc.
16481#   Written by Gordon Matzigkeit, 1996
16482#
16483#   This file is part of GNU Libtool.
16484#
16485# GNU Libtool is free software; you can redistribute it and/or
16486# modify it under the terms of the GNU General Public License as
16487# published by the Free Software Foundation; either version 2 of
16488# the License, or (at your option) any later version.
16489#
16490# As a special exception to the GNU General Public License,
16491# if you distribute this file as part of a program or library that
16492# is built using GNU Libtool, you may include this file under the
16493# same distribution terms that you use for the rest of that program.
16494#
16495# GNU Libtool is distributed in the hope that it will be useful,
16496# but WITHOUT ANY WARRANTY; without even the implied warranty of
16497# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16498# GNU General Public License for more details.
16499#
16500# You should have received a copy of the GNU General Public License
16501# along with GNU Libtool; see the file COPYING.  If not, a copy
16502# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16503# obtained by writing to the Free Software Foundation, Inc.,
16504# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16505
16506
16507# The names of the tagged configurations supported by this script.
16508available_tags=""
16509
16510# ### BEGIN LIBTOOL CONFIG
16511
16512# Assembler program.
16513AS=$AS
16514
16515# DLL creation program.
16516DLLTOOL=$DLLTOOL
16517
16518# Object dumper program.
16519OBJDUMP=$OBJDUMP
16520
16521# Which release of libtool.m4 was used?
16522macro_version=$macro_version
16523macro_revision=$macro_revision
16524
16525# Whether or not to build shared libraries.
16526build_libtool_libs=$enable_shared
16527
16528# Whether or not to build static libraries.
16529build_old_libs=$enable_static
16530
16531# What type of objects to build.
16532pic_mode=$pic_mode
16533
16534# Whether or not to optimize for fast installation.
16535fast_install=$enable_fast_install
16536
16537# The host system.
16538host_alias=$host_alias
16539host=$host
16540host_os=$host_os
16541
16542# The build system.
16543build_alias=$build_alias
16544build=$build
16545build_os=$build_os
16546
16547# A sed program that does not truncate output.
16548SED=$lt_SED
16549
16550# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16551Xsed="\$SED -e 1s/^X//"
16552
16553# A grep program that handles long lines.
16554GREP=$lt_GREP
16555
16556# An ERE matcher.
16557EGREP=$lt_EGREP
16558
16559# A literal string matcher.
16560FGREP=$lt_FGREP
16561
16562# A BSD- or MS-compatible name lister.
16563NM=$lt_NM
16564
16565# Whether we need soft or hard links.
16566LN_S=$lt_LN_S
16567
16568# What is the maximum length of a command?
16569max_cmd_len=$max_cmd_len
16570
16571# Object file suffix (normally "o").
16572objext=$ac_objext
16573
16574# Executable file suffix (normally "").
16575exeext=$exeext
16576
16577# whether the shell understands "unset".
16578lt_unset=$lt_unset
16579
16580# turn spaces into newlines.
16581SP2NL=$lt_lt_SP2NL
16582
16583# turn newlines into spaces.
16584NL2SP=$lt_lt_NL2SP
16585
16586# How to create reloadable object files.
16587reload_flag=$lt_reload_flag
16588reload_cmds=$lt_reload_cmds
16589
16590# Method to check whether dependent libraries are shared objects.
16591deplibs_check_method=$lt_deplibs_check_method
16592
16593# Command to use when deplibs_check_method == "file_magic".
16594file_magic_cmd=$lt_file_magic_cmd
16595
16596# The archiver.
16597AR=$lt_AR
16598AR_FLAGS=$lt_AR_FLAGS
16599
16600# A symbol stripping program.
16601STRIP=$lt_STRIP
16602
16603# Commands used to install an old-style archive.
16604RANLIB=$lt_RANLIB
16605old_postinstall_cmds=$lt_old_postinstall_cmds
16606old_postuninstall_cmds=$lt_old_postuninstall_cmds
16607
16608# A C compiler.
16609LTCC=$lt_CC
16610
16611# LTCC compiler flags.
16612LTCFLAGS=$lt_CFLAGS
16613
16614# Take the output of nm and produce a listing of raw symbols and C names.
16615global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16616
16617# Transform the output of nm in a proper C declaration.
16618global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16619
16620# Transform the output of nm in a C name address pair.
16621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16622
16623# Transform the output of nm in a C name address pair when lib prefix is needed.
16624global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16625
16626# The name of the directory that contains temporary libtool files.
16627objdir=$objdir
16628
16629# Shell to use when invoking shell scripts.
16630SHELL=$lt_SHELL
16631
16632# An echo program that does not interpret backslashes.
16633ECHO=$lt_ECHO
16634
16635# Used to examine libraries when file_magic_cmd begins with "file".
16636MAGIC_CMD=$MAGIC_CMD
16637
16638# Must we lock files when doing compilation?
16639need_locks=$lt_need_locks
16640
16641# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16642DSYMUTIL=$lt_DSYMUTIL
16643
16644# Tool to change global to local symbols on Mac OS X.
16645NMEDIT=$lt_NMEDIT
16646
16647# Tool to manipulate fat objects and archives on Mac OS X.
16648LIPO=$lt_LIPO
16649
16650# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16651OTOOL=$lt_OTOOL
16652
16653# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16654OTOOL64=$lt_OTOOL64
16655
16656# Old archive suffix (normally "a").
16657libext=$libext
16658
16659# Shared library suffix (normally ".so").
16660shrext_cmds=$lt_shrext_cmds
16661
16662# The commands to extract the exported symbol list from a shared archive.
16663extract_expsyms_cmds=$lt_extract_expsyms_cmds
16664
16665# Variables whose values should be saved in libtool wrapper scripts and
16666# restored at link time.
16667variables_saved_for_relink=$lt_variables_saved_for_relink
16668
16669# Do we need the "lib" prefix for modules?
16670need_lib_prefix=$need_lib_prefix
16671
16672# Do we need a version for libraries?
16673need_version=$need_version
16674
16675# Library versioning type.
16676version_type=$version_type
16677
16678# Shared library runtime path variable.
16679runpath_var=$runpath_var
16680
16681# Shared library path variable.
16682shlibpath_var=$shlibpath_var
16683
16684# Is shlibpath searched before the hard-coded library search path?
16685shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16686
16687# Format of library name prefix.
16688libname_spec=$lt_libname_spec
16689
16690# List of archive names.  First name is the real one, the rest are links.
16691# The last name is the one that the linker finds with -lNAME
16692library_names_spec=$lt_library_names_spec
16693
16694# The coded name of the library, if different from the real name.
16695soname_spec=$lt_soname_spec
16696
16697# Command to use after installation of a shared archive.
16698postinstall_cmds=$lt_postinstall_cmds
16699
16700# Command to use after uninstallation of a shared archive.
16701postuninstall_cmds=$lt_postuninstall_cmds
16702
16703# Commands used to finish a libtool library installation in a directory.
16704finish_cmds=$lt_finish_cmds
16705
16706# As "finish_cmds", except a single script fragment to be evaled but
16707# not shown.
16708finish_eval=$lt_finish_eval
16709
16710# Whether we should hardcode library paths into libraries.
16711hardcode_into_libs=$hardcode_into_libs
16712
16713# Compile-time system search path for libraries.
16714sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16715
16716# Run-time system search path for libraries.
16717sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16718
16719# Whether dlopen is supported.
16720dlopen_support=$enable_dlopen
16721
16722# Whether dlopen of programs is supported.
16723dlopen_self=$enable_dlopen_self
16724
16725# Whether dlopen of statically linked programs is supported.
16726dlopen_self_static=$enable_dlopen_self_static
16727
16728# Commands to strip libraries.
16729old_striplib=$lt_old_striplib
16730striplib=$lt_striplib
16731
16732
16733# The linker used to build libraries.
16734LD=$lt_LD
16735
16736# Commands used to build an old-style archive.
16737old_archive_cmds=$lt_old_archive_cmds
16738
16739# A language specific compiler.
16740CC=$lt_compiler
16741
16742# Is the compiler the GNU compiler?
16743with_gcc=$GCC
16744
16745# Compiler flag to turn off builtin functions.
16746no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16747
16748# How to pass a linker flag through the compiler.
16749wl=$lt_lt_prog_compiler_wl
16750
16751# Additional compiler flags for building library objects.
16752pic_flag=$lt_lt_prog_compiler_pic
16753
16754# Compiler flag to prevent dynamic linking.
16755link_static_flag=$lt_lt_prog_compiler_static
16756
16757# Does compiler simultaneously support -c and -o options?
16758compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16759
16760# Whether or not to add -lc for building shared libraries.
16761build_libtool_need_lc=$archive_cmds_need_lc
16762
16763# Whether or not to disallow shared libs when runtime libs are static.
16764allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16765
16766# Compiler flag to allow reflexive dlopens.
16767export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16768
16769# Compiler flag to generate shared objects directly from archives.
16770whole_archive_flag_spec=$lt_whole_archive_flag_spec
16771
16772# Whether the compiler copes with passing no objects directly.
16773compiler_needs_object=$lt_compiler_needs_object
16774
16775# Create an old-style archive from a shared archive.
16776old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16777
16778# Create a temporary old-style archive to link instead of a shared archive.
16779old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16780
16781# Commands used to build a shared archive.
16782archive_cmds=$lt_archive_cmds
16783archive_expsym_cmds=$lt_archive_expsym_cmds
16784
16785# Commands used to build a loadable module if different from building
16786# a shared archive.
16787module_cmds=$lt_module_cmds
16788module_expsym_cmds=$lt_module_expsym_cmds
16789
16790# Whether we are building with GNU ld or not.
16791with_gnu_ld=$lt_with_gnu_ld
16792
16793# Flag that allows shared libraries with undefined symbols to be built.
16794allow_undefined_flag=$lt_allow_undefined_flag
16795
16796# Flag that enforces no undefined symbols.
16797no_undefined_flag=$lt_no_undefined_flag
16798
16799# Flag to hardcode \$libdir into a binary during linking.
16800# This must work even if \$libdir does not exist
16801hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16802
16803# If ld is used when linking, flag to hardcode \$libdir into a binary
16804# during linking.  This must work even if \$libdir does not exist.
16805hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16806
16807# Whether we need a single "-rpath" flag with a separated argument.
16808hardcode_libdir_separator=$lt_hardcode_libdir_separator
16809
16810# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16811# DIR into the resulting binary.
16812hardcode_direct=$hardcode_direct
16813
16814# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16815# DIR into the resulting binary and the resulting library dependency is
16816# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16817# library is relocated.
16818hardcode_direct_absolute=$hardcode_direct_absolute
16819
16820# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16821# into the resulting binary.
16822hardcode_minus_L=$hardcode_minus_L
16823
16824# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16825# into the resulting binary.
16826hardcode_shlibpath_var=$hardcode_shlibpath_var
16827
16828# Set to "yes" if building a shared library automatically hardcodes DIR
16829# into the library and all subsequent libraries and executables linked
16830# against it.
16831hardcode_automatic=$hardcode_automatic
16832
16833# Set to yes if linker adds runtime paths of dependent libraries
16834# to runtime path list.
16835inherit_rpath=$inherit_rpath
16836
16837# Whether libtool must link a program against all its dependency libraries.
16838link_all_deplibs=$link_all_deplibs
16839
16840# Fix the shell variable \$srcfile for the compiler.
16841fix_srcfile_path=$lt_fix_srcfile_path
16842
16843# Set to "yes" if exported symbols are required.
16844always_export_symbols=$always_export_symbols
16845
16846# The commands to list exported symbols.
16847export_symbols_cmds=$lt_export_symbols_cmds
16848
16849# Symbols that should not be listed in the preloaded symbols.
16850exclude_expsyms=$lt_exclude_expsyms
16851
16852# Symbols that must always be exported.
16853include_expsyms=$lt_include_expsyms
16854
16855# Commands necessary for linking programs (against libraries) with templates.
16856prelink_cmds=$lt_prelink_cmds
16857
16858# Specify filename containing input files.
16859file_list_spec=$lt_file_list_spec
16860
16861# How to hardcode a shared library path into an executable.
16862hardcode_action=$hardcode_action
16863
16864# ### END LIBTOOL CONFIG
16865
16866_LT_EOF
16867
16868  case $host_os in
16869  aix3*)
16870    cat <<\_LT_EOF >> "$cfgfile"
16871# AIX sometimes has problems with the GCC collect2 program.  For some
16872# reason, if we set the COLLECT_NAMES environment variable, the problems
16873# vanish in a puff of smoke.
16874if test "X${COLLECT_NAMES+set}" != Xset; then
16875  COLLECT_NAMES=
16876  export COLLECT_NAMES
16877fi
16878_LT_EOF
16879    ;;
16880  esac
16881
16882
16883ltmain="$ac_aux_dir/ltmain.sh"
16884
16885
16886  # We use sed instead of cat because bash on DJGPP gets confused if
16887  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16888  # text mode, it properly converts lines to CR/LF.  This bash problem
16889  # is reportedly fixed, but why not run on old versions too?
16890  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16891    || (rm -f "$cfgfile"; exit 1)
16892
16893  case $xsi_shell in
16894  yes)
16895    cat << \_LT_EOF >> "$cfgfile"
16896
16897# func_dirname file append nondir_replacement
16898# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16899# otherwise set result to NONDIR_REPLACEMENT.
16900func_dirname ()
16901{
16902  case ${1} in
16903    */*) func_dirname_result="${1%/*}${2}" ;;
16904    *  ) func_dirname_result="${3}" ;;
16905  esac
16906}
16907
16908# func_basename file
16909func_basename ()
16910{
16911  func_basename_result="${1##*/}"
16912}
16913
16914# func_dirname_and_basename file append nondir_replacement
16915# perform func_basename and func_dirname in a single function
16916# call:
16917#   dirname:  Compute the dirname of FILE.  If nonempty,
16918#             add APPEND to the result, otherwise set result
16919#             to NONDIR_REPLACEMENT.
16920#             value returned in "$func_dirname_result"
16921#   basename: Compute filename of FILE.
16922#             value retuned in "$func_basename_result"
16923# Implementation must be kept synchronized with func_dirname
16924# and func_basename. For efficiency, we do not delegate to
16925# those functions but instead duplicate the functionality here.
16926func_dirname_and_basename ()
16927{
16928  case ${1} in
16929    */*) func_dirname_result="${1%/*}${2}" ;;
16930    *  ) func_dirname_result="${3}" ;;
16931  esac
16932  func_basename_result="${1##*/}"
16933}
16934
16935# func_stripname prefix suffix name
16936# strip PREFIX and SUFFIX off of NAME.
16937# PREFIX and SUFFIX must not contain globbing or regex special
16938# characters, hashes, percent signs, but SUFFIX may contain a leading
16939# dot (in which case that matches only a dot).
16940func_stripname ()
16941{
16942  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16943  # positional parameters, so assign one to ordinary parameter first.
16944  func_stripname_result=${3}
16945  func_stripname_result=${func_stripname_result#"${1}"}
16946  func_stripname_result=${func_stripname_result%"${2}"}
16947}
16948
16949# func_opt_split
16950func_opt_split ()
16951{
16952  func_opt_split_opt=${1%%=*}
16953  func_opt_split_arg=${1#*=}
16954}
16955
16956# func_lo2o object
16957func_lo2o ()
16958{
16959  case ${1} in
16960    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16961    *)    func_lo2o_result=${1} ;;
16962  esac
16963}
16964
16965# func_xform libobj-or-source
16966func_xform ()
16967{
16968  func_xform_result=${1%.*}.lo
16969}
16970
16971# func_arith arithmetic-term...
16972func_arith ()
16973{
16974  func_arith_result=$(( $* ))
16975}
16976
16977# func_len string
16978# STRING may not start with a hyphen.
16979func_len ()
16980{
16981  func_len_result=${#1}
16982}
16983
16984_LT_EOF
16985    ;;
16986  *) # Bourne compatible functions.
16987    cat << \_LT_EOF >> "$cfgfile"
16988
16989# func_dirname file append nondir_replacement
16990# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16991# otherwise set result to NONDIR_REPLACEMENT.
16992func_dirname ()
16993{
16994  # Extract subdirectory from the argument.
16995  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16996  if test "X$func_dirname_result" = "X${1}"; then
16997    func_dirname_result="${3}"
16998  else
16999    func_dirname_result="$func_dirname_result${2}"
17000  fi
17001}
17002
17003# func_basename file
17004func_basename ()
17005{
17006  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17007}
17008
17009
17010# func_stripname prefix suffix name
17011# strip PREFIX and SUFFIX off of NAME.
17012# PREFIX and SUFFIX must not contain globbing or regex special
17013# characters, hashes, percent signs, but SUFFIX may contain a leading
17014# dot (in which case that matches only a dot).
17015# func_strip_suffix prefix name
17016func_stripname ()
17017{
17018  case ${2} in
17019    .*) func_stripname_result=`$ECHO "X${3}" \
17020           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17021    *)  func_stripname_result=`$ECHO "X${3}" \
17022           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17023  esac
17024}
17025
17026# sed scripts:
17027my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17028my_sed_long_arg='1s/^-[^=]*=//'
17029
17030# func_opt_split
17031func_opt_split ()
17032{
17033  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17034  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17035}
17036
17037# func_lo2o object
17038func_lo2o ()
17039{
17040  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17041}
17042
17043# func_xform libobj-or-source
17044func_xform ()
17045{
17046  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17047}
17048
17049# func_arith arithmetic-term...
17050func_arith ()
17051{
17052  func_arith_result=`expr "$@"`
17053}
17054
17055# func_len string
17056# STRING may not start with a hyphen.
17057func_len ()
17058{
17059  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17060}
17061
17062_LT_EOF
17063esac
17064
17065case $lt_shell_append in
17066  yes)
17067    cat << \_LT_EOF >> "$cfgfile"
17068
17069# func_append var value
17070# Append VALUE to the end of shell variable VAR.
17071func_append ()
17072{
17073  eval "$1+=\$2"
17074}
17075_LT_EOF
17076    ;;
17077  *)
17078    cat << \_LT_EOF >> "$cfgfile"
17079
17080# func_append var value
17081# Append VALUE to the end of shell variable VAR.
17082func_append ()
17083{
17084  eval "$1=\$$1\$2"
17085}
17086
17087_LT_EOF
17088    ;;
17089  esac
17090
17091
17092  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17093    || (rm -f "$cfgfile"; exit 1)
17094
17095  mv -f "$cfgfile" "$ofile" ||
17096    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17097  chmod +x "$ofile"
17098
17099 ;;
17100
17101  esac
17102done # for ac_tag
17103
17104
17105{ (exit 0); exit 0; }
17106_ACEOF
17107chmod +x $CONFIG_STATUS
17108ac_clean_files=$ac_clean_files_save
17109
17110test $ac_write_fail = 0 ||
17111  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17112$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17113   { (exit 1); exit 1; }; }
17114
17115
17116# configure is writing to config.log, and then calls config.status.
17117# config.status does its own redirection, appending to config.log.
17118# Unfortunately, on DOS this fails, as config.log is still kept open
17119# by configure, so config.status won't be able to write to it; its
17120# output is simply discarded.  So we exec the FD to /dev/null,
17121# effectively closing config.log, so it can be properly (re)opened and
17122# appended to by config.status.  When coming back to configure, we
17123# need to make the FD available again.
17124if test "$no_create" != yes; then
17125  ac_cs_success=:
17126  ac_config_status_args=
17127  test "$silent" = yes &&
17128    ac_config_status_args="$ac_config_status_args --quiet"
17129  exec 5>/dev/null
17130  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17131  exec 5>>config.log
17132  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17133  # would make configure fail if this is the last instruction.
17134  $ac_cs_success || { (exit 1); exit 1; }
17135fi
17136if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17137  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17138$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17139fi
17140
17141