configure revision eda3803b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-mga 1.4.10.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='xf86-video-mga'
747PACKAGE_TARNAME='xf86-video-mga'
748PACKAGE_VERSION='1.4.10'
749PACKAGE_STRING='xf86-video-mga 1.4.10'
750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752ac_unique_file="Makefile.am"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='LTLIBOBJS
790LIBOBJS
791ADMIN_MAN_DIR
792DRIVER_MAN_DIR
793MISC_MAN_DIR
794FILE_MAN_DIR
795LIB_MAN_DIR
796APP_MAN_DIR
797ADMIN_MAN_SUFFIX
798DRIVER_MAN_SUFFIX
799MISC_MAN_SUFFIX
800FILE_MAN_SUFFIX
801LIB_MAN_SUFFIX
802APP_MAN_SUFFIX
803DRIVER_NAME
804moduledir
805USE_EXA_FALSE
806USE_EXA_TRUE
807USE_XAA_FALSE
808USE_XAA_TRUE
809XSERVER_LIBPCIACCESS_FALSE
810XSERVER_LIBPCIACCESS_TRUE
811PCIACCESS_LIBS
812PCIACCESS_CFLAGS
813DRI_LIBS
814DRI_CFLAGS
815DRI_FALSE
816DRI_TRUE
817XORG_LIBS
818XORG_CFLAGS
819PKG_CONFIG
820CPP
821OTOOL64
822OTOOL
823LIPO
824NMEDIT
825DSYMUTIL
826lt_ECHO
827RANLIB
828AR
829OBJDUMP
830LN_S
831NM
832ac_ct_DUMPBIN
833DUMPBIN
834LD
835FGREP
836EGREP
837GREP
838SED
839am__fastdepCC_FALSE
840am__fastdepCC_TRUE
841CCDEPMODE
842AMDEPBACKSLASH
843AMDEP_FALSE
844AMDEP_TRUE
845am__quote
846am__include
847DEPDIR
848OBJEXT
849EXEEXT
850ac_ct_CC
851CPPFLAGS
852LDFLAGS
853CFLAGS
854CC
855host_os
856host_vendor
857host_cpu
858host
859build_os
860build_vendor
861build_cpu
862build
863LIBTOOL
864MAINT
865MAINTAINER_MODE_FALSE
866MAINTAINER_MODE_TRUE
867am__untar
868am__tar
869AMTAR
870am__leading_dot
871SET_MAKE
872AWK
873mkdir_p
874MKDIR_P
875INSTALL_STRIP_PROGRAM
876STRIP
877install_sh
878MAKEINFO
879AUTOHEADER
880AUTOMAKE
881AUTOCONF
882ACLOCAL
883VERSION
884PACKAGE
885CYGPATH_W
886am__isrc
887INSTALL_DATA
888INSTALL_SCRIPT
889INSTALL_PROGRAM
890target_alias
891host_alias
892build_alias
893LIBS
894ECHO_T
895ECHO_N
896ECHO_C
897DEFS
898mandir
899localedir
900libdir
901psdir
902pdfdir
903dvidir
904htmldir
905infodir
906docdir
907oldincludedir
908includedir
909localstatedir
910sharedstatedir
911sysconfdir
912datadir
913datarootdir
914libexecdir
915sbindir
916bindir
917program_transform_name
918prefix
919exec_prefix
920PACKAGE_BUGREPORT
921PACKAGE_STRING
922PACKAGE_VERSION
923PACKAGE_TARNAME
924PACKAGE_NAME
925PATH_SEPARATOR
926SHELL'
927ac_subst_files=''
928ac_user_opts='
929enable_option_checking
930with_release_version
931enable_maintainer_mode
932enable_static
933enable_shared
934with_pic
935enable_fast_install
936enable_dependency_tracking
937with_gnu_ld
938enable_libtool_lock
939with_xorg_module_dir
940enable_dri
941enable_exa
942'
943      ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951CPP
952PKG_CONFIG
953XORG_CFLAGS
954XORG_LIBS
955DRI_CFLAGS
956DRI_LIBS
957PCIACCESS_CFLAGS
958PCIACCESS_LIBS'
959
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964ac_unrecognized_opts=
965ac_unrecognized_sep=
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013  # If the previous option needs an argument, assign it.
1014  if test -n "$ac_prev"; then
1015    eval $ac_prev=\$ac_option
1016    ac_prev=
1017    continue
1018  fi
1019
1020  case $ac_option in
1021  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022  *)	ac_optarg=yes ;;
1023  esac
1024
1025  # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068   { (exit 1); exit 1; }; }
1069    ac_useropt_orig=$ac_useropt
1070    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071    case $ac_user_opts in
1072      *"
1073"enable_$ac_useropt"
1074"*) ;;
1075      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076	 ac_unrecognized_sep=', ';;
1077    esac
1078    eval enable_$ac_useropt=no ;;
1079
1080  -docdir | --docdir | --docdi | --doc | --do)
1081    ac_prev=docdir ;;
1082  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083    docdir=$ac_optarg ;;
1084
1085  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086    ac_prev=dvidir ;;
1087  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088    dvidir=$ac_optarg ;;
1089
1090  -enable-* | --enable-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095   { (exit 1); exit 1; }; }
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"enable_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109  | --exec | --exe | --ex)
1110    ac_prev=exec_prefix ;;
1111  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113  | --exec=* | --exe=* | --ex=*)
1114    exec_prefix=$ac_optarg ;;
1115
1116  -gas | --gas | --ga | --g)
1117    # Obsolete; use --with-gas.
1118    with_gas=yes ;;
1119
1120  -help | --help | --hel | --he | -h)
1121    ac_init_help=long ;;
1122  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123    ac_init_help=recursive ;;
1124  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125    ac_init_help=short ;;
1126
1127  -host | --host | --hos | --ho)
1128    ac_prev=host_alias ;;
1129  -host=* | --host=* | --hos=* | --ho=*)
1130    host_alias=$ac_optarg ;;
1131
1132  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133    ac_prev=htmldir ;;
1134  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135  | --ht=*)
1136    htmldir=$ac_optarg ;;
1137
1138  -includedir | --includedir | --includedi | --included | --include \
1139  | --includ | --inclu | --incl | --inc)
1140    ac_prev=includedir ;;
1141  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142  | --includ=* | --inclu=* | --incl=* | --inc=*)
1143    includedir=$ac_optarg ;;
1144
1145  -infodir | --infodir | --infodi | --infod | --info | --inf)
1146    ac_prev=infodir ;;
1147  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148    infodir=$ac_optarg ;;
1149
1150  -libdir | --libdir | --libdi | --libd)
1151    ac_prev=libdir ;;
1152  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153    libdir=$ac_optarg ;;
1154
1155  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156  | --libexe | --libex | --libe)
1157    ac_prev=libexecdir ;;
1158  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159  | --libexe=* | --libex=* | --libe=*)
1160    libexecdir=$ac_optarg ;;
1161
1162  -localedir | --localedir | --localedi | --localed | --locale)
1163    ac_prev=localedir ;;
1164  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165    localedir=$ac_optarg ;;
1166
1167  -localstatedir | --localstatedir | --localstatedi | --localstated \
1168  | --localstate | --localstat | --localsta | --localst | --locals)
1169    ac_prev=localstatedir ;;
1170  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172    localstatedir=$ac_optarg ;;
1173
1174  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175    ac_prev=mandir ;;
1176  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177    mandir=$ac_optarg ;;
1178
1179  -nfp | --nfp | --nf)
1180    # Obsolete; use --without-fp.
1181    with_fp=no ;;
1182
1183  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184  | --no-cr | --no-c | -n)
1185    no_create=yes ;;
1186
1187  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189    no_recursion=yes ;;
1190
1191  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193  | --oldin | --oldi | --old | --ol | --o)
1194    ac_prev=oldincludedir ;;
1195  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198    oldincludedir=$ac_optarg ;;
1199
1200  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201    ac_prev=prefix ;;
1202  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203    prefix=$ac_optarg ;;
1204
1205  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206  | --program-pre | --program-pr | --program-p)
1207    ac_prev=program_prefix ;;
1208  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210    program_prefix=$ac_optarg ;;
1211
1212  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213  | --program-suf | --program-su | --program-s)
1214    ac_prev=program_suffix ;;
1215  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217    program_suffix=$ac_optarg ;;
1218
1219  -program-transform-name | --program-transform-name \
1220  | --program-transform-nam | --program-transform-na \
1221  | --program-transform-n | --program-transform- \
1222  | --program-transform | --program-transfor \
1223  | --program-transfo | --program-transf \
1224  | --program-trans | --program-tran \
1225  | --progr-tra | --program-tr | --program-t)
1226    ac_prev=program_transform_name ;;
1227  -program-transform-name=* | --program-transform-name=* \
1228  | --program-transform-nam=* | --program-transform-na=* \
1229  | --program-transform-n=* | --program-transform-=* \
1230  | --program-transform=* | --program-transfor=* \
1231  | --program-transfo=* | --program-transf=* \
1232  | --program-trans=* | --program-tran=* \
1233  | --progr-tra=* | --program-tr=* | --program-t=*)
1234    program_transform_name=$ac_optarg ;;
1235
1236  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237    ac_prev=pdfdir ;;
1238  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239    pdfdir=$ac_optarg ;;
1240
1241  -psdir | --psdir | --psdi | --psd | --ps)
1242    ac_prev=psdir ;;
1243  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244    psdir=$ac_optarg ;;
1245
1246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247  | -silent | --silent | --silen | --sile | --sil)
1248    silent=yes ;;
1249
1250  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251    ac_prev=sbindir ;;
1252  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253  | --sbi=* | --sb=*)
1254    sbindir=$ac_optarg ;;
1255
1256  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258  | --sharedst | --shareds | --shared | --share | --shar \
1259  | --sha | --sh)
1260    ac_prev=sharedstatedir ;;
1261  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264  | --sha=* | --sh=*)
1265    sharedstatedir=$ac_optarg ;;
1266
1267  -site | --site | --sit)
1268    ac_prev=site ;;
1269  -site=* | --site=* | --sit=*)
1270    site=$ac_optarg ;;
1271
1272  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273    ac_prev=srcdir ;;
1274  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275    srcdir=$ac_optarg ;;
1276
1277  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278  | --syscon | --sysco | --sysc | --sys | --sy)
1279    ac_prev=sysconfdir ;;
1280  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282    sysconfdir=$ac_optarg ;;
1283
1284  -target | --target | --targe | --targ | --tar | --ta | --t)
1285    ac_prev=target_alias ;;
1286  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287    target_alias=$ac_optarg ;;
1288
1289  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290    verbose=yes ;;
1291
1292  -version | --version | --versio | --versi | --vers | -V)
1293    ac_init_version=: ;;
1294
1295  -with-* | --with-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300   { (exit 1); exit 1; }; }
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=\$ac_optarg ;;
1311
1312  -without-* | --without-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317   { (exit 1); exit 1; }; }
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1348Try \`$0 --help' for more information." >&2
1349   { (exit 1); exit 1; }; }
1350    ;;
1351
1352  *=*)
1353    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357   { (exit 1); exit 1; }; }
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1375   { (exit 1); exit 1; }; }
1376fi
1377
1378if test -n "$ac_unrecognized_opts"; then
1379  case $enable_option_checking in
1380    no) ;;
1381    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1382   { (exit 1); exit 1; }; } ;;
1383    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1406   { (exit 1); exit 1; }; }
1407done
1408
1409# There might be people who depend on the old broken behavior: `$host'
1410# used to hold the argument of --host etc.
1411# FIXME: To remove some day.
1412build=$build_alias
1413host=$host_alias
1414target=$target_alias
1415
1416# FIXME: To remove some day.
1417if test "x$host_alias" != x; then
1418  if test "x$build_alias" = x; then
1419    cross_compiling=maybe
1420    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1421    If a cross compiler is detected then cross compile mode will be used." >&2
1422  elif test "x$build_alias" != "x$host_alias"; then
1423    cross_compiling=yes
1424  fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1437   { (exit 1); exit 1; }; }
1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1440   { (exit 1); exit 1; }; }
1441
1442
1443# Find the source files, if location was not specified.
1444if test -z "$srcdir"; then
1445  ac_srcdir_defaulted=yes
1446  # Try the directory containing this script, then the parent directory.
1447  ac_confdir=`$as_dirname -- "$as_myself" ||
1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449	 X"$as_myself" : 'X\(//\)[^/]' \| \
1450	 X"$as_myself" : 'X\(//\)$' \| \
1451	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452$as_echo X"$as_myself" |
1453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)[^/].*/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\).*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  s/.*/./; q'`
1470  srcdir=$ac_confdir
1471  if test ! -r "$srcdir/$ac_unique_file"; then
1472    srcdir=..
1473  fi
1474else
1475  ac_srcdir_defaulted=no
1476fi
1477if test ! -r "$srcdir/$ac_unique_file"; then
1478  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1480   { (exit 1); exit 1; }; }
1481fi
1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483ac_abs_confdir=`(
1484	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1485   { (exit 1); exit 1; }; }
1486	pwd)`
1487# When building in place, set srcdir=.
1488if test "$ac_abs_confdir" = "$ac_pwd"; then
1489  srcdir=.
1490fi
1491# Remove unnecessary trailing slashes from srcdir.
1492# Double slashes in file names in object file debugging info
1493# mess up M-x gdb in Emacs.
1494case $srcdir in
1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496esac
1497for ac_var in $ac_precious_vars; do
1498  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_env_${ac_var}_value=\$${ac_var}
1500  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502done
1503
1504#
1505# Report the --help message.
1506#
1507if test "$ac_init_help" = "long"; then
1508  # Omit some internal or obsolete options to make the list less imposing.
1509  # This message is too long to be a string in the A/UX 3.1 sh.
1510  cat <<_ACEOF
1511\`configure' configures xf86-video-mga 1.4.10 to adapt to many kinds of systems.
1512
1513Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516VAR=VALUE.  See below for descriptions of some of the useful variables.
1517
1518Defaults for the options are specified in brackets.
1519
1520Configuration:
1521  -h, --help              display this help and exit
1522      --help=short        display options specific to this package
1523      --help=recursive    display the short help of all the included packages
1524  -V, --version           display version information and exit
1525  -q, --quiet, --silent   do not print \`checking...' messages
1526      --cache-file=FILE   cache test results in FILE [disabled]
1527  -C, --config-cache      alias for \`--cache-file=config.cache'
1528  -n, --no-create         do not create output files
1529      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1530
1531Installation directories:
1532  --prefix=PREFIX         install architecture-independent files in PREFIX
1533                          [$ac_default_prefix]
1534  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1535                          [PREFIX]
1536
1537By default, \`make install' will install all the files in
1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540for instance \`--prefix=\$HOME'.
1541
1542For better control, use the options below.
1543
1544Fine tuning of the installation directories:
1545  --bindir=DIR            user executables [EPREFIX/bin]
1546  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1547  --libexecdir=DIR        program executables [EPREFIX/libexec]
1548  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1549  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1550  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1551  --libdir=DIR            object code libraries [EPREFIX/lib]
1552  --includedir=DIR        C header files [PREFIX/include]
1553  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1554  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1555  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1556  --infodir=DIR           info documentation [DATAROOTDIR/info]
1557  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1558  --mandir=DIR            man documentation [DATAROOTDIR/man]
1559  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-mga]
1560  --htmldir=DIR           html documentation [DOCDIR]
1561  --dvidir=DIR            dvi documentation [DOCDIR]
1562  --pdfdir=DIR            pdf documentation [DOCDIR]
1563  --psdir=DIR             ps documentation [DOCDIR]
1564_ACEOF
1565
1566  cat <<\_ACEOF
1567
1568Program names:
1569  --program-prefix=PREFIX            prepend PREFIX to installed program names
1570  --program-suffix=SUFFIX            append SUFFIX to installed program names
1571  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1572
1573System types:
1574  --build=BUILD     configure for building on BUILD [guessed]
1575  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1576_ACEOF
1577fi
1578
1579if test -n "$ac_init_help"; then
1580  case $ac_init_help in
1581     short | recursive ) echo "Configuration of xf86-video-mga 1.4.10:";;
1582   esac
1583  cat <<\_ACEOF
1584
1585Optional Features:
1586  --disable-option-checking  ignore unrecognized --enable/--with options
1587  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1588  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1589  --enable-maintainer-mode  enable make rules and dependencies not useful
1590			  (and sometimes confusing) to the casual installer
1591  --enable-static[=PKGS]  build static libraries [default=no]
1592  --enable-shared[=PKGS]  build shared libraries [default=yes]
1593  --enable-fast-install[=PKGS]
1594                          optimize for fast installation [default=yes]
1595  --disable-dependency-tracking  speeds up one-time build
1596  --enable-dependency-tracking   do not reject slow dependency extractors
1597  --disable-libtool-lock  avoid locking (might break parallel builds)
1598  --disable-dri           Disable DRI support [default=auto]
1599  --disable-exa           Disable EXA support [default=enabled]
1600
1601Optional Packages:
1602  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1603  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1604  --with-release-version=STRING
1605                          Use release version string in package name
1606  --with-pic              try to use only PIC/non-PIC objects [default=use
1607                          both]
1608  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1609  --with-xorg-module-dir=DIR
1610                          Default xorg module directory
1611                          [default=$libdir/xorg/modules]
1612
1613Some influential environment variables:
1614  CC          C compiler command
1615  CFLAGS      C compiler flags
1616  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1617              nonstandard directory <lib dir>
1618  LIBS        libraries to pass to the linker, e.g. -l<library>
1619  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1620              you have headers in a nonstandard directory <include dir>
1621  CPP         C preprocessor
1622  PKG_CONFIG  path to pkg-config utility
1623  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1624  XORG_LIBS   linker flags for XORG, overriding pkg-config
1625  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1626  DRI_LIBS    linker flags for DRI, overriding pkg-config
1627  PCIACCESS_CFLAGS
1628              C compiler flags for PCIACCESS, overriding pkg-config
1629  PCIACCESS_LIBS
1630              linker flags for PCIACCESS, overriding pkg-config
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
1635Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1636_ACEOF
1637ac_status=$?
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641  # If there are subdirs, report their specific --help.
1642  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643    test -d "$ac_dir" ||
1644      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645      continue
1646    ac_builddir=.
1647
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652  # A ".." for each directory in $ac_dir_suffix.
1653  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654  case $ac_top_builddir_sub in
1655  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657  esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1663
1664case $srcdir in
1665  .)  # We are building in place.
1666    ac_srcdir=.
1667    ac_top_srcdir=$ac_top_builddir_sub
1668    ac_abs_top_srcdir=$ac_pwd ;;
1669  [\\/]* | ?:[\\/]* )  # Absolute name.
1670    ac_srcdir=$srcdir$ac_dir_suffix;
1671    ac_top_srcdir=$srcdir
1672    ac_abs_top_srcdir=$srcdir ;;
1673  *) # Relative name.
1674    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675    ac_top_srcdir=$ac_top_build_prefix$srcdir
1676    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677esac
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680    cd "$ac_dir" || { ac_status=$?; continue; }
1681    # Check for guested configure.
1682    if test -f "$ac_srcdir/configure.gnu"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685    elif test -f "$ac_srcdir/configure"; then
1686      echo &&
1687      $SHELL "$ac_srcdir/configure" --help=recursive
1688    else
1689      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690    fi || ac_status=$?
1691    cd "$ac_pwd" || { ac_status=$?; break; }
1692  done
1693fi
1694
1695test -n "$ac_init_help" && exit $ac_status
1696if $ac_init_version; then
1697  cat <<\_ACEOF
1698xf86-video-mga configure 1.4.10
1699generated by GNU Autoconf 2.63
1700
1701Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17022002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1703This configure script is free software; the Free Software Foundation
1704gives unlimited permission to copy, distribute and modify it.
1705_ACEOF
1706  exit
1707fi
1708cat >config.log <<_ACEOF
1709This file contains any messages produced by compilers while
1710running configure, to aid debugging if configure makes a mistake.
1711
1712It was created by xf86-video-mga $as_me 1.4.10, which was
1713generated by GNU Autoconf 2.63.  Invocation command line was
1714
1715  $ $0 $@
1716
1717_ACEOF
1718exec 5>>config.log
1719{
1720cat <<_ASUNAME
1721## --------- ##
1722## Platform. ##
1723## --------- ##
1724
1725hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1726uname -m = `(uname -m) 2>/dev/null || echo unknown`
1727uname -r = `(uname -r) 2>/dev/null || echo unknown`
1728uname -s = `(uname -s) 2>/dev/null || echo unknown`
1729uname -v = `(uname -v) 2>/dev/null || echo unknown`
1730
1731/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1732/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1733
1734/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1735/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1736/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1737/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1738/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1739/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1740/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1741
1742_ASUNAME
1743
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747  IFS=$as_save_IFS
1748  test -z "$as_dir" && as_dir=.
1749  $as_echo "PATH: $as_dir"
1750done
1751IFS=$as_save_IFS
1752
1753} >&5
1754
1755cat >&5 <<_ACEOF
1756
1757
1758## ----------- ##
1759## Core tests. ##
1760## ----------- ##
1761
1762_ACEOF
1763
1764
1765# Keep a trace of the command line.
1766# Strip out --no-create and --no-recursion so they do not pile up.
1767# Strip out --silent because we don't want to record it for future runs.
1768# Also quote any args containing shell meta-characters.
1769# Make two passes to allow for proper duplicate-argument suppression.
1770ac_configure_args=
1771ac_configure_args0=
1772ac_configure_args1=
1773ac_must_keep_next=false
1774for ac_pass in 1 2
1775do
1776  for ac_arg
1777  do
1778    case $ac_arg in
1779    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1780    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1781    | -silent | --silent | --silen | --sile | --sil)
1782      continue ;;
1783    *\'*)
1784      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1785    esac
1786    case $ac_pass in
1787    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1788    2)
1789      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1790      if test $ac_must_keep_next = true; then
1791	ac_must_keep_next=false # Got value, back to normal.
1792      else
1793	case $ac_arg in
1794	  *=* | --config-cache | -C | -disable-* | --disable-* \
1795	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1796	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1797	  | -with-* | --with-* | -without-* | --without-* | --x)
1798	    case "$ac_configure_args0 " in
1799	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1800	    esac
1801	    ;;
1802	  -* ) ac_must_keep_next=true ;;
1803	esac
1804      fi
1805      ac_configure_args="$ac_configure_args '$ac_arg'"
1806      ;;
1807    esac
1808  done
1809done
1810$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1811$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1812
1813# When interrupted or exit'd, cleanup temporary files, and complete
1814# config.log.  We remove comments because anyway the quotes in there
1815# would cause problems or look ugly.
1816# WARNING: Use '\'' to represent an apostrophe within the trap.
1817# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1818trap 'exit_status=$?
1819  # Save into config.log some information that might help in debugging.
1820  {
1821    echo
1822
1823    cat <<\_ASBOX
1824## ---------------- ##
1825## Cache variables. ##
1826## ---------------- ##
1827_ASBOX
1828    echo
1829    # The following way of writing the cache mishandles newlines in values,
1830(
1831  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1832    eval ac_val=\$$ac_var
1833    case $ac_val in #(
1834    *${as_nl}*)
1835      case $ac_var in #(
1836      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1837$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1838      esac
1839      case $ac_var in #(
1840      _ | IFS | as_nl) ;; #(
1841      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1842      *) $as_unset $ac_var ;;
1843      esac ;;
1844    esac
1845  done
1846  (set) 2>&1 |
1847    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848    *${as_nl}ac_space=\ *)
1849      sed -n \
1850	"s/'\''/'\''\\\\'\'''\''/g;
1851	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852      ;; #(
1853    *)
1854      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855      ;;
1856    esac |
1857    sort
1858)
1859    echo
1860
1861    cat <<\_ASBOX
1862## ----------------- ##
1863## Output variables. ##
1864## ----------------- ##
1865_ASBOX
1866    echo
1867    for ac_var in $ac_subst_vars
1868    do
1869      eval ac_val=\$$ac_var
1870      case $ac_val in
1871      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872      esac
1873      $as_echo "$ac_var='\''$ac_val'\''"
1874    done | sort
1875    echo
1876
1877    if test -n "$ac_subst_files"; then
1878      cat <<\_ASBOX
1879## ------------------- ##
1880## File substitutions. ##
1881## ------------------- ##
1882_ASBOX
1883      echo
1884      for ac_var in $ac_subst_files
1885      do
1886	eval ac_val=\$$ac_var
1887	case $ac_val in
1888	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889	esac
1890	$as_echo "$ac_var='\''$ac_val'\''"
1891      done | sort
1892      echo
1893    fi
1894
1895    if test -s confdefs.h; then
1896      cat <<\_ASBOX
1897## ----------- ##
1898## confdefs.h. ##
1899## ----------- ##
1900_ASBOX
1901      echo
1902      cat confdefs.h
1903      echo
1904    fi
1905    test "$ac_signal" != 0 &&
1906      $as_echo "$as_me: caught signal $ac_signal"
1907    $as_echo "$as_me: exit $exit_status"
1908  } >&5
1909  rm -f core *.core core.conftest.* &&
1910    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911    exit $exit_status
1912' 0
1913for ac_signal in 1 2 13 15; do
1914  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915done
1916ac_signal=0
1917
1918# confdefs.h avoids OS command line length limits that DEFS can exceed.
1919rm -f -r conftest* confdefs.h
1920
1921# Predefined preprocessor variables.
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_NAME "$PACKAGE_NAME"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_VERSION "$PACKAGE_VERSION"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_STRING "$PACKAGE_STRING"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945_ACEOF
1946
1947
1948# Let the site file select an alternate cache file if it wants to.
1949# Prefer an explicitly selected file to automatically selected ones.
1950ac_site_file1=NONE
1951ac_site_file2=NONE
1952if test -n "$CONFIG_SITE"; then
1953  ac_site_file1=$CONFIG_SITE
1954elif test "x$prefix" != xNONE; then
1955  ac_site_file1=$prefix/share/config.site
1956  ac_site_file2=$prefix/etc/config.site
1957else
1958  ac_site_file1=$ac_default_prefix/share/config.site
1959  ac_site_file2=$ac_default_prefix/etc/config.site
1960fi
1961for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1962do
1963  test "x$ac_site_file" = xNONE && continue
1964  if test -r "$ac_site_file"; then
1965    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1967    sed 's/^/| /' "$ac_site_file" >&5
1968    . "$ac_site_file"
1969  fi
1970done
1971
1972if test -r "$cache_file"; then
1973  # Some versions of bash will fail to source /dev/null (special
1974  # files actually), so we avoid doing that.
1975  if test -f "$cache_file"; then
1976    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977$as_echo "$as_me: loading cache $cache_file" >&6;}
1978    case $cache_file in
1979      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980      *)                      . "./$cache_file";;
1981    esac
1982  fi
1983else
1984  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985$as_echo "$as_me: creating cache $cache_file" >&6;}
1986  >$cache_file
1987fi
1988
1989# Check that the precious variables saved in the cache have kept the same
1990# value.
1991ac_cache_corrupted=false
1992for ac_var in $ac_precious_vars; do
1993  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1994  eval ac_new_set=\$ac_env_${ac_var}_set
1995  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1996  eval ac_new_val=\$ac_env_${ac_var}_value
1997  case $ac_old_set,$ac_new_set in
1998    set,)
1999      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2000$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001      ac_cache_corrupted=: ;;
2002    ,set)
2003      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2004$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2005      ac_cache_corrupted=: ;;
2006    ,);;
2007    *)
2008      if test "x$ac_old_val" != "x$ac_new_val"; then
2009	# differences in whitespace do not lead to failure.
2010	ac_old_val_w=`echo x $ac_old_val`
2011	ac_new_val_w=`echo x $ac_new_val`
2012	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2013	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2014$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2015	  ac_cache_corrupted=:
2016	else
2017	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2018$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2019	  eval $ac_var=\$ac_old_val
2020	fi
2021	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2022$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2023	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2024$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2025      fi;;
2026  esac
2027  # Pass precious variables to config.status.
2028  if test "$ac_new_set" = set; then
2029    case $ac_new_val in
2030    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2031    *) ac_arg=$ac_var=$ac_new_val ;;
2032    esac
2033    case " $ac_configure_args " in
2034      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2035      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2036    esac
2037  fi
2038done
2039if $ac_cache_corrupted; then
2040  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2043$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2044  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2045$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2046   { (exit 1); exit 1; }; }
2047fi
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078
2079
2080
2081
2082
2083# Check whether --with-release-version was given.
2084if test "${with_release_version+set}" = set; then
2085  withval=$with_release_version; RELEASE_VERSION="$withval"
2086else
2087  RELEASE_VERSION=""
2088fi
2089
2090	if test "x$RELEASE_VERSION" != "x"; then
2091		PACKAGE="$PACKAGE-$RELEASE_VERSION"
2092		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
2093		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
2094$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
2095	fi
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
2099_ACEOF
2100
2101	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
2102	if test "x$PVM" = "x"; then
2103		PVM="0"
2104	fi
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_VERSION_MINOR $PVM
2108_ACEOF
2109
2110	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
2111	if test "x$PVP" = "x"; then
2112		PVP="0"
2113	fi
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_VERSION_PATCHLEVEL $PVP
2117_ACEOF
2118
2119
2120
2121
2122ac_config_headers="$ac_config_headers config.h"
2123
2124ac_aux_dir=
2125for ac_dir in . "$srcdir"/.; do
2126  if test -f "$ac_dir/install-sh"; then
2127    ac_aux_dir=$ac_dir
2128    ac_install_sh="$ac_aux_dir/install-sh -c"
2129    break
2130  elif test -f "$ac_dir/install.sh"; then
2131    ac_aux_dir=$ac_dir
2132    ac_install_sh="$ac_aux_dir/install.sh -c"
2133    break
2134  elif test -f "$ac_dir/shtool"; then
2135    ac_aux_dir=$ac_dir
2136    ac_install_sh="$ac_aux_dir/shtool install -c"
2137    break
2138  fi
2139done
2140if test -z "$ac_aux_dir"; then
2141  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2142$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2143   { (exit 1); exit 1; }; }
2144fi
2145
2146# These three variables are undocumented and unsupported,
2147# and are intended to be withdrawn in a future Autoconf release.
2148# They can cause serious problems if a builder's source tree is in a directory
2149# whose full name contains unusual characters.
2150ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2151ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2152ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2153
2154
2155
2156am__api_version='1.10'
2157
2158# Find a good install program.  We prefer a C program (faster),
2159# so one script is as good as another.  But avoid the broken or
2160# incompatible versions:
2161# SysV /etc/install, /usr/sbin/install
2162# SunOS /usr/etc/install
2163# IRIX /sbin/install
2164# AIX /bin/install
2165# AmigaOS /C/install, which installs bootblocks on floppy discs
2166# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2167# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2168# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2169# OS/2's system install, which has a completely different semantic
2170# ./install, which can be erroneously created by make from ./install.sh.
2171# Reject install programs that cannot install multiple files.
2172{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2173$as_echo_n "checking for a BSD-compatible install... " >&6; }
2174if test -z "$INSTALL"; then
2175if test "${ac_cv_path_install+set}" = set; then
2176  $as_echo_n "(cached) " >&6
2177else
2178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181  IFS=$as_save_IFS
2182  test -z "$as_dir" && as_dir=.
2183  # Account for people who put trailing slashes in PATH elements.
2184case $as_dir/ in
2185  ./ | .// | /cC/* | \
2186  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2187  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2188  /usr/ucb/* ) ;;
2189  *)
2190    # OSF1 and SCO ODT 3.0 have their own names for install.
2191    # Don't use installbsd from OSF since it installs stuff as root
2192    # by default.
2193    for ac_prog in ginstall scoinst install; do
2194      for ac_exec_ext in '' $ac_executable_extensions; do
2195	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2196	  if test $ac_prog = install &&
2197	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2198	    # AIX install.  It has an incompatible calling convention.
2199	    :
2200	  elif test $ac_prog = install &&
2201	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2202	    # program-specific install script used by HP pwplus--don't use.
2203	    :
2204	  else
2205	    rm -rf conftest.one conftest.two conftest.dir
2206	    echo one > conftest.one
2207	    echo two > conftest.two
2208	    mkdir conftest.dir
2209	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2210	      test -s conftest.one && test -s conftest.two &&
2211	      test -s conftest.dir/conftest.one &&
2212	      test -s conftest.dir/conftest.two
2213	    then
2214	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2215	      break 3
2216	    fi
2217	  fi
2218	fi
2219      done
2220    done
2221    ;;
2222esac
2223
2224done
2225IFS=$as_save_IFS
2226
2227rm -rf conftest.one conftest.two conftest.dir
2228
2229fi
2230  if test "${ac_cv_path_install+set}" = set; then
2231    INSTALL=$ac_cv_path_install
2232  else
2233    # As a last resort, use the slow shell script.  Don't cache a
2234    # value for INSTALL within a source directory, because that will
2235    # break other packages using the cache if that directory is
2236    # removed, or if the value is a relative name.
2237    INSTALL=$ac_install_sh
2238  fi
2239fi
2240{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2241$as_echo "$INSTALL" >&6; }
2242
2243# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2244# It thinks the first close brace ends the variable substitution.
2245test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2246
2247test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2248
2249test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2250
2251{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2252$as_echo_n "checking whether build environment is sane... " >&6; }
2253# Just in case
2254sleep 1
2255echo timestamp > conftest.file
2256# Do `set' in a subshell so we don't clobber the current shell's
2257# arguments.  Must try -L first in case configure is actually a
2258# symlink; some systems play weird games with the mod time of symlinks
2259# (eg FreeBSD returns the mod time of the symlink's containing
2260# directory).
2261if (
2262   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2263   if test "$*" = "X"; then
2264      # -L didn't work.
2265      set X `ls -t $srcdir/configure conftest.file`
2266   fi
2267   rm -f conftest.file
2268   if test "$*" != "X $srcdir/configure conftest.file" \
2269      && test "$*" != "X conftest.file $srcdir/configure"; then
2270
2271      # If neither matched, then we have a broken ls.  This can happen
2272      # if, for instance, CONFIG_SHELL is bash and it inherits a
2273      # broken ls alias from the environment.  This has actually
2274      # happened.  Such a system could not be considered "sane".
2275      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2276alias in your environment" >&5
2277$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2278alias in your environment" >&2;}
2279   { (exit 1); exit 1; }; }
2280   fi
2281
2282   test "$2" = conftest.file
2283   )
2284then
2285   # Ok.
2286   :
2287else
2288   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2289Check your system clock" >&5
2290$as_echo "$as_me: error: newly created file is older than distributed files!
2291Check your system clock" >&2;}
2292   { (exit 1); exit 1; }; }
2293fi
2294{ $as_echo "$as_me:$LINENO: result: yes" >&5
2295$as_echo "yes" >&6; }
2296test "$program_prefix" != NONE &&
2297  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2298# Use a double $ so make ignores it.
2299test "$program_suffix" != NONE &&
2300  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2301# Double any \ or $.
2302# By default was `s,x,x', remove it if useless.
2303ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2304program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2305
2306# expand $ac_aux_dir to an absolute path
2307am_aux_dir=`cd $ac_aux_dir && pwd`
2308
2309test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2310# Use eval to expand $SHELL
2311if eval "$MISSING --run true"; then
2312  am_missing_run="$MISSING --run "
2313else
2314  am_missing_run=
2315  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2316$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2317fi
2318
2319{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2320$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2321if test -z "$MKDIR_P"; then
2322  if test "${ac_cv_path_mkdir+set}" = set; then
2323  $as_echo_n "(cached) " >&6
2324else
2325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330  for ac_prog in mkdir gmkdir; do
2331	 for ac_exec_ext in '' $ac_executable_extensions; do
2332	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2333	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2334	     'mkdir (GNU coreutils) '* | \
2335	     'mkdir (coreutils) '* | \
2336	     'mkdir (fileutils) '4.1*)
2337	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2338	       break 3;;
2339	   esac
2340	 done
2341       done
2342done
2343IFS=$as_save_IFS
2344
2345fi
2346
2347  if test "${ac_cv_path_mkdir+set}" = set; then
2348    MKDIR_P="$ac_cv_path_mkdir -p"
2349  else
2350    # As a last resort, use the slow shell script.  Don't cache a
2351    # value for MKDIR_P within a source directory, because that will
2352    # break other packages using the cache if that directory is
2353    # removed, or if the value is a relative name.
2354    test -d ./--version && rmdir ./--version
2355    MKDIR_P="$ac_install_sh -d"
2356  fi
2357fi
2358{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2359$as_echo "$MKDIR_P" >&6; }
2360
2361mkdir_p="$MKDIR_P"
2362case $mkdir_p in
2363  [\\/$]* | ?:[\\/]*) ;;
2364  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2365esac
2366
2367for ac_prog in gawk mawk nawk awk
2368do
2369  # Extract the first word of "$ac_prog", so it can be a program name with args.
2370set dummy $ac_prog; ac_word=$2
2371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
2373if test "${ac_cv_prog_AWK+set}" = set; then
2374  $as_echo_n "(cached) " >&6
2375else
2376  if test -n "$AWK"; then
2377  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382  IFS=$as_save_IFS
2383  test -z "$as_dir" && as_dir=.
2384  for ac_exec_ext in '' $ac_executable_extensions; do
2385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386    ac_cv_prog_AWK="$ac_prog"
2387    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388    break 2
2389  fi
2390done
2391done
2392IFS=$as_save_IFS
2393
2394fi
2395fi
2396AWK=$ac_cv_prog_AWK
2397if test -n "$AWK"; then
2398  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2399$as_echo "$AWK" >&6; }
2400else
2401  { $as_echo "$as_me:$LINENO: result: no" >&5
2402$as_echo "no" >&6; }
2403fi
2404
2405
2406  test -n "$AWK" && break
2407done
2408
2409{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2410$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2411set x ${MAKE-make}
2412ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2413if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2414  $as_echo_n "(cached) " >&6
2415else
2416  cat >conftest.make <<\_ACEOF
2417SHELL = /bin/sh
2418all:
2419	@echo '@@@%%%=$(MAKE)=@@@%%%'
2420_ACEOF
2421# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2422case `${MAKE-make} -f conftest.make 2>/dev/null` in
2423  *@@@%%%=?*=@@@%%%*)
2424    eval ac_cv_prog_make_${ac_make}_set=yes;;
2425  *)
2426    eval ac_cv_prog_make_${ac_make}_set=no;;
2427esac
2428rm -f conftest.make
2429fi
2430if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2431  { $as_echo "$as_me:$LINENO: result: yes" >&5
2432$as_echo "yes" >&6; }
2433  SET_MAKE=
2434else
2435  { $as_echo "$as_me:$LINENO: result: no" >&5
2436$as_echo "no" >&6; }
2437  SET_MAKE="MAKE=${MAKE-make}"
2438fi
2439
2440rm -rf .tst 2>/dev/null
2441mkdir .tst 2>/dev/null
2442if test -d .tst; then
2443  am__leading_dot=.
2444else
2445  am__leading_dot=_
2446fi
2447rmdir .tst 2>/dev/null
2448
2449if test "`cd $srcdir && pwd`" != "`pwd`"; then
2450  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2451  # is not polluted with repeated "-I."
2452  am__isrc=' -I$(srcdir)'
2453  # test to see if srcdir already configured
2454  if test -f $srcdir/config.status; then
2455    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2456$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2457   { (exit 1); exit 1; }; }
2458  fi
2459fi
2460
2461# test whether we have cygpath
2462if test -z "$CYGPATH_W"; then
2463  if (cygpath --version) >/dev/null 2>/dev/null; then
2464    CYGPATH_W='cygpath -w'
2465  else
2466    CYGPATH_W=echo
2467  fi
2468fi
2469
2470
2471# Define the identity of the package.
2472 PACKAGE='xf86-video-mga'
2473 VERSION='1.4.10'
2474
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE "$PACKAGE"
2478_ACEOF
2479
2480
2481cat >>confdefs.h <<_ACEOF
2482#define VERSION "$VERSION"
2483_ACEOF
2484
2485# Some tools Automake needs.
2486
2487ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2488
2489
2490AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2491
2492
2493AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2494
2495
2496AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2497
2498
2499MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2500
2501install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2502
2503# Installed binaries are usually stripped using `strip' when the user
2504# run `make install-strip'.  However `strip' might not be the right
2505# tool to use in cross-compilation environments, therefore Automake
2506# will honor the `STRIP' environment variable to overrule this program.
2507if test "$cross_compiling" != no; then
2508  if test -n "$ac_tool_prefix"; then
2509  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2510set dummy ${ac_tool_prefix}strip; ac_word=$2
2511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2512$as_echo_n "checking for $ac_word... " >&6; }
2513if test "${ac_cv_prog_STRIP+set}" = set; then
2514  $as_echo_n "(cached) " >&6
2515else
2516  if test -n "$STRIP"; then
2517  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524  for ac_exec_ext in '' $ac_executable_extensions; do
2525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2527    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528    break 2
2529  fi
2530done
2531done
2532IFS=$as_save_IFS
2533
2534fi
2535fi
2536STRIP=$ac_cv_prog_STRIP
2537if test -n "$STRIP"; then
2538  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2539$as_echo "$STRIP" >&6; }
2540else
2541  { $as_echo "$as_me:$LINENO: result: no" >&5
2542$as_echo "no" >&6; }
2543fi
2544
2545
2546fi
2547if test -z "$ac_cv_prog_STRIP"; then
2548  ac_ct_STRIP=$STRIP
2549  # Extract the first word of "strip", so it can be a program name with args.
2550set dummy strip; ac_word=$2
2551{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
2553if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2554  $as_echo_n "(cached) " >&6
2555else
2556  if test -n "$ac_ct_STRIP"; then
2557  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564  for ac_exec_ext in '' $ac_executable_extensions; do
2565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566    ac_cv_prog_ac_ct_STRIP="strip"
2567    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    break 2
2569  fi
2570done
2571done
2572IFS=$as_save_IFS
2573
2574fi
2575fi
2576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2577if test -n "$ac_ct_STRIP"; then
2578  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2579$as_echo "$ac_ct_STRIP" >&6; }
2580else
2581  { $as_echo "$as_me:$LINENO: result: no" >&5
2582$as_echo "no" >&6; }
2583fi
2584
2585  if test "x$ac_ct_STRIP" = x; then
2586    STRIP=":"
2587  else
2588    case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594    STRIP=$ac_ct_STRIP
2595  fi
2596else
2597  STRIP="$ac_cv_prog_STRIP"
2598fi
2599
2600fi
2601INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2602
2603# We need awk for the "check" target.  The system "awk" is bad on
2604# some platforms.
2605# Always define AMTAR for backward compatibility.
2606
2607AMTAR=${AMTAR-"${am_missing_run}tar"}
2608
2609am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2610
2611
2612
2613
2614
2615
2616{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2617$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2618    # Check whether --enable-maintainer-mode was given.
2619if test "${enable_maintainer_mode+set}" = set; then
2620  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2621else
2622  USE_MAINTAINER_MODE=no
2623fi
2624
2625  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2626$as_echo "$USE_MAINTAINER_MODE" >&6; }
2627   if test $USE_MAINTAINER_MODE = yes; then
2628  MAINTAINER_MODE_TRUE=
2629  MAINTAINER_MODE_FALSE='#'
2630else
2631  MAINTAINER_MODE_TRUE='#'
2632  MAINTAINER_MODE_FALSE=
2633fi
2634
2635  MAINT=$MAINTAINER_MODE_TRUE
2636
2637
2638
2639# Checks for programs.
2640# Check whether --enable-static was given.
2641if test "${enable_static+set}" = set; then
2642  enableval=$enable_static; p=${PACKAGE-default}
2643    case $enableval in
2644    yes) enable_static=yes ;;
2645    no) enable_static=no ;;
2646    *)
2647     enable_static=no
2648      # Look at the argument we got.  We use all the common list separators.
2649      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2650      for pkg in $enableval; do
2651	IFS="$lt_save_ifs"
2652	if test "X$pkg" = "X$p"; then
2653	  enable_static=yes
2654	fi
2655      done
2656      IFS="$lt_save_ifs"
2657      ;;
2658    esac
2659else
2660  enable_static=no
2661fi
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671case `pwd` in
2672  *\ * | *\	*)
2673    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2674$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2675esac
2676
2677
2678
2679macro_version='2.2.6'
2680macro_revision='1.3012'
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694ltmain="$ac_aux_dir/ltmain.sh"
2695
2696# Make sure we can run config.sub.
2697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2699$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2700   { (exit 1); exit 1; }; }
2701
2702{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2703$as_echo_n "checking build system type... " >&6; }
2704if test "${ac_cv_build+set}" = set; then
2705  $as_echo_n "(cached) " >&6
2706else
2707  ac_build_alias=$build_alias
2708test "x$ac_build_alias" = x &&
2709  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710test "x$ac_build_alias" = x &&
2711  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2712$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2713   { (exit 1); exit 1; }; }
2714ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2715  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2716$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2717   { (exit 1); exit 1; }; }
2718
2719fi
2720{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2721$as_echo "$ac_cv_build" >&6; }
2722case $ac_cv_build in
2723*-*-*) ;;
2724*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2725$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2726   { (exit 1); exit 1; }; };;
2727esac
2728build=$ac_cv_build
2729ac_save_IFS=$IFS; IFS='-'
2730set x $ac_cv_build
2731shift
2732build_cpu=$1
2733build_vendor=$2
2734shift; shift
2735# Remember, the first character of IFS is used to create $*,
2736# except with old shells:
2737build_os=$*
2738IFS=$ac_save_IFS
2739case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740
2741
2742{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2743$as_echo_n "checking host system type... " >&6; }
2744if test "${ac_cv_host+set}" = set; then
2745  $as_echo_n "(cached) " >&6
2746else
2747  if test "x$host_alias" = x; then
2748  ac_cv_host=$ac_cv_build
2749else
2750  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2751    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2752$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2753   { (exit 1); exit 1; }; }
2754fi
2755
2756fi
2757{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2758$as_echo "$ac_cv_host" >&6; }
2759case $ac_cv_host in
2760*-*-*) ;;
2761*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2762$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2763   { (exit 1); exit 1; }; };;
2764esac
2765host=$ac_cv_host
2766ac_save_IFS=$IFS; IFS='-'
2767set x $ac_cv_host
2768shift
2769host_cpu=$1
2770host_vendor=$2
2771shift; shift
2772# Remember, the first character of IFS is used to create $*,
2773# except with old shells:
2774host_os=$*
2775IFS=$ac_save_IFS
2776case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2777
2778
2779DEPDIR="${am__leading_dot}deps"
2780
2781ac_config_commands="$ac_config_commands depfiles"
2782
2783
2784am_make=${MAKE-make}
2785cat > confinc << 'END'
2786am__doit:
2787	@echo done
2788.PHONY: am__doit
2789END
2790# If we don't find an include directive, just comment out the code.
2791{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2792$as_echo_n "checking for style of include used by $am_make... " >&6; }
2793am__include="#"
2794am__quote=
2795_am_result=none
2796# First try GNU make style include.
2797echo "include confinc" > confmf
2798# We grep out `Entering directory' and `Leaving directory'
2799# messages which can occur if `w' ends up in MAKEFLAGS.
2800# In particular we don't look at `^make:' because GNU make might
2801# be invoked under some other name (usually "gmake"), in which
2802# case it prints its new name instead of `make'.
2803if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2804   am__include=include
2805   am__quote=
2806   _am_result=GNU
2807fi
2808# Now try BSD make style include.
2809if test "$am__include" = "#"; then
2810   echo '.include "confinc"' > confmf
2811   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2812      am__include=.include
2813      am__quote="\""
2814      _am_result=BSD
2815   fi
2816fi
2817
2818
2819{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2820$as_echo "$_am_result" >&6; }
2821rm -f confinc confmf
2822
2823# Check whether --enable-dependency-tracking was given.
2824if test "${enable_dependency_tracking+set}" = set; then
2825  enableval=$enable_dependency_tracking;
2826fi
2827
2828if test "x$enable_dependency_tracking" != xno; then
2829  am_depcomp="$ac_aux_dir/depcomp"
2830  AMDEPBACKSLASH='\'
2831fi
2832 if test "x$enable_dependency_tracking" != xno; then
2833  AMDEP_TRUE=
2834  AMDEP_FALSE='#'
2835else
2836  AMDEP_TRUE='#'
2837  AMDEP_FALSE=
2838fi
2839
2840
2841ac_ext=c
2842ac_cpp='$CPP $CPPFLAGS'
2843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846if test -n "$ac_tool_prefix"; then
2847  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848set dummy ${ac_tool_prefix}gcc; ac_word=$2
2849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if test "${ac_cv_prog_CC+set}" = set; then
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$CC"; then
2855  ac_cv_prog_CC="$CC" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862  for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
2876  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2877$as_echo "$CC" >&6; }
2878else
2879  { $as_echo "$as_me:$LINENO: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884fi
2885if test -z "$ac_cv_prog_CC"; then
2886  ac_ct_CC=$CC
2887  # Extract the first word of "gcc", so it can be a program name with args.
2888set dummy gcc; ac_word=$2
2889{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$ac_ct_CC"; then
2895  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902  for ac_exec_ext in '' $ac_executable_extensions; do
2903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904    ac_cv_prog_ac_ct_CC="gcc"
2905    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915if test -n "$ac_ct_CC"; then
2916  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917$as_echo "$ac_ct_CC" >&6; }
2918else
2919  { $as_echo "$as_me:$LINENO: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923  if test "x$ac_ct_CC" = x; then
2924    CC=""
2925  else
2926    case $cross_compiling:$ac_tool_warned in
2927yes:)
2928{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930ac_tool_warned=yes ;;
2931esac
2932    CC=$ac_ct_CC
2933  fi
2934else
2935  CC="$ac_cv_prog_CC"
2936fi
2937
2938if test -z "$CC"; then
2939          if test -n "$ac_tool_prefix"; then
2940    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2941set dummy ${ac_tool_prefix}cc; ac_word=$2
2942{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if test "${ac_cv_prog_CC+set}" = set; then
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$CC"; then
2948  ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955  for ac_exec_ext in '' $ac_executable_extensions; do
2956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957    ac_cv_prog_CC="${ac_tool_prefix}cc"
2958    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
2969  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2970$as_echo "$CC" >&6; }
2971else
2972  { $as_echo "$as_me:$LINENO: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977  fi
2978fi
2979if test -z "$CC"; then
2980  # Extract the first word of "cc", so it can be a program name with args.
2981set dummy cc; ac_word=$2
2982{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2983$as_echo_n "checking for $ac_word... " >&6; }
2984if test "${ac_cv_prog_CC+set}" = set; then
2985  $as_echo_n "(cached) " >&6
2986else
2987  if test -n "$CC"; then
2988  ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
2990  ac_prog_rejected=no
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994  IFS=$as_save_IFS
2995  test -z "$as_dir" && as_dir=.
2996  for ac_exec_ext in '' $ac_executable_extensions; do
2997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999       ac_prog_rejected=yes
3000       continue
3001     fi
3002    ac_cv_prog_CC="cc"
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
3010if test $ac_prog_rejected = yes; then
3011  # We found a bogon in the path, so make sure we never use it.
3012  set dummy $ac_cv_prog_CC
3013  shift
3014  if test $# != 0; then
3015    # We chose a different compiler from the bogus one.
3016    # However, it has the same basename, so the bogon will be chosen
3017    # first if we set CC to just the basename; use the full file name.
3018    shift
3019    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3020  fi
3021fi
3022fi
3023fi
3024CC=$ac_cv_prog_CC
3025if test -n "$CC"; then
3026  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3027$as_echo "$CC" >&6; }
3028else
3029  { $as_echo "$as_me:$LINENO: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033
3034fi
3035if test -z "$CC"; then
3036  if test -n "$ac_tool_prefix"; then
3037  for ac_prog in cl.exe
3038  do
3039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3042$as_echo_n "checking for $ac_word... " >&6; }
3043if test "${ac_cv_prog_CC+set}" = set; then
3044  $as_echo_n "(cached) " >&6
3045else
3046  if test -n "$CC"; then
3047  ac_cv_prog_CC="$CC" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052  IFS=$as_save_IFS
3053  test -z "$as_dir" && as_dir=.
3054  for ac_exec_ext in '' $ac_executable_extensions; do
3055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3057    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061done
3062IFS=$as_save_IFS
3063
3064fi
3065fi
3066CC=$ac_cv_prog_CC
3067if test -n "$CC"; then
3068  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3069$as_echo "$CC" >&6; }
3070else
3071  { $as_echo "$as_me:$LINENO: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075
3076    test -n "$CC" && break
3077  done
3078fi
3079if test -z "$CC"; then
3080  ac_ct_CC=$CC
3081  for ac_prog in cl.exe
3082do
3083  # Extract the first word of "$ac_prog", so it can be a program name with args.
3084set dummy $ac_prog; ac_word=$2
3085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3088  $as_echo_n "(cached) " >&6
3089else
3090  if test -n "$ac_ct_CC"; then
3091  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096  IFS=$as_save_IFS
3097  test -z "$as_dir" && as_dir=.
3098  for ac_exec_ext in '' $ac_executable_extensions; do
3099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100    ac_cv_prog_ac_ct_CC="$ac_prog"
3101    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111if test -n "$ac_ct_CC"; then
3112  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3113$as_echo "$ac_ct_CC" >&6; }
3114else
3115  { $as_echo "$as_me:$LINENO: result: no" >&5
3116$as_echo "no" >&6; }
3117fi
3118
3119
3120  test -n "$ac_ct_CC" && break
3121done
3122
3123  if test "x$ac_ct_CC" = x; then
3124    CC=""
3125  else
3126    case $cross_compiling:$ac_tool_warned in
3127yes:)
3128{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130ac_tool_warned=yes ;;
3131esac
3132    CC=$ac_ct_CC
3133  fi
3134fi
3135
3136fi
3137
3138
3139test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3142See \`config.log' for more details." >&5
3143$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3144See \`config.log' for more details." >&2;}
3145   { (exit 1); exit 1; }; }; }
3146
3147# Provide some information about the compiler.
3148$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3149set X $ac_compile
3150ac_compiler=$2
3151{ (ac_try="$ac_compiler --version >&5"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3157$as_echo "$ac_try_echo") >&5
3158  (eval "$ac_compiler --version >&5") 2>&5
3159  ac_status=$?
3160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }
3162{ (ac_try="$ac_compiler -v >&5"
3163case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168$as_echo "$ac_try_echo") >&5
3169  (eval "$ac_compiler -v >&5") 2>&5
3170  ac_status=$?
3171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }
3173{ (ac_try="$ac_compiler -V >&5"
3174case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179$as_echo "$ac_try_echo") >&5
3180  (eval "$ac_compiler -V >&5") 2>&5
3181  ac_status=$?
3182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }
3184
3185cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h.  */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200ac_clean_files_save=$ac_clean_files
3201ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3202# Try to create an executable without -o first, disregard a.out.
3203# It will help us diagnose broken compilers, and finding out an intuition
3204# of exeext.
3205{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3206$as_echo_n "checking for C compiler default output file name... " >&6; }
3207ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3208
3209# The possible output files:
3210ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3211
3212ac_rmfiles=
3213for ac_file in $ac_files
3214do
3215  case $ac_file in
3216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3218  esac
3219done
3220rm -f $ac_rmfiles
3221
3222if { (ac_try="$ac_link_default"
3223case "(($ac_try" in
3224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225  *) ac_try_echo=$ac_try;;
3226esac
3227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228$as_echo "$ac_try_echo") >&5
3229  (eval "$ac_link_default") 2>&5
3230  ac_status=$?
3231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; then
3233  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3234# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3235# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3236# so that the user can short-circuit this test for compilers unknown to
3237# Autoconf.
3238for ac_file in $ac_files ''
3239do
3240  test -f "$ac_file" || continue
3241  case $ac_file in
3242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3243	;;
3244    [ab].out )
3245	# We found the default executable, but exeext='' is most
3246	# certainly right.
3247	break;;
3248    *.* )
3249        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3250	then :; else
3251	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252	fi
3253	# We set ac_cv_exeext here because the later test for it is not
3254	# safe: cross compilers may not add the suffix if given an `-o'
3255	# argument, so we may need to know it at that point already.
3256	# Even if this section looks crufty: it has the advantage of
3257	# actually working.
3258	break;;
3259    * )
3260	break;;
3261  esac
3262done
3263test "$ac_cv_exeext" = no && ac_cv_exeext=
3264
3265else
3266  ac_file=''
3267fi
3268
3269{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3270$as_echo "$ac_file" >&6; }
3271if test -z "$ac_file"; then
3272  $as_echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
3275{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3278See \`config.log' for more details." >&5
3279$as_echo "$as_me: error: C compiler cannot create executables
3280See \`config.log' for more details." >&2;}
3281   { (exit 77); exit 77; }; }; }
3282fi
3283
3284ac_exeext=$ac_cv_exeext
3285
3286# Check that the compiler produces executables we can run.  If not, either
3287# the compiler is broken, or we cross compile.
3288{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3289$as_echo_n "checking whether the C compiler works... " >&6; }
3290# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3291# If not cross compiling, check that we can run a simple program.
3292if test "$cross_compiling" != yes; then
3293  if { ac_try='./$ac_file'
3294  { (case "(($ac_try" in
3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296  *) ac_try_echo=$ac_try;;
3297esac
3298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299$as_echo "$ac_try_echo") >&5
3300  (eval "$ac_try") 2>&5
3301  ac_status=$?
3302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; }; then
3304    cross_compiling=no
3305  else
3306    if test "$cross_compiling" = maybe; then
3307	cross_compiling=yes
3308    else
3309	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3312If you meant to cross compile, use \`--host'.
3313See \`config.log' for more details." >&5
3314$as_echo "$as_me: error: cannot run C compiled programs.
3315If you meant to cross compile, use \`--host'.
3316See \`config.log' for more details." >&2;}
3317   { (exit 1); exit 1; }; }; }
3318    fi
3319  fi
3320fi
3321{ $as_echo "$as_me:$LINENO: result: yes" >&5
3322$as_echo "yes" >&6; }
3323
3324rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325ac_clean_files=$ac_clean_files_save
3326# Check that the compiler produces executables we can run.  If not, either
3327# the compiler is broken, or we cross compile.
3328{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3329$as_echo_n "checking whether we are cross compiling... " >&6; }
3330{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3331$as_echo "$cross_compiling" >&6; }
3332
3333{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3334$as_echo_n "checking for suffix of executables... " >&6; }
3335if { (ac_try="$ac_link"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341$as_echo "$ac_try_echo") >&5
3342  (eval "$ac_link") 2>&5
3343  ac_status=$?
3344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; then
3346  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3348# work properly (i.e., refer to `conftest.exe'), while it won't with
3349# `rm'.
3350for ac_file in conftest.exe conftest conftest.*; do
3351  test -f "$ac_file" || continue
3352  case $ac_file in
3353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355	  break;;
3356    * ) break;;
3357  esac
3358done
3359else
3360  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3363See \`config.log' for more details." >&5
3364$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3365See \`config.log' for more details." >&2;}
3366   { (exit 1); exit 1; }; }; }
3367fi
3368
3369rm -f conftest$ac_cv_exeext
3370{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3371$as_echo "$ac_cv_exeext" >&6; }
3372
3373rm -f conftest.$ac_ext
3374EXEEXT=$ac_cv_exeext
3375ac_exeext=$EXEEXT
3376{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3377$as_echo_n "checking for suffix of object files... " >&6; }
3378if test "${ac_cv_objext+set}" = set; then
3379  $as_echo_n "(cached) " >&6
3380else
3381  cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h.  */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h.  */
3387
3388int
3389main ()
3390{
3391
3392  ;
3393  return 0;
3394}
3395_ACEOF
3396rm -f conftest.o conftest.obj
3397if { (ac_try="$ac_compile"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403$as_echo "$ac_try_echo") >&5
3404  (eval "$ac_compile") 2>&5
3405  ac_status=$?
3406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; then
3408  for ac_file in conftest.o conftest.obj conftest.*; do
3409  test -f "$ac_file" || continue;
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3412    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3413       break;;
3414  esac
3415done
3416else
3417  $as_echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3423See \`config.log' for more details." >&5
3424$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3425See \`config.log' for more details." >&2;}
3426   { (exit 1); exit 1; }; }; }
3427fi
3428
3429rm -f conftest.$ac_cv_objext conftest.$ac_ext
3430fi
3431{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3432$as_echo "$ac_cv_objext" >&6; }
3433OBJEXT=$ac_cv_objext
3434ac_objext=$OBJEXT
3435{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3436$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3437if test "${ac_cv_c_compiler_gnu+set}" = set; then
3438  $as_echo_n "(cached) " >&6
3439else
3440  cat >conftest.$ac_ext <<_ACEOF
3441/* confdefs.h.  */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450#ifndef __GNUC__
3451       choke me
3452#endif
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (ac_try="$ac_compile"
3460case "(($ac_try" in
3461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462  *) ac_try_echo=$ac_try;;
3463esac
3464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465$as_echo "$ac_try_echo") >&5
3466  (eval "$ac_compile") 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } && {
3473	 test -z "$ac_c_werror_flag" ||
3474	 test ! -s conftest.err
3475       } && test -s conftest.$ac_objext; then
3476  ac_compiler_gnu=yes
3477else
3478  $as_echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481	ac_compiler_gnu=no
3482fi
3483
3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486
3487fi
3488{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3489$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3490if test $ac_compiler_gnu = yes; then
3491  GCC=yes
3492else
3493  GCC=
3494fi
3495ac_test_CFLAGS=${CFLAGS+set}
3496ac_save_CFLAGS=$CFLAGS
3497{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3498$as_echo_n "checking whether $CC accepts -g... " >&6; }
3499if test "${ac_cv_prog_cc_g+set}" = set; then
3500  $as_echo_n "(cached) " >&6
3501else
3502  ac_save_c_werror_flag=$ac_c_werror_flag
3503   ac_c_werror_flag=yes
3504   ac_cv_prog_cc_g=no
3505   CFLAGS="-g"
3506   cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h.  */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h.  */
3512
3513int
3514main ()
3515{
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521rm -f conftest.$ac_objext
3522if { (ac_try="$ac_compile"
3523case "(($ac_try" in
3524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525  *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3528$as_echo "$ac_try_echo") >&5
3529  (eval "$ac_compile") 2>conftest.er1
3530  ac_status=$?
3531  grep -v '^ *+' conftest.er1 >conftest.err
3532  rm -f conftest.er1
3533  cat conftest.err >&5
3534  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); } && {
3536	 test -z "$ac_c_werror_flag" ||
3537	 test ! -s conftest.err
3538       } && test -s conftest.$ac_objext; then
3539  ac_cv_prog_cc_g=yes
3540else
3541  $as_echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544	CFLAGS=""
3545      cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h.  */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext
3561if { (ac_try="$ac_compile"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3567$as_echo "$ac_try_echo") >&5
3568  (eval "$ac_compile") 2>conftest.er1
3569  ac_status=$?
3570  grep -v '^ *+' conftest.er1 >conftest.err
3571  rm -f conftest.er1
3572  cat conftest.err >&5
3573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); } && {
3575	 test -z "$ac_c_werror_flag" ||
3576	 test ! -s conftest.err
3577       } && test -s conftest.$ac_objext; then
3578  :
3579else
3580  $as_echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583	ac_c_werror_flag=$ac_save_c_werror_flag
3584	 CFLAGS="-g"
3585	 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext
3601if { (ac_try="$ac_compile"
3602case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607$as_echo "$ac_try_echo") >&5
3608  (eval "$ac_compile") 2>conftest.er1
3609  ac_status=$?
3610  grep -v '^ *+' conftest.er1 >conftest.err
3611  rm -f conftest.er1
3612  cat conftest.err >&5
3613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); } && {
3615	 test -z "$ac_c_werror_flag" ||
3616	 test ! -s conftest.err
3617       } && test -s conftest.$ac_objext; then
3618  ac_cv_prog_cc_g=yes
3619else
3620  $as_echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623
3624fi
3625
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627fi
3628
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630fi
3631
3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633   ac_c_werror_flag=$ac_save_c_werror_flag
3634fi
3635{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3636$as_echo "$ac_cv_prog_cc_g" >&6; }
3637if test "$ac_test_CFLAGS" = set; then
3638  CFLAGS=$ac_save_CFLAGS
3639elif test $ac_cv_prog_cc_g = yes; then
3640  if test "$GCC" = yes; then
3641    CFLAGS="-g -O2"
3642  else
3643    CFLAGS="-g"
3644  fi
3645else
3646  if test "$GCC" = yes; then
3647    CFLAGS="-O2"
3648  else
3649    CFLAGS=
3650  fi
3651fi
3652{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3653$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654if test "${ac_cv_prog_cc_c89+set}" = set; then
3655  $as_echo_n "(cached) " >&6
3656else
3657  ac_cv_prog_cc_c89=no
3658ac_save_CC=$CC
3659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665#include <stdarg.h>
3666#include <stdio.h>
3667#include <sys/types.h>
3668#include <sys/stat.h>
3669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3670struct buf { int x; };
3671FILE * (*rcsopen) (struct buf *, struct stat *, int);
3672static char *e (p, i)
3673     char **p;
3674     int i;
3675{
3676  return p[i];
3677}
3678static char *f (char * (*g) (char **, int), char **p, ...)
3679{
3680  char *s;
3681  va_list v;
3682  va_start (v,p);
3683  s = g (p, va_arg (v,int));
3684  va_end (v);
3685  return s;
3686}
3687
3688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3689   function prototypes and stuff, but not '\xHH' hex character constants.
3690   These don't provoke an error unfortunately, instead are silently treated
3691   as 'x'.  The following induces an error, until -std is added to get
3692   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3693   array size at least.  It's necessary to write '\x00'==0 to get something
3694   that's true only with -std.  */
3695int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3696
3697/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3698   inside strings and character constants.  */
3699#define FOO(x) 'x'
3700int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3701
3702int test (int i, double x);
3703struct s1 {int (*f) (int a);};
3704struct s2 {int (*f) (double a);};
3705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3706int argc;
3707char **argv;
3708int
3709main ()
3710{
3711return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3717	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3718do
3719  CC="$ac_save_CC $ac_arg"
3720  rm -f conftest.$ac_objext
3721if { (ac_try="$ac_compile"
3722case "(($ac_try" in
3723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724  *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3727$as_echo "$ac_try_echo") >&5
3728  (eval "$ac_compile") 2>conftest.er1
3729  ac_status=$?
3730  grep -v '^ *+' conftest.er1 >conftest.err
3731  rm -f conftest.er1
3732  cat conftest.err >&5
3733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); } && {
3735	 test -z "$ac_c_werror_flag" ||
3736	 test ! -s conftest.err
3737       } && test -s conftest.$ac_objext; then
3738  ac_cv_prog_cc_c89=$ac_arg
3739else
3740  $as_echo "$as_me: failed program was:" >&5
3741sed 's/^/| /' conftest.$ac_ext >&5
3742
3743
3744fi
3745
3746rm -f core conftest.err conftest.$ac_objext
3747  test "x$ac_cv_prog_cc_c89" != "xno" && break
3748done
3749rm -f conftest.$ac_ext
3750CC=$ac_save_CC
3751
3752fi
3753# AC_CACHE_VAL
3754case "x$ac_cv_prog_cc_c89" in
3755  x)
3756    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3757$as_echo "none needed" >&6; } ;;
3758  xno)
3759    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3760$as_echo "unsupported" >&6; } ;;
3761  *)
3762    CC="$CC $ac_cv_prog_cc_c89"
3763    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3764$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3765esac
3766
3767
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774depcc="$CC"   am_compiler_list=
3775
3776{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3777$as_echo_n "checking dependency style of $depcc... " >&6; }
3778if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3779  $as_echo_n "(cached) " >&6
3780else
3781  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782  # We make a subdir and do the tests there.  Otherwise we can end up
3783  # making bogus files that we don't know about and never remove.  For
3784  # instance it was reported that on HP-UX the gcc test will end up
3785  # making a dummy file named `D' -- because `-MD' means `put the output
3786  # in D'.
3787  mkdir conftest.dir
3788  # Copy depcomp to subdir because otherwise we won't find it if we're
3789  # using a relative directory.
3790  cp "$am_depcomp" conftest.dir
3791  cd conftest.dir
3792  # We will build objects and dependencies in a subdirectory because
3793  # it helps to detect inapplicable dependency modes.  For instance
3794  # both Tru64's cc and ICC support -MD to output dependencies as a
3795  # side effect of compilation, but ICC will put the dependencies in
3796  # the current directory while Tru64 will put them in the object
3797  # directory.
3798  mkdir sub
3799
3800  am_cv_CC_dependencies_compiler_type=none
3801  if test "$am_compiler_list" = ""; then
3802     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803  fi
3804  for depmode in $am_compiler_list; do
3805    # Setup a source with many dependencies, because some compilers
3806    # like to wrap large dependency lists on column 80 (with \), and
3807    # we should not choose a depcomp mode which is confused by this.
3808    #
3809    # We need to recreate these files for each test, as the compiler may
3810    # overwrite some of them when testing with obscure command lines.
3811    # This happens at least with the AIX C compiler.
3812    : > sub/conftest.c
3813    for i in 1 2 3 4 5 6; do
3814      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816      # Solaris 8's {/usr,}/bin/sh.
3817      touch sub/conftst$i.h
3818    done
3819    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821    case $depmode in
3822    nosideeffect)
3823      # after this tag, mechanisms are not by side-effect, so they'll
3824      # only be used when explicitly requested
3825      if test "x$enable_dependency_tracking" = xyes; then
3826	continue
3827      else
3828	break
3829      fi
3830      ;;
3831    none) break ;;
3832    esac
3833    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3834    # mode.  It turns out that the SunPro C++ compiler does not properly
3835    # handle `-M -o', and we need to detect this.
3836    if depmode=$depmode \
3837       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3840         >/dev/null 2>conftest.err &&
3841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845      # icc doesn't choke on unknown options, it will just issue warnings
3846      # or remarks (even with -Werror).  So we grep stderr for any message
3847      # that says an option was ignored or not supported.
3848      # When given -MP, icc 7.0 and 7.1 complain thusly:
3849      #   icc: Command line warning: ignoring option '-M'; no argument required
3850      # The diagnosis changed in icc 8.0:
3851      #   icc: Command line remark: option '-MP' not supported
3852      if (grep 'ignoring option' conftest.err ||
3853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854        am_cv_CC_dependencies_compiler_type=$depmode
3855        break
3856      fi
3857    fi
3858  done
3859
3860  cd ..
3861  rm -rf conftest.dir
3862else
3863  am_cv_CC_dependencies_compiler_type=none
3864fi
3865
3866fi
3867{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871 if
3872  test "x$enable_dependency_tracking" != xno \
3873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874  am__fastdepCC_TRUE=
3875  am__fastdepCC_FALSE='#'
3876else
3877  am__fastdepCC_TRUE='#'
3878  am__fastdepCC_FALSE=
3879fi
3880
3881
3882{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3883$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3884if test "${ac_cv_path_SED+set}" = set; then
3885  $as_echo_n "(cached) " >&6
3886else
3887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3888     for ac_i in 1 2 3 4 5 6 7; do
3889       ac_script="$ac_script$as_nl$ac_script"
3890     done
3891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3892     $as_unset ac_script || ac_script=
3893     if test -z "$SED"; then
3894  ac_path_SED_found=false
3895  # Loop through the user's path and test for each of PROGNAME-LIST
3896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899  IFS=$as_save_IFS
3900  test -z "$as_dir" && as_dir=.
3901  for ac_prog in sed gsed; do
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3904      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3905# Check for GNU ac_path_SED and select it if it is found.
3906  # Check for GNU $ac_path_SED
3907case `"$ac_path_SED" --version 2>&1` in
3908*GNU*)
3909  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3910*)
3911  ac_count=0
3912  $as_echo_n 0123456789 >"conftest.in"
3913  while :
3914  do
3915    cat "conftest.in" "conftest.in" >"conftest.tmp"
3916    mv "conftest.tmp" "conftest.in"
3917    cp "conftest.in" "conftest.nl"
3918    $as_echo '' >> "conftest.nl"
3919    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921    ac_count=`expr $ac_count + 1`
3922    if test $ac_count -gt ${ac_path_SED_max-0}; then
3923      # Best one so far, save it but keep looking for a better one
3924      ac_cv_path_SED="$ac_path_SED"
3925      ac_path_SED_max=$ac_count
3926    fi
3927    # 10*(2^10) chars as input seems more than enough
3928    test $ac_count -gt 10 && break
3929  done
3930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931esac
3932
3933      $ac_path_SED_found && break 3
3934    done
3935  done
3936done
3937IFS=$as_save_IFS
3938  if test -z "$ac_cv_path_SED"; then
3939    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3940$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3941   { (exit 1); exit 1; }; }
3942  fi
3943else
3944  ac_cv_path_SED=$SED
3945fi
3946
3947fi
3948{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3949$as_echo "$ac_cv_path_SED" >&6; }
3950 SED="$ac_cv_path_SED"
3951  rm -f conftest.sed
3952
3953test -z "$SED" && SED=sed
3954Xsed="$SED -e 1s/^X//"
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3967$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3968if test "${ac_cv_path_GREP+set}" = set; then
3969  $as_echo_n "(cached) " >&6
3970else
3971  if test -z "$GREP"; then
3972  ac_path_GREP_found=false
3973  # Loop through the user's path and test for each of PROGNAME-LIST
3974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976do
3977  IFS=$as_save_IFS
3978  test -z "$as_dir" && as_dir=.
3979  for ac_prog in grep ggrep; do
3980    for ac_exec_ext in '' $ac_executable_extensions; do
3981      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3983# Check for GNU ac_path_GREP and select it if it is found.
3984  # Check for GNU $ac_path_GREP
3985case `"$ac_path_GREP" --version 2>&1` in
3986*GNU*)
3987  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988*)
3989  ac_count=0
3990  $as_echo_n 0123456789 >"conftest.in"
3991  while :
3992  do
3993    cat "conftest.in" "conftest.in" >"conftest.tmp"
3994    mv "conftest.tmp" "conftest.in"
3995    cp "conftest.in" "conftest.nl"
3996    $as_echo 'GREP' >> "conftest.nl"
3997    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999    ac_count=`expr $ac_count + 1`
4000    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001      # Best one so far, save it but keep looking for a better one
4002      ac_cv_path_GREP="$ac_path_GREP"
4003      ac_path_GREP_max=$ac_count
4004    fi
4005    # 10*(2^10) chars as input seems more than enough
4006    test $ac_count -gt 10 && break
4007  done
4008  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009esac
4010
4011      $ac_path_GREP_found && break 3
4012    done
4013  done
4014done
4015IFS=$as_save_IFS
4016  if test -z "$ac_cv_path_GREP"; then
4017    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019   { (exit 1); exit 1; }; }
4020  fi
4021else
4022  ac_cv_path_GREP=$GREP
4023fi
4024
4025fi
4026{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027$as_echo "$ac_cv_path_GREP" >&6; }
4028 GREP="$ac_cv_path_GREP"
4029
4030
4031{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4032$as_echo_n "checking for egrep... " >&6; }
4033if test "${ac_cv_path_EGREP+set}" = set; then
4034  $as_echo_n "(cached) " >&6
4035else
4036  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037   then ac_cv_path_EGREP="$GREP -E"
4038   else
4039     if test -z "$EGREP"; then
4040  ac_path_EGREP_found=false
4041  # Loop through the user's path and test for each of PROGNAME-LIST
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047  for ac_prog in egrep; do
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4050      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4051# Check for GNU ac_path_EGREP and select it if it is found.
4052  # Check for GNU $ac_path_EGREP
4053case `"$ac_path_EGREP" --version 2>&1` in
4054*GNU*)
4055  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056*)
4057  ac_count=0
4058  $as_echo_n 0123456789 >"conftest.in"
4059  while :
4060  do
4061    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062    mv "conftest.tmp" "conftest.in"
4063    cp "conftest.in" "conftest.nl"
4064    $as_echo 'EGREP' >> "conftest.nl"
4065    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067    ac_count=`expr $ac_count + 1`
4068    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069      # Best one so far, save it but keep looking for a better one
4070      ac_cv_path_EGREP="$ac_path_EGREP"
4071      ac_path_EGREP_max=$ac_count
4072    fi
4073    # 10*(2^10) chars as input seems more than enough
4074    test $ac_count -gt 10 && break
4075  done
4076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
4079      $ac_path_EGREP_found && break 3
4080    done
4081  done
4082done
4083IFS=$as_save_IFS
4084  if test -z "$ac_cv_path_EGREP"; then
4085    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4086$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4087   { (exit 1); exit 1; }; }
4088  fi
4089else
4090  ac_cv_path_EGREP=$EGREP
4091fi
4092
4093   fi
4094fi
4095{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096$as_echo "$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4098
4099
4100{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4101$as_echo_n "checking for fgrep... " >&6; }
4102if test "${ac_cv_path_FGREP+set}" = set; then
4103  $as_echo_n "(cached) " >&6
4104else
4105  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4106   then ac_cv_path_FGREP="$GREP -F"
4107   else
4108     if test -z "$FGREP"; then
4109  ac_path_FGREP_found=false
4110  # Loop through the user's path and test for each of PROGNAME-LIST
4111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113do
4114  IFS=$as_save_IFS
4115  test -z "$as_dir" && as_dir=.
4116  for ac_prog in fgrep; do
4117    for ac_exec_ext in '' $ac_executable_extensions; do
4118      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4119      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4120# Check for GNU ac_path_FGREP and select it if it is found.
4121  # Check for GNU $ac_path_FGREP
4122case `"$ac_path_FGREP" --version 2>&1` in
4123*GNU*)
4124  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4125*)
4126  ac_count=0
4127  $as_echo_n 0123456789 >"conftest.in"
4128  while :
4129  do
4130    cat "conftest.in" "conftest.in" >"conftest.tmp"
4131    mv "conftest.tmp" "conftest.in"
4132    cp "conftest.in" "conftest.nl"
4133    $as_echo 'FGREP' >> "conftest.nl"
4134    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136    ac_count=`expr $ac_count + 1`
4137    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4138      # Best one so far, save it but keep looking for a better one
4139      ac_cv_path_FGREP="$ac_path_FGREP"
4140      ac_path_FGREP_max=$ac_count
4141    fi
4142    # 10*(2^10) chars as input seems more than enough
4143    test $ac_count -gt 10 && break
4144  done
4145  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146esac
4147
4148      $ac_path_FGREP_found && break 3
4149    done
4150  done
4151done
4152IFS=$as_save_IFS
4153  if test -z "$ac_cv_path_FGREP"; then
4154    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4155$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4156   { (exit 1); exit 1; }; }
4157  fi
4158else
4159  ac_cv_path_FGREP=$FGREP
4160fi
4161
4162   fi
4163fi
4164{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4165$as_echo "$ac_cv_path_FGREP" >&6; }
4166 FGREP="$ac_cv_path_FGREP"
4167
4168
4169test -z "$GREP" && GREP=grep
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189# Check whether --with-gnu-ld was given.
4190if test "${with_gnu_ld+set}" = set; then
4191  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4192else
4193  with_gnu_ld=no
4194fi
4195
4196ac_prog=ld
4197if test "$GCC" = yes; then
4198  # Check if gcc -print-prog-name=ld gives a path.
4199  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4200$as_echo_n "checking for ld used by $CC... " >&6; }
4201  case $host in
4202  *-*-mingw*)
4203    # gcc leaves a trailing carriage return which upsets mingw
4204    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4205  *)
4206    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4207  esac
4208  case $ac_prog in
4209    # Accept absolute paths.
4210    [\\/]* | ?:[\\/]*)
4211      re_direlt='/[^/][^/]*/\.\./'
4212      # Canonicalize the pathname of ld
4213      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4214      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4215	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4216      done
4217      test -z "$LD" && LD="$ac_prog"
4218      ;;
4219  "")
4220    # If it fails, then pretend we aren't using GCC.
4221    ac_prog=ld
4222    ;;
4223  *)
4224    # If it is relative, then search for the first ld in PATH.
4225    with_gnu_ld=unknown
4226    ;;
4227  esac
4228elif test "$with_gnu_ld" = yes; then
4229  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4230$as_echo_n "checking for GNU ld... " >&6; }
4231else
4232  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4233$as_echo_n "checking for non-GNU ld... " >&6; }
4234fi
4235if test "${lt_cv_path_LD+set}" = set; then
4236  $as_echo_n "(cached) " >&6
4237else
4238  if test -z "$LD"; then
4239  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4240  for ac_dir in $PATH; do
4241    IFS="$lt_save_ifs"
4242    test -z "$ac_dir" && ac_dir=.
4243    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4244      lt_cv_path_LD="$ac_dir/$ac_prog"
4245      # Check to see if the program is GNU ld.  I'd rather use --version,
4246      # but apparently some variants of GNU ld only accept -v.
4247      # Break only if it was the GNU/non-GNU ld that we prefer.
4248      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4249      *GNU* | *'with BFD'*)
4250	test "$with_gnu_ld" != no && break
4251	;;
4252      *)
4253	test "$with_gnu_ld" != yes && break
4254	;;
4255      esac
4256    fi
4257  done
4258  IFS="$lt_save_ifs"
4259else
4260  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4261fi
4262fi
4263
4264LD="$lt_cv_path_LD"
4265if test -n "$LD"; then
4266  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4267$as_echo "$LD" >&6; }
4268else
4269  { $as_echo "$as_me:$LINENO: result: no" >&5
4270$as_echo "no" >&6; }
4271fi
4272test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4273$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4274   { (exit 1); exit 1; }; }
4275{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4276$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4277if test "${lt_cv_prog_gnu_ld+set}" = set; then
4278  $as_echo_n "(cached) " >&6
4279else
4280  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4281case `$LD -v 2>&1 </dev/null` in
4282*GNU* | *'with BFD'*)
4283  lt_cv_prog_gnu_ld=yes
4284  ;;
4285*)
4286  lt_cv_prog_gnu_ld=no
4287  ;;
4288esac
4289fi
4290{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4291$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4292with_gnu_ld=$lt_cv_prog_gnu_ld
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4303$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4304if test "${lt_cv_path_NM+set}" = set; then
4305  $as_echo_n "(cached) " >&6
4306else
4307  if test -n "$NM"; then
4308  # Let the user override the test.
4309  lt_cv_path_NM="$NM"
4310else
4311  lt_nm_to_check="${ac_tool_prefix}nm"
4312  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4313    lt_nm_to_check="$lt_nm_to_check nm"
4314  fi
4315  for lt_tmp_nm in $lt_nm_to_check; do
4316    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4317    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4318      IFS="$lt_save_ifs"
4319      test -z "$ac_dir" && ac_dir=.
4320      tmp_nm="$ac_dir/$lt_tmp_nm"
4321      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4322	# Check to see if the nm accepts a BSD-compat flag.
4323	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4324	#   nm: unknown option "B" ignored
4325	# Tru64's nm complains that /dev/null is an invalid object file
4326	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4327	*/dev/null* | *'Invalid file or object type'*)
4328	  lt_cv_path_NM="$tmp_nm -B"
4329	  break
4330	  ;;
4331	*)
4332	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4333	  */dev/null*)
4334	    lt_cv_path_NM="$tmp_nm -p"
4335	    break
4336	    ;;
4337	  *)
4338	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4339	    continue # so that we can try to find one that supports BSD flags
4340	    ;;
4341	  esac
4342	  ;;
4343	esac
4344      fi
4345    done
4346    IFS="$lt_save_ifs"
4347  done
4348  : ${lt_cv_path_NM=no}
4349fi
4350fi
4351{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4352$as_echo "$lt_cv_path_NM" >&6; }
4353if test "$lt_cv_path_NM" != "no"; then
4354  NM="$lt_cv_path_NM"
4355else
4356  # Didn't find any BSD compatible name lister, look for dumpbin.
4357  if test -n "$ac_tool_prefix"; then
4358  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4359  do
4360    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4361set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4363$as_echo_n "checking for $ac_word... " >&6; }
4364if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4365  $as_echo_n "(cached) " >&6
4366else
4367  if test -n "$DUMPBIN"; then
4368  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  test -z "$as_dir" && as_dir=.
4375  for ac_exec_ext in '' $ac_executable_extensions; do
4376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4378    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379    break 2
4380  fi
4381done
4382done
4383IFS=$as_save_IFS
4384
4385fi
4386fi
4387DUMPBIN=$ac_cv_prog_DUMPBIN
4388if test -n "$DUMPBIN"; then
4389  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4390$as_echo "$DUMPBIN" >&6; }
4391else
4392  { $as_echo "$as_me:$LINENO: result: no" >&5
4393$as_echo "no" >&6; }
4394fi
4395
4396
4397    test -n "$DUMPBIN" && break
4398  done
4399fi
4400if test -z "$DUMPBIN"; then
4401  ac_ct_DUMPBIN=$DUMPBIN
4402  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4403do
4404  # Extract the first word of "$ac_prog", so it can be a program name with args.
4405set dummy $ac_prog; ac_word=$2
4406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
4408if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4409  $as_echo_n "(cached) " >&6
4410else
4411  if test -n "$ac_ct_DUMPBIN"; then
4412  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419  for ac_exec_ext in '' $ac_executable_extensions; do
4420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4422    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423    break 2
4424  fi
4425done
4426done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4432if test -n "$ac_ct_DUMPBIN"; then
4433  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4434$as_echo "$ac_ct_DUMPBIN" >&6; }
4435else
4436  { $as_echo "$as_me:$LINENO: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440
4441  test -n "$ac_ct_DUMPBIN" && break
4442done
4443
4444  if test "x$ac_ct_DUMPBIN" = x; then
4445    DUMPBIN=":"
4446  else
4447    case $cross_compiling:$ac_tool_warned in
4448yes:)
4449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4451ac_tool_warned=yes ;;
4452esac
4453    DUMPBIN=$ac_ct_DUMPBIN
4454  fi
4455fi
4456
4457
4458  if test "$DUMPBIN" != ":"; then
4459    NM="$DUMPBIN"
4460  fi
4461fi
4462test -z "$NM" && NM=nm
4463
4464
4465
4466
4467
4468
4469{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4470$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4471if test "${lt_cv_nm_interface+set}" = set; then
4472  $as_echo_n "(cached) " >&6
4473else
4474  lt_cv_nm_interface="BSD nm"
4475  echo "int some_variable = 0;" > conftest.$ac_ext
4476  (eval echo "\"\$as_me:4476: $ac_compile\"" >&5)
4477  (eval "$ac_compile" 2>conftest.err)
4478  cat conftest.err >&5
4479  (eval echo "\"\$as_me:4479: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4480  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4481  cat conftest.err >&5
4482  (eval echo "\"\$as_me:4482: output\"" >&5)
4483  cat conftest.out >&5
4484  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4485    lt_cv_nm_interface="MS dumpbin"
4486  fi
4487  rm -f conftest*
4488fi
4489{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4490$as_echo "$lt_cv_nm_interface" >&6; }
4491
4492{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4493$as_echo_n "checking whether ln -s works... " >&6; }
4494LN_S=$as_ln_s
4495if test "$LN_S" = "ln -s"; then
4496  { $as_echo "$as_me:$LINENO: result: yes" >&5
4497$as_echo "yes" >&6; }
4498else
4499  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4500$as_echo "no, using $LN_S" >&6; }
4501fi
4502
4503# find the maximum length of command line arguments
4504{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4505$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4506if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4507  $as_echo_n "(cached) " >&6
4508else
4509    i=0
4510  teststring="ABCD"
4511
4512  case $build_os in
4513  msdosdjgpp*)
4514    # On DJGPP, this test can blow up pretty badly due to problems in libc
4515    # (any single argument exceeding 2000 bytes causes a buffer overrun
4516    # during glob expansion).  Even if it were fixed, the result of this
4517    # check would be larger than it should be.
4518    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4519    ;;
4520
4521  gnu*)
4522    # Under GNU Hurd, this test is not required because there is
4523    # no limit to the length of command line arguments.
4524    # Libtool will interpret -1 as no limit whatsoever
4525    lt_cv_sys_max_cmd_len=-1;
4526    ;;
4527
4528  cygwin* | mingw* | cegcc*)
4529    # On Win9x/ME, this test blows up -- it succeeds, but takes
4530    # about 5 minutes as the teststring grows exponentially.
4531    # Worse, since 9x/ME are not pre-emptively multitasking,
4532    # you end up with a "frozen" computer, even though with patience
4533    # the test eventually succeeds (with a max line length of 256k).
4534    # Instead, let's just punt: use the minimum linelength reported by
4535    # all of the supported platforms: 8192 (on NT/2K/XP).
4536    lt_cv_sys_max_cmd_len=8192;
4537    ;;
4538
4539  amigaos*)
4540    # On AmigaOS with pdksh, this test takes hours, literally.
4541    # So we just punt and use a minimum line length of 8192.
4542    lt_cv_sys_max_cmd_len=8192;
4543    ;;
4544
4545  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4546    # This has been around since 386BSD, at least.  Likely further.
4547    if test -x /sbin/sysctl; then
4548      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4549    elif test -x /usr/sbin/sysctl; then
4550      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4551    else
4552      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4553    fi
4554    # And add a safety zone
4555    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4556    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4557    ;;
4558
4559  interix*)
4560    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4561    lt_cv_sys_max_cmd_len=196608
4562    ;;
4563
4564  osf*)
4565    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4566    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4567    # nice to cause kernel panics so lets avoid the loop below.
4568    # First set a reasonable default.
4569    lt_cv_sys_max_cmd_len=16384
4570    #
4571    if test -x /sbin/sysconfig; then
4572      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4573        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4574      esac
4575    fi
4576    ;;
4577  sco3.2v5*)
4578    lt_cv_sys_max_cmd_len=102400
4579    ;;
4580  sysv5* | sco5v6* | sysv4.2uw2*)
4581    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4582    if test -n "$kargmax"; then
4583      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4584    else
4585      lt_cv_sys_max_cmd_len=32768
4586    fi
4587    ;;
4588  *)
4589    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4590    if test -n "$lt_cv_sys_max_cmd_len"; then
4591      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4592      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4593    else
4594      # Make teststring a little bigger before we do anything with it.
4595      # a 1K string should be a reasonable start.
4596      for i in 1 2 3 4 5 6 7 8 ; do
4597        teststring=$teststring$teststring
4598      done
4599      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4600      # If test is not a shell built-in, we'll probably end up computing a
4601      # maximum length that is only half of the actual maximum length, but
4602      # we can't tell.
4603      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4604	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4605	      test $i != 17 # 1/2 MB should be enough
4606      do
4607        i=`expr $i + 1`
4608        teststring=$teststring$teststring
4609      done
4610      # Only check the string length outside the loop.
4611      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4612      teststring=
4613      # Add a significant safety factor because C++ compilers can tack on
4614      # massive amounts of additional arguments before passing them to the
4615      # linker.  It appears as though 1/2 is a usable value.
4616      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4617    fi
4618    ;;
4619  esac
4620
4621fi
4622
4623if test -n $lt_cv_sys_max_cmd_len ; then
4624  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4625$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4626else
4627  { $as_echo "$as_me:$LINENO: result: none" >&5
4628$as_echo "none" >&6; }
4629fi
4630max_cmd_len=$lt_cv_sys_max_cmd_len
4631
4632
4633
4634
4635
4636
4637: ${CP="cp -f"}
4638: ${MV="mv -f"}
4639: ${RM="rm -f"}
4640
4641{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4642$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4643# Try some XSI features
4644xsi_shell=no
4645( _lt_dummy="a/b/c"
4646  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4647      = c,a/b,, \
4648    && eval 'test $(( 1 + 1 )) -eq 2 \
4649    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4650  && xsi_shell=yes
4651{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4652$as_echo "$xsi_shell" >&6; }
4653
4654
4655{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4656$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4657lt_shell_append=no
4658( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4659    >/dev/null 2>&1 \
4660  && lt_shell_append=yes
4661{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4662$as_echo "$lt_shell_append" >&6; }
4663
4664
4665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4666  lt_unset=unset
4667else
4668  lt_unset=false
4669fi
4670
4671
4672
4673
4674
4675# test EBCDIC or ASCII
4676case `echo X|tr X '\101'` in
4677 A) # ASCII based system
4678    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4679  lt_SP2NL='tr \040 \012'
4680  lt_NL2SP='tr \015\012 \040\040'
4681  ;;
4682 *) # EBCDIC based system
4683  lt_SP2NL='tr \100 \n'
4684  lt_NL2SP='tr \r\n \100\100'
4685  ;;
4686esac
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4697$as_echo_n "checking for $LD option to reload object files... " >&6; }
4698if test "${lt_cv_ld_reload_flag+set}" = set; then
4699  $as_echo_n "(cached) " >&6
4700else
4701  lt_cv_ld_reload_flag='-r'
4702fi
4703{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4704$as_echo "$lt_cv_ld_reload_flag" >&6; }
4705reload_flag=$lt_cv_ld_reload_flag
4706case $reload_flag in
4707"" | " "*) ;;
4708*) reload_flag=" $reload_flag" ;;
4709esac
4710reload_cmds='$LD$reload_flag -o $output$reload_objs'
4711case $host_os in
4712  darwin*)
4713    if test "$GCC" = yes; then
4714      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4715    else
4716      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4717    fi
4718    ;;
4719esac
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729if test -n "$ac_tool_prefix"; then
4730  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4731set dummy ${ac_tool_prefix}objdump; ac_word=$2
4732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
4734if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4735  $as_echo_n "(cached) " >&6
4736else
4737  if test -n "$OBJDUMP"; then
4738  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4748    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753IFS=$as_save_IFS
4754
4755fi
4756fi
4757OBJDUMP=$ac_cv_prog_OBJDUMP
4758if test -n "$OBJDUMP"; then
4759  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4760$as_echo "$OBJDUMP" >&6; }
4761else
4762  { $as_echo "$as_me:$LINENO: result: no" >&5
4763$as_echo "no" >&6; }
4764fi
4765
4766
4767fi
4768if test -z "$ac_cv_prog_OBJDUMP"; then
4769  ac_ct_OBJDUMP=$OBJDUMP
4770  # Extract the first word of "objdump", so it can be a program name with args.
4771set dummy objdump; ac_word=$2
4772{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4775  $as_echo_n "(cached) " >&6
4776else
4777  if test -n "$ac_ct_OBJDUMP"; then
4778  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785  for ac_exec_ext in '' $ac_executable_extensions; do
4786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4788    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4798if test -n "$ac_ct_OBJDUMP"; then
4799  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4800$as_echo "$ac_ct_OBJDUMP" >&6; }
4801else
4802  { $as_echo "$as_me:$LINENO: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806  if test "x$ac_ct_OBJDUMP" = x; then
4807    OBJDUMP="false"
4808  else
4809    case $cross_compiling:$ac_tool_warned in
4810yes:)
4811{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813ac_tool_warned=yes ;;
4814esac
4815    OBJDUMP=$ac_ct_OBJDUMP
4816  fi
4817else
4818  OBJDUMP="$ac_cv_prog_OBJDUMP"
4819fi
4820
4821test -z "$OBJDUMP" && OBJDUMP=objdump
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4832$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4833if test "${lt_cv_deplibs_check_method+set}" = set; then
4834  $as_echo_n "(cached) " >&6
4835else
4836  lt_cv_file_magic_cmd='$MAGIC_CMD'
4837lt_cv_file_magic_test_file=
4838lt_cv_deplibs_check_method='unknown'
4839# Need to set the preceding variable on all platforms that support
4840# interlibrary dependencies.
4841# 'none' -- dependencies not supported.
4842# `unknown' -- same as none, but documents that we really don't know.
4843# 'pass_all' -- all dependencies passed with no checks.
4844# 'test_compile' -- check by making test program.
4845# 'file_magic [[regex]]' -- check by looking for files in library path
4846# which responds to the $file_magic_cmd with a given extended regex.
4847# If you have `file' or equivalent on your system and you're not sure
4848# whether `pass_all' will *always* work, you probably want this one.
4849
4850case $host_os in
4851aix[4-9]*)
4852  lt_cv_deplibs_check_method=pass_all
4853  ;;
4854
4855beos*)
4856  lt_cv_deplibs_check_method=pass_all
4857  ;;
4858
4859bsdi[45]*)
4860  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4861  lt_cv_file_magic_cmd='/usr/bin/file -L'
4862  lt_cv_file_magic_test_file=/shlib/libc.so
4863  ;;
4864
4865cygwin*)
4866  # func_win32_libid is a shell function defined in ltmain.sh
4867  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4868  lt_cv_file_magic_cmd='func_win32_libid'
4869  ;;
4870
4871mingw* | pw32*)
4872  # Base MSYS/MinGW do not provide the 'file' command needed by
4873  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4874  # unless we find 'file', for example because we are cross-compiling.
4875  if ( file / ) >/dev/null 2>&1; then
4876    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4877    lt_cv_file_magic_cmd='func_win32_libid'
4878  else
4879    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4880    lt_cv_file_magic_cmd='$OBJDUMP -f'
4881  fi
4882  ;;
4883
4884cegcc)
4885  # use the weaker test based on 'objdump'. See mingw*.
4886  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4887  lt_cv_file_magic_cmd='$OBJDUMP -f'
4888  ;;
4889
4890darwin* | rhapsody*)
4891  lt_cv_deplibs_check_method=pass_all
4892  ;;
4893
4894freebsd* | dragonfly*)
4895  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4896    case $host_cpu in
4897    i*86 )
4898      # Not sure whether the presence of OpenBSD here was a mistake.
4899      # Let's accept both of them until this is cleared up.
4900      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4901      lt_cv_file_magic_cmd=/usr/bin/file
4902      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4903      ;;
4904    esac
4905  else
4906    lt_cv_deplibs_check_method=pass_all
4907  fi
4908  ;;
4909
4910gnu*)
4911  lt_cv_deplibs_check_method=pass_all
4912  ;;
4913
4914hpux10.20* | hpux11*)
4915  lt_cv_file_magic_cmd=/usr/bin/file
4916  case $host_cpu in
4917  ia64*)
4918    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4919    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4920    ;;
4921  hppa*64*)
4922    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]'
4923    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4924    ;;
4925  *)
4926    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4927    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4928    ;;
4929  esac
4930  ;;
4931
4932interix[3-9]*)
4933  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4934  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4935  ;;
4936
4937irix5* | irix6* | nonstopux*)
4938  case $LD in
4939  *-32|*"-32 ") libmagic=32-bit;;
4940  *-n32|*"-n32 ") libmagic=N32;;
4941  *-64|*"-64 ") libmagic=64-bit;;
4942  *) libmagic=never-match;;
4943  esac
4944  lt_cv_deplibs_check_method=pass_all
4945  ;;
4946
4947# This must be Linux ELF.
4948linux* | k*bsd*-gnu)
4949  lt_cv_deplibs_check_method=pass_all
4950  ;;
4951
4952netbsd*)
4953  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4954    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4955  else
4956    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4957  fi
4958  ;;
4959
4960newos6*)
4961  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4962  lt_cv_file_magic_cmd=/usr/bin/file
4963  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4964  ;;
4965
4966*nto* | *qnx*)
4967  lt_cv_deplibs_check_method=pass_all
4968  ;;
4969
4970openbsd*)
4971  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4972    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4973  else
4974    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4975  fi
4976  ;;
4977
4978osf3* | osf4* | osf5*)
4979  lt_cv_deplibs_check_method=pass_all
4980  ;;
4981
4982rdos*)
4983  lt_cv_deplibs_check_method=pass_all
4984  ;;
4985
4986solaris*)
4987  lt_cv_deplibs_check_method=pass_all
4988  ;;
4989
4990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4991  lt_cv_deplibs_check_method=pass_all
4992  ;;
4993
4994sysv4 | sysv4.3*)
4995  case $host_vendor in
4996  motorola)
4997    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]'
4998    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4999    ;;
5000  ncr)
5001    lt_cv_deplibs_check_method=pass_all
5002    ;;
5003  sequent)
5004    lt_cv_file_magic_cmd='/bin/file'
5005    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5006    ;;
5007  sni)
5008    lt_cv_file_magic_cmd='/bin/file'
5009    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5010    lt_cv_file_magic_test_file=/lib/libc.so
5011    ;;
5012  siemens)
5013    lt_cv_deplibs_check_method=pass_all
5014    ;;
5015  pc)
5016    lt_cv_deplibs_check_method=pass_all
5017    ;;
5018  esac
5019  ;;
5020
5021tpf*)
5022  lt_cv_deplibs_check_method=pass_all
5023  ;;
5024esac
5025
5026fi
5027{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5028$as_echo "$lt_cv_deplibs_check_method" >&6; }
5029file_magic_cmd=$lt_cv_file_magic_cmd
5030deplibs_check_method=$lt_cv_deplibs_check_method
5031test -z "$deplibs_check_method" && deplibs_check_method=unknown
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044if test -n "$ac_tool_prefix"; then
5045  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5046set dummy ${ac_tool_prefix}ar; ac_word=$2
5047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5048$as_echo_n "checking for $ac_word... " >&6; }
5049if test "${ac_cv_prog_AR+set}" = set; then
5050  $as_echo_n "(cached) " >&6
5051else
5052  if test -n "$AR"; then
5053  ac_cv_prog_AR="$AR" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058  IFS=$as_save_IFS
5059  test -z "$as_dir" && as_dir=.
5060  for ac_exec_ext in '' $ac_executable_extensions; do
5061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062    ac_cv_prog_AR="${ac_tool_prefix}ar"
5063    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064    break 2
5065  fi
5066done
5067done
5068IFS=$as_save_IFS
5069
5070fi
5071fi
5072AR=$ac_cv_prog_AR
5073if test -n "$AR"; then
5074  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5075$as_echo "$AR" >&6; }
5076else
5077  { $as_echo "$as_me:$LINENO: result: no" >&5
5078$as_echo "no" >&6; }
5079fi
5080
5081
5082fi
5083if test -z "$ac_cv_prog_AR"; then
5084  ac_ct_AR=$AR
5085  # Extract the first word of "ar", so it can be a program name with args.
5086set dummy ar; ac_word=$2
5087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5088$as_echo_n "checking for $ac_word... " >&6; }
5089if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090  $as_echo_n "(cached) " >&6
5091else
5092  if test -n "$ac_ct_AR"; then
5093  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094else
5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096for as_dir in $PATH
5097do
5098  IFS=$as_save_IFS
5099  test -z "$as_dir" && as_dir=.
5100  for ac_exec_ext in '' $ac_executable_extensions; do
5101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102    ac_cv_prog_ac_ct_AR="ar"
5103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104    break 2
5105  fi
5106done
5107done
5108IFS=$as_save_IFS
5109
5110fi
5111fi
5112ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113if test -n "$ac_ct_AR"; then
5114  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115$as_echo "$ac_ct_AR" >&6; }
5116else
5117  { $as_echo "$as_me:$LINENO: result: no" >&5
5118$as_echo "no" >&6; }
5119fi
5120
5121  if test "x$ac_ct_AR" = x; then
5122    AR="false"
5123  else
5124    case $cross_compiling:$ac_tool_warned in
5125yes:)
5126{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128ac_tool_warned=yes ;;
5129esac
5130    AR=$ac_ct_AR
5131  fi
5132else
5133  AR="$ac_cv_prog_AR"
5134fi
5135
5136test -z "$AR" && AR=ar
5137test -z "$AR_FLAGS" && AR_FLAGS=cru
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149if test -n "$ac_tool_prefix"; then
5150  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5151set dummy ${ac_tool_prefix}strip; ac_word=$2
5152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if test "${ac_cv_prog_STRIP+set}" = set; then
5155  $as_echo_n "(cached) " >&6
5156else
5157  if test -n "$STRIP"; then
5158  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163  IFS=$as_save_IFS
5164  test -z "$as_dir" && as_dir=.
5165  for ac_exec_ext in '' $ac_executable_extensions; do
5166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5168    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169    break 2
5170  fi
5171done
5172done
5173IFS=$as_save_IFS
5174
5175fi
5176fi
5177STRIP=$ac_cv_prog_STRIP
5178if test -n "$STRIP"; then
5179  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5180$as_echo "$STRIP" >&6; }
5181else
5182  { $as_echo "$as_me:$LINENO: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
5185
5186
5187fi
5188if test -z "$ac_cv_prog_STRIP"; then
5189  ac_ct_STRIP=$STRIP
5190  # Extract the first word of "strip", so it can be a program name with args.
5191set dummy strip; ac_word=$2
5192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
5194if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5195  $as_echo_n "(cached) " >&6
5196else
5197  if test -n "$ac_ct_STRIP"; then
5198  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205  for ac_exec_ext in '' $ac_executable_extensions; do
5206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207    ac_cv_prog_ac_ct_STRIP="strip"
5208    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212done
5213IFS=$as_save_IFS
5214
5215fi
5216fi
5217ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5218if test -n "$ac_ct_STRIP"; then
5219  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5220$as_echo "$ac_ct_STRIP" >&6; }
5221else
5222  { $as_echo "$as_me:$LINENO: result: no" >&5
5223$as_echo "no" >&6; }
5224fi
5225
5226  if test "x$ac_ct_STRIP" = x; then
5227    STRIP=":"
5228  else
5229    case $cross_compiling:$ac_tool_warned in
5230yes:)
5231{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233ac_tool_warned=yes ;;
5234esac
5235    STRIP=$ac_ct_STRIP
5236  fi
5237else
5238  STRIP="$ac_cv_prog_STRIP"
5239fi
5240
5241test -z "$STRIP" && STRIP=:
5242
5243
5244
5245
5246
5247
5248if test -n "$ac_tool_prefix"; then
5249  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5250set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if test "${ac_cv_prog_RANLIB+set}" = set; then
5254  $as_echo_n "(cached) " >&6
5255else
5256  if test -n "$RANLIB"; then
5257  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264  for ac_exec_ext in '' $ac_executable_extensions; do
5265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5267    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276RANLIB=$ac_cv_prog_RANLIB
5277if test -n "$RANLIB"; then
5278  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5279$as_echo "$RANLIB" >&6; }
5280else
5281  { $as_echo "$as_me:$LINENO: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286fi
5287if test -z "$ac_cv_prog_RANLIB"; then
5288  ac_ct_RANLIB=$RANLIB
5289  # Extract the first word of "ranlib", so it can be a program name with args.
5290set dummy ranlib; ac_word=$2
5291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5294  $as_echo_n "(cached) " >&6
5295else
5296  if test -n "$ac_ct_RANLIB"; then
5297  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5298else
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302  IFS=$as_save_IFS
5303  test -z "$as_dir" && as_dir=.
5304  for ac_exec_ext in '' $ac_executable_extensions; do
5305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306    ac_cv_prog_ac_ct_RANLIB="ranlib"
5307    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308    break 2
5309  fi
5310done
5311done
5312IFS=$as_save_IFS
5313
5314fi
5315fi
5316ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5317if test -n "$ac_ct_RANLIB"; then
5318  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5319$as_echo "$ac_ct_RANLIB" >&6; }
5320else
5321  { $as_echo "$as_me:$LINENO: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324
5325  if test "x$ac_ct_RANLIB" = x; then
5326    RANLIB=":"
5327  else
5328    case $cross_compiling:$ac_tool_warned in
5329yes:)
5330{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332ac_tool_warned=yes ;;
5333esac
5334    RANLIB=$ac_ct_RANLIB
5335  fi
5336else
5337  RANLIB="$ac_cv_prog_RANLIB"
5338fi
5339
5340test -z "$RANLIB" && RANLIB=:
5341
5342
5343
5344
5345
5346
5347# Determine commands to create old-style static archives.
5348old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5349old_postinstall_cmds='chmod 644 $oldlib'
5350old_postuninstall_cmds=
5351
5352if test -n "$RANLIB"; then
5353  case $host_os in
5354  openbsd*)
5355    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5356    ;;
5357  *)
5358    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5359    ;;
5360  esac
5361  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5362fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397# If no C compiler was specified, use CC.
5398LTCC=${LTCC-"$CC"}
5399
5400# If no C compiler flags were specified, use CFLAGS.
5401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5402
5403# Allow CC to be a program name with arguments.
5404compiler=$CC
5405
5406
5407# Check for command to grab the raw symbol name followed by C symbol from nm.
5408{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5409$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5410if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5411  $as_echo_n "(cached) " >&6
5412else
5413
5414# These are sane defaults that work on at least a few old systems.
5415# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5416
5417# Character class describing NM global symbol codes.
5418symcode='[BCDEGRST]'
5419
5420# Regexp to match symbols that can be accessed directly from C.
5421sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5422
5423# Define system-specific variables.
5424case $host_os in
5425aix*)
5426  symcode='[BCDT]'
5427  ;;
5428cygwin* | mingw* | pw32* | cegcc*)
5429  symcode='[ABCDGISTW]'
5430  ;;
5431hpux*)
5432  if test "$host_cpu" = ia64; then
5433    symcode='[ABCDEGRST]'
5434  fi
5435  ;;
5436irix* | nonstopux*)
5437  symcode='[BCDEGRST]'
5438  ;;
5439osf*)
5440  symcode='[BCDEGQRST]'
5441  ;;
5442solaris*)
5443  symcode='[BDRT]'
5444  ;;
5445sco3.2v5*)
5446  symcode='[DT]'
5447  ;;
5448sysv4.2uw2*)
5449  symcode='[DT]'
5450  ;;
5451sysv5* | sco5v6* | unixware* | OpenUNIX*)
5452  symcode='[ABDT]'
5453  ;;
5454sysv4)
5455  symcode='[DFNSTU]'
5456  ;;
5457esac
5458
5459# If we're using GNU nm, then use its standard symbol codes.
5460case `$NM -V 2>&1` in
5461*GNU* | *'with BFD'*)
5462  symcode='[ABCDGIRSTW]' ;;
5463esac
5464
5465# Transform an extracted symbol line into a proper C declaration.
5466# Some systems (esp. on ia64) link data and code symbols differently,
5467# so use this general approach.
5468lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5469
5470# Transform an extracted symbol line into symbol name and symbol address
5471lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5472lt_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'"
5473
5474# Handle CRLF in mingw tool chain
5475opt_cr=
5476case $build_os in
5477mingw*)
5478  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5479  ;;
5480esac
5481
5482# Try without a prefix underscore, then with it.
5483for ac_symprfx in "" "_"; do
5484
5485  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5486  symxfrm="\\1 $ac_symprfx\\2 \\2"
5487
5488  # Write the raw and C identifiers.
5489  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5490    # Fake it for dumpbin and say T for any non-static function
5491    # and D for any global variable.
5492    # Also find C++ and __fastcall symbols from MSVC++,
5493    # which start with @ or ?.
5494    lt_cv_sys_global_symbol_pipe="$AWK '"\
5495"     {last_section=section; section=\$ 3};"\
5496"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5497"     \$ 0!~/External *\|/{next};"\
5498"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5499"     {if(hide[section]) next};"\
5500"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5501"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5502"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5503"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5504"     ' prfx=^$ac_symprfx"
5505  else
5506    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5507  fi
5508
5509  # Check to see that the pipe works correctly.
5510  pipe_works=no
5511
5512  rm -f conftest*
5513  cat > conftest.$ac_ext <<_LT_EOF
5514#ifdef __cplusplus
5515extern "C" {
5516#endif
5517char nm_test_var;
5518void nm_test_func(void);
5519void nm_test_func(void){}
5520#ifdef __cplusplus
5521}
5522#endif
5523int main(){nm_test_var='a';nm_test_func();return(0);}
5524_LT_EOF
5525
5526  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527  (eval $ac_compile) 2>&5
5528  ac_status=$?
5529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; then
5531    # Now try to grab the symbols.
5532    nlist=conftest.nm
5533    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5534  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5535  ac_status=$?
5536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); } && test -s "$nlist"; then
5538      # Try sorting and uniquifying the output.
5539      if sort "$nlist" | uniq > "$nlist"T; then
5540	mv -f "$nlist"T "$nlist"
5541      else
5542	rm -f "$nlist"T
5543      fi
5544
5545      # Make sure that we snagged all the symbols we need.
5546      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5547	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5548	  cat <<_LT_EOF > conftest.$ac_ext
5549#ifdef __cplusplus
5550extern "C" {
5551#endif
5552
5553_LT_EOF
5554	  # Now generate the symbol file.
5555	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5556
5557	  cat <<_LT_EOF >> conftest.$ac_ext
5558
5559/* The mapping between symbol names and symbols.  */
5560const struct {
5561  const char *name;
5562  void       *address;
5563}
5564lt__PROGRAM__LTX_preloaded_symbols[] =
5565{
5566  { "@PROGRAM@", (void *) 0 },
5567_LT_EOF
5568	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5569	  cat <<\_LT_EOF >> conftest.$ac_ext
5570  {0, (void *) 0}
5571};
5572
5573/* This works around a problem in FreeBSD linker */
5574#ifdef FREEBSD_WORKAROUND
5575static const void *lt_preloaded_setup() {
5576  return lt__PROGRAM__LTX_preloaded_symbols;
5577}
5578#endif
5579
5580#ifdef __cplusplus
5581}
5582#endif
5583_LT_EOF
5584	  # Now try linking the two files.
5585	  mv conftest.$ac_objext conftstm.$ac_objext
5586	  lt_save_LIBS="$LIBS"
5587	  lt_save_CFLAGS="$CFLAGS"
5588	  LIBS="conftstm.$ac_objext"
5589	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5590	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591  (eval $ac_link) 2>&5
5592  ac_status=$?
5593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5595	    pipe_works=yes
5596	  fi
5597	  LIBS="$lt_save_LIBS"
5598	  CFLAGS="$lt_save_CFLAGS"
5599	else
5600	  echo "cannot find nm_test_func in $nlist" >&5
5601	fi
5602      else
5603	echo "cannot find nm_test_var in $nlist" >&5
5604      fi
5605    else
5606      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5607    fi
5608  else
5609    echo "$progname: failed program was:" >&5
5610    cat conftest.$ac_ext >&5
5611  fi
5612  rm -rf conftest* conftst*
5613
5614  # Do not use the global_symbol_pipe unless it works.
5615  if test "$pipe_works" = yes; then
5616    break
5617  else
5618    lt_cv_sys_global_symbol_pipe=
5619  fi
5620done
5621
5622fi
5623
5624if test -z "$lt_cv_sys_global_symbol_pipe"; then
5625  lt_cv_sys_global_symbol_to_cdecl=
5626fi
5627if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5628  { $as_echo "$as_me:$LINENO: result: failed" >&5
5629$as_echo "failed" >&6; }
5630else
5631  { $as_echo "$as_me:$LINENO: result: ok" >&5
5632$as_echo "ok" >&6; }
5633fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657# Check whether --enable-libtool-lock was given.
5658if test "${enable_libtool_lock+set}" = set; then
5659  enableval=$enable_libtool_lock;
5660fi
5661
5662test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5663
5664# Some flags need to be propagated to the compiler or linker for good
5665# libtool support.
5666case $host in
5667ia64-*-hpux*)
5668  # Find out which ABI we are using.
5669  echo 'int i;' > conftest.$ac_ext
5670  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671  (eval $ac_compile) 2>&5
5672  ac_status=$?
5673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }; then
5675    case `/usr/bin/file conftest.$ac_objext` in
5676      *ELF-32*)
5677	HPUX_IA64_MODE="32"
5678	;;
5679      *ELF-64*)
5680	HPUX_IA64_MODE="64"
5681	;;
5682    esac
5683  fi
5684  rm -rf conftest*
5685  ;;
5686*-*-irix6*)
5687  # Find out which ABI we are using.
5688  echo '#line 5688 "configure"' > conftest.$ac_ext
5689  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690  (eval $ac_compile) 2>&5
5691  ac_status=$?
5692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); }; then
5694    if test "$lt_cv_prog_gnu_ld" = yes; then
5695      case `/usr/bin/file conftest.$ac_objext` in
5696	*32-bit*)
5697	  LD="${LD-ld} -melf32bsmip"
5698	  ;;
5699	*N32*)
5700	  LD="${LD-ld} -melf32bmipn32"
5701	  ;;
5702	*64-bit*)
5703	  LD="${LD-ld} -melf64bmip"
5704	;;
5705      esac
5706    else
5707      case `/usr/bin/file conftest.$ac_objext` in
5708	*32-bit*)
5709	  LD="${LD-ld} -32"
5710	  ;;
5711	*N32*)
5712	  LD="${LD-ld} -n32"
5713	  ;;
5714	*64-bit*)
5715	  LD="${LD-ld} -64"
5716	  ;;
5717      esac
5718    fi
5719  fi
5720  rm -rf conftest*
5721  ;;
5722
5723x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5724s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5725  # Find out which ABI we are using.
5726  echo 'int i;' > conftest.$ac_ext
5727  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728  (eval $ac_compile) 2>&5
5729  ac_status=$?
5730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731  (exit $ac_status); }; then
5732    case `/usr/bin/file conftest.o` in
5733      *32-bit*)
5734	case $host in
5735	  x86_64-*kfreebsd*-gnu)
5736	    LD="${LD-ld} -m elf_i386_fbsd"
5737	    ;;
5738	  x86_64-*linux*)
5739	    LD="${LD-ld} -m elf_i386"
5740	    ;;
5741	  ppc64-*linux*|powerpc64-*linux*)
5742	    LD="${LD-ld} -m elf32ppclinux"
5743	    ;;
5744	  s390x-*linux*)
5745	    LD="${LD-ld} -m elf_s390"
5746	    ;;
5747	  sparc64-*linux*)
5748	    LD="${LD-ld} -m elf32_sparc"
5749	    ;;
5750	esac
5751	;;
5752      *64-bit*)
5753	case $host in
5754	  x86_64-*kfreebsd*-gnu)
5755	    LD="${LD-ld} -m elf_x86_64_fbsd"
5756	    ;;
5757	  x86_64-*linux*)
5758	    LD="${LD-ld} -m elf_x86_64"
5759	    ;;
5760	  ppc*-*linux*|powerpc*-*linux*)
5761	    LD="${LD-ld} -m elf64ppc"
5762	    ;;
5763	  s390*-*linux*|s390*-*tpf*)
5764	    LD="${LD-ld} -m elf64_s390"
5765	    ;;
5766	  sparc*-*linux*)
5767	    LD="${LD-ld} -m elf64_sparc"
5768	    ;;
5769	esac
5770	;;
5771    esac
5772  fi
5773  rm -rf conftest*
5774  ;;
5775
5776*-*-sco3.2v5*)
5777  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5778  SAVE_CFLAGS="$CFLAGS"
5779  CFLAGS="$CFLAGS -belf"
5780  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5781$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5782if test "${lt_cv_cc_needs_belf+set}" = set; then
5783  $as_echo_n "(cached) " >&6
5784else
5785  ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790
5791     cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h.  */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h.  */
5797
5798int
5799main ()
5800{
5801
5802  ;
5803  return 0;
5804}
5805_ACEOF
5806rm -f conftest.$ac_objext conftest$ac_exeext
5807if { (ac_try="$ac_link"
5808case "(($ac_try" in
5809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810  *) ac_try_echo=$ac_try;;
5811esac
5812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5813$as_echo "$ac_try_echo") >&5
5814  (eval "$ac_link") 2>conftest.er1
5815  ac_status=$?
5816  grep -v '^ *+' conftest.er1 >conftest.err
5817  rm -f conftest.er1
5818  cat conftest.err >&5
5819  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); } && {
5821	 test -z "$ac_c_werror_flag" ||
5822	 test ! -s conftest.err
5823       } && test -s conftest$ac_exeext && {
5824	 test "$cross_compiling" = yes ||
5825	 $as_test_x conftest$ac_exeext
5826       }; then
5827  lt_cv_cc_needs_belf=yes
5828else
5829  $as_echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832	lt_cv_cc_needs_belf=no
5833fi
5834
5835rm -rf conftest.dSYM
5836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5837      conftest$ac_exeext conftest.$ac_ext
5838     ac_ext=c
5839ac_cpp='$CPP $CPPFLAGS'
5840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844fi
5845{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5846$as_echo "$lt_cv_cc_needs_belf" >&6; }
5847  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5848    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5849    CFLAGS="$SAVE_CFLAGS"
5850  fi
5851  ;;
5852sparc*-*solaris*)
5853  # Find out which ABI we are using.
5854  echo 'int i;' > conftest.$ac_ext
5855  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856  (eval $ac_compile) 2>&5
5857  ac_status=$?
5858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); }; then
5860    case `/usr/bin/file conftest.o` in
5861    *64-bit*)
5862      case $lt_cv_prog_gnu_ld in
5863      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5864      *)
5865	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5866	  LD="${LD-ld} -64"
5867	fi
5868	;;
5869      esac
5870      ;;
5871    esac
5872  fi
5873  rm -rf conftest*
5874  ;;
5875esac
5876
5877need_locks="$enable_libtool_lock"
5878
5879
5880  case $host_os in
5881    rhapsody* | darwin*)
5882    if test -n "$ac_tool_prefix"; then
5883  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5884set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5885{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5886$as_echo_n "checking for $ac_word... " >&6; }
5887if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5888  $as_echo_n "(cached) " >&6
5889else
5890  if test -n "$DSYMUTIL"; then
5891  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896  IFS=$as_save_IFS
5897  test -z "$as_dir" && as_dir=.
5898  for ac_exec_ext in '' $ac_executable_extensions; do
5899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5901    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902    break 2
5903  fi
5904done
5905done
5906IFS=$as_save_IFS
5907
5908fi
5909fi
5910DSYMUTIL=$ac_cv_prog_DSYMUTIL
5911if test -n "$DSYMUTIL"; then
5912  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5913$as_echo "$DSYMUTIL" >&6; }
5914else
5915  { $as_echo "$as_me:$LINENO: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
5918
5919
5920fi
5921if test -z "$ac_cv_prog_DSYMUTIL"; then
5922  ac_ct_DSYMUTIL=$DSYMUTIL
5923  # Extract the first word of "dsymutil", so it can be a program name with args.
5924set dummy dsymutil; ac_word=$2
5925{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5928  $as_echo_n "(cached) " >&6
5929else
5930  if test -n "$ac_ct_DSYMUTIL"; then
5931  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938  for ac_exec_ext in '' $ac_executable_extensions; do
5939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5941    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5951if test -n "$ac_ct_DSYMUTIL"; then
5952  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5953$as_echo "$ac_ct_DSYMUTIL" >&6; }
5954else
5955  { $as_echo "$as_me:$LINENO: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959  if test "x$ac_ct_DSYMUTIL" = x; then
5960    DSYMUTIL=":"
5961  else
5962    case $cross_compiling:$ac_tool_warned in
5963yes:)
5964{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966ac_tool_warned=yes ;;
5967esac
5968    DSYMUTIL=$ac_ct_DSYMUTIL
5969  fi
5970else
5971  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5972fi
5973
5974    if test -n "$ac_tool_prefix"; then
5975  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5976set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5977{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5978$as_echo_n "checking for $ac_word... " >&6; }
5979if test "${ac_cv_prog_NMEDIT+set}" = set; then
5980  $as_echo_n "(cached) " >&6
5981else
5982  if test -n "$NMEDIT"; then
5983  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5993    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002NMEDIT=$ac_cv_prog_NMEDIT
6003if test -n "$NMEDIT"; then
6004  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6005$as_echo "$NMEDIT" >&6; }
6006else
6007  { $as_echo "$as_me:$LINENO: result: no" >&5
6008$as_echo "no" >&6; }
6009fi
6010
6011
6012fi
6013if test -z "$ac_cv_prog_NMEDIT"; then
6014  ac_ct_NMEDIT=$NMEDIT
6015  # Extract the first word of "nmedit", so it can be a program name with args.
6016set dummy nmedit; ac_word=$2
6017{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6018$as_echo_n "checking for $ac_word... " >&6; }
6019if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6020  $as_echo_n "(cached) " >&6
6021else
6022  if test -n "$ac_ct_NMEDIT"; then
6023  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028  IFS=$as_save_IFS
6029  test -z "$as_dir" && as_dir=.
6030  for ac_exec_ext in '' $ac_executable_extensions; do
6031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6033    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034    break 2
6035  fi
6036done
6037done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6043if test -n "$ac_ct_NMEDIT"; then
6044  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6045$as_echo "$ac_ct_NMEDIT" >&6; }
6046else
6047  { $as_echo "$as_me:$LINENO: result: no" >&5
6048$as_echo "no" >&6; }
6049fi
6050
6051  if test "x$ac_ct_NMEDIT" = x; then
6052    NMEDIT=":"
6053  else
6054    case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058ac_tool_warned=yes ;;
6059esac
6060    NMEDIT=$ac_ct_NMEDIT
6061  fi
6062else
6063  NMEDIT="$ac_cv_prog_NMEDIT"
6064fi
6065
6066    if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}lipo; ac_word=$2
6069{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if test "${ac_cv_prog_LIPO+set}" = set; then
6072  $as_echo_n "(cached) " >&6
6073else
6074  if test -n "$LIPO"; then
6075  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082  for ac_exec_ext in '' $ac_executable_extensions; do
6083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6085    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094LIPO=$ac_cv_prog_LIPO
6095if test -n "$LIPO"; then
6096  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6097$as_echo "$LIPO" >&6; }
6098else
6099  { $as_echo "$as_me:$LINENO: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_LIPO"; then
6106  ac_ct_LIPO=$LIPO
6107  # Extract the first word of "lipo", so it can be a program name with args.
6108set dummy lipo; ac_word=$2
6109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
6111if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6112  $as_echo_n "(cached) " >&6
6113else
6114  if test -n "$ac_ct_LIPO"; then
6115  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122  for ac_exec_ext in '' $ac_executable_extensions; do
6123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124    ac_cv_prog_ac_ct_LIPO="lipo"
6125    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6135if test -n "$ac_ct_LIPO"; then
6136  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6137$as_echo "$ac_ct_LIPO" >&6; }
6138else
6139  { $as_echo "$as_me:$LINENO: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143  if test "x$ac_ct_LIPO" = x; then
6144    LIPO=":"
6145  else
6146    case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152    LIPO=$ac_ct_LIPO
6153  fi
6154else
6155  LIPO="$ac_cv_prog_LIPO"
6156fi
6157
6158    if test -n "$ac_tool_prefix"; then
6159  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6160set dummy ${ac_tool_prefix}otool; ac_word=$2
6161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if test "${ac_cv_prog_OTOOL+set}" = set; then
6164  $as_echo_n "(cached) " >&6
6165else
6166  if test -n "$OTOOL"; then
6167  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  test -z "$as_dir" && as_dir=.
6174  for ac_exec_ext in '' $ac_executable_extensions; do
6175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6177    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186OTOOL=$ac_cv_prog_OTOOL
6187if test -n "$OTOOL"; then
6188  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6189$as_echo "$OTOOL" >&6; }
6190else
6191  { $as_echo "$as_me:$LINENO: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196fi
6197if test -z "$ac_cv_prog_OTOOL"; then
6198  ac_ct_OTOOL=$OTOOL
6199  # Extract the first word of "otool", so it can be a program name with args.
6200set dummy otool; ac_word=$2
6201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$ac_ct_OTOOL"; then
6207  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214  for ac_exec_ext in '' $ac_executable_extensions; do
6215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216    ac_cv_prog_ac_ct_OTOOL="otool"
6217    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6227if test -n "$ac_ct_OTOOL"; then
6228  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6229$as_echo "$ac_ct_OTOOL" >&6; }
6230else
6231  { $as_echo "$as_me:$LINENO: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235  if test "x$ac_ct_OTOOL" = x; then
6236    OTOOL=":"
6237  else
6238    case $cross_compiling:$ac_tool_warned in
6239yes:)
6240{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242ac_tool_warned=yes ;;
6243esac
6244    OTOOL=$ac_ct_OTOOL
6245  fi
6246else
6247  OTOOL="$ac_cv_prog_OTOOL"
6248fi
6249
6250    if test -n "$ac_tool_prefix"; then
6251  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6252set dummy ${ac_tool_prefix}otool64; ac_word=$2
6253{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254$as_echo_n "checking for $ac_word... " >&6; }
6255if test "${ac_cv_prog_OTOOL64+set}" = set; then
6256  $as_echo_n "(cached) " >&6
6257else
6258  if test -n "$OTOOL64"; then
6259  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264  IFS=$as_save_IFS
6265  test -z "$as_dir" && as_dir=.
6266  for ac_exec_ext in '' $ac_executable_extensions; do
6267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6269    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270    break 2
6271  fi
6272done
6273done
6274IFS=$as_save_IFS
6275
6276fi
6277fi
6278OTOOL64=$ac_cv_prog_OTOOL64
6279if test -n "$OTOOL64"; then
6280  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6281$as_echo "$OTOOL64" >&6; }
6282else
6283  { $as_echo "$as_me:$LINENO: result: no" >&5
6284$as_echo "no" >&6; }
6285fi
6286
6287
6288fi
6289if test -z "$ac_cv_prog_OTOOL64"; then
6290  ac_ct_OTOOL64=$OTOOL64
6291  # Extract the first word of "otool64", so it can be a program name with args.
6292set dummy otool64; ac_word=$2
6293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294$as_echo_n "checking for $ac_word... " >&6; }
6295if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6296  $as_echo_n "(cached) " >&6
6297else
6298  if test -n "$ac_ct_OTOOL64"; then
6299  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306  for ac_exec_ext in '' $ac_executable_extensions; do
6307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308    ac_cv_prog_ac_ct_OTOOL64="otool64"
6309    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313done
6314IFS=$as_save_IFS
6315
6316fi
6317fi
6318ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6319if test -n "$ac_ct_OTOOL64"; then
6320  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6321$as_echo "$ac_ct_OTOOL64" >&6; }
6322else
6323  { $as_echo "$as_me:$LINENO: result: no" >&5
6324$as_echo "no" >&6; }
6325fi
6326
6327  if test "x$ac_ct_OTOOL64" = x; then
6328    OTOOL64=":"
6329  else
6330    case $cross_compiling:$ac_tool_warned in
6331yes:)
6332{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334ac_tool_warned=yes ;;
6335esac
6336    OTOOL64=$ac_ct_OTOOL64
6337  fi
6338else
6339  OTOOL64="$ac_cv_prog_OTOOL64"
6340fi
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6369$as_echo_n "checking for -single_module linker flag... " >&6; }
6370if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6371  $as_echo_n "(cached) " >&6
6372else
6373  lt_cv_apple_cc_single_mod=no
6374      if test -z "${LT_MULTI_MODULE}"; then
6375	# By default we will add the -single_module flag. You can override
6376	# by either setting the environment variable LT_MULTI_MODULE
6377	# non-empty at configure time, or by adding -multi_module to the
6378	# link flags.
6379	rm -rf libconftest.dylib*
6380	echo "int foo(void){return 1;}" > conftest.c
6381	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6382-dynamiclib -Wl,-single_module conftest.c" >&5
6383	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6384	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6385        _lt_result=$?
6386	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6387	  lt_cv_apple_cc_single_mod=yes
6388	else
6389	  cat conftest.err >&5
6390	fi
6391	rm -rf libconftest.dylib*
6392	rm -f conftest.*
6393      fi
6394fi
6395{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6396$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6397    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6398$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6399if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6400  $as_echo_n "(cached) " >&6
6401else
6402  lt_cv_ld_exported_symbols_list=no
6403      save_LDFLAGS=$LDFLAGS
6404      echo "_main" > conftest.sym
6405      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6406      cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h.  */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h.  */
6412
6413int
6414main ()
6415{
6416
6417  ;
6418  return 0;
6419}
6420_ACEOF
6421rm -f conftest.$ac_objext conftest$ac_exeext
6422if { (ac_try="$ac_link"
6423case "(($ac_try" in
6424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425  *) ac_try_echo=$ac_try;;
6426esac
6427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6428$as_echo "$ac_try_echo") >&5
6429  (eval "$ac_link") 2>conftest.er1
6430  ac_status=$?
6431  grep -v '^ *+' conftest.er1 >conftest.err
6432  rm -f conftest.er1
6433  cat conftest.err >&5
6434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } && {
6436	 test -z "$ac_c_werror_flag" ||
6437	 test ! -s conftest.err
6438       } && test -s conftest$ac_exeext && {
6439	 test "$cross_compiling" = yes ||
6440	 $as_test_x conftest$ac_exeext
6441       }; then
6442  lt_cv_ld_exported_symbols_list=yes
6443else
6444  $as_echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447	lt_cv_ld_exported_symbols_list=no
6448fi
6449
6450rm -rf conftest.dSYM
6451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6452      conftest$ac_exeext conftest.$ac_ext
6453	LDFLAGS="$save_LDFLAGS"
6454
6455fi
6456{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6457$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6458    case $host_os in
6459    rhapsody* | darwin1.[012])
6460      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6461    darwin1.*)
6462      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6463    darwin*) # darwin 5.x on
6464      # if running on 10.5 or later, the deployment target defaults
6465      # to the OS version, if on x86, and 10.4, the deployment
6466      # target defaults to 10.4. Don't you love it?
6467      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6468	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6469	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6470	10.[012]*)
6471	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6472	10.*)
6473	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6474      esac
6475    ;;
6476  esac
6477    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6478      _lt_dar_single_mod='$single_module'
6479    fi
6480    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6481      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6482    else
6483      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6484    fi
6485    if test "$DSYMUTIL" != ":"; then
6486      _lt_dsymutil='~$DSYMUTIL $lib || :'
6487    else
6488      _lt_dsymutil=
6489    fi
6490    ;;
6491  esac
6492
6493ac_ext=c
6494ac_cpp='$CPP $CPPFLAGS'
6495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6499$as_echo_n "checking how to run the C preprocessor... " >&6; }
6500# On Suns, sometimes $CPP names a directory.
6501if test -n "$CPP" && test -d "$CPP"; then
6502  CPP=
6503fi
6504if test -z "$CPP"; then
6505  if test "${ac_cv_prog_CPP+set}" = set; then
6506  $as_echo_n "(cached) " >&6
6507else
6508      # Double quotes because CPP needs to be expanded
6509    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6510    do
6511      ac_preproc_ok=false
6512for ac_c_preproc_warn_flag in '' yes
6513do
6514  # Use a header file that comes with gcc, so configuring glibc
6515  # with a fresh cross-compiler works.
6516  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517  # <limits.h> exists even on freestanding compilers.
6518  # On the NeXT, cc -E runs the code through the compiler's parser,
6519  # not just through cpp. "Syntax error" is here to catch this case.
6520  cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h.  */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h.  */
6526#ifdef __STDC__
6527# include <limits.h>
6528#else
6529# include <assert.h>
6530#endif
6531		     Syntax error
6532_ACEOF
6533if { (ac_try="$ac_cpp conftest.$ac_ext"
6534case "(($ac_try" in
6535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536  *) ac_try_echo=$ac_try;;
6537esac
6538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6539$as_echo "$ac_try_echo") >&5
6540  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6541  ac_status=$?
6542  grep -v '^ *+' conftest.er1 >conftest.err
6543  rm -f conftest.er1
6544  cat conftest.err >&5
6545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); } >/dev/null && {
6547	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6548	 test ! -s conftest.err
6549       }; then
6550  :
6551else
6552  $as_echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555  # Broken: fails on valid input.
6556continue
6557fi
6558
6559rm -f conftest.err conftest.$ac_ext
6560
6561  # OK, works on sane cases.  Now check whether nonexistent headers
6562  # can be detected and how.
6563  cat >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 <ac_nonexistent.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  # Broken: success on invalid input.
6589continue
6590else
6591  $as_echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594  # Passes both tests.
6595ac_preproc_ok=:
6596break
6597fi
6598
6599rm -f conftest.err conftest.$ac_ext
6600
6601done
6602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6603rm -f conftest.err conftest.$ac_ext
6604if $ac_preproc_ok; then
6605  break
6606fi
6607
6608    done
6609    ac_cv_prog_CPP=$CPP
6610
6611fi
6612  CPP=$ac_cv_prog_CPP
6613else
6614  ac_cv_prog_CPP=$CPP
6615fi
6616{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6617$as_echo "$CPP" >&6; }
6618ac_preproc_ok=false
6619for ac_c_preproc_warn_flag in '' yes
6620do
6621  # Use a header file that comes with gcc, so configuring glibc
6622  # with a fresh cross-compiler works.
6623  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6624  # <limits.h> exists even on freestanding compilers.
6625  # On the NeXT, cc -E runs the code through the compiler's parser,
6626  # not just through cpp. "Syntax error" is here to catch this case.
6627  cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633#ifdef __STDC__
6634# include <limits.h>
6635#else
6636# include <assert.h>
6637#endif
6638		     Syntax error
6639_ACEOF
6640if { (ac_try="$ac_cpp conftest.$ac_ext"
6641case "(($ac_try" in
6642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643  *) ac_try_echo=$ac_try;;
6644esac
6645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6646$as_echo "$ac_try_echo") >&5
6647  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6648  ac_status=$?
6649  grep -v '^ *+' conftest.er1 >conftest.err
6650  rm -f conftest.er1
6651  cat conftest.err >&5
6652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); } >/dev/null && {
6654	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6655	 test ! -s conftest.err
6656       }; then
6657  :
6658else
6659  $as_echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662  # Broken: fails on valid input.
6663continue
6664fi
6665
6666rm -f conftest.err conftest.$ac_ext
6667
6668  # OK, works on sane cases.  Now check whether nonexistent headers
6669  # can be detected and how.
6670  cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h.  */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h.  */
6676#include <ac_nonexistent.h>
6677_ACEOF
6678if { (ac_try="$ac_cpp conftest.$ac_ext"
6679case "(($ac_try" in
6680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681  *) ac_try_echo=$ac_try;;
6682esac
6683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6684$as_echo "$ac_try_echo") >&5
6685  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6686  ac_status=$?
6687  grep -v '^ *+' conftest.er1 >conftest.err
6688  rm -f conftest.er1
6689  cat conftest.err >&5
6690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } >/dev/null && {
6692	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6693	 test ! -s conftest.err
6694       }; then
6695  # Broken: success on invalid input.
6696continue
6697else
6698  $as_echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701  # Passes both tests.
6702ac_preproc_ok=:
6703break
6704fi
6705
6706rm -f conftest.err conftest.$ac_ext
6707
6708done
6709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6710rm -f conftest.err conftest.$ac_ext
6711if $ac_preproc_ok; then
6712  :
6713else
6714  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6716{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6717See \`config.log' for more details." >&5
6718$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6719See \`config.log' for more details." >&2;}
6720   { (exit 1); exit 1; }; }; }
6721fi
6722
6723ac_ext=c
6724ac_cpp='$CPP $CPPFLAGS'
6725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
6729
6730{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6731$as_echo_n "checking for ANSI C header files... " >&6; }
6732if test "${ac_cv_header_stdc+set}" = set; then
6733  $as_echo_n "(cached) " >&6
6734else
6735  cat >conftest.$ac_ext <<_ACEOF
6736/* confdefs.h.  */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h.  */
6741#include <stdlib.h>
6742#include <stdarg.h>
6743#include <string.h>
6744#include <float.h>
6745
6746int
6747main ()
6748{
6749
6750  ;
6751  return 0;
6752}
6753_ACEOF
6754rm -f conftest.$ac_objext
6755if { (ac_try="$ac_compile"
6756case "(($ac_try" in
6757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758  *) ac_try_echo=$ac_try;;
6759esac
6760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761$as_echo "$ac_try_echo") >&5
6762  (eval "$ac_compile") 2>conftest.er1
6763  ac_status=$?
6764  grep -v '^ *+' conftest.er1 >conftest.err
6765  rm -f conftest.er1
6766  cat conftest.err >&5
6767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); } && {
6769	 test -z "$ac_c_werror_flag" ||
6770	 test ! -s conftest.err
6771       } && test -s conftest.$ac_objext; then
6772  ac_cv_header_stdc=yes
6773else
6774  $as_echo "$as_me: failed program was:" >&5
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
6777	ac_cv_header_stdc=no
6778fi
6779
6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781
6782if test $ac_cv_header_stdc = yes; then
6783  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6784  cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h.  */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h.  */
6790#include <string.h>
6791
6792_ACEOF
6793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6794  $EGREP "memchr" >/dev/null 2>&1; then
6795  :
6796else
6797  ac_cv_header_stdc=no
6798fi
6799rm -f conftest*
6800
6801fi
6802
6803if test $ac_cv_header_stdc = yes; then
6804  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6805  cat >conftest.$ac_ext <<_ACEOF
6806/* confdefs.h.  */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h.  */
6811#include <stdlib.h>
6812
6813_ACEOF
6814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815  $EGREP "free" >/dev/null 2>&1; then
6816  :
6817else
6818  ac_cv_header_stdc=no
6819fi
6820rm -f conftest*
6821
6822fi
6823
6824if test $ac_cv_header_stdc = yes; then
6825  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6826  if test "$cross_compiling" = yes; then
6827  :
6828else
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#include <ctype.h>
6836#include <stdlib.h>
6837#if ((' ' & 0x0FF) == 0x020)
6838# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6839# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6840#else
6841# define ISLOWER(c) \
6842		   (('a' <= (c) && (c) <= 'i') \
6843		     || ('j' <= (c) && (c) <= 'r') \
6844		     || ('s' <= (c) && (c) <= 'z'))
6845# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6846#endif
6847
6848#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6849int
6850main ()
6851{
6852  int i;
6853  for (i = 0; i < 256; i++)
6854    if (XOR (islower (i), ISLOWER (i))
6855	|| toupper (i) != TOUPPER (i))
6856      return 2;
6857  return 0;
6858}
6859_ACEOF
6860rm -f conftest$ac_exeext
6861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864  *) ac_try_echo=$ac_try;;
6865esac
6866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867$as_echo "$ac_try_echo") >&5
6868  (eval "$ac_link") 2>&5
6869  ac_status=$?
6870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872  { (case "(($ac_try" in
6873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874  *) ac_try_echo=$ac_try;;
6875esac
6876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877$as_echo "$ac_try_echo") >&5
6878  (eval "$ac_try") 2>&5
6879  ac_status=$?
6880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); }; }; then
6882  :
6883else
6884  $as_echo "$as_me: program exited with status $ac_status" >&5
6885$as_echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888( exit $ac_status )
6889ac_cv_header_stdc=no
6890fi
6891rm -rf conftest.dSYM
6892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6893fi
6894
6895
6896fi
6897fi
6898{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6899$as_echo "$ac_cv_header_stdc" >&6; }
6900if test $ac_cv_header_stdc = yes; then
6901
6902cat >>confdefs.h <<\_ACEOF
6903#define STDC_HEADERS 1
6904_ACEOF
6905
6906fi
6907
6908# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6919		  inttypes.h stdint.h unistd.h
6920do
6921as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6923$as_echo_n "checking for $ac_header... " >&6; }
6924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6925  $as_echo_n "(cached) " >&6
6926else
6927  cat >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$ac_includes_default
6934
6935#include <$ac_header>
6936_ACEOF
6937rm -f conftest.$ac_objext
6938if { (ac_try="$ac_compile"
6939case "(($ac_try" in
6940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941  *) ac_try_echo=$ac_try;;
6942esac
6943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6944$as_echo "$ac_try_echo") >&5
6945  (eval "$ac_compile") 2>conftest.er1
6946  ac_status=$?
6947  grep -v '^ *+' conftest.er1 >conftest.err
6948  rm -f conftest.er1
6949  cat conftest.err >&5
6950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951  (exit $ac_status); } && {
6952	 test -z "$ac_c_werror_flag" ||
6953	 test ! -s conftest.err
6954       } && test -s conftest.$ac_objext; then
6955  eval "$as_ac_Header=yes"
6956else
6957  $as_echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960	eval "$as_ac_Header=no"
6961fi
6962
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964fi
6965ac_res=`eval 'as_val=${'$as_ac_Header'}
6966		 $as_echo "$as_val"'`
6967	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6968$as_echo "$ac_res" >&6; }
6969as_val=`eval 'as_val=${'$as_ac_Header'}
6970		 $as_echo "$as_val"'`
6971   if test "x$as_val" = x""yes; then
6972  cat >>confdefs.h <<_ACEOF
6973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6974_ACEOF
6975
6976fi
6977
6978done
6979
6980
6981
6982for ac_header in dlfcn.h
6983do
6984as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6986$as_echo_n "checking for $ac_header... " >&6; }
6987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6988  $as_echo_n "(cached) " >&6
6989else
6990  cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h.  */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h.  */
6996$ac_includes_default
6997
6998#include <$ac_header>
6999_ACEOF
7000rm -f conftest.$ac_objext
7001if { (ac_try="$ac_compile"
7002case "(($ac_try" in
7003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004  *) ac_try_echo=$ac_try;;
7005esac
7006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7007$as_echo "$ac_try_echo") >&5
7008  (eval "$ac_compile") 2>conftest.er1
7009  ac_status=$?
7010  grep -v '^ *+' conftest.er1 >conftest.err
7011  rm -f conftest.er1
7012  cat conftest.err >&5
7013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); } && {
7015	 test -z "$ac_c_werror_flag" ||
7016	 test ! -s conftest.err
7017       } && test -s conftest.$ac_objext; then
7018  eval "$as_ac_Header=yes"
7019else
7020  $as_echo "$as_me: failed program was:" >&5
7021sed 's/^/| /' conftest.$ac_ext >&5
7022
7023	eval "$as_ac_Header=no"
7024fi
7025
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028ac_res=`eval 'as_val=${'$as_ac_Header'}
7029		 $as_echo "$as_val"'`
7030	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7031$as_echo "$ac_res" >&6; }
7032as_val=`eval 'as_val=${'$as_ac_Header'}
7033		 $as_echo "$as_val"'`
7034   if test "x$as_val" = x""yes; then
7035  cat >>confdefs.h <<_ACEOF
7036#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7037_ACEOF
7038
7039fi
7040
7041done
7042
7043
7044
7045# Set options
7046
7047
7048
7049        enable_dlopen=no
7050
7051
7052  enable_win32_dll=no
7053
7054
7055            # Check whether --enable-shared was given.
7056if test "${enable_shared+set}" = set; then
7057  enableval=$enable_shared; p=${PACKAGE-default}
7058    case $enableval in
7059    yes) enable_shared=yes ;;
7060    no) enable_shared=no ;;
7061    *)
7062      enable_shared=no
7063      # Look at the argument we got.  We use all the common list separators.
7064      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7065      for pkg in $enableval; do
7066	IFS="$lt_save_ifs"
7067	if test "X$pkg" = "X$p"; then
7068	  enable_shared=yes
7069	fi
7070      done
7071      IFS="$lt_save_ifs"
7072      ;;
7073    esac
7074else
7075  enable_shared=yes
7076fi
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088# Check whether --with-pic was given.
7089if test "${with_pic+set}" = set; then
7090  withval=$with_pic; pic_mode="$withval"
7091else
7092  pic_mode=default
7093fi
7094
7095
7096test -z "$pic_mode" && pic_mode=default
7097
7098
7099
7100
7101
7102
7103
7104  # Check whether --enable-fast-install was given.
7105if test "${enable_fast_install+set}" = set; then
7106  enableval=$enable_fast_install; p=${PACKAGE-default}
7107    case $enableval in
7108    yes) enable_fast_install=yes ;;
7109    no) enable_fast_install=no ;;
7110    *)
7111      enable_fast_install=no
7112      # Look at the argument we got.  We use all the common list separators.
7113      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7114      for pkg in $enableval; do
7115	IFS="$lt_save_ifs"
7116	if test "X$pkg" = "X$p"; then
7117	  enable_fast_install=yes
7118	fi
7119      done
7120      IFS="$lt_save_ifs"
7121      ;;
7122    esac
7123else
7124  enable_fast_install=yes
7125fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137# This can be used to rebuild libtool when needed
7138LIBTOOL_DEPS="$ltmain"
7139
7140# Always use our own libtool.
7141LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167test -z "$LN_S" && LN_S="ln -s"
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182if test -n "${ZSH_VERSION+set}" ; then
7183   setopt NO_GLOB_SUBST
7184fi
7185
7186{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7187$as_echo_n "checking for objdir... " >&6; }
7188if test "${lt_cv_objdir+set}" = set; then
7189  $as_echo_n "(cached) " >&6
7190else
7191  rm -f .libs 2>/dev/null
7192mkdir .libs 2>/dev/null
7193if test -d .libs; then
7194  lt_cv_objdir=.libs
7195else
7196  # MS-DOS does not allow filenames that begin with a dot.
7197  lt_cv_objdir=_libs
7198fi
7199rmdir .libs 2>/dev/null
7200fi
7201{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7202$as_echo "$lt_cv_objdir" >&6; }
7203objdir=$lt_cv_objdir
7204
7205
7206
7207
7208
7209cat >>confdefs.h <<_ACEOF
7210#define LT_OBJDIR "$lt_cv_objdir/"
7211_ACEOF
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229case $host_os in
7230aix3*)
7231  # AIX sometimes has problems with the GCC collect2 program.  For some
7232  # reason, if we set the COLLECT_NAMES environment variable, the problems
7233  # vanish in a puff of smoke.
7234  if test "X${COLLECT_NAMES+set}" != Xset; then
7235    COLLECT_NAMES=
7236    export COLLECT_NAMES
7237  fi
7238  ;;
7239esac
7240
7241# Sed substitution that helps us do robust quoting.  It backslashifies
7242# metacharacters that are still active within double-quoted strings.
7243sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7244
7245# Same as above, but do not quote variable references.
7246double_quote_subst='s/\(["`\\]\)/\\\1/g'
7247
7248# Sed substitution to delay expansion of an escaped shell variable in a
7249# double_quote_subst'ed string.
7250delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7251
7252# Sed substitution to delay expansion of an escaped single quote.
7253delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7254
7255# Sed substitution to avoid accidental globbing in evaled expressions
7256no_glob_subst='s/\*/\\\*/g'
7257
7258# Global variables:
7259ofile=libtool
7260can_build_shared=yes
7261
7262# All known linkers require a `.a' archive for static linking (except MSVC,
7263# which needs '.lib').
7264libext=a
7265
7266with_gnu_ld="$lt_cv_prog_gnu_ld"
7267
7268old_CC="$CC"
7269old_CFLAGS="$CFLAGS"
7270
7271# Set sane defaults for various variables
7272test -z "$CC" && CC=cc
7273test -z "$LTCC" && LTCC=$CC
7274test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7275test -z "$LD" && LD=ld
7276test -z "$ac_objext" && ac_objext=o
7277
7278for cc_temp in $compiler""; do
7279  case $cc_temp in
7280    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7281    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7282    \-*) ;;
7283    *) break;;
7284  esac
7285done
7286cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7287
7288
7289# Only perform the check for file, if the check method requires it
7290test -z "$MAGIC_CMD" && MAGIC_CMD=file
7291case $deplibs_check_method in
7292file_magic*)
7293  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7294    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7295$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7296if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7297  $as_echo_n "(cached) " >&6
7298else
7299  case $MAGIC_CMD in
7300[\\/*] |  ?:[\\/]*)
7301  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7302  ;;
7303*)
7304  lt_save_MAGIC_CMD="$MAGIC_CMD"
7305  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7306  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7307  for ac_dir in $ac_dummy; do
7308    IFS="$lt_save_ifs"
7309    test -z "$ac_dir" && ac_dir=.
7310    if test -f $ac_dir/${ac_tool_prefix}file; then
7311      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7312      if test -n "$file_magic_test_file"; then
7313	case $deplibs_check_method in
7314	"file_magic "*)
7315	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7316	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7318	    $EGREP "$file_magic_regex" > /dev/null; then
7319	    :
7320	  else
7321	    cat <<_LT_EOF 1>&2
7322
7323*** Warning: the command libtool uses to detect shared libraries,
7324*** $file_magic_cmd, produces output that libtool cannot recognize.
7325*** The result is that libtool may fail to recognize shared libraries
7326*** as such.  This will affect the creation of libtool libraries that
7327*** depend on shared libraries, but programs linked with such libtool
7328*** libraries will work regardless of this problem.  Nevertheless, you
7329*** may want to report the problem to your system manager and/or to
7330*** bug-libtool@gnu.org
7331
7332_LT_EOF
7333	  fi ;;
7334	esac
7335      fi
7336      break
7337    fi
7338  done
7339  IFS="$lt_save_ifs"
7340  MAGIC_CMD="$lt_save_MAGIC_CMD"
7341  ;;
7342esac
7343fi
7344
7345MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346if test -n "$MAGIC_CMD"; then
7347  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7348$as_echo "$MAGIC_CMD" >&6; }
7349else
7350  { $as_echo "$as_me:$LINENO: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354
7355
7356
7357
7358if test -z "$lt_cv_path_MAGIC_CMD"; then
7359  if test -n "$ac_tool_prefix"; then
7360    { $as_echo "$as_me:$LINENO: checking for file" >&5
7361$as_echo_n "checking for file... " >&6; }
7362if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7363  $as_echo_n "(cached) " >&6
7364else
7365  case $MAGIC_CMD in
7366[\\/*] |  ?:[\\/]*)
7367  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7368  ;;
7369*)
7370  lt_save_MAGIC_CMD="$MAGIC_CMD"
7371  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7373  for ac_dir in $ac_dummy; do
7374    IFS="$lt_save_ifs"
7375    test -z "$ac_dir" && ac_dir=.
7376    if test -f $ac_dir/file; then
7377      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7378      if test -n "$file_magic_test_file"; then
7379	case $deplibs_check_method in
7380	"file_magic "*)
7381	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7382	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7383	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7384	    $EGREP "$file_magic_regex" > /dev/null; then
7385	    :
7386	  else
7387	    cat <<_LT_EOF 1>&2
7388
7389*** Warning: the command libtool uses to detect shared libraries,
7390*** $file_magic_cmd, produces output that libtool cannot recognize.
7391*** The result is that libtool may fail to recognize shared libraries
7392*** as such.  This will affect the creation of libtool libraries that
7393*** depend on shared libraries, but programs linked with such libtool
7394*** libraries will work regardless of this problem.  Nevertheless, you
7395*** may want to report the problem to your system manager and/or to
7396*** bug-libtool@gnu.org
7397
7398_LT_EOF
7399	  fi ;;
7400	esac
7401      fi
7402      break
7403    fi
7404  done
7405  IFS="$lt_save_ifs"
7406  MAGIC_CMD="$lt_save_MAGIC_CMD"
7407  ;;
7408esac
7409fi
7410
7411MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412if test -n "$MAGIC_CMD"; then
7413  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7414$as_echo "$MAGIC_CMD" >&6; }
7415else
7416  { $as_echo "$as_me:$LINENO: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420
7421  else
7422    MAGIC_CMD=:
7423  fi
7424fi
7425
7426  fi
7427  ;;
7428esac
7429
7430# Use C for the default configuration in the libtool script
7431
7432lt_save_CC="$CC"
7433ac_ext=c
7434ac_cpp='$CPP $CPPFLAGS'
7435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438
7439
7440# Source file extension for C test sources.
7441ac_ext=c
7442
7443# Object file extension for compiled C test sources.
7444objext=o
7445objext=$objext
7446
7447# Code to be used in simple compile tests
7448lt_simple_compile_test_code="int some_variable = 0;"
7449
7450# Code to be used in simple link tests
7451lt_simple_link_test_code='int main(){return(0);}'
7452
7453
7454
7455
7456
7457
7458
7459# If no C compiler was specified, use CC.
7460LTCC=${LTCC-"$CC"}
7461
7462# If no C compiler flags were specified, use CFLAGS.
7463LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7464
7465# Allow CC to be a program name with arguments.
7466compiler=$CC
7467
7468# Save the default compiler, since it gets overwritten when the other
7469# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7470compiler_DEFAULT=$CC
7471
7472# save warnings/boilerplate of simple test code
7473ac_outfile=conftest.$ac_objext
7474echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7475eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7476_lt_compiler_boilerplate=`cat conftest.err`
7477$RM conftest*
7478
7479ac_outfile=conftest.$ac_objext
7480echo "$lt_simple_link_test_code" >conftest.$ac_ext
7481eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7482_lt_linker_boilerplate=`cat conftest.err`
7483$RM -r conftest*
7484
7485
7486if test -n "$compiler"; then
7487
7488lt_prog_compiler_no_builtin_flag=
7489
7490if test "$GCC" = yes; then
7491  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7492
7493  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7494$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7495if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7496  $as_echo_n "(cached) " >&6
7497else
7498  lt_cv_prog_compiler_rtti_exceptions=no
7499   ac_outfile=conftest.$ac_objext
7500   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7501   lt_compiler_flag="-fno-rtti -fno-exceptions"
7502   # Insert the option either (1) after the last *FLAGS variable, or
7503   # (2) before a word containing "conftest.", or (3) at the end.
7504   # Note that $ac_compile itself does not contain backslashes and begins
7505   # with a dollar sign (not a hyphen), so the echo should work correctly.
7506   # The option is referenced via a variable to avoid confusing sed.
7507   lt_compile=`echo "$ac_compile" | $SED \
7508   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7509   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7510   -e 's:$: $lt_compiler_flag:'`
7511   (eval echo "\"\$as_me:7511: $lt_compile\"" >&5)
7512   (eval "$lt_compile" 2>conftest.err)
7513   ac_status=$?
7514   cat conftest.err >&5
7515   echo "$as_me:7515: \$? = $ac_status" >&5
7516   if (exit $ac_status) && test -s "$ac_outfile"; then
7517     # The compiler can only warn and ignore the option if not recognized
7518     # So say no if there are warnings other than the usual output.
7519     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7520     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7521     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7522       lt_cv_prog_compiler_rtti_exceptions=yes
7523     fi
7524   fi
7525   $RM conftest*
7526
7527fi
7528{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7529$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7530
7531if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7532    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7533else
7534    :
7535fi
7536
7537fi
7538
7539
7540
7541
7542
7543
7544  lt_prog_compiler_wl=
7545lt_prog_compiler_pic=
7546lt_prog_compiler_static=
7547
7548{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7549$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7550
7551  if test "$GCC" = yes; then
7552    lt_prog_compiler_wl='-Wl,'
7553    lt_prog_compiler_static='-static'
7554
7555    case $host_os in
7556      aix*)
7557      # All AIX code is PIC.
7558      if test "$host_cpu" = ia64; then
7559	# AIX 5 now supports IA64 processor
7560	lt_prog_compiler_static='-Bstatic'
7561      fi
7562      ;;
7563
7564    amigaos*)
7565      case $host_cpu in
7566      powerpc)
7567            # see comment about AmigaOS4 .so support
7568            lt_prog_compiler_pic='-fPIC'
7569        ;;
7570      m68k)
7571            # FIXME: we need at least 68020 code to build shared libraries, but
7572            # adding the `-m68020' flag to GCC prevents building anything better,
7573            # like `-m68040'.
7574            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7575        ;;
7576      esac
7577      ;;
7578
7579    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7580      # PIC is the default for these OSes.
7581      ;;
7582
7583    mingw* | cygwin* | pw32* | os2* | cegcc*)
7584      # This hack is so that the source file can tell whether it is being
7585      # built for inclusion in a dll (and should export symbols for example).
7586      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7587      # (--disable-auto-import) libraries
7588      lt_prog_compiler_pic='-DDLL_EXPORT'
7589      ;;
7590
7591    darwin* | rhapsody*)
7592      # PIC is the default on this platform
7593      # Common symbols not allowed in MH_DYLIB files
7594      lt_prog_compiler_pic='-fno-common'
7595      ;;
7596
7597    hpux*)
7598      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7599      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7600      # sets the default TLS model and affects inlining.
7601      case $host_cpu in
7602      hppa*64*)
7603	# +Z the default
7604	;;
7605      *)
7606	lt_prog_compiler_pic='-fPIC'
7607	;;
7608      esac
7609      ;;
7610
7611    interix[3-9]*)
7612      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7613      # Instead, we relocate shared libraries at runtime.
7614      ;;
7615
7616    msdosdjgpp*)
7617      # Just because we use GCC doesn't mean we suddenly get shared libraries
7618      # on systems that don't support them.
7619      lt_prog_compiler_can_build_shared=no
7620      enable_shared=no
7621      ;;
7622
7623    *nto* | *qnx*)
7624      # QNX uses GNU C++, but need to define -shared option too, otherwise
7625      # it will coredump.
7626      lt_prog_compiler_pic='-fPIC -shared'
7627      ;;
7628
7629    sysv4*MP*)
7630      if test -d /usr/nec; then
7631	lt_prog_compiler_pic=-Kconform_pic
7632      fi
7633      ;;
7634
7635    *)
7636      lt_prog_compiler_pic='-fPIC'
7637      ;;
7638    esac
7639  else
7640    # PORTME Check for flag to pass linker flags through the system compiler.
7641    case $host_os in
7642    aix*)
7643      lt_prog_compiler_wl='-Wl,'
7644      if test "$host_cpu" = ia64; then
7645	# AIX 5 now supports IA64 processor
7646	lt_prog_compiler_static='-Bstatic'
7647      else
7648	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7649      fi
7650      ;;
7651
7652    mingw* | cygwin* | pw32* | os2* | cegcc*)
7653      # This hack is so that the source file can tell whether it is being
7654      # built for inclusion in a dll (and should export symbols for example).
7655      lt_prog_compiler_pic='-DDLL_EXPORT'
7656      ;;
7657
7658    hpux9* | hpux10* | hpux11*)
7659      lt_prog_compiler_wl='-Wl,'
7660      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7661      # not for PA HP-UX.
7662      case $host_cpu in
7663      hppa*64*|ia64*)
7664	# +Z the default
7665	;;
7666      *)
7667	lt_prog_compiler_pic='+Z'
7668	;;
7669      esac
7670      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7671      lt_prog_compiler_static='${wl}-a ${wl}archive'
7672      ;;
7673
7674    irix5* | irix6* | nonstopux*)
7675      lt_prog_compiler_wl='-Wl,'
7676      # PIC (with -KPIC) is the default.
7677      lt_prog_compiler_static='-non_shared'
7678      ;;
7679
7680    linux* | k*bsd*-gnu)
7681      case $cc_basename in
7682      # old Intel for x86_64 which still supported -KPIC.
7683      ecc*)
7684	lt_prog_compiler_wl='-Wl,'
7685	lt_prog_compiler_pic='-KPIC'
7686	lt_prog_compiler_static='-static'
7687        ;;
7688      # icc used to be incompatible with GCC.
7689      # ICC 10 doesn't accept -KPIC any more.
7690      icc* | ifort*)
7691	lt_prog_compiler_wl='-Wl,'
7692	lt_prog_compiler_pic='-fPIC'
7693	lt_prog_compiler_static='-static'
7694        ;;
7695      # Lahey Fortran 8.1.
7696      lf95*)
7697	lt_prog_compiler_wl='-Wl,'
7698	lt_prog_compiler_pic='--shared'
7699	lt_prog_compiler_static='--static'
7700	;;
7701      pgcc* | pgf77* | pgf90* | pgf95*)
7702        # Portland Group compilers (*not* the Pentium gcc compiler,
7703	# which looks to be a dead project)
7704	lt_prog_compiler_wl='-Wl,'
7705	lt_prog_compiler_pic='-fpic'
7706	lt_prog_compiler_static='-Bstatic'
7707        ;;
7708      ccc*)
7709        lt_prog_compiler_wl='-Wl,'
7710        # All Alpha code is PIC.
7711        lt_prog_compiler_static='-non_shared'
7712        ;;
7713      xl*)
7714	# IBM XL C 8.0/Fortran 10.1 on PPC
7715	lt_prog_compiler_wl='-Wl,'
7716	lt_prog_compiler_pic='-qpic'
7717	lt_prog_compiler_static='-qstaticlink'
7718	;;
7719      *)
7720	case `$CC -V 2>&1 | sed 5q` in
7721	*Sun\ C*)
7722	  # Sun C 5.9
7723	  lt_prog_compiler_pic='-KPIC'
7724	  lt_prog_compiler_static='-Bstatic'
7725	  lt_prog_compiler_wl='-Wl,'
7726	  ;;
7727	*Sun\ F*)
7728	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7729	  lt_prog_compiler_pic='-KPIC'
7730	  lt_prog_compiler_static='-Bstatic'
7731	  lt_prog_compiler_wl=''
7732	  ;;
7733	esac
7734	;;
7735      esac
7736      ;;
7737
7738    newsos6)
7739      lt_prog_compiler_pic='-KPIC'
7740      lt_prog_compiler_static='-Bstatic'
7741      ;;
7742
7743    *nto* | *qnx*)
7744      # QNX uses GNU C++, but need to define -shared option too, otherwise
7745      # it will coredump.
7746      lt_prog_compiler_pic='-fPIC -shared'
7747      ;;
7748
7749    osf3* | osf4* | osf5*)
7750      lt_prog_compiler_wl='-Wl,'
7751      # All OSF/1 code is PIC.
7752      lt_prog_compiler_static='-non_shared'
7753      ;;
7754
7755    rdos*)
7756      lt_prog_compiler_static='-non_shared'
7757      ;;
7758
7759    solaris*)
7760      lt_prog_compiler_pic='-KPIC'
7761      lt_prog_compiler_static='-Bstatic'
7762      case $cc_basename in
7763      f77* | f90* | f95*)
7764	lt_prog_compiler_wl='-Qoption ld ';;
7765      *)
7766	lt_prog_compiler_wl='-Wl,';;
7767      esac
7768      ;;
7769
7770    sunos4*)
7771      lt_prog_compiler_wl='-Qoption ld '
7772      lt_prog_compiler_pic='-PIC'
7773      lt_prog_compiler_static='-Bstatic'
7774      ;;
7775
7776    sysv4 | sysv4.2uw2* | sysv4.3*)
7777      lt_prog_compiler_wl='-Wl,'
7778      lt_prog_compiler_pic='-KPIC'
7779      lt_prog_compiler_static='-Bstatic'
7780      ;;
7781
7782    sysv4*MP*)
7783      if test -d /usr/nec ;then
7784	lt_prog_compiler_pic='-Kconform_pic'
7785	lt_prog_compiler_static='-Bstatic'
7786      fi
7787      ;;
7788
7789    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7790      lt_prog_compiler_wl='-Wl,'
7791      lt_prog_compiler_pic='-KPIC'
7792      lt_prog_compiler_static='-Bstatic'
7793      ;;
7794
7795    unicos*)
7796      lt_prog_compiler_wl='-Wl,'
7797      lt_prog_compiler_can_build_shared=no
7798      ;;
7799
7800    uts4*)
7801      lt_prog_compiler_pic='-pic'
7802      lt_prog_compiler_static='-Bstatic'
7803      ;;
7804
7805    *)
7806      lt_prog_compiler_can_build_shared=no
7807      ;;
7808    esac
7809  fi
7810
7811case $host_os in
7812  # For platforms which do not support PIC, -DPIC is meaningless:
7813  *djgpp*)
7814    lt_prog_compiler_pic=
7815    ;;
7816  *)
7817    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7818    ;;
7819esac
7820{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7821$as_echo "$lt_prog_compiler_pic" >&6; }
7822
7823
7824
7825
7826
7827
7828#
7829# Check to make sure the PIC flag actually works.
7830#
7831if test -n "$lt_prog_compiler_pic"; then
7832  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7833$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7834if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7835  $as_echo_n "(cached) " >&6
7836else
7837  lt_cv_prog_compiler_pic_works=no
7838   ac_outfile=conftest.$ac_objext
7839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7840   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7841   # Insert the option either (1) after the last *FLAGS variable, or
7842   # (2) before a word containing "conftest.", or (3) at the end.
7843   # Note that $ac_compile itself does not contain backslashes and begins
7844   # with a dollar sign (not a hyphen), so the echo should work correctly.
7845   # The option is referenced via a variable to avoid confusing sed.
7846   lt_compile=`echo "$ac_compile" | $SED \
7847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849   -e 's:$: $lt_compiler_flag:'`
7850   (eval echo "\"\$as_me:7850: $lt_compile\"" >&5)
7851   (eval "$lt_compile" 2>conftest.err)
7852   ac_status=$?
7853   cat conftest.err >&5
7854   echo "$as_me:7854: \$? = $ac_status" >&5
7855   if (exit $ac_status) && test -s "$ac_outfile"; then
7856     # The compiler can only warn and ignore the option if not recognized
7857     # So say no if there are warnings other than the usual output.
7858     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7859     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7860     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7861       lt_cv_prog_compiler_pic_works=yes
7862     fi
7863   fi
7864   $RM conftest*
7865
7866fi
7867{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7868$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7869
7870if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7871    case $lt_prog_compiler_pic in
7872     "" | " "*) ;;
7873     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7874     esac
7875else
7876    lt_prog_compiler_pic=
7877     lt_prog_compiler_can_build_shared=no
7878fi
7879
7880fi
7881
7882
7883
7884
7885
7886
7887#
7888# Check to make sure the static flag actually works.
7889#
7890wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7891{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7892$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7893if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7894  $as_echo_n "(cached) " >&6
7895else
7896  lt_cv_prog_compiler_static_works=no
7897   save_LDFLAGS="$LDFLAGS"
7898   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7899   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7900   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7901     # The linker can only warn and ignore the option if not recognized
7902     # So say no if there are warnings
7903     if test -s conftest.err; then
7904       # Append any errors to the config.log.
7905       cat conftest.err 1>&5
7906       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7907       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7908       if diff conftest.exp conftest.er2 >/dev/null; then
7909         lt_cv_prog_compiler_static_works=yes
7910       fi
7911     else
7912       lt_cv_prog_compiler_static_works=yes
7913     fi
7914   fi
7915   $RM -r conftest*
7916   LDFLAGS="$save_LDFLAGS"
7917
7918fi
7919{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7920$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7921
7922if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7923    :
7924else
7925    lt_prog_compiler_static=
7926fi
7927
7928
7929
7930
7931
7932
7933
7934  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7936if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7937  $as_echo_n "(cached) " >&6
7938else
7939  lt_cv_prog_compiler_c_o=no
7940   $RM -r conftest 2>/dev/null
7941   mkdir conftest
7942   cd conftest
7943   mkdir out
7944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7945
7946   lt_compiler_flag="-o out/conftest2.$ac_objext"
7947   # Insert the option either (1) after the last *FLAGS variable, or
7948   # (2) before a word containing "conftest.", or (3) at the end.
7949   # Note that $ac_compile itself does not contain backslashes and begins
7950   # with a dollar sign (not a hyphen), so the echo should work correctly.
7951   lt_compile=`echo "$ac_compile" | $SED \
7952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7954   -e 's:$: $lt_compiler_flag:'`
7955   (eval echo "\"\$as_me:7955: $lt_compile\"" >&5)
7956   (eval "$lt_compile" 2>out/conftest.err)
7957   ac_status=$?
7958   cat out/conftest.err >&5
7959   echo "$as_me:7959: \$? = $ac_status" >&5
7960   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7961   then
7962     # The compiler can only warn and ignore the option if not recognized
7963     # So say no if there are warnings
7964     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7965     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7966     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7967       lt_cv_prog_compiler_c_o=yes
7968     fi
7969   fi
7970   chmod u+w . 2>&5
7971   $RM conftest*
7972   # SGI C++ compiler will create directory out/ii_files/ for
7973   # template instantiation
7974   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7975   $RM out/* && rmdir out
7976   cd ..
7977   $RM -r conftest
7978   $RM conftest*
7979
7980fi
7981{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7982$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7983
7984
7985
7986
7987
7988
7989  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7990$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7991if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7992  $as_echo_n "(cached) " >&6
7993else
7994  lt_cv_prog_compiler_c_o=no
7995   $RM -r conftest 2>/dev/null
7996   mkdir conftest
7997   cd conftest
7998   mkdir out
7999   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8000
8001   lt_compiler_flag="-o out/conftest2.$ac_objext"
8002   # Insert the option either (1) after the last *FLAGS variable, or
8003   # (2) before a word containing "conftest.", or (3) at the end.
8004   # Note that $ac_compile itself does not contain backslashes and begins
8005   # with a dollar sign (not a hyphen), so the echo should work correctly.
8006   lt_compile=`echo "$ac_compile" | $SED \
8007   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8008   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8009   -e 's:$: $lt_compiler_flag:'`
8010   (eval echo "\"\$as_me:8010: $lt_compile\"" >&5)
8011   (eval "$lt_compile" 2>out/conftest.err)
8012   ac_status=$?
8013   cat out/conftest.err >&5
8014   echo "$as_me:8014: \$? = $ac_status" >&5
8015   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8016   then
8017     # The compiler can only warn and ignore the option if not recognized
8018     # So say no if there are warnings
8019     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8020     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8021     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8022       lt_cv_prog_compiler_c_o=yes
8023     fi
8024   fi
8025   chmod u+w . 2>&5
8026   $RM conftest*
8027   # SGI C++ compiler will create directory out/ii_files/ for
8028   # template instantiation
8029   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8030   $RM out/* && rmdir out
8031   cd ..
8032   $RM -r conftest
8033   $RM conftest*
8034
8035fi
8036{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8037$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8038
8039
8040
8041
8042hard_links="nottested"
8043if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8044  # do not overwrite the value of need_locks provided by the user
8045  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8046$as_echo_n "checking if we can lock with hard links... " >&6; }
8047  hard_links=yes
8048  $RM conftest*
8049  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8050  touch conftest.a
8051  ln conftest.a conftest.b 2>&5 || hard_links=no
8052  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8053  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8054$as_echo "$hard_links" >&6; }
8055  if test "$hard_links" = no; then
8056    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8057$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8058    need_locks=warn
8059  fi
8060else
8061  need_locks=no
8062fi
8063
8064
8065
8066
8067
8068
8069  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8070$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8071
8072  runpath_var=
8073  allow_undefined_flag=
8074  always_export_symbols=no
8075  archive_cmds=
8076  archive_expsym_cmds=
8077  compiler_needs_object=no
8078  enable_shared_with_static_runtimes=no
8079  export_dynamic_flag_spec=
8080  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8081  hardcode_automatic=no
8082  hardcode_direct=no
8083  hardcode_direct_absolute=no
8084  hardcode_libdir_flag_spec=
8085  hardcode_libdir_flag_spec_ld=
8086  hardcode_libdir_separator=
8087  hardcode_minus_L=no
8088  hardcode_shlibpath_var=unsupported
8089  inherit_rpath=no
8090  link_all_deplibs=unknown
8091  module_cmds=
8092  module_expsym_cmds=
8093  old_archive_from_new_cmds=
8094  old_archive_from_expsyms_cmds=
8095  thread_safe_flag_spec=
8096  whole_archive_flag_spec=
8097  # include_expsyms should be a list of space-separated symbols to be *always*
8098  # included in the symbol list
8099  include_expsyms=
8100  # exclude_expsyms can be an extended regexp of symbols to exclude
8101  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103  # as well as any symbol that contains `d'.
8104  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8105  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106  # platforms (ab)use it in PIC code, but their linkers get confused if
8107  # the symbol is explicitly referenced.  Since portable code cannot
8108  # rely on this symbol name, it's probably fine to never include it in
8109  # preloaded symbol tables.
8110  # Exclude shared library initialization/finalization symbols.
8111  extract_expsyms_cmds=
8112
8113  case $host_os in
8114  cygwin* | mingw* | pw32* | cegcc*)
8115    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8116    # When not using gcc, we currently assume that we are using
8117    # Microsoft Visual C++.
8118    if test "$GCC" != yes; then
8119      with_gnu_ld=no
8120    fi
8121    ;;
8122  interix*)
8123    # we just hope/assume this is gcc and not c89 (= MSVC++)
8124    with_gnu_ld=yes
8125    ;;
8126  openbsd*)
8127    with_gnu_ld=no
8128    ;;
8129  esac
8130
8131  ld_shlibs=yes
8132  if test "$with_gnu_ld" = yes; then
8133    # If archive_cmds runs LD, not CC, wlarc should be empty
8134    wlarc='${wl}'
8135
8136    # Set some defaults for GNU ld with shared library support. These
8137    # are reset later if shared libraries are not supported. Putting them
8138    # here allows them to be overridden if necessary.
8139    runpath_var=LD_RUN_PATH
8140    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8141    export_dynamic_flag_spec='${wl}--export-dynamic'
8142    # ancient GNU ld didn't support --whole-archive et. al.
8143    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8144      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8145    else
8146      whole_archive_flag_spec=
8147    fi
8148    supports_anon_versioning=no
8149    case `$LD -v 2>&1` in
8150      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8151      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8152      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8153      *\ 2.11.*) ;; # other 2.11 versions
8154      *) supports_anon_versioning=yes ;;
8155    esac
8156
8157    # See if GNU ld supports shared libraries.
8158    case $host_os in
8159    aix[3-9]*)
8160      # On AIX/PPC, the GNU linker is very broken
8161      if test "$host_cpu" != ia64; then
8162	ld_shlibs=no
8163	cat <<_LT_EOF 1>&2
8164
8165*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8166*** to be unable to reliably create shared libraries on AIX.
8167*** Therefore, libtool is disabling shared libraries support.  If you
8168*** really care for shared libraries, you may want to modify your PATH
8169*** so that a non-GNU linker is found, and then restart.
8170
8171_LT_EOF
8172      fi
8173      ;;
8174
8175    amigaos*)
8176      case $host_cpu in
8177      powerpc)
8178            # see comment about AmigaOS4 .so support
8179            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8180            archive_expsym_cmds=''
8181        ;;
8182      m68k)
8183            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)'
8184            hardcode_libdir_flag_spec='-L$libdir'
8185            hardcode_minus_L=yes
8186        ;;
8187      esac
8188      ;;
8189
8190    beos*)
8191      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8192	allow_undefined_flag=unsupported
8193	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8194	# support --undefined.  This deserves some investigation.  FIXME
8195	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196      else
8197	ld_shlibs=no
8198      fi
8199      ;;
8200
8201    cygwin* | mingw* | pw32* | cegcc*)
8202      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8203      # as there is no search path for DLLs.
8204      hardcode_libdir_flag_spec='-L$libdir'
8205      allow_undefined_flag=unsupported
8206      always_export_symbols=no
8207      enable_shared_with_static_runtimes=yes
8208      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8209
8210      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8211        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8212	# If the export-symbols file already is a .def file (1st line
8213	# is EXPORTS), use it as is; otherwise, prepend...
8214	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8215	  cp $export_symbols $output_objdir/$soname.def;
8216	else
8217	  echo EXPORTS > $output_objdir/$soname.def;
8218	  cat $export_symbols >> $output_objdir/$soname.def;
8219	fi~
8220	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8221      else
8222	ld_shlibs=no
8223      fi
8224      ;;
8225
8226    interix[3-9]*)
8227      hardcode_direct=no
8228      hardcode_shlibpath_var=no
8229      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8230      export_dynamic_flag_spec='${wl}-E'
8231      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8232      # Instead, shared libraries are loaded at an image base (0x10000000 by
8233      # default) and relocated if they conflict, which is a slow very memory
8234      # consuming and fragmenting process.  To avoid this, we pick a random,
8235      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8236      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8237      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8238      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'
8239      ;;
8240
8241    gnu* | linux* | tpf* | k*bsd*-gnu)
8242      tmp_diet=no
8243      if test "$host_os" = linux-dietlibc; then
8244	case $cc_basename in
8245	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8246	esac
8247      fi
8248      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8249	 && test "$tmp_diet" = no
8250      then
8251	tmp_addflag=
8252	tmp_sharedflag='-shared'
8253	case $cc_basename,$host_cpu in
8254        pgcc*)				# Portland Group C compiler
8255	  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'
8256	  tmp_addflag=' $pic_flag'
8257	  ;;
8258	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8259	  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'
8260	  tmp_addflag=' $pic_flag -Mnomain' ;;
8261	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8262	  tmp_addflag=' -i_dynamic' ;;
8263	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8264	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8265	ifc* | ifort*)			# Intel Fortran compiler
8266	  tmp_addflag=' -nofor_main' ;;
8267	lf95*)				# Lahey Fortran 8.1
8268	  whole_archive_flag_spec=
8269	  tmp_sharedflag='--shared' ;;
8270	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8271	  tmp_sharedflag='-qmkshrobj'
8272	  tmp_addflag= ;;
8273	esac
8274	case `$CC -V 2>&1 | sed 5q` in
8275	*Sun\ C*)			# Sun C 5.9
8276	  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'
8277	  compiler_needs_object=yes
8278	  tmp_sharedflag='-G' ;;
8279	*Sun\ F*)			# Sun Fortran 8.3
8280	  tmp_sharedflag='-G' ;;
8281	esac
8282	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283
8284        if test "x$supports_anon_versioning" = xyes; then
8285          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8286	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8287	    echo "local: *; };" >> $output_objdir/$libname.ver~
8288	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8289        fi
8290
8291	case $cc_basename in
8292	xlf*)
8293	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8294	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8295	  hardcode_libdir_flag_spec=
8296	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8297	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8298	  if test "x$supports_anon_versioning" = xyes; then
8299	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8300	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8301	      echo "local: *; };" >> $output_objdir/$libname.ver~
8302	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8303	  fi
8304	  ;;
8305	esac
8306      else
8307        ld_shlibs=no
8308      fi
8309      ;;
8310
8311    netbsd*)
8312      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8313	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8314	wlarc=
8315      else
8316	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318      fi
8319      ;;
8320
8321    solaris*)
8322      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8323	ld_shlibs=no
8324	cat <<_LT_EOF 1>&2
8325
8326*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8327*** create shared libraries on Solaris systems.  Therefore, libtool
8328*** is disabling shared libraries support.  We urge you to upgrade GNU
8329*** binutils to release 2.9.1 or newer.  Another option is to modify
8330*** your PATH or compiler configuration so that the native linker is
8331*** used, and then restart.
8332
8333_LT_EOF
8334      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8335	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8337      else
8338	ld_shlibs=no
8339      fi
8340      ;;
8341
8342    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8343      case `$LD -v 2>&1` in
8344        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8345	ld_shlibs=no
8346	cat <<_LT_EOF 1>&2
8347
8348*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8349*** reliably create shared libraries on SCO systems.  Therefore, libtool
8350*** is disabling shared libraries support.  We urge you to upgrade GNU
8351*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8352*** your PATH or compiler configuration so that the native linker is
8353*** used, and then restart.
8354
8355_LT_EOF
8356	;;
8357	*)
8358	  # For security reasons, it is highly recommended that you always
8359	  # use absolute paths for naming shared libraries, and exclude the
8360	  # DT_RUNPATH tag from executables and libraries.  But doing so
8361	  # requires that you compile everything twice, which is a pain.
8362	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8363	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8364	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8366	  else
8367	    ld_shlibs=no
8368	  fi
8369	;;
8370      esac
8371      ;;
8372
8373    sunos4*)
8374      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8375      wlarc=
8376      hardcode_direct=yes
8377      hardcode_shlibpath_var=no
8378      ;;
8379
8380    *)
8381      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8382	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8383	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8384      else
8385	ld_shlibs=no
8386      fi
8387      ;;
8388    esac
8389
8390    if test "$ld_shlibs" = no; then
8391      runpath_var=
8392      hardcode_libdir_flag_spec=
8393      export_dynamic_flag_spec=
8394      whole_archive_flag_spec=
8395    fi
8396  else
8397    # PORTME fill in a description of your system's linker (not GNU ld)
8398    case $host_os in
8399    aix3*)
8400      allow_undefined_flag=unsupported
8401      always_export_symbols=yes
8402      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'
8403      # Note: this linker hardcodes the directories in LIBPATH if there
8404      # are no directories specified by -L.
8405      hardcode_minus_L=yes
8406      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8407	# Neither direct hardcoding nor static linking is supported with a
8408	# broken collect2.
8409	hardcode_direct=unsupported
8410      fi
8411      ;;
8412
8413    aix[4-9]*)
8414      if test "$host_cpu" = ia64; then
8415	# On IA64, the linker does run time linking by default, so we don't
8416	# have to do anything special.
8417	aix_use_runtimelinking=no
8418	exp_sym_flag='-Bexport'
8419	no_entry_flag=""
8420      else
8421	# If we're using GNU nm, then we don't want the "-C" option.
8422	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8423	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8424	  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'
8425	else
8426	  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'
8427	fi
8428	aix_use_runtimelinking=no
8429
8430	# Test if we are trying to use run time linking or normal
8431	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8432	# need to do runtime linking.
8433	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8434	  for ld_flag in $LDFLAGS; do
8435	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8436	    aix_use_runtimelinking=yes
8437	    break
8438	  fi
8439	  done
8440	  ;;
8441	esac
8442
8443	exp_sym_flag='-bexport'
8444	no_entry_flag='-bnoentry'
8445      fi
8446
8447      # When large executables or shared objects are built, AIX ld can
8448      # have problems creating the table of contents.  If linking a library
8449      # or program results in "error TOC overflow" add -mminimal-toc to
8450      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8451      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8452
8453      archive_cmds=''
8454      hardcode_direct=yes
8455      hardcode_direct_absolute=yes
8456      hardcode_libdir_separator=':'
8457      link_all_deplibs=yes
8458      file_list_spec='${wl}-f,'
8459
8460      if test "$GCC" = yes; then
8461	case $host_os in aix4.[012]|aix4.[012].*)
8462	# We only want to do this on AIX 4.2 and lower, the check
8463	# below for broken collect2 doesn't work under 4.3+
8464	  collect2name=`${CC} -print-prog-name=collect2`
8465	  if test -f "$collect2name" &&
8466	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8467	  then
8468	  # We have reworked collect2
8469	  :
8470	  else
8471	  # We have old collect2
8472	  hardcode_direct=unsupported
8473	  # It fails to find uninstalled libraries when the uninstalled
8474	  # path is not listed in the libpath.  Setting hardcode_minus_L
8475	  # to unsupported forces relinking
8476	  hardcode_minus_L=yes
8477	  hardcode_libdir_flag_spec='-L$libdir'
8478	  hardcode_libdir_separator=
8479	  fi
8480	  ;;
8481	esac
8482	shared_flag='-shared'
8483	if test "$aix_use_runtimelinking" = yes; then
8484	  shared_flag="$shared_flag "'${wl}-G'
8485	fi
8486      else
8487	# not using gcc
8488	if test "$host_cpu" = ia64; then
8489	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8490	# chokes on -Wl,-G. The following line is correct:
8491	  shared_flag='-G'
8492	else
8493	  if test "$aix_use_runtimelinking" = yes; then
8494	    shared_flag='${wl}-G'
8495	  else
8496	    shared_flag='${wl}-bM:SRE'
8497	  fi
8498	fi
8499      fi
8500
8501      export_dynamic_flag_spec='${wl}-bexpall'
8502      # It seems that -bexpall does not export symbols beginning with
8503      # underscore (_), so it is better to generate a list of symbols to export.
8504      always_export_symbols=yes
8505      if test "$aix_use_runtimelinking" = yes; then
8506	# Warning - without using the other runtime loading flags (-brtl),
8507	# -berok will link without error, but may produce a broken library.
8508	allow_undefined_flag='-berok'
8509        # Determine the default libpath from the value encoded in an
8510        # empty executable.
8511        cat >conftest.$ac_ext <<_ACEOF
8512/* confdefs.h.  */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h.  */
8517
8518int
8519main ()
8520{
8521
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext conftest$ac_exeext
8527if { (ac_try="$ac_link"
8528case "(($ac_try" in
8529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530  *) ac_try_echo=$ac_try;;
8531esac
8532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533$as_echo "$ac_try_echo") >&5
8534  (eval "$ac_link") 2>conftest.er1
8535  ac_status=$?
8536  grep -v '^ *+' conftest.er1 >conftest.err
8537  rm -f conftest.er1
8538  cat conftest.err >&5
8539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } && {
8541	 test -z "$ac_c_werror_flag" ||
8542	 test ! -s conftest.err
8543       } && test -s conftest$ac_exeext && {
8544	 test "$cross_compiling" = yes ||
8545	 $as_test_x conftest$ac_exeext
8546       }; then
8547
8548lt_aix_libpath_sed='
8549    /Import File Strings/,/^$/ {
8550	/^0/ {
8551	    s/^0  *\(.*\)$/\1/
8552	    p
8553	}
8554    }'
8555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8556# Check for a 64-bit object if we didn't find anything.
8557if test -z "$aix_libpath"; then
8558  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559fi
8560else
8561  $as_echo "$as_me: failed program was:" >&5
8562sed 's/^/| /' conftest.$ac_ext >&5
8563
8564
8565fi
8566
8567rm -rf conftest.dSYM
8568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8569      conftest$ac_exeext conftest.$ac_ext
8570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8571
8572        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8573        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"
8574      else
8575	if test "$host_cpu" = ia64; then
8576	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8577	  allow_undefined_flag="-z nodefs"
8578	  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"
8579	else
8580	 # Determine the default libpath from the value encoded in an
8581	 # empty executable.
8582	 cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h.  */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h.  */
8588
8589int
8590main ()
8591{
8592
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601  *) ac_try_echo=$ac_try;;
8602esac
8603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8604$as_echo "$ac_try_echo") >&5
8605  (eval "$ac_link") 2>conftest.er1
8606  ac_status=$?
8607  grep -v '^ *+' conftest.er1 >conftest.err
8608  rm -f conftest.er1
8609  cat conftest.err >&5
8610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } && {
8612	 test -z "$ac_c_werror_flag" ||
8613	 test ! -s conftest.err
8614       } && test -s conftest$ac_exeext && {
8615	 test "$cross_compiling" = yes ||
8616	 $as_test_x conftest$ac_exeext
8617       }; then
8618
8619lt_aix_libpath_sed='
8620    /Import File Strings/,/^$/ {
8621	/^0/ {
8622	    s/^0  *\(.*\)$/\1/
8623	    p
8624	}
8625    }'
8626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627# Check for a 64-bit object if we didn't find anything.
8628if test -z "$aix_libpath"; then
8629  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630fi
8631else
8632  $as_echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635
8636fi
8637
8638rm -rf conftest.dSYM
8639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8640      conftest$ac_exeext conftest.$ac_ext
8641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642
8643	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8644	  # Warning - without using the other run time loading flags,
8645	  # -berok will link without error, but may produce a broken library.
8646	  no_undefined_flag=' ${wl}-bernotok'
8647	  allow_undefined_flag=' ${wl}-berok'
8648	  # Exported symbols can be pulled into shared objects from archives
8649	  whole_archive_flag_spec='$convenience'
8650	  archive_cmds_need_lc=yes
8651	  # This is similar to how AIX traditionally builds its shared libraries.
8652	  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'
8653	fi
8654      fi
8655      ;;
8656
8657    amigaos*)
8658      case $host_cpu in
8659      powerpc)
8660            # see comment about AmigaOS4 .so support
8661            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662            archive_expsym_cmds=''
8663        ;;
8664      m68k)
8665            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)'
8666            hardcode_libdir_flag_spec='-L$libdir'
8667            hardcode_minus_L=yes
8668        ;;
8669      esac
8670      ;;
8671
8672    bsdi[45]*)
8673      export_dynamic_flag_spec=-rdynamic
8674      ;;
8675
8676    cygwin* | mingw* | pw32* | cegcc*)
8677      # When not using gcc, we currently assume that we are using
8678      # Microsoft Visual C++.
8679      # hardcode_libdir_flag_spec is actually meaningless, as there is
8680      # no search path for DLLs.
8681      hardcode_libdir_flag_spec=' '
8682      allow_undefined_flag=unsupported
8683      # Tell ltmain to make .lib files, not .a files.
8684      libext=lib
8685      # Tell ltmain to make .dll files, not .so files.
8686      shrext_cmds=".dll"
8687      # FIXME: Setting linknames here is a bad hack.
8688      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8689      # The linker will automatically build a .lib file if we build a DLL.
8690      old_archive_from_new_cmds='true'
8691      # FIXME: Should let the user specify the lib program.
8692      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8693      fix_srcfile_path='`cygpath -w "$srcfile"`'
8694      enable_shared_with_static_runtimes=yes
8695      ;;
8696
8697    darwin* | rhapsody*)
8698
8699
8700  archive_cmds_need_lc=no
8701  hardcode_direct=no
8702  hardcode_automatic=yes
8703  hardcode_shlibpath_var=unsupported
8704  whole_archive_flag_spec=''
8705  link_all_deplibs=yes
8706  allow_undefined_flag="$_lt_dar_allow_undefined"
8707  case $cc_basename in
8708     ifort*) _lt_dar_can_shared=yes ;;
8709     *) _lt_dar_can_shared=$GCC ;;
8710  esac
8711  if test "$_lt_dar_can_shared" = "yes"; then
8712    output_verbose_link_cmd=echo
8713    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8714    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8715    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}"
8716    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}"
8717
8718  else
8719  ld_shlibs=no
8720  fi
8721
8722      ;;
8723
8724    dgux*)
8725      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726      hardcode_libdir_flag_spec='-L$libdir'
8727      hardcode_shlibpath_var=no
8728      ;;
8729
8730    freebsd1*)
8731      ld_shlibs=no
8732      ;;
8733
8734    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8735    # support.  Future versions do this automatically, but an explicit c++rt0.o
8736    # does not break anything, and helps significantly (at the cost of a little
8737    # extra space).
8738    freebsd2.2*)
8739      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8740      hardcode_libdir_flag_spec='-R$libdir'
8741      hardcode_direct=yes
8742      hardcode_shlibpath_var=no
8743      ;;
8744
8745    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8746    freebsd2*)
8747      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8748      hardcode_direct=yes
8749      hardcode_minus_L=yes
8750      hardcode_shlibpath_var=no
8751      ;;
8752
8753    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8754    freebsd* | dragonfly*)
8755      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8756      hardcode_libdir_flag_spec='-R$libdir'
8757      hardcode_direct=yes
8758      hardcode_shlibpath_var=no
8759      ;;
8760
8761    hpux9*)
8762      if test "$GCC" = yes; then
8763	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'
8764      else
8765	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'
8766      fi
8767      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768      hardcode_libdir_separator=:
8769      hardcode_direct=yes
8770
8771      # hardcode_minus_L: Not really in the search PATH,
8772      # but as the default location of the library.
8773      hardcode_minus_L=yes
8774      export_dynamic_flag_spec='${wl}-E'
8775      ;;
8776
8777    hpux10*)
8778      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8779	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8780      else
8781	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8782      fi
8783      if test "$with_gnu_ld" = no; then
8784	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8785	hardcode_libdir_flag_spec_ld='+b $libdir'
8786	hardcode_libdir_separator=:
8787	hardcode_direct=yes
8788	hardcode_direct_absolute=yes
8789	export_dynamic_flag_spec='${wl}-E'
8790	# hardcode_minus_L: Not really in the search PATH,
8791	# but as the default location of the library.
8792	hardcode_minus_L=yes
8793      fi
8794      ;;
8795
8796    hpux11*)
8797      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8798	case $host_cpu in
8799	hppa*64*)
8800	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8801	  ;;
8802	ia64*)
8803	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8804	  ;;
8805	*)
8806	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8807	  ;;
8808	esac
8809      else
8810	case $host_cpu in
8811	hppa*64*)
8812	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8813	  ;;
8814	ia64*)
8815	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8816	  ;;
8817	*)
8818	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8819	  ;;
8820	esac
8821      fi
8822      if test "$with_gnu_ld" = no; then
8823	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824	hardcode_libdir_separator=:
8825
8826	case $host_cpu in
8827	hppa*64*|ia64*)
8828	  hardcode_direct=no
8829	  hardcode_shlibpath_var=no
8830	  ;;
8831	*)
8832	  hardcode_direct=yes
8833	  hardcode_direct_absolute=yes
8834	  export_dynamic_flag_spec='${wl}-E'
8835
8836	  # hardcode_minus_L: Not really in the search PATH,
8837	  # but as the default location of the library.
8838	  hardcode_minus_L=yes
8839	  ;;
8840	esac
8841      fi
8842      ;;
8843
8844    irix5* | irix6* | nonstopux*)
8845      if test "$GCC" = yes; then
8846	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'
8847	# Try to use the -exported_symbol ld option, if it does not
8848	# work, assume that -exports_file does not work either and
8849	# implicitly export all symbols.
8850        save_LDFLAGS="$LDFLAGS"
8851        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8852        cat >conftest.$ac_ext <<_ACEOF
8853int foo(void) {}
8854_ACEOF
8855rm -f conftest.$ac_objext conftest$ac_exeext
8856if { (ac_try="$ac_link"
8857case "(($ac_try" in
8858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859  *) ac_try_echo=$ac_try;;
8860esac
8861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8862$as_echo "$ac_try_echo") >&5
8863  (eval "$ac_link") 2>conftest.er1
8864  ac_status=$?
8865  grep -v '^ *+' conftest.er1 >conftest.err
8866  rm -f conftest.er1
8867  cat conftest.err >&5
8868  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } && {
8870	 test -z "$ac_c_werror_flag" ||
8871	 test ! -s conftest.err
8872       } && test -s conftest$ac_exeext && {
8873	 test "$cross_compiling" = yes ||
8874	 $as_test_x conftest$ac_exeext
8875       }; then
8876  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8877
8878else
8879  $as_echo "$as_me: failed program was:" >&5
8880sed 's/^/| /' conftest.$ac_ext >&5
8881
8882
8883fi
8884
8885rm -rf conftest.dSYM
8886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887      conftest$ac_exeext conftest.$ac_ext
8888        LDFLAGS="$save_LDFLAGS"
8889      else
8890	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'
8891	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'
8892      fi
8893      archive_cmds_need_lc='no'
8894      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8895      hardcode_libdir_separator=:
8896      inherit_rpath=yes
8897      link_all_deplibs=yes
8898      ;;
8899
8900    netbsd*)
8901      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8902	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8903      else
8904	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8905      fi
8906      hardcode_libdir_flag_spec='-R$libdir'
8907      hardcode_direct=yes
8908      hardcode_shlibpath_var=no
8909      ;;
8910
8911    newsos6)
8912      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913      hardcode_direct=yes
8914      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915      hardcode_libdir_separator=:
8916      hardcode_shlibpath_var=no
8917      ;;
8918
8919    *nto* | *qnx*)
8920      ;;
8921
8922    openbsd*)
8923      if test -f /usr/libexec/ld.so; then
8924	hardcode_direct=yes
8925	hardcode_shlibpath_var=no
8926	hardcode_direct_absolute=yes
8927	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8928	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8929	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8930	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8931	  export_dynamic_flag_spec='${wl}-E'
8932	else
8933	  case $host_os in
8934	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8935	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8936	     hardcode_libdir_flag_spec='-R$libdir'
8937	     ;;
8938	   *)
8939	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8940	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8941	     ;;
8942	  esac
8943	fi
8944      else
8945	ld_shlibs=no
8946      fi
8947      ;;
8948
8949    os2*)
8950      hardcode_libdir_flag_spec='-L$libdir'
8951      hardcode_minus_L=yes
8952      allow_undefined_flag=unsupported
8953      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'
8954      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8955      ;;
8956
8957    osf3*)
8958      if test "$GCC" = yes; then
8959	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8960	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'
8961      else
8962	allow_undefined_flag=' -expect_unresolved \*'
8963	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'
8964      fi
8965      archive_cmds_need_lc='no'
8966      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967      hardcode_libdir_separator=:
8968      ;;
8969
8970    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8971      if test "$GCC" = yes; then
8972	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973	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'
8974	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975      else
8976	allow_undefined_flag=' -expect_unresolved \*'
8977	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'
8978	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~
8979	$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'
8980
8981	# Both c and cxx compiler support -rpath directly
8982	hardcode_libdir_flag_spec='-rpath $libdir'
8983      fi
8984      archive_cmds_need_lc='no'
8985      hardcode_libdir_separator=:
8986      ;;
8987
8988    solaris*)
8989      no_undefined_flag=' -z defs'
8990      if test "$GCC" = yes; then
8991	wlarc='${wl}'
8992	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8994	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8995      else
8996	case `$CC -V 2>&1` in
8997	*"Compilers 5.0"*)
8998	  wlarc=''
8999	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9001	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9002	  ;;
9003	*)
9004	  wlarc='${wl}'
9005	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9006	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9008	  ;;
9009	esac
9010      fi
9011      hardcode_libdir_flag_spec='-R$libdir'
9012      hardcode_shlibpath_var=no
9013      case $host_os in
9014      solaris2.[0-5] | solaris2.[0-5].*) ;;
9015      *)
9016	# The compiler driver will combine and reorder linker options,
9017	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9018	# but is careful enough not to reorder.
9019	# Supported since Solaris 2.6 (maybe 2.5.1?)
9020	if test "$GCC" = yes; then
9021	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9022	else
9023	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9024	fi
9025	;;
9026      esac
9027      link_all_deplibs=yes
9028      ;;
9029
9030    sunos4*)
9031      if test "x$host_vendor" = xsequent; then
9032	# Use $CC to link under sequent, because it throws in some extra .o
9033	# files that make .init and .fini sections work.
9034	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9035      else
9036	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9037      fi
9038      hardcode_libdir_flag_spec='-L$libdir'
9039      hardcode_direct=yes
9040      hardcode_minus_L=yes
9041      hardcode_shlibpath_var=no
9042      ;;
9043
9044    sysv4)
9045      case $host_vendor in
9046	sni)
9047	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048	  hardcode_direct=yes # is this really true???
9049	;;
9050	siemens)
9051	  ## LD is ld it makes a PLAMLIB
9052	  ## CC just makes a GrossModule.
9053	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9054	  reload_cmds='$CC -r -o $output$reload_objs'
9055	  hardcode_direct=no
9056        ;;
9057	motorola)
9058	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9060	;;
9061      esac
9062      runpath_var='LD_RUN_PATH'
9063      hardcode_shlibpath_var=no
9064      ;;
9065
9066    sysv4.3*)
9067      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068      hardcode_shlibpath_var=no
9069      export_dynamic_flag_spec='-Bexport'
9070      ;;
9071
9072    sysv4*MP*)
9073      if test -d /usr/nec; then
9074	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075	hardcode_shlibpath_var=no
9076	runpath_var=LD_RUN_PATH
9077	hardcode_runpath_var=yes
9078	ld_shlibs=yes
9079      fi
9080      ;;
9081
9082    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9083      no_undefined_flag='${wl}-z,text'
9084      archive_cmds_need_lc=no
9085      hardcode_shlibpath_var=no
9086      runpath_var='LD_RUN_PATH'
9087
9088      if test "$GCC" = yes; then
9089	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9090	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091      else
9092	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094      fi
9095      ;;
9096
9097    sysv5* | sco3.2v5* | sco5v6*)
9098      # Note: We can NOT use -z defs as we might desire, because we do not
9099      # link with -lc, and that would cause any symbols used from libc to
9100      # always be unresolved, which means just about no library would
9101      # ever link correctly.  If we're not using GNU ld we use -z text
9102      # though, which does catch some bad symbols but isn't as heavy-handed
9103      # as -z defs.
9104      no_undefined_flag='${wl}-z,text'
9105      allow_undefined_flag='${wl}-z,nodefs'
9106      archive_cmds_need_lc=no
9107      hardcode_shlibpath_var=no
9108      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9109      hardcode_libdir_separator=':'
9110      link_all_deplibs=yes
9111      export_dynamic_flag_spec='${wl}-Bexport'
9112      runpath_var='LD_RUN_PATH'
9113
9114      if test "$GCC" = yes; then
9115	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117      else
9118	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120      fi
9121      ;;
9122
9123    uts4*)
9124      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125      hardcode_libdir_flag_spec='-L$libdir'
9126      hardcode_shlibpath_var=no
9127      ;;
9128
9129    *)
9130      ld_shlibs=no
9131      ;;
9132    esac
9133
9134    if test x$host_vendor = xsni; then
9135      case $host in
9136      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9137	export_dynamic_flag_spec='${wl}-Blargedynsym'
9138	;;
9139      esac
9140    fi
9141  fi
9142
9143{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9144$as_echo "$ld_shlibs" >&6; }
9145test "$ld_shlibs" = no && can_build_shared=no
9146
9147with_gnu_ld=$with_gnu_ld
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163#
9164# Do we need to explicitly link libc?
9165#
9166case "x$archive_cmds_need_lc" in
9167x|xyes)
9168  # Assume -lc should be added
9169  archive_cmds_need_lc=yes
9170
9171  if test "$enable_shared" = yes && test "$GCC" = yes; then
9172    case $archive_cmds in
9173    *'~'*)
9174      # FIXME: we may have to deal with multi-command sequences.
9175      ;;
9176    '$CC '*)
9177      # Test whether the compiler implicitly links with -lc since on some
9178      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9179      # to ld, don't add -lc before -lgcc.
9180      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9181$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9182      $RM conftest*
9183      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184
9185      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9186  (eval $ac_compile) 2>&5
9187  ac_status=$?
9188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); } 2>conftest.err; then
9190        soname=conftest
9191        lib=conftest
9192        libobjs=conftest.$ac_objext
9193        deplibs=
9194        wl=$lt_prog_compiler_wl
9195	pic_flag=$lt_prog_compiler_pic
9196        compiler_flags=-v
9197        linker_flags=-v
9198        verstring=
9199        output_objdir=.
9200        libname=conftest
9201        lt_save_allow_undefined_flag=$allow_undefined_flag
9202        allow_undefined_flag=
9203        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9204  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9205  ac_status=$?
9206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207  (exit $ac_status); }
9208        then
9209	  archive_cmds_need_lc=no
9210        else
9211	  archive_cmds_need_lc=yes
9212        fi
9213        allow_undefined_flag=$lt_save_allow_undefined_flag
9214      else
9215        cat conftest.err 1>&5
9216      fi
9217      $RM conftest*
9218      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9219$as_echo "$archive_cmds_need_lc" >&6; }
9220      ;;
9221    esac
9222  fi
9223  ;;
9224esac
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9383$as_echo_n "checking dynamic linker characteristics... " >&6; }
9384
9385if test "$GCC" = yes; then
9386  case $host_os in
9387    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9388    *) lt_awk_arg="/^libraries:/" ;;
9389  esac
9390  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9391  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9392    # if the path contains ";" then we assume it to be the separator
9393    # otherwise default to the standard path separator (i.e. ":") - it is
9394    # assumed that no part of a normal pathname contains ";" but that should
9395    # okay in the real world where ";" in dirpaths is itself problematic.
9396    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9397  else
9398    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9399  fi
9400  # Ok, now we have the path, separated by spaces, we can step through it
9401  # and add multilib dir if necessary.
9402  lt_tmp_lt_search_path_spec=
9403  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9404  for lt_sys_path in $lt_search_path_spec; do
9405    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9406      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9407    else
9408      test -d "$lt_sys_path" && \
9409	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9410    fi
9411  done
9412  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9413BEGIN {RS=" "; FS="/|\n";} {
9414  lt_foo="";
9415  lt_count=0;
9416  for (lt_i = NF; lt_i > 0; lt_i--) {
9417    if ($lt_i != "" && $lt_i != ".") {
9418      if ($lt_i == "..") {
9419        lt_count++;
9420      } else {
9421        if (lt_count == 0) {
9422          lt_foo="/" $lt_i lt_foo;
9423        } else {
9424          lt_count--;
9425        }
9426      }
9427    }
9428  }
9429  if (lt_foo != "") { lt_freq[lt_foo]++; }
9430  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9431}'`
9432  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9433else
9434  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9435fi
9436library_names_spec=
9437libname_spec='lib$name'
9438soname_spec=
9439shrext_cmds=".so"
9440postinstall_cmds=
9441postuninstall_cmds=
9442finish_cmds=
9443finish_eval=
9444shlibpath_var=
9445shlibpath_overrides_runpath=unknown
9446version_type=none
9447dynamic_linker="$host_os ld.so"
9448sys_lib_dlsearch_path_spec="/lib /usr/lib"
9449need_lib_prefix=unknown
9450hardcode_into_libs=no
9451
9452# when you set need_version to no, make sure it does not cause -set_version
9453# flags to be left without arguments
9454need_version=unknown
9455
9456case $host_os in
9457aix3*)
9458  version_type=linux
9459  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9460  shlibpath_var=LIBPATH
9461
9462  # AIX 3 has no versioning support, so we append a major version to the name.
9463  soname_spec='${libname}${release}${shared_ext}$major'
9464  ;;
9465
9466aix[4-9]*)
9467  version_type=linux
9468  need_lib_prefix=no
9469  need_version=no
9470  hardcode_into_libs=yes
9471  if test "$host_cpu" = ia64; then
9472    # AIX 5 supports IA64
9473    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9474    shlibpath_var=LD_LIBRARY_PATH
9475  else
9476    # With GCC up to 2.95.x, collect2 would create an import file
9477    # for dependence libraries.  The import file would start with
9478    # the line `#! .'.  This would cause the generated library to
9479    # depend on `.', always an invalid library.  This was fixed in
9480    # development snapshots of GCC prior to 3.0.
9481    case $host_os in
9482      aix4 | aix4.[01] | aix4.[01].*)
9483      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9484	   echo ' yes '
9485	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9486	:
9487      else
9488	can_build_shared=no
9489      fi
9490      ;;
9491    esac
9492    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9493    # soname into executable. Probably we can add versioning support to
9494    # collect2, so additional links can be useful in future.
9495    if test "$aix_use_runtimelinking" = yes; then
9496      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9497      # instead of lib<name>.a to let people know that these are not
9498      # typical AIX shared libraries.
9499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500    else
9501      # We preserve .a as extension for shared libraries through AIX4.2
9502      # and later when we are not doing run time linking.
9503      library_names_spec='${libname}${release}.a $libname.a'
9504      soname_spec='${libname}${release}${shared_ext}$major'
9505    fi
9506    shlibpath_var=LIBPATH
9507  fi
9508  ;;
9509
9510amigaos*)
9511  case $host_cpu in
9512  powerpc)
9513    # Since July 2007 AmigaOS4 officially supports .so libraries.
9514    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9515    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516    ;;
9517  m68k)
9518    library_names_spec='$libname.ixlibrary $libname.a'
9519    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9520    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'
9521    ;;
9522  esac
9523  ;;
9524
9525beos*)
9526  library_names_spec='${libname}${shared_ext}'
9527  dynamic_linker="$host_os ld.so"
9528  shlibpath_var=LIBRARY_PATH
9529  ;;
9530
9531bsdi[45]*)
9532  version_type=linux
9533  need_version=no
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9537  shlibpath_var=LD_LIBRARY_PATH
9538  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9539  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9540  # the default ld.so.conf also contains /usr/contrib/lib and
9541  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9542  # libtool to hard-code these into programs
9543  ;;
9544
9545cygwin* | mingw* | pw32* | cegcc*)
9546  version_type=windows
9547  shrext_cmds=".dll"
9548  need_version=no
9549  need_lib_prefix=no
9550
9551  case $GCC,$host_os in
9552  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9553    library_names_spec='$libname.dll.a'
9554    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9555    postinstall_cmds='base_file=`basename \${file}`~
9556      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9557      dldir=$destdir/`dirname \$dlpath`~
9558      test -d \$dldir || mkdir -p \$dldir~
9559      $install_prog $dir/$dlname \$dldir/$dlname~
9560      chmod a+x \$dldir/$dlname~
9561      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9562        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9563      fi'
9564    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9565      dlpath=$dir/\$dldll~
9566       $RM \$dlpath'
9567    shlibpath_overrides_runpath=yes
9568
9569    case $host_os in
9570    cygwin*)
9571      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9572      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9573      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9574      ;;
9575    mingw* | cegcc*)
9576      # MinGW DLLs use traditional 'lib' prefix
9577      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9578      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9579      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9580        # It is most probably a Windows format PATH printed by
9581        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9582        # path with ; separators, and with drive letters. We can handle the
9583        # drive letters (cygwin fileutils understands them), so leave them,
9584        # especially as we might pass files found there to a mingw objdump,
9585        # which wouldn't understand a cygwinified path. Ahh.
9586        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9587      else
9588        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9589      fi
9590      ;;
9591    pw32*)
9592      # pw32 DLLs use 'pw' prefix rather than 'lib'
9593      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9594      ;;
9595    esac
9596    ;;
9597
9598  *)
9599    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9600    ;;
9601  esac
9602  dynamic_linker='Win32 ld.exe'
9603  # FIXME: first we should search . and the directory the executable is in
9604  shlibpath_var=PATH
9605  ;;
9606
9607darwin* | rhapsody*)
9608  dynamic_linker="$host_os dyld"
9609  version_type=darwin
9610  need_lib_prefix=no
9611  need_version=no
9612  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9613  soname_spec='${libname}${release}${major}$shared_ext'
9614  shlibpath_overrides_runpath=yes
9615  shlibpath_var=DYLD_LIBRARY_PATH
9616  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9617
9618  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9619  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9620  ;;
9621
9622dgux*)
9623  version_type=linux
9624  need_lib_prefix=no
9625  need_version=no
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  ;;
9630
9631freebsd1*)
9632  dynamic_linker=no
9633  ;;
9634
9635freebsd* | dragonfly*)
9636  # DragonFly does not have aout.  When/if they implement a new
9637  # versioning mechanism, adjust this.
9638  if test -x /usr/bin/objformat; then
9639    objformat=`/usr/bin/objformat`
9640  else
9641    case $host_os in
9642    freebsd[123]*) objformat=aout ;;
9643    *) objformat=elf ;;
9644    esac
9645  fi
9646  version_type=freebsd-$objformat
9647  case $version_type in
9648    freebsd-elf*)
9649      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9650      need_version=no
9651      need_lib_prefix=no
9652      ;;
9653    freebsd-*)
9654      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9655      need_version=yes
9656      ;;
9657  esac
9658  shlibpath_var=LD_LIBRARY_PATH
9659  case $host_os in
9660  freebsd2*)
9661    shlibpath_overrides_runpath=yes
9662    ;;
9663  freebsd3.[01]* | freebsdelf3.[01]*)
9664    shlibpath_overrides_runpath=yes
9665    hardcode_into_libs=yes
9666    ;;
9667  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9668  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9669    shlibpath_overrides_runpath=no
9670    hardcode_into_libs=yes
9671    ;;
9672  *) # from 4.6 on, and DragonFly
9673    shlibpath_overrides_runpath=yes
9674    hardcode_into_libs=yes
9675    ;;
9676  esac
9677  ;;
9678
9679gnu*)
9680  version_type=linux
9681  need_lib_prefix=no
9682  need_version=no
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9684  soname_spec='${libname}${release}${shared_ext}$major'
9685  shlibpath_var=LD_LIBRARY_PATH
9686  hardcode_into_libs=yes
9687  ;;
9688
9689hpux9* | hpux10* | hpux11*)
9690  # Give a soname corresponding to the major version so that dld.sl refuses to
9691  # link against other versions.
9692  version_type=sunos
9693  need_lib_prefix=no
9694  need_version=no
9695  case $host_cpu in
9696  ia64*)
9697    shrext_cmds='.so'
9698    hardcode_into_libs=yes
9699    dynamic_linker="$host_os dld.so"
9700    shlibpath_var=LD_LIBRARY_PATH
9701    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703    soname_spec='${libname}${release}${shared_ext}$major'
9704    if test "X$HPUX_IA64_MODE" = X32; then
9705      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9706    else
9707      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9708    fi
9709    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9710    ;;
9711  hppa*64*)
9712    shrext_cmds='.sl'
9713    hardcode_into_libs=yes
9714    dynamic_linker="$host_os dld.sl"
9715    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9716    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718    soname_spec='${libname}${release}${shared_ext}$major'
9719    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9721    ;;
9722  *)
9723    shrext_cmds='.sl'
9724    dynamic_linker="$host_os dld.sl"
9725    shlibpath_var=SHLIB_PATH
9726    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9727    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728    soname_spec='${libname}${release}${shared_ext}$major'
9729    ;;
9730  esac
9731  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9732  postinstall_cmds='chmod 555 $lib'
9733  ;;
9734
9735interix[3-9]*)
9736  version_type=linux
9737  need_lib_prefix=no
9738  need_version=no
9739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9740  soname_spec='${libname}${release}${shared_ext}$major'
9741  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9742  shlibpath_var=LD_LIBRARY_PATH
9743  shlibpath_overrides_runpath=no
9744  hardcode_into_libs=yes
9745  ;;
9746
9747irix5* | irix6* | nonstopux*)
9748  case $host_os in
9749    nonstopux*) version_type=nonstopux ;;
9750    *)
9751	if test "$lt_cv_prog_gnu_ld" = yes; then
9752		version_type=linux
9753	else
9754		version_type=irix
9755	fi ;;
9756  esac
9757  need_lib_prefix=no
9758  need_version=no
9759  soname_spec='${libname}${release}${shared_ext}$major'
9760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9761  case $host_os in
9762  irix5* | nonstopux*)
9763    libsuff= shlibsuff=
9764    ;;
9765  *)
9766    case $LD in # libtool.m4 will add one of these switches to LD
9767    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9768      libsuff= shlibsuff= libmagic=32-bit;;
9769    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9770      libsuff=32 shlibsuff=N32 libmagic=N32;;
9771    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9772      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9773    *) libsuff= shlibsuff= libmagic=never-match;;
9774    esac
9775    ;;
9776  esac
9777  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9778  shlibpath_overrides_runpath=no
9779  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9780  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9781  hardcode_into_libs=yes
9782  ;;
9783
9784# No shared lib support for Linux oldld, aout, or coff.
9785linux*oldld* | linux*aout* | linux*coff*)
9786  dynamic_linker=no
9787  ;;
9788
9789# This must be Linux ELF.
9790linux* | k*bsd*-gnu)
9791  version_type=linux
9792  need_lib_prefix=no
9793  need_version=no
9794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795  soname_spec='${libname}${release}${shared_ext}$major'
9796  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9797  shlibpath_var=LD_LIBRARY_PATH
9798  shlibpath_overrides_runpath=no
9799  # Some binutils ld are patched to set DT_RUNPATH
9800  save_LDFLAGS=$LDFLAGS
9801  save_libdir=$libdir
9802  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9803       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9804  cat >conftest.$ac_ext <<_ACEOF
9805/* confdefs.h.  */
9806_ACEOF
9807cat confdefs.h >>conftest.$ac_ext
9808cat >>conftest.$ac_ext <<_ACEOF
9809/* end confdefs.h.  */
9810
9811int
9812main ()
9813{
9814
9815  ;
9816  return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
9820if { (ac_try="$ac_link"
9821case "(($ac_try" in
9822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823  *) ac_try_echo=$ac_try;;
9824esac
9825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9826$as_echo "$ac_try_echo") >&5
9827  (eval "$ac_link") 2>conftest.er1
9828  ac_status=$?
9829  grep -v '^ *+' conftest.er1 >conftest.err
9830  rm -f conftest.er1
9831  cat conftest.err >&5
9832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } && {
9834	 test -z "$ac_c_werror_flag" ||
9835	 test ! -s conftest.err
9836       } && test -s conftest$ac_exeext && {
9837	 test "$cross_compiling" = yes ||
9838	 $as_test_x conftest$ac_exeext
9839       }; then
9840  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9841  shlibpath_overrides_runpath=yes
9842fi
9843
9844else
9845  $as_echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848
9849fi
9850
9851rm -rf conftest.dSYM
9852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853      conftest$ac_exeext conftest.$ac_ext
9854  LDFLAGS=$save_LDFLAGS
9855  libdir=$save_libdir
9856
9857  # This implies no fast_install, which is unacceptable.
9858  # Some rework will be needed to allow for fast_install
9859  # before this can be enabled.
9860  hardcode_into_libs=yes
9861
9862  # Add ABI-specific directories to the system library path.
9863  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9864
9865  # Append ld.so.conf contents to the search path
9866  if test -f /etc/ld.so.conf; then
9867    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' ' '`
9868    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9869  fi
9870
9871  # We used to test for /lib/ld.so.1 and disable shared libraries on
9872  # powerpc, because MkLinux only supported shared libraries with the
9873  # GNU dynamic linker.  Since this was broken with cross compilers,
9874  # most powerpc-linux boxes support dynamic linking these days and
9875  # people can always --disable-shared, the test was removed, and we
9876  # assume the GNU/Linux dynamic linker is in use.
9877  dynamic_linker='GNU/Linux ld.so'
9878  ;;
9879
9880netbsd*)
9881  version_type=sunos
9882  need_lib_prefix=no
9883  need_version=no
9884  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9885    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9886    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9887    dynamic_linker='NetBSD (a.out) ld.so'
9888  else
9889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9890    soname_spec='${libname}${release}${shared_ext}$major'
9891    dynamic_linker='NetBSD ld.elf_so'
9892  fi
9893  shlibpath_var=LD_LIBRARY_PATH
9894  shlibpath_overrides_runpath=yes
9895  hardcode_into_libs=yes
9896  ;;
9897
9898newsos6)
9899  version_type=linux
9900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=yes
9903  ;;
9904
9905*nto* | *qnx*)
9906  version_type=qnx
9907  need_lib_prefix=no
9908  need_version=no
9909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910  soname_spec='${libname}${release}${shared_ext}$major'
9911  shlibpath_var=LD_LIBRARY_PATH
9912  shlibpath_overrides_runpath=no
9913  hardcode_into_libs=yes
9914  dynamic_linker='ldqnx.so'
9915  ;;
9916
9917openbsd*)
9918  version_type=sunos
9919  sys_lib_dlsearch_path_spec="/usr/lib"
9920  need_lib_prefix=no
9921  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9922  case $host_os in
9923    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9924    *)				need_version=no  ;;
9925  esac
9926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9927  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9928  shlibpath_var=LD_LIBRARY_PATH
9929  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9930    case $host_os in
9931      openbsd2.[89] | openbsd2.[89].*)
9932	shlibpath_overrides_runpath=no
9933	;;
9934      *)
9935	shlibpath_overrides_runpath=yes
9936	;;
9937      esac
9938  else
9939    shlibpath_overrides_runpath=yes
9940  fi
9941  ;;
9942
9943os2*)
9944  libname_spec='$name'
9945  shrext_cmds=".dll"
9946  need_lib_prefix=no
9947  library_names_spec='$libname${shared_ext} $libname.a'
9948  dynamic_linker='OS/2 ld.exe'
9949  shlibpath_var=LIBPATH
9950  ;;
9951
9952osf3* | osf4* | osf5*)
9953  version_type=osf
9954  need_lib_prefix=no
9955  need_version=no
9956  soname_spec='${libname}${release}${shared_ext}$major'
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958  shlibpath_var=LD_LIBRARY_PATH
9959  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9960  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9961  ;;
9962
9963rdos*)
9964  dynamic_linker=no
9965  ;;
9966
9967solaris*)
9968  version_type=linux
9969  need_lib_prefix=no
9970  need_version=no
9971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972  soname_spec='${libname}${release}${shared_ext}$major'
9973  shlibpath_var=LD_LIBRARY_PATH
9974  shlibpath_overrides_runpath=yes
9975  hardcode_into_libs=yes
9976  # ldd complains unless libraries are executable
9977  postinstall_cmds='chmod +x $lib'
9978  ;;
9979
9980sunos4*)
9981  version_type=sunos
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9983  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9984  shlibpath_var=LD_LIBRARY_PATH
9985  shlibpath_overrides_runpath=yes
9986  if test "$with_gnu_ld" = yes; then
9987    need_lib_prefix=no
9988  fi
9989  need_version=yes
9990  ;;
9991
9992sysv4 | sysv4.3*)
9993  version_type=linux
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995  soname_spec='${libname}${release}${shared_ext}$major'
9996  shlibpath_var=LD_LIBRARY_PATH
9997  case $host_vendor in
9998    sni)
9999      shlibpath_overrides_runpath=no
10000      need_lib_prefix=no
10001      runpath_var=LD_RUN_PATH
10002      ;;
10003    siemens)
10004      need_lib_prefix=no
10005      ;;
10006    motorola)
10007      need_lib_prefix=no
10008      need_version=no
10009      shlibpath_overrides_runpath=no
10010      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10011      ;;
10012  esac
10013  ;;
10014
10015sysv4*MP*)
10016  if test -d /usr/nec ;then
10017    version_type=linux
10018    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10019    soname_spec='$libname${shared_ext}.$major'
10020    shlibpath_var=LD_LIBRARY_PATH
10021  fi
10022  ;;
10023
10024sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10025  version_type=freebsd-elf
10026  need_lib_prefix=no
10027  need_version=no
10028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10029  soname_spec='${libname}${release}${shared_ext}$major'
10030  shlibpath_var=LD_LIBRARY_PATH
10031  shlibpath_overrides_runpath=yes
10032  hardcode_into_libs=yes
10033  if test "$with_gnu_ld" = yes; then
10034    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10035  else
10036    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10037    case $host_os in
10038      sco3.2v5*)
10039        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10040	;;
10041    esac
10042  fi
10043  sys_lib_dlsearch_path_spec='/usr/lib'
10044  ;;
10045
10046tpf*)
10047  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10048  version_type=linux
10049  need_lib_prefix=no
10050  need_version=no
10051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052  shlibpath_var=LD_LIBRARY_PATH
10053  shlibpath_overrides_runpath=no
10054  hardcode_into_libs=yes
10055  ;;
10056
10057uts4*)
10058  version_type=linux
10059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060  soname_spec='${libname}${release}${shared_ext}$major'
10061  shlibpath_var=LD_LIBRARY_PATH
10062  ;;
10063
10064*)
10065  dynamic_linker=no
10066  ;;
10067esac
10068{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10069$as_echo "$dynamic_linker" >&6; }
10070test "$dynamic_linker" = no && can_build_shared=no
10071
10072variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10073if test "$GCC" = yes; then
10074  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10075fi
10076
10077if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10078  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10079fi
10080if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10081  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10082fi
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10172hardcode_action=
10173if test -n "$hardcode_libdir_flag_spec" ||
10174   test -n "$runpath_var" ||
10175   test "X$hardcode_automatic" = "Xyes" ; then
10176
10177  # We can hardcode non-existent directories.
10178  if test "$hardcode_direct" != no &&
10179     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10180     # have to relink, otherwise we might link with an installed library
10181     # when we should be linking with a yet-to-be-installed one
10182     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10183     test "$hardcode_minus_L" != no; then
10184    # Linking always hardcodes the temporary library directory.
10185    hardcode_action=relink
10186  else
10187    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10188    hardcode_action=immediate
10189  fi
10190else
10191  # We cannot hardcode anything, or else we can only hardcode existing
10192  # directories.
10193  hardcode_action=unsupported
10194fi
10195{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10196$as_echo "$hardcode_action" >&6; }
10197
10198if test "$hardcode_action" = relink ||
10199   test "$inherit_rpath" = yes; then
10200  # Fast installation is not supported
10201  enable_fast_install=no
10202elif test "$shlibpath_overrides_runpath" = yes ||
10203     test "$enable_shared" = no; then
10204  # Fast installation is not necessary
10205  enable_fast_install=needless
10206fi
10207
10208
10209
10210
10211
10212
10213  if test "x$enable_dlopen" != xyes; then
10214  enable_dlopen=unknown
10215  enable_dlopen_self=unknown
10216  enable_dlopen_self_static=unknown
10217else
10218  lt_cv_dlopen=no
10219  lt_cv_dlopen_libs=
10220
10221  case $host_os in
10222  beos*)
10223    lt_cv_dlopen="load_add_on"
10224    lt_cv_dlopen_libs=
10225    lt_cv_dlopen_self=yes
10226    ;;
10227
10228  mingw* | pw32* | cegcc*)
10229    lt_cv_dlopen="LoadLibrary"
10230    lt_cv_dlopen_libs=
10231    ;;
10232
10233  cygwin*)
10234    lt_cv_dlopen="dlopen"
10235    lt_cv_dlopen_libs=
10236    ;;
10237
10238  darwin*)
10239  # if libdl is installed we need to link against it
10240    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10241$as_echo_n "checking for dlopen in -ldl... " >&6; }
10242if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10243  $as_echo_n "(cached) " >&6
10244else
10245  ac_check_lib_save_LIBS=$LIBS
10246LIBS="-ldl  $LIBS"
10247cat >conftest.$ac_ext <<_ACEOF
10248/* confdefs.h.  */
10249_ACEOF
10250cat confdefs.h >>conftest.$ac_ext
10251cat >>conftest.$ac_ext <<_ACEOF
10252/* end confdefs.h.  */
10253
10254/* Override any GCC internal prototype to avoid an error.
10255   Use char because int might match the return type of a GCC
10256   builtin and then its argument prototype would still apply.  */
10257#ifdef __cplusplus
10258extern "C"
10259#endif
10260char dlopen ();
10261int
10262main ()
10263{
10264return dlopen ();
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273  *) ac_try_echo=$ac_try;;
10274esac
10275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10276$as_echo "$ac_try_echo") >&5
10277  (eval "$ac_link") 2>conftest.er1
10278  ac_status=$?
10279  grep -v '^ *+' conftest.er1 >conftest.err
10280  rm -f conftest.er1
10281  cat conftest.err >&5
10282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283  (exit $ac_status); } && {
10284	 test -z "$ac_c_werror_flag" ||
10285	 test ! -s conftest.err
10286       } && test -s conftest$ac_exeext && {
10287	 test "$cross_compiling" = yes ||
10288	 $as_test_x conftest$ac_exeext
10289       }; then
10290  ac_cv_lib_dl_dlopen=yes
10291else
10292  $as_echo "$as_me: failed program was:" >&5
10293sed 's/^/| /' conftest.$ac_ext >&5
10294
10295	ac_cv_lib_dl_dlopen=no
10296fi
10297
10298rm -rf conftest.dSYM
10299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10300      conftest$ac_exeext conftest.$ac_ext
10301LIBS=$ac_check_lib_save_LIBS
10302fi
10303{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10304$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10305if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10306  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10307else
10308
10309    lt_cv_dlopen="dyld"
10310    lt_cv_dlopen_libs=
10311    lt_cv_dlopen_self=yes
10312
10313fi
10314
10315    ;;
10316
10317  *)
10318    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10319$as_echo_n "checking for shl_load... " >&6; }
10320if test "${ac_cv_func_shl_load+set}" = set; then
10321  $as_echo_n "(cached) " >&6
10322else
10323  cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h.  */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h.  */
10329/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10330   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10331#define shl_load innocuous_shl_load
10332
10333/* System header to define __stub macros and hopefully few prototypes,
10334    which can conflict with char shl_load (); below.
10335    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336    <limits.h> exists even on freestanding compilers.  */
10337
10338#ifdef __STDC__
10339# include <limits.h>
10340#else
10341# include <assert.h>
10342#endif
10343
10344#undef shl_load
10345
10346/* Override any GCC internal prototype to avoid an error.
10347   Use char because int might match the return type of a GCC
10348   builtin and then its argument prototype would still apply.  */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352char shl_load ();
10353/* The GNU C library defines this for functions which it implements
10354    to always fail with ENOSYS.  Some functions are actually named
10355    something starting with __ and the normal name is an alias.  */
10356#if defined __stub_shl_load || defined __stub___shl_load
10357choke me
10358#endif
10359
10360int
10361main ()
10362{
10363return shl_load ();
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372  *) ac_try_echo=$ac_try;;
10373esac
10374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10375$as_echo "$ac_try_echo") >&5
10376  (eval "$ac_link") 2>conftest.er1
10377  ac_status=$?
10378  grep -v '^ *+' conftest.er1 >conftest.err
10379  rm -f conftest.er1
10380  cat conftest.err >&5
10381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); } && {
10383	 test -z "$ac_c_werror_flag" ||
10384	 test ! -s conftest.err
10385       } && test -s conftest$ac_exeext && {
10386	 test "$cross_compiling" = yes ||
10387	 $as_test_x conftest$ac_exeext
10388       }; then
10389  ac_cv_func_shl_load=yes
10390else
10391  $as_echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394	ac_cv_func_shl_load=no
10395fi
10396
10397rm -rf conftest.dSYM
10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399      conftest$ac_exeext conftest.$ac_ext
10400fi
10401{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10402$as_echo "$ac_cv_func_shl_load" >&6; }
10403if test "x$ac_cv_func_shl_load" = x""yes; then
10404  lt_cv_dlopen="shl_load"
10405else
10406  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10407$as_echo_n "checking for shl_load in -ldld... " >&6; }
10408if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10409  $as_echo_n "(cached) " >&6
10410else
10411  ac_check_lib_save_LIBS=$LIBS
10412LIBS="-ldld  $LIBS"
10413cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h.  */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
10418/* end confdefs.h.  */
10419
10420/* Override any GCC internal prototype to avoid an error.
10421   Use char because int might match the return type of a GCC
10422   builtin and then its argument prototype would still apply.  */
10423#ifdef __cplusplus
10424extern "C"
10425#endif
10426char shl_load ();
10427int
10428main ()
10429{
10430return shl_load ();
10431  ;
10432  return 0;
10433}
10434_ACEOF
10435rm -f conftest.$ac_objext conftest$ac_exeext
10436if { (ac_try="$ac_link"
10437case "(($ac_try" in
10438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439  *) ac_try_echo=$ac_try;;
10440esac
10441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10442$as_echo "$ac_try_echo") >&5
10443  (eval "$ac_link") 2>conftest.er1
10444  ac_status=$?
10445  grep -v '^ *+' conftest.er1 >conftest.err
10446  rm -f conftest.er1
10447  cat conftest.err >&5
10448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); } && {
10450	 test -z "$ac_c_werror_flag" ||
10451	 test ! -s conftest.err
10452       } && test -s conftest$ac_exeext && {
10453	 test "$cross_compiling" = yes ||
10454	 $as_test_x conftest$ac_exeext
10455       }; then
10456  ac_cv_lib_dld_shl_load=yes
10457else
10458  $as_echo "$as_me: failed program was:" >&5
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461	ac_cv_lib_dld_shl_load=no
10462fi
10463
10464rm -rf conftest.dSYM
10465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10466      conftest$ac_exeext conftest.$ac_ext
10467LIBS=$ac_check_lib_save_LIBS
10468fi
10469{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10470$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10471if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10472  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10473else
10474  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10475$as_echo_n "checking for dlopen... " >&6; }
10476if test "${ac_cv_func_dlopen+set}" = set; then
10477  $as_echo_n "(cached) " >&6
10478else
10479  cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h.  */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h.  */
10485/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10486   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10487#define dlopen innocuous_dlopen
10488
10489/* System header to define __stub macros and hopefully few prototypes,
10490    which can conflict with char dlopen (); below.
10491    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10492    <limits.h> exists even on freestanding compilers.  */
10493
10494#ifdef __STDC__
10495# include <limits.h>
10496#else
10497# include <assert.h>
10498#endif
10499
10500#undef dlopen
10501
10502/* Override any GCC internal prototype to avoid an error.
10503   Use char because int might match the return type of a GCC
10504   builtin and then its argument prototype would still apply.  */
10505#ifdef __cplusplus
10506extern "C"
10507#endif
10508char dlopen ();
10509/* The GNU C library defines this for functions which it implements
10510    to always fail with ENOSYS.  Some functions are actually named
10511    something starting with __ and the normal name is an alias.  */
10512#if defined __stub_dlopen || defined __stub___dlopen
10513choke me
10514#endif
10515
10516int
10517main ()
10518{
10519return dlopen ();
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524rm -f conftest.$ac_objext conftest$ac_exeext
10525if { (ac_try="$ac_link"
10526case "(($ac_try" in
10527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528  *) ac_try_echo=$ac_try;;
10529esac
10530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10531$as_echo "$ac_try_echo") >&5
10532  (eval "$ac_link") 2>conftest.er1
10533  ac_status=$?
10534  grep -v '^ *+' conftest.er1 >conftest.err
10535  rm -f conftest.er1
10536  cat conftest.err >&5
10537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538  (exit $ac_status); } && {
10539	 test -z "$ac_c_werror_flag" ||
10540	 test ! -s conftest.err
10541       } && test -s conftest$ac_exeext && {
10542	 test "$cross_compiling" = yes ||
10543	 $as_test_x conftest$ac_exeext
10544       }; then
10545  ac_cv_func_dlopen=yes
10546else
10547  $as_echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550	ac_cv_func_dlopen=no
10551fi
10552
10553rm -rf conftest.dSYM
10554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555      conftest$ac_exeext conftest.$ac_ext
10556fi
10557{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10558$as_echo "$ac_cv_func_dlopen" >&6; }
10559if test "x$ac_cv_func_dlopen" = x""yes; then
10560  lt_cv_dlopen="dlopen"
10561else
10562  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10563$as_echo_n "checking for dlopen in -ldl... " >&6; }
10564if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10565  $as_echo_n "(cached) " >&6
10566else
10567  ac_check_lib_save_LIBS=$LIBS
10568LIBS="-ldl  $LIBS"
10569cat >conftest.$ac_ext <<_ACEOF
10570/* confdefs.h.  */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
10574/* end confdefs.h.  */
10575
10576/* Override any GCC internal prototype to avoid an error.
10577   Use char because int might match the return type of a GCC
10578   builtin and then its argument prototype would still apply.  */
10579#ifdef __cplusplus
10580extern "C"
10581#endif
10582char dlopen ();
10583int
10584main ()
10585{
10586return dlopen ();
10587  ;
10588  return 0;
10589}
10590_ACEOF
10591rm -f conftest.$ac_objext conftest$ac_exeext
10592if { (ac_try="$ac_link"
10593case "(($ac_try" in
10594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595  *) ac_try_echo=$ac_try;;
10596esac
10597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10598$as_echo "$ac_try_echo") >&5
10599  (eval "$ac_link") 2>conftest.er1
10600  ac_status=$?
10601  grep -v '^ *+' conftest.er1 >conftest.err
10602  rm -f conftest.er1
10603  cat conftest.err >&5
10604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605  (exit $ac_status); } && {
10606	 test -z "$ac_c_werror_flag" ||
10607	 test ! -s conftest.err
10608       } && test -s conftest$ac_exeext && {
10609	 test "$cross_compiling" = yes ||
10610	 $as_test_x conftest$ac_exeext
10611       }; then
10612  ac_cv_lib_dl_dlopen=yes
10613else
10614  $as_echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617	ac_cv_lib_dl_dlopen=no
10618fi
10619
10620rm -rf conftest.dSYM
10621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10622      conftest$ac_exeext conftest.$ac_ext
10623LIBS=$ac_check_lib_save_LIBS
10624fi
10625{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10626$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10627if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10628  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10629else
10630  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10631$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10632if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10633  $as_echo_n "(cached) " >&6
10634else
10635  ac_check_lib_save_LIBS=$LIBS
10636LIBS="-lsvld  $LIBS"
10637cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h.  */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h.  */
10643
10644/* Override any GCC internal prototype to avoid an error.
10645   Use char because int might match the return type of a GCC
10646   builtin and then its argument prototype would still apply.  */
10647#ifdef __cplusplus
10648extern "C"
10649#endif
10650char dlopen ();
10651int
10652main ()
10653{
10654return dlopen ();
10655  ;
10656  return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext conftest$ac_exeext
10660if { (ac_try="$ac_link"
10661case "(($ac_try" in
10662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663  *) ac_try_echo=$ac_try;;
10664esac
10665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10666$as_echo "$ac_try_echo") >&5
10667  (eval "$ac_link") 2>conftest.er1
10668  ac_status=$?
10669  grep -v '^ *+' conftest.er1 >conftest.err
10670  rm -f conftest.er1
10671  cat conftest.err >&5
10672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673  (exit $ac_status); } && {
10674	 test -z "$ac_c_werror_flag" ||
10675	 test ! -s conftest.err
10676       } && test -s conftest$ac_exeext && {
10677	 test "$cross_compiling" = yes ||
10678	 $as_test_x conftest$ac_exeext
10679       }; then
10680  ac_cv_lib_svld_dlopen=yes
10681else
10682  $as_echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685	ac_cv_lib_svld_dlopen=no
10686fi
10687
10688rm -rf conftest.dSYM
10689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690      conftest$ac_exeext conftest.$ac_ext
10691LIBS=$ac_check_lib_save_LIBS
10692fi
10693{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10694$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10695if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10696  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10697else
10698  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10699$as_echo_n "checking for dld_link in -ldld... " >&6; }
10700if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10701  $as_echo_n "(cached) " >&6
10702else
10703  ac_check_lib_save_LIBS=$LIBS
10704LIBS="-ldld  $LIBS"
10705cat >conftest.$ac_ext <<_ACEOF
10706/* confdefs.h.  */
10707_ACEOF
10708cat confdefs.h >>conftest.$ac_ext
10709cat >>conftest.$ac_ext <<_ACEOF
10710/* end confdefs.h.  */
10711
10712/* Override any GCC internal prototype to avoid an error.
10713   Use char because int might match the return type of a GCC
10714   builtin and then its argument prototype would still apply.  */
10715#ifdef __cplusplus
10716extern "C"
10717#endif
10718char dld_link ();
10719int
10720main ()
10721{
10722return dld_link ();
10723  ;
10724  return 0;
10725}
10726_ACEOF
10727rm -f conftest.$ac_objext conftest$ac_exeext
10728if { (ac_try="$ac_link"
10729case "(($ac_try" in
10730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731  *) ac_try_echo=$ac_try;;
10732esac
10733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10734$as_echo "$ac_try_echo") >&5
10735  (eval "$ac_link") 2>conftest.er1
10736  ac_status=$?
10737  grep -v '^ *+' conftest.er1 >conftest.err
10738  rm -f conftest.er1
10739  cat conftest.err >&5
10740  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741  (exit $ac_status); } && {
10742	 test -z "$ac_c_werror_flag" ||
10743	 test ! -s conftest.err
10744       } && test -s conftest$ac_exeext && {
10745	 test "$cross_compiling" = yes ||
10746	 $as_test_x conftest$ac_exeext
10747       }; then
10748  ac_cv_lib_dld_dld_link=yes
10749else
10750  $as_echo "$as_me: failed program was:" >&5
10751sed 's/^/| /' conftest.$ac_ext >&5
10752
10753	ac_cv_lib_dld_dld_link=no
10754fi
10755
10756rm -rf conftest.dSYM
10757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10758      conftest$ac_exeext conftest.$ac_ext
10759LIBS=$ac_check_lib_save_LIBS
10760fi
10761{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10762$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10763if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10764  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773
10774fi
10775
10776
10777fi
10778
10779
10780fi
10781
10782    ;;
10783  esac
10784
10785  if test "x$lt_cv_dlopen" != xno; then
10786    enable_dlopen=yes
10787  else
10788    enable_dlopen=no
10789  fi
10790
10791  case $lt_cv_dlopen in
10792  dlopen)
10793    save_CPPFLAGS="$CPPFLAGS"
10794    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10795
10796    save_LDFLAGS="$LDFLAGS"
10797    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10798
10799    save_LIBS="$LIBS"
10800    LIBS="$lt_cv_dlopen_libs $LIBS"
10801
10802    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10803$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10804if test "${lt_cv_dlopen_self+set}" = set; then
10805  $as_echo_n "(cached) " >&6
10806else
10807  	  if test "$cross_compiling" = yes; then :
10808  lt_cv_dlopen_self=cross
10809else
10810  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10811  lt_status=$lt_dlunknown
10812  cat > conftest.$ac_ext <<_LT_EOF
10813#line 10813 "configure"
10814#include "confdefs.h"
10815
10816#if HAVE_DLFCN_H
10817#include <dlfcn.h>
10818#endif
10819
10820#include <stdio.h>
10821
10822#ifdef RTLD_GLOBAL
10823#  define LT_DLGLOBAL		RTLD_GLOBAL
10824#else
10825#  ifdef DL_GLOBAL
10826#    define LT_DLGLOBAL		DL_GLOBAL
10827#  else
10828#    define LT_DLGLOBAL		0
10829#  endif
10830#endif
10831
10832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10833   find out it does not work in some platform. */
10834#ifndef LT_DLLAZY_OR_NOW
10835#  ifdef RTLD_LAZY
10836#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10837#  else
10838#    ifdef DL_LAZY
10839#      define LT_DLLAZY_OR_NOW		DL_LAZY
10840#    else
10841#      ifdef RTLD_NOW
10842#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10843#      else
10844#        ifdef DL_NOW
10845#          define LT_DLLAZY_OR_NOW	DL_NOW
10846#        else
10847#          define LT_DLLAZY_OR_NOW	0
10848#        endif
10849#      endif
10850#    endif
10851#  endif
10852#endif
10853
10854void fnord() { int i=42;}
10855int main ()
10856{
10857  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10858  int status = $lt_dlunknown;
10859
10860  if (self)
10861    {
10862      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10863      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10864      /* dlclose (self); */
10865    }
10866  else
10867    puts (dlerror ());
10868
10869  return status;
10870}
10871_LT_EOF
10872  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10873  (eval $ac_link) 2>&5
10874  ac_status=$?
10875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10877    (./conftest; exit; ) >&5 2>/dev/null
10878    lt_status=$?
10879    case x$lt_status in
10880      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10881      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10882      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10883    esac
10884  else :
10885    # compilation failed
10886    lt_cv_dlopen_self=no
10887  fi
10888fi
10889rm -fr conftest*
10890
10891
10892fi
10893{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10894$as_echo "$lt_cv_dlopen_self" >&6; }
10895
10896    if test "x$lt_cv_dlopen_self" = xyes; then
10897      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10898      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10899$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10900if test "${lt_cv_dlopen_self_static+set}" = set; then
10901  $as_echo_n "(cached) " >&6
10902else
10903  	  if test "$cross_compiling" = yes; then :
10904  lt_cv_dlopen_self_static=cross
10905else
10906  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10907  lt_status=$lt_dlunknown
10908  cat > conftest.$ac_ext <<_LT_EOF
10909#line 10909 "configure"
10910#include "confdefs.h"
10911
10912#if HAVE_DLFCN_H
10913#include <dlfcn.h>
10914#endif
10915
10916#include <stdio.h>
10917
10918#ifdef RTLD_GLOBAL
10919#  define LT_DLGLOBAL		RTLD_GLOBAL
10920#else
10921#  ifdef DL_GLOBAL
10922#    define LT_DLGLOBAL		DL_GLOBAL
10923#  else
10924#    define LT_DLGLOBAL		0
10925#  endif
10926#endif
10927
10928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10929   find out it does not work in some platform. */
10930#ifndef LT_DLLAZY_OR_NOW
10931#  ifdef RTLD_LAZY
10932#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10933#  else
10934#    ifdef DL_LAZY
10935#      define LT_DLLAZY_OR_NOW		DL_LAZY
10936#    else
10937#      ifdef RTLD_NOW
10938#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10939#      else
10940#        ifdef DL_NOW
10941#          define LT_DLLAZY_OR_NOW	DL_NOW
10942#        else
10943#          define LT_DLLAZY_OR_NOW	0
10944#        endif
10945#      endif
10946#    endif
10947#  endif
10948#endif
10949
10950void fnord() { int i=42;}
10951int main ()
10952{
10953  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954  int status = $lt_dlunknown;
10955
10956  if (self)
10957    {
10958      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10959      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960      /* dlclose (self); */
10961    }
10962  else
10963    puts (dlerror ());
10964
10965  return status;
10966}
10967_LT_EOF
10968  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969  (eval $ac_link) 2>&5
10970  ac_status=$?
10971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973    (./conftest; exit; ) >&5 2>/dev/null
10974    lt_status=$?
10975    case x$lt_status in
10976      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10977      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10978      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10979    esac
10980  else :
10981    # compilation failed
10982    lt_cv_dlopen_self_static=no
10983  fi
10984fi
10985rm -fr conftest*
10986
10987
10988fi
10989{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10990$as_echo "$lt_cv_dlopen_self_static" >&6; }
10991    fi
10992
10993    CPPFLAGS="$save_CPPFLAGS"
10994    LDFLAGS="$save_LDFLAGS"
10995    LIBS="$save_LIBS"
10996    ;;
10997  esac
10998
10999  case $lt_cv_dlopen_self in
11000  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11001  *) enable_dlopen_self=unknown ;;
11002  esac
11003
11004  case $lt_cv_dlopen_self_static in
11005  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11006  *) enable_dlopen_self_static=unknown ;;
11007  esac
11008fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026striplib=
11027old_striplib=
11028{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11029$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11030if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11031  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11032  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11033  { $as_echo "$as_me:$LINENO: result: yes" >&5
11034$as_echo "yes" >&6; }
11035else
11036# FIXME - insert some real tests, host_os isn't really good enough
11037  case $host_os in
11038  darwin*)
11039    if test -n "$STRIP" ; then
11040      striplib="$STRIP -x"
11041      old_striplib="$STRIP -S"
11042      { $as_echo "$as_me:$LINENO: result: yes" >&5
11043$as_echo "yes" >&6; }
11044    else
11045      { $as_echo "$as_me:$LINENO: result: no" >&5
11046$as_echo "no" >&6; }
11047    fi
11048    ;;
11049  *)
11050    { $as_echo "$as_me:$LINENO: result: no" >&5
11051$as_echo "no" >&6; }
11052    ;;
11053  esac
11054fi
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067  # Report which library types will actually be built
11068  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11069$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11070  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11071$as_echo "$can_build_shared" >&6; }
11072
11073  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11074$as_echo_n "checking whether to build shared libraries... " >&6; }
11075  test "$can_build_shared" = "no" && enable_shared=no
11076
11077  # On AIX, shared libraries and static libraries use the same namespace, and
11078  # are all built from PIC.
11079  case $host_os in
11080  aix3*)
11081    test "$enable_shared" = yes && enable_static=no
11082    if test -n "$RANLIB"; then
11083      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11084      postinstall_cmds='$RANLIB $lib'
11085    fi
11086    ;;
11087
11088  aix[4-9]*)
11089    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11090      test "$enable_shared" = yes && enable_static=no
11091    fi
11092    ;;
11093  esac
11094  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11095$as_echo "$enable_shared" >&6; }
11096
11097  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11098$as_echo_n "checking whether to build static libraries... " >&6; }
11099  # Make sure either enable_shared or enable_static is yes.
11100  test "$enable_shared" = yes || enable_static=yes
11101  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11102$as_echo "$enable_static" >&6; }
11103
11104
11105
11106
11107fi
11108ac_ext=c
11109ac_cpp='$CPP $CPPFLAGS'
11110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11112ac_compiler_gnu=$ac_cv_c_compiler_gnu
11113
11114CC="$lt_save_CC"
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128        ac_config_commands="$ac_config_commands libtool"
11129
11130
11131
11132
11133# Only expand once:
11134
11135
11136ac_ext=c
11137ac_cpp='$CPP $CPPFLAGS'
11138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140ac_compiler_gnu=$ac_cv_c_compiler_gnu
11141if test -n "$ac_tool_prefix"; then
11142  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11143set dummy ${ac_tool_prefix}gcc; ac_word=$2
11144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11145$as_echo_n "checking for $ac_word... " >&6; }
11146if test "${ac_cv_prog_CC+set}" = set; then
11147  $as_echo_n "(cached) " >&6
11148else
11149  if test -n "$CC"; then
11150  ac_cv_prog_CC="$CC" # Let the user override the test.
11151else
11152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $PATH
11154do
11155  IFS=$as_save_IFS
11156  test -z "$as_dir" && as_dir=.
11157  for ac_exec_ext in '' $ac_executable_extensions; do
11158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11160    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11161    break 2
11162  fi
11163done
11164done
11165IFS=$as_save_IFS
11166
11167fi
11168fi
11169CC=$ac_cv_prog_CC
11170if test -n "$CC"; then
11171  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11172$as_echo "$CC" >&6; }
11173else
11174  { $as_echo "$as_me:$LINENO: result: no" >&5
11175$as_echo "no" >&6; }
11176fi
11177
11178
11179fi
11180if test -z "$ac_cv_prog_CC"; then
11181  ac_ct_CC=$CC
11182  # Extract the first word of "gcc", so it can be a program name with args.
11183set dummy gcc; ac_word=$2
11184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11187  $as_echo_n "(cached) " >&6
11188else
11189  if test -n "$ac_ct_CC"; then
11190  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195  IFS=$as_save_IFS
11196  test -z "$as_dir" && as_dir=.
11197  for ac_exec_ext in '' $ac_executable_extensions; do
11198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199    ac_cv_prog_ac_ct_CC="gcc"
11200    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201    break 2
11202  fi
11203done
11204done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209ac_ct_CC=$ac_cv_prog_ac_ct_CC
11210if test -n "$ac_ct_CC"; then
11211  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11212$as_echo "$ac_ct_CC" >&6; }
11213else
11214  { $as_echo "$as_me:$LINENO: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218  if test "x$ac_ct_CC" = x; then
11219    CC=""
11220  else
11221    case $cross_compiling:$ac_tool_warned in
11222yes:)
11223{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11225ac_tool_warned=yes ;;
11226esac
11227    CC=$ac_ct_CC
11228  fi
11229else
11230  CC="$ac_cv_prog_CC"
11231fi
11232
11233if test -z "$CC"; then
11234          if test -n "$ac_tool_prefix"; then
11235    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11236set dummy ${ac_tool_prefix}cc; ac_word=$2
11237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11238$as_echo_n "checking for $ac_word... " >&6; }
11239if test "${ac_cv_prog_CC+set}" = set; then
11240  $as_echo_n "(cached) " >&6
11241else
11242  if test -n "$CC"; then
11243  ac_cv_prog_CC="$CC" # Let the user override the test.
11244else
11245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246for as_dir in $PATH
11247do
11248  IFS=$as_save_IFS
11249  test -z "$as_dir" && as_dir=.
11250  for ac_exec_ext in '' $ac_executable_extensions; do
11251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11252    ac_cv_prog_CC="${ac_tool_prefix}cc"
11253    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11254    break 2
11255  fi
11256done
11257done
11258IFS=$as_save_IFS
11259
11260fi
11261fi
11262CC=$ac_cv_prog_CC
11263if test -n "$CC"; then
11264  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11265$as_echo "$CC" >&6; }
11266else
11267  { $as_echo "$as_me:$LINENO: result: no" >&5
11268$as_echo "no" >&6; }
11269fi
11270
11271
11272  fi
11273fi
11274if test -z "$CC"; then
11275  # Extract the first word of "cc", so it can be a program name with args.
11276set dummy cc; ac_word=$2
11277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11278$as_echo_n "checking for $ac_word... " >&6; }
11279if test "${ac_cv_prog_CC+set}" = set; then
11280  $as_echo_n "(cached) " >&6
11281else
11282  if test -n "$CC"; then
11283  ac_cv_prog_CC="$CC" # Let the user override the test.
11284else
11285  ac_prog_rejected=no
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289  IFS=$as_save_IFS
11290  test -z "$as_dir" && as_dir=.
11291  for ac_exec_ext in '' $ac_executable_extensions; do
11292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11294       ac_prog_rejected=yes
11295       continue
11296     fi
11297    ac_cv_prog_CC="cc"
11298    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11299    break 2
11300  fi
11301done
11302done
11303IFS=$as_save_IFS
11304
11305if test $ac_prog_rejected = yes; then
11306  # We found a bogon in the path, so make sure we never use it.
11307  set dummy $ac_cv_prog_CC
11308  shift
11309  if test $# != 0; then
11310    # We chose a different compiler from the bogus one.
11311    # However, it has the same basename, so the bogon will be chosen
11312    # first if we set CC to just the basename; use the full file name.
11313    shift
11314    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11315  fi
11316fi
11317fi
11318fi
11319CC=$ac_cv_prog_CC
11320if test -n "$CC"; then
11321  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11322$as_echo "$CC" >&6; }
11323else
11324  { $as_echo "$as_me:$LINENO: result: no" >&5
11325$as_echo "no" >&6; }
11326fi
11327
11328
11329fi
11330if test -z "$CC"; then
11331  if test -n "$ac_tool_prefix"; then
11332  for ac_prog in cl.exe
11333  do
11334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11337$as_echo_n "checking for $ac_word... " >&6; }
11338if test "${ac_cv_prog_CC+set}" = set; then
11339  $as_echo_n "(cached) " >&6
11340else
11341  if test -n "$CC"; then
11342  ac_cv_prog_CC="$CC" # Let the user override the test.
11343else
11344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345for as_dir in $PATH
11346do
11347  IFS=$as_save_IFS
11348  test -z "$as_dir" && as_dir=.
11349  for ac_exec_ext in '' $ac_executable_extensions; do
11350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11351    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11352    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11353    break 2
11354  fi
11355done
11356done
11357IFS=$as_save_IFS
11358
11359fi
11360fi
11361CC=$ac_cv_prog_CC
11362if test -n "$CC"; then
11363  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11364$as_echo "$CC" >&6; }
11365else
11366  { $as_echo "$as_me:$LINENO: result: no" >&5
11367$as_echo "no" >&6; }
11368fi
11369
11370
11371    test -n "$CC" && break
11372  done
11373fi
11374if test -z "$CC"; then
11375  ac_ct_CC=$CC
11376  for ac_prog in cl.exe
11377do
11378  # Extract the first word of "$ac_prog", so it can be a program name with args.
11379set dummy $ac_prog; ac_word=$2
11380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11381$as_echo_n "checking for $ac_word... " >&6; }
11382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11383  $as_echo_n "(cached) " >&6
11384else
11385  if test -n "$ac_ct_CC"; then
11386  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11387else
11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391  IFS=$as_save_IFS
11392  test -z "$as_dir" && as_dir=.
11393  for ac_exec_ext in '' $ac_executable_extensions; do
11394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395    ac_cv_prog_ac_ct_CC="$ac_prog"
11396    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397    break 2
11398  fi
11399done
11400done
11401IFS=$as_save_IFS
11402
11403fi
11404fi
11405ac_ct_CC=$ac_cv_prog_ac_ct_CC
11406if test -n "$ac_ct_CC"; then
11407  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11408$as_echo "$ac_ct_CC" >&6; }
11409else
11410  { $as_echo "$as_me:$LINENO: result: no" >&5
11411$as_echo "no" >&6; }
11412fi
11413
11414
11415  test -n "$ac_ct_CC" && break
11416done
11417
11418  if test "x$ac_ct_CC" = x; then
11419    CC=""
11420  else
11421    case $cross_compiling:$ac_tool_warned in
11422yes:)
11423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11425ac_tool_warned=yes ;;
11426esac
11427    CC=$ac_ct_CC
11428  fi
11429fi
11430
11431fi
11432
11433
11434test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11436{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11437See \`config.log' for more details." >&5
11438$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11439See \`config.log' for more details." >&2;}
11440   { (exit 1); exit 1; }; }; }
11441
11442# Provide some information about the compiler.
11443$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11444set X $ac_compile
11445ac_compiler=$2
11446{ (ac_try="$ac_compiler --version >&5"
11447case "(($ac_try" in
11448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449  *) ac_try_echo=$ac_try;;
11450esac
11451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452$as_echo "$ac_try_echo") >&5
11453  (eval "$ac_compiler --version >&5") 2>&5
11454  ac_status=$?
11455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456  (exit $ac_status); }
11457{ (ac_try="$ac_compiler -v >&5"
11458case "(($ac_try" in
11459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460  *) ac_try_echo=$ac_try;;
11461esac
11462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463$as_echo "$ac_try_echo") >&5
11464  (eval "$ac_compiler -v >&5") 2>&5
11465  ac_status=$?
11466  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467  (exit $ac_status); }
11468{ (ac_try="$ac_compiler -V >&5"
11469case "(($ac_try" in
11470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471  *) ac_try_echo=$ac_try;;
11472esac
11473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11474$as_echo "$ac_try_echo") >&5
11475  (eval "$ac_compiler -V >&5") 2>&5
11476  ac_status=$?
11477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478  (exit $ac_status); }
11479
11480{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11481$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11482if test "${ac_cv_c_compiler_gnu+set}" = set; then
11483  $as_echo_n "(cached) " >&6
11484else
11485  cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h.  */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h.  */
11491
11492int
11493main ()
11494{
11495#ifndef __GNUC__
11496       choke me
11497#endif
11498
11499  ;
11500  return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext
11504if { (ac_try="$ac_compile"
11505case "(($ac_try" in
11506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507  *) ac_try_echo=$ac_try;;
11508esac
11509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11510$as_echo "$ac_try_echo") >&5
11511  (eval "$ac_compile") 2>conftest.er1
11512  ac_status=$?
11513  grep -v '^ *+' conftest.er1 >conftest.err
11514  rm -f conftest.er1
11515  cat conftest.err >&5
11516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517  (exit $ac_status); } && {
11518	 test -z "$ac_c_werror_flag" ||
11519	 test ! -s conftest.err
11520       } && test -s conftest.$ac_objext; then
11521  ac_compiler_gnu=yes
11522else
11523  $as_echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
11526	ac_compiler_gnu=no
11527fi
11528
11529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530ac_cv_c_compiler_gnu=$ac_compiler_gnu
11531
11532fi
11533{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11534$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11535if test $ac_compiler_gnu = yes; then
11536  GCC=yes
11537else
11538  GCC=
11539fi
11540ac_test_CFLAGS=${CFLAGS+set}
11541ac_save_CFLAGS=$CFLAGS
11542{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11543$as_echo_n "checking whether $CC accepts -g... " >&6; }
11544if test "${ac_cv_prog_cc_g+set}" = set; then
11545  $as_echo_n "(cached) " >&6
11546else
11547  ac_save_c_werror_flag=$ac_c_werror_flag
11548   ac_c_werror_flag=yes
11549   ac_cv_prog_cc_g=no
11550   CFLAGS="-g"
11551   cat >conftest.$ac_ext <<_ACEOF
11552/* confdefs.h.  */
11553_ACEOF
11554cat confdefs.h >>conftest.$ac_ext
11555cat >>conftest.$ac_ext <<_ACEOF
11556/* end confdefs.h.  */
11557
11558int
11559main ()
11560{
11561
11562  ;
11563  return 0;
11564}
11565_ACEOF
11566rm -f conftest.$ac_objext
11567if { (ac_try="$ac_compile"
11568case "(($ac_try" in
11569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570  *) ac_try_echo=$ac_try;;
11571esac
11572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573$as_echo "$ac_try_echo") >&5
11574  (eval "$ac_compile") 2>conftest.er1
11575  ac_status=$?
11576  grep -v '^ *+' conftest.er1 >conftest.err
11577  rm -f conftest.er1
11578  cat conftest.err >&5
11579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580  (exit $ac_status); } && {
11581	 test -z "$ac_c_werror_flag" ||
11582	 test ! -s conftest.err
11583       } && test -s conftest.$ac_objext; then
11584  ac_cv_prog_cc_g=yes
11585else
11586  $as_echo "$as_me: failed program was:" >&5
11587sed 's/^/| /' conftest.$ac_ext >&5
11588
11589	CFLAGS=""
11590      cat >conftest.$ac_ext <<_ACEOF
11591/* confdefs.h.  */
11592_ACEOF
11593cat confdefs.h >>conftest.$ac_ext
11594cat >>conftest.$ac_ext <<_ACEOF
11595/* end confdefs.h.  */
11596
11597int
11598main ()
11599{
11600
11601  ;
11602  return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (ac_try="$ac_compile"
11607case "(($ac_try" in
11608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609  *) ac_try_echo=$ac_try;;
11610esac
11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612$as_echo "$ac_try_echo") >&5
11613  (eval "$ac_compile") 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } && {
11620	 test -z "$ac_c_werror_flag" ||
11621	 test ! -s conftest.err
11622       } && test -s conftest.$ac_objext; then
11623  :
11624else
11625  $as_echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628	ac_c_werror_flag=$ac_save_c_werror_flag
11629	 CFLAGS="-g"
11630	 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h.  */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h.  */
11636
11637int
11638main ()
11639{
11640
11641  ;
11642  return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext
11646if { (ac_try="$ac_compile"
11647case "(($ac_try" in
11648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649  *) ac_try_echo=$ac_try;;
11650esac
11651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11652$as_echo "$ac_try_echo") >&5
11653  (eval "$ac_compile") 2>conftest.er1
11654  ac_status=$?
11655  grep -v '^ *+' conftest.er1 >conftest.err
11656  rm -f conftest.er1
11657  cat conftest.err >&5
11658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); } && {
11660	 test -z "$ac_c_werror_flag" ||
11661	 test ! -s conftest.err
11662       } && test -s conftest.$ac_objext; then
11663  ac_cv_prog_cc_g=yes
11664else
11665  $as_echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668
11669fi
11670
11671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672fi
11673
11674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675fi
11676
11677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678   ac_c_werror_flag=$ac_save_c_werror_flag
11679fi
11680{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11681$as_echo "$ac_cv_prog_cc_g" >&6; }
11682if test "$ac_test_CFLAGS" = set; then
11683  CFLAGS=$ac_save_CFLAGS
11684elif test $ac_cv_prog_cc_g = yes; then
11685  if test "$GCC" = yes; then
11686    CFLAGS="-g -O2"
11687  else
11688    CFLAGS="-g"
11689  fi
11690else
11691  if test "$GCC" = yes; then
11692    CFLAGS="-O2"
11693  else
11694    CFLAGS=
11695  fi
11696fi
11697{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11698$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11699if test "${ac_cv_prog_cc_c89+set}" = set; then
11700  $as_echo_n "(cached) " >&6
11701else
11702  ac_cv_prog_cc_c89=no
11703ac_save_CC=$CC
11704cat >conftest.$ac_ext <<_ACEOF
11705/* confdefs.h.  */
11706_ACEOF
11707cat confdefs.h >>conftest.$ac_ext
11708cat >>conftest.$ac_ext <<_ACEOF
11709/* end confdefs.h.  */
11710#include <stdarg.h>
11711#include <stdio.h>
11712#include <sys/types.h>
11713#include <sys/stat.h>
11714/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11715struct buf { int x; };
11716FILE * (*rcsopen) (struct buf *, struct stat *, int);
11717static char *e (p, i)
11718     char **p;
11719     int i;
11720{
11721  return p[i];
11722}
11723static char *f (char * (*g) (char **, int), char **p, ...)
11724{
11725  char *s;
11726  va_list v;
11727  va_start (v,p);
11728  s = g (p, va_arg (v,int));
11729  va_end (v);
11730  return s;
11731}
11732
11733/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11734   function prototypes and stuff, but not '\xHH' hex character constants.
11735   These don't provoke an error unfortunately, instead are silently treated
11736   as 'x'.  The following induces an error, until -std is added to get
11737   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11738   array size at least.  It's necessary to write '\x00'==0 to get something
11739   that's true only with -std.  */
11740int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11741
11742/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11743   inside strings and character constants.  */
11744#define FOO(x) 'x'
11745int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11746
11747int test (int i, double x);
11748struct s1 {int (*f) (int a);};
11749struct s2 {int (*f) (double a);};
11750int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11751int argc;
11752char **argv;
11753int
11754main ()
11755{
11756return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11762	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11763do
11764  CC="$ac_save_CC $ac_arg"
11765  rm -f conftest.$ac_objext
11766if { (ac_try="$ac_compile"
11767case "(($ac_try" in
11768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769  *) ac_try_echo=$ac_try;;
11770esac
11771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11772$as_echo "$ac_try_echo") >&5
11773  (eval "$ac_compile") 2>conftest.er1
11774  ac_status=$?
11775  grep -v '^ *+' conftest.er1 >conftest.err
11776  rm -f conftest.er1
11777  cat conftest.err >&5
11778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779  (exit $ac_status); } && {
11780	 test -z "$ac_c_werror_flag" ||
11781	 test ! -s conftest.err
11782       } && test -s conftest.$ac_objext; then
11783  ac_cv_prog_cc_c89=$ac_arg
11784else
11785  $as_echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
11788
11789fi
11790
11791rm -f core conftest.err conftest.$ac_objext
11792  test "x$ac_cv_prog_cc_c89" != "xno" && break
11793done
11794rm -f conftest.$ac_ext
11795CC=$ac_save_CC
11796
11797fi
11798# AC_CACHE_VAL
11799case "x$ac_cv_prog_cc_c89" in
11800  x)
11801    { $as_echo "$as_me:$LINENO: result: none needed" >&5
11802$as_echo "none needed" >&6; } ;;
11803  xno)
11804    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11805$as_echo "unsupported" >&6; } ;;
11806  *)
11807    CC="$CC $ac_cv_prog_cc_c89"
11808    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11809$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11810esac
11811
11812
11813ac_ext=c
11814ac_cpp='$CPP $CPPFLAGS'
11815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11817ac_compiler_gnu=$ac_cv_c_compiler_gnu
11818
11819depcc="$CC"   am_compiler_list=
11820
11821{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11822$as_echo_n "checking dependency style of $depcc... " >&6; }
11823if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11824  $as_echo_n "(cached) " >&6
11825else
11826  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11827  # We make a subdir and do the tests there.  Otherwise we can end up
11828  # making bogus files that we don't know about and never remove.  For
11829  # instance it was reported that on HP-UX the gcc test will end up
11830  # making a dummy file named `D' -- because `-MD' means `put the output
11831  # in D'.
11832  mkdir conftest.dir
11833  # Copy depcomp to subdir because otherwise we won't find it if we're
11834  # using a relative directory.
11835  cp "$am_depcomp" conftest.dir
11836  cd conftest.dir
11837  # We will build objects and dependencies in a subdirectory because
11838  # it helps to detect inapplicable dependency modes.  For instance
11839  # both Tru64's cc and ICC support -MD to output dependencies as a
11840  # side effect of compilation, but ICC will put the dependencies in
11841  # the current directory while Tru64 will put them in the object
11842  # directory.
11843  mkdir sub
11844
11845  am_cv_CC_dependencies_compiler_type=none
11846  if test "$am_compiler_list" = ""; then
11847     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11848  fi
11849  for depmode in $am_compiler_list; do
11850    # Setup a source with many dependencies, because some compilers
11851    # like to wrap large dependency lists on column 80 (with \), and
11852    # we should not choose a depcomp mode which is confused by this.
11853    #
11854    # We need to recreate these files for each test, as the compiler may
11855    # overwrite some of them when testing with obscure command lines.
11856    # This happens at least with the AIX C compiler.
11857    : > sub/conftest.c
11858    for i in 1 2 3 4 5 6; do
11859      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11860      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11861      # Solaris 8's {/usr,}/bin/sh.
11862      touch sub/conftst$i.h
11863    done
11864    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11865
11866    case $depmode in
11867    nosideeffect)
11868      # after this tag, mechanisms are not by side-effect, so they'll
11869      # only be used when explicitly requested
11870      if test "x$enable_dependency_tracking" = xyes; then
11871	continue
11872      else
11873	break
11874      fi
11875      ;;
11876    none) break ;;
11877    esac
11878    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11879    # mode.  It turns out that the SunPro C++ compiler does not properly
11880    # handle `-M -o', and we need to detect this.
11881    if depmode=$depmode \
11882       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11883       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11884       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11885         >/dev/null 2>conftest.err &&
11886       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11887       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11888       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11889       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11890      # icc doesn't choke on unknown options, it will just issue warnings
11891      # or remarks (even with -Werror).  So we grep stderr for any message
11892      # that says an option was ignored or not supported.
11893      # When given -MP, icc 7.0 and 7.1 complain thusly:
11894      #   icc: Command line warning: ignoring option '-M'; no argument required
11895      # The diagnosis changed in icc 8.0:
11896      #   icc: Command line remark: option '-MP' not supported
11897      if (grep 'ignoring option' conftest.err ||
11898          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11899        am_cv_CC_dependencies_compiler_type=$depmode
11900        break
11901      fi
11902    fi
11903  done
11904
11905  cd ..
11906  rm -rf conftest.dir
11907else
11908  am_cv_CC_dependencies_compiler_type=none
11909fi
11910
11911fi
11912{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11913$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11914CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11915
11916 if
11917  test "x$enable_dependency_tracking" != xno \
11918  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11919  am__fastdepCC_TRUE=
11920  am__fastdepCC_FALSE='#'
11921else
11922  am__fastdepCC_TRUE='#'
11923  am__fastdepCC_FALSE=
11924fi
11925
11926
11927
11928
11929
11930
11931
11932# Check whether --with-xorg-module-dir was given.
11933if test "${with_xorg_module_dir+set}" = set; then
11934  withval=$with_xorg_module_dir; moduledir="$withval"
11935else
11936  moduledir="$libdir/xorg/modules"
11937fi
11938
11939
11940# Check whether --enable-dri was given.
11941if test "${enable_dri+set}" = set; then
11942  enableval=$enable_dri; DRI="$enableval"
11943else
11944  DRI=auto
11945fi
11946
11947# Check whether --enable-exa was given.
11948if test "${enable_exa+set}" = set; then
11949  enableval=$enable_exa; EXA="$enableval"
11950else
11951  EXA=yes
11952fi
11953
11954
11955# Checks for extensions
11956
11957	SAVE_CFLAGS="$CFLAGS"
11958	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11959	cat >conftest.$ac_ext <<_ACEOF
11960/* confdefs.h.  */
11961_ACEOF
11962cat confdefs.h >>conftest.$ac_ext
11963cat >>conftest.$ac_ext <<_ACEOF
11964/* end confdefs.h.  */
11965
11966#include "xorg-server.h"
11967#if !defined RANDR
11968#error RANDR not defined
11969#endif
11970
11971int
11972main ()
11973{
11974
11975  ;
11976  return 0;
11977}
11978_ACEOF
11979rm -f conftest.$ac_objext
11980if { (ac_try="$ac_compile"
11981case "(($ac_try" in
11982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983  *) ac_try_echo=$ac_try;;
11984esac
11985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11986$as_echo "$ac_try_echo") >&5
11987  (eval "$ac_compile") 2>conftest.er1
11988  ac_status=$?
11989  grep -v '^ *+' conftest.er1 >conftest.err
11990  rm -f conftest.er1
11991  cat conftest.err >&5
11992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993  (exit $ac_status); } && {
11994	 test -z "$ac_c_werror_flag" ||
11995	 test ! -s conftest.err
11996       } && test -s conftest.$ac_objext; then
11997  _EXT_CHECK=yes
11998else
11999  $as_echo "$as_me: failed program was:" >&5
12000sed 's/^/| /' conftest.$ac_ext >&5
12001
12002	_EXT_CHECK=no
12003fi
12004
12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006	CFLAGS="$SAVE_CFLAGS"
12007	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12008$as_echo_n "checking if RANDR is defined... " >&6; }
12009	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12010$as_echo "$_EXT_CHECK" >&6; }
12011	if test "$_EXT_CHECK" != no; then
12012		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12013	fi
12014
12015
12016	SAVE_CFLAGS="$CFLAGS"
12017	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12018	cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h.  */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h.  */
12024
12025#include "xorg-server.h"
12026#if !defined RENDER
12027#error RENDER not defined
12028#endif
12029
12030int
12031main ()
12032{
12033
12034  ;
12035  return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (ac_try="$ac_compile"
12040case "(($ac_try" in
12041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042  *) ac_try_echo=$ac_try;;
12043esac
12044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12045$as_echo "$ac_try_echo") >&5
12046  (eval "$ac_compile") 2>conftest.er1
12047  ac_status=$?
12048  grep -v '^ *+' conftest.er1 >conftest.err
12049  rm -f conftest.er1
12050  cat conftest.err >&5
12051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052  (exit $ac_status); } && {
12053	 test -z "$ac_c_werror_flag" ||
12054	 test ! -s conftest.err
12055       } && test -s conftest.$ac_objext; then
12056  _EXT_CHECK=yes
12057else
12058  $as_echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061	_EXT_CHECK=no
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065	CFLAGS="$SAVE_CFLAGS"
12066	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12067$as_echo_n "checking if RENDER is defined... " >&6; }
12068	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12069$as_echo "$_EXT_CHECK" >&6; }
12070	if test "$_EXT_CHECK" != no; then
12071		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12072	fi
12073
12074
12075	SAVE_CFLAGS="$CFLAGS"
12076	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12077	cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h.  */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h.  */
12083
12084#include "xorg-server.h"
12085#if !defined XV
12086#error XV not defined
12087#endif
12088
12089int
12090main ()
12091{
12092
12093  ;
12094  return 0;
12095}
12096_ACEOF
12097rm -f conftest.$ac_objext
12098if { (ac_try="$ac_compile"
12099case "(($ac_try" in
12100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101  *) ac_try_echo=$ac_try;;
12102esac
12103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12104$as_echo "$ac_try_echo") >&5
12105  (eval "$ac_compile") 2>conftest.er1
12106  ac_status=$?
12107  grep -v '^ *+' conftest.er1 >conftest.err
12108  rm -f conftest.er1
12109  cat conftest.err >&5
12110  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111  (exit $ac_status); } && {
12112	 test -z "$ac_c_werror_flag" ||
12113	 test ! -s conftest.err
12114       } && test -s conftest.$ac_objext; then
12115  _EXT_CHECK=yes
12116else
12117  $as_echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120	_EXT_CHECK=no
12121fi
12122
12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124	CFLAGS="$SAVE_CFLAGS"
12125	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12126$as_echo_n "checking if XV is defined... " >&6; }
12127	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12128$as_echo "$_EXT_CHECK" >&6; }
12129	if test "$_EXT_CHECK" != no; then
12130		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12131	fi
12132
12133
12134	SAVE_CFLAGS="$CFLAGS"
12135	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12136	cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h.  */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h.  */
12142
12143#include "xorg-server.h"
12144#if !defined DPMSExtension
12145#error DPMSExtension not defined
12146#endif
12147
12148int
12149main ()
12150{
12151
12152  ;
12153  return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (ac_try="$ac_compile"
12158case "(($ac_try" in
12159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160  *) ac_try_echo=$ac_try;;
12161esac
12162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12163$as_echo "$ac_try_echo") >&5
12164  (eval "$ac_compile") 2>conftest.er1
12165  ac_status=$?
12166  grep -v '^ *+' conftest.er1 >conftest.err
12167  rm -f conftest.er1
12168  cat conftest.err >&5
12169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170  (exit $ac_status); } && {
12171	 test -z "$ac_c_werror_flag" ||
12172	 test ! -s conftest.err
12173       } && test -s conftest.$ac_objext; then
12174  _EXT_CHECK=yes
12175else
12176  $as_echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179	_EXT_CHECK=no
12180fi
12181
12182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183	CFLAGS="$SAVE_CFLAGS"
12184	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12185$as_echo_n "checking if DPMSExtension is defined... " >&6; }
12186	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12187$as_echo "$_EXT_CHECK" >&6; }
12188	if test "$_EXT_CHECK" != no; then
12189		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12190	fi
12191
12192
12193# Checks for pkg-config packages
12194
12195
12196if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12197	if test -n "$ac_tool_prefix"; then
12198  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12201$as_echo_n "checking for $ac_word... " >&6; }
12202if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12203  $as_echo_n "(cached) " >&6
12204else
12205  case $PKG_CONFIG in
12206  [\\/]* | ?:[\\/]*)
12207  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12208  ;;
12209  *)
12210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211for as_dir in $PATH
12212do
12213  IFS=$as_save_IFS
12214  test -z "$as_dir" && as_dir=.
12215  for ac_exec_ext in '' $ac_executable_extensions; do
12216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12217    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12218    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12219    break 2
12220  fi
12221done
12222done
12223IFS=$as_save_IFS
12224
12225  ;;
12226esac
12227fi
12228PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12229if test -n "$PKG_CONFIG"; then
12230  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12231$as_echo "$PKG_CONFIG" >&6; }
12232else
12233  { $as_echo "$as_me:$LINENO: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238fi
12239if test -z "$ac_cv_path_PKG_CONFIG"; then
12240  ac_pt_PKG_CONFIG=$PKG_CONFIG
12241  # Extract the first word of "pkg-config", so it can be a program name with args.
12242set dummy pkg-config; ac_word=$2
12243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
12245if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12246  $as_echo_n "(cached) " >&6
12247else
12248  case $ac_pt_PKG_CONFIG in
12249  [\\/]* | ?:[\\/]*)
12250  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12251  ;;
12252  *)
12253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254for as_dir in $PATH
12255do
12256  IFS=$as_save_IFS
12257  test -z "$as_dir" && as_dir=.
12258  for ac_exec_ext in '' $ac_executable_extensions; do
12259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12261    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12262    break 2
12263  fi
12264done
12265done
12266IFS=$as_save_IFS
12267
12268  ;;
12269esac
12270fi
12271ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12272if test -n "$ac_pt_PKG_CONFIG"; then
12273  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12274$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12275else
12276  { $as_echo "$as_me:$LINENO: result: no" >&5
12277$as_echo "no" >&6; }
12278fi
12279
12280  if test "x$ac_pt_PKG_CONFIG" = x; then
12281    PKG_CONFIG=""
12282  else
12283    case $cross_compiling:$ac_tool_warned in
12284yes:)
12285{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12287ac_tool_warned=yes ;;
12288esac
12289    PKG_CONFIG=$ac_pt_PKG_CONFIG
12290  fi
12291else
12292  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12293fi
12294
12295fi
12296if test -n "$PKG_CONFIG"; then
12297	_pkg_min_version=0.9.0
12298	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12299$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12300	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12301		{ $as_echo "$as_me:$LINENO: result: yes" >&5
12302$as_echo "yes" >&6; }
12303	else
12304		{ $as_echo "$as_me:$LINENO: result: no" >&5
12305$as_echo "no" >&6; }
12306		PKG_CONFIG=""
12307	fi
12308
12309fi
12310
12311pkg_failed=no
12312{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
12313$as_echo_n "checking for XORG... " >&6; }
12314
12315if test -n "$XORG_CFLAGS"; then
12316    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12317 elif test -n "$PKG_CONFIG"; then
12318    if test -n "$PKG_CONFIG" && \
12319    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12320  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
12321  ac_status=$?
12322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); }; then
12324  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12325else
12326  pkg_failed=yes
12327fi
12328 else
12329    pkg_failed=untried
12330fi
12331if test -n "$XORG_LIBS"; then
12332    pkg_cv_XORG_LIBS="$XORG_LIBS"
12333 elif test -n "$PKG_CONFIG"; then
12334    if test -n "$PKG_CONFIG" && \
12335    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12336  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
12337  ac_status=$?
12338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339  (exit $ac_status); }; then
12340  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12341else
12342  pkg_failed=yes
12343fi
12344 else
12345    pkg_failed=untried
12346fi
12347
12348
12349
12350if test $pkg_failed = yes; then
12351
12352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12353        _pkg_short_errors_supported=yes
12354else
12355        _pkg_short_errors_supported=no
12356fi
12357        if test $_pkg_short_errors_supported = yes; then
12358	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12359        else
12360	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12361        fi
12362	# Put the nasty error message in config.log where it belongs
12363	echo "$XORG_PKG_ERRORS" >&5
12364
12365	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
12366
12367$XORG_PKG_ERRORS
12368
12369Consider adjusting the PKG_CONFIG_PATH environment variable if you
12370installed software in a non-standard prefix.
12371
12372Alternatively, you may set the environment variables XORG_CFLAGS
12373and XORG_LIBS to avoid the need to call pkg-config.
12374See the pkg-config man page for more details.
12375" >&5
12376$as_echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
12377
12378$XORG_PKG_ERRORS
12379
12380Consider adjusting the PKG_CONFIG_PATH environment variable if you
12381installed software in a non-standard prefix.
12382
12383Alternatively, you may set the environment variables XORG_CFLAGS
12384and XORG_LIBS to avoid the need to call pkg-config.
12385See the pkg-config man page for more details.
12386" >&2;}
12387   { (exit 1); exit 1; }; }
12388elif test $pkg_failed = untried; then
12389	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12391{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12392is in your PATH or set the PKG_CONFIG environment variable to the full
12393path to pkg-config.
12394
12395Alternatively, you may set the environment variables XORG_CFLAGS
12396and XORG_LIBS to avoid the need to call pkg-config.
12397See the pkg-config man page for more details.
12398
12399To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12400See \`config.log' for more details." >&5
12401$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12402is in your PATH or set the PKG_CONFIG environment variable to the full
12403path to pkg-config.
12404
12405Alternatively, you may set the environment variables XORG_CFLAGS
12406and XORG_LIBS to avoid the need to call pkg-config.
12407See the pkg-config man page for more details.
12408
12409To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12410See \`config.log' for more details." >&2;}
12411   { (exit 1); exit 1; }; }; }
12412else
12413	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12414	XORG_LIBS=$pkg_cv_XORG_LIBS
12415        { $as_echo "$as_me:$LINENO: result: yes" >&5
12416$as_echo "yes" >&6; }
12417	:
12418fi
12419sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12420
12421# Checks for libraries.
12422
12423# Checks for header files.
12424{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12425$as_echo_n "checking for ANSI C header files... " >&6; }
12426if test "${ac_cv_header_stdc+set}" = set; then
12427  $as_echo_n "(cached) " >&6
12428else
12429  cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h.  */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h.  */
12435#include <stdlib.h>
12436#include <stdarg.h>
12437#include <string.h>
12438#include <float.h>
12439
12440int
12441main ()
12442{
12443
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448rm -f conftest.$ac_objext
12449if { (ac_try="$ac_compile"
12450case "(($ac_try" in
12451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452  *) ac_try_echo=$ac_try;;
12453esac
12454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455$as_echo "$ac_try_echo") >&5
12456  (eval "$ac_compile") 2>conftest.er1
12457  ac_status=$?
12458  grep -v '^ *+' conftest.er1 >conftest.err
12459  rm -f conftest.er1
12460  cat conftest.err >&5
12461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462  (exit $ac_status); } && {
12463	 test -z "$ac_c_werror_flag" ||
12464	 test ! -s conftest.err
12465       } && test -s conftest.$ac_objext; then
12466  ac_cv_header_stdc=yes
12467else
12468  $as_echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471	ac_cv_header_stdc=no
12472fi
12473
12474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475
12476if test $ac_cv_header_stdc = yes; then
12477  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12478  cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h.  */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h.  */
12484#include <string.h>
12485
12486_ACEOF
12487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12488  $EGREP "memchr" >/dev/null 2>&1; then
12489  :
12490else
12491  ac_cv_header_stdc=no
12492fi
12493rm -f conftest*
12494
12495fi
12496
12497if test $ac_cv_header_stdc = yes; then
12498  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12499  cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h.  */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h.  */
12505#include <stdlib.h>
12506
12507_ACEOF
12508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12509  $EGREP "free" >/dev/null 2>&1; then
12510  :
12511else
12512  ac_cv_header_stdc=no
12513fi
12514rm -f conftest*
12515
12516fi
12517
12518if test $ac_cv_header_stdc = yes; then
12519  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12520  if test "$cross_compiling" = yes; then
12521  :
12522else
12523  cat >conftest.$ac_ext <<_ACEOF
12524/* confdefs.h.  */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h.  */
12529#include <ctype.h>
12530#include <stdlib.h>
12531#if ((' ' & 0x0FF) == 0x020)
12532# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12533# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12534#else
12535# define ISLOWER(c) \
12536		   (('a' <= (c) && (c) <= 'i') \
12537		     || ('j' <= (c) && (c) <= 'r') \
12538		     || ('s' <= (c) && (c) <= 'z'))
12539# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12540#endif
12541
12542#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12543int
12544main ()
12545{
12546  int i;
12547  for (i = 0; i < 256; i++)
12548    if (XOR (islower (i), ISLOWER (i))
12549	|| toupper (i) != TOUPPER (i))
12550      return 2;
12551  return 0;
12552}
12553_ACEOF
12554rm -f conftest$ac_exeext
12555if { (ac_try="$ac_link"
12556case "(($ac_try" in
12557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558  *) ac_try_echo=$ac_try;;
12559esac
12560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12561$as_echo "$ac_try_echo") >&5
12562  (eval "$ac_link") 2>&5
12563  ac_status=$?
12564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12566  { (case "(($ac_try" in
12567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568  *) ac_try_echo=$ac_try;;
12569esac
12570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12571$as_echo "$ac_try_echo") >&5
12572  (eval "$ac_try") 2>&5
12573  ac_status=$?
12574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575  (exit $ac_status); }; }; then
12576  :
12577else
12578  $as_echo "$as_me: program exited with status $ac_status" >&5
12579$as_echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582( exit $ac_status )
12583ac_cv_header_stdc=no
12584fi
12585rm -rf conftest.dSYM
12586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12587fi
12588
12589
12590fi
12591fi
12592{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12593$as_echo "$ac_cv_header_stdc" >&6; }
12594if test $ac_cv_header_stdc = yes; then
12595
12596cat >>confdefs.h <<\_ACEOF
12597#define STDC_HEADERS 1
12598_ACEOF
12599
12600fi
12601
12602
12603if test "x$DRI" != xno; then
12604        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
12605{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
12606$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
12607if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12608  $as_echo_n "(cached) " >&6
12609else
12610  test "$cross_compiling" = yes &&
12611  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12612$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12613   { (exit 1); exit 1; }; }
12614if test -r "${sdkdir}/dri.h"; then
12615  eval "$as_ac_File=yes"
12616else
12617  eval "$as_ac_File=no"
12618fi
12619fi
12620ac_res=`eval 'as_val=${'$as_ac_File'}
12621		 $as_echo "$as_val"'`
12622	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12623$as_echo "$ac_res" >&6; }
12624as_val=`eval 'as_val=${'$as_ac_File'}
12625		 $as_echo "$as_val"'`
12626   if test "x$as_val" = x""yes; then
12627  have_dri_h="yes"
12628else
12629  have_dri_h="no"
12630fi
12631
12632        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
12633{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
12634$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
12635if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12636  $as_echo_n "(cached) " >&6
12637else
12638  test "$cross_compiling" = yes &&
12639  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12640$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12641   { (exit 1); exit 1; }; }
12642if test -r "${sdkdir}/sarea.h"; then
12643  eval "$as_ac_File=yes"
12644else
12645  eval "$as_ac_File=no"
12646fi
12647fi
12648ac_res=`eval 'as_val=${'$as_ac_File'}
12649		 $as_echo "$as_val"'`
12650	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12651$as_echo "$ac_res" >&6; }
12652as_val=`eval 'as_val=${'$as_ac_File'}
12653		 $as_echo "$as_val"'`
12654   if test "x$as_val" = x""yes; then
12655  have_sarea_h="yes"
12656else
12657  have_sarea_h="no"
12658fi
12659
12660        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
12661{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
12662$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
12663if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
12664  $as_echo_n "(cached) " >&6
12665else
12666  test "$cross_compiling" = yes &&
12667  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12668$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12669   { (exit 1); exit 1; }; }
12670if test -r "${sdkdir}/dristruct.h"; then
12671  eval "$as_ac_File=yes"
12672else
12673  eval "$as_ac_File=no"
12674fi
12675fi
12676ac_res=`eval 'as_val=${'$as_ac_File'}
12677		 $as_echo "$as_val"'`
12678	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12679$as_echo "$ac_res" >&6; }
12680as_val=`eval 'as_val=${'$as_ac_File'}
12681		 $as_echo "$as_val"'`
12682   if test "x$as_val" = x""yes; then
12683  have_dristruct_h="yes"
12684else
12685  have_dristruct_h="no"
12686fi
12687
12688fi
12689
12690{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
12691$as_echo_n "checking whether to include DRI support... " >&6; }
12692if test "x$DRI" = xauto; then
12693        if test "x$have_dri_h" = xyes && \
12694           test "x$have_sarea_h" = xyes && \
12695           test "x$have_dristruct_h" = xyes; then
12696                DRI="yes"
12697        else
12698                DRI="no"
12699        fi
12700fi
12701{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
12702$as_echo "$DRI" >&6; }
12703
12704 if test "x$DRI" = xyes; then
12705  DRI_TRUE=
12706  DRI_FALSE='#'
12707else
12708  DRI_TRUE='#'
12709  DRI_FALSE=
12710fi
12711
12712if test "x$DRI" = xyes; then
12713
12714pkg_failed=no
12715{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
12716$as_echo_n "checking for DRI... " >&6; }
12717
12718if test -n "$DRI_CFLAGS"; then
12719    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
12720 elif test -n "$PKG_CONFIG"; then
12721    if test -n "$PKG_CONFIG" && \
12722    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
12723  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
12724  ac_status=$?
12725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726  (exit $ac_status); }; then
12727  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
12728else
12729  pkg_failed=yes
12730fi
12731 else
12732    pkg_failed=untried
12733fi
12734if test -n "$DRI_LIBS"; then
12735    pkg_cv_DRI_LIBS="$DRI_LIBS"
12736 elif test -n "$PKG_CONFIG"; then
12737    if test -n "$PKG_CONFIG" && \
12738    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
12739  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
12740  ac_status=$?
12741  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742  (exit $ac_status); }; then
12743  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
12744else
12745  pkg_failed=yes
12746fi
12747 else
12748    pkg_failed=untried
12749fi
12750
12751
12752
12753if test $pkg_failed = yes; then
12754
12755if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12756        _pkg_short_errors_supported=yes
12757else
12758        _pkg_short_errors_supported=no
12759fi
12760        if test $_pkg_short_errors_supported = yes; then
12761	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
12762        else
12763	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
12764        fi
12765	# Put the nasty error message in config.log where it belongs
12766	echo "$DRI_PKG_ERRORS" >&5
12767
12768	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
12769
12770$DRI_PKG_ERRORS
12771
12772Consider adjusting the PKG_CONFIG_PATH environment variable if you
12773installed software in a non-standard prefix.
12774
12775Alternatively, you may set the environment variables DRI_CFLAGS
12776and DRI_LIBS to avoid the need to call pkg-config.
12777See the pkg-config man page for more details.
12778" >&5
12779$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
12780
12781$DRI_PKG_ERRORS
12782
12783Consider adjusting the PKG_CONFIG_PATH environment variable if you
12784installed software in a non-standard prefix.
12785
12786Alternatively, you may set the environment variables DRI_CFLAGS
12787and DRI_LIBS to avoid the need to call pkg-config.
12788See the pkg-config man page for more details.
12789" >&2;}
12790   { (exit 1); exit 1; }; }
12791elif test $pkg_failed = untried; then
12792	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12794{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12795is in your PATH or set the PKG_CONFIG environment variable to the full
12796path to pkg-config.
12797
12798Alternatively, you may set the environment variables DRI_CFLAGS
12799and DRI_LIBS to avoid the need to call pkg-config.
12800See the pkg-config man page for more details.
12801
12802To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12803See \`config.log' for more details." >&5
12804$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12805is in your PATH or set the PKG_CONFIG environment variable to the full
12806path to pkg-config.
12807
12808Alternatively, you may set the environment variables DRI_CFLAGS
12809and DRI_LIBS to avoid the need to call pkg-config.
12810See the pkg-config man page for more details.
12811
12812To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12813See \`config.log' for more details." >&2;}
12814   { (exit 1); exit 1; }; }; }
12815else
12816	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
12817	DRI_LIBS=$pkg_cv_DRI_LIBS
12818        { $as_echo "$as_me:$LINENO: result: yes" >&5
12819$as_echo "yes" >&6; }
12820	:
12821fi
12822
12823cat >>confdefs.h <<\_ACEOF
12824#define XF86DRI 1
12825_ACEOF
12826
12827
12828cat >>confdefs.h <<\_ACEOF
12829#define XF86DRI_DEVEL 1
12830_ACEOF
12831
12832fi
12833
12834save_CFLAGS="$CFLAGS"
12835CFLAGS="$XORG_CFLAGS"
12836{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12837$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12838if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12839  $as_echo_n "(cached) " >&6
12840else
12841  cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h.  */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h.  */
12847#include "xorg-server.h"
12848
12849int
12850main ()
12851{
12852#ifndef XSERVER_LIBPCIACCESS
12853  (void) XSERVER_LIBPCIACCESS;
12854#endif
12855
12856  ;
12857  return 0;
12858}
12859_ACEOF
12860rm -f conftest.$ac_objext
12861if { (ac_try="$ac_compile"
12862case "(($ac_try" in
12863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864  *) ac_try_echo=$ac_try;;
12865esac
12866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12867$as_echo "$ac_try_echo") >&5
12868  (eval "$ac_compile") 2>conftest.er1
12869  ac_status=$?
12870  grep -v '^ *+' conftest.er1 >conftest.err
12871  rm -f conftest.er1
12872  cat conftest.err >&5
12873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874  (exit $ac_status); } && {
12875	 test -z "$ac_c_werror_flag" ||
12876	 test ! -s conftest.err
12877       } && test -s conftest.$ac_objext; then
12878  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12879else
12880  $as_echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12884fi
12885
12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887fi
12888{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12889$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12890if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12891  XSERVER_LIBPCIACCESS=yes
12892else
12893  XSERVER_LIBPCIACCESS=no
12894fi
12895
12896CFLAGS="$save_CFLAGS"
12897
12898save_CFLAGS="$CFLAGS"
12899CFLAGS="$XORG_CFLAGS"
12900{ $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5
12901$as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; }
12902if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then
12903  $as_echo_n "(cached) " >&6
12904else
12905  cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h.  */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h.  */
12911#include <X11/extensions/randr.h>
12912	       #include "xorg-server.h"
12913	       #include "xf86Modes.h"
12914
12915int
12916main ()
12917{
12918#ifndef xf86ModeBandwidth
12919  (void) xf86ModeBandwidth;
12920#endif
12921
12922  ;
12923  return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext
12927if { (ac_try="$ac_compile"
12928case "(($ac_try" in
12929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930  *) ac_try_echo=$ac_try;;
12931esac
12932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933$as_echo "$ac_try_echo") >&5
12934  (eval "$ac_compile") 2>conftest.er1
12935  ac_status=$?
12936  grep -v '^ *+' conftest.er1 >conftest.err
12937  rm -f conftest.er1
12938  cat conftest.err >&5
12939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940  (exit $ac_status); } && {
12941	 test -z "$ac_c_werror_flag" ||
12942	 test ! -s conftest.err
12943       } && test -s conftest.$ac_objext; then
12944  ac_cv_have_decl_xf86ModeBandwidth=yes
12945else
12946  $as_echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949	ac_cv_have_decl_xf86ModeBandwidth=no
12950fi
12951
12952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953fi
12954{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5
12955$as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; }
12956if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then
12957
12958cat >>confdefs.h <<\_ACEOF
12959#define HAVE_XF86MODEBANDWIDTH 1
12960_ACEOF
12961
12962fi
12963
12964CFLAGS="$save_CFLAGS"
12965
12966if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12967
12968pkg_failed=no
12969{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12970$as_echo_n "checking for PCIACCESS... " >&6; }
12971
12972if test -n "$PCIACCESS_CFLAGS"; then
12973    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12974 elif test -n "$PKG_CONFIG"; then
12975    if test -n "$PKG_CONFIG" && \
12976    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12977  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12978  ac_status=$?
12979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980  (exit $ac_status); }; then
12981  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12982else
12983  pkg_failed=yes
12984fi
12985 else
12986    pkg_failed=untried
12987fi
12988if test -n "$PCIACCESS_LIBS"; then
12989    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12990 elif test -n "$PKG_CONFIG"; then
12991    if test -n "$PKG_CONFIG" && \
12992    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12993  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12994  ac_status=$?
12995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); }; then
12997  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12998else
12999  pkg_failed=yes
13000fi
13001 else
13002    pkg_failed=untried
13003fi
13004
13005
13006
13007if test $pkg_failed = yes; then
13008
13009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13010        _pkg_short_errors_supported=yes
13011else
13012        _pkg_short_errors_supported=no
13013fi
13014        if test $_pkg_short_errors_supported = yes; then
13015	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
13016        else
13017	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
13018        fi
13019	# Put the nasty error message in config.log where it belongs
13020	echo "$PCIACCESS_PKG_ERRORS" >&5
13021
13022	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
13023
13024$PCIACCESS_PKG_ERRORS
13025
13026Consider adjusting the PKG_CONFIG_PATH environment variable if you
13027installed software in a non-standard prefix.
13028
13029Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13030and PCIACCESS_LIBS to avoid the need to call pkg-config.
13031See the pkg-config man page for more details.
13032" >&5
13033$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
13034
13035$PCIACCESS_PKG_ERRORS
13036
13037Consider adjusting the PKG_CONFIG_PATH environment variable if you
13038installed software in a non-standard prefix.
13039
13040Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13041and PCIACCESS_LIBS to avoid the need to call pkg-config.
13042See the pkg-config man page for more details.
13043" >&2;}
13044   { (exit 1); exit 1; }; }
13045elif test $pkg_failed = untried; then
13046	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13048{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13049is in your PATH or set the PKG_CONFIG environment variable to the full
13050path to pkg-config.
13051
13052Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13053and PCIACCESS_LIBS to avoid the need to call pkg-config.
13054See the pkg-config man page for more details.
13055
13056To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13057See \`config.log' for more details." >&5
13058$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13059is in your PATH or set the PKG_CONFIG environment variable to the full
13060path to pkg-config.
13061
13062Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13063and PCIACCESS_LIBS to avoid the need to call pkg-config.
13064See the pkg-config man page for more details.
13065
13066To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13067See \`config.log' for more details." >&2;}
13068   { (exit 1); exit 1; }; }; }
13069else
13070	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13071	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13072        { $as_echo "$as_me:$LINENO: result: yes" >&5
13073$as_echo "yes" >&6; }
13074	:
13075fi
13076fi
13077 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13078  XSERVER_LIBPCIACCESS_TRUE=
13079  XSERVER_LIBPCIACCESS_FALSE='#'
13080else
13081  XSERVER_LIBPCIACCESS_TRUE='#'
13082  XSERVER_LIBPCIACCESS_FALSE=
13083fi
13084
13085
13086 if true; then
13087  USE_XAA_TRUE=
13088  USE_XAA_FALSE='#'
13089else
13090  USE_XAA_TRUE='#'
13091  USE_XAA_FALSE=
13092fi
13093
13094
13095cat >>confdefs.h <<\_ACEOF
13096#define USE_XAA 1
13097_ACEOF
13098
13099
13100# Properly handle EXA.
13101{ $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
13102$as_echo_n "checking whether to enable EXA support... " >&6; }
13103if test "x$EXA" = xyes; then
13104    { $as_echo "$as_me:$LINENO: result: yes" >&5
13105$as_echo "yes" >&6; }
13106
13107    SAVE_CPPFLAGS="$CPPFLAGS"
13108    CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13109    if test "${ac_cv_header_exa_h+set}" = set; then
13110  { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
13111$as_echo_n "checking for exa.h... " >&6; }
13112if test "${ac_cv_header_exa_h+set}" = set; then
13113  $as_echo_n "(cached) " >&6
13114fi
13115{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
13116$as_echo "$ac_cv_header_exa_h" >&6; }
13117else
13118  # Is the header compilable?
13119{ $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
13120$as_echo_n "checking exa.h usability... " >&6; }
13121cat >conftest.$ac_ext <<_ACEOF
13122/* confdefs.h.  */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h.  */
13127$ac_includes_default
13128#include <exa.h>
13129_ACEOF
13130rm -f conftest.$ac_objext
13131if { (ac_try="$ac_compile"
13132case "(($ac_try" in
13133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134  *) ac_try_echo=$ac_try;;
13135esac
13136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13137$as_echo "$ac_try_echo") >&5
13138  (eval "$ac_compile") 2>conftest.er1
13139  ac_status=$?
13140  grep -v '^ *+' conftest.er1 >conftest.err
13141  rm -f conftest.er1
13142  cat conftest.err >&5
13143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144  (exit $ac_status); } && {
13145	 test -z "$ac_c_werror_flag" ||
13146	 test ! -s conftest.err
13147       } && test -s conftest.$ac_objext; then
13148  ac_header_compiler=yes
13149else
13150  $as_echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153	ac_header_compiler=no
13154fi
13155
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13158$as_echo "$ac_header_compiler" >&6; }
13159
13160# Is the header present?
13161{ $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
13162$as_echo_n "checking exa.h presence... " >&6; }
13163cat >conftest.$ac_ext <<_ACEOF
13164/* confdefs.h.  */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h.  */
13169#include <exa.h>
13170_ACEOF
13171if { (ac_try="$ac_cpp conftest.$ac_ext"
13172case "(($ac_try" in
13173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174  *) ac_try_echo=$ac_try;;
13175esac
13176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13177$as_echo "$ac_try_echo") >&5
13178  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13179  ac_status=$?
13180  grep -v '^ *+' conftest.er1 >conftest.err
13181  rm -f conftest.er1
13182  cat conftest.err >&5
13183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184  (exit $ac_status); } >/dev/null && {
13185	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13186	 test ! -s conftest.err
13187       }; then
13188  ac_header_preproc=yes
13189else
13190  $as_echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193  ac_header_preproc=no
13194fi
13195
13196rm -f conftest.err conftest.$ac_ext
13197{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13198$as_echo "$ac_header_preproc" >&6; }
13199
13200# So?  What about this header?
13201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13202  yes:no: )
13203    { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
13204$as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13205    { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
13206$as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
13207    ac_header_preproc=yes
13208    ;;
13209  no:yes:* )
13210    { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
13211$as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
13212    { $as_echo "$as_me:$LINENO: WARNING: exa.h:     check for missing prerequisite headers?" >&5
13213$as_echo "$as_me: WARNING: exa.h:     check for missing prerequisite headers?" >&2;}
13214    { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
13215$as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
13216    { $as_echo "$as_me:$LINENO: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&5
13217$as_echo "$as_me: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13218    { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
13219$as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
13220    { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
13221$as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
13222    ( cat <<\_ASBOX
13223## ---------------------------------------------------------------------- ##
13224## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
13225## ---------------------------------------------------------------------- ##
13226_ASBOX
13227     ) | sed "s/^/$as_me: WARNING:     /" >&2
13228    ;;
13229esac
13230{ $as_echo "$as_me:$LINENO: checking for exa.h" >&5
13231$as_echo_n "checking for exa.h... " >&6; }
13232if test "${ac_cv_header_exa_h+set}" = set; then
13233  $as_echo_n "(cached) " >&6
13234else
13235  ac_cv_header_exa_h=$ac_header_preproc
13236fi
13237{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
13238$as_echo "$ac_cv_header_exa_h" >&6; }
13239
13240fi
13241if test "x$ac_cv_header_exa_h" = x""yes; then
13242  have_exa_h="yes"
13243else
13244  have_exa_h="no"
13245fi
13246
13247
13248    CPPFLAGS="$SAVE_CPPFLAGS"
13249else
13250    { $as_echo "$as_me:$LINENO: result: no" >&5
13251$as_echo "no" >&6; }
13252fi
13253
13254SAVE_CPPFLAGS="$CPPFLAGS"
13255CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13256if test "x$have_exa_h" = xyes; then
13257    { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
13258$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
13259    cat >conftest.$ac_ext <<_ACEOF
13260/* confdefs.h.  */
13261_ACEOF
13262cat confdefs.h >>conftest.$ac_ext
13263cat >>conftest.$ac_ext <<_ACEOF
13264/* end confdefs.h.  */
13265
13266#include "exa.h"
13267#if EXA_VERSION_MAJOR < 2
13268#error OLD EXA!
13269#endif
13270
13271int
13272main ()
13273{
13274
13275  ;
13276  return 0;
13277}
13278_ACEOF
13279if { (ac_try="$ac_cpp conftest.$ac_ext"
13280case "(($ac_try" in
13281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282  *) ac_try_echo=$ac_try;;
13283esac
13284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13285$as_echo "$ac_try_echo") >&5
13286  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13287  ac_status=$?
13288  grep -v '^ *+' conftest.er1 >conftest.err
13289  rm -f conftest.er1
13290  cat conftest.err >&5
13291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292  (exit $ac_status); } >/dev/null && {
13293	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13294	 test ! -s conftest.err
13295       }; then
13296  USE_EXA=yes
13297else
13298  $as_echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301  USE_EXA=no
13302fi
13303
13304rm -f conftest.err conftest.$ac_ext
13305    { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
13306$as_echo "$USE_EXA" >&6; }
13307
13308    if test "x$USE_EXA" = xyes; then
13309
13310cat >>confdefs.h <<\_ACEOF
13311#define USE_EXA 1
13312_ACEOF
13313
13314    fi
13315fi
13316CPPFLAGS="$SAVE_CPPFLAGS"
13317
13318 if test "x$USE_EXA" = xyes; then
13319  USE_EXA_TRUE=
13320  USE_EXA_FALSE='#'
13321else
13322  USE_EXA_TRUE='#'
13323  USE_EXA_FALSE=
13324fi
13325
13326
13327
13328
13329
13330
13331DRIVER_NAME=mga
13332
13333
13334
13335
13336
13337if test x$APP_MAN_SUFFIX = x    ; then
13338    APP_MAN_SUFFIX=1
13339fi
13340if test x$APP_MAN_DIR = x    ; then
13341    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13342fi
13343
13344if test x$LIB_MAN_SUFFIX = x    ; then
13345    LIB_MAN_SUFFIX=3
13346fi
13347if test x$LIB_MAN_DIR = x    ; then
13348    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13349fi
13350
13351if test x$FILE_MAN_SUFFIX = x    ; then
13352    case $host_os in
13353	solaris*)	FILE_MAN_SUFFIX=4  ;;
13354	*)		FILE_MAN_SUFFIX=5  ;;
13355    esac
13356fi
13357if test x$FILE_MAN_DIR = x    ; then
13358    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13359fi
13360
13361if test x$MISC_MAN_SUFFIX = x    ; then
13362    case $host_os in
13363	solaris*)	MISC_MAN_SUFFIX=5  ;;
13364	*)		MISC_MAN_SUFFIX=7  ;;
13365    esac
13366fi
13367if test x$MISC_MAN_DIR = x    ; then
13368    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13369fi
13370
13371if test x$DRIVER_MAN_SUFFIX = x    ; then
13372    case $host_os in
13373	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
13374	*)		DRIVER_MAN_SUFFIX=4  ;;
13375    esac
13376fi
13377if test x$DRIVER_MAN_DIR = x    ; then
13378    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13379fi
13380
13381if test x$ADMIN_MAN_SUFFIX = x    ; then
13382    case $host_os in
13383	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
13384	*)		ADMIN_MAN_SUFFIX=8  ;;
13385    esac
13386fi
13387if test x$ADMIN_MAN_DIR = x    ; then
13388    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13389fi
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407# Check whether --with-release-version was given.
13408if test "${with_release_version+set}" = set; then
13409  withval=$with_release_version; RELEASE_VERSION="$withval"
13410else
13411  RELEASE_VERSION=""
13412fi
13413
13414	if test "x$RELEASE_VERSION" != "x"; then
13415		PACKAGE="$PACKAGE-$RELEASE_VERSION"
13416		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13417		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13418$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13419	fi
13420
13421cat >>confdefs.h <<_ACEOF
13422#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13423_ACEOF
13424
13425	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13426	if test "x$PVM" = "x"; then
13427		PVM="0"
13428	fi
13429
13430cat >>confdefs.h <<_ACEOF
13431#define PACKAGE_VERSION_MINOR $PVM
13432_ACEOF
13433
13434	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13435	if test "x$PVP" = "x"; then
13436		PVP="0"
13437	fi
13438
13439cat >>confdefs.h <<_ACEOF
13440#define PACKAGE_VERSION_PATCHLEVEL $PVP
13441_ACEOF
13442
13443
13444
13445ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
13446
13447cat >confcache <<\_ACEOF
13448# This file is a shell script that caches the results of configure
13449# tests run on this system so they can be shared between configure
13450# scripts and configure runs, see configure's option --config-cache.
13451# It is not useful on other systems.  If it contains results you don't
13452# want to keep, you may remove or edit it.
13453#
13454# config.status only pays attention to the cache file if you give it
13455# the --recheck option to rerun configure.
13456#
13457# `ac_cv_env_foo' variables (set or unset) will be overridden when
13458# loading this file, other *unset* `ac_cv_foo' will be assigned the
13459# following values.
13460
13461_ACEOF
13462
13463# The following way of writing the cache mishandles newlines in values,
13464# but we know of no workaround that is simple, portable, and efficient.
13465# So, we kill variables containing newlines.
13466# Ultrix sh set writes to stderr and can't be redirected directly,
13467# and sets the high bit in the cache file unless we assign to the vars.
13468(
13469  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13470    eval ac_val=\$$ac_var
13471    case $ac_val in #(
13472    *${as_nl}*)
13473      case $ac_var in #(
13474      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13475$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13476      esac
13477      case $ac_var in #(
13478      _ | IFS | as_nl) ;; #(
13479      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13480      *) $as_unset $ac_var ;;
13481      esac ;;
13482    esac
13483  done
13484
13485  (set) 2>&1 |
13486    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13487    *${as_nl}ac_space=\ *)
13488      # `set' does not quote correctly, so add quotes (double-quote
13489      # substitution turns \\\\ into \\, and sed turns \\ into \).
13490      sed -n \
13491	"s/'/'\\\\''/g;
13492	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13493      ;; #(
13494    *)
13495      # `set' quotes correctly as required by POSIX, so do not add quotes.
13496      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13497      ;;
13498    esac |
13499    sort
13500) |
13501  sed '
13502     /^ac_cv_env_/b end
13503     t clear
13504     :clear
13505     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13506     t end
13507     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13508     :end' >>confcache
13509if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13510  if test -w "$cache_file"; then
13511    test "x$cache_file" != "x/dev/null" &&
13512      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13513$as_echo "$as_me: updating cache $cache_file" >&6;}
13514    cat confcache >$cache_file
13515  else
13516    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13517$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13518  fi
13519fi
13520rm -f confcache
13521
13522test "x$prefix" = xNONE && prefix=$ac_default_prefix
13523# Let make expand exec_prefix.
13524test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13525
13526DEFS=-DHAVE_CONFIG_H
13527
13528ac_libobjs=
13529ac_ltlibobjs=
13530for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13531  # 1. Remove the extension, and $U if already installed.
13532  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13533  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13534  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13535  #    will be set to the directory where LIBOBJS objects are built.
13536  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13537  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13538done
13539LIBOBJS=$ac_libobjs
13540
13541LTLIBOBJS=$ac_ltlibobjs
13542
13543
13544if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13545  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13546Usually this means the macro was only invoked conditionally." >&5
13547$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13548Usually this means the macro was only invoked conditionally." >&2;}
13549   { (exit 1); exit 1; }; }
13550fi
13551if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13552  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13553Usually this means the macro was only invoked conditionally." >&5
13554$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13555Usually this means the macro was only invoked conditionally." >&2;}
13556   { (exit 1); exit 1; }; }
13557fi
13558if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13559  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13560Usually this means the macro was only invoked conditionally." >&5
13561$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13562Usually this means the macro was only invoked conditionally." >&2;}
13563   { (exit 1); exit 1; }; }
13564fi
13565if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13566  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13567Usually this means the macro was only invoked conditionally." >&5
13568$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13569Usually this means the macro was only invoked conditionally." >&2;}
13570   { (exit 1); exit 1; }; }
13571fi
13572if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13573  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
13574Usually this means the macro was only invoked conditionally." >&5
13575$as_echo "$as_me: error: conditional \"DRI\" was never defined.
13576Usually this means the macro was only invoked conditionally." >&2;}
13577   { (exit 1); exit 1; }; }
13578fi
13579if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13580  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13581Usually this means the macro was only invoked conditionally." >&5
13582$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13583Usually this means the macro was only invoked conditionally." >&2;}
13584   { (exit 1); exit 1; }; }
13585fi
13586if test -z "${USE_XAA_TRUE}" && test -z "${USE_XAA_FALSE}"; then
13587  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XAA\" was never defined.
13588Usually this means the macro was only invoked conditionally." >&5
13589$as_echo "$as_me: error: conditional \"USE_XAA\" was never defined.
13590Usually this means the macro was only invoked conditionally." >&2;}
13591   { (exit 1); exit 1; }; }
13592fi
13593if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
13594  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
13595Usually this means the macro was only invoked conditionally." >&5
13596$as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
13597Usually this means the macro was only invoked conditionally." >&2;}
13598   { (exit 1); exit 1; }; }
13599fi
13600
13601: ${CONFIG_STATUS=./config.status}
13602ac_write_fail=0
13603ac_clean_files_save=$ac_clean_files
13604ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13605{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13606$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13607cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608#! $SHELL
13609# Generated by $as_me.
13610# Run this file to recreate the current configuration.
13611# Compiler output produced by configure, useful for debugging
13612# configure, is in config.log if it exists.
13613
13614debug=false
13615ac_cs_recheck=false
13616ac_cs_silent=false
13617SHELL=\${CONFIG_SHELL-$SHELL}
13618_ACEOF
13619
13620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13621## --------------------- ##
13622## M4sh Initialization.  ##
13623## --------------------- ##
13624
13625# Be more Bourne compatible
13626DUALCASE=1; export DUALCASE # for MKS sh
13627if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13628  emulate sh
13629  NULLCMD=:
13630  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13631  # is contrary to our usage.  Disable this feature.
13632  alias -g '${1+"$@"}'='"$@"'
13633  setopt NO_GLOB_SUBST
13634else
13635  case `(set -o) 2>/dev/null` in
13636  *posix*) set -o posix ;;
13637esac
13638
13639fi
13640
13641
13642
13643
13644# PATH needs CR
13645# Avoid depending upon Character Ranges.
13646as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13647as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13648as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13649as_cr_digits='0123456789'
13650as_cr_alnum=$as_cr_Letters$as_cr_digits
13651
13652as_nl='
13653'
13654export as_nl
13655# Printing a long string crashes Solaris 7 /usr/bin/printf.
13656as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13657as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13658as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13659if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13660  as_echo='printf %s\n'
13661  as_echo_n='printf %s'
13662else
13663  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13664    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13665    as_echo_n='/usr/ucb/echo -n'
13666  else
13667    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13668    as_echo_n_body='eval
13669      arg=$1;
13670      case $arg in
13671      *"$as_nl"*)
13672	expr "X$arg" : "X\\(.*\\)$as_nl";
13673	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13674      esac;
13675      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13676    '
13677    export as_echo_n_body
13678    as_echo_n='sh -c $as_echo_n_body as_echo'
13679  fi
13680  export as_echo_body
13681  as_echo='sh -c $as_echo_body as_echo'
13682fi
13683
13684# The user is always right.
13685if test "${PATH_SEPARATOR+set}" != set; then
13686  PATH_SEPARATOR=:
13687  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13688    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13689      PATH_SEPARATOR=';'
13690  }
13691fi
13692
13693# Support unset when possible.
13694if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13695  as_unset=unset
13696else
13697  as_unset=false
13698fi
13699
13700
13701# IFS
13702# We need space, tab and new line, in precisely that order.  Quoting is
13703# there to prevent editors from complaining about space-tab.
13704# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13705# splitting by setting IFS to empty value.)
13706IFS=" ""	$as_nl"
13707
13708# Find who we are.  Look in the path if we contain no directory separator.
13709case $0 in
13710  *[\\/]* ) as_myself=$0 ;;
13711  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712for as_dir in $PATH
13713do
13714  IFS=$as_save_IFS
13715  test -z "$as_dir" && as_dir=.
13716  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13717done
13718IFS=$as_save_IFS
13719
13720     ;;
13721esac
13722# We did not find ourselves, most probably we were run as `sh COMMAND'
13723# in which case we are not to be found in the path.
13724if test "x$as_myself" = x; then
13725  as_myself=$0
13726fi
13727if test ! -f "$as_myself"; then
13728  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13729  { (exit 1); exit 1; }
13730fi
13731
13732# Work around bugs in pre-3.0 UWIN ksh.
13733for as_var in ENV MAIL MAILPATH
13734do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13735done
13736PS1='$ '
13737PS2='> '
13738PS4='+ '
13739
13740# NLS nuisances.
13741LC_ALL=C
13742export LC_ALL
13743LANGUAGE=C
13744export LANGUAGE
13745
13746# Required to use basename.
13747if expr a : '\(a\)' >/dev/null 2>&1 &&
13748   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13749  as_expr=expr
13750else
13751  as_expr=false
13752fi
13753
13754if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13755  as_basename=basename
13756else
13757  as_basename=false
13758fi
13759
13760
13761# Name of the executable.
13762as_me=`$as_basename -- "$0" ||
13763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13764	 X"$0" : 'X\(//\)$' \| \
13765	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13766$as_echo X/"$0" |
13767    sed '/^.*\/\([^/][^/]*\)\/*$/{
13768	    s//\1/
13769	    q
13770	  }
13771	  /^X\/\(\/\/\)$/{
13772	    s//\1/
13773	    q
13774	  }
13775	  /^X\/\(\/\).*/{
13776	    s//\1/
13777	    q
13778	  }
13779	  s/.*/./; q'`
13780
13781# CDPATH.
13782$as_unset CDPATH
13783
13784
13785
13786  as_lineno_1=$LINENO
13787  as_lineno_2=$LINENO
13788  test "x$as_lineno_1" != "x$as_lineno_2" &&
13789  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13790
13791  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13792  # uniformly replaced by the line number.  The first 'sed' inserts a
13793  # line-number line after each line using $LINENO; the second 'sed'
13794  # does the real work.  The second script uses 'N' to pair each
13795  # line-number line with the line containing $LINENO, and appends
13796  # trailing '-' during substitution so that $LINENO is not a special
13797  # case at line end.
13798  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13799  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13800  # E. McMahon (1931-1989) for sed's syntax.  :-)
13801  sed -n '
13802    p
13803    /[$]LINENO/=
13804  ' <$as_myself |
13805    sed '
13806      s/[$]LINENO.*/&-/
13807      t lineno
13808      b
13809      :lineno
13810      N
13811      :loop
13812      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13813      t loop
13814      s/-\n.*//
13815    ' >$as_me.lineno &&
13816  chmod +x "$as_me.lineno" ||
13817    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13818   { (exit 1); exit 1; }; }
13819
13820  # Don't try to exec as it changes $[0], causing all sort of problems
13821  # (the dirname of $[0] is not the place where we might find the
13822  # original and so on.  Autoconf is especially sensitive to this).
13823  . "./$as_me.lineno"
13824  # Exit status is that of the last command.
13825  exit
13826}
13827
13828
13829if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13830  as_dirname=dirname
13831else
13832  as_dirname=false
13833fi
13834
13835ECHO_C= ECHO_N= ECHO_T=
13836case `echo -n x` in
13837-n*)
13838  case `echo 'x\c'` in
13839  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13840  *)   ECHO_C='\c';;
13841  esac;;
13842*)
13843  ECHO_N='-n';;
13844esac
13845if expr a : '\(a\)' >/dev/null 2>&1 &&
13846   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13847  as_expr=expr
13848else
13849  as_expr=false
13850fi
13851
13852rm -f conf$$ conf$$.exe conf$$.file
13853if test -d conf$$.dir; then
13854  rm -f conf$$.dir/conf$$.file
13855else
13856  rm -f conf$$.dir
13857  mkdir conf$$.dir 2>/dev/null
13858fi
13859if (echo >conf$$.file) 2>/dev/null; then
13860  if ln -s conf$$.file conf$$ 2>/dev/null; then
13861    as_ln_s='ln -s'
13862    # ... but there are two gotchas:
13863    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13864    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13865    # In both cases, we have to default to `cp -p'.
13866    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13867      as_ln_s='cp -p'
13868  elif ln conf$$.file conf$$ 2>/dev/null; then
13869    as_ln_s=ln
13870  else
13871    as_ln_s='cp -p'
13872  fi
13873else
13874  as_ln_s='cp -p'
13875fi
13876rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13877rmdir conf$$.dir 2>/dev/null
13878
13879if mkdir -p . 2>/dev/null; then
13880  as_mkdir_p=:
13881else
13882  test -d ./-p && rmdir ./-p
13883  as_mkdir_p=false
13884fi
13885
13886if test -x / >/dev/null 2>&1; then
13887  as_test_x='test -x'
13888else
13889  if ls -dL / >/dev/null 2>&1; then
13890    as_ls_L_option=L
13891  else
13892    as_ls_L_option=
13893  fi
13894  as_test_x='
13895    eval sh -c '\''
13896      if test -d "$1"; then
13897	test -d "$1/.";
13898      else
13899	case $1 in
13900	-*)set "./$1";;
13901	esac;
13902	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13903	???[sx]*):;;*)false;;esac;fi
13904    '\'' sh
13905  '
13906fi
13907as_executable_p=$as_test_x
13908
13909# Sed expression to map a string onto a valid CPP name.
13910as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13911
13912# Sed expression to map a string onto a valid variable name.
13913as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13914
13915
13916exec 6>&1
13917
13918# Save the log message, to keep $[0] and so on meaningful, and to
13919# report actual input values of CONFIG_FILES etc. instead of their
13920# values after options handling.
13921ac_log="
13922This file was extended by xf86-video-mga $as_me 1.4.10, which was
13923generated by GNU Autoconf 2.63.  Invocation command line was
13924
13925  CONFIG_FILES    = $CONFIG_FILES
13926  CONFIG_HEADERS  = $CONFIG_HEADERS
13927  CONFIG_LINKS    = $CONFIG_LINKS
13928  CONFIG_COMMANDS = $CONFIG_COMMANDS
13929  $ $0 $@
13930
13931on `(hostname || uname -n) 2>/dev/null | sed 1q`
13932"
13933
13934_ACEOF
13935
13936case $ac_config_files in *"
13937"*) set x $ac_config_files; shift; ac_config_files=$*;;
13938esac
13939
13940case $ac_config_headers in *"
13941"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13942esac
13943
13944
13945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946# Files that config.status was made for.
13947config_files="$ac_config_files"
13948config_headers="$ac_config_headers"
13949config_commands="$ac_config_commands"
13950
13951_ACEOF
13952
13953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13954ac_cs_usage="\
13955\`$as_me' instantiates files from templates according to the
13956current configuration.
13957
13958Usage: $0 [OPTION]... [FILE]...
13959
13960  -h, --help       print this help, then exit
13961  -V, --version    print version number and configuration settings, then exit
13962  -q, --quiet, --silent
13963                   do not print progress messages
13964  -d, --debug      don't remove temporary files
13965      --recheck    update $as_me by reconfiguring in the same conditions
13966      --file=FILE[:TEMPLATE]
13967                   instantiate the configuration file FILE
13968      --header=FILE[:TEMPLATE]
13969                   instantiate the configuration header FILE
13970
13971Configuration files:
13972$config_files
13973
13974Configuration headers:
13975$config_headers
13976
13977Configuration commands:
13978$config_commands
13979
13980Report bugs to <bug-autoconf@gnu.org>."
13981
13982_ACEOF
13983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13984ac_cs_version="\\
13985xf86-video-mga config.status 1.4.10
13986configured by $0, generated by GNU Autoconf 2.63,
13987  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13988
13989Copyright (C) 2008 Free Software Foundation, Inc.
13990This config.status script is free software; the Free Software Foundation
13991gives unlimited permission to copy, distribute and modify it."
13992
13993ac_pwd='$ac_pwd'
13994srcdir='$srcdir'
13995INSTALL='$INSTALL'
13996MKDIR_P='$MKDIR_P'
13997AWK='$AWK'
13998test -n "\$AWK" || AWK=awk
13999_ACEOF
14000
14001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14002# The default lists apply if the user does not specify any file.
14003ac_need_defaults=:
14004while test $# != 0
14005do
14006  case $1 in
14007  --*=*)
14008    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14009    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14010    ac_shift=:
14011    ;;
14012  *)
14013    ac_option=$1
14014    ac_optarg=$2
14015    ac_shift=shift
14016    ;;
14017  esac
14018
14019  case $ac_option in
14020  # Handling of the options.
14021  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14022    ac_cs_recheck=: ;;
14023  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14024    $as_echo "$ac_cs_version"; exit ;;
14025  --debug | --debu | --deb | --de | --d | -d )
14026    debug=: ;;
14027  --file | --fil | --fi | --f )
14028    $ac_shift
14029    case $ac_optarg in
14030    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14031    esac
14032    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14033    ac_need_defaults=false;;
14034  --header | --heade | --head | --hea )
14035    $ac_shift
14036    case $ac_optarg in
14037    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14038    esac
14039    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14040    ac_need_defaults=false;;
14041  --he | --h)
14042    # Conflict between --help and --header
14043    { $as_echo "$as_me: error: ambiguous option: $1
14044Try \`$0 --help' for more information." >&2
14045   { (exit 1); exit 1; }; };;
14046  --help | --hel | -h )
14047    $as_echo "$ac_cs_usage"; exit ;;
14048  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14049  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14050    ac_cs_silent=: ;;
14051
14052  # This is an error.
14053  -*) { $as_echo "$as_me: error: unrecognized option: $1
14054Try \`$0 --help' for more information." >&2
14055   { (exit 1); exit 1; }; } ;;
14056
14057  *) ac_config_targets="$ac_config_targets $1"
14058     ac_need_defaults=false ;;
14059
14060  esac
14061  shift
14062done
14063
14064ac_configure_extra_args=
14065
14066if $ac_cs_silent; then
14067  exec 6>/dev/null
14068  ac_configure_extra_args="$ac_configure_extra_args --silent"
14069fi
14070
14071_ACEOF
14072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14073if \$ac_cs_recheck; then
14074  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14075  shift
14076  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14077  CONFIG_SHELL='$SHELL'
14078  export CONFIG_SHELL
14079  exec "\$@"
14080fi
14081
14082_ACEOF
14083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14084exec 5>>config.log
14085{
14086  echo
14087  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14088## Running $as_me. ##
14089_ASBOX
14090  $as_echo "$ac_log"
14091} >&5
14092
14093_ACEOF
14094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14095#
14096# INIT-COMMANDS
14097#
14098AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14099
14100
14101# The HP-UX ksh and POSIX shell print the target directory to stdout
14102# if CDPATH is set.
14103(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14104
14105sed_quote_subst='$sed_quote_subst'
14106double_quote_subst='$double_quote_subst'
14107delay_variable_subst='$delay_variable_subst'
14108enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14109macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14110macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14111enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14112pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14113enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14114host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14115host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14116host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14117build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14118build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14119build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14120SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14121Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14122GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14123EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14124FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14125LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14126NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14127LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14128max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14129ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14130exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14131lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14132lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14133lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14134reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14135reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14136OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14137deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14138file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14139AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14140AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14141STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14142RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14143old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14144old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14145old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14146CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14147CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14148compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14149GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14150lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14151lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14152lt_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"`'
14153lt_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"`'
14154objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14155SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14156ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14157MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14158lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14159lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14160lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14161lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14162lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14163need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14164DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14165NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14166LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14167OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14168OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14169libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14170shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14171extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14172archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14173enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14174export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14175whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14176compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14177old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14178old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14179archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14180archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14181module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14182module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14183with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14184allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14185no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14186hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14187hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14188hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14189hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14190hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14191hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14192hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14193hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14194inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14195link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14196fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14197always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14198export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14199exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14200include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14201prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14202file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14203variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14204need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14205need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14206version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14207runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14208shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14209shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14210libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14211library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14212soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14213postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14214postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14215finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14216finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14217hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14218sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14219sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14220hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14221enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14222enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14223enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14224old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14225striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14226
14227LTCC='$LTCC'
14228LTCFLAGS='$LTCFLAGS'
14229compiler='$compiler_DEFAULT'
14230
14231# Quote evaled strings.
14232for var in SED \
14233GREP \
14234EGREP \
14235FGREP \
14236LD \
14237NM \
14238LN_S \
14239lt_SP2NL \
14240lt_NL2SP \
14241reload_flag \
14242OBJDUMP \
14243deplibs_check_method \
14244file_magic_cmd \
14245AR \
14246AR_FLAGS \
14247STRIP \
14248RANLIB \
14249CC \
14250CFLAGS \
14251compiler \
14252lt_cv_sys_global_symbol_pipe \
14253lt_cv_sys_global_symbol_to_cdecl \
14254lt_cv_sys_global_symbol_to_c_name_address \
14255lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14256SHELL \
14257ECHO \
14258lt_prog_compiler_no_builtin_flag \
14259lt_prog_compiler_wl \
14260lt_prog_compiler_pic \
14261lt_prog_compiler_static \
14262lt_cv_prog_compiler_c_o \
14263need_locks \
14264DSYMUTIL \
14265NMEDIT \
14266LIPO \
14267OTOOL \
14268OTOOL64 \
14269shrext_cmds \
14270export_dynamic_flag_spec \
14271whole_archive_flag_spec \
14272compiler_needs_object \
14273with_gnu_ld \
14274allow_undefined_flag \
14275no_undefined_flag \
14276hardcode_libdir_flag_spec \
14277hardcode_libdir_flag_spec_ld \
14278hardcode_libdir_separator \
14279fix_srcfile_path \
14280exclude_expsyms \
14281include_expsyms \
14282file_list_spec \
14283variables_saved_for_relink \
14284libname_spec \
14285library_names_spec \
14286soname_spec \
14287finish_eval \
14288old_striplib \
14289striplib; do
14290    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14291    *[\\\\\\\`\\"\\\$]*)
14292      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14293      ;;
14294    *)
14295      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14296      ;;
14297    esac
14298done
14299
14300# Double-quote double-evaled strings.
14301for var in reload_cmds \
14302old_postinstall_cmds \
14303old_postuninstall_cmds \
14304old_archive_cmds \
14305extract_expsyms_cmds \
14306old_archive_from_new_cmds \
14307old_archive_from_expsyms_cmds \
14308archive_cmds \
14309archive_expsym_cmds \
14310module_cmds \
14311module_expsym_cmds \
14312export_symbols_cmds \
14313prelink_cmds \
14314postinstall_cmds \
14315postuninstall_cmds \
14316finish_cmds \
14317sys_lib_search_path_spec \
14318sys_lib_dlsearch_path_spec; do
14319    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14320    *[\\\\\\\`\\"\\\$]*)
14321      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14322      ;;
14323    *)
14324      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14325      ;;
14326    esac
14327done
14328
14329# Fix-up fallback echo if it was mangled by the above quoting rules.
14330case \$lt_ECHO in
14331*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14332  ;;
14333esac
14334
14335ac_aux_dir='$ac_aux_dir'
14336xsi_shell='$xsi_shell'
14337lt_shell_append='$lt_shell_append'
14338
14339# See if we are running on zsh, and set the options which allow our
14340# commands through without removal of \ escapes INIT.
14341if test -n "\${ZSH_VERSION+set}" ; then
14342   setopt NO_GLOB_SUBST
14343fi
14344
14345
14346    PACKAGE='$PACKAGE'
14347    VERSION='$VERSION'
14348    TIMESTAMP='$TIMESTAMP'
14349    RM='$RM'
14350    ofile='$ofile'
14351
14352
14353
14354
14355_ACEOF
14356
14357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358
14359# Handling of arguments.
14360for ac_config_target in $ac_config_targets
14361do
14362  case $ac_config_target in
14363    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14364    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14365    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14366    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14367    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14368    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14369    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14370
14371  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14372$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14373   { (exit 1); exit 1; }; };;
14374  esac
14375done
14376
14377
14378# If the user did not use the arguments to specify the items to instantiate,
14379# then the envvar interface is used.  Set only those that are not.
14380# We use the long form for the default assignment because of an extremely
14381# bizarre bug on SunOS 4.1.3.
14382if $ac_need_defaults; then
14383  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14384  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14385  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14386fi
14387
14388# Have a temporary directory for convenience.  Make it in the build tree
14389# simply because there is no reason against having it here, and in addition,
14390# creating and moving files from /tmp can sometimes cause problems.
14391# Hook for its removal unless debugging.
14392# Note that there is a small window in which the directory will not be cleaned:
14393# after its creation but before its name has been assigned to `$tmp'.
14394$debug ||
14395{
14396  tmp=
14397  trap 'exit_status=$?
14398  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14399' 0
14400  trap '{ (exit 1); exit 1; }' 1 2 13 15
14401}
14402# Create a (secure) tmp directory for tmp files.
14403
14404{
14405  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14406  test -n "$tmp" && test -d "$tmp"
14407}  ||
14408{
14409  tmp=./conf$$-$RANDOM
14410  (umask 077 && mkdir "$tmp")
14411} ||
14412{
14413   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14414   { (exit 1); exit 1; }
14415}
14416
14417# Set up the scripts for CONFIG_FILES section.
14418# No need to generate them if there are no CONFIG_FILES.
14419# This happens for instance with `./config.status config.h'.
14420if test -n "$CONFIG_FILES"; then
14421
14422
14423ac_cr='
14424'
14425ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14426if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14427  ac_cs_awk_cr='\\r'
14428else
14429  ac_cs_awk_cr=$ac_cr
14430fi
14431
14432echo 'BEGIN {' >"$tmp/subs1.awk" &&
14433_ACEOF
14434
14435
14436{
14437  echo "cat >conf$$subs.awk <<_ACEOF" &&
14438  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14439  echo "_ACEOF"
14440} >conf$$subs.sh ||
14441  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14442$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14443   { (exit 1); exit 1; }; }
14444ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14445ac_delim='%!_!# '
14446for ac_last_try in false false false false false :; do
14447  . ./conf$$subs.sh ||
14448    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14449$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14450   { (exit 1); exit 1; }; }
14451
14452  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14453  if test $ac_delim_n = $ac_delim_num; then
14454    break
14455  elif $ac_last_try; then
14456    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14457$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14458   { (exit 1); exit 1; }; }
14459  else
14460    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14461  fi
14462done
14463rm -f conf$$subs.sh
14464
14465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14466cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14467_ACEOF
14468sed -n '
14469h
14470s/^/S["/; s/!.*/"]=/
14471p
14472g
14473s/^[^!]*!//
14474:repl
14475t repl
14476s/'"$ac_delim"'$//
14477t delim
14478:nl
14479h
14480s/\(.\{148\}\).*/\1/
14481t more1
14482s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14483p
14484n
14485b repl
14486:more1
14487s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14488p
14489g
14490s/.\{148\}//
14491t nl
14492:delim
14493h
14494s/\(.\{148\}\).*/\1/
14495t more2
14496s/["\\]/\\&/g; s/^/"/; s/$/"/
14497p
14498b
14499:more2
14500s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14501p
14502g
14503s/.\{148\}//
14504t delim
14505' <conf$$subs.awk | sed '
14506/^[^""]/{
14507  N
14508  s/\n//
14509}
14510' >>$CONFIG_STATUS || ac_write_fail=1
14511rm -f conf$$subs.awk
14512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14513_ACAWK
14514cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14515  for (key in S) S_is_set[key] = 1
14516  FS = ""
14517
14518}
14519{
14520  line = $ 0
14521  nfields = split(line, field, "@")
14522  substed = 0
14523  len = length(field[1])
14524  for (i = 2; i < nfields; i++) {
14525    key = field[i]
14526    keylen = length(key)
14527    if (S_is_set[key]) {
14528      value = S[key]
14529      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14530      len += length(value) + length(field[++i])
14531      substed = 1
14532    } else
14533      len += 1 + keylen
14534  }
14535
14536  print line
14537}
14538
14539_ACAWK
14540_ACEOF
14541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14542if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14543  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14544else
14545  cat
14546fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14547  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14548$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14549   { (exit 1); exit 1; }; }
14550_ACEOF
14551
14552# VPATH may cause trouble with some makes, so we remove $(srcdir),
14553# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14554# trailing colons and then remove the whole line if VPATH becomes empty
14555# (actually we leave an empty line to preserve line numbers).
14556if test "x$srcdir" = x.; then
14557  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14558s/:*\$(srcdir):*/:/
14559s/:*\${srcdir}:*/:/
14560s/:*@srcdir@:*/:/
14561s/^\([^=]*=[	 ]*\):*/\1/
14562s/:*$//
14563s/^[^=]*=[	 ]*$//
14564}'
14565fi
14566
14567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568fi # test -n "$CONFIG_FILES"
14569
14570# Set up the scripts for CONFIG_HEADERS section.
14571# No need to generate them if there are no CONFIG_HEADERS.
14572# This happens for instance with `./config.status Makefile'.
14573if test -n "$CONFIG_HEADERS"; then
14574cat >"$tmp/defines.awk" <<\_ACAWK ||
14575BEGIN {
14576_ACEOF
14577
14578# Transform confdefs.h into an awk script `defines.awk', embedded as
14579# here-document in config.status, that substitutes the proper values into
14580# config.h.in to produce config.h.
14581
14582# Create a delimiter string that does not exist in confdefs.h, to ease
14583# handling of long lines.
14584ac_delim='%!_!# '
14585for ac_last_try in false false :; do
14586  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14587  if test -z "$ac_t"; then
14588    break
14589  elif $ac_last_try; then
14590    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14591$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14592   { (exit 1); exit 1; }; }
14593  else
14594    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14595  fi
14596done
14597
14598# For the awk script, D is an array of macro values keyed by name,
14599# likewise P contains macro parameters if any.  Preserve backslash
14600# newline sequences.
14601
14602ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14603sed -n '
14604s/.\{148\}/&'"$ac_delim"'/g
14605t rset
14606:rset
14607s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14608t def
14609d
14610:def
14611s/\\$//
14612t bsnl
14613s/["\\]/\\&/g
14614s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14615D["\1"]=" \3"/p
14616s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14617d
14618:bsnl
14619s/["\\]/\\&/g
14620s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14621D["\1"]=" \3\\\\\\n"\\/p
14622t cont
14623s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14624t cont
14625d
14626:cont
14627n
14628s/.\{148\}/&'"$ac_delim"'/g
14629t clear
14630:clear
14631s/\\$//
14632t bsnlc
14633s/["\\]/\\&/g; s/^/"/; s/$/"/p
14634d
14635:bsnlc
14636s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14637b cont
14638' <confdefs.h | sed '
14639s/'"$ac_delim"'/"\\\
14640"/g' >>$CONFIG_STATUS || ac_write_fail=1
14641
14642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14643  for (key in D) D_is_set[key] = 1
14644  FS = ""
14645}
14646/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14647  line = \$ 0
14648  split(line, arg, " ")
14649  if (arg[1] == "#") {
14650    defundef = arg[2]
14651    mac1 = arg[3]
14652  } else {
14653    defundef = substr(arg[1], 2)
14654    mac1 = arg[2]
14655  }
14656  split(mac1, mac2, "(") #)
14657  macro = mac2[1]
14658  prefix = substr(line, 1, index(line, defundef) - 1)
14659  if (D_is_set[macro]) {
14660    # Preserve the white space surrounding the "#".
14661    print prefix "define", macro P[macro] D[macro]
14662    next
14663  } else {
14664    # Replace #undef with comments.  This is necessary, for example,
14665    # in the case of _POSIX_SOURCE, which is predefined and required
14666    # on some systems where configure will not decide to define it.
14667    if (defundef == "undef") {
14668      print "/*", prefix defundef, macro, "*/"
14669      next
14670    }
14671  }
14672}
14673{ print }
14674_ACAWK
14675_ACEOF
14676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14678$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14679   { (exit 1); exit 1; }; }
14680fi # test -n "$CONFIG_HEADERS"
14681
14682
14683eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14684shift
14685for ac_tag
14686do
14687  case $ac_tag in
14688  :[FHLC]) ac_mode=$ac_tag; continue;;
14689  esac
14690  case $ac_mode$ac_tag in
14691  :[FHL]*:*);;
14692  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14693$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14694   { (exit 1); exit 1; }; };;
14695  :[FH]-) ac_tag=-:-;;
14696  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14697  esac
14698  ac_save_IFS=$IFS
14699  IFS=:
14700  set x $ac_tag
14701  IFS=$ac_save_IFS
14702  shift
14703  ac_file=$1
14704  shift
14705
14706  case $ac_mode in
14707  :L) ac_source=$1;;
14708  :[FH])
14709    ac_file_inputs=
14710    for ac_f
14711    do
14712      case $ac_f in
14713      -) ac_f="$tmp/stdin";;
14714      *) # Look for the file first in the build tree, then in the source tree
14715	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14716	 # because $ac_f cannot contain `:'.
14717	 test -f "$ac_f" ||
14718	   case $ac_f in
14719	   [\\/$]*) false;;
14720	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14721	   esac ||
14722	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14723$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14724   { (exit 1); exit 1; }; };;
14725      esac
14726      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14727      ac_file_inputs="$ac_file_inputs '$ac_f'"
14728    done
14729
14730    # Let's still pretend it is `configure' which instantiates (i.e., don't
14731    # use $as_me), people would be surprised to read:
14732    #    /* config.h.  Generated by config.status.  */
14733    configure_input='Generated from '`
14734	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14735	`' by configure.'
14736    if test x"$ac_file" != x-; then
14737      configure_input="$ac_file.  $configure_input"
14738      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14739$as_echo "$as_me: creating $ac_file" >&6;}
14740    fi
14741    # Neutralize special characters interpreted by sed in replacement strings.
14742    case $configure_input in #(
14743    *\&* | *\|* | *\\* )
14744       ac_sed_conf_input=`$as_echo "$configure_input" |
14745       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14746    *) ac_sed_conf_input=$configure_input;;
14747    esac
14748
14749    case $ac_tag in
14750    *:-:* | *:-) cat >"$tmp/stdin" \
14751      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14752$as_echo "$as_me: error: could not create $ac_file" >&2;}
14753   { (exit 1); exit 1; }; } ;;
14754    esac
14755    ;;
14756  esac
14757
14758  ac_dir=`$as_dirname -- "$ac_file" ||
14759$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14760	 X"$ac_file" : 'X\(//\)[^/]' \| \
14761	 X"$ac_file" : 'X\(//\)$' \| \
14762	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14763$as_echo X"$ac_file" |
14764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14765	    s//\1/
14766	    q
14767	  }
14768	  /^X\(\/\/\)[^/].*/{
14769	    s//\1/
14770	    q
14771	  }
14772	  /^X\(\/\/\)$/{
14773	    s//\1/
14774	    q
14775	  }
14776	  /^X\(\/\).*/{
14777	    s//\1/
14778	    q
14779	  }
14780	  s/.*/./; q'`
14781  { as_dir="$ac_dir"
14782  case $as_dir in #(
14783  -*) as_dir=./$as_dir;;
14784  esac
14785  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14786    as_dirs=
14787    while :; do
14788      case $as_dir in #(
14789      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14790      *) as_qdir=$as_dir;;
14791      esac
14792      as_dirs="'$as_qdir' $as_dirs"
14793      as_dir=`$as_dirname -- "$as_dir" ||
14794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14795	 X"$as_dir" : 'X\(//\)[^/]' \| \
14796	 X"$as_dir" : 'X\(//\)$' \| \
14797	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14798$as_echo X"$as_dir" |
14799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14800	    s//\1/
14801	    q
14802	  }
14803	  /^X\(\/\/\)[^/].*/{
14804	    s//\1/
14805	    q
14806	  }
14807	  /^X\(\/\/\)$/{
14808	    s//\1/
14809	    q
14810	  }
14811	  /^X\(\/\).*/{
14812	    s//\1/
14813	    q
14814	  }
14815	  s/.*/./; q'`
14816      test -d "$as_dir" && break
14817    done
14818    test -z "$as_dirs" || eval "mkdir $as_dirs"
14819  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14820$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14821   { (exit 1); exit 1; }; }; }
14822  ac_builddir=.
14823
14824case "$ac_dir" in
14825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14826*)
14827  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14828  # A ".." for each directory in $ac_dir_suffix.
14829  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14830  case $ac_top_builddir_sub in
14831  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14832  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14833  esac ;;
14834esac
14835ac_abs_top_builddir=$ac_pwd
14836ac_abs_builddir=$ac_pwd$ac_dir_suffix
14837# for backward compatibility:
14838ac_top_builddir=$ac_top_build_prefix
14839
14840case $srcdir in
14841  .)  # We are building in place.
14842    ac_srcdir=.
14843    ac_top_srcdir=$ac_top_builddir_sub
14844    ac_abs_top_srcdir=$ac_pwd ;;
14845  [\\/]* | ?:[\\/]* )  # Absolute name.
14846    ac_srcdir=$srcdir$ac_dir_suffix;
14847    ac_top_srcdir=$srcdir
14848    ac_abs_top_srcdir=$srcdir ;;
14849  *) # Relative name.
14850    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14851    ac_top_srcdir=$ac_top_build_prefix$srcdir
14852    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14853esac
14854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14855
14856
14857  case $ac_mode in
14858  :F)
14859  #
14860  # CONFIG_FILE
14861  #
14862
14863  case $INSTALL in
14864  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14865  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14866  esac
14867  ac_MKDIR_P=$MKDIR_P
14868  case $MKDIR_P in
14869  [\\/$]* | ?:[\\/]* ) ;;
14870  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14871  esac
14872_ACEOF
14873
14874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14875# If the template does not know about datarootdir, expand it.
14876# FIXME: This hack should be removed a few years after 2.60.
14877ac_datarootdir_hack=; ac_datarootdir_seen=
14878
14879ac_sed_dataroot='
14880/datarootdir/ {
14881  p
14882  q
14883}
14884/@datadir@/p
14885/@docdir@/p
14886/@infodir@/p
14887/@localedir@/p
14888/@mandir@/p
14889'
14890case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14891*datarootdir*) ac_datarootdir_seen=yes;;
14892*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14893  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14894$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14895_ACEOF
14896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14897  ac_datarootdir_hack='
14898  s&@datadir@&$datadir&g
14899  s&@docdir@&$docdir&g
14900  s&@infodir@&$infodir&g
14901  s&@localedir@&$localedir&g
14902  s&@mandir@&$mandir&g
14903    s&\\\${datarootdir}&$datarootdir&g' ;;
14904esac
14905_ACEOF
14906
14907# Neutralize VPATH when `$srcdir' = `.'.
14908# Shell code in configure.ac might set extrasub.
14909# FIXME: do we really want to maintain this feature?
14910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14911ac_sed_extra="$ac_vpsub
14912$extrasub
14913_ACEOF
14914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14915:t
14916/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14917s|@configure_input@|$ac_sed_conf_input|;t t
14918s&@top_builddir@&$ac_top_builddir_sub&;t t
14919s&@top_build_prefix@&$ac_top_build_prefix&;t t
14920s&@srcdir@&$ac_srcdir&;t t
14921s&@abs_srcdir@&$ac_abs_srcdir&;t t
14922s&@top_srcdir@&$ac_top_srcdir&;t t
14923s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14924s&@builddir@&$ac_builddir&;t t
14925s&@abs_builddir@&$ac_abs_builddir&;t t
14926s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14927s&@INSTALL@&$ac_INSTALL&;t t
14928s&@MKDIR_P@&$ac_MKDIR_P&;t t
14929$ac_datarootdir_hack
14930"
14931eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14932  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14933$as_echo "$as_me: error: could not create $ac_file" >&2;}
14934   { (exit 1); exit 1; }; }
14935
14936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14937  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14938  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14939  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14940which seems to be undefined.  Please make sure it is defined." >&5
14941$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14942which seems to be undefined.  Please make sure it is defined." >&2;}
14943
14944  rm -f "$tmp/stdin"
14945  case $ac_file in
14946  -) cat "$tmp/out" && rm -f "$tmp/out";;
14947  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14948  esac \
14949  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14950$as_echo "$as_me: error: could not create $ac_file" >&2;}
14951   { (exit 1); exit 1; }; }
14952 ;;
14953  :H)
14954  #
14955  # CONFIG_HEADER
14956  #
14957  if test x"$ac_file" != x-; then
14958    {
14959      $as_echo "/* $configure_input  */" \
14960      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14961    } >"$tmp/config.h" \
14962      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14963$as_echo "$as_me: error: could not create $ac_file" >&2;}
14964   { (exit 1); exit 1; }; }
14965    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14966      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14967$as_echo "$as_me: $ac_file is unchanged" >&6;}
14968    else
14969      rm -f "$ac_file"
14970      mv "$tmp/config.h" "$ac_file" \
14971	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14972$as_echo "$as_me: error: could not create $ac_file" >&2;}
14973   { (exit 1); exit 1; }; }
14974    fi
14975  else
14976    $as_echo "/* $configure_input  */" \
14977      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14978      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14979$as_echo "$as_me: error: could not create -" >&2;}
14980   { (exit 1); exit 1; }; }
14981  fi
14982# Compute "$ac_file"'s index in $config_headers.
14983_am_arg="$ac_file"
14984_am_stamp_count=1
14985for _am_header in $config_headers :; do
14986  case $_am_header in
14987    $_am_arg | $_am_arg:* )
14988      break ;;
14989    * )
14990      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14991  esac
14992done
14993echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14994$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14995	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14996	 X"$_am_arg" : 'X\(//\)$' \| \
14997	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14998$as_echo X"$_am_arg" |
14999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15000	    s//\1/
15001	    q
15002	  }
15003	  /^X\(\/\/\)[^/].*/{
15004	    s//\1/
15005	    q
15006	  }
15007	  /^X\(\/\/\)$/{
15008	    s//\1/
15009	    q
15010	  }
15011	  /^X\(\/\).*/{
15012	    s//\1/
15013	    q
15014	  }
15015	  s/.*/./; q'`/stamp-h$_am_stamp_count
15016 ;;
15017
15018  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15019$as_echo "$as_me: executing $ac_file commands" >&6;}
15020 ;;
15021  esac
15022
15023
15024  case $ac_file$ac_mode in
15025    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
15026# are listed without --file.  Let's play safe and only enable the eval
15027# if we detect the quoting.
15028case $CONFIG_FILES in
15029*\'*) eval set x "$CONFIG_FILES" ;;
15030*)   set x $CONFIG_FILES ;;
15031esac
15032shift
15033for mf
15034do
15035  # Strip MF so we end up with the name of the file.
15036  mf=`echo "$mf" | sed -e 's/:.*$//'`
15037  # Check whether this is an Automake generated Makefile or not.
15038  # We used to match only the files named `Makefile.in', but
15039  # some people rename them; so instead we look at the file content.
15040  # Grep'ing the first line is not enough: some people post-process
15041  # each Makefile.in and add a new line on top of each file to say so.
15042  # Grep'ing the whole file is not good either: AIX grep has a line
15043  # limit of 2048, but all sed's we know have understand at least 4000.
15044  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15045    dirpart=`$as_dirname -- "$mf" ||
15046$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15047	 X"$mf" : 'X\(//\)[^/]' \| \
15048	 X"$mf" : 'X\(//\)$' \| \
15049	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15050$as_echo X"$mf" |
15051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15052	    s//\1/
15053	    q
15054	  }
15055	  /^X\(\/\/\)[^/].*/{
15056	    s//\1/
15057	    q
15058	  }
15059	  /^X\(\/\/\)$/{
15060	    s//\1/
15061	    q
15062	  }
15063	  /^X\(\/\).*/{
15064	    s//\1/
15065	    q
15066	  }
15067	  s/.*/./; q'`
15068  else
15069    continue
15070  fi
15071  # Extract the definition of DEPDIR, am__include, and am__quote
15072  # from the Makefile without running `make'.
15073  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15074  test -z "$DEPDIR" && continue
15075  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15076  test -z "am__include" && continue
15077  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15078  # When using ansi2knr, U may be empty or an underscore; expand it
15079  U=`sed -n 's/^U = //p' < "$mf"`
15080  # Find all dependency output files, they are included files with
15081  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15082  # simplest approach to changing $(DEPDIR) to its actual value in the
15083  # expansion.
15084  for file in `sed -n "
15085    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15086       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15087    # Make sure the directory exists.
15088    test -f "$dirpart/$file" && continue
15089    fdir=`$as_dirname -- "$file" ||
15090$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15091	 X"$file" : 'X\(//\)[^/]' \| \
15092	 X"$file" : 'X\(//\)$' \| \
15093	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15094$as_echo X"$file" |
15095    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15096	    s//\1/
15097	    q
15098	  }
15099	  /^X\(\/\/\)[^/].*/{
15100	    s//\1/
15101	    q
15102	  }
15103	  /^X\(\/\/\)$/{
15104	    s//\1/
15105	    q
15106	  }
15107	  /^X\(\/\).*/{
15108	    s//\1/
15109	    q
15110	  }
15111	  s/.*/./; q'`
15112    { as_dir=$dirpart/$fdir
15113  case $as_dir in #(
15114  -*) as_dir=./$as_dir;;
15115  esac
15116  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15117    as_dirs=
15118    while :; do
15119      case $as_dir in #(
15120      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15121      *) as_qdir=$as_dir;;
15122      esac
15123      as_dirs="'$as_qdir' $as_dirs"
15124      as_dir=`$as_dirname -- "$as_dir" ||
15125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126	 X"$as_dir" : 'X\(//\)[^/]' \| \
15127	 X"$as_dir" : 'X\(//\)$' \| \
15128	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15129$as_echo X"$as_dir" |
15130    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15131	    s//\1/
15132	    q
15133	  }
15134	  /^X\(\/\/\)[^/].*/{
15135	    s//\1/
15136	    q
15137	  }
15138	  /^X\(\/\/\)$/{
15139	    s//\1/
15140	    q
15141	  }
15142	  /^X\(\/\).*/{
15143	    s//\1/
15144	    q
15145	  }
15146	  s/.*/./; q'`
15147      test -d "$as_dir" && break
15148    done
15149    test -z "$as_dirs" || eval "mkdir $as_dirs"
15150  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15151$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15152   { (exit 1); exit 1; }; }; }
15153    # echo "creating $dirpart/$file"
15154    echo '# dummy' > "$dirpart/$file"
15155  done
15156done
15157 ;;
15158    "libtool":C)
15159
15160    # See if we are running on zsh, and set the options which allow our
15161    # commands through without removal of \ escapes.
15162    if test -n "${ZSH_VERSION+set}" ; then
15163      setopt NO_GLOB_SUBST
15164    fi
15165
15166    cfgfile="${ofile}T"
15167    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15168    $RM "$cfgfile"
15169
15170    cat <<_LT_EOF >> "$cfgfile"
15171#! $SHELL
15172
15173# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15174# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15175# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15176# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15177#
15178#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15179#                 2006, 2007, 2008 Free Software Foundation, Inc.
15180#   Written by Gordon Matzigkeit, 1996
15181#
15182#   This file is part of GNU Libtool.
15183#
15184# GNU Libtool is free software; you can redistribute it and/or
15185# modify it under the terms of the GNU General Public License as
15186# published by the Free Software Foundation; either version 2 of
15187# the License, or (at your option) any later version.
15188#
15189# As a special exception to the GNU General Public License,
15190# if you distribute this file as part of a program or library that
15191# is built using GNU Libtool, you may include this file under the
15192# same distribution terms that you use for the rest of that program.
15193#
15194# GNU Libtool is distributed in the hope that it will be useful,
15195# but WITHOUT ANY WARRANTY; without even the implied warranty of
15196# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15197# GNU General Public License for more details.
15198#
15199# You should have received a copy of the GNU General Public License
15200# along with GNU Libtool; see the file COPYING.  If not, a copy
15201# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15202# obtained by writing to the Free Software Foundation, Inc.,
15203# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15204
15205
15206# The names of the tagged configurations supported by this script.
15207available_tags=""
15208
15209# ### BEGIN LIBTOOL CONFIG
15210
15211# Whether or not to build static libraries.
15212build_old_libs=$enable_static
15213
15214# Which release of libtool.m4 was used?
15215macro_version=$macro_version
15216macro_revision=$macro_revision
15217
15218# Whether or not to build shared libraries.
15219build_libtool_libs=$enable_shared
15220
15221# What type of objects to build.
15222pic_mode=$pic_mode
15223
15224# Whether or not to optimize for fast installation.
15225fast_install=$enable_fast_install
15226
15227# The host system.
15228host_alias=$host_alias
15229host=$host
15230host_os=$host_os
15231
15232# The build system.
15233build_alias=$build_alias
15234build=$build
15235build_os=$build_os
15236
15237# A sed program that does not truncate output.
15238SED=$lt_SED
15239
15240# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15241Xsed="\$SED -e 1s/^X//"
15242
15243# A grep program that handles long lines.
15244GREP=$lt_GREP
15245
15246# An ERE matcher.
15247EGREP=$lt_EGREP
15248
15249# A literal string matcher.
15250FGREP=$lt_FGREP
15251
15252# A BSD- or MS-compatible name lister.
15253NM=$lt_NM
15254
15255# Whether we need soft or hard links.
15256LN_S=$lt_LN_S
15257
15258# What is the maximum length of a command?
15259max_cmd_len=$max_cmd_len
15260
15261# Object file suffix (normally "o").
15262objext=$ac_objext
15263
15264# Executable file suffix (normally "").
15265exeext=$exeext
15266
15267# whether the shell understands "unset".
15268lt_unset=$lt_unset
15269
15270# turn spaces into newlines.
15271SP2NL=$lt_lt_SP2NL
15272
15273# turn newlines into spaces.
15274NL2SP=$lt_lt_NL2SP
15275
15276# How to create reloadable object files.
15277reload_flag=$lt_reload_flag
15278reload_cmds=$lt_reload_cmds
15279
15280# An object symbol dumper.
15281OBJDUMP=$lt_OBJDUMP
15282
15283# Method to check whether dependent libraries are shared objects.
15284deplibs_check_method=$lt_deplibs_check_method
15285
15286# Command to use when deplibs_check_method == "file_magic".
15287file_magic_cmd=$lt_file_magic_cmd
15288
15289# The archiver.
15290AR=$lt_AR
15291AR_FLAGS=$lt_AR_FLAGS
15292
15293# A symbol stripping program.
15294STRIP=$lt_STRIP
15295
15296# Commands used to install an old-style archive.
15297RANLIB=$lt_RANLIB
15298old_postinstall_cmds=$lt_old_postinstall_cmds
15299old_postuninstall_cmds=$lt_old_postuninstall_cmds
15300
15301# A C compiler.
15302LTCC=$lt_CC
15303
15304# LTCC compiler flags.
15305LTCFLAGS=$lt_CFLAGS
15306
15307# Take the output of nm and produce a listing of raw symbols and C names.
15308global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15309
15310# Transform the output of nm in a proper C declaration.
15311global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15312
15313# Transform the output of nm in a C name address pair.
15314global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15315
15316# Transform the output of nm in a C name address pair when lib prefix is needed.
15317global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15318
15319# The name of the directory that contains temporary libtool files.
15320objdir=$objdir
15321
15322# Shell to use when invoking shell scripts.
15323SHELL=$lt_SHELL
15324
15325# An echo program that does not interpret backslashes.
15326ECHO=$lt_ECHO
15327
15328# Used to examine libraries when file_magic_cmd begins with "file".
15329MAGIC_CMD=$MAGIC_CMD
15330
15331# Must we lock files when doing compilation?
15332need_locks=$lt_need_locks
15333
15334# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15335DSYMUTIL=$lt_DSYMUTIL
15336
15337# Tool to change global to local symbols on Mac OS X.
15338NMEDIT=$lt_NMEDIT
15339
15340# Tool to manipulate fat objects and archives on Mac OS X.
15341LIPO=$lt_LIPO
15342
15343# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15344OTOOL=$lt_OTOOL
15345
15346# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15347OTOOL64=$lt_OTOOL64
15348
15349# Old archive suffix (normally "a").
15350libext=$libext
15351
15352# Shared library suffix (normally ".so").
15353shrext_cmds=$lt_shrext_cmds
15354
15355# The commands to extract the exported symbol list from a shared archive.
15356extract_expsyms_cmds=$lt_extract_expsyms_cmds
15357
15358# Variables whose values should be saved in libtool wrapper scripts and
15359# restored at link time.
15360variables_saved_for_relink=$lt_variables_saved_for_relink
15361
15362# Do we need the "lib" prefix for modules?
15363need_lib_prefix=$need_lib_prefix
15364
15365# Do we need a version for libraries?
15366need_version=$need_version
15367
15368# Library versioning type.
15369version_type=$version_type
15370
15371# Shared library runtime path variable.
15372runpath_var=$runpath_var
15373
15374# Shared library path variable.
15375shlibpath_var=$shlibpath_var
15376
15377# Is shlibpath searched before the hard-coded library search path?
15378shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15379
15380# Format of library name prefix.
15381libname_spec=$lt_libname_spec
15382
15383# List of archive names.  First name is the real one, the rest are links.
15384# The last name is the one that the linker finds with -lNAME
15385library_names_spec=$lt_library_names_spec
15386
15387# The coded name of the library, if different from the real name.
15388soname_spec=$lt_soname_spec
15389
15390# Command to use after installation of a shared archive.
15391postinstall_cmds=$lt_postinstall_cmds
15392
15393# Command to use after uninstallation of a shared archive.
15394postuninstall_cmds=$lt_postuninstall_cmds
15395
15396# Commands used to finish a libtool library installation in a directory.
15397finish_cmds=$lt_finish_cmds
15398
15399# As "finish_cmds", except a single script fragment to be evaled but
15400# not shown.
15401finish_eval=$lt_finish_eval
15402
15403# Whether we should hardcode library paths into libraries.
15404hardcode_into_libs=$hardcode_into_libs
15405
15406# Compile-time system search path for libraries.
15407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15408
15409# Run-time system search path for libraries.
15410sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15411
15412# Whether dlopen is supported.
15413dlopen_support=$enable_dlopen
15414
15415# Whether dlopen of programs is supported.
15416dlopen_self=$enable_dlopen_self
15417
15418# Whether dlopen of statically linked programs is supported.
15419dlopen_self_static=$enable_dlopen_self_static
15420
15421# Commands to strip libraries.
15422old_striplib=$lt_old_striplib
15423striplib=$lt_striplib
15424
15425
15426# The linker used to build libraries.
15427LD=$lt_LD
15428
15429# Commands used to build an old-style archive.
15430old_archive_cmds=$lt_old_archive_cmds
15431
15432# A language specific compiler.
15433CC=$lt_compiler
15434
15435# Is the compiler the GNU compiler?
15436with_gcc=$GCC
15437
15438# Compiler flag to turn off builtin functions.
15439no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15440
15441# How to pass a linker flag through the compiler.
15442wl=$lt_lt_prog_compiler_wl
15443
15444# Additional compiler flags for building library objects.
15445pic_flag=$lt_lt_prog_compiler_pic
15446
15447# Compiler flag to prevent dynamic linking.
15448link_static_flag=$lt_lt_prog_compiler_static
15449
15450# Does compiler simultaneously support -c and -o options?
15451compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15452
15453# Whether or not to add -lc for building shared libraries.
15454build_libtool_need_lc=$archive_cmds_need_lc
15455
15456# Whether or not to disallow shared libs when runtime libs are static.
15457allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15458
15459# Compiler flag to allow reflexive dlopens.
15460export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15461
15462# Compiler flag to generate shared objects directly from archives.
15463whole_archive_flag_spec=$lt_whole_archive_flag_spec
15464
15465# Whether the compiler copes with passing no objects directly.
15466compiler_needs_object=$lt_compiler_needs_object
15467
15468# Create an old-style archive from a shared archive.
15469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15470
15471# Create a temporary old-style archive to link instead of a shared archive.
15472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15473
15474# Commands used to build a shared archive.
15475archive_cmds=$lt_archive_cmds
15476archive_expsym_cmds=$lt_archive_expsym_cmds
15477
15478# Commands used to build a loadable module if different from building
15479# a shared archive.
15480module_cmds=$lt_module_cmds
15481module_expsym_cmds=$lt_module_expsym_cmds
15482
15483# Whether we are building with GNU ld or not.
15484with_gnu_ld=$lt_with_gnu_ld
15485
15486# Flag that allows shared libraries with undefined symbols to be built.
15487allow_undefined_flag=$lt_allow_undefined_flag
15488
15489# Flag that enforces no undefined symbols.
15490no_undefined_flag=$lt_no_undefined_flag
15491
15492# Flag to hardcode \$libdir into a binary during linking.
15493# This must work even if \$libdir does not exist
15494hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15495
15496# If ld is used when linking, flag to hardcode \$libdir into a binary
15497# during linking.  This must work even if \$libdir does not exist.
15498hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15499
15500# Whether we need a single "-rpath" flag with a separated argument.
15501hardcode_libdir_separator=$lt_hardcode_libdir_separator
15502
15503# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15504# DIR into the resulting binary.
15505hardcode_direct=$hardcode_direct
15506
15507# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15508# DIR into the resulting binary and the resulting library dependency is
15509# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15510# library is relocated.
15511hardcode_direct_absolute=$hardcode_direct_absolute
15512
15513# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15514# into the resulting binary.
15515hardcode_minus_L=$hardcode_minus_L
15516
15517# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15518# into the resulting binary.
15519hardcode_shlibpath_var=$hardcode_shlibpath_var
15520
15521# Set to "yes" if building a shared library automatically hardcodes DIR
15522# into the library and all subsequent libraries and executables linked
15523# against it.
15524hardcode_automatic=$hardcode_automatic
15525
15526# Set to yes if linker adds runtime paths of dependent libraries
15527# to runtime path list.
15528inherit_rpath=$inherit_rpath
15529
15530# Whether libtool must link a program against all its dependency libraries.
15531link_all_deplibs=$link_all_deplibs
15532
15533# Fix the shell variable \$srcfile for the compiler.
15534fix_srcfile_path=$lt_fix_srcfile_path
15535
15536# Set to "yes" if exported symbols are required.
15537always_export_symbols=$always_export_symbols
15538
15539# The commands to list exported symbols.
15540export_symbols_cmds=$lt_export_symbols_cmds
15541
15542# Symbols that should not be listed in the preloaded symbols.
15543exclude_expsyms=$lt_exclude_expsyms
15544
15545# Symbols that must always be exported.
15546include_expsyms=$lt_include_expsyms
15547
15548# Commands necessary for linking programs (against libraries) with templates.
15549prelink_cmds=$lt_prelink_cmds
15550
15551# Specify filename containing input files.
15552file_list_spec=$lt_file_list_spec
15553
15554# How to hardcode a shared library path into an executable.
15555hardcode_action=$hardcode_action
15556
15557# ### END LIBTOOL CONFIG
15558
15559_LT_EOF
15560
15561  case $host_os in
15562  aix3*)
15563    cat <<\_LT_EOF >> "$cfgfile"
15564# AIX sometimes has problems with the GCC collect2 program.  For some
15565# reason, if we set the COLLECT_NAMES environment variable, the problems
15566# vanish in a puff of smoke.
15567if test "X${COLLECT_NAMES+set}" != Xset; then
15568  COLLECT_NAMES=
15569  export COLLECT_NAMES
15570fi
15571_LT_EOF
15572    ;;
15573  esac
15574
15575
15576ltmain="$ac_aux_dir/ltmain.sh"
15577
15578
15579  # We use sed instead of cat because bash on DJGPP gets confused if
15580  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15581  # text mode, it properly converts lines to CR/LF.  This bash problem
15582  # is reportedly fixed, but why not run on old versions too?
15583  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15584    || (rm -f "$cfgfile"; exit 1)
15585
15586  case $xsi_shell in
15587  yes)
15588    cat << \_LT_EOF >> "$cfgfile"
15589
15590# func_dirname file append nondir_replacement
15591# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15592# otherwise set result to NONDIR_REPLACEMENT.
15593func_dirname ()
15594{
15595  case ${1} in
15596    */*) func_dirname_result="${1%/*}${2}" ;;
15597    *  ) func_dirname_result="${3}" ;;
15598  esac
15599}
15600
15601# func_basename file
15602func_basename ()
15603{
15604  func_basename_result="${1##*/}"
15605}
15606
15607# func_dirname_and_basename file append nondir_replacement
15608# perform func_basename and func_dirname in a single function
15609# call:
15610#   dirname:  Compute the dirname of FILE.  If nonempty,
15611#             add APPEND to the result, otherwise set result
15612#             to NONDIR_REPLACEMENT.
15613#             value returned in "$func_dirname_result"
15614#   basename: Compute filename of FILE.
15615#             value retuned in "$func_basename_result"
15616# Implementation must be kept synchronized with func_dirname
15617# and func_basename. For efficiency, we do not delegate to
15618# those functions but instead duplicate the functionality here.
15619func_dirname_and_basename ()
15620{
15621  case ${1} in
15622    */*) func_dirname_result="${1%/*}${2}" ;;
15623    *  ) func_dirname_result="${3}" ;;
15624  esac
15625  func_basename_result="${1##*/}"
15626}
15627
15628# func_stripname prefix suffix name
15629# strip PREFIX and SUFFIX off of NAME.
15630# PREFIX and SUFFIX must not contain globbing or regex special
15631# characters, hashes, percent signs, but SUFFIX may contain a leading
15632# dot (in which case that matches only a dot).
15633func_stripname ()
15634{
15635  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15636  # positional parameters, so assign one to ordinary parameter first.
15637  func_stripname_result=${3}
15638  func_stripname_result=${func_stripname_result#"${1}"}
15639  func_stripname_result=${func_stripname_result%"${2}"}
15640}
15641
15642# func_opt_split
15643func_opt_split ()
15644{
15645  func_opt_split_opt=${1%%=*}
15646  func_opt_split_arg=${1#*=}
15647}
15648
15649# func_lo2o object
15650func_lo2o ()
15651{
15652  case ${1} in
15653    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15654    *)    func_lo2o_result=${1} ;;
15655  esac
15656}
15657
15658# func_xform libobj-or-source
15659func_xform ()
15660{
15661  func_xform_result=${1%.*}.lo
15662}
15663
15664# func_arith arithmetic-term...
15665func_arith ()
15666{
15667  func_arith_result=$(( $* ))
15668}
15669
15670# func_len string
15671# STRING may not start with a hyphen.
15672func_len ()
15673{
15674  func_len_result=${#1}
15675}
15676
15677_LT_EOF
15678    ;;
15679  *) # Bourne compatible functions.
15680    cat << \_LT_EOF >> "$cfgfile"
15681
15682# func_dirname file append nondir_replacement
15683# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15684# otherwise set result to NONDIR_REPLACEMENT.
15685func_dirname ()
15686{
15687  # Extract subdirectory from the argument.
15688  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15689  if test "X$func_dirname_result" = "X${1}"; then
15690    func_dirname_result="${3}"
15691  else
15692    func_dirname_result="$func_dirname_result${2}"
15693  fi
15694}
15695
15696# func_basename file
15697func_basename ()
15698{
15699  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15700}
15701
15702
15703# func_stripname prefix suffix name
15704# strip PREFIX and SUFFIX off of NAME.
15705# PREFIX and SUFFIX must not contain globbing or regex special
15706# characters, hashes, percent signs, but SUFFIX may contain a leading
15707# dot (in which case that matches only a dot).
15708# func_strip_suffix prefix name
15709func_stripname ()
15710{
15711  case ${2} in
15712    .*) func_stripname_result=`$ECHO "X${3}" \
15713           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15714    *)  func_stripname_result=`$ECHO "X${3}" \
15715           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15716  esac
15717}
15718
15719# sed scripts:
15720my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15721my_sed_long_arg='1s/^-[^=]*=//'
15722
15723# func_opt_split
15724func_opt_split ()
15725{
15726  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15727  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15728}
15729
15730# func_lo2o object
15731func_lo2o ()
15732{
15733  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15734}
15735
15736# func_xform libobj-or-source
15737func_xform ()
15738{
15739  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15740}
15741
15742# func_arith arithmetic-term...
15743func_arith ()
15744{
15745  func_arith_result=`expr "$@"`
15746}
15747
15748# func_len string
15749# STRING may not start with a hyphen.
15750func_len ()
15751{
15752  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15753}
15754
15755_LT_EOF
15756esac
15757
15758case $lt_shell_append in
15759  yes)
15760    cat << \_LT_EOF >> "$cfgfile"
15761
15762# func_append var value
15763# Append VALUE to the end of shell variable VAR.
15764func_append ()
15765{
15766  eval "$1+=\$2"
15767}
15768_LT_EOF
15769    ;;
15770  *)
15771    cat << \_LT_EOF >> "$cfgfile"
15772
15773# func_append var value
15774# Append VALUE to the end of shell variable VAR.
15775func_append ()
15776{
15777  eval "$1=\$$1\$2"
15778}
15779
15780_LT_EOF
15781    ;;
15782  esac
15783
15784
15785  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15786    || (rm -f "$cfgfile"; exit 1)
15787
15788  mv -f "$cfgfile" "$ofile" ||
15789    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15790  chmod +x "$ofile"
15791
15792 ;;
15793
15794  esac
15795done # for ac_tag
15796
15797
15798{ (exit 0); exit 0; }
15799_ACEOF
15800chmod +x $CONFIG_STATUS
15801ac_clean_files=$ac_clean_files_save
15802
15803test $ac_write_fail = 0 ||
15804  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15805$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15806   { (exit 1); exit 1; }; }
15807
15808
15809# configure is writing to config.log, and then calls config.status.
15810# config.status does its own redirection, appending to config.log.
15811# Unfortunately, on DOS this fails, as config.log is still kept open
15812# by configure, so config.status won't be able to write to it; its
15813# output is simply discarded.  So we exec the FD to /dev/null,
15814# effectively closing config.log, so it can be properly (re)opened and
15815# appended to by config.status.  When coming back to configure, we
15816# need to make the FD available again.
15817if test "$no_create" != yes; then
15818  ac_cs_success=:
15819  ac_config_status_args=
15820  test "$silent" = yes &&
15821    ac_config_status_args="$ac_config_status_args --quiet"
15822  exec 5>/dev/null
15823  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15824  exec 5>>config.log
15825  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15826  # would make configure fail if this is the last instruction.
15827  $ac_cs_success || { (exit 1); exit 1; }
15828fi
15829if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15830  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15831$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15832fi
15833
15834