configure revision b410ddbe
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-ast 0.91.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-ast'
747PACKAGE_TARNAME='xf86-video-ast'
748PACKAGE_VERSION='0.91.10'
749PACKAGE_STRING='xf86-video-ast 0.91.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='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793DRIVER_NAME
794moduledir
795XSERVER_LIBPCIACCESS_FALSE
796XSERVER_LIBPCIACCESS_TRUE
797PCIACCESS_LIBS
798PCIACCESS_CFLAGS
799XORG_LIBS
800XORG_CFLAGS
801OTOOL64
802OTOOL
803LIPO
804NMEDIT
805DSYMUTIL
806lt_ECHO
807RANLIB
808AR
809OBJDUMP
810LN_S
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LD
815FGREP
816LIBTOOL
817AM_BACKSLASH
818AM_DEFAULT_VERBOSITY
819MAN_SUBSTS
820XORG_MAN_PAGE
821ADMIN_MAN_DIR
822DRIVER_MAN_DIR
823MISC_MAN_DIR
824FILE_MAN_DIR
825LIB_MAN_DIR
826APP_MAN_DIR
827ADMIN_MAN_SUFFIX
828DRIVER_MAN_SUFFIX
829MISC_MAN_SUFFIX
830FILE_MAN_SUFFIX
831LIB_MAN_SUFFIX
832APP_MAN_SUFFIX
833SED
834host_os
835host_vendor
836host_cpu
837host
838build_os
839build_vendor
840build_cpu
841build
842INSTALL_CMD
843PKG_CONFIG
844CHANGELOG_CMD
845CWARNFLAGS
846EGREP
847GREP
848CPP
849am__fastdepCC_FALSE
850am__fastdepCC_TRUE
851CCDEPMODE
852AMDEPBACKSLASH
853AMDEP_FALSE
854AMDEP_TRUE
855am__quote
856am__include
857DEPDIR
858OBJEXT
859EXEEXT
860ac_ct_CC
861CPPFLAGS
862LDFLAGS
863CFLAGS
864CC
865MAINT
866MAINTAINER_MODE_FALSE
867MAINTAINER_MODE_TRUE
868am__untar
869am__tar
870AMTAR
871am__leading_dot
872SET_MAKE
873AWK
874mkdir_p
875MKDIR_P
876INSTALL_STRIP_PROGRAM
877STRIP
878install_sh
879MAKEINFO
880AUTOHEADER
881AUTOMAKE
882AUTOCONF
883ACLOCAL
884VERSION
885PACKAGE
886CYGPATH_W
887am__isrc
888INSTALL_DATA
889INSTALL_SCRIPT
890INSTALL_PROGRAM
891target_alias
892host_alias
893build_alias
894LIBS
895ECHO_T
896ECHO_N
897ECHO_C
898DEFS
899mandir
900localedir
901libdir
902psdir
903pdfdir
904dvidir
905htmldir
906infodir
907docdir
908oldincludedir
909includedir
910localstatedir
911sharedstatedir
912sysconfdir
913datadir
914datarootdir
915libexecdir
916sbindir
917bindir
918program_transform_name
919prefix
920exec_prefix
921PACKAGE_BUGREPORT
922PACKAGE_STRING
923PACKAGE_VERSION
924PACKAGE_TARNAME
925PACKAGE_NAME
926PATH_SEPARATOR
927SHELL'
928ac_subst_files=''
929ac_user_opts='
930enable_option_checking
931enable_maintainer_mode
932enable_dependency_tracking
933enable_strict_compilation
934enable_silent_rules
935enable_static
936enable_shared
937with_pic
938enable_fast_install
939with_gnu_ld
940enable_libtool_lock
941with_xorg_module_dir
942'
943      ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951CPP
952PKG_CONFIG
953XORG_CFLAGS
954XORG_LIBS
955PCIACCESS_CFLAGS
956PCIACCESS_LIBS'
957
958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
962ac_unrecognized_opts=
963ac_unrecognized_sep=
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011  # If the previous option needs an argument, assign it.
1012  if test -n "$ac_prev"; then
1013    eval $ac_prev=\$ac_option
1014    ac_prev=
1015    continue
1016  fi
1017
1018  case $ac_option in
1019  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020  *)	ac_optarg=yes ;;
1021  esac
1022
1023  # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025  case $ac_dashdash$ac_option in
1026  --)
1027    ac_dashdash=yes ;;
1028
1029  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030    ac_prev=bindir ;;
1031  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032    bindir=$ac_optarg ;;
1033
1034  -build | --build | --buil | --bui | --bu)
1035    ac_prev=build_alias ;;
1036  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037    build_alias=$ac_optarg ;;
1038
1039  -cache-file | --cache-file | --cache-fil | --cache-fi \
1040  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041    ac_prev=cache_file ;;
1042  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044    cache_file=$ac_optarg ;;
1045
1046  --config-cache | -C)
1047    cache_file=config.cache ;;
1048
1049  -datadir | --datadir | --datadi | --datad)
1050    ac_prev=datadir ;;
1051  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052    datadir=$ac_optarg ;;
1053
1054  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055  | --dataroo | --dataro | --datar)
1056    ac_prev=datarootdir ;;
1057  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059    datarootdir=$ac_optarg ;;
1060
1061  -disable-* | --disable-*)
1062    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066   { (exit 1); exit 1; }; }
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=no ;;
1077
1078  -docdir | --docdir | --docdi | --doc | --do)
1079    ac_prev=docdir ;;
1080  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081    docdir=$ac_optarg ;;
1082
1083  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084    ac_prev=dvidir ;;
1085  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086    dvidir=$ac_optarg ;;
1087
1088  -enable-* | --enable-*)
1089    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093   { (exit 1); exit 1; }; }
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"enable_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107  | --exec | --exe | --ex)
1108    ac_prev=exec_prefix ;;
1109  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111  | --exec=* | --exe=* | --ex=*)
1112    exec_prefix=$ac_optarg ;;
1113
1114  -gas | --gas | --ga | --g)
1115    # Obsolete; use --with-gas.
1116    with_gas=yes ;;
1117
1118  -help | --help | --hel | --he | -h)
1119    ac_init_help=long ;;
1120  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121    ac_init_help=recursive ;;
1122  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123    ac_init_help=short ;;
1124
1125  -host | --host | --hos | --ho)
1126    ac_prev=host_alias ;;
1127  -host=* | --host=* | --hos=* | --ho=*)
1128    host_alias=$ac_optarg ;;
1129
1130  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131    ac_prev=htmldir ;;
1132  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133  | --ht=*)
1134    htmldir=$ac_optarg ;;
1135
1136  -includedir | --includedir | --includedi | --included | --include \
1137  | --includ | --inclu | --incl | --inc)
1138    ac_prev=includedir ;;
1139  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140  | --includ=* | --inclu=* | --incl=* | --inc=*)
1141    includedir=$ac_optarg ;;
1142
1143  -infodir | --infodir | --infodi | --infod | --info | --inf)
1144    ac_prev=infodir ;;
1145  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146    infodir=$ac_optarg ;;
1147
1148  -libdir | --libdir | --libdi | --libd)
1149    ac_prev=libdir ;;
1150  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151    libdir=$ac_optarg ;;
1152
1153  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154  | --libexe | --libex | --libe)
1155    ac_prev=libexecdir ;;
1156  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157  | --libexe=* | --libex=* | --libe=*)
1158    libexecdir=$ac_optarg ;;
1159
1160  -localedir | --localedir | --localedi | --localed | --locale)
1161    ac_prev=localedir ;;
1162  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163    localedir=$ac_optarg ;;
1164
1165  -localstatedir | --localstatedir | --localstatedi | --localstated \
1166  | --localstate | --localstat | --localsta | --localst | --locals)
1167    ac_prev=localstatedir ;;
1168  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170    localstatedir=$ac_optarg ;;
1171
1172  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173    ac_prev=mandir ;;
1174  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175    mandir=$ac_optarg ;;
1176
1177  -nfp | --nfp | --nf)
1178    # Obsolete; use --without-fp.
1179    with_fp=no ;;
1180
1181  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182  | --no-cr | --no-c | -n)
1183    no_create=yes ;;
1184
1185  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187    no_recursion=yes ;;
1188
1189  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191  | --oldin | --oldi | --old | --ol | --o)
1192    ac_prev=oldincludedir ;;
1193  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196    oldincludedir=$ac_optarg ;;
1197
1198  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199    ac_prev=prefix ;;
1200  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201    prefix=$ac_optarg ;;
1202
1203  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204  | --program-pre | --program-pr | --program-p)
1205    ac_prev=program_prefix ;;
1206  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208    program_prefix=$ac_optarg ;;
1209
1210  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211  | --program-suf | --program-su | --program-s)
1212    ac_prev=program_suffix ;;
1213  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215    program_suffix=$ac_optarg ;;
1216
1217  -program-transform-name | --program-transform-name \
1218  | --program-transform-nam | --program-transform-na \
1219  | --program-transform-n | --program-transform- \
1220  | --program-transform | --program-transfor \
1221  | --program-transfo | --program-transf \
1222  | --program-trans | --program-tran \
1223  | --progr-tra | --program-tr | --program-t)
1224    ac_prev=program_transform_name ;;
1225  -program-transform-name=* | --program-transform-name=* \
1226  | --program-transform-nam=* | --program-transform-na=* \
1227  | --program-transform-n=* | --program-transform-=* \
1228  | --program-transform=* | --program-transfor=* \
1229  | --program-transfo=* | --program-transf=* \
1230  | --program-trans=* | --program-tran=* \
1231  | --progr-tra=* | --program-tr=* | --program-t=*)
1232    program_transform_name=$ac_optarg ;;
1233
1234  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235    ac_prev=pdfdir ;;
1236  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237    pdfdir=$ac_optarg ;;
1238
1239  -psdir | --psdir | --psdi | --psd | --ps)
1240    ac_prev=psdir ;;
1241  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242    psdir=$ac_optarg ;;
1243
1244  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245  | -silent | --silent | --silen | --sile | --sil)
1246    silent=yes ;;
1247
1248  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249    ac_prev=sbindir ;;
1250  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251  | --sbi=* | --sb=*)
1252    sbindir=$ac_optarg ;;
1253
1254  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256  | --sharedst | --shareds | --shared | --share | --shar \
1257  | --sha | --sh)
1258    ac_prev=sharedstatedir ;;
1259  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262  | --sha=* | --sh=*)
1263    sharedstatedir=$ac_optarg ;;
1264
1265  -site | --site | --sit)
1266    ac_prev=site ;;
1267  -site=* | --site=* | --sit=*)
1268    site=$ac_optarg ;;
1269
1270  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271    ac_prev=srcdir ;;
1272  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273    srcdir=$ac_optarg ;;
1274
1275  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276  | --syscon | --sysco | --sysc | --sys | --sy)
1277    ac_prev=sysconfdir ;;
1278  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280    sysconfdir=$ac_optarg ;;
1281
1282  -target | --target | --targe | --targ | --tar | --ta | --t)
1283    ac_prev=target_alias ;;
1284  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285    target_alias=$ac_optarg ;;
1286
1287  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288    verbose=yes ;;
1289
1290  -version | --version | --versio | --versi | --vers | -V)
1291    ac_init_version=: ;;
1292
1293  -with-* | --with-*)
1294    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295    # Reject names that are not valid shell variable names.
1296    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298   { (exit 1); exit 1; }; }
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=\$ac_optarg ;;
1309
1310  -without-* | --without-*)
1311    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312    # Reject names that are not valid shell variable names.
1313    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1315   { (exit 1); exit 1; }; }
1316    ac_useropt_orig=$ac_useropt
1317    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318    case $ac_user_opts in
1319      *"
1320"with_$ac_useropt"
1321"*) ;;
1322      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323	 ac_unrecognized_sep=', ';;
1324    esac
1325    eval with_$ac_useropt=no ;;
1326
1327  --x)
1328    # Obsolete; use --with-x.
1329    with_x=yes ;;
1330
1331  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332  | --x-incl | --x-inc | --x-in | --x-i)
1333    ac_prev=x_includes ;;
1334  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336    x_includes=$ac_optarg ;;
1337
1338  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340    ac_prev=x_libraries ;;
1341  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343    x_libraries=$ac_optarg ;;
1344
1345  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1346Try \`$0 --help' for more information." >&2
1347   { (exit 1); exit 1; }; }
1348    ;;
1349
1350  *=*)
1351    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352    # Reject names that are not valid shell variable names.
1353    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1354      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1355   { (exit 1); exit 1; }; }
1356    eval $ac_envvar=\$ac_optarg
1357    export $ac_envvar ;;
1358
1359  *)
1360    # FIXME: should be removed in autoconf 3.0.
1361    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365    ;;
1366
1367  esac
1368done
1369
1370if test -n "$ac_prev"; then
1371  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1373   { (exit 1); exit 1; }; }
1374fi
1375
1376if test -n "$ac_unrecognized_opts"; then
1377  case $enable_option_checking in
1378    no) ;;
1379    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1380   { (exit 1); exit 1; }; } ;;
1381    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382  esac
1383fi
1384
1385# Check all directory arguments for consistency.
1386for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387		datadir sysconfdir sharedstatedir localstatedir includedir \
1388		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389		libdir localedir mandir
1390do
1391  eval ac_val=\$$ac_var
1392  # Remove trailing slashes.
1393  case $ac_val in
1394    */ )
1395      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396      eval $ac_var=\$ac_val;;
1397  esac
1398  # Be sure to have absolute directory names.
1399  case $ac_val in
1400    [\\/$]* | ?:[\\/]* )  continue;;
1401    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402  esac
1403  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1404   { (exit 1); exit 1; }; }
1405done
1406
1407# There might be people who depend on the old broken behavior: `$host'
1408# used to hold the argument of --host etc.
1409# FIXME: To remove some day.
1410build=$build_alias
1411host=$host_alias
1412target=$target_alias
1413
1414# FIXME: To remove some day.
1415if test "x$host_alias" != x; then
1416  if test "x$build_alias" = x; then
1417    cross_compiling=maybe
1418    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1419    If a cross compiler is detected then cross compile mode will be used." >&2
1420  elif test "x$build_alias" != "x$host_alias"; then
1421    cross_compiling=yes
1422  fi
1423fi
1424
1425ac_tool_prefix=
1426test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427
1428test "$silent" = yes && exec 6>/dev/null
1429
1430
1431ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432ac_ls_di=`ls -di .` &&
1433ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1435   { (exit 1); exit 1; }; }
1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1438   { (exit 1); exit 1; }; }
1439
1440
1441# Find the source files, if location was not specified.
1442if test -z "$srcdir"; then
1443  ac_srcdir_defaulted=yes
1444  # Try the directory containing this script, then the parent directory.
1445  ac_confdir=`$as_dirname -- "$as_myself" ||
1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447	 X"$as_myself" : 'X\(//\)[^/]' \| \
1448	 X"$as_myself" : 'X\(//\)$' \| \
1449	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450$as_echo X"$as_myself" |
1451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\/\)[^/].*/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\/\)$/{
1460	    s//\1/
1461	    q
1462	  }
1463	  /^X\(\/\).*/{
1464	    s//\1/
1465	    q
1466	  }
1467	  s/.*/./; q'`
1468  srcdir=$ac_confdir
1469  if test ! -r "$srcdir/$ac_unique_file"; then
1470    srcdir=..
1471  fi
1472else
1473  ac_srcdir_defaulted=no
1474fi
1475if test ! -r "$srcdir/$ac_unique_file"; then
1476  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1478   { (exit 1); exit 1; }; }
1479fi
1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481ac_abs_confdir=`(
1482	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1483   { (exit 1); exit 1; }; }
1484	pwd)`
1485# When building in place, set srcdir=.
1486if test "$ac_abs_confdir" = "$ac_pwd"; then
1487  srcdir=.
1488fi
1489# Remove unnecessary trailing slashes from srcdir.
1490# Double slashes in file names in object file debugging info
1491# mess up M-x gdb in Emacs.
1492case $srcdir in
1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494esac
1495for ac_var in $ac_precious_vars; do
1496  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497  eval ac_env_${ac_var}_value=\$${ac_var}
1498  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500done
1501
1502#
1503# Report the --help message.
1504#
1505if test "$ac_init_help" = "long"; then
1506  # Omit some internal or obsolete options to make the list less imposing.
1507  # This message is too long to be a string in the A/UX 3.1 sh.
1508  cat <<_ACEOF
1509\`configure' configures xf86-video-ast 0.91.10 to adapt to many kinds of systems.
1510
1511Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514VAR=VALUE.  See below for descriptions of some of the useful variables.
1515
1516Defaults for the options are specified in brackets.
1517
1518Configuration:
1519  -h, --help              display this help and exit
1520      --help=short        display options specific to this package
1521      --help=recursive    display the short help of all the included packages
1522  -V, --version           display version information and exit
1523  -q, --quiet, --silent   do not print \`checking...' messages
1524      --cache-file=FILE   cache test results in FILE [disabled]
1525  -C, --config-cache      alias for \`--cache-file=config.cache'
1526  -n, --no-create         do not create output files
1527      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1528
1529Installation directories:
1530  --prefix=PREFIX         install architecture-independent files in PREFIX
1531                          [$ac_default_prefix]
1532  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1533                          [PREFIX]
1534
1535By default, \`make install' will install all the files in
1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1537an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538for instance \`--prefix=\$HOME'.
1539
1540For better control, use the options below.
1541
1542Fine tuning of the installation directories:
1543  --bindir=DIR            user executables [EPREFIX/bin]
1544  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1545  --libexecdir=DIR        program executables [EPREFIX/libexec]
1546  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1547  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1548  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1549  --libdir=DIR            object code libraries [EPREFIX/lib]
1550  --includedir=DIR        C header files [PREFIX/include]
1551  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1552  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1553  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1554  --infodir=DIR           info documentation [DATAROOTDIR/info]
1555  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1556  --mandir=DIR            man documentation [DATAROOTDIR/man]
1557  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ast]
1558  --htmldir=DIR           html documentation [DOCDIR]
1559  --dvidir=DIR            dvi documentation [DOCDIR]
1560  --pdfdir=DIR            pdf documentation [DOCDIR]
1561  --psdir=DIR             ps documentation [DOCDIR]
1562_ACEOF
1563
1564  cat <<\_ACEOF
1565
1566Program names:
1567  --program-prefix=PREFIX            prepend PREFIX to installed program names
1568  --program-suffix=SUFFIX            append SUFFIX to installed program names
1569  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1570
1571System types:
1572  --build=BUILD     configure for building on BUILD [guessed]
1573  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1574_ACEOF
1575fi
1576
1577if test -n "$ac_init_help"; then
1578  case $ac_init_help in
1579     short | recursive ) echo "Configuration of xf86-video-ast 0.91.10:";;
1580   esac
1581  cat <<\_ACEOF
1582
1583Optional Features:
1584  --disable-option-checking  ignore unrecognized --enable/--with options
1585  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1586  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1587  --enable-maintainer-mode  enable make rules and dependencies not useful
1588			  (and sometimes confusing) to the casual installer
1589  --disable-dependency-tracking  speeds up one-time build
1590  --enable-dependency-tracking   do not reject slow dependency extractors
1591  --enable-strict-compilation
1592                          Enable all warnings from compiler and make them
1593                          errors (default: disabled)
1594  --enable-silent-rules          less verbose build output (undo: `make V=1')
1595  --disable-silent-rules         verbose build output (undo: `make V=0')
1596  --enable-static[=PKGS]  build static libraries [default=no]
1597  --enable-shared[=PKGS]  build shared libraries [default=yes]
1598  --enable-fast-install[=PKGS]
1599                          optimize for fast installation [default=yes]
1600  --disable-libtool-lock  avoid locking (might break parallel builds)
1601
1602Optional Packages:
1603  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1604  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1605  --with-pic              try to use only PIC/non-PIC objects [default=use
1606                          both]
1607  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1608  --with-xorg-module-dir=DIR
1609                          Default xorg module directory
1610                          [default=$libdir/xorg/modules]
1611
1612Some influential environment variables:
1613  CC          C compiler command
1614  CFLAGS      C compiler flags
1615  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1616              nonstandard directory <lib dir>
1617  LIBS        libraries to pass to the linker, e.g. -l<library>
1618  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1619              you have headers in a nonstandard directory <include dir>
1620  CPP         C preprocessor
1621  PKG_CONFIG  path to pkg-config utility
1622  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1623  XORG_LIBS   linker flags for XORG, overriding pkg-config
1624  PCIACCESS_CFLAGS
1625              C compiler flags for PCIACCESS, overriding pkg-config
1626  PCIACCESS_LIBS
1627              linker flags for PCIACCESS, overriding pkg-config
1628
1629Use these variables to override the choices made by `configure' or to help
1630it to find libraries and programs with nonstandard names/locations.
1631
1632Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1633_ACEOF
1634ac_status=$?
1635fi
1636
1637if test "$ac_init_help" = "recursive"; then
1638  # If there are subdirs, report their specific --help.
1639  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640    test -d "$ac_dir" ||
1641      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642      continue
1643    ac_builddir=.
1644
1645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
1648  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649  # A ".." for each directory in $ac_dir_suffix.
1650  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651  case $ac_top_builddir_sub in
1652  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654  esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
1660
1661case $srcdir in
1662  .)  # We are building in place.
1663    ac_srcdir=.
1664    ac_top_srcdir=$ac_top_builddir_sub
1665    ac_abs_top_srcdir=$ac_pwd ;;
1666  [\\/]* | ?:[\\/]* )  # Absolute name.
1667    ac_srcdir=$srcdir$ac_dir_suffix;
1668    ac_top_srcdir=$srcdir
1669    ac_abs_top_srcdir=$srcdir ;;
1670  *) # Relative name.
1671    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672    ac_top_srcdir=$ac_top_build_prefix$srcdir
1673    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674esac
1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677    cd "$ac_dir" || { ac_status=$?; continue; }
1678    # Check for guested configure.
1679    if test -f "$ac_srcdir/configure.gnu"; then
1680      echo &&
1681      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682    elif test -f "$ac_srcdir/configure"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure" --help=recursive
1685    else
1686      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687    fi || ac_status=$?
1688    cd "$ac_pwd" || { ac_status=$?; break; }
1689  done
1690fi
1691
1692test -n "$ac_init_help" && exit $ac_status
1693if $ac_init_version; then
1694  cat <<\_ACEOF
1695xf86-video-ast configure 0.91.10
1696generated by GNU Autoconf 2.63
1697
1698Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16992002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
1703  exit
1704fi
1705cat >config.log <<_ACEOF
1706This file contains any messages produced by compilers while
1707running configure, to aid debugging if configure makes a mistake.
1708
1709It was created by xf86-video-ast $as_me 0.91.10, which was
1710generated by GNU Autoconf 2.63.  Invocation command line was
1711
1712  $ $0 $@
1713
1714_ACEOF
1715exec 5>>config.log
1716{
1717cat <<_ASUNAME
1718## --------- ##
1719## Platform. ##
1720## --------- ##
1721
1722hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1723uname -m = `(uname -m) 2>/dev/null || echo unknown`
1724uname -r = `(uname -r) 2>/dev/null || echo unknown`
1725uname -s = `(uname -s) 2>/dev/null || echo unknown`
1726uname -v = `(uname -v) 2>/dev/null || echo unknown`
1727
1728/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1729/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1730
1731/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1732/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1733/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1734/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1735/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1736/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1737/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1738
1739_ASUNAME
1740
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744  IFS=$as_save_IFS
1745  test -z "$as_dir" && as_dir=.
1746  $as_echo "PATH: $as_dir"
1747done
1748IFS=$as_save_IFS
1749
1750} >&5
1751
1752cat >&5 <<_ACEOF
1753
1754
1755## ----------- ##
1756## Core tests. ##
1757## ----------- ##
1758
1759_ACEOF
1760
1761
1762# Keep a trace of the command line.
1763# Strip out --no-create and --no-recursion so they do not pile up.
1764# Strip out --silent because we don't want to record it for future runs.
1765# Also quote any args containing shell meta-characters.
1766# Make two passes to allow for proper duplicate-argument suppression.
1767ac_configure_args=
1768ac_configure_args0=
1769ac_configure_args1=
1770ac_must_keep_next=false
1771for ac_pass in 1 2
1772do
1773  for ac_arg
1774  do
1775    case $ac_arg in
1776    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1777    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1778    | -silent | --silent | --silen | --sile | --sil)
1779      continue ;;
1780    *\'*)
1781      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1782    esac
1783    case $ac_pass in
1784    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1785    2)
1786      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1787      if test $ac_must_keep_next = true; then
1788	ac_must_keep_next=false # Got value, back to normal.
1789      else
1790	case $ac_arg in
1791	  *=* | --config-cache | -C | -disable-* | --disable-* \
1792	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1793	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1794	  | -with-* | --with-* | -without-* | --without-* | --x)
1795	    case "$ac_configure_args0 " in
1796	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1797	    esac
1798	    ;;
1799	  -* ) ac_must_keep_next=true ;;
1800	esac
1801      fi
1802      ac_configure_args="$ac_configure_args '$ac_arg'"
1803      ;;
1804    esac
1805  done
1806done
1807$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1808$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1809
1810# When interrupted or exit'd, cleanup temporary files, and complete
1811# config.log.  We remove comments because anyway the quotes in there
1812# would cause problems or look ugly.
1813# WARNING: Use '\'' to represent an apostrophe within the trap.
1814# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1815trap 'exit_status=$?
1816  # Save into config.log some information that might help in debugging.
1817  {
1818    echo
1819
1820    cat <<\_ASBOX
1821## ---------------- ##
1822## Cache variables. ##
1823## ---------------- ##
1824_ASBOX
1825    echo
1826    # The following way of writing the cache mishandles newlines in values,
1827(
1828  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1829    eval ac_val=\$$ac_var
1830    case $ac_val in #(
1831    *${as_nl}*)
1832      case $ac_var in #(
1833      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1834$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1835      esac
1836      case $ac_var in #(
1837      _ | IFS | as_nl) ;; #(
1838      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1839      *) $as_unset $ac_var ;;
1840      esac ;;
1841    esac
1842  done
1843  (set) 2>&1 |
1844    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1845    *${as_nl}ac_space=\ *)
1846      sed -n \
1847	"s/'\''/'\''\\\\'\'''\''/g;
1848	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1849      ;; #(
1850    *)
1851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852      ;;
1853    esac |
1854    sort
1855)
1856    echo
1857
1858    cat <<\_ASBOX
1859## ----------------- ##
1860## Output variables. ##
1861## ----------------- ##
1862_ASBOX
1863    echo
1864    for ac_var in $ac_subst_vars
1865    do
1866      eval ac_val=\$$ac_var
1867      case $ac_val in
1868      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869      esac
1870      $as_echo "$ac_var='\''$ac_val'\''"
1871    done | sort
1872    echo
1873
1874    if test -n "$ac_subst_files"; then
1875      cat <<\_ASBOX
1876## ------------------- ##
1877## File substitutions. ##
1878## ------------------- ##
1879_ASBOX
1880      echo
1881      for ac_var in $ac_subst_files
1882      do
1883	eval ac_val=\$$ac_var
1884	case $ac_val in
1885	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886	esac
1887	$as_echo "$ac_var='\''$ac_val'\''"
1888      done | sort
1889      echo
1890    fi
1891
1892    if test -s confdefs.h; then
1893      cat <<\_ASBOX
1894## ----------- ##
1895## confdefs.h. ##
1896## ----------- ##
1897_ASBOX
1898      echo
1899      cat confdefs.h
1900      echo
1901    fi
1902    test "$ac_signal" != 0 &&
1903      $as_echo "$as_me: caught signal $ac_signal"
1904    $as_echo "$as_me: exit $exit_status"
1905  } >&5
1906  rm -f core *.core core.conftest.* &&
1907    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1908    exit $exit_status
1909' 0
1910for ac_signal in 1 2 13 15; do
1911  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1912done
1913ac_signal=0
1914
1915# confdefs.h avoids OS command line length limits that DEFS can exceed.
1916rm -f -r conftest* confdefs.h
1917
1918# Predefined preprocessor variables.
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_NAME "$PACKAGE_NAME"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_VERSION "$PACKAGE_VERSION"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_STRING "$PACKAGE_STRING"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1942_ACEOF
1943
1944
1945# Let the site file select an alternate cache file if it wants to.
1946# Prefer an explicitly selected file to automatically selected ones.
1947ac_site_file1=NONE
1948ac_site_file2=NONE
1949if test -n "$CONFIG_SITE"; then
1950  ac_site_file1=$CONFIG_SITE
1951elif test "x$prefix" != xNONE; then
1952  ac_site_file1=$prefix/share/config.site
1953  ac_site_file2=$prefix/etc/config.site
1954else
1955  ac_site_file1=$ac_default_prefix/share/config.site
1956  ac_site_file2=$ac_default_prefix/etc/config.site
1957fi
1958for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1959do
1960  test "x$ac_site_file" = xNONE && continue
1961  if test -r "$ac_site_file"; then
1962    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1963$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1964    sed 's/^/| /' "$ac_site_file" >&5
1965    . "$ac_site_file"
1966  fi
1967done
1968
1969if test -r "$cache_file"; then
1970  # Some versions of bash will fail to source /dev/null (special
1971  # files actually), so we avoid doing that.
1972  if test -f "$cache_file"; then
1973    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1974$as_echo "$as_me: loading cache $cache_file" >&6;}
1975    case $cache_file in
1976      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1977      *)                      . "./$cache_file";;
1978    esac
1979  fi
1980else
1981  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1982$as_echo "$as_me: creating cache $cache_file" >&6;}
1983  >$cache_file
1984fi
1985
1986# Check that the precious variables saved in the cache have kept the same
1987# value.
1988ac_cache_corrupted=false
1989for ac_var in $ac_precious_vars; do
1990  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991  eval ac_new_set=\$ac_env_${ac_var}_set
1992  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993  eval ac_new_val=\$ac_env_${ac_var}_value
1994  case $ac_old_set,$ac_new_set in
1995    set,)
1996      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998      ac_cache_corrupted=: ;;
1999    ,set)
2000      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002      ac_cache_corrupted=: ;;
2003    ,);;
2004    *)
2005      if test "x$ac_old_val" != "x$ac_new_val"; then
2006	# differences in whitespace do not lead to failure.
2007	ac_old_val_w=`echo x $ac_old_val`
2008	ac_new_val_w=`echo x $ac_new_val`
2009	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2010	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2011$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2012	  ac_cache_corrupted=:
2013	else
2014	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2015$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2016	  eval $ac_var=\$ac_old_val
2017	fi
2018	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2019$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2020	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2021$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2022      fi;;
2023  esac
2024  # Pass precious variables to config.status.
2025  if test "$ac_new_set" = set; then
2026    case $ac_new_val in
2027    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2028    *) ac_arg=$ac_var=$ac_new_val ;;
2029    esac
2030    case " $ac_configure_args " in
2031      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2032      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2033    esac
2034  fi
2035done
2036if $ac_cache_corrupted; then
2037  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2039  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2040$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2041  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2042$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2043   { (exit 1); exit 1; }; }
2044fi
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070ac_ext=c
2071ac_cpp='$CPP $CPPFLAGS'
2072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074ac_compiler_gnu=$ac_cv_c_compiler_gnu
2075
2076
2077
2078ac_config_headers="$ac_config_headers config.h"
2079
2080ac_aux_dir=
2081for ac_dir in . "$srcdir"/.; do
2082  if test -f "$ac_dir/install-sh"; then
2083    ac_aux_dir=$ac_dir
2084    ac_install_sh="$ac_aux_dir/install-sh -c"
2085    break
2086  elif test -f "$ac_dir/install.sh"; then
2087    ac_aux_dir=$ac_dir
2088    ac_install_sh="$ac_aux_dir/install.sh -c"
2089    break
2090  elif test -f "$ac_dir/shtool"; then
2091    ac_aux_dir=$ac_dir
2092    ac_install_sh="$ac_aux_dir/shtool install -c"
2093    break
2094  fi
2095done
2096if test -z "$ac_aux_dir"; then
2097  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2098$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2099   { (exit 1); exit 1; }; }
2100fi
2101
2102# These three variables are undocumented and unsupported,
2103# and are intended to be withdrawn in a future Autoconf release.
2104# They can cause serious problems if a builder's source tree is in a directory
2105# whose full name contains unusual characters.
2106ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2107ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2108ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2109
2110
2111
2112# Initialize Automake
2113am__api_version='1.11'
2114
2115# Find a good install program.  We prefer a C program (faster),
2116# so one script is as good as another.  But avoid the broken or
2117# incompatible versions:
2118# SysV /etc/install, /usr/sbin/install
2119# SunOS /usr/etc/install
2120# IRIX /sbin/install
2121# AIX /bin/install
2122# AmigaOS /C/install, which installs bootblocks on floppy discs
2123# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126# OS/2's system install, which has a completely different semantic
2127# ./install, which can be erroneously created by make from ./install.sh.
2128# Reject install programs that cannot install multiple files.
2129{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2130$as_echo_n "checking for a BSD-compatible install... " >&6; }
2131if test -z "$INSTALL"; then
2132if test "${ac_cv_path_install+set}" = set; then
2133  $as_echo_n "(cached) " >&6
2134else
2135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  # Account for people who put trailing slashes in PATH elements.
2141case $as_dir/ in
2142  ./ | .// | /cC/* | \
2143  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2144  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145  /usr/ucb/* ) ;;
2146  *)
2147    # OSF1 and SCO ODT 3.0 have their own names for install.
2148    # Don't use installbsd from OSF since it installs stuff as root
2149    # by default.
2150    for ac_prog in ginstall scoinst install; do
2151      for ac_exec_ext in '' $ac_executable_extensions; do
2152	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2153	  if test $ac_prog = install &&
2154	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2155	    # AIX install.  It has an incompatible calling convention.
2156	    :
2157	  elif test $ac_prog = install &&
2158	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159	    # program-specific install script used by HP pwplus--don't use.
2160	    :
2161	  else
2162	    rm -rf conftest.one conftest.two conftest.dir
2163	    echo one > conftest.one
2164	    echo two > conftest.two
2165	    mkdir conftest.dir
2166	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2167	      test -s conftest.one && test -s conftest.two &&
2168	      test -s conftest.dir/conftest.one &&
2169	      test -s conftest.dir/conftest.two
2170	    then
2171	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2172	      break 3
2173	    fi
2174	  fi
2175	fi
2176      done
2177    done
2178    ;;
2179esac
2180
2181done
2182IFS=$as_save_IFS
2183
2184rm -rf conftest.one conftest.two conftest.dir
2185
2186fi
2187  if test "${ac_cv_path_install+set}" = set; then
2188    INSTALL=$ac_cv_path_install
2189  else
2190    # As a last resort, use the slow shell script.  Don't cache a
2191    # value for INSTALL within a source directory, because that will
2192    # break other packages using the cache if that directory is
2193    # removed, or if the value is a relative name.
2194    INSTALL=$ac_install_sh
2195  fi
2196fi
2197{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2198$as_echo "$INSTALL" >&6; }
2199
2200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201# It thinks the first close brace ends the variable substitution.
2202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203
2204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205
2206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207
2208{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2209$as_echo_n "checking whether build environment is sane... " >&6; }
2210# Just in case
2211sleep 1
2212echo timestamp > conftest.file
2213# Reject unsafe characters in $srcdir or the absolute working directory
2214# name.  Accept space and tab only in the latter.
2215am_lf='
2216'
2217case `pwd` in
2218  *[\\\"\#\$\&\'\`$am_lf]*)
2219    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2220$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2221   { (exit 1); exit 1; }; };;
2222esac
2223case $srcdir in
2224  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2225    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2226$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2227   { (exit 1); exit 1; }; };;
2228esac
2229
2230# Do `set' in a subshell so we don't clobber the current shell's
2231# arguments.  Must try -L first in case configure is actually a
2232# symlink; some systems play weird games with the mod time of symlinks
2233# (eg FreeBSD returns the mod time of the symlink's containing
2234# directory).
2235if (
2236   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2237   if test "$*" = "X"; then
2238      # -L didn't work.
2239      set X `ls -t "$srcdir/configure" conftest.file`
2240   fi
2241   rm -f conftest.file
2242   if test "$*" != "X $srcdir/configure conftest.file" \
2243      && test "$*" != "X conftest.file $srcdir/configure"; then
2244
2245      # If neither matched, then we have a broken ls.  This can happen
2246      # if, for instance, CONFIG_SHELL is bash and it inherits a
2247      # broken ls alias from the environment.  This has actually
2248      # happened.  Such a system could not be considered "sane".
2249      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2250alias in your environment" >&5
2251$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2252alias in your environment" >&2;}
2253   { (exit 1); exit 1; }; }
2254   fi
2255
2256   test "$2" = conftest.file
2257   )
2258then
2259   # Ok.
2260   :
2261else
2262   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2263Check your system clock" >&5
2264$as_echo "$as_me: error: newly created file is older than distributed files!
2265Check your system clock" >&2;}
2266   { (exit 1); exit 1; }; }
2267fi
2268{ $as_echo "$as_me:$LINENO: result: yes" >&5
2269$as_echo "yes" >&6; }
2270test "$program_prefix" != NONE &&
2271  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272# Use a double $ so make ignores it.
2273test "$program_suffix" != NONE &&
2274  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275# Double any \ or $.
2276# By default was `s,x,x', remove it if useless.
2277ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2279
2280# expand $ac_aux_dir to an absolute path
2281am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283if test x"${MISSING+set}" != xset; then
2284  case $am_aux_dir in
2285  *\ * | *\	*)
2286    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2287  *)
2288    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2289  esac
2290fi
2291# Use eval to expand $SHELL
2292if eval "$MISSING --run true"; then
2293  am_missing_run="$MISSING --run "
2294else
2295  am_missing_run=
2296  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2297$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298fi
2299
2300if test x"${install_sh}" != xset; then
2301  case $am_aux_dir in
2302  *\ * | *\	*)
2303    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2304  *)
2305    install_sh="\${SHELL} $am_aux_dir/install-sh"
2306  esac
2307fi
2308
2309# Installed binaries are usually stripped using `strip' when the user
2310# run `make install-strip'.  However `strip' might not be the right
2311# tool to use in cross-compilation environments, therefore Automake
2312# will honor the `STRIP' environment variable to overrule this program.
2313if test "$cross_compiling" != no; then
2314  if test -n "$ac_tool_prefix"; then
2315  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}strip; ac_word=$2
2317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if test "${ac_cv_prog_STRIP+set}" = set; then
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test -n "$STRIP"; then
2323  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330  for ac_exec_ext in '' $ac_executable_extensions; do
2331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334    break 2
2335  fi
2336done
2337done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342STRIP=$ac_cv_prog_STRIP
2343if test -n "$STRIP"; then
2344  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2345$as_echo "$STRIP" >&6; }
2346else
2347  { $as_echo "$as_me:$LINENO: result: no" >&5
2348$as_echo "no" >&6; }
2349fi
2350
2351
2352fi
2353if test -z "$ac_cv_prog_STRIP"; then
2354  ac_ct_STRIP=$STRIP
2355  # Extract the first word of "strip", so it can be a program name with args.
2356set dummy strip; ac_word=$2
2357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$ac_ct_STRIP"; then
2363  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368  IFS=$as_save_IFS
2369  test -z "$as_dir" && as_dir=.
2370  for ac_exec_ext in '' $ac_executable_extensions; do
2371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372    ac_cv_prog_ac_ct_STRIP="strip"
2373    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383if test -n "$ac_ct_STRIP"; then
2384  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2385$as_echo "$ac_ct_STRIP" >&6; }
2386else
2387  { $as_echo "$as_me:$LINENO: result: no" >&5
2388$as_echo "no" >&6; }
2389fi
2390
2391  if test "x$ac_ct_STRIP" = x; then
2392    STRIP=":"
2393  else
2394    case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398ac_tool_warned=yes ;;
2399esac
2400    STRIP=$ac_ct_STRIP
2401  fi
2402else
2403  STRIP="$ac_cv_prog_STRIP"
2404fi
2405
2406fi
2407INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408
2409{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2410$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411if test -z "$MKDIR_P"; then
2412  if test "${ac_cv_path_mkdir+set}" = set; then
2413  $as_echo_n "(cached) " >&6
2414else
2415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420  for ac_prog in mkdir gmkdir; do
2421	 for ac_exec_ext in '' $ac_executable_extensions; do
2422	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424	     'mkdir (GNU coreutils) '* | \
2425	     'mkdir (coreutils) '* | \
2426	     'mkdir (fileutils) '4.1*)
2427	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428	       break 3;;
2429	   esac
2430	 done
2431       done
2432done
2433IFS=$as_save_IFS
2434
2435fi
2436
2437  if test "${ac_cv_path_mkdir+set}" = set; then
2438    MKDIR_P="$ac_cv_path_mkdir -p"
2439  else
2440    # As a last resort, use the slow shell script.  Don't cache a
2441    # value for MKDIR_P within a source directory, because that will
2442    # break other packages using the cache if that directory is
2443    # removed, or if the value is a relative name.
2444    test -d ./--version && rmdir ./--version
2445    MKDIR_P="$ac_install_sh -d"
2446  fi
2447fi
2448{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2449$as_echo "$MKDIR_P" >&6; }
2450
2451mkdir_p="$MKDIR_P"
2452case $mkdir_p in
2453  [\\/$]* | ?:[\\/]*) ;;
2454  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2455esac
2456
2457for ac_prog in gawk mawk nawk awk
2458do
2459  # Extract the first word of "$ac_prog", so it can be a program name with args.
2460set dummy $ac_prog; ac_word=$2
2461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if test "${ac_cv_prog_AWK+set}" = set; then
2464  $as_echo_n "(cached) " >&6
2465else
2466  if test -n "$AWK"; then
2467  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474  for ac_exec_ext in '' $ac_executable_extensions; do
2475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476    ac_cv_prog_AWK="$ac_prog"
2477    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486AWK=$ac_cv_prog_AWK
2487if test -n "$AWK"; then
2488  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2489$as_echo "$AWK" >&6; }
2490else
2491  { $as_echo "$as_me:$LINENO: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496  test -n "$AWK" && break
2497done
2498
2499{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2501set x ${MAKE-make}
2502ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2504  $as_echo_n "(cached) " >&6
2505else
2506  cat >conftest.make <<\_ACEOF
2507SHELL = /bin/sh
2508all:
2509	@echo '@@@%%%=$(MAKE)=@@@%%%'
2510_ACEOF
2511# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2512case `${MAKE-make} -f conftest.make 2>/dev/null` in
2513  *@@@%%%=?*=@@@%%%*)
2514    eval ac_cv_prog_make_${ac_make}_set=yes;;
2515  *)
2516    eval ac_cv_prog_make_${ac_make}_set=no;;
2517esac
2518rm -f conftest.make
2519fi
2520if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521  { $as_echo "$as_me:$LINENO: result: yes" >&5
2522$as_echo "yes" >&6; }
2523  SET_MAKE=
2524else
2525  { $as_echo "$as_me:$LINENO: result: no" >&5
2526$as_echo "no" >&6; }
2527  SET_MAKE="MAKE=${MAKE-make}"
2528fi
2529
2530rm -rf .tst 2>/dev/null
2531mkdir .tst 2>/dev/null
2532if test -d .tst; then
2533  am__leading_dot=.
2534else
2535  am__leading_dot=_
2536fi
2537rmdir .tst 2>/dev/null
2538
2539if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541  # is not polluted with repeated "-I."
2542  am__isrc=' -I$(srcdir)'
2543  # test to see if srcdir already configured
2544  if test -f $srcdir/config.status; then
2545    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2546$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2547   { (exit 1); exit 1; }; }
2548  fi
2549fi
2550
2551# test whether we have cygpath
2552if test -z "$CYGPATH_W"; then
2553  if (cygpath --version) >/dev/null 2>/dev/null; then
2554    CYGPATH_W='cygpath -w'
2555  else
2556    CYGPATH_W=echo
2557  fi
2558fi
2559
2560
2561# Define the identity of the package.
2562 PACKAGE='xf86-video-ast'
2563 VERSION='0.91.10'
2564
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE "$PACKAGE"
2568_ACEOF
2569
2570
2571cat >>confdefs.h <<_ACEOF
2572#define VERSION "$VERSION"
2573_ACEOF
2574
2575# Some tools Automake needs.
2576
2577ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2578
2579
2580AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2581
2582
2583AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2584
2585
2586AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2587
2588
2589MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2590
2591# We need awk for the "check" target.  The system "awk" is bad on
2592# some platforms.
2593# Always define AMTAR for backward compatibility.
2594
2595AMTAR=${AMTAR-"${am_missing_run}tar"}
2596
2597am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2598
2599
2600
2601
2602
2603
2604{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2605$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2606    # Check whether --enable-maintainer-mode was given.
2607if test "${enable_maintainer_mode+set}" = set; then
2608  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2609else
2610  USE_MAINTAINER_MODE=no
2611fi
2612
2613  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2614$as_echo "$USE_MAINTAINER_MODE" >&6; }
2615   if test $USE_MAINTAINER_MODE = yes; then
2616  MAINTAINER_MODE_TRUE=
2617  MAINTAINER_MODE_FALSE='#'
2618else
2619  MAINTAINER_MODE_TRUE='#'
2620  MAINTAINER_MODE_FALSE=
2621fi
2622
2623  MAINT=$MAINTAINER_MODE_TRUE
2624
2625
2626
2627# Require xorg-macros: XORG_DEFAULT_OPTIONS
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639DEPDIR="${am__leading_dot}deps"
2640
2641ac_config_commands="$ac_config_commands depfiles"
2642
2643
2644am_make=${MAKE-make}
2645cat > confinc << 'END'
2646am__doit:
2647	@echo this is the am__doit target
2648.PHONY: am__doit
2649END
2650# If we don't find an include directive, just comment out the code.
2651{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2652$as_echo_n "checking for style of include used by $am_make... " >&6; }
2653am__include="#"
2654am__quote=
2655_am_result=none
2656# First try GNU make style include.
2657echo "include confinc" > confmf
2658# Ignore all kinds of additional output from `make'.
2659case `$am_make -s -f confmf 2> /dev/null` in #(
2660*the\ am__doit\ target*)
2661  am__include=include
2662  am__quote=
2663  _am_result=GNU
2664  ;;
2665esac
2666# Now try BSD make style include.
2667if test "$am__include" = "#"; then
2668   echo '.include "confinc"' > confmf
2669   case `$am_make -s -f confmf 2> /dev/null` in #(
2670   *the\ am__doit\ target*)
2671     am__include=.include
2672     am__quote="\""
2673     _am_result=BSD
2674     ;;
2675   esac
2676fi
2677
2678
2679{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2680$as_echo "$_am_result" >&6; }
2681rm -f confinc confmf
2682
2683# Check whether --enable-dependency-tracking was given.
2684if test "${enable_dependency_tracking+set}" = set; then
2685  enableval=$enable_dependency_tracking;
2686fi
2687
2688if test "x$enable_dependency_tracking" != xno; then
2689  am_depcomp="$ac_aux_dir/depcomp"
2690  AMDEPBACKSLASH='\'
2691fi
2692 if test "x$enable_dependency_tracking" != xno; then
2693  AMDEP_TRUE=
2694  AMDEP_FALSE='#'
2695else
2696  AMDEP_TRUE='#'
2697  AMDEP_FALSE=
2698fi
2699
2700
2701ac_ext=c
2702ac_cpp='$CPP $CPPFLAGS'
2703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706if test -n "$ac_tool_prefix"; then
2707  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2708set dummy ${ac_tool_prefix}gcc; ac_word=$2
2709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_CC+set}" = set; then
2712  $as_echo_n "(cached) " >&6
2713else
2714  if test -n "$CC"; then
2715  ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722  for ac_exec_ext in '' $ac_executable_extensions; do
2723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2725    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726    break 2
2727  fi
2728done
2729done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
2736  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737$as_echo "$CC" >&6; }
2738else
2739  { $as_echo "$as_me:$LINENO: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744fi
2745if test -z "$ac_cv_prog_CC"; then
2746  ac_ct_CC=$CC
2747  # Extract the first word of "gcc", so it can be a program name with args.
2748set dummy gcc; ac_word=$2
2749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750$as_echo_n "checking for $ac_word... " >&6; }
2751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752  $as_echo_n "(cached) " >&6
2753else
2754  if test -n "$ac_ct_CC"; then
2755  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756else
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760  IFS=$as_save_IFS
2761  test -z "$as_dir" && as_dir=.
2762  for ac_exec_ext in '' $ac_executable_extensions; do
2763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764    ac_cv_prog_ac_ct_CC="gcc"
2765    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766    break 2
2767  fi
2768done
2769done
2770IFS=$as_save_IFS
2771
2772fi
2773fi
2774ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775if test -n "$ac_ct_CC"; then
2776  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2777$as_echo "$ac_ct_CC" >&6; }
2778else
2779  { $as_echo "$as_me:$LINENO: result: no" >&5
2780$as_echo "no" >&6; }
2781fi
2782
2783  if test "x$ac_ct_CC" = x; then
2784    CC=""
2785  else
2786    case $cross_compiling:$ac_tool_warned in
2787yes:)
2788{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790ac_tool_warned=yes ;;
2791esac
2792    CC=$ac_ct_CC
2793  fi
2794else
2795  CC="$ac_cv_prog_CC"
2796fi
2797
2798if test -z "$CC"; then
2799          if test -n "$ac_tool_prefix"; then
2800    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801set dummy ${ac_tool_prefix}cc; ac_word=$2
2802{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if test "${ac_cv_prog_CC+set}" = set; then
2805  $as_echo_n "(cached) " >&6
2806else
2807  if test -n "$CC"; then
2808  ac_cv_prog_CC="$CC" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  test -z "$as_dir" && as_dir=.
2815  for ac_exec_ext in '' $ac_executable_extensions; do
2816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817    ac_cv_prog_CC="${ac_tool_prefix}cc"
2818    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819    break 2
2820  fi
2821done
2822done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827CC=$ac_cv_prog_CC
2828if test -n "$CC"; then
2829  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2830$as_echo "$CC" >&6; }
2831else
2832  { $as_echo "$as_me:$LINENO: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836
2837  fi
2838fi
2839if test -z "$CC"; then
2840  # Extract the first word of "cc", so it can be a program name with args.
2841set dummy cc; ac_word=$2
2842{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if test "${ac_cv_prog_CC+set}" = set; then
2845  $as_echo_n "(cached) " >&6
2846else
2847  if test -n "$CC"; then
2848  ac_cv_prog_CC="$CC" # Let the user override the test.
2849else
2850  ac_prog_rejected=no
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856  for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2859       ac_prog_rejected=yes
2860       continue
2861     fi
2862    ac_cv_prog_CC="cc"
2863    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867done
2868IFS=$as_save_IFS
2869
2870if test $ac_prog_rejected = yes; then
2871  # We found a bogon in the path, so make sure we never use it.
2872  set dummy $ac_cv_prog_CC
2873  shift
2874  if test $# != 0; then
2875    # We chose a different compiler from the bogus one.
2876    # However, it has the same basename, so the bogon will be chosen
2877    # first if we set CC to just the basename; use the full file name.
2878    shift
2879    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2880  fi
2881fi
2882fi
2883fi
2884CC=$ac_cv_prog_CC
2885if test -n "$CC"; then
2886  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2887$as_echo "$CC" >&6; }
2888else
2889  { $as_echo "$as_me:$LINENO: result: no" >&5
2890$as_echo "no" >&6; }
2891fi
2892
2893
2894fi
2895if test -z "$CC"; then
2896  if test -n "$ac_tool_prefix"; then
2897  for ac_prog in cl.exe
2898  do
2899    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2901{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
2903if test "${ac_cv_prog_CC+set}" = set; then
2904  $as_echo_n "(cached) " >&6
2905else
2906  if test -n "$CC"; then
2907  ac_cv_prog_CC="$CC" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  test -z "$as_dir" && as_dir=.
2914  for ac_exec_ext in '' $ac_executable_extensions; do
2915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
2926CC=$ac_cv_prog_CC
2927if test -n "$CC"; then
2928  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2929$as_echo "$CC" >&6; }
2930else
2931  { $as_echo "$as_me:$LINENO: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935
2936    test -n "$CC" && break
2937  done
2938fi
2939if test -z "$CC"; then
2940  ac_ct_CC=$CC
2941  for ac_prog in cl.exe
2942do
2943  # Extract the first word of "$ac_prog", so it can be a program name with args.
2944set dummy $ac_prog; ac_word=$2
2945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$ac_ct_CC"; then
2951  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958  for ac_exec_ext in '' $ac_executable_extensions; do
2959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960    ac_cv_prog_ac_ct_CC="$ac_prog"
2961    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965done
2966IFS=$as_save_IFS
2967
2968fi
2969fi
2970ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971if test -n "$ac_ct_CC"; then
2972  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2973$as_echo "$ac_ct_CC" >&6; }
2974else
2975  { $as_echo "$as_me:$LINENO: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979
2980  test -n "$ac_ct_CC" && break
2981done
2982
2983  if test "x$ac_ct_CC" = x; then
2984    CC=""
2985  else
2986    case $cross_compiling:$ac_tool_warned in
2987yes:)
2988{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990ac_tool_warned=yes ;;
2991esac
2992    CC=$ac_ct_CC
2993  fi
2994fi
2995
2996fi
2997
2998
2999test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3002See \`config.log' for more details." >&5
3003$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3004See \`config.log' for more details." >&2;}
3005   { (exit 1); exit 1; }; }; }
3006
3007# Provide some information about the compiler.
3008$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3009set X $ac_compile
3010ac_compiler=$2
3011{ (ac_try="$ac_compiler --version >&5"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3017$as_echo "$ac_try_echo") >&5
3018  (eval "$ac_compiler --version >&5") 2>&5
3019  ac_status=$?
3020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }
3022{ (ac_try="$ac_compiler -v >&5"
3023case "(($ac_try" in
3024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025  *) ac_try_echo=$ac_try;;
3026esac
3027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3028$as_echo "$ac_try_echo") >&5
3029  (eval "$ac_compiler -v >&5") 2>&5
3030  ac_status=$?
3031  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); }
3033{ (ac_try="$ac_compiler -V >&5"
3034case "(($ac_try" in
3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036  *) ac_try_echo=$ac_try;;
3037esac
3038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3039$as_echo "$ac_try_echo") >&5
3040  (eval "$ac_compiler -V >&5") 2>&5
3041  ac_status=$?
3042  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }
3044
3045cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h.  */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h.  */
3051
3052int
3053main ()
3054{
3055
3056  ;
3057  return 0;
3058}
3059_ACEOF
3060ac_clean_files_save=$ac_clean_files
3061ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3062# Try to create an executable without -o first, disregard a.out.
3063# It will help us diagnose broken compilers, and finding out an intuition
3064# of exeext.
3065{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3066$as_echo_n "checking for C compiler default output file name... " >&6; }
3067ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068
3069# The possible output files:
3070ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3071
3072ac_rmfiles=
3073for ac_file in $ac_files
3074do
3075  case $ac_file in
3076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3077    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3078  esac
3079done
3080rm -f $ac_rmfiles
3081
3082if { (ac_try="$ac_link_default"
3083case "(($ac_try" in
3084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085  *) ac_try_echo=$ac_try;;
3086esac
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
3089  (eval "$ac_link_default") 2>&5
3090  ac_status=$?
3091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; then
3093  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3094# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3095# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3096# so that the user can short-circuit this test for compilers unknown to
3097# Autoconf.
3098for ac_file in $ac_files ''
3099do
3100  test -f "$ac_file" || continue
3101  case $ac_file in
3102    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3103	;;
3104    [ab].out )
3105	# We found the default executable, but exeext='' is most
3106	# certainly right.
3107	break;;
3108    *.* )
3109        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3110	then :; else
3111	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112	fi
3113	# We set ac_cv_exeext here because the later test for it is not
3114	# safe: cross compilers may not add the suffix if given an `-o'
3115	# argument, so we may need to know it at that point already.
3116	# Even if this section looks crufty: it has the advantage of
3117	# actually working.
3118	break;;
3119    * )
3120	break;;
3121  esac
3122done
3123test "$ac_cv_exeext" = no && ac_cv_exeext=
3124
3125else
3126  ac_file=''
3127fi
3128
3129{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3130$as_echo "$ac_file" >&6; }
3131if test -z "$ac_file"; then
3132  $as_echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3138See \`config.log' for more details." >&5
3139$as_echo "$as_me: error: C compiler cannot create executables
3140See \`config.log' for more details." >&2;}
3141   { (exit 77); exit 77; }; }; }
3142fi
3143
3144ac_exeext=$ac_cv_exeext
3145
3146# Check that the compiler produces executables we can run.  If not, either
3147# the compiler is broken, or we cross compile.
3148{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3149$as_echo_n "checking whether the C compiler works... " >&6; }
3150# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3151# If not cross compiling, check that we can run a simple program.
3152if test "$cross_compiling" != yes; then
3153  if { ac_try='./$ac_file'
3154  { (case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3159$as_echo "$ac_try_echo") >&5
3160  (eval "$ac_try") 2>&5
3161  ac_status=$?
3162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; }; then
3164    cross_compiling=no
3165  else
3166    if test "$cross_compiling" = maybe; then
3167	cross_compiling=yes
3168    else
3169	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3172If you meant to cross compile, use \`--host'.
3173See \`config.log' for more details." >&5
3174$as_echo "$as_me: error: cannot run C compiled programs.
3175If you meant to cross compile, use \`--host'.
3176See \`config.log' for more details." >&2;}
3177   { (exit 1); exit 1; }; }; }
3178    fi
3179  fi
3180fi
3181{ $as_echo "$as_me:$LINENO: result: yes" >&5
3182$as_echo "yes" >&6; }
3183
3184rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3185ac_clean_files=$ac_clean_files_save
3186# Check that the compiler produces executables we can run.  If not, either
3187# the compiler is broken, or we cross compile.
3188{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3189$as_echo_n "checking whether we are cross compiling... " >&6; }
3190{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3191$as_echo "$cross_compiling" >&6; }
3192
3193{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3194$as_echo_n "checking for suffix of executables... " >&6; }
3195if { (ac_try="$ac_link"
3196case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201$as_echo "$ac_try_echo") >&5
3202  (eval "$ac_link") 2>&5
3203  ac_status=$?
3204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; then
3206  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3207# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3208# work properly (i.e., refer to `conftest.exe'), while it won't with
3209# `rm'.
3210for ac_file in conftest.exe conftest conftest.*; do
3211  test -f "$ac_file" || continue
3212  case $ac_file in
3213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215	  break;;
3216    * ) break;;
3217  esac
3218done
3219else
3220  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223See \`config.log' for more details." >&5
3224$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225See \`config.log' for more details." >&2;}
3226   { (exit 1); exit 1; }; }; }
3227fi
3228
3229rm -f conftest$ac_cv_exeext
3230{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231$as_echo "$ac_cv_exeext" >&6; }
3232
3233rm -f conftest.$ac_ext
3234EXEEXT=$ac_cv_exeext
3235ac_exeext=$EXEEXT
3236{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237$as_echo_n "checking for suffix of object files... " >&6; }
3238if test "${ac_cv_objext+set}" = set; then
3239  $as_echo_n "(cached) " >&6
3240else
3241  cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h.  */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h.  */
3247
3248int
3249main ()
3250{
3251
3252  ;
3253  return 0;
3254}
3255_ACEOF
3256rm -f conftest.o conftest.obj
3257if { (ac_try="$ac_compile"
3258case "(($ac_try" in
3259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260  *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263$as_echo "$ac_try_echo") >&5
3264  (eval "$ac_compile") 2>&5
3265  ac_status=$?
3266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); }; then
3268  for ac_file in conftest.o conftest.obj conftest.*; do
3269  test -f "$ac_file" || continue;
3270  case $ac_file in
3271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3272    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273       break;;
3274  esac
3275done
3276else
3277  $as_echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3283See \`config.log' for more details." >&5
3284$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3285See \`config.log' for more details." >&2;}
3286   { (exit 1); exit 1; }; }; }
3287fi
3288
3289rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290fi
3291{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3292$as_echo "$ac_cv_objext" >&6; }
3293OBJEXT=$ac_cv_objext
3294ac_objext=$OBJEXT
3295{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3296$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3297if test "${ac_cv_c_compiler_gnu+set}" = set; then
3298  $as_echo_n "(cached) " >&6
3299else
3300  cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h.  */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310#ifndef __GNUC__
3311       choke me
3312#endif
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (ac_try="$ac_compile"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325$as_echo "$ac_try_echo") >&5
3326  (eval "$ac_compile") 2>conftest.er1
3327  ac_status=$?
3328  grep -v '^ *+' conftest.er1 >conftest.err
3329  rm -f conftest.er1
3330  cat conftest.err >&5
3331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); } && {
3333	 test -z "$ac_c_werror_flag" ||
3334	 test ! -s conftest.err
3335       } && test -s conftest.$ac_objext; then
3336  ac_compiler_gnu=yes
3337else
3338  $as_echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341	ac_compiler_gnu=no
3342fi
3343
3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346
3347fi
3348{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3349$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3350if test $ac_compiler_gnu = yes; then
3351  GCC=yes
3352else
3353  GCC=
3354fi
3355ac_test_CFLAGS=${CFLAGS+set}
3356ac_save_CFLAGS=$CFLAGS
3357{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3358$as_echo_n "checking whether $CC accepts -g... " >&6; }
3359if test "${ac_cv_prog_cc_g+set}" = set; then
3360  $as_echo_n "(cached) " >&6
3361else
3362  ac_save_c_werror_flag=$ac_c_werror_flag
3363   ac_c_werror_flag=yes
3364   ac_cv_prog_cc_g=no
3365   CFLAGS="-g"
3366   cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h.  */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388$as_echo "$ac_try_echo") >&5
3389  (eval "$ac_compile") 2>conftest.er1
3390  ac_status=$?
3391  grep -v '^ *+' conftest.er1 >conftest.err
3392  rm -f conftest.er1
3393  cat conftest.err >&5
3394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); } && {
3396	 test -z "$ac_c_werror_flag" ||
3397	 test ! -s conftest.err
3398       } && test -s conftest.$ac_objext; then
3399  ac_cv_prog_cc_g=yes
3400else
3401  $as_echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404	CFLAGS=""
3405      cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h.  */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
3421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427$as_echo "$ac_try_echo") >&5
3428  (eval "$ac_compile") 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } && {
3435	 test -z "$ac_c_werror_flag" ||
3436	 test ! -s conftest.err
3437       } && test -s conftest.$ac_objext; then
3438  :
3439else
3440  $as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443	ac_c_werror_flag=$ac_save_c_werror_flag
3444	 CFLAGS="-g"
3445	 cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451
3452int
3453main ()
3454{
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460rm -f conftest.$ac_objext
3461if { (ac_try="$ac_compile"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3467$as_echo "$ac_try_echo") >&5
3468  (eval "$ac_compile") 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } && {
3475	 test -z "$ac_c_werror_flag" ||
3476	 test ! -s conftest.err
3477       } && test -s conftest.$ac_objext; then
3478  ac_cv_prog_cc_g=yes
3479else
3480  $as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483
3484fi
3485
3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487fi
3488
3489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490fi
3491
3492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493   ac_c_werror_flag=$ac_save_c_werror_flag
3494fi
3495{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3496$as_echo "$ac_cv_prog_cc_g" >&6; }
3497if test "$ac_test_CFLAGS" = set; then
3498  CFLAGS=$ac_save_CFLAGS
3499elif test $ac_cv_prog_cc_g = yes; then
3500  if test "$GCC" = yes; then
3501    CFLAGS="-g -O2"
3502  else
3503    CFLAGS="-g"
3504  fi
3505else
3506  if test "$GCC" = yes; then
3507    CFLAGS="-O2"
3508  else
3509    CFLAGS=
3510  fi
3511fi
3512{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3513$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3514if test "${ac_cv_prog_cc_c89+set}" = set; then
3515  $as_echo_n "(cached) " >&6
3516else
3517  ac_cv_prog_cc_c89=no
3518ac_save_CC=$CC
3519cat >conftest.$ac_ext <<_ACEOF
3520/* confdefs.h.  */
3521_ACEOF
3522cat confdefs.h >>conftest.$ac_ext
3523cat >>conftest.$ac_ext <<_ACEOF
3524/* end confdefs.h.  */
3525#include <stdarg.h>
3526#include <stdio.h>
3527#include <sys/types.h>
3528#include <sys/stat.h>
3529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3530struct buf { int x; };
3531FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532static char *e (p, i)
3533     char **p;
3534     int i;
3535{
3536  return p[i];
3537}
3538static char *f (char * (*g) (char **, int), char **p, ...)
3539{
3540  char *s;
3541  va_list v;
3542  va_start (v,p);
3543  s = g (p, va_arg (v,int));
3544  va_end (v);
3545  return s;
3546}
3547
3548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3549   function prototypes and stuff, but not '\xHH' hex character constants.
3550   These don't provoke an error unfortunately, instead are silently treated
3551   as 'x'.  The following induces an error, until -std is added to get
3552   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3553   array size at least.  It's necessary to write '\x00'==0 to get something
3554   that's true only with -std.  */
3555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556
3557/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558   inside strings and character constants.  */
3559#define FOO(x) 'x'
3560int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561
3562int test (int i, double x);
3563struct s1 {int (*f) (int a);};
3564struct s2 {int (*f) (double a);};
3565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3566int argc;
3567char **argv;
3568int
3569main ()
3570{
3571return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3578do
3579  CC="$ac_save_CC $ac_arg"
3580  rm -f conftest.$ac_objext
3581if { (ac_try="$ac_compile"
3582case "(($ac_try" in
3583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584  *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3587$as_echo "$ac_try_echo") >&5
3588  (eval "$ac_compile") 2>conftest.er1
3589  ac_status=$?
3590  grep -v '^ *+' conftest.er1 >conftest.err
3591  rm -f conftest.er1
3592  cat conftest.err >&5
3593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } && {
3595	 test -z "$ac_c_werror_flag" ||
3596	 test ! -s conftest.err
3597       } && test -s conftest.$ac_objext; then
3598  ac_cv_prog_cc_c89=$ac_arg
3599else
3600  $as_echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603
3604fi
3605
3606rm -f core conftest.err conftest.$ac_objext
3607  test "x$ac_cv_prog_cc_c89" != "xno" && break
3608done
3609rm -f conftest.$ac_ext
3610CC=$ac_save_CC
3611
3612fi
3613# AC_CACHE_VAL
3614case "x$ac_cv_prog_cc_c89" in
3615  x)
3616    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3617$as_echo "none needed" >&6; } ;;
3618  xno)
3619    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3620$as_echo "unsupported" >&6; } ;;
3621  *)
3622    CC="$CC $ac_cv_prog_cc_c89"
3623    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3624$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3625esac
3626
3627
3628ac_ext=c
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634depcc="$CC"   am_compiler_list=
3635
3636{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3637$as_echo_n "checking dependency style of $depcc... " >&6; }
3638if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3639  $as_echo_n "(cached) " >&6
3640else
3641  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3642  # We make a subdir and do the tests there.  Otherwise we can end up
3643  # making bogus files that we don't know about and never remove.  For
3644  # instance it was reported that on HP-UX the gcc test will end up
3645  # making a dummy file named `D' -- because `-MD' means `put the output
3646  # in D'.
3647  mkdir conftest.dir
3648  # Copy depcomp to subdir because otherwise we won't find it if we're
3649  # using a relative directory.
3650  cp "$am_depcomp" conftest.dir
3651  cd conftest.dir
3652  # We will build objects and dependencies in a subdirectory because
3653  # it helps to detect inapplicable dependency modes.  For instance
3654  # both Tru64's cc and ICC support -MD to output dependencies as a
3655  # side effect of compilation, but ICC will put the dependencies in
3656  # the current directory while Tru64 will put them in the object
3657  # directory.
3658  mkdir sub
3659
3660  am_cv_CC_dependencies_compiler_type=none
3661  if test "$am_compiler_list" = ""; then
3662     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3663  fi
3664  am__universal=false
3665  case " $depcc " in #(
3666     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3667     esac
3668
3669  for depmode in $am_compiler_list; do
3670    # Setup a source with many dependencies, because some compilers
3671    # like to wrap large dependency lists on column 80 (with \), and
3672    # we should not choose a depcomp mode which is confused by this.
3673    #
3674    # We need to recreate these files for each test, as the compiler may
3675    # overwrite some of them when testing with obscure command lines.
3676    # This happens at least with the AIX C compiler.
3677    : > sub/conftest.c
3678    for i in 1 2 3 4 5 6; do
3679      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3680      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3681      # Solaris 8's {/usr,}/bin/sh.
3682      touch sub/conftst$i.h
3683    done
3684    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3685
3686    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3687    # mode.  It turns out that the SunPro C++ compiler does not properly
3688    # handle `-M -o', and we need to detect this.  Also, some Intel
3689    # versions had trouble with output in subdirs
3690    am__obj=sub/conftest.${OBJEXT-o}
3691    am__minus_obj="-o $am__obj"
3692    case $depmode in
3693    gcc)
3694      # This depmode causes a compiler race in universal mode.
3695      test "$am__universal" = false || continue
3696      ;;
3697    nosideeffect)
3698      # after this tag, mechanisms are not by side-effect, so they'll
3699      # only be used when explicitly requested
3700      if test "x$enable_dependency_tracking" = xyes; then
3701	continue
3702      else
3703	break
3704      fi
3705      ;;
3706    msvisualcpp | msvcmsys)
3707      # This compiler won't grok `-c -o', but also, the minuso test has
3708      # not run yet.  These depmodes are late enough in the game, and
3709      # so weak that their functioning should not be impacted.
3710      am__obj=conftest.${OBJEXT-o}
3711      am__minus_obj=
3712      ;;
3713    none) break ;;
3714    esac
3715    if depmode=$depmode \
3716       source=sub/conftest.c object=$am__obj \
3717       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3718       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3719         >/dev/null 2>conftest.err &&
3720       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3721       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3722       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3723       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3724      # icc doesn't choke on unknown options, it will just issue warnings
3725      # or remarks (even with -Werror).  So we grep stderr for any message
3726      # that says an option was ignored or not supported.
3727      # When given -MP, icc 7.0 and 7.1 complain thusly:
3728      #   icc: Command line warning: ignoring option '-M'; no argument required
3729      # The diagnosis changed in icc 8.0:
3730      #   icc: Command line remark: option '-MP' not supported
3731      if (grep 'ignoring option' conftest.err ||
3732          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3733        am_cv_CC_dependencies_compiler_type=$depmode
3734        break
3735      fi
3736    fi
3737  done
3738
3739  cd ..
3740  rm -rf conftest.dir
3741else
3742  am_cv_CC_dependencies_compiler_type=none
3743fi
3744
3745fi
3746{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3747$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3748CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3749
3750 if
3751  test "x$enable_dependency_tracking" != xno \
3752  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3753  am__fastdepCC_TRUE=
3754  am__fastdepCC_FALSE='#'
3755else
3756  am__fastdepCC_TRUE='#'
3757  am__fastdepCC_FALSE=
3758fi
3759
3760
3761   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3762$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3763if test "${ac_cv_prog_cc_c99+set}" = set; then
3764  $as_echo_n "(cached) " >&6
3765else
3766  ac_cv_prog_cc_c99=no
3767ac_save_CC=$CC
3768cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h.  */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h.  */
3774#include <stdarg.h>
3775#include <stdbool.h>
3776#include <stdlib.h>
3777#include <wchar.h>
3778#include <stdio.h>
3779
3780// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3781#define debug(...) fprintf (stderr, __VA_ARGS__)
3782#define showlist(...) puts (#__VA_ARGS__)
3783#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3784static void
3785test_varargs_macros (void)
3786{
3787  int x = 1234;
3788  int y = 5678;
3789  debug ("Flag");
3790  debug ("X = %d\n", x);
3791  showlist (The first, second, and third items.);
3792  report (x>y, "x is %d but y is %d", x, y);
3793}
3794
3795// Check long long types.
3796#define BIG64 18446744073709551615ull
3797#define BIG32 4294967295ul
3798#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3799#if !BIG_OK
3800  your preprocessor is broken;
3801#endif
3802#if BIG_OK
3803#else
3804  your preprocessor is broken;
3805#endif
3806static long long int bignum = -9223372036854775807LL;
3807static unsigned long long int ubignum = BIG64;
3808
3809struct incomplete_array
3810{
3811  int datasize;
3812  double data[];
3813};
3814
3815struct named_init {
3816  int number;
3817  const wchar_t *name;
3818  double average;
3819};
3820
3821typedef const char *ccp;
3822
3823static inline int
3824test_restrict (ccp restrict text)
3825{
3826  // See if C++-style comments work.
3827  // Iterate through items via the restricted pointer.
3828  // Also check for declarations in for loops.
3829  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3830    continue;
3831  return 0;
3832}
3833
3834// Check varargs and va_copy.
3835static void
3836test_varargs (const char *format, ...)
3837{
3838  va_list args;
3839  va_start (args, format);
3840  va_list args_copy;
3841  va_copy (args_copy, args);
3842
3843  const char *str;
3844  int number;
3845  float fnumber;
3846
3847  while (*format)
3848    {
3849      switch (*format++)
3850	{
3851	case 's': // string
3852	  str = va_arg (args_copy, const char *);
3853	  break;
3854	case 'd': // int
3855	  number = va_arg (args_copy, int);
3856	  break;
3857	case 'f': // float
3858	  fnumber = va_arg (args_copy, double);
3859	  break;
3860	default:
3861	  break;
3862	}
3863    }
3864  va_end (args_copy);
3865  va_end (args);
3866}
3867
3868int
3869main ()
3870{
3871
3872  // Check bool.
3873  _Bool success = false;
3874
3875  // Check restrict.
3876  if (test_restrict ("String literal") == 0)
3877    success = true;
3878  char *restrict newvar = "Another string";
3879
3880  // Check varargs.
3881  test_varargs ("s, d' f .", "string", 65, 34.234);
3882  test_varargs_macros ();
3883
3884  // Check flexible array members.
3885  struct incomplete_array *ia =
3886    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3887  ia->datasize = 10;
3888  for (int i = 0; i < ia->datasize; ++i)
3889    ia->data[i] = i * 1.234;
3890
3891  // Check named initializers.
3892  struct named_init ni = {
3893    .number = 34,
3894    .name = L"Test wide string",
3895    .average = 543.34343,
3896  };
3897
3898  ni.number = 58;
3899
3900  int dynamic_array[ni.number];
3901  dynamic_array[ni.number - 1] = 543;
3902
3903  // work around unused variable warnings
3904  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3905	  || dynamic_array[ni.number - 1] != 543);
3906
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3912do
3913  CC="$ac_save_CC $ac_arg"
3914  rm -f conftest.$ac_objext
3915if { (ac_try="$ac_compile"
3916case "(($ac_try" in
3917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918  *) ac_try_echo=$ac_try;;
3919esac
3920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3921$as_echo "$ac_try_echo") >&5
3922  (eval "$ac_compile") 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } && {
3929	 test -z "$ac_c_werror_flag" ||
3930	 test ! -s conftest.err
3931       } && test -s conftest.$ac_objext; then
3932  ac_cv_prog_cc_c99=$ac_arg
3933else
3934  $as_echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937
3938fi
3939
3940rm -f core conftest.err conftest.$ac_objext
3941  test "x$ac_cv_prog_cc_c99" != "xno" && break
3942done
3943rm -f conftest.$ac_ext
3944CC=$ac_save_CC
3945
3946fi
3947# AC_CACHE_VAL
3948case "x$ac_cv_prog_cc_c99" in
3949  x)
3950    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3951$as_echo "none needed" >&6; } ;;
3952  xno)
3953    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3954$as_echo "unsupported" >&6; } ;;
3955  *)
3956    CC="$CC $ac_cv_prog_cc_c99"
3957    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3958$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3959esac
3960
3961
3962
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3970$as_echo_n "checking how to run the C preprocessor... " >&6; }
3971# On Suns, sometimes $CPP names a directory.
3972if test -n "$CPP" && test -d "$CPP"; then
3973  CPP=
3974fi
3975if test -z "$CPP"; then
3976  if test "${ac_cv_prog_CPP+set}" = set; then
3977  $as_echo_n "(cached) " >&6
3978else
3979      # Double quotes because CPP needs to be expanded
3980    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3981    do
3982      ac_preproc_ok=false
3983for ac_c_preproc_warn_flag in '' yes
3984do
3985  # Use a header file that comes with gcc, so configuring glibc
3986  # with a fresh cross-compiler works.
3987  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988  # <limits.h> exists even on freestanding compilers.
3989  # On the NeXT, cc -E runs the code through the compiler's parser,
3990  # not just through cpp. "Syntax error" is here to catch this case.
3991  cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997#ifdef __STDC__
3998# include <limits.h>
3999#else
4000# include <assert.h>
4001#endif
4002		     Syntax error
4003_ACEOF
4004if { (ac_try="$ac_cpp conftest.$ac_ext"
4005case "(($ac_try" in
4006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007  *) ac_try_echo=$ac_try;;
4008esac
4009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4010$as_echo "$ac_try_echo") >&5
4011  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4012  ac_status=$?
4013  grep -v '^ *+' conftest.er1 >conftest.err
4014  rm -f conftest.er1
4015  cat conftest.err >&5
4016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); } >/dev/null && {
4018	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4019	 test ! -s conftest.err
4020       }; then
4021  :
4022else
4023  $as_echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026  # Broken: fails on valid input.
4027continue
4028fi
4029
4030rm -f conftest.err conftest.$ac_ext
4031
4032  # OK, works on sane cases.  Now check whether nonexistent headers
4033  # can be detected and how.
4034  cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h.  */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h.  */
4040#include <ac_nonexistent.h>
4041_ACEOF
4042if { (ac_try="$ac_cpp conftest.$ac_ext"
4043case "(($ac_try" in
4044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045  *) ac_try_echo=$ac_try;;
4046esac
4047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4048$as_echo "$ac_try_echo") >&5
4049  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4050  ac_status=$?
4051  grep -v '^ *+' conftest.er1 >conftest.err
4052  rm -f conftest.er1
4053  cat conftest.err >&5
4054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); } >/dev/null && {
4056	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4057	 test ! -s conftest.err
4058       }; then
4059  # Broken: success on invalid input.
4060continue
4061else
4062  $as_echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065  # Passes both tests.
4066ac_preproc_ok=:
4067break
4068fi
4069
4070rm -f conftest.err conftest.$ac_ext
4071
4072done
4073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074rm -f conftest.err conftest.$ac_ext
4075if $ac_preproc_ok; then
4076  break
4077fi
4078
4079    done
4080    ac_cv_prog_CPP=$CPP
4081
4082fi
4083  CPP=$ac_cv_prog_CPP
4084else
4085  ac_cv_prog_CPP=$CPP
4086fi
4087{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4088$as_echo "$CPP" >&6; }
4089ac_preproc_ok=false
4090for ac_c_preproc_warn_flag in '' yes
4091do
4092  # Use a header file that comes with gcc, so configuring glibc
4093  # with a fresh cross-compiler works.
4094  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4095  # <limits.h> exists even on freestanding compilers.
4096  # On the NeXT, cc -E runs the code through the compiler's parser,
4097  # not just through cpp. "Syntax error" is here to catch this case.
4098  cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h.  */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h.  */
4104#ifdef __STDC__
4105# include <limits.h>
4106#else
4107# include <assert.h>
4108#endif
4109		     Syntax error
4110_ACEOF
4111if { (ac_try="$ac_cpp conftest.$ac_ext"
4112case "(($ac_try" in
4113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114  *) ac_try_echo=$ac_try;;
4115esac
4116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117$as_echo "$ac_try_echo") >&5
4118  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119  ac_status=$?
4120  grep -v '^ *+' conftest.er1 >conftest.err
4121  rm -f conftest.er1
4122  cat conftest.err >&5
4123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); } >/dev/null && {
4125	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126	 test ! -s conftest.err
4127       }; then
4128  :
4129else
4130  $as_echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133  # Broken: fails on valid input.
4134continue
4135fi
4136
4137rm -f conftest.err conftest.$ac_ext
4138
4139  # OK, works on sane cases.  Now check whether nonexistent headers
4140  # can be detected and how.
4141  cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147#include <ac_nonexistent.h>
4148_ACEOF
4149if { (ac_try="$ac_cpp conftest.$ac_ext"
4150case "(($ac_try" in
4151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152  *) ac_try_echo=$ac_try;;
4153esac
4154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4155$as_echo "$ac_try_echo") >&5
4156  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } >/dev/null && {
4163	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4164	 test ! -s conftest.err
4165       }; then
4166  # Broken: success on invalid input.
4167continue
4168else
4169  $as_echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172  # Passes both tests.
4173ac_preproc_ok=:
4174break
4175fi
4176
4177rm -f conftest.err conftest.$ac_ext
4178
4179done
4180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4181rm -f conftest.err conftest.$ac_ext
4182if $ac_preproc_ok; then
4183  :
4184else
4185  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4188See \`config.log' for more details." >&5
4189$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4190See \`config.log' for more details." >&2;}
4191   { (exit 1); exit 1; }; }; }
4192fi
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199
4200
4201{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4202$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4203if test "${ac_cv_path_GREP+set}" = set; then
4204  $as_echo_n "(cached) " >&6
4205else
4206  if test -z "$GREP"; then
4207  ac_path_GREP_found=false
4208  # Loop through the user's path and test for each of PROGNAME-LIST
4209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214  for ac_prog in grep ggrep; do
4215    for ac_exec_ext in '' $ac_executable_extensions; do
4216      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4217      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4218# Check for GNU ac_path_GREP and select it if it is found.
4219  # Check for GNU $ac_path_GREP
4220case `"$ac_path_GREP" --version 2>&1` in
4221*GNU*)
4222  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4223*)
4224  ac_count=0
4225  $as_echo_n 0123456789 >"conftest.in"
4226  while :
4227  do
4228    cat "conftest.in" "conftest.in" >"conftest.tmp"
4229    mv "conftest.tmp" "conftest.in"
4230    cp "conftest.in" "conftest.nl"
4231    $as_echo 'GREP' >> "conftest.nl"
4232    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234    ac_count=`expr $ac_count + 1`
4235    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4236      # Best one so far, save it but keep looking for a better one
4237      ac_cv_path_GREP="$ac_path_GREP"
4238      ac_path_GREP_max=$ac_count
4239    fi
4240    # 10*(2^10) chars as input seems more than enough
4241    test $ac_count -gt 10 && break
4242  done
4243  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244esac
4245
4246      $ac_path_GREP_found && break 3
4247    done
4248  done
4249done
4250IFS=$as_save_IFS
4251  if test -z "$ac_cv_path_GREP"; then
4252    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4253$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4254   { (exit 1); exit 1; }; }
4255  fi
4256else
4257  ac_cv_path_GREP=$GREP
4258fi
4259
4260fi
4261{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4262$as_echo "$ac_cv_path_GREP" >&6; }
4263 GREP="$ac_cv_path_GREP"
4264
4265
4266{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4267$as_echo_n "checking for egrep... " >&6; }
4268if test "${ac_cv_path_EGREP+set}" = set; then
4269  $as_echo_n "(cached) " >&6
4270else
4271  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4272   then ac_cv_path_EGREP="$GREP -E"
4273   else
4274     if test -z "$EGREP"; then
4275  ac_path_EGREP_found=false
4276  # Loop through the user's path and test for each of PROGNAME-LIST
4277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282  for ac_prog in egrep; do
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4285      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4286# Check for GNU ac_path_EGREP and select it if it is found.
4287  # Check for GNU $ac_path_EGREP
4288case `"$ac_path_EGREP" --version 2>&1` in
4289*GNU*)
4290  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4291*)
4292  ac_count=0
4293  $as_echo_n 0123456789 >"conftest.in"
4294  while :
4295  do
4296    cat "conftest.in" "conftest.in" >"conftest.tmp"
4297    mv "conftest.tmp" "conftest.in"
4298    cp "conftest.in" "conftest.nl"
4299    $as_echo 'EGREP' >> "conftest.nl"
4300    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302    ac_count=`expr $ac_count + 1`
4303    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4304      # Best one so far, save it but keep looking for a better one
4305      ac_cv_path_EGREP="$ac_path_EGREP"
4306      ac_path_EGREP_max=$ac_count
4307    fi
4308    # 10*(2^10) chars as input seems more than enough
4309    test $ac_count -gt 10 && break
4310  done
4311  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312esac
4313
4314      $ac_path_EGREP_found && break 3
4315    done
4316  done
4317done
4318IFS=$as_save_IFS
4319  if test -z "$ac_cv_path_EGREP"; then
4320    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4321$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4322   { (exit 1); exit 1; }; }
4323  fi
4324else
4325  ac_cv_path_EGREP=$EGREP
4326fi
4327
4328   fi
4329fi
4330{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4331$as_echo "$ac_cv_path_EGREP" >&6; }
4332 EGREP="$ac_cv_path_EGREP"
4333
4334
4335{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4336$as_echo_n "checking for ANSI C header files... " >&6; }
4337if test "${ac_cv_header_stdc+set}" = set; then
4338  $as_echo_n "(cached) " >&6
4339else
4340  cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346#include <stdlib.h>
4347#include <stdarg.h>
4348#include <string.h>
4349#include <float.h>
4350
4351int
4352main ()
4353{
4354
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext
4360if { (ac_try="$ac_compile"
4361case "(($ac_try" in
4362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363  *) ac_try_echo=$ac_try;;
4364esac
4365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4366$as_echo "$ac_try_echo") >&5
4367  (eval "$ac_compile") 2>conftest.er1
4368  ac_status=$?
4369  grep -v '^ *+' conftest.er1 >conftest.err
4370  rm -f conftest.er1
4371  cat conftest.err >&5
4372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); } && {
4374	 test -z "$ac_c_werror_flag" ||
4375	 test ! -s conftest.err
4376       } && test -s conftest.$ac_objext; then
4377  ac_cv_header_stdc=yes
4378else
4379  $as_echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382	ac_cv_header_stdc=no
4383fi
4384
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386
4387if test $ac_cv_header_stdc = yes; then
4388  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4389  cat >conftest.$ac_ext <<_ACEOF
4390/* confdefs.h.  */
4391_ACEOF
4392cat confdefs.h >>conftest.$ac_ext
4393cat >>conftest.$ac_ext <<_ACEOF
4394/* end confdefs.h.  */
4395#include <string.h>
4396
4397_ACEOF
4398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399  $EGREP "memchr" >/dev/null 2>&1; then
4400  :
4401else
4402  ac_cv_header_stdc=no
4403fi
4404rm -f conftest*
4405
4406fi
4407
4408if test $ac_cv_header_stdc = yes; then
4409  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4410  cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h.  */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h.  */
4416#include <stdlib.h>
4417
4418_ACEOF
4419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420  $EGREP "free" >/dev/null 2>&1; then
4421  :
4422else
4423  ac_cv_header_stdc=no
4424fi
4425rm -f conftest*
4426
4427fi
4428
4429if test $ac_cv_header_stdc = yes; then
4430  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4431  if test "$cross_compiling" = yes; then
4432  :
4433else
4434  cat >conftest.$ac_ext <<_ACEOF
4435/* confdefs.h.  */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h.  */
4440#include <ctype.h>
4441#include <stdlib.h>
4442#if ((' ' & 0x0FF) == 0x020)
4443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4445#else
4446# define ISLOWER(c) \
4447		   (('a' <= (c) && (c) <= 'i') \
4448		     || ('j' <= (c) && (c) <= 'r') \
4449		     || ('s' <= (c) && (c) <= 'z'))
4450# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4451#endif
4452
4453#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4454int
4455main ()
4456{
4457  int i;
4458  for (i = 0; i < 256; i++)
4459    if (XOR (islower (i), ISLOWER (i))
4460	|| toupper (i) != TOUPPER (i))
4461      return 2;
4462  return 0;
4463}
4464_ACEOF
4465rm -f conftest$ac_exeext
4466if { (ac_try="$ac_link"
4467case "(($ac_try" in
4468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469  *) ac_try_echo=$ac_try;;
4470esac
4471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4472$as_echo "$ac_try_echo") >&5
4473  (eval "$ac_link") 2>&5
4474  ac_status=$?
4475  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4477  { (case "(($ac_try" in
4478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479  *) ac_try_echo=$ac_try;;
4480esac
4481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482$as_echo "$ac_try_echo") >&5
4483  (eval "$ac_try") 2>&5
4484  ac_status=$?
4485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; }; then
4487  :
4488else
4489  $as_echo "$as_me: program exited with status $ac_status" >&5
4490$as_echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493( exit $ac_status )
4494ac_cv_header_stdc=no
4495fi
4496rm -rf conftest.dSYM
4497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498fi
4499
4500
4501fi
4502fi
4503{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4504$as_echo "$ac_cv_header_stdc" >&6; }
4505if test $ac_cv_header_stdc = yes; then
4506
4507cat >>confdefs.h <<\_ACEOF
4508#define STDC_HEADERS 1
4509_ACEOF
4510
4511fi
4512
4513# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4524		  inttypes.h stdint.h unistd.h
4525do
4526as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4528$as_echo_n "checking for $ac_header... " >&6; }
4529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4530  $as_echo_n "(cached) " >&6
4531else
4532  cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538$ac_includes_default
4539
4540#include <$ac_header>
4541_ACEOF
4542rm -f conftest.$ac_objext
4543if { (ac_try="$ac_compile"
4544case "(($ac_try" in
4545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546  *) ac_try_echo=$ac_try;;
4547esac
4548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549$as_echo "$ac_try_echo") >&5
4550  (eval "$ac_compile") 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } && {
4557	 test -z "$ac_c_werror_flag" ||
4558	 test ! -s conftest.err
4559       } && test -s conftest.$ac_objext; then
4560  eval "$as_ac_Header=yes"
4561else
4562  $as_echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565	eval "$as_ac_Header=no"
4566fi
4567
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569fi
4570ac_res=`eval 'as_val=${'$as_ac_Header'}
4571		 $as_echo "$as_val"'`
4572	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4573$as_echo "$ac_res" >&6; }
4574as_val=`eval 'as_val=${'$as_ac_Header'}
4575		 $as_echo "$as_val"'`
4576   if test "x$as_val" = x""yes; then
4577  cat >>confdefs.h <<_ACEOF
4578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579_ACEOF
4580
4581fi
4582
4583done
4584
4585
4586
4587
4588if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4589	if test -n "$ac_tool_prefix"; then
4590  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4591set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4592{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4595  $as_echo_n "(cached) " >&6
4596else
4597  case $PKG_CONFIG in
4598  [\\/]* | ?:[\\/]*)
4599  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4600  ;;
4601  *)
4602  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605  IFS=$as_save_IFS
4606  test -z "$as_dir" && as_dir=.
4607  for ac_exec_ext in '' $ac_executable_extensions; do
4608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4610    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611    break 2
4612  fi
4613done
4614done
4615IFS=$as_save_IFS
4616
4617  ;;
4618esac
4619fi
4620PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4621if test -n "$PKG_CONFIG"; then
4622  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4623$as_echo "$PKG_CONFIG" >&6; }
4624else
4625  { $as_echo "$as_me:$LINENO: result: no" >&5
4626$as_echo "no" >&6; }
4627fi
4628
4629
4630fi
4631if test -z "$ac_cv_path_PKG_CONFIG"; then
4632  ac_pt_PKG_CONFIG=$PKG_CONFIG
4633  # Extract the first word of "pkg-config", so it can be a program name with args.
4634set dummy pkg-config; ac_word=$2
4635{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4636$as_echo_n "checking for $ac_word... " >&6; }
4637if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4638  $as_echo_n "(cached) " >&6
4639else
4640  case $ac_pt_PKG_CONFIG in
4641  [\\/]* | ?:[\\/]*)
4642  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4643  ;;
4644  *)
4645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650  for ac_exec_ext in '' $ac_executable_extensions; do
4651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4653    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654    break 2
4655  fi
4656done
4657done
4658IFS=$as_save_IFS
4659
4660  ;;
4661esac
4662fi
4663ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4664if test -n "$ac_pt_PKG_CONFIG"; then
4665  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4666$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4667else
4668  { $as_echo "$as_me:$LINENO: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672  if test "x$ac_pt_PKG_CONFIG" = x; then
4673    PKG_CONFIG=""
4674  else
4675    case $cross_compiling:$ac_tool_warned in
4676yes:)
4677{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679ac_tool_warned=yes ;;
4680esac
4681    PKG_CONFIG=$ac_pt_PKG_CONFIG
4682  fi
4683else
4684  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4685fi
4686
4687fi
4688if test -n "$PKG_CONFIG"; then
4689	_pkg_min_version=0.9.0
4690	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4691$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4692	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4693		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4694$as_echo "yes" >&6; }
4695	else
4696		{ $as_echo "$as_me:$LINENO: result: no" >&5
4697$as_echo "no" >&6; }
4698		PKG_CONFIG=""
4699	fi
4700
4701fi
4702# Make sure we can run config.sub.
4703$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4704  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4705$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4706   { (exit 1); exit 1; }; }
4707
4708{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4709$as_echo_n "checking build system type... " >&6; }
4710if test "${ac_cv_build+set}" = set; then
4711  $as_echo_n "(cached) " >&6
4712else
4713  ac_build_alias=$build_alias
4714test "x$ac_build_alias" = x &&
4715  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4716test "x$ac_build_alias" = x &&
4717  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4718$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4719   { (exit 1); exit 1; }; }
4720ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4721  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4722$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4723   { (exit 1); exit 1; }; }
4724
4725fi
4726{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4727$as_echo "$ac_cv_build" >&6; }
4728case $ac_cv_build in
4729*-*-*) ;;
4730*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4731$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4732   { (exit 1); exit 1; }; };;
4733esac
4734build=$ac_cv_build
4735ac_save_IFS=$IFS; IFS='-'
4736set x $ac_cv_build
4737shift
4738build_cpu=$1
4739build_vendor=$2
4740shift; shift
4741# Remember, the first character of IFS is used to create $*,
4742# except with old shells:
4743build_os=$*
4744IFS=$ac_save_IFS
4745case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4746
4747
4748{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4749$as_echo_n "checking host system type... " >&6; }
4750if test "${ac_cv_host+set}" = set; then
4751  $as_echo_n "(cached) " >&6
4752else
4753  if test "x$host_alias" = x; then
4754  ac_cv_host=$ac_cv_build
4755else
4756  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4757    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4758$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4759   { (exit 1); exit 1; }; }
4760fi
4761
4762fi
4763{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4764$as_echo "$ac_cv_host" >&6; }
4765case $ac_cv_host in
4766*-*-*) ;;
4767*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4768$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4769   { (exit 1); exit 1; }; };;
4770esac
4771host=$ac_cv_host
4772ac_save_IFS=$IFS; IFS='-'
4773set x $ac_cv_host
4774shift
4775host_cpu=$1
4776host_vendor=$2
4777shift; shift
4778# Remember, the first character of IFS is used to create $*,
4779# except with old shells:
4780host_os=$*
4781IFS=$ac_save_IFS
4782case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4783
4784
4785{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4786$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4787if test "${ac_cv_path_SED+set}" = set; then
4788  $as_echo_n "(cached) " >&6
4789else
4790            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4791     for ac_i in 1 2 3 4 5 6 7; do
4792       ac_script="$ac_script$as_nl$ac_script"
4793     done
4794     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4795     $as_unset ac_script || ac_script=
4796     if test -z "$SED"; then
4797  ac_path_SED_found=false
4798  # Loop through the user's path and test for each of PROGNAME-LIST
4799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802  IFS=$as_save_IFS
4803  test -z "$as_dir" && as_dir=.
4804  for ac_prog in sed gsed; do
4805    for ac_exec_ext in '' $ac_executable_extensions; do
4806      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4807      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4808# Check for GNU ac_path_SED and select it if it is found.
4809  # Check for GNU $ac_path_SED
4810case `"$ac_path_SED" --version 2>&1` in
4811*GNU*)
4812  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4813*)
4814  ac_count=0
4815  $as_echo_n 0123456789 >"conftest.in"
4816  while :
4817  do
4818    cat "conftest.in" "conftest.in" >"conftest.tmp"
4819    mv "conftest.tmp" "conftest.in"
4820    cp "conftest.in" "conftest.nl"
4821    $as_echo '' >> "conftest.nl"
4822    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824    ac_count=`expr $ac_count + 1`
4825    if test $ac_count -gt ${ac_path_SED_max-0}; then
4826      # Best one so far, save it but keep looking for a better one
4827      ac_cv_path_SED="$ac_path_SED"
4828      ac_path_SED_max=$ac_count
4829    fi
4830    # 10*(2^10) chars as input seems more than enough
4831    test $ac_count -gt 10 && break
4832  done
4833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834esac
4835
4836      $ac_path_SED_found && break 3
4837    done
4838  done
4839done
4840IFS=$as_save_IFS
4841  if test -z "$ac_cv_path_SED"; then
4842    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4843$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4844   { (exit 1); exit 1; }; }
4845  fi
4846else
4847  ac_cv_path_SED=$SED
4848fi
4849
4850fi
4851{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4852$as_echo "$ac_cv_path_SED" >&6; }
4853 SED="$ac_cv_path_SED"
4854  rm -f conftest.sed
4855
4856
4857
4858
4859
4860if  test "x$GCC" = xyes ; then
4861    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4862-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4863-Wbad-function-cast -Wformat=2"
4864    case `$CC -dumpversion` in
4865    3.4.* | 4.*)
4866	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4867	;;
4868    esac
4869else
4870    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4871$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4872if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4873  $as_echo_n "(cached) " >&6
4874else
4875  cat >conftest.$ac_ext <<_ACEOF
4876/* confdefs.h.  */
4877_ACEOF
4878cat confdefs.h >>conftest.$ac_ext
4879cat >>conftest.$ac_ext <<_ACEOF
4880/* end confdefs.h.  */
4881$ac_includes_default
4882int
4883main ()
4884{
4885#ifndef __SUNPRO_C
4886  (void) __SUNPRO_C;
4887#endif
4888
4889  ;
4890  return 0;
4891}
4892_ACEOF
4893rm -f conftest.$ac_objext
4894if { (ac_try="$ac_compile"
4895case "(($ac_try" in
4896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897  *) ac_try_echo=$ac_try;;
4898esac
4899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900$as_echo "$ac_try_echo") >&5
4901  (eval "$ac_compile") 2>conftest.er1
4902  ac_status=$?
4903  grep -v '^ *+' conftest.er1 >conftest.err
4904  rm -f conftest.er1
4905  cat conftest.err >&5
4906  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); } && {
4908	 test -z "$ac_c_werror_flag" ||
4909	 test ! -s conftest.err
4910       } && test -s conftest.$ac_objext; then
4911  ac_cv_have_decl___SUNPRO_C=yes
4912else
4913  $as_echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916	ac_cv_have_decl___SUNPRO_C=no
4917fi
4918
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4922$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4923if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4924  SUNCC="yes"
4925else
4926  SUNCC="no"
4927fi
4928
4929    if test "x$SUNCC" = "xyes"; then
4930	CWARNFLAGS="-v"
4931    fi
4932fi
4933
4934
4935
4936# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4937
4938
4939
4940# Check whether --enable-strict-compilation was given.
4941if test "${enable_strict_compilation+set}" = set; then
4942  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4943else
4944  STRICT_COMPILE=no
4945fi
4946
4947if test "x$STRICT_COMPILE" = "xyes"; then
4948	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4949$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4950if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4951  $as_echo_n "(cached) " >&6
4952else
4953  cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h.  */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h.  */
4959$ac_includes_default
4960int
4961main ()
4962{
4963#ifndef __SUNPRO_C
4964  (void) __SUNPRO_C;
4965#endif
4966
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971rm -f conftest.$ac_objext
4972if { (ac_try="$ac_compile"
4973case "(($ac_try" in
4974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975  *) ac_try_echo=$ac_try;;
4976esac
4977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978$as_echo "$ac_try_echo") >&5
4979  (eval "$ac_compile") 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } && {
4986	 test -z "$ac_c_werror_flag" ||
4987	 test ! -s conftest.err
4988       } && test -s conftest.$ac_objext; then
4989  ac_cv_have_decl___SUNPRO_C=yes
4990else
4991  $as_echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994	ac_cv_have_decl___SUNPRO_C=no
4995fi
4996
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998fi
4999{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5000$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
5001if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
5002  SUNCC="yes"
5003else
5004  SUNCC="no"
5005fi
5006
5007	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5008$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
5009if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5010  $as_echo_n "(cached) " >&6
5011else
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018$ac_includes_default
5019int
5020main ()
5021{
5022#ifndef __INTEL_COMPILER
5023  (void) __INTEL_COMPILER;
5024#endif
5025
5026  ;
5027  return 0;
5028}
5029_ACEOF
5030rm -f conftest.$ac_objext
5031if { (ac_try="$ac_compile"
5032case "(($ac_try" in
5033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034  *) ac_try_echo=$ac_try;;
5035esac
5036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5037$as_echo "$ac_try_echo") >&5
5038  (eval "$ac_compile") 2>conftest.er1
5039  ac_status=$?
5040  grep -v '^ *+' conftest.er1 >conftest.err
5041  rm -f conftest.er1
5042  cat conftest.err >&5
5043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); } && {
5045	 test -z "$ac_c_werror_flag" ||
5046	 test ! -s conftest.err
5047       } && test -s conftest.$ac_objext; then
5048  ac_cv_have_decl___INTEL_COMPILER=yes
5049else
5050  $as_echo "$as_me: failed program was:" >&5
5051sed 's/^/| /' conftest.$ac_ext >&5
5052
5053	ac_cv_have_decl___INTEL_COMPILER=no
5054fi
5055
5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057fi
5058{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5059$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5060if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5061  INTELCC="yes"
5062else
5063  INTELCC="no"
5064fi
5065
5066	if test "x$GCC" = xyes ; then
5067		STRICT_CFLAGS="-pedantic -Werror"
5068	elif test "x$SUNCC" = "xyes"; then
5069		STRICT_CFLAGS="-errwarn"
5070    elif test "x$INTELCC" = "xyes"; then
5071		STRICT_CFLAGS="-Werror"
5072	fi
5073fi
5074CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5075
5076
5077
5078
5079cat >>confdefs.h <<_ACEOF
5080#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5081_ACEOF
5082
5083	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5084	if test "x$PVM" = "x"; then
5085		PVM="0"
5086	fi
5087
5088cat >>confdefs.h <<_ACEOF
5089#define PACKAGE_VERSION_MINOR $PVM
5090_ACEOF
5091
5092	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5093	if test "x$PVP" = "x"; then
5094		PVP="0"
5095	fi
5096
5097cat >>confdefs.h <<_ACEOF
5098#define PACKAGE_VERSION_PATCHLEVEL $PVP
5099_ACEOF
5100
5101
5102
5103CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5104mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5105|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5106echo 'git directory not found: installing possibly empty changelog.' >&2)"
5107
5108
5109
5110
5111macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5112INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5113mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5114|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5115echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5116
5117
5118
5119
5120
5121
5122if test x$APP_MAN_SUFFIX = x    ; then
5123    APP_MAN_SUFFIX=1
5124fi
5125if test x$APP_MAN_DIR = x    ; then
5126    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5127fi
5128
5129if test x$LIB_MAN_SUFFIX = x    ; then
5130    LIB_MAN_SUFFIX=3
5131fi
5132if test x$LIB_MAN_DIR = x    ; then
5133    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5134fi
5135
5136if test x$FILE_MAN_SUFFIX = x    ; then
5137    case $host_os in
5138	solaris*)	FILE_MAN_SUFFIX=4  ;;
5139	*)		FILE_MAN_SUFFIX=5  ;;
5140    esac
5141fi
5142if test x$FILE_MAN_DIR = x    ; then
5143    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5144fi
5145
5146if test x$MISC_MAN_SUFFIX = x    ; then
5147    case $host_os in
5148	solaris*)	MISC_MAN_SUFFIX=5  ;;
5149	*)		MISC_MAN_SUFFIX=7  ;;
5150    esac
5151fi
5152if test x$MISC_MAN_DIR = x    ; then
5153    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5154fi
5155
5156if test x$DRIVER_MAN_SUFFIX = x    ; then
5157    case $host_os in
5158	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5159	*)		DRIVER_MAN_SUFFIX=4  ;;
5160    esac
5161fi
5162if test x$DRIVER_MAN_DIR = x    ; then
5163    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5164fi
5165
5166if test x$ADMIN_MAN_SUFFIX = x    ; then
5167    case $host_os in
5168	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5169	*)		ADMIN_MAN_SUFFIX=8  ;;
5170    esac
5171fi
5172if test x$ADMIN_MAN_DIR = x    ; then
5173    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5174fi
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190XORG_MAN_PAGE="X Version 11"
5191
5192MAN_SUBSTS="\
5193	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5194	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5195	-e 's|__xservername__|Xorg|g' \
5196	-e 's|__xconfigfile__|xorg.conf|g' \
5197	-e 's|__projectroot__|\$(prefix)|g' \
5198	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5199	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5200	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5201	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5202	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5203	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5204
5205
5206
5207# Check whether --enable-silent-rules was given.
5208if test "${enable_silent_rules+set}" = set; then
5209  enableval=$enable_silent_rules;
5210fi
5211
5212case $enable_silent_rules in
5213yes) AM_DEFAULT_VERBOSITY=0;;
5214no)  AM_DEFAULT_VERBOSITY=1;;
5215*)   AM_DEFAULT_VERBOSITY=0;;
5216esac
5217AM_BACKSLASH='\'
5218
5219
5220
5221# Initialize libtool
5222# Check whether --enable-static was given.
5223if test "${enable_static+set}" = set; then
5224  enableval=$enable_static; p=${PACKAGE-default}
5225    case $enableval in
5226    yes) enable_static=yes ;;
5227    no) enable_static=no ;;
5228    *)
5229     enable_static=no
5230      # Look at the argument we got.  We use all the common list separators.
5231      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5232      for pkg in $enableval; do
5233	IFS="$lt_save_ifs"
5234	if test "X$pkg" = "X$p"; then
5235	  enable_static=yes
5236	fi
5237      done
5238      IFS="$lt_save_ifs"
5239      ;;
5240    esac
5241else
5242  enable_static=no
5243fi
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253case `pwd` in
5254  *\ * | *\	*)
5255    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5256$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5257esac
5258
5259
5260
5261macro_version='2.2.6b'
5262macro_revision='1.3017'
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276ltmain="$ac_aux_dir/ltmain.sh"
5277
5278{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5279$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5280if test "${ac_cv_path_SED+set}" = set; then
5281  $as_echo_n "(cached) " >&6
5282else
5283            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5284     for ac_i in 1 2 3 4 5 6 7; do
5285       ac_script="$ac_script$as_nl$ac_script"
5286     done
5287     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5288     $as_unset ac_script || ac_script=
5289     if test -z "$SED"; then
5290  ac_path_SED_found=false
5291  # Loop through the user's path and test for each of PROGNAME-LIST
5292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297  for ac_prog in sed gsed; do
5298    for ac_exec_ext in '' $ac_executable_extensions; do
5299      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5300      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5301# Check for GNU ac_path_SED and select it if it is found.
5302  # Check for GNU $ac_path_SED
5303case `"$ac_path_SED" --version 2>&1` in
5304*GNU*)
5305  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5306*)
5307  ac_count=0
5308  $as_echo_n 0123456789 >"conftest.in"
5309  while :
5310  do
5311    cat "conftest.in" "conftest.in" >"conftest.tmp"
5312    mv "conftest.tmp" "conftest.in"
5313    cp "conftest.in" "conftest.nl"
5314    $as_echo '' >> "conftest.nl"
5315    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5316    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5317    ac_count=`expr $ac_count + 1`
5318    if test $ac_count -gt ${ac_path_SED_max-0}; then
5319      # Best one so far, save it but keep looking for a better one
5320      ac_cv_path_SED="$ac_path_SED"
5321      ac_path_SED_max=$ac_count
5322    fi
5323    # 10*(2^10) chars as input seems more than enough
5324    test $ac_count -gt 10 && break
5325  done
5326  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327esac
5328
5329      $ac_path_SED_found && break 3
5330    done
5331  done
5332done
5333IFS=$as_save_IFS
5334  if test -z "$ac_cv_path_SED"; then
5335    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5336$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5337   { (exit 1); exit 1; }; }
5338  fi
5339else
5340  ac_cv_path_SED=$SED
5341fi
5342
5343fi
5344{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5345$as_echo "$ac_cv_path_SED" >&6; }
5346 SED="$ac_cv_path_SED"
5347  rm -f conftest.sed
5348
5349test -z "$SED" && SED=sed
5350Xsed="$SED -e 1s/^X//"
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5363$as_echo_n "checking for fgrep... " >&6; }
5364if test "${ac_cv_path_FGREP+set}" = set; then
5365  $as_echo_n "(cached) " >&6
5366else
5367  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5368   then ac_cv_path_FGREP="$GREP -F"
5369   else
5370     if test -z "$FGREP"; then
5371  ac_path_FGREP_found=false
5372  # Loop through the user's path and test for each of PROGNAME-LIST
5373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5375do
5376  IFS=$as_save_IFS
5377  test -z "$as_dir" && as_dir=.
5378  for ac_prog in fgrep; do
5379    for ac_exec_ext in '' $ac_executable_extensions; do
5380      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5381      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5382# Check for GNU ac_path_FGREP and select it if it is found.
5383  # Check for GNU $ac_path_FGREP
5384case `"$ac_path_FGREP" --version 2>&1` in
5385*GNU*)
5386  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5387*)
5388  ac_count=0
5389  $as_echo_n 0123456789 >"conftest.in"
5390  while :
5391  do
5392    cat "conftest.in" "conftest.in" >"conftest.tmp"
5393    mv "conftest.tmp" "conftest.in"
5394    cp "conftest.in" "conftest.nl"
5395    $as_echo 'FGREP' >> "conftest.nl"
5396    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5397    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5398    ac_count=`expr $ac_count + 1`
5399    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5400      # Best one so far, save it but keep looking for a better one
5401      ac_cv_path_FGREP="$ac_path_FGREP"
5402      ac_path_FGREP_max=$ac_count
5403    fi
5404    # 10*(2^10) chars as input seems more than enough
5405    test $ac_count -gt 10 && break
5406  done
5407  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5408esac
5409
5410      $ac_path_FGREP_found && break 3
5411    done
5412  done
5413done
5414IFS=$as_save_IFS
5415  if test -z "$ac_cv_path_FGREP"; then
5416    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5417$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5418   { (exit 1); exit 1; }; }
5419  fi
5420else
5421  ac_cv_path_FGREP=$FGREP
5422fi
5423
5424   fi
5425fi
5426{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5427$as_echo "$ac_cv_path_FGREP" >&6; }
5428 FGREP="$ac_cv_path_FGREP"
5429
5430
5431test -z "$GREP" && GREP=grep
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451# Check whether --with-gnu-ld was given.
5452if test "${with_gnu_ld+set}" = set; then
5453  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5454else
5455  with_gnu_ld=no
5456fi
5457
5458ac_prog=ld
5459if test "$GCC" = yes; then
5460  # Check if gcc -print-prog-name=ld gives a path.
5461  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5462$as_echo_n "checking for ld used by $CC... " >&6; }
5463  case $host in
5464  *-*-mingw*)
5465    # gcc leaves a trailing carriage return which upsets mingw
5466    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5467  *)
5468    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5469  esac
5470  case $ac_prog in
5471    # Accept absolute paths.
5472    [\\/]* | ?:[\\/]*)
5473      re_direlt='/[^/][^/]*/\.\./'
5474      # Canonicalize the pathname of ld
5475      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5476      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5477	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5478      done
5479      test -z "$LD" && LD="$ac_prog"
5480      ;;
5481  "")
5482    # If it fails, then pretend we aren't using GCC.
5483    ac_prog=ld
5484    ;;
5485  *)
5486    # If it is relative, then search for the first ld in PATH.
5487    with_gnu_ld=unknown
5488    ;;
5489  esac
5490elif test "$with_gnu_ld" = yes; then
5491  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5492$as_echo_n "checking for GNU ld... " >&6; }
5493else
5494  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5495$as_echo_n "checking for non-GNU ld... " >&6; }
5496fi
5497if test "${lt_cv_path_LD+set}" = set; then
5498  $as_echo_n "(cached) " >&6
5499else
5500  if test -z "$LD"; then
5501  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502  for ac_dir in $PATH; do
5503    IFS="$lt_save_ifs"
5504    test -z "$ac_dir" && ac_dir=.
5505    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5506      lt_cv_path_LD="$ac_dir/$ac_prog"
5507      # Check to see if the program is GNU ld.  I'd rather use --version,
5508      # but apparently some variants of GNU ld only accept -v.
5509      # Break only if it was the GNU/non-GNU ld that we prefer.
5510      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5511      *GNU* | *'with BFD'*)
5512	test "$with_gnu_ld" != no && break
5513	;;
5514      *)
5515	test "$with_gnu_ld" != yes && break
5516	;;
5517      esac
5518    fi
5519  done
5520  IFS="$lt_save_ifs"
5521else
5522  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5523fi
5524fi
5525
5526LD="$lt_cv_path_LD"
5527if test -n "$LD"; then
5528  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5529$as_echo "$LD" >&6; }
5530else
5531  { $as_echo "$as_me:$LINENO: result: no" >&5
5532$as_echo "no" >&6; }
5533fi
5534test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5535$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5536   { (exit 1); exit 1; }; }
5537{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5538$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5539if test "${lt_cv_prog_gnu_ld+set}" = set; then
5540  $as_echo_n "(cached) " >&6
5541else
5542  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5543case `$LD -v 2>&1 </dev/null` in
5544*GNU* | *'with BFD'*)
5545  lt_cv_prog_gnu_ld=yes
5546  ;;
5547*)
5548  lt_cv_prog_gnu_ld=no
5549  ;;
5550esac
5551fi
5552{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5553$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5554with_gnu_ld=$lt_cv_prog_gnu_ld
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5565$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5566if test "${lt_cv_path_NM+set}" = set; then
5567  $as_echo_n "(cached) " >&6
5568else
5569  if test -n "$NM"; then
5570  # Let the user override the test.
5571  lt_cv_path_NM="$NM"
5572else
5573  lt_nm_to_check="${ac_tool_prefix}nm"
5574  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5575    lt_nm_to_check="$lt_nm_to_check nm"
5576  fi
5577  for lt_tmp_nm in $lt_nm_to_check; do
5578    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580      IFS="$lt_save_ifs"
5581      test -z "$ac_dir" && ac_dir=.
5582      tmp_nm="$ac_dir/$lt_tmp_nm"
5583      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5584	# Check to see if the nm accepts a BSD-compat flag.
5585	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5586	#   nm: unknown option "B" ignored
5587	# Tru64's nm complains that /dev/null is an invalid object file
5588	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5589	*/dev/null* | *'Invalid file or object type'*)
5590	  lt_cv_path_NM="$tmp_nm -B"
5591	  break
5592	  ;;
5593	*)
5594	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5595	  */dev/null*)
5596	    lt_cv_path_NM="$tmp_nm -p"
5597	    break
5598	    ;;
5599	  *)
5600	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5601	    continue # so that we can try to find one that supports BSD flags
5602	    ;;
5603	  esac
5604	  ;;
5605	esac
5606      fi
5607    done
5608    IFS="$lt_save_ifs"
5609  done
5610  : ${lt_cv_path_NM=no}
5611fi
5612fi
5613{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5614$as_echo "$lt_cv_path_NM" >&6; }
5615if test "$lt_cv_path_NM" != "no"; then
5616  NM="$lt_cv_path_NM"
5617else
5618  # Didn't find any BSD compatible name lister, look for dumpbin.
5619  if test -n "$ac_tool_prefix"; then
5620  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5621  do
5622    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5624{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5625$as_echo_n "checking for $ac_word... " >&6; }
5626if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5627  $as_echo_n "(cached) " >&6
5628else
5629  if test -n "$DUMPBIN"; then
5630  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  test -z "$as_dir" && as_dir=.
5637  for ac_exec_ext in '' $ac_executable_extensions; do
5638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5640    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641    break 2
5642  fi
5643done
5644done
5645IFS=$as_save_IFS
5646
5647fi
5648fi
5649DUMPBIN=$ac_cv_prog_DUMPBIN
5650if test -n "$DUMPBIN"; then
5651  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5652$as_echo "$DUMPBIN" >&6; }
5653else
5654  { $as_echo "$as_me:$LINENO: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658
5659    test -n "$DUMPBIN" && break
5660  done
5661fi
5662if test -z "$DUMPBIN"; then
5663  ac_ct_DUMPBIN=$DUMPBIN
5664  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5665do
5666  # Extract the first word of "$ac_prog", so it can be a program name with args.
5667set dummy $ac_prog; ac_word=$2
5668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5669$as_echo_n "checking for $ac_word... " >&6; }
5670if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5671  $as_echo_n "(cached) " >&6
5672else
5673  if test -n "$ac_ct_DUMPBIN"; then
5674  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681  for ac_exec_ext in '' $ac_executable_extensions; do
5682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5684    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5694if test -n "$ac_ct_DUMPBIN"; then
5695  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5696$as_echo "$ac_ct_DUMPBIN" >&6; }
5697else
5698  { $as_echo "$as_me:$LINENO: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
5701
5702
5703  test -n "$ac_ct_DUMPBIN" && break
5704done
5705
5706  if test "x$ac_ct_DUMPBIN" = x; then
5707    DUMPBIN=":"
5708  else
5709    case $cross_compiling:$ac_tool_warned in
5710yes:)
5711{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713ac_tool_warned=yes ;;
5714esac
5715    DUMPBIN=$ac_ct_DUMPBIN
5716  fi
5717fi
5718
5719
5720  if test "$DUMPBIN" != ":"; then
5721    NM="$DUMPBIN"
5722  fi
5723fi
5724test -z "$NM" && NM=nm
5725
5726
5727
5728
5729
5730
5731{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5732$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5733if test "${lt_cv_nm_interface+set}" = set; then
5734  $as_echo_n "(cached) " >&6
5735else
5736  lt_cv_nm_interface="BSD nm"
5737  echo "int some_variable = 0;" > conftest.$ac_ext
5738  (eval echo "\"\$as_me:5738: $ac_compile\"" >&5)
5739  (eval "$ac_compile" 2>conftest.err)
5740  cat conftest.err >&5
5741  (eval echo "\"\$as_me:5741: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5742  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5743  cat conftest.err >&5
5744  (eval echo "\"\$as_me:5744: output\"" >&5)
5745  cat conftest.out >&5
5746  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5747    lt_cv_nm_interface="MS dumpbin"
5748  fi
5749  rm -f conftest*
5750fi
5751{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5752$as_echo "$lt_cv_nm_interface" >&6; }
5753
5754{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5755$as_echo_n "checking whether ln -s works... " >&6; }
5756LN_S=$as_ln_s
5757if test "$LN_S" = "ln -s"; then
5758  { $as_echo "$as_me:$LINENO: result: yes" >&5
5759$as_echo "yes" >&6; }
5760else
5761  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5762$as_echo "no, using $LN_S" >&6; }
5763fi
5764
5765# find the maximum length of command line arguments
5766{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5767$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5768if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5769  $as_echo_n "(cached) " >&6
5770else
5771    i=0
5772  teststring="ABCD"
5773
5774  case $build_os in
5775  msdosdjgpp*)
5776    # On DJGPP, this test can blow up pretty badly due to problems in libc
5777    # (any single argument exceeding 2000 bytes causes a buffer overrun
5778    # during glob expansion).  Even if it were fixed, the result of this
5779    # check would be larger than it should be.
5780    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5781    ;;
5782
5783  gnu*)
5784    # Under GNU Hurd, this test is not required because there is
5785    # no limit to the length of command line arguments.
5786    # Libtool will interpret -1 as no limit whatsoever
5787    lt_cv_sys_max_cmd_len=-1;
5788    ;;
5789
5790  cygwin* | mingw* | cegcc*)
5791    # On Win9x/ME, this test blows up -- it succeeds, but takes
5792    # about 5 minutes as the teststring grows exponentially.
5793    # Worse, since 9x/ME are not pre-emptively multitasking,
5794    # you end up with a "frozen" computer, even though with patience
5795    # the test eventually succeeds (with a max line length of 256k).
5796    # Instead, let's just punt: use the minimum linelength reported by
5797    # all of the supported platforms: 8192 (on NT/2K/XP).
5798    lt_cv_sys_max_cmd_len=8192;
5799    ;;
5800
5801  amigaos*)
5802    # On AmigaOS with pdksh, this test takes hours, literally.
5803    # So we just punt and use a minimum line length of 8192.
5804    lt_cv_sys_max_cmd_len=8192;
5805    ;;
5806
5807  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5808    # This has been around since 386BSD, at least.  Likely further.
5809    if test -x /sbin/sysctl; then
5810      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5811    elif test -x /usr/sbin/sysctl; then
5812      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5813    else
5814      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5815    fi
5816    # And add a safety zone
5817    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5818    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5819    ;;
5820
5821  interix*)
5822    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5823    lt_cv_sys_max_cmd_len=196608
5824    ;;
5825
5826  osf*)
5827    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5828    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5829    # nice to cause kernel panics so lets avoid the loop below.
5830    # First set a reasonable default.
5831    lt_cv_sys_max_cmd_len=16384
5832    #
5833    if test -x /sbin/sysconfig; then
5834      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5835        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5836      esac
5837    fi
5838    ;;
5839  sco3.2v5*)
5840    lt_cv_sys_max_cmd_len=102400
5841    ;;
5842  sysv5* | sco5v6* | sysv4.2uw2*)
5843    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5844    if test -n "$kargmax"; then
5845      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5846    else
5847      lt_cv_sys_max_cmd_len=32768
5848    fi
5849    ;;
5850  *)
5851    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5852    if test -n "$lt_cv_sys_max_cmd_len"; then
5853      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5854      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5855    else
5856      # Make teststring a little bigger before we do anything with it.
5857      # a 1K string should be a reasonable start.
5858      for i in 1 2 3 4 5 6 7 8 ; do
5859        teststring=$teststring$teststring
5860      done
5861      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5862      # If test is not a shell built-in, we'll probably end up computing a
5863      # maximum length that is only half of the actual maximum length, but
5864      # we can't tell.
5865      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5866	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5867	      test $i != 17 # 1/2 MB should be enough
5868      do
5869        i=`expr $i + 1`
5870        teststring=$teststring$teststring
5871      done
5872      # Only check the string length outside the loop.
5873      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5874      teststring=
5875      # Add a significant safety factor because C++ compilers can tack on
5876      # massive amounts of additional arguments before passing them to the
5877      # linker.  It appears as though 1/2 is a usable value.
5878      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5879    fi
5880    ;;
5881  esac
5882
5883fi
5884
5885if test -n $lt_cv_sys_max_cmd_len ; then
5886  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5887$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5888else
5889  { $as_echo "$as_me:$LINENO: result: none" >&5
5890$as_echo "none" >&6; }
5891fi
5892max_cmd_len=$lt_cv_sys_max_cmd_len
5893
5894
5895
5896
5897
5898
5899: ${CP="cp -f"}
5900: ${MV="mv -f"}
5901: ${RM="rm -f"}
5902
5903{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5904$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5905# Try some XSI features
5906xsi_shell=no
5907( _lt_dummy="a/b/c"
5908  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5909      = c,a/b,, \
5910    && eval 'test $(( 1 + 1 )) -eq 2 \
5911    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5912  && xsi_shell=yes
5913{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5914$as_echo "$xsi_shell" >&6; }
5915
5916
5917{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5918$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5919lt_shell_append=no
5920( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5921    >/dev/null 2>&1 \
5922  && lt_shell_append=yes
5923{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5924$as_echo "$lt_shell_append" >&6; }
5925
5926
5927if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5928  lt_unset=unset
5929else
5930  lt_unset=false
5931fi
5932
5933
5934
5935
5936
5937# test EBCDIC or ASCII
5938case `echo X|tr X '\101'` in
5939 A) # ASCII based system
5940    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5941  lt_SP2NL='tr \040 \012'
5942  lt_NL2SP='tr \015\012 \040\040'
5943  ;;
5944 *) # EBCDIC based system
5945  lt_SP2NL='tr \100 \n'
5946  lt_NL2SP='tr \r\n \100\100'
5947  ;;
5948esac
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5959$as_echo_n "checking for $LD option to reload object files... " >&6; }
5960if test "${lt_cv_ld_reload_flag+set}" = set; then
5961  $as_echo_n "(cached) " >&6
5962else
5963  lt_cv_ld_reload_flag='-r'
5964fi
5965{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5966$as_echo "$lt_cv_ld_reload_flag" >&6; }
5967reload_flag=$lt_cv_ld_reload_flag
5968case $reload_flag in
5969"" | " "*) ;;
5970*) reload_flag=" $reload_flag" ;;
5971esac
5972reload_cmds='$LD$reload_flag -o $output$reload_objs'
5973case $host_os in
5974  darwin*)
5975    if test "$GCC" = yes; then
5976      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5977    else
5978      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5979    fi
5980    ;;
5981esac
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991if test -n "$ac_tool_prefix"; then
5992  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5993set dummy ${ac_tool_prefix}objdump; ac_word=$2
5994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5995$as_echo_n "checking for $ac_word... " >&6; }
5996if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5997  $as_echo_n "(cached) " >&6
5998else
5999  if test -n "$OBJDUMP"; then
6000  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005  IFS=$as_save_IFS
6006  test -z "$as_dir" && as_dir=.
6007  for ac_exec_ext in '' $ac_executable_extensions; do
6008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6010    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011    break 2
6012  fi
6013done
6014done
6015IFS=$as_save_IFS
6016
6017fi
6018fi
6019OBJDUMP=$ac_cv_prog_OBJDUMP
6020if test -n "$OBJDUMP"; then
6021  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6022$as_echo "$OBJDUMP" >&6; }
6023else
6024  { $as_echo "$as_me:$LINENO: result: no" >&5
6025$as_echo "no" >&6; }
6026fi
6027
6028
6029fi
6030if test -z "$ac_cv_prog_OBJDUMP"; then
6031  ac_ct_OBJDUMP=$OBJDUMP
6032  # Extract the first word of "objdump", so it can be a program name with args.
6033set dummy objdump; ac_word=$2
6034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$ac_ct_OBJDUMP"; then
6040  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047  for ac_exec_ext in '' $ac_executable_extensions; do
6048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6050    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6060if test -n "$ac_ct_OBJDUMP"; then
6061  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6062$as_echo "$ac_ct_OBJDUMP" >&6; }
6063else
6064  { $as_echo "$as_me:$LINENO: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068  if test "x$ac_ct_OBJDUMP" = x; then
6069    OBJDUMP="false"
6070  else
6071    case $cross_compiling:$ac_tool_warned in
6072yes:)
6073{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075ac_tool_warned=yes ;;
6076esac
6077    OBJDUMP=$ac_ct_OBJDUMP
6078  fi
6079else
6080  OBJDUMP="$ac_cv_prog_OBJDUMP"
6081fi
6082
6083test -z "$OBJDUMP" && OBJDUMP=objdump
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6094$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6095if test "${lt_cv_deplibs_check_method+set}" = set; then
6096  $as_echo_n "(cached) " >&6
6097else
6098  lt_cv_file_magic_cmd='$MAGIC_CMD'
6099lt_cv_file_magic_test_file=
6100lt_cv_deplibs_check_method='unknown'
6101# Need to set the preceding variable on all platforms that support
6102# interlibrary dependencies.
6103# 'none' -- dependencies not supported.
6104# `unknown' -- same as none, but documents that we really don't know.
6105# 'pass_all' -- all dependencies passed with no checks.
6106# 'test_compile' -- check by making test program.
6107# 'file_magic [[regex]]' -- check by looking for files in library path
6108# which responds to the $file_magic_cmd with a given extended regex.
6109# If you have `file' or equivalent on your system and you're not sure
6110# whether `pass_all' will *always* work, you probably want this one.
6111
6112case $host_os in
6113aix[4-9]*)
6114  lt_cv_deplibs_check_method=pass_all
6115  ;;
6116
6117beos*)
6118  lt_cv_deplibs_check_method=pass_all
6119  ;;
6120
6121bsdi[45]*)
6122  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6123  lt_cv_file_magic_cmd='/usr/bin/file -L'
6124  lt_cv_file_magic_test_file=/shlib/libc.so
6125  ;;
6126
6127cygwin*)
6128  # func_win32_libid is a shell function defined in ltmain.sh
6129  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6130  lt_cv_file_magic_cmd='func_win32_libid'
6131  ;;
6132
6133mingw* | pw32*)
6134  # Base MSYS/MinGW do not provide the 'file' command needed by
6135  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6136  # unless we find 'file', for example because we are cross-compiling.
6137  if ( file / ) >/dev/null 2>&1; then
6138    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6139    lt_cv_file_magic_cmd='func_win32_libid'
6140  else
6141    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6142    lt_cv_file_magic_cmd='$OBJDUMP -f'
6143  fi
6144  ;;
6145
6146cegcc)
6147  # use the weaker test based on 'objdump'. See mingw*.
6148  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6149  lt_cv_file_magic_cmd='$OBJDUMP -f'
6150  ;;
6151
6152darwin* | rhapsody*)
6153  lt_cv_deplibs_check_method=pass_all
6154  ;;
6155
6156freebsd* | dragonfly*)
6157  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6158    case $host_cpu in
6159    i*86 )
6160      # Not sure whether the presence of OpenBSD here was a mistake.
6161      # Let's accept both of them until this is cleared up.
6162      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6163      lt_cv_file_magic_cmd=/usr/bin/file
6164      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6165      ;;
6166    esac
6167  else
6168    lt_cv_deplibs_check_method=pass_all
6169  fi
6170  ;;
6171
6172gnu*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175
6176hpux10.20* | hpux11*)
6177  lt_cv_file_magic_cmd=/usr/bin/file
6178  case $host_cpu in
6179  ia64*)
6180    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6181    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6182    ;;
6183  hppa*64*)
6184    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]'
6185    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6186    ;;
6187  *)
6188    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6189    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6190    ;;
6191  esac
6192  ;;
6193
6194interix[3-9]*)
6195  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6196  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6197  ;;
6198
6199irix5* | irix6* | nonstopux*)
6200  case $LD in
6201  *-32|*"-32 ") libmagic=32-bit;;
6202  *-n32|*"-n32 ") libmagic=N32;;
6203  *-64|*"-64 ") libmagic=64-bit;;
6204  *) libmagic=never-match;;
6205  esac
6206  lt_cv_deplibs_check_method=pass_all
6207  ;;
6208
6209# This must be Linux ELF.
6210linux* | k*bsd*-gnu)
6211  lt_cv_deplibs_check_method=pass_all
6212  ;;
6213
6214netbsd*)
6215  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6216    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217  else
6218    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6219  fi
6220  ;;
6221
6222newos6*)
6223  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6224  lt_cv_file_magic_cmd=/usr/bin/file
6225  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6226  ;;
6227
6228*nto* | *qnx*)
6229  lt_cv_deplibs_check_method=pass_all
6230  ;;
6231
6232openbsd*)
6233  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6234    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6235  else
6236    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237  fi
6238  ;;
6239
6240osf3* | osf4* | osf5*)
6241  lt_cv_deplibs_check_method=pass_all
6242  ;;
6243
6244rdos*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248solaris*)
6249  lt_cv_deplibs_check_method=pass_all
6250  ;;
6251
6252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6253  lt_cv_deplibs_check_method=pass_all
6254  ;;
6255
6256sysv4 | sysv4.3*)
6257  case $host_vendor in
6258  motorola)
6259    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]'
6260    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6261    ;;
6262  ncr)
6263    lt_cv_deplibs_check_method=pass_all
6264    ;;
6265  sequent)
6266    lt_cv_file_magic_cmd='/bin/file'
6267    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6268    ;;
6269  sni)
6270    lt_cv_file_magic_cmd='/bin/file'
6271    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6272    lt_cv_file_magic_test_file=/lib/libc.so
6273    ;;
6274  siemens)
6275    lt_cv_deplibs_check_method=pass_all
6276    ;;
6277  pc)
6278    lt_cv_deplibs_check_method=pass_all
6279    ;;
6280  esac
6281  ;;
6282
6283tpf*)
6284  lt_cv_deplibs_check_method=pass_all
6285  ;;
6286esac
6287
6288fi
6289{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6290$as_echo "$lt_cv_deplibs_check_method" >&6; }
6291file_magic_cmd=$lt_cv_file_magic_cmd
6292deplibs_check_method=$lt_cv_deplibs_check_method
6293test -z "$deplibs_check_method" && deplibs_check_method=unknown
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306if test -n "$ac_tool_prefix"; then
6307  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6308set dummy ${ac_tool_prefix}ar; ac_word=$2
6309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if test "${ac_cv_prog_AR+set}" = set; then
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$AR"; then
6315  ac_cv_prog_AR="$AR" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322  for ac_exec_ext in '' $ac_executable_extensions; do
6323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324    ac_cv_prog_AR="${ac_tool_prefix}ar"
6325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334AR=$ac_cv_prog_AR
6335if test -n "$AR"; then
6336  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6337$as_echo "$AR" >&6; }
6338else
6339  { $as_echo "$as_me:$LINENO: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343
6344fi
6345if test -z "$ac_cv_prog_AR"; then
6346  ac_ct_AR=$AR
6347  # Extract the first word of "ar", so it can be a program name with args.
6348set dummy ar; ac_word=$2
6349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6352  $as_echo_n "(cached) " >&6
6353else
6354  if test -n "$ac_ct_AR"; then
6355  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  test -z "$as_dir" && as_dir=.
6362  for ac_exec_ext in '' $ac_executable_extensions; do
6363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364    ac_cv_prog_ac_ct_AR="ar"
6365    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374ac_ct_AR=$ac_cv_prog_ac_ct_AR
6375if test -n "$ac_ct_AR"; then
6376  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6377$as_echo "$ac_ct_AR" >&6; }
6378else
6379  { $as_echo "$as_me:$LINENO: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383  if test "x$ac_ct_AR" = x; then
6384    AR="false"
6385  else
6386    case $cross_compiling:$ac_tool_warned in
6387yes:)
6388{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390ac_tool_warned=yes ;;
6391esac
6392    AR=$ac_ct_AR
6393  fi
6394else
6395  AR="$ac_cv_prog_AR"
6396fi
6397
6398test -z "$AR" && AR=ar
6399test -z "$AR_FLAGS" && AR_FLAGS=cru
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411if test -n "$ac_tool_prefix"; then
6412  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6413set dummy ${ac_tool_prefix}strip; ac_word=$2
6414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if test "${ac_cv_prog_STRIP+set}" = set; then
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$STRIP"; then
6420  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427  for ac_exec_ext in '' $ac_executable_extensions; do
6428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6430    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439STRIP=$ac_cv_prog_STRIP
6440if test -n "$STRIP"; then
6441  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6442$as_echo "$STRIP" >&6; }
6443else
6444  { $as_echo "$as_me:$LINENO: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448
6449fi
6450if test -z "$ac_cv_prog_STRIP"; then
6451  ac_ct_STRIP=$STRIP
6452  # Extract the first word of "strip", so it can be a program name with args.
6453set dummy strip; ac_word=$2
6454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6457  $as_echo_n "(cached) " >&6
6458else
6459  if test -n "$ac_ct_STRIP"; then
6460  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  test -z "$as_dir" && as_dir=.
6467  for ac_exec_ext in '' $ac_executable_extensions; do
6468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469    ac_cv_prog_ac_ct_STRIP="strip"
6470    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471    break 2
6472  fi
6473done
6474done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6480if test -n "$ac_ct_STRIP"; then
6481  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6482$as_echo "$ac_ct_STRIP" >&6; }
6483else
6484  { $as_echo "$as_me:$LINENO: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488  if test "x$ac_ct_STRIP" = x; then
6489    STRIP=":"
6490  else
6491    case $cross_compiling:$ac_tool_warned in
6492yes:)
6493{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495ac_tool_warned=yes ;;
6496esac
6497    STRIP=$ac_ct_STRIP
6498  fi
6499else
6500  STRIP="$ac_cv_prog_STRIP"
6501fi
6502
6503test -z "$STRIP" && STRIP=:
6504
6505
6506
6507
6508
6509
6510if test -n "$ac_tool_prefix"; then
6511  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6512set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if test "${ac_cv_prog_RANLIB+set}" = set; then
6516  $as_echo_n "(cached) " >&6
6517else
6518  if test -n "$RANLIB"; then
6519  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526  for ac_exec_ext in '' $ac_executable_extensions; do
6527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6529    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538RANLIB=$ac_cv_prog_RANLIB
6539if test -n "$RANLIB"; then
6540  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6541$as_echo "$RANLIB" >&6; }
6542else
6543  { $as_echo "$as_me:$LINENO: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548fi
6549if test -z "$ac_cv_prog_RANLIB"; then
6550  ac_ct_RANLIB=$RANLIB
6551  # Extract the first word of "ranlib", so it can be a program name with args.
6552set dummy ranlib; ac_word=$2
6553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
6555if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6556  $as_echo_n "(cached) " >&6
6557else
6558  if test -n "$ac_ct_RANLIB"; then
6559  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566  for ac_exec_ext in '' $ac_executable_extensions; do
6567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568    ac_cv_prog_ac_ct_RANLIB="ranlib"
6569    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570    break 2
6571  fi
6572done
6573done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6579if test -n "$ac_ct_RANLIB"; then
6580  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6581$as_echo "$ac_ct_RANLIB" >&6; }
6582else
6583  { $as_echo "$as_me:$LINENO: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587  if test "x$ac_ct_RANLIB" = x; then
6588    RANLIB=":"
6589  else
6590    case $cross_compiling:$ac_tool_warned in
6591yes:)
6592{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594ac_tool_warned=yes ;;
6595esac
6596    RANLIB=$ac_ct_RANLIB
6597  fi
6598else
6599  RANLIB="$ac_cv_prog_RANLIB"
6600fi
6601
6602test -z "$RANLIB" && RANLIB=:
6603
6604
6605
6606
6607
6608
6609# Determine commands to create old-style static archives.
6610old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6611old_postinstall_cmds='chmod 644 $oldlib'
6612old_postuninstall_cmds=
6613
6614if test -n "$RANLIB"; then
6615  case $host_os in
6616  openbsd*)
6617    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6618    ;;
6619  *)
6620    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6621    ;;
6622  esac
6623  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6624fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659# If no C compiler was specified, use CC.
6660LTCC=${LTCC-"$CC"}
6661
6662# If no C compiler flags were specified, use CFLAGS.
6663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6664
6665# Allow CC to be a program name with arguments.
6666compiler=$CC
6667
6668
6669# Check for command to grab the raw symbol name followed by C symbol from nm.
6670{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6671$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6672if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6673  $as_echo_n "(cached) " >&6
6674else
6675
6676# These are sane defaults that work on at least a few old systems.
6677# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6678
6679# Character class describing NM global symbol codes.
6680symcode='[BCDEGRST]'
6681
6682# Regexp to match symbols that can be accessed directly from C.
6683sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6684
6685# Define system-specific variables.
6686case $host_os in
6687aix*)
6688  symcode='[BCDT]'
6689  ;;
6690cygwin* | mingw* | pw32* | cegcc*)
6691  symcode='[ABCDGISTW]'
6692  ;;
6693hpux*)
6694  if test "$host_cpu" = ia64; then
6695    symcode='[ABCDEGRST]'
6696  fi
6697  ;;
6698irix* | nonstopux*)
6699  symcode='[BCDEGRST]'
6700  ;;
6701osf*)
6702  symcode='[BCDEGQRST]'
6703  ;;
6704solaris*)
6705  symcode='[BDRT]'
6706  ;;
6707sco3.2v5*)
6708  symcode='[DT]'
6709  ;;
6710sysv4.2uw2*)
6711  symcode='[DT]'
6712  ;;
6713sysv5* | sco5v6* | unixware* | OpenUNIX*)
6714  symcode='[ABDT]'
6715  ;;
6716sysv4)
6717  symcode='[DFNSTU]'
6718  ;;
6719esac
6720
6721# If we're using GNU nm, then use its standard symbol codes.
6722case `$NM -V 2>&1` in
6723*GNU* | *'with BFD'*)
6724  symcode='[ABCDGIRSTW]' ;;
6725esac
6726
6727# Transform an extracted symbol line into a proper C declaration.
6728# Some systems (esp. on ia64) link data and code symbols differently,
6729# so use this general approach.
6730lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731
6732# Transform an extracted symbol line into symbol name and symbol address
6733lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6734lt_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'"
6735
6736# Handle CRLF in mingw tool chain
6737opt_cr=
6738case $build_os in
6739mingw*)
6740  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6741  ;;
6742esac
6743
6744# Try without a prefix underscore, then with it.
6745for ac_symprfx in "" "_"; do
6746
6747  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6748  symxfrm="\\1 $ac_symprfx\\2 \\2"
6749
6750  # Write the raw and C identifiers.
6751  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6752    # Fake it for dumpbin and say T for any non-static function
6753    # and D for any global variable.
6754    # Also find C++ and __fastcall symbols from MSVC++,
6755    # which start with @ or ?.
6756    lt_cv_sys_global_symbol_pipe="$AWK '"\
6757"     {last_section=section; section=\$ 3};"\
6758"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6759"     \$ 0!~/External *\|/{next};"\
6760"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6761"     {if(hide[section]) next};"\
6762"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6763"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6764"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6765"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6766"     ' prfx=^$ac_symprfx"
6767  else
6768    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6769  fi
6770
6771  # Check to see that the pipe works correctly.
6772  pipe_works=no
6773
6774  rm -f conftest*
6775  cat > conftest.$ac_ext <<_LT_EOF
6776#ifdef __cplusplus
6777extern "C" {
6778#endif
6779char nm_test_var;
6780void nm_test_func(void);
6781void nm_test_func(void){}
6782#ifdef __cplusplus
6783}
6784#endif
6785int main(){nm_test_var='a';nm_test_func();return(0);}
6786_LT_EOF
6787
6788  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789  (eval $ac_compile) 2>&5
6790  ac_status=$?
6791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792  (exit $ac_status); }; then
6793    # Now try to grab the symbols.
6794    nlist=conftest.nm
6795    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6796  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6797  ac_status=$?
6798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799  (exit $ac_status); } && test -s "$nlist"; then
6800      # Try sorting and uniquifying the output.
6801      if sort "$nlist" | uniq > "$nlist"T; then
6802	mv -f "$nlist"T "$nlist"
6803      else
6804	rm -f "$nlist"T
6805      fi
6806
6807      # Make sure that we snagged all the symbols we need.
6808      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6809	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6810	  cat <<_LT_EOF > conftest.$ac_ext
6811#ifdef __cplusplus
6812extern "C" {
6813#endif
6814
6815_LT_EOF
6816	  # Now generate the symbol file.
6817	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6818
6819	  cat <<_LT_EOF >> conftest.$ac_ext
6820
6821/* The mapping between symbol names and symbols.  */
6822const struct {
6823  const char *name;
6824  void       *address;
6825}
6826lt__PROGRAM__LTX_preloaded_symbols[] =
6827{
6828  { "@PROGRAM@", (void *) 0 },
6829_LT_EOF
6830	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6831	  cat <<\_LT_EOF >> conftest.$ac_ext
6832  {0, (void *) 0}
6833};
6834
6835/* This works around a problem in FreeBSD linker */
6836#ifdef FREEBSD_WORKAROUND
6837static const void *lt_preloaded_setup() {
6838  return lt__PROGRAM__LTX_preloaded_symbols;
6839}
6840#endif
6841
6842#ifdef __cplusplus
6843}
6844#endif
6845_LT_EOF
6846	  # Now try linking the two files.
6847	  mv conftest.$ac_objext conftstm.$ac_objext
6848	  lt_save_LIBS="$LIBS"
6849	  lt_save_CFLAGS="$CFLAGS"
6850	  LIBS="conftstm.$ac_objext"
6851	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853  (eval $ac_link) 2>&5
6854  ac_status=$?
6855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6857	    pipe_works=yes
6858	  fi
6859	  LIBS="$lt_save_LIBS"
6860	  CFLAGS="$lt_save_CFLAGS"
6861	else
6862	  echo "cannot find nm_test_func in $nlist" >&5
6863	fi
6864      else
6865	echo "cannot find nm_test_var in $nlist" >&5
6866      fi
6867    else
6868      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869    fi
6870  else
6871    echo "$progname: failed program was:" >&5
6872    cat conftest.$ac_ext >&5
6873  fi
6874  rm -rf conftest* conftst*
6875
6876  # Do not use the global_symbol_pipe unless it works.
6877  if test "$pipe_works" = yes; then
6878    break
6879  else
6880    lt_cv_sys_global_symbol_pipe=
6881  fi
6882done
6883
6884fi
6885
6886if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887  lt_cv_sys_global_symbol_to_cdecl=
6888fi
6889if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890  { $as_echo "$as_me:$LINENO: result: failed" >&5
6891$as_echo "failed" >&6; }
6892else
6893  { $as_echo "$as_me:$LINENO: result: ok" >&5
6894$as_echo "ok" >&6; }
6895fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918# Check whether --enable-libtool-lock was given.
6919if test "${enable_libtool_lock+set}" = set; then
6920  enableval=$enable_libtool_lock;
6921fi
6922
6923test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6924
6925# Some flags need to be propagated to the compiler or linker for good
6926# libtool support.
6927case $host in
6928ia64-*-hpux*)
6929  # Find out which ABI we are using.
6930  echo 'int i;' > conftest.$ac_ext
6931  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932  (eval $ac_compile) 2>&5
6933  ac_status=$?
6934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }; then
6936    case `/usr/bin/file conftest.$ac_objext` in
6937      *ELF-32*)
6938	HPUX_IA64_MODE="32"
6939	;;
6940      *ELF-64*)
6941	HPUX_IA64_MODE="64"
6942	;;
6943    esac
6944  fi
6945  rm -rf conftest*
6946  ;;
6947*-*-irix6*)
6948  # Find out which ABI we are using.
6949  echo '#line 6949 "configure"' > conftest.$ac_ext
6950  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951  (eval $ac_compile) 2>&5
6952  ac_status=$?
6953  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }; then
6955    if test "$lt_cv_prog_gnu_ld" = yes; then
6956      case `/usr/bin/file conftest.$ac_objext` in
6957	*32-bit*)
6958	  LD="${LD-ld} -melf32bsmip"
6959	  ;;
6960	*N32*)
6961	  LD="${LD-ld} -melf32bmipn32"
6962	  ;;
6963	*64-bit*)
6964	  LD="${LD-ld} -melf64bmip"
6965	;;
6966      esac
6967    else
6968      case `/usr/bin/file conftest.$ac_objext` in
6969	*32-bit*)
6970	  LD="${LD-ld} -32"
6971	  ;;
6972	*N32*)
6973	  LD="${LD-ld} -n32"
6974	  ;;
6975	*64-bit*)
6976	  LD="${LD-ld} -64"
6977	  ;;
6978      esac
6979    fi
6980  fi
6981  rm -rf conftest*
6982  ;;
6983
6984x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6985s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6986  # Find out which ABI we are using.
6987  echo 'int i;' > conftest.$ac_ext
6988  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989  (eval $ac_compile) 2>&5
6990  ac_status=$?
6991  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); }; then
6993    case `/usr/bin/file conftest.o` in
6994      *32-bit*)
6995	case $host in
6996	  x86_64-*kfreebsd*-gnu)
6997	    LD="${LD-ld} -m elf_i386_fbsd"
6998	    ;;
6999	  x86_64-*linux*)
7000	    LD="${LD-ld} -m elf_i386"
7001	    ;;
7002	  ppc64-*linux*|powerpc64-*linux*)
7003	    LD="${LD-ld} -m elf32ppclinux"
7004	    ;;
7005	  s390x-*linux*)
7006	    LD="${LD-ld} -m elf_s390"
7007	    ;;
7008	  sparc64-*linux*)
7009	    LD="${LD-ld} -m elf32_sparc"
7010	    ;;
7011	esac
7012	;;
7013      *64-bit*)
7014	case $host in
7015	  x86_64-*kfreebsd*-gnu)
7016	    LD="${LD-ld} -m elf_x86_64_fbsd"
7017	    ;;
7018	  x86_64-*linux*)
7019	    LD="${LD-ld} -m elf_x86_64"
7020	    ;;
7021	  ppc*-*linux*|powerpc*-*linux*)
7022	    LD="${LD-ld} -m elf64ppc"
7023	    ;;
7024	  s390*-*linux*|s390*-*tpf*)
7025	    LD="${LD-ld} -m elf64_s390"
7026	    ;;
7027	  sparc*-*linux*)
7028	    LD="${LD-ld} -m elf64_sparc"
7029	    ;;
7030	esac
7031	;;
7032    esac
7033  fi
7034  rm -rf conftest*
7035  ;;
7036
7037*-*-sco3.2v5*)
7038  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7039  SAVE_CFLAGS="$CFLAGS"
7040  CFLAGS="$CFLAGS -belf"
7041  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7042$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7043if test "${lt_cv_cc_needs_belf+set}" = set; then
7044  $as_echo_n "(cached) " >&6
7045else
7046  ac_ext=c
7047ac_cpp='$CPP $CPPFLAGS'
7048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051
7052     cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058
7059int
7060main ()
7061{
7062
7063  ;
7064  return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext conftest$ac_exeext
7068if { (ac_try="$ac_link"
7069case "(($ac_try" in
7070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071  *) ac_try_echo=$ac_try;;
7072esac
7073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074$as_echo "$ac_try_echo") >&5
7075  (eval "$ac_link") 2>conftest.er1
7076  ac_status=$?
7077  grep -v '^ *+' conftest.er1 >conftest.err
7078  rm -f conftest.er1
7079  cat conftest.err >&5
7080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081  (exit $ac_status); } && {
7082	 test -z "$ac_c_werror_flag" ||
7083	 test ! -s conftest.err
7084       } && test -s conftest$ac_exeext && {
7085	 test "$cross_compiling" = yes ||
7086	 $as_test_x conftest$ac_exeext
7087       }; then
7088  lt_cv_cc_needs_belf=yes
7089else
7090  $as_echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093	lt_cv_cc_needs_belf=no
7094fi
7095
7096rm -rf conftest.dSYM
7097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7098      conftest$ac_exeext conftest.$ac_ext
7099     ac_ext=c
7100ac_cpp='$CPP $CPPFLAGS'
7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105fi
7106{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7107$as_echo "$lt_cv_cc_needs_belf" >&6; }
7108  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7109    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7110    CFLAGS="$SAVE_CFLAGS"
7111  fi
7112  ;;
7113sparc*-*solaris*)
7114  # Find out which ABI we are using.
7115  echo 'int i;' > conftest.$ac_ext
7116  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117  (eval $ac_compile) 2>&5
7118  ac_status=$?
7119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); }; then
7121    case `/usr/bin/file conftest.o` in
7122    *64-bit*)
7123      case $lt_cv_prog_gnu_ld in
7124      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7125      *)
7126	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7127	  LD="${LD-ld} -64"
7128	fi
7129	;;
7130      esac
7131      ;;
7132    esac
7133  fi
7134  rm -rf conftest*
7135  ;;
7136esac
7137
7138need_locks="$enable_libtool_lock"
7139
7140
7141  case $host_os in
7142    rhapsody* | darwin*)
7143    if test -n "$ac_tool_prefix"; then
7144  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7145set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7147$as_echo_n "checking for $ac_word... " >&6; }
7148if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7149  $as_echo_n "(cached) " >&6
7150else
7151  if test -n "$DSYMUTIL"; then
7152  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7162    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171DSYMUTIL=$ac_cv_prog_DSYMUTIL
7172if test -n "$DSYMUTIL"; then
7173  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7174$as_echo "$DSYMUTIL" >&6; }
7175else
7176  { $as_echo "$as_me:$LINENO: result: no" >&5
7177$as_echo "no" >&6; }
7178fi
7179
7180
7181fi
7182if test -z "$ac_cv_prog_DSYMUTIL"; then
7183  ac_ct_DSYMUTIL=$DSYMUTIL
7184  # Extract the first word of "dsymutil", so it can be a program name with args.
7185set dummy dsymutil; ac_word=$2
7186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$ac_ct_DSYMUTIL"; then
7192  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199  for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212if test -n "$ac_ct_DSYMUTIL"; then
7213  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7214$as_echo "$ac_ct_DSYMUTIL" >&6; }
7215else
7216  { $as_echo "$as_me:$LINENO: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220  if test "x$ac_ct_DSYMUTIL" = x; then
7221    DSYMUTIL=":"
7222  else
7223    case $cross_compiling:$ac_tool_warned in
7224yes:)
7225{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227ac_tool_warned=yes ;;
7228esac
7229    DSYMUTIL=$ac_ct_DSYMUTIL
7230  fi
7231else
7232  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7233fi
7234
7235    if test -n "$ac_tool_prefix"; then
7236  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if test "${ac_cv_prog_NMEDIT+set}" = set; then
7241  $as_echo_n "(cached) " >&6
7242else
7243  if test -n "$NMEDIT"; then
7244  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249  IFS=$as_save_IFS
7250  test -z "$as_dir" && as_dir=.
7251  for ac_exec_ext in '' $ac_executable_extensions; do
7252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7254    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255    break 2
7256  fi
7257done
7258done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263NMEDIT=$ac_cv_prog_NMEDIT
7264if test -n "$NMEDIT"; then
7265  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7266$as_echo "$NMEDIT" >&6; }
7267else
7268  { $as_echo "$as_me:$LINENO: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272
7273fi
7274if test -z "$ac_cv_prog_NMEDIT"; then
7275  ac_ct_NMEDIT=$NMEDIT
7276  # Extract the first word of "nmedit", so it can be a program name with args.
7277set dummy nmedit; ac_word=$2
7278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7281  $as_echo_n "(cached) " >&6
7282else
7283  if test -n "$ac_ct_NMEDIT"; then
7284  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291  for ac_exec_ext in '' $ac_executable_extensions; do
7292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7294    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295    break 2
7296  fi
7297done
7298done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7304if test -n "$ac_ct_NMEDIT"; then
7305  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7306$as_echo "$ac_ct_NMEDIT" >&6; }
7307else
7308  { $as_echo "$as_me:$LINENO: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312  if test "x$ac_ct_NMEDIT" = x; then
7313    NMEDIT=":"
7314  else
7315    case $cross_compiling:$ac_tool_warned in
7316yes:)
7317{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319ac_tool_warned=yes ;;
7320esac
7321    NMEDIT=$ac_ct_NMEDIT
7322  fi
7323else
7324  NMEDIT="$ac_cv_prog_NMEDIT"
7325fi
7326
7327    if test -n "$ac_tool_prefix"; then
7328  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7329set dummy ${ac_tool_prefix}lipo; ac_word=$2
7330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7331$as_echo_n "checking for $ac_word... " >&6; }
7332if test "${ac_cv_prog_LIPO+set}" = set; then
7333  $as_echo_n "(cached) " >&6
7334else
7335  if test -n "$LIPO"; then
7336  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341  IFS=$as_save_IFS
7342  test -z "$as_dir" && as_dir=.
7343  for ac_exec_ext in '' $ac_executable_extensions; do
7344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7346    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347    break 2
7348  fi
7349done
7350done
7351IFS=$as_save_IFS
7352
7353fi
7354fi
7355LIPO=$ac_cv_prog_LIPO
7356if test -n "$LIPO"; then
7357  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7358$as_echo "$LIPO" >&6; }
7359else
7360  { $as_echo "$as_me:$LINENO: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365fi
7366if test -z "$ac_cv_prog_LIPO"; then
7367  ac_ct_LIPO=$LIPO
7368  # Extract the first word of "lipo", so it can be a program name with args.
7369set dummy lipo; ac_word=$2
7370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7373  $as_echo_n "(cached) " >&6
7374else
7375  if test -n "$ac_ct_LIPO"; then
7376  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381  IFS=$as_save_IFS
7382  test -z "$as_dir" && as_dir=.
7383  for ac_exec_ext in '' $ac_executable_extensions; do
7384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385    ac_cv_prog_ac_ct_LIPO="lipo"
7386    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387    break 2
7388  fi
7389done
7390done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7396if test -n "$ac_ct_LIPO"; then
7397  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7398$as_echo "$ac_ct_LIPO" >&6; }
7399else
7400  { $as_echo "$as_me:$LINENO: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404  if test "x$ac_ct_LIPO" = x; then
7405    LIPO=":"
7406  else
7407    case $cross_compiling:$ac_tool_warned in
7408yes:)
7409{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411ac_tool_warned=yes ;;
7412esac
7413    LIPO=$ac_ct_LIPO
7414  fi
7415else
7416  LIPO="$ac_cv_prog_LIPO"
7417fi
7418
7419    if test -n "$ac_tool_prefix"; then
7420  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}otool; ac_word=$2
7422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if test "${ac_cv_prog_OTOOL+set}" = set; then
7425  $as_echo_n "(cached) " >&6
7426else
7427  if test -n "$OTOOL"; then
7428  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433  IFS=$as_save_IFS
7434  test -z "$as_dir" && as_dir=.
7435  for ac_exec_ext in '' $ac_executable_extensions; do
7436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7438    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439    break 2
7440  fi
7441done
7442done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447OTOOL=$ac_cv_prog_OTOOL
7448if test -n "$OTOOL"; then
7449  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7450$as_echo "$OTOOL" >&6; }
7451else
7452  { $as_echo "$as_me:$LINENO: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457fi
7458if test -z "$ac_cv_prog_OTOOL"; then
7459  ac_ct_OTOOL=$OTOOL
7460  # Extract the first word of "otool", so it can be a program name with args.
7461set dummy otool; ac_word=$2
7462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7465  $as_echo_n "(cached) " >&6
7466else
7467  if test -n "$ac_ct_OTOOL"; then
7468  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473  IFS=$as_save_IFS
7474  test -z "$as_dir" && as_dir=.
7475  for ac_exec_ext in '' $ac_executable_extensions; do
7476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477    ac_cv_prog_ac_ct_OTOOL="otool"
7478    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479    break 2
7480  fi
7481done
7482done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7488if test -n "$ac_ct_OTOOL"; then
7489  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7490$as_echo "$ac_ct_OTOOL" >&6; }
7491else
7492  { $as_echo "$as_me:$LINENO: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496  if test "x$ac_ct_OTOOL" = x; then
7497    OTOOL=":"
7498  else
7499    case $cross_compiling:$ac_tool_warned in
7500yes:)
7501{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503ac_tool_warned=yes ;;
7504esac
7505    OTOOL=$ac_ct_OTOOL
7506  fi
7507else
7508  OTOOL="$ac_cv_prog_OTOOL"
7509fi
7510
7511    if test -n "$ac_tool_prefix"; then
7512  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7513set dummy ${ac_tool_prefix}otool64; ac_word=$2
7514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
7516if test "${ac_cv_prog_OTOOL64+set}" = set; then
7517  $as_echo_n "(cached) " >&6
7518else
7519  if test -n "$OTOOL64"; then
7520  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525  IFS=$as_save_IFS
7526  test -z "$as_dir" && as_dir=.
7527  for ac_exec_ext in '' $ac_executable_extensions; do
7528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7530    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531    break 2
7532  fi
7533done
7534done
7535IFS=$as_save_IFS
7536
7537fi
7538fi
7539OTOOL64=$ac_cv_prog_OTOOL64
7540if test -n "$OTOOL64"; then
7541  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7542$as_echo "$OTOOL64" >&6; }
7543else
7544  { $as_echo "$as_me:$LINENO: result: no" >&5
7545$as_echo "no" >&6; }
7546fi
7547
7548
7549fi
7550if test -z "$ac_cv_prog_OTOOL64"; then
7551  ac_ct_OTOOL64=$OTOOL64
7552  # Extract the first word of "otool64", so it can be a program name with args.
7553set dummy otool64; ac_word=$2
7554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7557  $as_echo_n "(cached) " >&6
7558else
7559  if test -n "$ac_ct_OTOOL64"; then
7560  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565  IFS=$as_save_IFS
7566  test -z "$as_dir" && as_dir=.
7567  for ac_exec_ext in '' $ac_executable_extensions; do
7568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569    ac_cv_prog_ac_ct_OTOOL64="otool64"
7570    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571    break 2
7572  fi
7573done
7574done
7575IFS=$as_save_IFS
7576
7577fi
7578fi
7579ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7580if test -n "$ac_ct_OTOOL64"; then
7581  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7582$as_echo "$ac_ct_OTOOL64" >&6; }
7583else
7584  { $as_echo "$as_me:$LINENO: result: no" >&5
7585$as_echo "no" >&6; }
7586fi
7587
7588  if test "x$ac_ct_OTOOL64" = x; then
7589    OTOOL64=":"
7590  else
7591    case $cross_compiling:$ac_tool_warned in
7592yes:)
7593{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595ac_tool_warned=yes ;;
7596esac
7597    OTOOL64=$ac_ct_OTOOL64
7598  fi
7599else
7600  OTOOL64="$ac_cv_prog_OTOOL64"
7601fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7630$as_echo_n "checking for -single_module linker flag... " >&6; }
7631if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7632  $as_echo_n "(cached) " >&6
7633else
7634  lt_cv_apple_cc_single_mod=no
7635      if test -z "${LT_MULTI_MODULE}"; then
7636	# By default we will add the -single_module flag. You can override
7637	# by either setting the environment variable LT_MULTI_MODULE
7638	# non-empty at configure time, or by adding -multi_module to the
7639	# link flags.
7640	rm -rf libconftest.dylib*
7641	echo "int foo(void){return 1;}" > conftest.c
7642	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7643-dynamiclib -Wl,-single_module conftest.c" >&5
7644	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7646        _lt_result=$?
7647	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7648	  lt_cv_apple_cc_single_mod=yes
7649	else
7650	  cat conftest.err >&5
7651	fi
7652	rm -rf libconftest.dylib*
7653	rm -f conftest.*
7654      fi
7655fi
7656{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7657$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7658    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7659$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7660if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7661  $as_echo_n "(cached) " >&6
7662else
7663  lt_cv_ld_exported_symbols_list=no
7664      save_LDFLAGS=$LDFLAGS
7665      echo "_main" > conftest.sym
7666      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7667      cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h.  */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h.  */
7673
7674int
7675main ()
7676{
7677
7678  ;
7679  return 0;
7680}
7681_ACEOF
7682rm -f conftest.$ac_objext conftest$ac_exeext
7683if { (ac_try="$ac_link"
7684case "(($ac_try" in
7685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686  *) ac_try_echo=$ac_try;;
7687esac
7688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689$as_echo "$ac_try_echo") >&5
7690  (eval "$ac_link") 2>conftest.er1
7691  ac_status=$?
7692  grep -v '^ *+' conftest.er1 >conftest.err
7693  rm -f conftest.er1
7694  cat conftest.err >&5
7695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); } && {
7697	 test -z "$ac_c_werror_flag" ||
7698	 test ! -s conftest.err
7699       } && test -s conftest$ac_exeext && {
7700	 test "$cross_compiling" = yes ||
7701	 $as_test_x conftest$ac_exeext
7702       }; then
7703  lt_cv_ld_exported_symbols_list=yes
7704else
7705  $as_echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
7708	lt_cv_ld_exported_symbols_list=no
7709fi
7710
7711rm -rf conftest.dSYM
7712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7713      conftest$ac_exeext conftest.$ac_ext
7714	LDFLAGS="$save_LDFLAGS"
7715
7716fi
7717{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7718$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7719    case $host_os in
7720    rhapsody* | darwin1.[012])
7721      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7722    darwin1.*)
7723      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724    darwin*) # darwin 5.x on
7725      # if running on 10.5 or later, the deployment target defaults
7726      # to the OS version, if on x86, and 10.4, the deployment
7727      # target defaults to 10.4. Don't you love it?
7728      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7729	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7730	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731	10.[012]*)
7732	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7733	10.*)
7734	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7735      esac
7736    ;;
7737  esac
7738    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7739      _lt_dar_single_mod='$single_module'
7740    fi
7741    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7742      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7743    else
7744      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745    fi
7746    if test "$DSYMUTIL" != ":"; then
7747      _lt_dsymutil='~$DSYMUTIL $lib || :'
7748    else
7749      _lt_dsymutil=
7750    fi
7751    ;;
7752  esac
7753
7754
7755for ac_header in dlfcn.h
7756do
7757as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7759$as_echo_n "checking for $ac_header... " >&6; }
7760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7761  $as_echo_n "(cached) " >&6
7762else
7763  cat >conftest.$ac_ext <<_ACEOF
7764/* confdefs.h.  */
7765_ACEOF
7766cat confdefs.h >>conftest.$ac_ext
7767cat >>conftest.$ac_ext <<_ACEOF
7768/* end confdefs.h.  */
7769$ac_includes_default
7770
7771#include <$ac_header>
7772_ACEOF
7773rm -f conftest.$ac_objext
7774if { (ac_try="$ac_compile"
7775case "(($ac_try" in
7776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777  *) ac_try_echo=$ac_try;;
7778esac
7779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780$as_echo "$ac_try_echo") >&5
7781  (eval "$ac_compile") 2>conftest.er1
7782  ac_status=$?
7783  grep -v '^ *+' conftest.er1 >conftest.err
7784  rm -f conftest.er1
7785  cat conftest.err >&5
7786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787  (exit $ac_status); } && {
7788	 test -z "$ac_c_werror_flag" ||
7789	 test ! -s conftest.err
7790       } && test -s conftest.$ac_objext; then
7791  eval "$as_ac_Header=yes"
7792else
7793  $as_echo "$as_me: failed program was:" >&5
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
7796	eval "$as_ac_Header=no"
7797fi
7798
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800fi
7801ac_res=`eval 'as_val=${'$as_ac_Header'}
7802		 $as_echo "$as_val"'`
7803	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7804$as_echo "$ac_res" >&6; }
7805as_val=`eval 'as_val=${'$as_ac_Header'}
7806		 $as_echo "$as_val"'`
7807   if test "x$as_val" = x""yes; then
7808  cat >>confdefs.h <<_ACEOF
7809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7810_ACEOF
7811
7812fi
7813
7814done
7815
7816
7817
7818# Set options
7819
7820
7821
7822        enable_dlopen=no
7823
7824
7825  enable_win32_dll=no
7826
7827
7828            # Check whether --enable-shared was given.
7829if test "${enable_shared+set}" = set; then
7830  enableval=$enable_shared; p=${PACKAGE-default}
7831    case $enableval in
7832    yes) enable_shared=yes ;;
7833    no) enable_shared=no ;;
7834    *)
7835      enable_shared=no
7836      # Look at the argument we got.  We use all the common list separators.
7837      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7838      for pkg in $enableval; do
7839	IFS="$lt_save_ifs"
7840	if test "X$pkg" = "X$p"; then
7841	  enable_shared=yes
7842	fi
7843      done
7844      IFS="$lt_save_ifs"
7845      ;;
7846    esac
7847else
7848  enable_shared=yes
7849fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861# Check whether --with-pic was given.
7862if test "${with_pic+set}" = set; then
7863  withval=$with_pic; pic_mode="$withval"
7864else
7865  pic_mode=default
7866fi
7867
7868
7869test -z "$pic_mode" && pic_mode=default
7870
7871
7872
7873
7874
7875
7876
7877  # Check whether --enable-fast-install was given.
7878if test "${enable_fast_install+set}" = set; then
7879  enableval=$enable_fast_install; p=${PACKAGE-default}
7880    case $enableval in
7881    yes) enable_fast_install=yes ;;
7882    no) enable_fast_install=no ;;
7883    *)
7884      enable_fast_install=no
7885      # Look at the argument we got.  We use all the common list separators.
7886      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7887      for pkg in $enableval; do
7888	IFS="$lt_save_ifs"
7889	if test "X$pkg" = "X$p"; then
7890	  enable_fast_install=yes
7891	fi
7892      done
7893      IFS="$lt_save_ifs"
7894      ;;
7895    esac
7896else
7897  enable_fast_install=yes
7898fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910# This can be used to rebuild libtool when needed
7911LIBTOOL_DEPS="$ltmain"
7912
7913# Always use our own libtool.
7914LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940test -z "$LN_S" && LN_S="ln -s"
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955if test -n "${ZSH_VERSION+set}" ; then
7956   setopt NO_GLOB_SUBST
7957fi
7958
7959{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7960$as_echo_n "checking for objdir... " >&6; }
7961if test "${lt_cv_objdir+set}" = set; then
7962  $as_echo_n "(cached) " >&6
7963else
7964  rm -f .libs 2>/dev/null
7965mkdir .libs 2>/dev/null
7966if test -d .libs; then
7967  lt_cv_objdir=.libs
7968else
7969  # MS-DOS does not allow filenames that begin with a dot.
7970  lt_cv_objdir=_libs
7971fi
7972rmdir .libs 2>/dev/null
7973fi
7974{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7975$as_echo "$lt_cv_objdir" >&6; }
7976objdir=$lt_cv_objdir
7977
7978
7979
7980
7981
7982cat >>confdefs.h <<_ACEOF
7983#define LT_OBJDIR "$lt_cv_objdir/"
7984_ACEOF
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002case $host_os in
8003aix3*)
8004  # AIX sometimes has problems with the GCC collect2 program.  For some
8005  # reason, if we set the COLLECT_NAMES environment variable, the problems
8006  # vanish in a puff of smoke.
8007  if test "X${COLLECT_NAMES+set}" != Xset; then
8008    COLLECT_NAMES=
8009    export COLLECT_NAMES
8010  fi
8011  ;;
8012esac
8013
8014# Sed substitution that helps us do robust quoting.  It backslashifies
8015# metacharacters that are still active within double-quoted strings.
8016sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8017
8018# Same as above, but do not quote variable references.
8019double_quote_subst='s/\(["`\\]\)/\\\1/g'
8020
8021# Sed substitution to delay expansion of an escaped shell variable in a
8022# double_quote_subst'ed string.
8023delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8024
8025# Sed substitution to delay expansion of an escaped single quote.
8026delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8027
8028# Sed substitution to avoid accidental globbing in evaled expressions
8029no_glob_subst='s/\*/\\\*/g'
8030
8031# Global variables:
8032ofile=libtool
8033can_build_shared=yes
8034
8035# All known linkers require a `.a' archive for static linking (except MSVC,
8036# which needs '.lib').
8037libext=a
8038
8039with_gnu_ld="$lt_cv_prog_gnu_ld"
8040
8041old_CC="$CC"
8042old_CFLAGS="$CFLAGS"
8043
8044# Set sane defaults for various variables
8045test -z "$CC" && CC=cc
8046test -z "$LTCC" && LTCC=$CC
8047test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8048test -z "$LD" && LD=ld
8049test -z "$ac_objext" && ac_objext=o
8050
8051for cc_temp in $compiler""; do
8052  case $cc_temp in
8053    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8054    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8055    \-*) ;;
8056    *) break;;
8057  esac
8058done
8059cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8060
8061
8062# Only perform the check for file, if the check method requires it
8063test -z "$MAGIC_CMD" && MAGIC_CMD=file
8064case $deplibs_check_method in
8065file_magic*)
8066  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8067    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8068$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8069if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8070  $as_echo_n "(cached) " >&6
8071else
8072  case $MAGIC_CMD in
8073[\\/*] |  ?:[\\/]*)
8074  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8075  ;;
8076*)
8077  lt_save_MAGIC_CMD="$MAGIC_CMD"
8078  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8079  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8080  for ac_dir in $ac_dummy; do
8081    IFS="$lt_save_ifs"
8082    test -z "$ac_dir" && ac_dir=.
8083    if test -f $ac_dir/${ac_tool_prefix}file; then
8084      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8085      if test -n "$file_magic_test_file"; then
8086	case $deplibs_check_method in
8087	"file_magic "*)
8088	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8089	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8091	    $EGREP "$file_magic_regex" > /dev/null; then
8092	    :
8093	  else
8094	    cat <<_LT_EOF 1>&2
8095
8096*** Warning: the command libtool uses to detect shared libraries,
8097*** $file_magic_cmd, produces output that libtool cannot recognize.
8098*** The result is that libtool may fail to recognize shared libraries
8099*** as such.  This will affect the creation of libtool libraries that
8100*** depend on shared libraries, but programs linked with such libtool
8101*** libraries will work regardless of this problem.  Nevertheless, you
8102*** may want to report the problem to your system manager and/or to
8103*** bug-libtool@gnu.org
8104
8105_LT_EOF
8106	  fi ;;
8107	esac
8108      fi
8109      break
8110    fi
8111  done
8112  IFS="$lt_save_ifs"
8113  MAGIC_CMD="$lt_save_MAGIC_CMD"
8114  ;;
8115esac
8116fi
8117
8118MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8119if test -n "$MAGIC_CMD"; then
8120  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8121$as_echo "$MAGIC_CMD" >&6; }
8122else
8123  { $as_echo "$as_me:$LINENO: result: no" >&5
8124$as_echo "no" >&6; }
8125fi
8126
8127
8128
8129
8130
8131if test -z "$lt_cv_path_MAGIC_CMD"; then
8132  if test -n "$ac_tool_prefix"; then
8133    { $as_echo "$as_me:$LINENO: checking for file" >&5
8134$as_echo_n "checking for file... " >&6; }
8135if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8136  $as_echo_n "(cached) " >&6
8137else
8138  case $MAGIC_CMD in
8139[\\/*] |  ?:[\\/]*)
8140  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8141  ;;
8142*)
8143  lt_save_MAGIC_CMD="$MAGIC_CMD"
8144  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8145  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8146  for ac_dir in $ac_dummy; do
8147    IFS="$lt_save_ifs"
8148    test -z "$ac_dir" && ac_dir=.
8149    if test -f $ac_dir/file; then
8150      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8151      if test -n "$file_magic_test_file"; then
8152	case $deplibs_check_method in
8153	"file_magic "*)
8154	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8155	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8156	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8157	    $EGREP "$file_magic_regex" > /dev/null; then
8158	    :
8159	  else
8160	    cat <<_LT_EOF 1>&2
8161
8162*** Warning: the command libtool uses to detect shared libraries,
8163*** $file_magic_cmd, produces output that libtool cannot recognize.
8164*** The result is that libtool may fail to recognize shared libraries
8165*** as such.  This will affect the creation of libtool libraries that
8166*** depend on shared libraries, but programs linked with such libtool
8167*** libraries will work regardless of this problem.  Nevertheless, you
8168*** may want to report the problem to your system manager and/or to
8169*** bug-libtool@gnu.org
8170
8171_LT_EOF
8172	  fi ;;
8173	esac
8174      fi
8175      break
8176    fi
8177  done
8178  IFS="$lt_save_ifs"
8179  MAGIC_CMD="$lt_save_MAGIC_CMD"
8180  ;;
8181esac
8182fi
8183
8184MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8185if test -n "$MAGIC_CMD"; then
8186  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8187$as_echo "$MAGIC_CMD" >&6; }
8188else
8189  { $as_echo "$as_me:$LINENO: result: no" >&5
8190$as_echo "no" >&6; }
8191fi
8192
8193
8194  else
8195    MAGIC_CMD=:
8196  fi
8197fi
8198
8199  fi
8200  ;;
8201esac
8202
8203# Use C for the default configuration in the libtool script
8204
8205lt_save_CC="$CC"
8206ac_ext=c
8207ac_cpp='$CPP $CPPFLAGS'
8208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210ac_compiler_gnu=$ac_cv_c_compiler_gnu
8211
8212
8213# Source file extension for C test sources.
8214ac_ext=c
8215
8216# Object file extension for compiled C test sources.
8217objext=o
8218objext=$objext
8219
8220# Code to be used in simple compile tests
8221lt_simple_compile_test_code="int some_variable = 0;"
8222
8223# Code to be used in simple link tests
8224lt_simple_link_test_code='int main(){return(0);}'
8225
8226
8227
8228
8229
8230
8231
8232# If no C compiler was specified, use CC.
8233LTCC=${LTCC-"$CC"}
8234
8235# If no C compiler flags were specified, use CFLAGS.
8236LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8237
8238# Allow CC to be a program name with arguments.
8239compiler=$CC
8240
8241# Save the default compiler, since it gets overwritten when the other
8242# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8243compiler_DEFAULT=$CC
8244
8245# save warnings/boilerplate of simple test code
8246ac_outfile=conftest.$ac_objext
8247echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8248eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8249_lt_compiler_boilerplate=`cat conftest.err`
8250$RM conftest*
8251
8252ac_outfile=conftest.$ac_objext
8253echo "$lt_simple_link_test_code" >conftest.$ac_ext
8254eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8255_lt_linker_boilerplate=`cat conftest.err`
8256$RM -r conftest*
8257
8258
8259if test -n "$compiler"; then
8260
8261lt_prog_compiler_no_builtin_flag=
8262
8263if test "$GCC" = yes; then
8264  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8265
8266  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8267$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8268if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8269  $as_echo_n "(cached) " >&6
8270else
8271  lt_cv_prog_compiler_rtti_exceptions=no
8272   ac_outfile=conftest.$ac_objext
8273   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274   lt_compiler_flag="-fno-rtti -fno-exceptions"
8275   # Insert the option either (1) after the last *FLAGS variable, or
8276   # (2) before a word containing "conftest.", or (3) at the end.
8277   # Note that $ac_compile itself does not contain backslashes and begins
8278   # with a dollar sign (not a hyphen), so the echo should work correctly.
8279   # The option is referenced via a variable to avoid confusing sed.
8280   lt_compile=`echo "$ac_compile" | $SED \
8281   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283   -e 's:$: $lt_compiler_flag:'`
8284   (eval echo "\"\$as_me:8284: $lt_compile\"" >&5)
8285   (eval "$lt_compile" 2>conftest.err)
8286   ac_status=$?
8287   cat conftest.err >&5
8288   echo "$as_me:8288: \$? = $ac_status" >&5
8289   if (exit $ac_status) && test -s "$ac_outfile"; then
8290     # The compiler can only warn and ignore the option if not recognized
8291     # So say no if there are warnings other than the usual output.
8292     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8293     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8295       lt_cv_prog_compiler_rtti_exceptions=yes
8296     fi
8297   fi
8298   $RM conftest*
8299
8300fi
8301{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8302$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8303
8304if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8305    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8306else
8307    :
8308fi
8309
8310fi
8311
8312
8313
8314
8315
8316
8317  lt_prog_compiler_wl=
8318lt_prog_compiler_pic=
8319lt_prog_compiler_static=
8320
8321{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8322$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8323
8324  if test "$GCC" = yes; then
8325    lt_prog_compiler_wl='-Wl,'
8326    lt_prog_compiler_static='-static'
8327
8328    case $host_os in
8329      aix*)
8330      # All AIX code is PIC.
8331      if test "$host_cpu" = ia64; then
8332	# AIX 5 now supports IA64 processor
8333	lt_prog_compiler_static='-Bstatic'
8334      fi
8335      ;;
8336
8337    amigaos*)
8338      case $host_cpu in
8339      powerpc)
8340            # see comment about AmigaOS4 .so support
8341            lt_prog_compiler_pic='-fPIC'
8342        ;;
8343      m68k)
8344            # FIXME: we need at least 68020 code to build shared libraries, but
8345            # adding the `-m68020' flag to GCC prevents building anything better,
8346            # like `-m68040'.
8347            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8348        ;;
8349      esac
8350      ;;
8351
8352    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8353      # PIC is the default for these OSes.
8354      ;;
8355
8356    mingw* | cygwin* | pw32* | os2* | cegcc*)
8357      # This hack is so that the source file can tell whether it is being
8358      # built for inclusion in a dll (and should export symbols for example).
8359      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8360      # (--disable-auto-import) libraries
8361      lt_prog_compiler_pic='-DDLL_EXPORT'
8362      ;;
8363
8364    darwin* | rhapsody*)
8365      # PIC is the default on this platform
8366      # Common symbols not allowed in MH_DYLIB files
8367      lt_prog_compiler_pic='-fno-common'
8368      ;;
8369
8370    hpux*)
8371      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8372      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8373      # sets the default TLS model and affects inlining.
8374      case $host_cpu in
8375      hppa*64*)
8376	# +Z the default
8377	;;
8378      *)
8379	lt_prog_compiler_pic='-fPIC'
8380	;;
8381      esac
8382      ;;
8383
8384    interix[3-9]*)
8385      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8386      # Instead, we relocate shared libraries at runtime.
8387      ;;
8388
8389    msdosdjgpp*)
8390      # Just because we use GCC doesn't mean we suddenly get shared libraries
8391      # on systems that don't support them.
8392      lt_prog_compiler_can_build_shared=no
8393      enable_shared=no
8394      ;;
8395
8396    *nto* | *qnx*)
8397      # QNX uses GNU C++, but need to define -shared option too, otherwise
8398      # it will coredump.
8399      lt_prog_compiler_pic='-fPIC -shared'
8400      ;;
8401
8402    sysv4*MP*)
8403      if test -d /usr/nec; then
8404	lt_prog_compiler_pic=-Kconform_pic
8405      fi
8406      ;;
8407
8408    *)
8409      lt_prog_compiler_pic='-fPIC'
8410      ;;
8411    esac
8412  else
8413    # PORTME Check for flag to pass linker flags through the system compiler.
8414    case $host_os in
8415    aix*)
8416      lt_prog_compiler_wl='-Wl,'
8417      if test "$host_cpu" = ia64; then
8418	# AIX 5 now supports IA64 processor
8419	lt_prog_compiler_static='-Bstatic'
8420      else
8421	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8422      fi
8423      ;;
8424
8425    mingw* | cygwin* | pw32* | os2* | cegcc*)
8426      # This hack is so that the source file can tell whether it is being
8427      # built for inclusion in a dll (and should export symbols for example).
8428      lt_prog_compiler_pic='-DDLL_EXPORT'
8429      ;;
8430
8431    hpux9* | hpux10* | hpux11*)
8432      lt_prog_compiler_wl='-Wl,'
8433      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8434      # not for PA HP-UX.
8435      case $host_cpu in
8436      hppa*64*|ia64*)
8437	# +Z the default
8438	;;
8439      *)
8440	lt_prog_compiler_pic='+Z'
8441	;;
8442      esac
8443      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8444      lt_prog_compiler_static='${wl}-a ${wl}archive'
8445      ;;
8446
8447    irix5* | irix6* | nonstopux*)
8448      lt_prog_compiler_wl='-Wl,'
8449      # PIC (with -KPIC) is the default.
8450      lt_prog_compiler_static='-non_shared'
8451      ;;
8452
8453    linux* | k*bsd*-gnu)
8454      case $cc_basename in
8455      # old Intel for x86_64 which still supported -KPIC.
8456      ecc*)
8457	lt_prog_compiler_wl='-Wl,'
8458	lt_prog_compiler_pic='-KPIC'
8459	lt_prog_compiler_static='-static'
8460        ;;
8461      # icc used to be incompatible with GCC.
8462      # ICC 10 doesn't accept -KPIC any more.
8463      icc* | ifort*)
8464	lt_prog_compiler_wl='-Wl,'
8465	lt_prog_compiler_pic='-fPIC'
8466	lt_prog_compiler_static='-static'
8467        ;;
8468      # Lahey Fortran 8.1.
8469      lf95*)
8470	lt_prog_compiler_wl='-Wl,'
8471	lt_prog_compiler_pic='--shared'
8472	lt_prog_compiler_static='--static'
8473	;;
8474      pgcc* | pgf77* | pgf90* | pgf95*)
8475        # Portland Group compilers (*not* the Pentium gcc compiler,
8476	# which looks to be a dead project)
8477	lt_prog_compiler_wl='-Wl,'
8478	lt_prog_compiler_pic='-fpic'
8479	lt_prog_compiler_static='-Bstatic'
8480        ;;
8481      ccc*)
8482        lt_prog_compiler_wl='-Wl,'
8483        # All Alpha code is PIC.
8484        lt_prog_compiler_static='-non_shared'
8485        ;;
8486      xl*)
8487	# IBM XL C 8.0/Fortran 10.1 on PPC
8488	lt_prog_compiler_wl='-Wl,'
8489	lt_prog_compiler_pic='-qpic'
8490	lt_prog_compiler_static='-qstaticlink'
8491	;;
8492      *)
8493	case `$CC -V 2>&1 | sed 5q` in
8494	*Sun\ C*)
8495	  # Sun C 5.9
8496	  lt_prog_compiler_pic='-KPIC'
8497	  lt_prog_compiler_static='-Bstatic'
8498	  lt_prog_compiler_wl='-Wl,'
8499	  ;;
8500	*Sun\ F*)
8501	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8502	  lt_prog_compiler_pic='-KPIC'
8503	  lt_prog_compiler_static='-Bstatic'
8504	  lt_prog_compiler_wl=''
8505	  ;;
8506	esac
8507	;;
8508      esac
8509      ;;
8510
8511    newsos6)
8512      lt_prog_compiler_pic='-KPIC'
8513      lt_prog_compiler_static='-Bstatic'
8514      ;;
8515
8516    *nto* | *qnx*)
8517      # QNX uses GNU C++, but need to define -shared option too, otherwise
8518      # it will coredump.
8519      lt_prog_compiler_pic='-fPIC -shared'
8520      ;;
8521
8522    osf3* | osf4* | osf5*)
8523      lt_prog_compiler_wl='-Wl,'
8524      # All OSF/1 code is PIC.
8525      lt_prog_compiler_static='-non_shared'
8526      ;;
8527
8528    rdos*)
8529      lt_prog_compiler_static='-non_shared'
8530      ;;
8531
8532    solaris*)
8533      lt_prog_compiler_pic='-KPIC'
8534      lt_prog_compiler_static='-Bstatic'
8535      case $cc_basename in
8536      f77* | f90* | f95*)
8537	lt_prog_compiler_wl='-Qoption ld ';;
8538      *)
8539	lt_prog_compiler_wl='-Wl,';;
8540      esac
8541      ;;
8542
8543    sunos4*)
8544      lt_prog_compiler_wl='-Qoption ld '
8545      lt_prog_compiler_pic='-PIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    sysv4 | sysv4.2uw2* | sysv4.3*)
8550      lt_prog_compiler_wl='-Wl,'
8551      lt_prog_compiler_pic='-KPIC'
8552      lt_prog_compiler_static='-Bstatic'
8553      ;;
8554
8555    sysv4*MP*)
8556      if test -d /usr/nec ;then
8557	lt_prog_compiler_pic='-Kconform_pic'
8558	lt_prog_compiler_static='-Bstatic'
8559      fi
8560      ;;
8561
8562    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8563      lt_prog_compiler_wl='-Wl,'
8564      lt_prog_compiler_pic='-KPIC'
8565      lt_prog_compiler_static='-Bstatic'
8566      ;;
8567
8568    unicos*)
8569      lt_prog_compiler_wl='-Wl,'
8570      lt_prog_compiler_can_build_shared=no
8571      ;;
8572
8573    uts4*)
8574      lt_prog_compiler_pic='-pic'
8575      lt_prog_compiler_static='-Bstatic'
8576      ;;
8577
8578    *)
8579      lt_prog_compiler_can_build_shared=no
8580      ;;
8581    esac
8582  fi
8583
8584case $host_os in
8585  # For platforms which do not support PIC, -DPIC is meaningless:
8586  *djgpp*)
8587    lt_prog_compiler_pic=
8588    ;;
8589  *)
8590    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8591    ;;
8592esac
8593{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8594$as_echo "$lt_prog_compiler_pic" >&6; }
8595
8596
8597
8598
8599
8600
8601#
8602# Check to make sure the PIC flag actually works.
8603#
8604if test -n "$lt_prog_compiler_pic"; then
8605  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8606$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8607if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8608  $as_echo_n "(cached) " >&6
8609else
8610  lt_cv_prog_compiler_pic_works=no
8611   ac_outfile=conftest.$ac_objext
8612   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8614   # Insert the option either (1) after the last *FLAGS variable, or
8615   # (2) before a word containing "conftest.", or (3) at the end.
8616   # Note that $ac_compile itself does not contain backslashes and begins
8617   # with a dollar sign (not a hyphen), so the echo should work correctly.
8618   # The option is referenced via a variable to avoid confusing sed.
8619   lt_compile=`echo "$ac_compile" | $SED \
8620   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622   -e 's:$: $lt_compiler_flag:'`
8623   (eval echo "\"\$as_me:8623: $lt_compile\"" >&5)
8624   (eval "$lt_compile" 2>conftest.err)
8625   ac_status=$?
8626   cat conftest.err >&5
8627   echo "$as_me:8627: \$? = $ac_status" >&5
8628   if (exit $ac_status) && test -s "$ac_outfile"; then
8629     # The compiler can only warn and ignore the option if not recognized
8630     # So say no if there are warnings other than the usual output.
8631     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8632     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8633     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8634       lt_cv_prog_compiler_pic_works=yes
8635     fi
8636   fi
8637   $RM conftest*
8638
8639fi
8640{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8641$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8642
8643if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8644    case $lt_prog_compiler_pic in
8645     "" | " "*) ;;
8646     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8647     esac
8648else
8649    lt_prog_compiler_pic=
8650     lt_prog_compiler_can_build_shared=no
8651fi
8652
8653fi
8654
8655
8656
8657
8658
8659
8660#
8661# Check to make sure the static flag actually works.
8662#
8663wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8664{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8665$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8666if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8667  $as_echo_n "(cached) " >&6
8668else
8669  lt_cv_prog_compiler_static_works=no
8670   save_LDFLAGS="$LDFLAGS"
8671   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8672   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8673   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8674     # The linker can only warn and ignore the option if not recognized
8675     # So say no if there are warnings
8676     if test -s conftest.err; then
8677       # Append any errors to the config.log.
8678       cat conftest.err 1>&5
8679       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8680       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8681       if diff conftest.exp conftest.er2 >/dev/null; then
8682         lt_cv_prog_compiler_static_works=yes
8683       fi
8684     else
8685       lt_cv_prog_compiler_static_works=yes
8686     fi
8687   fi
8688   $RM -r conftest*
8689   LDFLAGS="$save_LDFLAGS"
8690
8691fi
8692{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8693$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8694
8695if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8696    :
8697else
8698    lt_prog_compiler_static=
8699fi
8700
8701
8702
8703
8704
8705
8706
8707  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8708$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8709if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8710  $as_echo_n "(cached) " >&6
8711else
8712  lt_cv_prog_compiler_c_o=no
8713   $RM -r conftest 2>/dev/null
8714   mkdir conftest
8715   cd conftest
8716   mkdir out
8717   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718
8719   lt_compiler_flag="-o out/conftest2.$ac_objext"
8720   # Insert the option either (1) after the last *FLAGS variable, or
8721   # (2) before a word containing "conftest.", or (3) at the end.
8722   # Note that $ac_compile itself does not contain backslashes and begins
8723   # with a dollar sign (not a hyphen), so the echo should work correctly.
8724   lt_compile=`echo "$ac_compile" | $SED \
8725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727   -e 's:$: $lt_compiler_flag:'`
8728   (eval echo "\"\$as_me:8728: $lt_compile\"" >&5)
8729   (eval "$lt_compile" 2>out/conftest.err)
8730   ac_status=$?
8731   cat out/conftest.err >&5
8732   echo "$as_me:8732: \$? = $ac_status" >&5
8733   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8734   then
8735     # The compiler can only warn and ignore the option if not recognized
8736     # So say no if there are warnings
8737     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8738     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8739     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8740       lt_cv_prog_compiler_c_o=yes
8741     fi
8742   fi
8743   chmod u+w . 2>&5
8744   $RM conftest*
8745   # SGI C++ compiler will create directory out/ii_files/ for
8746   # template instantiation
8747   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8748   $RM out/* && rmdir out
8749   cd ..
8750   $RM -r conftest
8751   $RM conftest*
8752
8753fi
8754{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8755$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8756
8757
8758
8759
8760
8761
8762  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8763$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8764if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8765  $as_echo_n "(cached) " >&6
8766else
8767  lt_cv_prog_compiler_c_o=no
8768   $RM -r conftest 2>/dev/null
8769   mkdir conftest
8770   cd conftest
8771   mkdir out
8772   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773
8774   lt_compiler_flag="-o out/conftest2.$ac_objext"
8775   # Insert the option either (1) after the last *FLAGS variable, or
8776   # (2) before a word containing "conftest.", or (3) at the end.
8777   # Note that $ac_compile itself does not contain backslashes and begins
8778   # with a dollar sign (not a hyphen), so the echo should work correctly.
8779   lt_compile=`echo "$ac_compile" | $SED \
8780   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782   -e 's:$: $lt_compiler_flag:'`
8783   (eval echo "\"\$as_me:8783: $lt_compile\"" >&5)
8784   (eval "$lt_compile" 2>out/conftest.err)
8785   ac_status=$?
8786   cat out/conftest.err >&5
8787   echo "$as_me:8787: \$? = $ac_status" >&5
8788   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8789   then
8790     # The compiler can only warn and ignore the option if not recognized
8791     # So say no if there are warnings
8792     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8793     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8794     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8795       lt_cv_prog_compiler_c_o=yes
8796     fi
8797   fi
8798   chmod u+w . 2>&5
8799   $RM conftest*
8800   # SGI C++ compiler will create directory out/ii_files/ for
8801   # template instantiation
8802   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8803   $RM out/* && rmdir out
8804   cd ..
8805   $RM -r conftest
8806   $RM conftest*
8807
8808fi
8809{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8810$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8811
8812
8813
8814
8815hard_links="nottested"
8816if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8817  # do not overwrite the value of need_locks provided by the user
8818  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8819$as_echo_n "checking if we can lock with hard links... " >&6; }
8820  hard_links=yes
8821  $RM conftest*
8822  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8823  touch conftest.a
8824  ln conftest.a conftest.b 2>&5 || hard_links=no
8825  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8826  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8827$as_echo "$hard_links" >&6; }
8828  if test "$hard_links" = no; then
8829    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8830$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8831    need_locks=warn
8832  fi
8833else
8834  need_locks=no
8835fi
8836
8837
8838
8839
8840
8841
8842  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8843$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8844
8845  runpath_var=
8846  allow_undefined_flag=
8847  always_export_symbols=no
8848  archive_cmds=
8849  archive_expsym_cmds=
8850  compiler_needs_object=no
8851  enable_shared_with_static_runtimes=no
8852  export_dynamic_flag_spec=
8853  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8854  hardcode_automatic=no
8855  hardcode_direct=no
8856  hardcode_direct_absolute=no
8857  hardcode_libdir_flag_spec=
8858  hardcode_libdir_flag_spec_ld=
8859  hardcode_libdir_separator=
8860  hardcode_minus_L=no
8861  hardcode_shlibpath_var=unsupported
8862  inherit_rpath=no
8863  link_all_deplibs=unknown
8864  module_cmds=
8865  module_expsym_cmds=
8866  old_archive_from_new_cmds=
8867  old_archive_from_expsyms_cmds=
8868  thread_safe_flag_spec=
8869  whole_archive_flag_spec=
8870  # include_expsyms should be a list of space-separated symbols to be *always*
8871  # included in the symbol list
8872  include_expsyms=
8873  # exclude_expsyms can be an extended regexp of symbols to exclude
8874  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8875  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8876  # as well as any symbol that contains `d'.
8877  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8878  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8879  # platforms (ab)use it in PIC code, but their linkers get confused if
8880  # the symbol is explicitly referenced.  Since portable code cannot
8881  # rely on this symbol name, it's probably fine to never include it in
8882  # preloaded symbol tables.
8883  # Exclude shared library initialization/finalization symbols.
8884  extract_expsyms_cmds=
8885
8886  case $host_os in
8887  cygwin* | mingw* | pw32* | cegcc*)
8888    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8889    # When not using gcc, we currently assume that we are using
8890    # Microsoft Visual C++.
8891    if test "$GCC" != yes; then
8892      with_gnu_ld=no
8893    fi
8894    ;;
8895  interix*)
8896    # we just hope/assume this is gcc and not c89 (= MSVC++)
8897    with_gnu_ld=yes
8898    ;;
8899  openbsd*)
8900    with_gnu_ld=no
8901    ;;
8902  esac
8903
8904  ld_shlibs=yes
8905  if test "$with_gnu_ld" = yes; then
8906    # If archive_cmds runs LD, not CC, wlarc should be empty
8907    wlarc='${wl}'
8908
8909    # Set some defaults for GNU ld with shared library support. These
8910    # are reset later if shared libraries are not supported. Putting them
8911    # here allows them to be overridden if necessary.
8912    runpath_var=LD_RUN_PATH
8913    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914    export_dynamic_flag_spec='${wl}--export-dynamic'
8915    # ancient GNU ld didn't support --whole-archive et. al.
8916    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8917      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8918    else
8919      whole_archive_flag_spec=
8920    fi
8921    supports_anon_versioning=no
8922    case `$LD -v 2>&1` in
8923      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8924      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8925      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8926      *\ 2.11.*) ;; # other 2.11 versions
8927      *) supports_anon_versioning=yes ;;
8928    esac
8929
8930    # See if GNU ld supports shared libraries.
8931    case $host_os in
8932    aix[3-9]*)
8933      # On AIX/PPC, the GNU linker is very broken
8934      if test "$host_cpu" != ia64; then
8935	ld_shlibs=no
8936	cat <<_LT_EOF 1>&2
8937
8938*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8939*** to be unable to reliably create shared libraries on AIX.
8940*** Therefore, libtool is disabling shared libraries support.  If you
8941*** really care for shared libraries, you may want to modify your PATH
8942*** so that a non-GNU linker is found, and then restart.
8943
8944_LT_EOF
8945      fi
8946      ;;
8947
8948    amigaos*)
8949      case $host_cpu in
8950      powerpc)
8951            # see comment about AmigaOS4 .so support
8952            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953            archive_expsym_cmds=''
8954        ;;
8955      m68k)
8956            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)'
8957            hardcode_libdir_flag_spec='-L$libdir'
8958            hardcode_minus_L=yes
8959        ;;
8960      esac
8961      ;;
8962
8963    beos*)
8964      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8965	allow_undefined_flag=unsupported
8966	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8967	# support --undefined.  This deserves some investigation.  FIXME
8968	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969      else
8970	ld_shlibs=no
8971      fi
8972      ;;
8973
8974    cygwin* | mingw* | pw32* | cegcc*)
8975      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8976      # as there is no search path for DLLs.
8977      hardcode_libdir_flag_spec='-L$libdir'
8978      allow_undefined_flag=unsupported
8979      always_export_symbols=no
8980      enable_shared_with_static_runtimes=yes
8981      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8982
8983      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8984        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8985	# If the export-symbols file already is a .def file (1st line
8986	# is EXPORTS), use it as is; otherwise, prepend...
8987	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8988	  cp $export_symbols $output_objdir/$soname.def;
8989	else
8990	  echo EXPORTS > $output_objdir/$soname.def;
8991	  cat $export_symbols >> $output_objdir/$soname.def;
8992	fi~
8993	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8994      else
8995	ld_shlibs=no
8996      fi
8997      ;;
8998
8999    interix[3-9]*)
9000      hardcode_direct=no
9001      hardcode_shlibpath_var=no
9002      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9003      export_dynamic_flag_spec='${wl}-E'
9004      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9005      # Instead, shared libraries are loaded at an image base (0x10000000 by
9006      # default) and relocated if they conflict, which is a slow very memory
9007      # consuming and fragmenting process.  To avoid this, we pick a random,
9008      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9009      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9010      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9011      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'
9012      ;;
9013
9014    gnu* | linux* | tpf* | k*bsd*-gnu)
9015      tmp_diet=no
9016      if test "$host_os" = linux-dietlibc; then
9017	case $cc_basename in
9018	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9019	esac
9020      fi
9021      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9022	 && test "$tmp_diet" = no
9023      then
9024	tmp_addflag=
9025	tmp_sharedflag='-shared'
9026	case $cc_basename,$host_cpu in
9027        pgcc*)				# Portland Group C compiler
9028	  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'
9029	  tmp_addflag=' $pic_flag'
9030	  ;;
9031	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9032	  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'
9033	  tmp_addflag=' $pic_flag -Mnomain' ;;
9034	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9035	  tmp_addflag=' -i_dynamic' ;;
9036	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9037	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9038	ifc* | ifort*)			# Intel Fortran compiler
9039	  tmp_addflag=' -nofor_main' ;;
9040	lf95*)				# Lahey Fortran 8.1
9041	  whole_archive_flag_spec=
9042	  tmp_sharedflag='--shared' ;;
9043	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9044	  tmp_sharedflag='-qmkshrobj'
9045	  tmp_addflag= ;;
9046	esac
9047	case `$CC -V 2>&1 | sed 5q` in
9048	*Sun\ C*)			# Sun C 5.9
9049	  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'
9050	  compiler_needs_object=yes
9051	  tmp_sharedflag='-G' ;;
9052	*Sun\ F*)			# Sun Fortran 8.3
9053	  tmp_sharedflag='-G' ;;
9054	esac
9055	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056
9057        if test "x$supports_anon_versioning" = xyes; then
9058          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9059	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9060	    echo "local: *; };" >> $output_objdir/$libname.ver~
9061	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9062        fi
9063
9064	case $cc_basename in
9065	xlf*)
9066	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9067	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9068	  hardcode_libdir_flag_spec=
9069	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9070	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9071	  if test "x$supports_anon_versioning" = xyes; then
9072	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074	      echo "local: *; };" >> $output_objdir/$libname.ver~
9075	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9076	  fi
9077	  ;;
9078	esac
9079      else
9080        ld_shlibs=no
9081      fi
9082      ;;
9083
9084    netbsd*)
9085      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9086	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9087	wlarc=
9088      else
9089	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9091      fi
9092      ;;
9093
9094    solaris*)
9095      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9096	ld_shlibs=no
9097	cat <<_LT_EOF 1>&2
9098
9099*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9100*** create shared libraries on Solaris systems.  Therefore, libtool
9101*** is disabling shared libraries support.  We urge you to upgrade GNU
9102*** binutils to release 2.9.1 or newer.  Another option is to modify
9103*** your PATH or compiler configuration so that the native linker is
9104*** used, and then restart.
9105
9106_LT_EOF
9107      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110      else
9111	ld_shlibs=no
9112      fi
9113      ;;
9114
9115    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9116      case `$LD -v 2>&1` in
9117        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9118	ld_shlibs=no
9119	cat <<_LT_EOF 1>&2
9120
9121*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9122*** reliably create shared libraries on SCO systems.  Therefore, libtool
9123*** is disabling shared libraries support.  We urge you to upgrade GNU
9124*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9125*** your PATH or compiler configuration so that the native linker is
9126*** used, and then restart.
9127
9128_LT_EOF
9129	;;
9130	*)
9131	  # For security reasons, it is highly recommended that you always
9132	  # use absolute paths for naming shared libraries, and exclude the
9133	  # DT_RUNPATH tag from executables and libraries.  But doing so
9134	  # requires that you compile everything twice, which is a pain.
9135	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9136	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9138	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9139	  else
9140	    ld_shlibs=no
9141	  fi
9142	;;
9143      esac
9144      ;;
9145
9146    sunos4*)
9147      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9148      wlarc=
9149      hardcode_direct=yes
9150      hardcode_shlibpath_var=no
9151      ;;
9152
9153    *)
9154      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9157      else
9158	ld_shlibs=no
9159      fi
9160      ;;
9161    esac
9162
9163    if test "$ld_shlibs" = no; then
9164      runpath_var=
9165      hardcode_libdir_flag_spec=
9166      export_dynamic_flag_spec=
9167      whole_archive_flag_spec=
9168    fi
9169  else
9170    # PORTME fill in a description of your system's linker (not GNU ld)
9171    case $host_os in
9172    aix3*)
9173      allow_undefined_flag=unsupported
9174      always_export_symbols=yes
9175      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'
9176      # Note: this linker hardcodes the directories in LIBPATH if there
9177      # are no directories specified by -L.
9178      hardcode_minus_L=yes
9179      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9180	# Neither direct hardcoding nor static linking is supported with a
9181	# broken collect2.
9182	hardcode_direct=unsupported
9183      fi
9184      ;;
9185
9186    aix[4-9]*)
9187      if test "$host_cpu" = ia64; then
9188	# On IA64, the linker does run time linking by default, so we don't
9189	# have to do anything special.
9190	aix_use_runtimelinking=no
9191	exp_sym_flag='-Bexport'
9192	no_entry_flag=""
9193      else
9194	# If we're using GNU nm, then we don't want the "-C" option.
9195	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9196	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9197	  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'
9198	else
9199	  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'
9200	fi
9201	aix_use_runtimelinking=no
9202
9203	# Test if we are trying to use run time linking or normal
9204	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9205	# need to do runtime linking.
9206	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9207	  for ld_flag in $LDFLAGS; do
9208	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9209	    aix_use_runtimelinking=yes
9210	    break
9211	  fi
9212	  done
9213	  ;;
9214	esac
9215
9216	exp_sym_flag='-bexport'
9217	no_entry_flag='-bnoentry'
9218      fi
9219
9220      # When large executables or shared objects are built, AIX ld can
9221      # have problems creating the table of contents.  If linking a library
9222      # or program results in "error TOC overflow" add -mminimal-toc to
9223      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9224      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9225
9226      archive_cmds=''
9227      hardcode_direct=yes
9228      hardcode_direct_absolute=yes
9229      hardcode_libdir_separator=':'
9230      link_all_deplibs=yes
9231      file_list_spec='${wl}-f,'
9232
9233      if test "$GCC" = yes; then
9234	case $host_os in aix4.[012]|aix4.[012].*)
9235	# We only want to do this on AIX 4.2 and lower, the check
9236	# below for broken collect2 doesn't work under 4.3+
9237	  collect2name=`${CC} -print-prog-name=collect2`
9238	  if test -f "$collect2name" &&
9239	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9240	  then
9241	  # We have reworked collect2
9242	  :
9243	  else
9244	  # We have old collect2
9245	  hardcode_direct=unsupported
9246	  # It fails to find uninstalled libraries when the uninstalled
9247	  # path is not listed in the libpath.  Setting hardcode_minus_L
9248	  # to unsupported forces relinking
9249	  hardcode_minus_L=yes
9250	  hardcode_libdir_flag_spec='-L$libdir'
9251	  hardcode_libdir_separator=
9252	  fi
9253	  ;;
9254	esac
9255	shared_flag='-shared'
9256	if test "$aix_use_runtimelinking" = yes; then
9257	  shared_flag="$shared_flag "'${wl}-G'
9258	fi
9259      else
9260	# not using gcc
9261	if test "$host_cpu" = ia64; then
9262	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9263	# chokes on -Wl,-G. The following line is correct:
9264	  shared_flag='-G'
9265	else
9266	  if test "$aix_use_runtimelinking" = yes; then
9267	    shared_flag='${wl}-G'
9268	  else
9269	    shared_flag='${wl}-bM:SRE'
9270	  fi
9271	fi
9272      fi
9273
9274      export_dynamic_flag_spec='${wl}-bexpall'
9275      # It seems that -bexpall does not export symbols beginning with
9276      # underscore (_), so it is better to generate a list of symbols to export.
9277      always_export_symbols=yes
9278      if test "$aix_use_runtimelinking" = yes; then
9279	# Warning - without using the other runtime loading flags (-brtl),
9280	# -berok will link without error, but may produce a broken library.
9281	allow_undefined_flag='-berok'
9282        # Determine the default libpath from the value encoded in an
9283        # empty executable.
9284        cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h.  */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h.  */
9290
9291int
9292main ()
9293{
9294
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299rm -f conftest.$ac_objext conftest$ac_exeext
9300if { (ac_try="$ac_link"
9301case "(($ac_try" in
9302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303  *) ac_try_echo=$ac_try;;
9304esac
9305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9306$as_echo "$ac_try_echo") >&5
9307  (eval "$ac_link") 2>conftest.er1
9308  ac_status=$?
9309  grep -v '^ *+' conftest.er1 >conftest.err
9310  rm -f conftest.er1
9311  cat conftest.err >&5
9312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313  (exit $ac_status); } && {
9314	 test -z "$ac_c_werror_flag" ||
9315	 test ! -s conftest.err
9316       } && test -s conftest$ac_exeext && {
9317	 test "$cross_compiling" = yes ||
9318	 $as_test_x conftest$ac_exeext
9319       }; then
9320
9321lt_aix_libpath_sed='
9322    /Import File Strings/,/^$/ {
9323	/^0/ {
9324	    s/^0  *\(.*\)$/\1/
9325	    p
9326	}
9327    }'
9328aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329# Check for a 64-bit object if we didn't find anything.
9330if test -z "$aix_libpath"; then
9331  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9332fi
9333else
9334  $as_echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
9336
9337
9338fi
9339
9340rm -rf conftest.dSYM
9341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342      conftest$ac_exeext conftest.$ac_ext
9343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344
9345        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346        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"
9347      else
9348	if test "$host_cpu" = ia64; then
9349	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9350	  allow_undefined_flag="-z nodefs"
9351	  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"
9352	else
9353	 # Determine the default libpath from the value encoded in an
9354	 # empty executable.
9355	 cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h.  */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h.  */
9361
9362int
9363main ()
9364{
9365
9366  ;
9367  return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
9371if { (ac_try="$ac_link"
9372case "(($ac_try" in
9373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374  *) ac_try_echo=$ac_try;;
9375esac
9376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9377$as_echo "$ac_try_echo") >&5
9378  (eval "$ac_link") 2>conftest.er1
9379  ac_status=$?
9380  grep -v '^ *+' conftest.er1 >conftest.err
9381  rm -f conftest.er1
9382  cat conftest.err >&5
9383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384  (exit $ac_status); } && {
9385	 test -z "$ac_c_werror_flag" ||
9386	 test ! -s conftest.err
9387       } && test -s conftest$ac_exeext && {
9388	 test "$cross_compiling" = yes ||
9389	 $as_test_x conftest$ac_exeext
9390       }; then
9391
9392lt_aix_libpath_sed='
9393    /Import File Strings/,/^$/ {
9394	/^0/ {
9395	    s/^0  *\(.*\)$/\1/
9396	    p
9397	}
9398    }'
9399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9400# Check for a 64-bit object if we didn't find anything.
9401if test -z "$aix_libpath"; then
9402  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9403fi
9404else
9405  $as_echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
9407
9408
9409fi
9410
9411rm -rf conftest.dSYM
9412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9413      conftest$ac_exeext conftest.$ac_ext
9414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9415
9416	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9417	  # Warning - without using the other run time loading flags,
9418	  # -berok will link without error, but may produce a broken library.
9419	  no_undefined_flag=' ${wl}-bernotok'
9420	  allow_undefined_flag=' ${wl}-berok'
9421	  # Exported symbols can be pulled into shared objects from archives
9422	  whole_archive_flag_spec='$convenience'
9423	  archive_cmds_need_lc=yes
9424	  # This is similar to how AIX traditionally builds its shared libraries.
9425	  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'
9426	fi
9427      fi
9428      ;;
9429
9430    amigaos*)
9431      case $host_cpu in
9432      powerpc)
9433            # see comment about AmigaOS4 .so support
9434            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435            archive_expsym_cmds=''
9436        ;;
9437      m68k)
9438            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)'
9439            hardcode_libdir_flag_spec='-L$libdir'
9440            hardcode_minus_L=yes
9441        ;;
9442      esac
9443      ;;
9444
9445    bsdi[45]*)
9446      export_dynamic_flag_spec=-rdynamic
9447      ;;
9448
9449    cygwin* | mingw* | pw32* | cegcc*)
9450      # When not using gcc, we currently assume that we are using
9451      # Microsoft Visual C++.
9452      # hardcode_libdir_flag_spec is actually meaningless, as there is
9453      # no search path for DLLs.
9454      hardcode_libdir_flag_spec=' '
9455      allow_undefined_flag=unsupported
9456      # Tell ltmain to make .lib files, not .a files.
9457      libext=lib
9458      # Tell ltmain to make .dll files, not .so files.
9459      shrext_cmds=".dll"
9460      # FIXME: Setting linknames here is a bad hack.
9461      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9462      # The linker will automatically build a .lib file if we build a DLL.
9463      old_archive_from_new_cmds='true'
9464      # FIXME: Should let the user specify the lib program.
9465      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9466      fix_srcfile_path='`cygpath -w "$srcfile"`'
9467      enable_shared_with_static_runtimes=yes
9468      ;;
9469
9470    darwin* | rhapsody*)
9471
9472
9473  archive_cmds_need_lc=no
9474  hardcode_direct=no
9475  hardcode_automatic=yes
9476  hardcode_shlibpath_var=unsupported
9477  whole_archive_flag_spec=''
9478  link_all_deplibs=yes
9479  allow_undefined_flag="$_lt_dar_allow_undefined"
9480  case $cc_basename in
9481     ifort*) _lt_dar_can_shared=yes ;;
9482     *) _lt_dar_can_shared=$GCC ;;
9483  esac
9484  if test "$_lt_dar_can_shared" = "yes"; then
9485    output_verbose_link_cmd=echo
9486    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9487    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9488    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}"
9489    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}"
9490
9491  else
9492  ld_shlibs=no
9493  fi
9494
9495      ;;
9496
9497    dgux*)
9498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499      hardcode_libdir_flag_spec='-L$libdir'
9500      hardcode_shlibpath_var=no
9501      ;;
9502
9503    freebsd1*)
9504      ld_shlibs=no
9505      ;;
9506
9507    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9508    # support.  Future versions do this automatically, but an explicit c++rt0.o
9509    # does not break anything, and helps significantly (at the cost of a little
9510    # extra space).
9511    freebsd2.2*)
9512      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9513      hardcode_libdir_flag_spec='-R$libdir'
9514      hardcode_direct=yes
9515      hardcode_shlibpath_var=no
9516      ;;
9517
9518    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9519    freebsd2*)
9520      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521      hardcode_direct=yes
9522      hardcode_minus_L=yes
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9527    freebsd* | dragonfly*)
9528      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9529      hardcode_libdir_flag_spec='-R$libdir'
9530      hardcode_direct=yes
9531      hardcode_shlibpath_var=no
9532      ;;
9533
9534    hpux9*)
9535      if test "$GCC" = yes; then
9536	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'
9537      else
9538	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'
9539      fi
9540      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9541      hardcode_libdir_separator=:
9542      hardcode_direct=yes
9543
9544      # hardcode_minus_L: Not really in the search PATH,
9545      # but as the default location of the library.
9546      hardcode_minus_L=yes
9547      export_dynamic_flag_spec='${wl}-E'
9548      ;;
9549
9550    hpux10*)
9551      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9552	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9553      else
9554	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9555      fi
9556      if test "$with_gnu_ld" = no; then
9557	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9558	hardcode_libdir_flag_spec_ld='+b $libdir'
9559	hardcode_libdir_separator=:
9560	hardcode_direct=yes
9561	hardcode_direct_absolute=yes
9562	export_dynamic_flag_spec='${wl}-E'
9563	# hardcode_minus_L: Not really in the search PATH,
9564	# but as the default location of the library.
9565	hardcode_minus_L=yes
9566      fi
9567      ;;
9568
9569    hpux11*)
9570      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9571	case $host_cpu in
9572	hppa*64*)
9573	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9574	  ;;
9575	ia64*)
9576	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9577	  ;;
9578	*)
9579	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9580	  ;;
9581	esac
9582      else
9583	case $host_cpu in
9584	hppa*64*)
9585	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9586	  ;;
9587	ia64*)
9588	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9589	  ;;
9590	*)
9591	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9592	  ;;
9593	esac
9594      fi
9595      if test "$with_gnu_ld" = no; then
9596	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9597	hardcode_libdir_separator=:
9598
9599	case $host_cpu in
9600	hppa*64*|ia64*)
9601	  hardcode_direct=no
9602	  hardcode_shlibpath_var=no
9603	  ;;
9604	*)
9605	  hardcode_direct=yes
9606	  hardcode_direct_absolute=yes
9607	  export_dynamic_flag_spec='${wl}-E'
9608
9609	  # hardcode_minus_L: Not really in the search PATH,
9610	  # but as the default location of the library.
9611	  hardcode_minus_L=yes
9612	  ;;
9613	esac
9614      fi
9615      ;;
9616
9617    irix5* | irix6* | nonstopux*)
9618      if test "$GCC" = yes; then
9619	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'
9620	# Try to use the -exported_symbol ld option, if it does not
9621	# work, assume that -exports_file does not work either and
9622	# implicitly export all symbols.
9623        save_LDFLAGS="$LDFLAGS"
9624        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9625        cat >conftest.$ac_ext <<_ACEOF
9626int foo(void) {}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (ac_try="$ac_link"
9630case "(($ac_try" in
9631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632  *) ac_try_echo=$ac_try;;
9633esac
9634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9635$as_echo "$ac_try_echo") >&5
9636  (eval "$ac_link") 2>conftest.er1
9637  ac_status=$?
9638  grep -v '^ *+' conftest.er1 >conftest.err
9639  rm -f conftest.er1
9640  cat conftest.err >&5
9641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642  (exit $ac_status); } && {
9643	 test -z "$ac_c_werror_flag" ||
9644	 test ! -s conftest.err
9645       } && test -s conftest$ac_exeext && {
9646	 test "$cross_compiling" = yes ||
9647	 $as_test_x conftest$ac_exeext
9648       }; then
9649  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'
9650
9651else
9652  $as_echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
9655
9656fi
9657
9658rm -rf conftest.dSYM
9659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660      conftest$ac_exeext conftest.$ac_ext
9661        LDFLAGS="$save_LDFLAGS"
9662      else
9663	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'
9664	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'
9665      fi
9666      archive_cmds_need_lc='no'
9667      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668      hardcode_libdir_separator=:
9669      inherit_rpath=yes
9670      link_all_deplibs=yes
9671      ;;
9672
9673    netbsd*)
9674      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9675	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9676      else
9677	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9678      fi
9679      hardcode_libdir_flag_spec='-R$libdir'
9680      hardcode_direct=yes
9681      hardcode_shlibpath_var=no
9682      ;;
9683
9684    newsos6)
9685      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686      hardcode_direct=yes
9687      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688      hardcode_libdir_separator=:
9689      hardcode_shlibpath_var=no
9690      ;;
9691
9692    *nto* | *qnx*)
9693      ;;
9694
9695    openbsd*)
9696      if test -f /usr/libexec/ld.so; then
9697	hardcode_direct=yes
9698	hardcode_shlibpath_var=no
9699	hardcode_direct_absolute=yes
9700	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9701	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9702	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9703	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9704	  export_dynamic_flag_spec='${wl}-E'
9705	else
9706	  case $host_os in
9707	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9708	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9709	     hardcode_libdir_flag_spec='-R$libdir'
9710	     ;;
9711	   *)
9712	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9713	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9714	     ;;
9715	  esac
9716	fi
9717      else
9718	ld_shlibs=no
9719      fi
9720      ;;
9721
9722    os2*)
9723      hardcode_libdir_flag_spec='-L$libdir'
9724      hardcode_minus_L=yes
9725      allow_undefined_flag=unsupported
9726      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'
9727      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9728      ;;
9729
9730    osf3*)
9731      if test "$GCC" = yes; then
9732	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9733	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'
9734      else
9735	allow_undefined_flag=' -expect_unresolved \*'
9736	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'
9737      fi
9738      archive_cmds_need_lc='no'
9739      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740      hardcode_libdir_separator=:
9741      ;;
9742
9743    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9744      if test "$GCC" = yes; then
9745	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9746	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'
9747	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748      else
9749	allow_undefined_flag=' -expect_unresolved \*'
9750	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'
9751	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~
9752	$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'
9753
9754	# Both c and cxx compiler support -rpath directly
9755	hardcode_libdir_flag_spec='-rpath $libdir'
9756      fi
9757      archive_cmds_need_lc='no'
9758      hardcode_libdir_separator=:
9759      ;;
9760
9761    solaris*)
9762      no_undefined_flag=' -z defs'
9763      if test "$GCC" = yes; then
9764	wlarc='${wl}'
9765	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9766	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9767	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9768      else
9769	case `$CC -V 2>&1` in
9770	*"Compilers 5.0"*)
9771	  wlarc=''
9772	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9774	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9775	  ;;
9776	*)
9777	  wlarc='${wl}'
9778	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9779	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9780	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9781	  ;;
9782	esac
9783      fi
9784      hardcode_libdir_flag_spec='-R$libdir'
9785      hardcode_shlibpath_var=no
9786      case $host_os in
9787      solaris2.[0-5] | solaris2.[0-5].*) ;;
9788      *)
9789	# The compiler driver will combine and reorder linker options,
9790	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9791	# but is careful enough not to reorder.
9792	# Supported since Solaris 2.6 (maybe 2.5.1?)
9793	if test "$GCC" = yes; then
9794	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9795	else
9796	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9797	fi
9798	;;
9799      esac
9800      link_all_deplibs=yes
9801      ;;
9802
9803    sunos4*)
9804      if test "x$host_vendor" = xsequent; then
9805	# Use $CC to link under sequent, because it throws in some extra .o
9806	# files that make .init and .fini sections work.
9807	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9808      else
9809	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9810      fi
9811      hardcode_libdir_flag_spec='-L$libdir'
9812      hardcode_direct=yes
9813      hardcode_minus_L=yes
9814      hardcode_shlibpath_var=no
9815      ;;
9816
9817    sysv4)
9818      case $host_vendor in
9819	sni)
9820	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821	  hardcode_direct=yes # is this really true???
9822	;;
9823	siemens)
9824	  ## LD is ld it makes a PLAMLIB
9825	  ## CC just makes a GrossModule.
9826	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9827	  reload_cmds='$CC -r -o $output$reload_objs'
9828	  hardcode_direct=no
9829        ;;
9830	motorola)
9831	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9833	;;
9834      esac
9835      runpath_var='LD_RUN_PATH'
9836      hardcode_shlibpath_var=no
9837      ;;
9838
9839    sysv4.3*)
9840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841      hardcode_shlibpath_var=no
9842      export_dynamic_flag_spec='-Bexport'
9843      ;;
9844
9845    sysv4*MP*)
9846      if test -d /usr/nec; then
9847	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848	hardcode_shlibpath_var=no
9849	runpath_var=LD_RUN_PATH
9850	hardcode_runpath_var=yes
9851	ld_shlibs=yes
9852      fi
9853      ;;
9854
9855    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9856      no_undefined_flag='${wl}-z,text'
9857      archive_cmds_need_lc=no
9858      hardcode_shlibpath_var=no
9859      runpath_var='LD_RUN_PATH'
9860
9861      if test "$GCC" = yes; then
9862	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864      else
9865	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867      fi
9868      ;;
9869
9870    sysv5* | sco3.2v5* | sco5v6*)
9871      # Note: We can NOT use -z defs as we might desire, because we do not
9872      # link with -lc, and that would cause any symbols used from libc to
9873      # always be unresolved, which means just about no library would
9874      # ever link correctly.  If we're not using GNU ld we use -z text
9875      # though, which does catch some bad symbols but isn't as heavy-handed
9876      # as -z defs.
9877      no_undefined_flag='${wl}-z,text'
9878      allow_undefined_flag='${wl}-z,nodefs'
9879      archive_cmds_need_lc=no
9880      hardcode_shlibpath_var=no
9881      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9882      hardcode_libdir_separator=':'
9883      link_all_deplibs=yes
9884      export_dynamic_flag_spec='${wl}-Bexport'
9885      runpath_var='LD_RUN_PATH'
9886
9887      if test "$GCC" = yes; then
9888	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890      else
9891	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9892	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9893      fi
9894      ;;
9895
9896    uts4*)
9897      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898      hardcode_libdir_flag_spec='-L$libdir'
9899      hardcode_shlibpath_var=no
9900      ;;
9901
9902    *)
9903      ld_shlibs=no
9904      ;;
9905    esac
9906
9907    if test x$host_vendor = xsni; then
9908      case $host in
9909      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9910	export_dynamic_flag_spec='${wl}-Blargedynsym'
9911	;;
9912      esac
9913    fi
9914  fi
9915
9916{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9917$as_echo "$ld_shlibs" >&6; }
9918test "$ld_shlibs" = no && can_build_shared=no
9919
9920with_gnu_ld=$with_gnu_ld
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936#
9937# Do we need to explicitly link libc?
9938#
9939case "x$archive_cmds_need_lc" in
9940x|xyes)
9941  # Assume -lc should be added
9942  archive_cmds_need_lc=yes
9943
9944  if test "$enable_shared" = yes && test "$GCC" = yes; then
9945    case $archive_cmds in
9946    *'~'*)
9947      # FIXME: we may have to deal with multi-command sequences.
9948      ;;
9949    '$CC '*)
9950      # Test whether the compiler implicitly links with -lc since on some
9951      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9952      # to ld, don't add -lc before -lgcc.
9953      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9954$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9955      $RM conftest*
9956      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9957
9958      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959  (eval $ac_compile) 2>&5
9960  ac_status=$?
9961  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); } 2>conftest.err; then
9963        soname=conftest
9964        lib=conftest
9965        libobjs=conftest.$ac_objext
9966        deplibs=
9967        wl=$lt_prog_compiler_wl
9968	pic_flag=$lt_prog_compiler_pic
9969        compiler_flags=-v
9970        linker_flags=-v
9971        verstring=
9972        output_objdir=.
9973        libname=conftest
9974        lt_save_allow_undefined_flag=$allow_undefined_flag
9975        allow_undefined_flag=
9976        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9977  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9978  ac_status=$?
9979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }
9981        then
9982	  archive_cmds_need_lc=no
9983        else
9984	  archive_cmds_need_lc=yes
9985        fi
9986        allow_undefined_flag=$lt_save_allow_undefined_flag
9987      else
9988        cat conftest.err 1>&5
9989      fi
9990      $RM conftest*
9991      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9992$as_echo "$archive_cmds_need_lc" >&6; }
9993      ;;
9994    esac
9995  fi
9996  ;;
9997esac
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10156$as_echo_n "checking dynamic linker characteristics... " >&6; }
10157
10158if test "$GCC" = yes; then
10159  case $host_os in
10160    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10161    *) lt_awk_arg="/^libraries:/" ;;
10162  esac
10163  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10164  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10165    # if the path contains ";" then we assume it to be the separator
10166    # otherwise default to the standard path separator (i.e. ":") - it is
10167    # assumed that no part of a normal pathname contains ";" but that should
10168    # okay in the real world where ";" in dirpaths is itself problematic.
10169    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10170  else
10171    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10172  fi
10173  # Ok, now we have the path, separated by spaces, we can step through it
10174  # and add multilib dir if necessary.
10175  lt_tmp_lt_search_path_spec=
10176  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10177  for lt_sys_path in $lt_search_path_spec; do
10178    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10179      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10180    else
10181      test -d "$lt_sys_path" && \
10182	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10183    fi
10184  done
10185  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10186BEGIN {RS=" "; FS="/|\n";} {
10187  lt_foo="";
10188  lt_count=0;
10189  for (lt_i = NF; lt_i > 0; lt_i--) {
10190    if ($lt_i != "" && $lt_i != ".") {
10191      if ($lt_i == "..") {
10192        lt_count++;
10193      } else {
10194        if (lt_count == 0) {
10195          lt_foo="/" $lt_i lt_foo;
10196        } else {
10197          lt_count--;
10198        }
10199      }
10200    }
10201  }
10202  if (lt_foo != "") { lt_freq[lt_foo]++; }
10203  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10204}'`
10205  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10206else
10207  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10208fi
10209library_names_spec=
10210libname_spec='lib$name'
10211soname_spec=
10212shrext_cmds=".so"
10213postinstall_cmds=
10214postuninstall_cmds=
10215finish_cmds=
10216finish_eval=
10217shlibpath_var=
10218shlibpath_overrides_runpath=unknown
10219version_type=none
10220dynamic_linker="$host_os ld.so"
10221sys_lib_dlsearch_path_spec="/lib /usr/lib"
10222need_lib_prefix=unknown
10223hardcode_into_libs=no
10224
10225# when you set need_version to no, make sure it does not cause -set_version
10226# flags to be left without arguments
10227need_version=unknown
10228
10229case $host_os in
10230aix3*)
10231  version_type=linux
10232  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10233  shlibpath_var=LIBPATH
10234
10235  # AIX 3 has no versioning support, so we append a major version to the name.
10236  soname_spec='${libname}${release}${shared_ext}$major'
10237  ;;
10238
10239aix[4-9]*)
10240  version_type=linux
10241  need_lib_prefix=no
10242  need_version=no
10243  hardcode_into_libs=yes
10244  if test "$host_cpu" = ia64; then
10245    # AIX 5 supports IA64
10246    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10247    shlibpath_var=LD_LIBRARY_PATH
10248  else
10249    # With GCC up to 2.95.x, collect2 would create an import file
10250    # for dependence libraries.  The import file would start with
10251    # the line `#! .'.  This would cause the generated library to
10252    # depend on `.', always an invalid library.  This was fixed in
10253    # development snapshots of GCC prior to 3.0.
10254    case $host_os in
10255      aix4 | aix4.[01] | aix4.[01].*)
10256      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10257	   echo ' yes '
10258	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10259	:
10260      else
10261	can_build_shared=no
10262      fi
10263      ;;
10264    esac
10265    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10266    # soname into executable. Probably we can add versioning support to
10267    # collect2, so additional links can be useful in future.
10268    if test "$aix_use_runtimelinking" = yes; then
10269      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10270      # instead of lib<name>.a to let people know that these are not
10271      # typical AIX shared libraries.
10272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273    else
10274      # We preserve .a as extension for shared libraries through AIX4.2
10275      # and later when we are not doing run time linking.
10276      library_names_spec='${libname}${release}.a $libname.a'
10277      soname_spec='${libname}${release}${shared_ext}$major'
10278    fi
10279    shlibpath_var=LIBPATH
10280  fi
10281  ;;
10282
10283amigaos*)
10284  case $host_cpu in
10285  powerpc)
10286    # Since July 2007 AmigaOS4 officially supports .so libraries.
10287    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289    ;;
10290  m68k)
10291    library_names_spec='$libname.ixlibrary $libname.a'
10292    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10293    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'
10294    ;;
10295  esac
10296  ;;
10297
10298beos*)
10299  library_names_spec='${libname}${shared_ext}'
10300  dynamic_linker="$host_os ld.so"
10301  shlibpath_var=LIBRARY_PATH
10302  ;;
10303
10304bsdi[45]*)
10305  version_type=linux
10306  need_version=no
10307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308  soname_spec='${libname}${release}${shared_ext}$major'
10309  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10310  shlibpath_var=LD_LIBRARY_PATH
10311  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10312  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10313  # the default ld.so.conf also contains /usr/contrib/lib and
10314  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10315  # libtool to hard-code these into programs
10316  ;;
10317
10318cygwin* | mingw* | pw32* | cegcc*)
10319  version_type=windows
10320  shrext_cmds=".dll"
10321  need_version=no
10322  need_lib_prefix=no
10323
10324  case $GCC,$host_os in
10325  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10326    library_names_spec='$libname.dll.a'
10327    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10328    postinstall_cmds='base_file=`basename \${file}`~
10329      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10330      dldir=$destdir/`dirname \$dlpath`~
10331      test -d \$dldir || mkdir -p \$dldir~
10332      $install_prog $dir/$dlname \$dldir/$dlname~
10333      chmod a+x \$dldir/$dlname~
10334      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10335        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10336      fi'
10337    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10338      dlpath=$dir/\$dldll~
10339       $RM \$dlpath'
10340    shlibpath_overrides_runpath=yes
10341
10342    case $host_os in
10343    cygwin*)
10344      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10345      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10346      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10347      ;;
10348    mingw* | cegcc*)
10349      # MinGW DLLs use traditional 'lib' prefix
10350      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10352      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10353        # It is most probably a Windows format PATH printed by
10354        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10355        # path with ; separators, and with drive letters. We can handle the
10356        # drive letters (cygwin fileutils understands them), so leave them,
10357        # especially as we might pass files found there to a mingw objdump,
10358        # which wouldn't understand a cygwinified path. Ahh.
10359        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10360      else
10361        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10362      fi
10363      ;;
10364    pw32*)
10365      # pw32 DLLs use 'pw' prefix rather than 'lib'
10366      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10367      ;;
10368    esac
10369    ;;
10370
10371  *)
10372    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10373    ;;
10374  esac
10375  dynamic_linker='Win32 ld.exe'
10376  # FIXME: first we should search . and the directory the executable is in
10377  shlibpath_var=PATH
10378  ;;
10379
10380darwin* | rhapsody*)
10381  dynamic_linker="$host_os dyld"
10382  version_type=darwin
10383  need_lib_prefix=no
10384  need_version=no
10385  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10386  soname_spec='${libname}${release}${major}$shared_ext'
10387  shlibpath_overrides_runpath=yes
10388  shlibpath_var=DYLD_LIBRARY_PATH
10389  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10390
10391  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10392  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10393  ;;
10394
10395dgux*)
10396  version_type=linux
10397  need_lib_prefix=no
10398  need_version=no
10399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10400  soname_spec='${libname}${release}${shared_ext}$major'
10401  shlibpath_var=LD_LIBRARY_PATH
10402  ;;
10403
10404freebsd1*)
10405  dynamic_linker=no
10406  ;;
10407
10408freebsd* | dragonfly*)
10409  # DragonFly does not have aout.  When/if they implement a new
10410  # versioning mechanism, adjust this.
10411  if test -x /usr/bin/objformat; then
10412    objformat=`/usr/bin/objformat`
10413  else
10414    case $host_os in
10415    freebsd[123]*) objformat=aout ;;
10416    *) objformat=elf ;;
10417    esac
10418  fi
10419  version_type=freebsd-$objformat
10420  case $version_type in
10421    freebsd-elf*)
10422      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10423      need_version=no
10424      need_lib_prefix=no
10425      ;;
10426    freebsd-*)
10427      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10428      need_version=yes
10429      ;;
10430  esac
10431  shlibpath_var=LD_LIBRARY_PATH
10432  case $host_os in
10433  freebsd2*)
10434    shlibpath_overrides_runpath=yes
10435    ;;
10436  freebsd3.[01]* | freebsdelf3.[01]*)
10437    shlibpath_overrides_runpath=yes
10438    hardcode_into_libs=yes
10439    ;;
10440  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10441  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10442    shlibpath_overrides_runpath=no
10443    hardcode_into_libs=yes
10444    ;;
10445  *) # from 4.6 on, and DragonFly
10446    shlibpath_overrides_runpath=yes
10447    hardcode_into_libs=yes
10448    ;;
10449  esac
10450  ;;
10451
10452gnu*)
10453  version_type=linux
10454  need_lib_prefix=no
10455  need_version=no
10456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10457  soname_spec='${libname}${release}${shared_ext}$major'
10458  shlibpath_var=LD_LIBRARY_PATH
10459  hardcode_into_libs=yes
10460  ;;
10461
10462hpux9* | hpux10* | hpux11*)
10463  # Give a soname corresponding to the major version so that dld.sl refuses to
10464  # link against other versions.
10465  version_type=sunos
10466  need_lib_prefix=no
10467  need_version=no
10468  case $host_cpu in
10469  ia64*)
10470    shrext_cmds='.so'
10471    hardcode_into_libs=yes
10472    dynamic_linker="$host_os dld.so"
10473    shlibpath_var=LD_LIBRARY_PATH
10474    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476    soname_spec='${libname}${release}${shared_ext}$major'
10477    if test "X$HPUX_IA64_MODE" = X32; then
10478      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10479    else
10480      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10481    fi
10482    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10483    ;;
10484  hppa*64*)
10485    shrext_cmds='.sl'
10486    hardcode_into_libs=yes
10487    dynamic_linker="$host_os dld.sl"
10488    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10489    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491    soname_spec='${libname}${release}${shared_ext}$major'
10492    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10493    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10494    ;;
10495  *)
10496    shrext_cmds='.sl'
10497    dynamic_linker="$host_os dld.sl"
10498    shlibpath_var=SHLIB_PATH
10499    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501    soname_spec='${libname}${release}${shared_ext}$major'
10502    ;;
10503  esac
10504  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10505  postinstall_cmds='chmod 555 $lib'
10506  ;;
10507
10508interix[3-9]*)
10509  version_type=linux
10510  need_lib_prefix=no
10511  need_version=no
10512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10515  shlibpath_var=LD_LIBRARY_PATH
10516  shlibpath_overrides_runpath=no
10517  hardcode_into_libs=yes
10518  ;;
10519
10520irix5* | irix6* | nonstopux*)
10521  case $host_os in
10522    nonstopux*) version_type=nonstopux ;;
10523    *)
10524	if test "$lt_cv_prog_gnu_ld" = yes; then
10525		version_type=linux
10526	else
10527		version_type=irix
10528	fi ;;
10529  esac
10530  need_lib_prefix=no
10531  need_version=no
10532  soname_spec='${libname}${release}${shared_ext}$major'
10533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10534  case $host_os in
10535  irix5* | nonstopux*)
10536    libsuff= shlibsuff=
10537    ;;
10538  *)
10539    case $LD in # libtool.m4 will add one of these switches to LD
10540    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10541      libsuff= shlibsuff= libmagic=32-bit;;
10542    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10543      libsuff=32 shlibsuff=N32 libmagic=N32;;
10544    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10545      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10546    *) libsuff= shlibsuff= libmagic=never-match;;
10547    esac
10548    ;;
10549  esac
10550  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10551  shlibpath_overrides_runpath=no
10552  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10553  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10554  hardcode_into_libs=yes
10555  ;;
10556
10557# No shared lib support for Linux oldld, aout, or coff.
10558linux*oldld* | linux*aout* | linux*coff*)
10559  dynamic_linker=no
10560  ;;
10561
10562# This must be Linux ELF.
10563linux* | k*bsd*-gnu)
10564  version_type=linux
10565  need_lib_prefix=no
10566  need_version=no
10567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568  soname_spec='${libname}${release}${shared_ext}$major'
10569  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10570  shlibpath_var=LD_LIBRARY_PATH
10571  shlibpath_overrides_runpath=no
10572  # Some binutils ld are patched to set DT_RUNPATH
10573  save_LDFLAGS=$LDFLAGS
10574  save_libdir=$libdir
10575  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10576       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10577  cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h.  */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h.  */
10583
10584int
10585main ()
10586{
10587
10588  ;
10589  return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (ac_try="$ac_link"
10594case "(($ac_try" in
10595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596  *) ac_try_echo=$ac_try;;
10597esac
10598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10599$as_echo "$ac_try_echo") >&5
10600  (eval "$ac_link") 2>conftest.er1
10601  ac_status=$?
10602  grep -v '^ *+' conftest.er1 >conftest.err
10603  rm -f conftest.er1
10604  cat conftest.err >&5
10605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); } && {
10607	 test -z "$ac_c_werror_flag" ||
10608	 test ! -s conftest.err
10609       } && test -s conftest$ac_exeext && {
10610	 test "$cross_compiling" = yes ||
10611	 $as_test_x conftest$ac_exeext
10612       }; then
10613  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10614  shlibpath_overrides_runpath=yes
10615fi
10616
10617else
10618  $as_echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621
10622fi
10623
10624rm -rf conftest.dSYM
10625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626      conftest$ac_exeext conftest.$ac_ext
10627  LDFLAGS=$save_LDFLAGS
10628  libdir=$save_libdir
10629
10630  # This implies no fast_install, which is unacceptable.
10631  # Some rework will be needed to allow for fast_install
10632  # before this can be enabled.
10633  hardcode_into_libs=yes
10634
10635  # Add ABI-specific directories to the system library path.
10636  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10637
10638  # Append ld.so.conf contents to the search path
10639  if test -f /etc/ld.so.conf; then
10640    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' ' '`
10641    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10642  fi
10643
10644  # We used to test for /lib/ld.so.1 and disable shared libraries on
10645  # powerpc, because MkLinux only supported shared libraries with the
10646  # GNU dynamic linker.  Since this was broken with cross compilers,
10647  # most powerpc-linux boxes support dynamic linking these days and
10648  # people can always --disable-shared, the test was removed, and we
10649  # assume the GNU/Linux dynamic linker is in use.
10650  dynamic_linker='GNU/Linux ld.so'
10651  ;;
10652
10653netbsd*)
10654  version_type=sunos
10655  need_lib_prefix=no
10656  need_version=no
10657  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10658    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10659    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10660    dynamic_linker='NetBSD (a.out) ld.so'
10661  else
10662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10663    soname_spec='${libname}${release}${shared_ext}$major'
10664    dynamic_linker='NetBSD ld.elf_so'
10665  fi
10666  shlibpath_var=LD_LIBRARY_PATH
10667  shlibpath_overrides_runpath=yes
10668  hardcode_into_libs=yes
10669  ;;
10670
10671newsos6)
10672  version_type=linux
10673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674  shlibpath_var=LD_LIBRARY_PATH
10675  shlibpath_overrides_runpath=yes
10676  ;;
10677
10678*nto* | *qnx*)
10679  version_type=qnx
10680  need_lib_prefix=no
10681  need_version=no
10682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683  soname_spec='${libname}${release}${shared_ext}$major'
10684  shlibpath_var=LD_LIBRARY_PATH
10685  shlibpath_overrides_runpath=no
10686  hardcode_into_libs=yes
10687  dynamic_linker='ldqnx.so'
10688  ;;
10689
10690openbsd*)
10691  version_type=sunos
10692  sys_lib_dlsearch_path_spec="/usr/lib"
10693  need_lib_prefix=no
10694  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10695  case $host_os in
10696    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10697    *)				need_version=no  ;;
10698  esac
10699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10700  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10701  shlibpath_var=LD_LIBRARY_PATH
10702  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10703    case $host_os in
10704      openbsd2.[89] | openbsd2.[89].*)
10705	shlibpath_overrides_runpath=no
10706	;;
10707      *)
10708	shlibpath_overrides_runpath=yes
10709	;;
10710      esac
10711  else
10712    shlibpath_overrides_runpath=yes
10713  fi
10714  ;;
10715
10716os2*)
10717  libname_spec='$name'
10718  shrext_cmds=".dll"
10719  need_lib_prefix=no
10720  library_names_spec='$libname${shared_ext} $libname.a'
10721  dynamic_linker='OS/2 ld.exe'
10722  shlibpath_var=LIBPATH
10723  ;;
10724
10725osf3* | osf4* | osf5*)
10726  version_type=osf
10727  need_lib_prefix=no
10728  need_version=no
10729  soname_spec='${libname}${release}${shared_ext}$major'
10730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731  shlibpath_var=LD_LIBRARY_PATH
10732  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10733  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10734  ;;
10735
10736rdos*)
10737  dynamic_linker=no
10738  ;;
10739
10740solaris*)
10741  version_type=linux
10742  need_lib_prefix=no
10743  need_version=no
10744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745  soname_spec='${libname}${release}${shared_ext}$major'
10746  shlibpath_var=LD_LIBRARY_PATH
10747  shlibpath_overrides_runpath=yes
10748  hardcode_into_libs=yes
10749  # ldd complains unless libraries are executable
10750  postinstall_cmds='chmod +x $lib'
10751  ;;
10752
10753sunos4*)
10754  version_type=sunos
10755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10756  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10757  shlibpath_var=LD_LIBRARY_PATH
10758  shlibpath_overrides_runpath=yes
10759  if test "$with_gnu_ld" = yes; then
10760    need_lib_prefix=no
10761  fi
10762  need_version=yes
10763  ;;
10764
10765sysv4 | sysv4.3*)
10766  version_type=linux
10767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768  soname_spec='${libname}${release}${shared_ext}$major'
10769  shlibpath_var=LD_LIBRARY_PATH
10770  case $host_vendor in
10771    sni)
10772      shlibpath_overrides_runpath=no
10773      need_lib_prefix=no
10774      runpath_var=LD_RUN_PATH
10775      ;;
10776    siemens)
10777      need_lib_prefix=no
10778      ;;
10779    motorola)
10780      need_lib_prefix=no
10781      need_version=no
10782      shlibpath_overrides_runpath=no
10783      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10784      ;;
10785  esac
10786  ;;
10787
10788sysv4*MP*)
10789  if test -d /usr/nec ;then
10790    version_type=linux
10791    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10792    soname_spec='$libname${shared_ext}.$major'
10793    shlibpath_var=LD_LIBRARY_PATH
10794  fi
10795  ;;
10796
10797sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10798  version_type=freebsd-elf
10799  need_lib_prefix=no
10800  need_version=no
10801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10802  soname_spec='${libname}${release}${shared_ext}$major'
10803  shlibpath_var=LD_LIBRARY_PATH
10804  shlibpath_overrides_runpath=yes
10805  hardcode_into_libs=yes
10806  if test "$with_gnu_ld" = yes; then
10807    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10808  else
10809    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10810    case $host_os in
10811      sco3.2v5*)
10812        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10813	;;
10814    esac
10815  fi
10816  sys_lib_dlsearch_path_spec='/usr/lib'
10817  ;;
10818
10819tpf*)
10820  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10821  version_type=linux
10822  need_lib_prefix=no
10823  need_version=no
10824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825  shlibpath_var=LD_LIBRARY_PATH
10826  shlibpath_overrides_runpath=no
10827  hardcode_into_libs=yes
10828  ;;
10829
10830uts4*)
10831  version_type=linux
10832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833  soname_spec='${libname}${release}${shared_ext}$major'
10834  shlibpath_var=LD_LIBRARY_PATH
10835  ;;
10836
10837*)
10838  dynamic_linker=no
10839  ;;
10840esac
10841{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10842$as_echo "$dynamic_linker" >&6; }
10843test "$dynamic_linker" = no && can_build_shared=no
10844
10845variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10846if test "$GCC" = yes; then
10847  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10848fi
10849
10850if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10851  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10852fi
10853if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10854  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10855fi
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10944$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10945hardcode_action=
10946if test -n "$hardcode_libdir_flag_spec" ||
10947   test -n "$runpath_var" ||
10948   test "X$hardcode_automatic" = "Xyes" ; then
10949
10950  # We can hardcode non-existent directories.
10951  if test "$hardcode_direct" != no &&
10952     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10953     # have to relink, otherwise we might link with an installed library
10954     # when we should be linking with a yet-to-be-installed one
10955     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10956     test "$hardcode_minus_L" != no; then
10957    # Linking always hardcodes the temporary library directory.
10958    hardcode_action=relink
10959  else
10960    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10961    hardcode_action=immediate
10962  fi
10963else
10964  # We cannot hardcode anything, or else we can only hardcode existing
10965  # directories.
10966  hardcode_action=unsupported
10967fi
10968{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10969$as_echo "$hardcode_action" >&6; }
10970
10971if test "$hardcode_action" = relink ||
10972   test "$inherit_rpath" = yes; then
10973  # Fast installation is not supported
10974  enable_fast_install=no
10975elif test "$shlibpath_overrides_runpath" = yes ||
10976     test "$enable_shared" = no; then
10977  # Fast installation is not necessary
10978  enable_fast_install=needless
10979fi
10980
10981
10982
10983
10984
10985
10986  if test "x$enable_dlopen" != xyes; then
10987  enable_dlopen=unknown
10988  enable_dlopen_self=unknown
10989  enable_dlopen_self_static=unknown
10990else
10991  lt_cv_dlopen=no
10992  lt_cv_dlopen_libs=
10993
10994  case $host_os in
10995  beos*)
10996    lt_cv_dlopen="load_add_on"
10997    lt_cv_dlopen_libs=
10998    lt_cv_dlopen_self=yes
10999    ;;
11000
11001  mingw* | pw32* | cegcc*)
11002    lt_cv_dlopen="LoadLibrary"
11003    lt_cv_dlopen_libs=
11004    ;;
11005
11006  cygwin*)
11007    lt_cv_dlopen="dlopen"
11008    lt_cv_dlopen_libs=
11009    ;;
11010
11011  darwin*)
11012  # if libdl is installed we need to link against it
11013    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11014$as_echo_n "checking for dlopen in -ldl... " >&6; }
11015if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11016  $as_echo_n "(cached) " >&6
11017else
11018  ac_check_lib_save_LIBS=$LIBS
11019LIBS="-ldl  $LIBS"
11020cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h.  */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h.  */
11026
11027/* Override any GCC internal prototype to avoid an error.
11028   Use char because int might match the return type of a GCC
11029   builtin and then its argument prototype would still apply.  */
11030#ifdef __cplusplus
11031extern "C"
11032#endif
11033char dlopen ();
11034int
11035main ()
11036{
11037return dlopen ();
11038  ;
11039  return 0;
11040}
11041_ACEOF
11042rm -f conftest.$ac_objext conftest$ac_exeext
11043if { (ac_try="$ac_link"
11044case "(($ac_try" in
11045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046  *) ac_try_echo=$ac_try;;
11047esac
11048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11049$as_echo "$ac_try_echo") >&5
11050  (eval "$ac_link") 2>conftest.er1
11051  ac_status=$?
11052  grep -v '^ *+' conftest.er1 >conftest.err
11053  rm -f conftest.er1
11054  cat conftest.err >&5
11055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056  (exit $ac_status); } && {
11057	 test -z "$ac_c_werror_flag" ||
11058	 test ! -s conftest.err
11059       } && test -s conftest$ac_exeext && {
11060	 test "$cross_compiling" = yes ||
11061	 $as_test_x conftest$ac_exeext
11062       }; then
11063  ac_cv_lib_dl_dlopen=yes
11064else
11065  $as_echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068	ac_cv_lib_dl_dlopen=no
11069fi
11070
11071rm -rf conftest.dSYM
11072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11073      conftest$ac_exeext conftest.$ac_ext
11074LIBS=$ac_check_lib_save_LIBS
11075fi
11076{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11077$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11078if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11079  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11080else
11081
11082    lt_cv_dlopen="dyld"
11083    lt_cv_dlopen_libs=
11084    lt_cv_dlopen_self=yes
11085
11086fi
11087
11088    ;;
11089
11090  *)
11091    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11092$as_echo_n "checking for shl_load... " >&6; }
11093if test "${ac_cv_func_shl_load+set}" = set; then
11094  $as_echo_n "(cached) " >&6
11095else
11096  cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h.  */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h.  */
11102/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11103   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11104#define shl_load innocuous_shl_load
11105
11106/* System header to define __stub macros and hopefully few prototypes,
11107    which can conflict with char shl_load (); below.
11108    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109    <limits.h> exists even on freestanding compilers.  */
11110
11111#ifdef __STDC__
11112# include <limits.h>
11113#else
11114# include <assert.h>
11115#endif
11116
11117#undef shl_load
11118
11119/* Override any GCC internal prototype to avoid an error.
11120   Use char because int might match the return type of a GCC
11121   builtin and then its argument prototype would still apply.  */
11122#ifdef __cplusplus
11123extern "C"
11124#endif
11125char shl_load ();
11126/* The GNU C library defines this for functions which it implements
11127    to always fail with ENOSYS.  Some functions are actually named
11128    something starting with __ and the normal name is an alias.  */
11129#if defined __stub_shl_load || defined __stub___shl_load
11130choke me
11131#endif
11132
11133int
11134main ()
11135{
11136return shl_load ();
11137  ;
11138  return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext conftest$ac_exeext
11142if { (ac_try="$ac_link"
11143case "(($ac_try" in
11144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145  *) ac_try_echo=$ac_try;;
11146esac
11147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11148$as_echo "$ac_try_echo") >&5
11149  (eval "$ac_link") 2>conftest.er1
11150  ac_status=$?
11151  grep -v '^ *+' conftest.er1 >conftest.err
11152  rm -f conftest.er1
11153  cat conftest.err >&5
11154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155  (exit $ac_status); } && {
11156	 test -z "$ac_c_werror_flag" ||
11157	 test ! -s conftest.err
11158       } && test -s conftest$ac_exeext && {
11159	 test "$cross_compiling" = yes ||
11160	 $as_test_x conftest$ac_exeext
11161       }; then
11162  ac_cv_func_shl_load=yes
11163else
11164  $as_echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167	ac_cv_func_shl_load=no
11168fi
11169
11170rm -rf conftest.dSYM
11171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172      conftest$ac_exeext conftest.$ac_ext
11173fi
11174{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11175$as_echo "$ac_cv_func_shl_load" >&6; }
11176if test "x$ac_cv_func_shl_load" = x""yes; then
11177  lt_cv_dlopen="shl_load"
11178else
11179  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11180$as_echo_n "checking for shl_load in -ldld... " >&6; }
11181if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11182  $as_echo_n "(cached) " >&6
11183else
11184  ac_check_lib_save_LIBS=$LIBS
11185LIBS="-ldld  $LIBS"
11186cat >conftest.$ac_ext <<_ACEOF
11187/* confdefs.h.  */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h.  */
11192
11193/* Override any GCC internal prototype to avoid an error.
11194   Use char because int might match the return type of a GCC
11195   builtin and then its argument prototype would still apply.  */
11196#ifdef __cplusplus
11197extern "C"
11198#endif
11199char shl_load ();
11200int
11201main ()
11202{
11203return shl_load ();
11204  ;
11205  return 0;
11206}
11207_ACEOF
11208rm -f conftest.$ac_objext conftest$ac_exeext
11209if { (ac_try="$ac_link"
11210case "(($ac_try" in
11211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212  *) ac_try_echo=$ac_try;;
11213esac
11214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215$as_echo "$ac_try_echo") >&5
11216  (eval "$ac_link") 2>conftest.er1
11217  ac_status=$?
11218  grep -v '^ *+' conftest.er1 >conftest.err
11219  rm -f conftest.er1
11220  cat conftest.err >&5
11221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222  (exit $ac_status); } && {
11223	 test -z "$ac_c_werror_flag" ||
11224	 test ! -s conftest.err
11225       } && test -s conftest$ac_exeext && {
11226	 test "$cross_compiling" = yes ||
11227	 $as_test_x conftest$ac_exeext
11228       }; then
11229  ac_cv_lib_dld_shl_load=yes
11230else
11231  $as_echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234	ac_cv_lib_dld_shl_load=no
11235fi
11236
11237rm -rf conftest.dSYM
11238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11239      conftest$ac_exeext conftest.$ac_ext
11240LIBS=$ac_check_lib_save_LIBS
11241fi
11242{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11243$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11244if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11245  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11246else
11247  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11248$as_echo_n "checking for dlopen... " >&6; }
11249if test "${ac_cv_func_dlopen+set}" = set; then
11250  $as_echo_n "(cached) " >&6
11251else
11252  cat >conftest.$ac_ext <<_ACEOF
11253/* confdefs.h.  */
11254_ACEOF
11255cat confdefs.h >>conftest.$ac_ext
11256cat >>conftest.$ac_ext <<_ACEOF
11257/* end confdefs.h.  */
11258/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11259   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11260#define dlopen innocuous_dlopen
11261
11262/* System header to define __stub macros and hopefully few prototypes,
11263    which can conflict with char dlopen (); below.
11264    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265    <limits.h> exists even on freestanding compilers.  */
11266
11267#ifdef __STDC__
11268# include <limits.h>
11269#else
11270# include <assert.h>
11271#endif
11272
11273#undef dlopen
11274
11275/* Override any GCC internal prototype to avoid an error.
11276   Use char because int might match the return type of a GCC
11277   builtin and then its argument prototype would still apply.  */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char dlopen ();
11282/* The GNU C library defines this for functions which it implements
11283    to always fail with ENOSYS.  Some functions are actually named
11284    something starting with __ and the normal name is an alias.  */
11285#if defined __stub_dlopen || defined __stub___dlopen
11286choke me
11287#endif
11288
11289int
11290main ()
11291{
11292return dlopen ();
11293  ;
11294  return 0;
11295}
11296_ACEOF
11297rm -f conftest.$ac_objext conftest$ac_exeext
11298if { (ac_try="$ac_link"
11299case "(($ac_try" in
11300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301  *) ac_try_echo=$ac_try;;
11302esac
11303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304$as_echo "$ac_try_echo") >&5
11305  (eval "$ac_link") 2>conftest.er1
11306  ac_status=$?
11307  grep -v '^ *+' conftest.er1 >conftest.err
11308  rm -f conftest.er1
11309  cat conftest.err >&5
11310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); } && {
11312	 test -z "$ac_c_werror_flag" ||
11313	 test ! -s conftest.err
11314       } && test -s conftest$ac_exeext && {
11315	 test "$cross_compiling" = yes ||
11316	 $as_test_x conftest$ac_exeext
11317       }; then
11318  ac_cv_func_dlopen=yes
11319else
11320  $as_echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323	ac_cv_func_dlopen=no
11324fi
11325
11326rm -rf conftest.dSYM
11327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11328      conftest$ac_exeext conftest.$ac_ext
11329fi
11330{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11331$as_echo "$ac_cv_func_dlopen" >&6; }
11332if test "x$ac_cv_func_dlopen" = x""yes; then
11333  lt_cv_dlopen="dlopen"
11334else
11335  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11336$as_echo_n "checking for dlopen in -ldl... " >&6; }
11337if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11338  $as_echo_n "(cached) " >&6
11339else
11340  ac_check_lib_save_LIBS=$LIBS
11341LIBS="-ldl  $LIBS"
11342cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h.  */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h.  */
11348
11349/* Override any GCC internal prototype to avoid an error.
11350   Use char because int might match the return type of a GCC
11351   builtin and then its argument prototype would still apply.  */
11352#ifdef __cplusplus
11353extern "C"
11354#endif
11355char dlopen ();
11356int
11357main ()
11358{
11359return dlopen ();
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext conftest$ac_exeext
11365if { (ac_try="$ac_link"
11366case "(($ac_try" in
11367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368  *) ac_try_echo=$ac_try;;
11369esac
11370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11371$as_echo "$ac_try_echo") >&5
11372  (eval "$ac_link") 2>conftest.er1
11373  ac_status=$?
11374  grep -v '^ *+' conftest.er1 >conftest.err
11375  rm -f conftest.er1
11376  cat conftest.err >&5
11377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378  (exit $ac_status); } && {
11379	 test -z "$ac_c_werror_flag" ||
11380	 test ! -s conftest.err
11381       } && test -s conftest$ac_exeext && {
11382	 test "$cross_compiling" = yes ||
11383	 $as_test_x conftest$ac_exeext
11384       }; then
11385  ac_cv_lib_dl_dlopen=yes
11386else
11387  $as_echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390	ac_cv_lib_dl_dlopen=no
11391fi
11392
11393rm -rf conftest.dSYM
11394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395      conftest$ac_exeext conftest.$ac_ext
11396LIBS=$ac_check_lib_save_LIBS
11397fi
11398{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11399$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11400if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11401  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11402else
11403  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11404$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11405if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11406  $as_echo_n "(cached) " >&6
11407else
11408  ac_check_lib_save_LIBS=$LIBS
11409LIBS="-lsvld  $LIBS"
11410cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h.  */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h.  */
11416
11417/* Override any GCC internal prototype to avoid an error.
11418   Use char because int might match the return type of a GCC
11419   builtin and then its argument prototype would still apply.  */
11420#ifdef __cplusplus
11421extern "C"
11422#endif
11423char dlopen ();
11424int
11425main ()
11426{
11427return dlopen ();
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext conftest$ac_exeext
11433if { (ac_try="$ac_link"
11434case "(($ac_try" in
11435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436  *) ac_try_echo=$ac_try;;
11437esac
11438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11439$as_echo "$ac_try_echo") >&5
11440  (eval "$ac_link") 2>conftest.er1
11441  ac_status=$?
11442  grep -v '^ *+' conftest.er1 >conftest.err
11443  rm -f conftest.er1
11444  cat conftest.err >&5
11445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446  (exit $ac_status); } && {
11447	 test -z "$ac_c_werror_flag" ||
11448	 test ! -s conftest.err
11449       } && test -s conftest$ac_exeext && {
11450	 test "$cross_compiling" = yes ||
11451	 $as_test_x conftest$ac_exeext
11452       }; then
11453  ac_cv_lib_svld_dlopen=yes
11454else
11455  $as_echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
11458	ac_cv_lib_svld_dlopen=no
11459fi
11460
11461rm -rf conftest.dSYM
11462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11463      conftest$ac_exeext conftest.$ac_ext
11464LIBS=$ac_check_lib_save_LIBS
11465fi
11466{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11467$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11468if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11469  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11470else
11471  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11472$as_echo_n "checking for dld_link in -ldld... " >&6; }
11473if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11474  $as_echo_n "(cached) " >&6
11475else
11476  ac_check_lib_save_LIBS=$LIBS
11477LIBS="-ldld  $LIBS"
11478cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h.  */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h.  */
11484
11485/* Override any GCC internal prototype to avoid an error.
11486   Use char because int might match the return type of a GCC
11487   builtin and then its argument prototype would still apply.  */
11488#ifdef __cplusplus
11489extern "C"
11490#endif
11491char dld_link ();
11492int
11493main ()
11494{
11495return dld_link ();
11496  ;
11497  return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext conftest$ac_exeext
11501if { (ac_try="$ac_link"
11502case "(($ac_try" in
11503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504  *) ac_try_echo=$ac_try;;
11505esac
11506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11507$as_echo "$ac_try_echo") >&5
11508  (eval "$ac_link") 2>conftest.er1
11509  ac_status=$?
11510  grep -v '^ *+' conftest.er1 >conftest.err
11511  rm -f conftest.er1
11512  cat conftest.err >&5
11513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514  (exit $ac_status); } && {
11515	 test -z "$ac_c_werror_flag" ||
11516	 test ! -s conftest.err
11517       } && test -s conftest$ac_exeext && {
11518	 test "$cross_compiling" = yes ||
11519	 $as_test_x conftest$ac_exeext
11520       }; then
11521  ac_cv_lib_dld_dld_link=yes
11522else
11523  $as_echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
11526	ac_cv_lib_dld_dld_link=no
11527fi
11528
11529rm -rf conftest.dSYM
11530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11531      conftest$ac_exeext conftest.$ac_ext
11532LIBS=$ac_check_lib_save_LIBS
11533fi
11534{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11535$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11536if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11537  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11538fi
11539
11540
11541fi
11542
11543
11544fi
11545
11546
11547fi
11548
11549
11550fi
11551
11552
11553fi
11554
11555    ;;
11556  esac
11557
11558  if test "x$lt_cv_dlopen" != xno; then
11559    enable_dlopen=yes
11560  else
11561    enable_dlopen=no
11562  fi
11563
11564  case $lt_cv_dlopen in
11565  dlopen)
11566    save_CPPFLAGS="$CPPFLAGS"
11567    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11568
11569    save_LDFLAGS="$LDFLAGS"
11570    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11571
11572    save_LIBS="$LIBS"
11573    LIBS="$lt_cv_dlopen_libs $LIBS"
11574
11575    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11576$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11577if test "${lt_cv_dlopen_self+set}" = set; then
11578  $as_echo_n "(cached) " >&6
11579else
11580  	  if test "$cross_compiling" = yes; then :
11581  lt_cv_dlopen_self=cross
11582else
11583  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11584  lt_status=$lt_dlunknown
11585  cat > conftest.$ac_ext <<_LT_EOF
11586#line 11586 "configure"
11587#include "confdefs.h"
11588
11589#if HAVE_DLFCN_H
11590#include <dlfcn.h>
11591#endif
11592
11593#include <stdio.h>
11594
11595#ifdef RTLD_GLOBAL
11596#  define LT_DLGLOBAL		RTLD_GLOBAL
11597#else
11598#  ifdef DL_GLOBAL
11599#    define LT_DLGLOBAL		DL_GLOBAL
11600#  else
11601#    define LT_DLGLOBAL		0
11602#  endif
11603#endif
11604
11605/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11606   find out it does not work in some platform. */
11607#ifndef LT_DLLAZY_OR_NOW
11608#  ifdef RTLD_LAZY
11609#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11610#  else
11611#    ifdef DL_LAZY
11612#      define LT_DLLAZY_OR_NOW		DL_LAZY
11613#    else
11614#      ifdef RTLD_NOW
11615#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11616#      else
11617#        ifdef DL_NOW
11618#          define LT_DLLAZY_OR_NOW	DL_NOW
11619#        else
11620#          define LT_DLLAZY_OR_NOW	0
11621#        endif
11622#      endif
11623#    endif
11624#  endif
11625#endif
11626
11627void fnord() { int i=42;}
11628int main ()
11629{
11630  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11631  int status = $lt_dlunknown;
11632
11633  if (self)
11634    {
11635      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11636      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11637      /* dlclose (self); */
11638    }
11639  else
11640    puts (dlerror ());
11641
11642  return status;
11643}
11644_LT_EOF
11645  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11646  (eval $ac_link) 2>&5
11647  ac_status=$?
11648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11650    (./conftest; exit; ) >&5 2>/dev/null
11651    lt_status=$?
11652    case x$lt_status in
11653      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11654      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11655      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11656    esac
11657  else :
11658    # compilation failed
11659    lt_cv_dlopen_self=no
11660  fi
11661fi
11662rm -fr conftest*
11663
11664
11665fi
11666{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11667$as_echo "$lt_cv_dlopen_self" >&6; }
11668
11669    if test "x$lt_cv_dlopen_self" = xyes; then
11670      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11671      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11672$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11673if test "${lt_cv_dlopen_self_static+set}" = set; then
11674  $as_echo_n "(cached) " >&6
11675else
11676  	  if test "$cross_compiling" = yes; then :
11677  lt_cv_dlopen_self_static=cross
11678else
11679  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11680  lt_status=$lt_dlunknown
11681  cat > conftest.$ac_ext <<_LT_EOF
11682#line 11682 "configure"
11683#include "confdefs.h"
11684
11685#if HAVE_DLFCN_H
11686#include <dlfcn.h>
11687#endif
11688
11689#include <stdio.h>
11690
11691#ifdef RTLD_GLOBAL
11692#  define LT_DLGLOBAL		RTLD_GLOBAL
11693#else
11694#  ifdef DL_GLOBAL
11695#    define LT_DLGLOBAL		DL_GLOBAL
11696#  else
11697#    define LT_DLGLOBAL		0
11698#  endif
11699#endif
11700
11701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11702   find out it does not work in some platform. */
11703#ifndef LT_DLLAZY_OR_NOW
11704#  ifdef RTLD_LAZY
11705#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11706#  else
11707#    ifdef DL_LAZY
11708#      define LT_DLLAZY_OR_NOW		DL_LAZY
11709#    else
11710#      ifdef RTLD_NOW
11711#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11712#      else
11713#        ifdef DL_NOW
11714#          define LT_DLLAZY_OR_NOW	DL_NOW
11715#        else
11716#          define LT_DLLAZY_OR_NOW	0
11717#        endif
11718#      endif
11719#    endif
11720#  endif
11721#endif
11722
11723void fnord() { int i=42;}
11724int main ()
11725{
11726  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11727  int status = $lt_dlunknown;
11728
11729  if (self)
11730    {
11731      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11732      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11733      /* dlclose (self); */
11734    }
11735  else
11736    puts (dlerror ());
11737
11738  return status;
11739}
11740_LT_EOF
11741  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742  (eval $ac_link) 2>&5
11743  ac_status=$?
11744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11746    (./conftest; exit; ) >&5 2>/dev/null
11747    lt_status=$?
11748    case x$lt_status in
11749      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11750      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11751      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11752    esac
11753  else :
11754    # compilation failed
11755    lt_cv_dlopen_self_static=no
11756  fi
11757fi
11758rm -fr conftest*
11759
11760
11761fi
11762{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11763$as_echo "$lt_cv_dlopen_self_static" >&6; }
11764    fi
11765
11766    CPPFLAGS="$save_CPPFLAGS"
11767    LDFLAGS="$save_LDFLAGS"
11768    LIBS="$save_LIBS"
11769    ;;
11770  esac
11771
11772  case $lt_cv_dlopen_self in
11773  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11774  *) enable_dlopen_self=unknown ;;
11775  esac
11776
11777  case $lt_cv_dlopen_self_static in
11778  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11779  *) enable_dlopen_self_static=unknown ;;
11780  esac
11781fi
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799striplib=
11800old_striplib=
11801{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11802$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11803if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11804  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11805  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11806  { $as_echo "$as_me:$LINENO: result: yes" >&5
11807$as_echo "yes" >&6; }
11808else
11809# FIXME - insert some real tests, host_os isn't really good enough
11810  case $host_os in
11811  darwin*)
11812    if test -n "$STRIP" ; then
11813      striplib="$STRIP -x"
11814      old_striplib="$STRIP -S"
11815      { $as_echo "$as_me:$LINENO: result: yes" >&5
11816$as_echo "yes" >&6; }
11817    else
11818      { $as_echo "$as_me:$LINENO: result: no" >&5
11819$as_echo "no" >&6; }
11820    fi
11821    ;;
11822  *)
11823    { $as_echo "$as_me:$LINENO: result: no" >&5
11824$as_echo "no" >&6; }
11825    ;;
11826  esac
11827fi
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840  # Report which library types will actually be built
11841  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11842$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11843  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11844$as_echo "$can_build_shared" >&6; }
11845
11846  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11847$as_echo_n "checking whether to build shared libraries... " >&6; }
11848  test "$can_build_shared" = "no" && enable_shared=no
11849
11850  # On AIX, shared libraries and static libraries use the same namespace, and
11851  # are all built from PIC.
11852  case $host_os in
11853  aix3*)
11854    test "$enable_shared" = yes && enable_static=no
11855    if test -n "$RANLIB"; then
11856      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11857      postinstall_cmds='$RANLIB $lib'
11858    fi
11859    ;;
11860
11861  aix[4-9]*)
11862    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11863      test "$enable_shared" = yes && enable_static=no
11864    fi
11865    ;;
11866  esac
11867  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11868$as_echo "$enable_shared" >&6; }
11869
11870  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11871$as_echo_n "checking whether to build static libraries... " >&6; }
11872  # Make sure either enable_shared or enable_static is yes.
11873  test "$enable_shared" = yes || enable_static=yes
11874  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11875$as_echo "$enable_static" >&6; }
11876
11877
11878
11879
11880fi
11881ac_ext=c
11882ac_cpp='$CPP $CPPFLAGS'
11883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11885ac_compiler_gnu=$ac_cv_c_compiler_gnu
11886
11887CC="$lt_save_CC"
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901        ac_config_commands="$ac_config_commands libtool"
11902
11903
11904
11905
11906# Only expand once:
11907
11908
11909
11910
11911
11912
11913# Define a configure option for an alternate module directory
11914
11915# Check whether --with-xorg-module-dir was given.
11916if test "${with_xorg_module_dir+set}" = set; then
11917  withval=$with_xorg_module_dir; moduledir="$withval"
11918else
11919  moduledir="$libdir/xorg/modules"
11920fi
11921
11922
11923# Store the list of server defined optional extensions in REQUIRED_MODULES
11924
11925
11926	SAVE_CFLAGS="$CFLAGS"
11927	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11928	cat >conftest.$ac_ext <<_ACEOF
11929/* confdefs.h.  */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h.  */
11934
11935#include "xorg-server.h"
11936#if !defined RANDR
11937#error RANDR not defined
11938#endif
11939
11940int
11941main ()
11942{
11943
11944  ;
11945  return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext
11949if { (ac_try="$ac_compile"
11950case "(($ac_try" in
11951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952  *) ac_try_echo=$ac_try;;
11953esac
11954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11955$as_echo "$ac_try_echo") >&5
11956  (eval "$ac_compile") 2>conftest.er1
11957  ac_status=$?
11958  grep -v '^ *+' conftest.er1 >conftest.err
11959  rm -f conftest.er1
11960  cat conftest.err >&5
11961  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962  (exit $ac_status); } && {
11963	 test -z "$ac_c_werror_flag" ||
11964	 test ! -s conftest.err
11965       } && test -s conftest.$ac_objext; then
11966  _EXT_CHECK=yes
11967else
11968  $as_echo "$as_me: failed program was:" >&5
11969sed 's/^/| /' conftest.$ac_ext >&5
11970
11971	_EXT_CHECK=no
11972fi
11973
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975	CFLAGS="$SAVE_CFLAGS"
11976	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
11977$as_echo_n "checking if RANDR is defined... " >&6; }
11978	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
11979$as_echo "$_EXT_CHECK" >&6; }
11980	if test "$_EXT_CHECK" != no; then
11981		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11982	fi
11983
11984
11985
11986	SAVE_CFLAGS="$CFLAGS"
11987	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11988	cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h.  */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h.  */
11994
11995#include "xorg-server.h"
11996#if !defined RENDER
11997#error RENDER not defined
11998#endif
11999
12000int
12001main ()
12002{
12003
12004  ;
12005  return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext
12009if { (ac_try="$ac_compile"
12010case "(($ac_try" in
12011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012  *) ac_try_echo=$ac_try;;
12013esac
12014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015$as_echo "$ac_try_echo") >&5
12016  (eval "$ac_compile") 2>conftest.er1
12017  ac_status=$?
12018  grep -v '^ *+' conftest.er1 >conftest.err
12019  rm -f conftest.er1
12020  cat conftest.err >&5
12021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022  (exit $ac_status); } && {
12023	 test -z "$ac_c_werror_flag" ||
12024	 test ! -s conftest.err
12025       } && test -s conftest.$ac_objext; then
12026  _EXT_CHECK=yes
12027else
12028  $as_echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031	_EXT_CHECK=no
12032fi
12033
12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035	CFLAGS="$SAVE_CFLAGS"
12036	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12037$as_echo_n "checking if RENDER is defined... " >&6; }
12038	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12039$as_echo "$_EXT_CHECK" >&6; }
12040	if test "$_EXT_CHECK" != no; then
12041		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12042	fi
12043
12044
12045
12046	SAVE_CFLAGS="$CFLAGS"
12047	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12048	cat >conftest.$ac_ext <<_ACEOF
12049/* confdefs.h.  */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
12053/* end confdefs.h.  */
12054
12055#include "xorg-server.h"
12056#if !defined XV
12057#error XV not defined
12058#endif
12059
12060int
12061main ()
12062{
12063
12064  ;
12065  return 0;
12066}
12067_ACEOF
12068rm -f conftest.$ac_objext
12069if { (ac_try="$ac_compile"
12070case "(($ac_try" in
12071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072  *) ac_try_echo=$ac_try;;
12073esac
12074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12075$as_echo "$ac_try_echo") >&5
12076  (eval "$ac_compile") 2>conftest.er1
12077  ac_status=$?
12078  grep -v '^ *+' conftest.er1 >conftest.err
12079  rm -f conftest.er1
12080  cat conftest.err >&5
12081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082  (exit $ac_status); } && {
12083	 test -z "$ac_c_werror_flag" ||
12084	 test ! -s conftest.err
12085       } && test -s conftest.$ac_objext; then
12086  _EXT_CHECK=yes
12087else
12088  $as_echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091	_EXT_CHECK=no
12092fi
12093
12094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095	CFLAGS="$SAVE_CFLAGS"
12096	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12097$as_echo_n "checking if XV is defined... " >&6; }
12098	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12099$as_echo "$_EXT_CHECK" >&6; }
12100	if test "$_EXT_CHECK" != no; then
12101		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12102	fi
12103
12104
12105
12106	SAVE_CFLAGS="$CFLAGS"
12107	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12108	cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h.  */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h.  */
12114
12115#include "xorg-server.h"
12116#if !defined DPMSExtension
12117#error DPMSExtension not defined
12118#endif
12119
12120int
12121main ()
12122{
12123
12124  ;
12125  return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext
12129if { (ac_try="$ac_compile"
12130case "(($ac_try" in
12131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132  *) ac_try_echo=$ac_try;;
12133esac
12134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135$as_echo "$ac_try_echo") >&5
12136  (eval "$ac_compile") 2>conftest.er1
12137  ac_status=$?
12138  grep -v '^ *+' conftest.er1 >conftest.err
12139  rm -f conftest.er1
12140  cat conftest.err >&5
12141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142  (exit $ac_status); } && {
12143	 test -z "$ac_c_werror_flag" ||
12144	 test ! -s conftest.err
12145       } && test -s conftest.$ac_objext; then
12146  _EXT_CHECK=yes
12147else
12148  $as_echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151	_EXT_CHECK=no
12152fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155	CFLAGS="$SAVE_CFLAGS"
12156	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12157$as_echo_n "checking if DPMSExtension is defined... " >&6; }
12158	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12159$as_echo "$_EXT_CHECK" >&6; }
12160	if test "$_EXT_CHECK" != no; then
12161		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12162	fi
12163
12164
12165# Obtain compiler/linker options for the driver dependencies
12166
12167pkg_failed=no
12168{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
12169$as_echo_n "checking for XORG... " >&6; }
12170
12171if test -n "$XORG_CFLAGS"; then
12172    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12173 elif test -n "$PKG_CONFIG"; then
12174    if test -n "$PKG_CONFIG" && \
12175    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12176  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12177  ac_status=$?
12178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179  (exit $ac_status); }; then
12180  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12181else
12182  pkg_failed=yes
12183fi
12184 else
12185    pkg_failed=untried
12186fi
12187if test -n "$XORG_LIBS"; then
12188    pkg_cv_XORG_LIBS="$XORG_LIBS"
12189 elif test -n "$PKG_CONFIG"; then
12190    if test -n "$PKG_CONFIG" && \
12191    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12192  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12193  ac_status=$?
12194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195  (exit $ac_status); }; then
12196  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12197else
12198  pkg_failed=yes
12199fi
12200 else
12201    pkg_failed=untried
12202fi
12203
12204
12205
12206if test $pkg_failed = yes; then
12207
12208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12209        _pkg_short_errors_supported=yes
12210else
12211        _pkg_short_errors_supported=no
12212fi
12213        if test $_pkg_short_errors_supported = yes; then
12214	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12215        else
12216	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12217        fi
12218	# Put the nasty error message in config.log where it belongs
12219	echo "$XORG_PKG_ERRORS" >&5
12220
12221	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12222
12223$XORG_PKG_ERRORS
12224
12225Consider adjusting the PKG_CONFIG_PATH environment variable if you
12226installed software in a non-standard prefix.
12227
12228Alternatively, you may set the environment variables XORG_CFLAGS
12229and XORG_LIBS to avoid the need to call pkg-config.
12230See the pkg-config man page for more details.
12231" >&5
12232$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12233
12234$XORG_PKG_ERRORS
12235
12236Consider adjusting the PKG_CONFIG_PATH environment variable if you
12237installed software in a non-standard prefix.
12238
12239Alternatively, you may set the environment variables XORG_CFLAGS
12240and XORG_LIBS to avoid the need to call pkg-config.
12241See the pkg-config man page for more details.
12242" >&2;}
12243   { (exit 1); exit 1; }; }
12244elif test $pkg_failed = untried; then
12245	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12247{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12248is in your PATH or set the PKG_CONFIG environment variable to the full
12249path to pkg-config.
12250
12251Alternatively, you may set the environment variables XORG_CFLAGS
12252and XORG_LIBS to avoid the need to call pkg-config.
12253See the pkg-config man page for more details.
12254
12255To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12256See \`config.log' for more details." >&5
12257$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12258is in your PATH or set the PKG_CONFIG environment variable to the full
12259path to pkg-config.
12260
12261Alternatively, you may set the environment variables XORG_CFLAGS
12262and XORG_LIBS to avoid the need to call pkg-config.
12263See the pkg-config man page for more details.
12264
12265To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12266See \`config.log' for more details." >&2;}
12267   { (exit 1); exit 1; }; }; }
12268else
12269	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12270	XORG_LIBS=$pkg_cv_XORG_LIBS
12271        { $as_echo "$as_me:$LINENO: result: yes" >&5
12272$as_echo "yes" >&6; }
12273	:
12274fi
12275
12276# Checks for libraries.
12277SAVE_CPPFLAGS="$CPPFLAGS"
12278CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12279{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12280$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12281if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12282  $as_echo_n "(cached) " >&6
12283else
12284  cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h.  */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h.  */
12290#include "xorg-server.h"
12291
12292int
12293main ()
12294{
12295#ifndef XSERVER_LIBPCIACCESS
12296  (void) XSERVER_LIBPCIACCESS;
12297#endif
12298
12299  ;
12300  return 0;
12301}
12302_ACEOF
12303rm -f conftest.$ac_objext
12304if { (ac_try="$ac_compile"
12305case "(($ac_try" in
12306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307  *) ac_try_echo=$ac_try;;
12308esac
12309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12310$as_echo "$ac_try_echo") >&5
12311  (eval "$ac_compile") 2>conftest.er1
12312  ac_status=$?
12313  grep -v '^ *+' conftest.er1 >conftest.err
12314  rm -f conftest.er1
12315  cat conftest.err >&5
12316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317  (exit $ac_status); } && {
12318	 test -z "$ac_c_werror_flag" ||
12319	 test ! -s conftest.err
12320       } && test -s conftest.$ac_objext; then
12321  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12322else
12323  $as_echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12327fi
12328
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330fi
12331{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12332$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12333if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12334  XSERVER_LIBPCIACCESS=yes
12335else
12336  XSERVER_LIBPCIACCESS=no
12337fi
12338
12339CPPFLAGS="$SAVE_CPPFLAGS"
12340
12341if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12342
12343pkg_failed=no
12344{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12345$as_echo_n "checking for PCIACCESS... " >&6; }
12346
12347if test -n "$PCIACCESS_CFLAGS"; then
12348    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12349 elif test -n "$PKG_CONFIG"; then
12350    if test -n "$PKG_CONFIG" && \
12351    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12352  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12353  ac_status=$?
12354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355  (exit $ac_status); }; then
12356  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12357else
12358  pkg_failed=yes
12359fi
12360 else
12361    pkg_failed=untried
12362fi
12363if test -n "$PCIACCESS_LIBS"; then
12364    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12365 elif test -n "$PKG_CONFIG"; then
12366    if test -n "$PKG_CONFIG" && \
12367    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12368  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12369  ac_status=$?
12370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371  (exit $ac_status); }; then
12372  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12373else
12374  pkg_failed=yes
12375fi
12376 else
12377    pkg_failed=untried
12378fi
12379
12380
12381
12382if test $pkg_failed = yes; then
12383
12384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12385        _pkg_short_errors_supported=yes
12386else
12387        _pkg_short_errors_supported=no
12388fi
12389        if test $_pkg_short_errors_supported = yes; then
12390	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12391        else
12392	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12393        fi
12394	# Put the nasty error message in config.log where it belongs
12395	echo "$PCIACCESS_PKG_ERRORS" >&5
12396
12397	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12398
12399$PCIACCESS_PKG_ERRORS
12400
12401Consider adjusting the PKG_CONFIG_PATH environment variable if you
12402installed software in a non-standard prefix.
12403
12404Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12405and PCIACCESS_LIBS to avoid the need to call pkg-config.
12406See the pkg-config man page for more details.
12407" >&5
12408$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12409
12410$PCIACCESS_PKG_ERRORS
12411
12412Consider adjusting the PKG_CONFIG_PATH environment variable if you
12413installed software in a non-standard prefix.
12414
12415Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12416and PCIACCESS_LIBS to avoid the need to call pkg-config.
12417See the pkg-config man page for more details.
12418" >&2;}
12419   { (exit 1); exit 1; }; }
12420elif test $pkg_failed = untried; then
12421	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12423{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12424is in your PATH or set the PKG_CONFIG environment variable to the full
12425path to pkg-config.
12426
12427Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12428and PCIACCESS_LIBS to avoid the need to call pkg-config.
12429See the pkg-config man page for more details.
12430
12431To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12432See \`config.log' for more details." >&5
12433$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12434is in your PATH or set the PKG_CONFIG environment variable to the full
12435path to pkg-config.
12436
12437Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12438and PCIACCESS_LIBS to avoid the need to call pkg-config.
12439See the pkg-config man page for more details.
12440
12441To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12442See \`config.log' for more details." >&2;}
12443   { (exit 1); exit 1; }; }; }
12444else
12445	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12446	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12447        { $as_echo "$as_me:$LINENO: result: yes" >&5
12448$as_echo "yes" >&6; }
12449	:
12450fi
12451    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12452fi
12453 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12454  XSERVER_LIBPCIACCESS_TRUE=
12455  XSERVER_LIBPCIACCESS_FALSE='#'
12456else
12457  XSERVER_LIBPCIACCESS_TRUE='#'
12458  XSERVER_LIBPCIACCESS_FALSE=
12459fi
12460
12461
12462
12463
12464DRIVER_NAME=nv
12465
12466
12467ac_config_files="$ac_config_files Makefile src/Makefile"
12468
12469cat >confcache <<\_ACEOF
12470# This file is a shell script that caches the results of configure
12471# tests run on this system so they can be shared between configure
12472# scripts and configure runs, see configure's option --config-cache.
12473# It is not useful on other systems.  If it contains results you don't
12474# want to keep, you may remove or edit it.
12475#
12476# config.status only pays attention to the cache file if you give it
12477# the --recheck option to rerun configure.
12478#
12479# `ac_cv_env_foo' variables (set or unset) will be overridden when
12480# loading this file, other *unset* `ac_cv_foo' will be assigned the
12481# following values.
12482
12483_ACEOF
12484
12485# The following way of writing the cache mishandles newlines in values,
12486# but we know of no workaround that is simple, portable, and efficient.
12487# So, we kill variables containing newlines.
12488# Ultrix sh set writes to stderr and can't be redirected directly,
12489# and sets the high bit in the cache file unless we assign to the vars.
12490(
12491  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12492    eval ac_val=\$$ac_var
12493    case $ac_val in #(
12494    *${as_nl}*)
12495      case $ac_var in #(
12496      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12498      esac
12499      case $ac_var in #(
12500      _ | IFS | as_nl) ;; #(
12501      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12502      *) $as_unset $ac_var ;;
12503      esac ;;
12504    esac
12505  done
12506
12507  (set) 2>&1 |
12508    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12509    *${as_nl}ac_space=\ *)
12510      # `set' does not quote correctly, so add quotes (double-quote
12511      # substitution turns \\\\ into \\, and sed turns \\ into \).
12512      sed -n \
12513	"s/'/'\\\\''/g;
12514	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12515      ;; #(
12516    *)
12517      # `set' quotes correctly as required by POSIX, so do not add quotes.
12518      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12519      ;;
12520    esac |
12521    sort
12522) |
12523  sed '
12524     /^ac_cv_env_/b end
12525     t clear
12526     :clear
12527     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12528     t end
12529     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12530     :end' >>confcache
12531if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12532  if test -w "$cache_file"; then
12533    test "x$cache_file" != "x/dev/null" &&
12534      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12535$as_echo "$as_me: updating cache $cache_file" >&6;}
12536    cat confcache >$cache_file
12537  else
12538    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12539$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12540  fi
12541fi
12542rm -f confcache
12543
12544test "x$prefix" = xNONE && prefix=$ac_default_prefix
12545# Let make expand exec_prefix.
12546test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12547
12548DEFS=-DHAVE_CONFIG_H
12549
12550ac_libobjs=
12551ac_ltlibobjs=
12552for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12553  # 1. Remove the extension, and $U if already installed.
12554  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12555  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12556  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12557  #    will be set to the directory where LIBOBJS objects are built.
12558  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12559  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12560done
12561LIBOBJS=$ac_libobjs
12562
12563LTLIBOBJS=$ac_ltlibobjs
12564
12565
12566 if test -n "$EXEEXT"; then
12567  am__EXEEXT_TRUE=
12568  am__EXEEXT_FALSE='#'
12569else
12570  am__EXEEXT_TRUE='#'
12571  am__EXEEXT_FALSE=
12572fi
12573
12574if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12575  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12576Usually this means the macro was only invoked conditionally." >&5
12577$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12578Usually this means the macro was only invoked conditionally." >&2;}
12579   { (exit 1); exit 1; }; }
12580fi
12581if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12582  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12583Usually this means the macro was only invoked conditionally." >&5
12584$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12585Usually this means the macro was only invoked conditionally." >&2;}
12586   { (exit 1); exit 1; }; }
12587fi
12588if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12589  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12590Usually this means the macro was only invoked conditionally." >&5
12591$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12592Usually this means the macro was only invoked conditionally." >&2;}
12593   { (exit 1); exit 1; }; }
12594fi
12595if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
12596  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
12597Usually this means the macro was only invoked conditionally." >&5
12598$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
12599Usually this means the macro was only invoked conditionally." >&2;}
12600   { (exit 1); exit 1; }; }
12601fi
12602
12603: ${CONFIG_STATUS=./config.status}
12604ac_write_fail=0
12605ac_clean_files_save=$ac_clean_files
12606ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12607{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12608$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12609cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12610#! $SHELL
12611# Generated by $as_me.
12612# Run this file to recreate the current configuration.
12613# Compiler output produced by configure, useful for debugging
12614# configure, is in config.log if it exists.
12615
12616debug=false
12617ac_cs_recheck=false
12618ac_cs_silent=false
12619SHELL=\${CONFIG_SHELL-$SHELL}
12620_ACEOF
12621
12622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623## --------------------- ##
12624## M4sh Initialization.  ##
12625## --------------------- ##
12626
12627# Be more Bourne compatible
12628DUALCASE=1; export DUALCASE # for MKS sh
12629if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12630  emulate sh
12631  NULLCMD=:
12632  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12633  # is contrary to our usage.  Disable this feature.
12634  alias -g '${1+"$@"}'='"$@"'
12635  setopt NO_GLOB_SUBST
12636else
12637  case `(set -o) 2>/dev/null` in
12638  *posix*) set -o posix ;;
12639esac
12640
12641fi
12642
12643
12644
12645
12646# PATH needs CR
12647# Avoid depending upon Character Ranges.
12648as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12649as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12650as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12651as_cr_digits='0123456789'
12652as_cr_alnum=$as_cr_Letters$as_cr_digits
12653
12654as_nl='
12655'
12656export as_nl
12657# Printing a long string crashes Solaris 7 /usr/bin/printf.
12658as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12659as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12661if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12662  as_echo='printf %s\n'
12663  as_echo_n='printf %s'
12664else
12665  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12666    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12667    as_echo_n='/usr/ucb/echo -n'
12668  else
12669    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12670    as_echo_n_body='eval
12671      arg=$1;
12672      case $arg in
12673      *"$as_nl"*)
12674	expr "X$arg" : "X\\(.*\\)$as_nl";
12675	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12676      esac;
12677      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12678    '
12679    export as_echo_n_body
12680    as_echo_n='sh -c $as_echo_n_body as_echo'
12681  fi
12682  export as_echo_body
12683  as_echo='sh -c $as_echo_body as_echo'
12684fi
12685
12686# The user is always right.
12687if test "${PATH_SEPARATOR+set}" != set; then
12688  PATH_SEPARATOR=:
12689  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12690    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12691      PATH_SEPARATOR=';'
12692  }
12693fi
12694
12695# Support unset when possible.
12696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12697  as_unset=unset
12698else
12699  as_unset=false
12700fi
12701
12702
12703# IFS
12704# We need space, tab and new line, in precisely that order.  Quoting is
12705# there to prevent editors from complaining about space-tab.
12706# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12707# splitting by setting IFS to empty value.)
12708IFS=" ""	$as_nl"
12709
12710# Find who we are.  Look in the path if we contain no directory separator.
12711case $0 in
12712  *[\\/]* ) as_myself=$0 ;;
12713  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716  IFS=$as_save_IFS
12717  test -z "$as_dir" && as_dir=.
12718  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12719done
12720IFS=$as_save_IFS
12721
12722     ;;
12723esac
12724# We did not find ourselves, most probably we were run as `sh COMMAND'
12725# in which case we are not to be found in the path.
12726if test "x$as_myself" = x; then
12727  as_myself=$0
12728fi
12729if test ! -f "$as_myself"; then
12730  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12731  { (exit 1); exit 1; }
12732fi
12733
12734# Work around bugs in pre-3.0 UWIN ksh.
12735for as_var in ENV MAIL MAILPATH
12736do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12737done
12738PS1='$ '
12739PS2='> '
12740PS4='+ '
12741
12742# NLS nuisances.
12743LC_ALL=C
12744export LC_ALL
12745LANGUAGE=C
12746export LANGUAGE
12747
12748# Required to use basename.
12749if expr a : '\(a\)' >/dev/null 2>&1 &&
12750   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12751  as_expr=expr
12752else
12753  as_expr=false
12754fi
12755
12756if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12757  as_basename=basename
12758else
12759  as_basename=false
12760fi
12761
12762
12763# Name of the executable.
12764as_me=`$as_basename -- "$0" ||
12765$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12766	 X"$0" : 'X\(//\)$' \| \
12767	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12768$as_echo X/"$0" |
12769    sed '/^.*\/\([^/][^/]*\)\/*$/{
12770	    s//\1/
12771	    q
12772	  }
12773	  /^X\/\(\/\/\)$/{
12774	    s//\1/
12775	    q
12776	  }
12777	  /^X\/\(\/\).*/{
12778	    s//\1/
12779	    q
12780	  }
12781	  s/.*/./; q'`
12782
12783# CDPATH.
12784$as_unset CDPATH
12785
12786
12787
12788  as_lineno_1=$LINENO
12789  as_lineno_2=$LINENO
12790  test "x$as_lineno_1" != "x$as_lineno_2" &&
12791  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12792
12793  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12794  # uniformly replaced by the line number.  The first 'sed' inserts a
12795  # line-number line after each line using $LINENO; the second 'sed'
12796  # does the real work.  The second script uses 'N' to pair each
12797  # line-number line with the line containing $LINENO, and appends
12798  # trailing '-' during substitution so that $LINENO is not a special
12799  # case at line end.
12800  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12801  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12802  # E. McMahon (1931-1989) for sed's syntax.  :-)
12803  sed -n '
12804    p
12805    /[$]LINENO/=
12806  ' <$as_myself |
12807    sed '
12808      s/[$]LINENO.*/&-/
12809      t lineno
12810      b
12811      :lineno
12812      N
12813      :loop
12814      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12815      t loop
12816      s/-\n.*//
12817    ' >$as_me.lineno &&
12818  chmod +x "$as_me.lineno" ||
12819    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12820   { (exit 1); exit 1; }; }
12821
12822  # Don't try to exec as it changes $[0], causing all sort of problems
12823  # (the dirname of $[0] is not the place where we might find the
12824  # original and so on.  Autoconf is especially sensitive to this).
12825  . "./$as_me.lineno"
12826  # Exit status is that of the last command.
12827  exit
12828}
12829
12830
12831if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12832  as_dirname=dirname
12833else
12834  as_dirname=false
12835fi
12836
12837ECHO_C= ECHO_N= ECHO_T=
12838case `echo -n x` in
12839-n*)
12840  case `echo 'x\c'` in
12841  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12842  *)   ECHO_C='\c';;
12843  esac;;
12844*)
12845  ECHO_N='-n';;
12846esac
12847if expr a : '\(a\)' >/dev/null 2>&1 &&
12848   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12849  as_expr=expr
12850else
12851  as_expr=false
12852fi
12853
12854rm -f conf$$ conf$$.exe conf$$.file
12855if test -d conf$$.dir; then
12856  rm -f conf$$.dir/conf$$.file
12857else
12858  rm -f conf$$.dir
12859  mkdir conf$$.dir 2>/dev/null
12860fi
12861if (echo >conf$$.file) 2>/dev/null; then
12862  if ln -s conf$$.file conf$$ 2>/dev/null; then
12863    as_ln_s='ln -s'
12864    # ... but there are two gotchas:
12865    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12866    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12867    # In both cases, we have to default to `cp -p'.
12868    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12869      as_ln_s='cp -p'
12870  elif ln conf$$.file conf$$ 2>/dev/null; then
12871    as_ln_s=ln
12872  else
12873    as_ln_s='cp -p'
12874  fi
12875else
12876  as_ln_s='cp -p'
12877fi
12878rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12879rmdir conf$$.dir 2>/dev/null
12880
12881if mkdir -p . 2>/dev/null; then
12882  as_mkdir_p=:
12883else
12884  test -d ./-p && rmdir ./-p
12885  as_mkdir_p=false
12886fi
12887
12888if test -x / >/dev/null 2>&1; then
12889  as_test_x='test -x'
12890else
12891  if ls -dL / >/dev/null 2>&1; then
12892    as_ls_L_option=L
12893  else
12894    as_ls_L_option=
12895  fi
12896  as_test_x='
12897    eval sh -c '\''
12898      if test -d "$1"; then
12899	test -d "$1/.";
12900      else
12901	case $1 in
12902	-*)set "./$1";;
12903	esac;
12904	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12905	???[sx]*):;;*)false;;esac;fi
12906    '\'' sh
12907  '
12908fi
12909as_executable_p=$as_test_x
12910
12911# Sed expression to map a string onto a valid CPP name.
12912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12913
12914# Sed expression to map a string onto a valid variable name.
12915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12916
12917
12918exec 6>&1
12919
12920# Save the log message, to keep $[0] and so on meaningful, and to
12921# report actual input values of CONFIG_FILES etc. instead of their
12922# values after options handling.
12923ac_log="
12924This file was extended by xf86-video-ast $as_me 0.91.10, which was
12925generated by GNU Autoconf 2.63.  Invocation command line was
12926
12927  CONFIG_FILES    = $CONFIG_FILES
12928  CONFIG_HEADERS  = $CONFIG_HEADERS
12929  CONFIG_LINKS    = $CONFIG_LINKS
12930  CONFIG_COMMANDS = $CONFIG_COMMANDS
12931  $ $0 $@
12932
12933on `(hostname || uname -n) 2>/dev/null | sed 1q`
12934"
12935
12936_ACEOF
12937
12938case $ac_config_files in *"
12939"*) set x $ac_config_files; shift; ac_config_files=$*;;
12940esac
12941
12942case $ac_config_headers in *"
12943"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12944esac
12945
12946
12947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12948# Files that config.status was made for.
12949config_files="$ac_config_files"
12950config_headers="$ac_config_headers"
12951config_commands="$ac_config_commands"
12952
12953_ACEOF
12954
12955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12956ac_cs_usage="\
12957\`$as_me' instantiates files from templates according to the
12958current configuration.
12959
12960Usage: $0 [OPTION]... [FILE]...
12961
12962  -h, --help       print this help, then exit
12963  -V, --version    print version number and configuration settings, then exit
12964  -q, --quiet, --silent
12965                   do not print progress messages
12966  -d, --debug      don't remove temporary files
12967      --recheck    update $as_me by reconfiguring in the same conditions
12968      --file=FILE[:TEMPLATE]
12969                   instantiate the configuration file FILE
12970      --header=FILE[:TEMPLATE]
12971                   instantiate the configuration header FILE
12972
12973Configuration files:
12974$config_files
12975
12976Configuration headers:
12977$config_headers
12978
12979Configuration commands:
12980$config_commands
12981
12982Report bugs to <bug-autoconf@gnu.org>."
12983
12984_ACEOF
12985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986ac_cs_version="\\
12987xf86-video-ast config.status 0.91.10
12988configured by $0, generated by GNU Autoconf 2.63,
12989  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12990
12991Copyright (C) 2008 Free Software Foundation, Inc.
12992This config.status script is free software; the Free Software Foundation
12993gives unlimited permission to copy, distribute and modify it."
12994
12995ac_pwd='$ac_pwd'
12996srcdir='$srcdir'
12997INSTALL='$INSTALL'
12998MKDIR_P='$MKDIR_P'
12999AWK='$AWK'
13000test -n "\$AWK" || AWK=awk
13001_ACEOF
13002
13003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13004# The default lists apply if the user does not specify any file.
13005ac_need_defaults=:
13006while test $# != 0
13007do
13008  case $1 in
13009  --*=*)
13010    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13011    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13012    ac_shift=:
13013    ;;
13014  *)
13015    ac_option=$1
13016    ac_optarg=$2
13017    ac_shift=shift
13018    ;;
13019  esac
13020
13021  case $ac_option in
13022  # Handling of the options.
13023  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13024    ac_cs_recheck=: ;;
13025  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13026    $as_echo "$ac_cs_version"; exit ;;
13027  --debug | --debu | --deb | --de | --d | -d )
13028    debug=: ;;
13029  --file | --fil | --fi | --f )
13030    $ac_shift
13031    case $ac_optarg in
13032    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13033    esac
13034    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13035    ac_need_defaults=false;;
13036  --header | --heade | --head | --hea )
13037    $ac_shift
13038    case $ac_optarg in
13039    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13040    esac
13041    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13042    ac_need_defaults=false;;
13043  --he | --h)
13044    # Conflict between --help and --header
13045    { $as_echo "$as_me: error: ambiguous option: $1
13046Try \`$0 --help' for more information." >&2
13047   { (exit 1); exit 1; }; };;
13048  --help | --hel | -h )
13049    $as_echo "$ac_cs_usage"; exit ;;
13050  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13051  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13052    ac_cs_silent=: ;;
13053
13054  # This is an error.
13055  -*) { $as_echo "$as_me: error: unrecognized option: $1
13056Try \`$0 --help' for more information." >&2
13057   { (exit 1); exit 1; }; } ;;
13058
13059  *) ac_config_targets="$ac_config_targets $1"
13060     ac_need_defaults=false ;;
13061
13062  esac
13063  shift
13064done
13065
13066ac_configure_extra_args=
13067
13068if $ac_cs_silent; then
13069  exec 6>/dev/null
13070  ac_configure_extra_args="$ac_configure_extra_args --silent"
13071fi
13072
13073_ACEOF
13074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13075if \$ac_cs_recheck; then
13076  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13077  shift
13078  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13079  CONFIG_SHELL='$SHELL'
13080  export CONFIG_SHELL
13081  exec "\$@"
13082fi
13083
13084_ACEOF
13085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086exec 5>>config.log
13087{
13088  echo
13089  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13090## Running $as_me. ##
13091_ASBOX
13092  $as_echo "$ac_log"
13093} >&5
13094
13095_ACEOF
13096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097#
13098# INIT-COMMANDS
13099#
13100AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13101
13102
13103# The HP-UX ksh and POSIX shell print the target directory to stdout
13104# if CDPATH is set.
13105(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13106
13107sed_quote_subst='$sed_quote_subst'
13108double_quote_subst='$double_quote_subst'
13109delay_variable_subst='$delay_variable_subst'
13110enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13111macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13112macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13113enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13114pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13115enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13116host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13117host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13118host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13119build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13120build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13121build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13122SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13123Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13124GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13125EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13126FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13127LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13128NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13129LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13130max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13131ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13132exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13133lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13134lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13135lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13136reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13137reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13138OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13139deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13140file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13141AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13142AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13143STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13144RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13145old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13146old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13147old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13148CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13149CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13150compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13151GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13152lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13153lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13154lt_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"`'
13155lt_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"`'
13156objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13157SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13158ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13159MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13160lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13161lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13162lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13163lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13164lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13165need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13166DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13167NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13168LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13169OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13170OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13171libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13172shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13173extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13174archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13175enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13176export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13177whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13178compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13179old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13180old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13181archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13182archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13183module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13184module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13185with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13186allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13187no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13188hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13189hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13190hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13191hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13192hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13193hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13194hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13195hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13196inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13197link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13198fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13199always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13200export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13201exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13202include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13203prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13204file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13205variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13206need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13207need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13208version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13209runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13210shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13211shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13212libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13213library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13214soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13215postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13216postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13217finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13218finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13219hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13220sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13221sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13222hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13223enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13224enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13225enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13226old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13227striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13228
13229LTCC='$LTCC'
13230LTCFLAGS='$LTCFLAGS'
13231compiler='$compiler_DEFAULT'
13232
13233# Quote evaled strings.
13234for var in SED \
13235GREP \
13236EGREP \
13237FGREP \
13238LD \
13239NM \
13240LN_S \
13241lt_SP2NL \
13242lt_NL2SP \
13243reload_flag \
13244OBJDUMP \
13245deplibs_check_method \
13246file_magic_cmd \
13247AR \
13248AR_FLAGS \
13249STRIP \
13250RANLIB \
13251CC \
13252CFLAGS \
13253compiler \
13254lt_cv_sys_global_symbol_pipe \
13255lt_cv_sys_global_symbol_to_cdecl \
13256lt_cv_sys_global_symbol_to_c_name_address \
13257lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13258SHELL \
13259ECHO \
13260lt_prog_compiler_no_builtin_flag \
13261lt_prog_compiler_wl \
13262lt_prog_compiler_pic \
13263lt_prog_compiler_static \
13264lt_cv_prog_compiler_c_o \
13265need_locks \
13266DSYMUTIL \
13267NMEDIT \
13268LIPO \
13269OTOOL \
13270OTOOL64 \
13271shrext_cmds \
13272export_dynamic_flag_spec \
13273whole_archive_flag_spec \
13274compiler_needs_object \
13275with_gnu_ld \
13276allow_undefined_flag \
13277no_undefined_flag \
13278hardcode_libdir_flag_spec \
13279hardcode_libdir_flag_spec_ld \
13280hardcode_libdir_separator \
13281fix_srcfile_path \
13282exclude_expsyms \
13283include_expsyms \
13284file_list_spec \
13285variables_saved_for_relink \
13286libname_spec \
13287library_names_spec \
13288soname_spec \
13289finish_eval \
13290old_striplib \
13291striplib; do
13292    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13293    *[\\\\\\\`\\"\\\$]*)
13294      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13295      ;;
13296    *)
13297      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13298      ;;
13299    esac
13300done
13301
13302# Double-quote double-evaled strings.
13303for var in reload_cmds \
13304old_postinstall_cmds \
13305old_postuninstall_cmds \
13306old_archive_cmds \
13307extract_expsyms_cmds \
13308old_archive_from_new_cmds \
13309old_archive_from_expsyms_cmds \
13310archive_cmds \
13311archive_expsym_cmds \
13312module_cmds \
13313module_expsym_cmds \
13314export_symbols_cmds \
13315prelink_cmds \
13316postinstall_cmds \
13317postuninstall_cmds \
13318finish_cmds \
13319sys_lib_search_path_spec \
13320sys_lib_dlsearch_path_spec; do
13321    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13322    *[\\\\\\\`\\"\\\$]*)
13323      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13324      ;;
13325    *)
13326      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13327      ;;
13328    esac
13329done
13330
13331# Fix-up fallback echo if it was mangled by the above quoting rules.
13332case \$lt_ECHO in
13333*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13334  ;;
13335esac
13336
13337ac_aux_dir='$ac_aux_dir'
13338xsi_shell='$xsi_shell'
13339lt_shell_append='$lt_shell_append'
13340
13341# See if we are running on zsh, and set the options which allow our
13342# commands through without removal of \ escapes INIT.
13343if test -n "\${ZSH_VERSION+set}" ; then
13344   setopt NO_GLOB_SUBST
13345fi
13346
13347
13348    PACKAGE='$PACKAGE'
13349    VERSION='$VERSION'
13350    TIMESTAMP='$TIMESTAMP'
13351    RM='$RM'
13352    ofile='$ofile'
13353
13354
13355
13356
13357_ACEOF
13358
13359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13360
13361# Handling of arguments.
13362for ac_config_target in $ac_config_targets
13363do
13364  case $ac_config_target in
13365    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13366    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13367    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13368    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13369    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13370
13371  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13372$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13373   { (exit 1); exit 1; }; };;
13374  esac
13375done
13376
13377
13378# If the user did not use the arguments to specify the items to instantiate,
13379# then the envvar interface is used.  Set only those that are not.
13380# We use the long form for the default assignment because of an extremely
13381# bizarre bug on SunOS 4.1.3.
13382if $ac_need_defaults; then
13383  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13384  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13385  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13386fi
13387
13388# Have a temporary directory for convenience.  Make it in the build tree
13389# simply because there is no reason against having it here, and in addition,
13390# creating and moving files from /tmp can sometimes cause problems.
13391# Hook for its removal unless debugging.
13392# Note that there is a small window in which the directory will not be cleaned:
13393# after its creation but before its name has been assigned to `$tmp'.
13394$debug ||
13395{
13396  tmp=
13397  trap 'exit_status=$?
13398  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13399' 0
13400  trap '{ (exit 1); exit 1; }' 1 2 13 15
13401}
13402# Create a (secure) tmp directory for tmp files.
13403
13404{
13405  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13406  test -n "$tmp" && test -d "$tmp"
13407}  ||
13408{
13409  tmp=./conf$$-$RANDOM
13410  (umask 077 && mkdir "$tmp")
13411} ||
13412{
13413   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13414   { (exit 1); exit 1; }
13415}
13416
13417# Set up the scripts for CONFIG_FILES section.
13418# No need to generate them if there are no CONFIG_FILES.
13419# This happens for instance with `./config.status config.h'.
13420if test -n "$CONFIG_FILES"; then
13421
13422
13423ac_cr='
13424'
13425ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13426if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13427  ac_cs_awk_cr='\\r'
13428else
13429  ac_cs_awk_cr=$ac_cr
13430fi
13431
13432echo 'BEGIN {' >"$tmp/subs1.awk" &&
13433_ACEOF
13434
13435
13436{
13437  echo "cat >conf$$subs.awk <<_ACEOF" &&
13438  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13439  echo "_ACEOF"
13440} >conf$$subs.sh ||
13441  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13442$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13443   { (exit 1); exit 1; }; }
13444ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13445ac_delim='%!_!# '
13446for ac_last_try in false false false false false :; do
13447  . ./conf$$subs.sh ||
13448    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13449$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13450   { (exit 1); exit 1; }; }
13451
13452  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13453  if test $ac_delim_n = $ac_delim_num; then
13454    break
13455  elif $ac_last_try; then
13456    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13457$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13458   { (exit 1); exit 1; }; }
13459  else
13460    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13461  fi
13462done
13463rm -f conf$$subs.sh
13464
13465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13467_ACEOF
13468sed -n '
13469h
13470s/^/S["/; s/!.*/"]=/
13471p
13472g
13473s/^[^!]*!//
13474:repl
13475t repl
13476s/'"$ac_delim"'$//
13477t delim
13478:nl
13479h
13480s/\(.\{148\}\).*/\1/
13481t more1
13482s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13483p
13484n
13485b repl
13486:more1
13487s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13488p
13489g
13490s/.\{148\}//
13491t nl
13492:delim
13493h
13494s/\(.\{148\}\).*/\1/
13495t more2
13496s/["\\]/\\&/g; s/^/"/; s/$/"/
13497p
13498b
13499:more2
13500s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13501p
13502g
13503s/.\{148\}//
13504t delim
13505' <conf$$subs.awk | sed '
13506/^[^""]/{
13507  N
13508  s/\n//
13509}
13510' >>$CONFIG_STATUS || ac_write_fail=1
13511rm -f conf$$subs.awk
13512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13513_ACAWK
13514cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13515  for (key in S) S_is_set[key] = 1
13516  FS = ""
13517
13518}
13519{
13520  line = $ 0
13521  nfields = split(line, field, "@")
13522  substed = 0
13523  len = length(field[1])
13524  for (i = 2; i < nfields; i++) {
13525    key = field[i]
13526    keylen = length(key)
13527    if (S_is_set[key]) {
13528      value = S[key]
13529      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13530      len += length(value) + length(field[++i])
13531      substed = 1
13532    } else
13533      len += 1 + keylen
13534  }
13535
13536  print line
13537}
13538
13539_ACAWK
13540_ACEOF
13541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13542if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13543  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13544else
13545  cat
13546fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13547  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13548$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13549   { (exit 1); exit 1; }; }
13550_ACEOF
13551
13552# VPATH may cause trouble with some makes, so we remove $(srcdir),
13553# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13554# trailing colons and then remove the whole line if VPATH becomes empty
13555# (actually we leave an empty line to preserve line numbers).
13556if test "x$srcdir" = x.; then
13557  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13558s/:*\$(srcdir):*/:/
13559s/:*\${srcdir}:*/:/
13560s/:*@srcdir@:*/:/
13561s/^\([^=]*=[	 ]*\):*/\1/
13562s/:*$//
13563s/^[^=]*=[	 ]*$//
13564}'
13565fi
13566
13567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13568fi # test -n "$CONFIG_FILES"
13569
13570# Set up the scripts for CONFIG_HEADERS section.
13571# No need to generate them if there are no CONFIG_HEADERS.
13572# This happens for instance with `./config.status Makefile'.
13573if test -n "$CONFIG_HEADERS"; then
13574cat >"$tmp/defines.awk" <<\_ACAWK ||
13575BEGIN {
13576_ACEOF
13577
13578# Transform confdefs.h into an awk script `defines.awk', embedded as
13579# here-document in config.status, that substitutes the proper values into
13580# config.h.in to produce config.h.
13581
13582# Create a delimiter string that does not exist in confdefs.h, to ease
13583# handling of long lines.
13584ac_delim='%!_!# '
13585for ac_last_try in false false :; do
13586  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13587  if test -z "$ac_t"; then
13588    break
13589  elif $ac_last_try; then
13590    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13591$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13592   { (exit 1); exit 1; }; }
13593  else
13594    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13595  fi
13596done
13597
13598# For the awk script, D is an array of macro values keyed by name,
13599# likewise P contains macro parameters if any.  Preserve backslash
13600# newline sequences.
13601
13602ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13603sed -n '
13604s/.\{148\}/&'"$ac_delim"'/g
13605t rset
13606:rset
13607s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13608t def
13609d
13610:def
13611s/\\$//
13612t bsnl
13613s/["\\]/\\&/g
13614s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13615D["\1"]=" \3"/p
13616s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13617d
13618:bsnl
13619s/["\\]/\\&/g
13620s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13621D["\1"]=" \3\\\\\\n"\\/p
13622t cont
13623s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13624t cont
13625d
13626:cont
13627n
13628s/.\{148\}/&'"$ac_delim"'/g
13629t clear
13630:clear
13631s/\\$//
13632t bsnlc
13633s/["\\]/\\&/g; s/^/"/; s/$/"/p
13634d
13635:bsnlc
13636s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13637b cont
13638' <confdefs.h | sed '
13639s/'"$ac_delim"'/"\\\
13640"/g' >>$CONFIG_STATUS || ac_write_fail=1
13641
13642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13643  for (key in D) D_is_set[key] = 1
13644  FS = ""
13645}
13646/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13647  line = \$ 0
13648  split(line, arg, " ")
13649  if (arg[1] == "#") {
13650    defundef = arg[2]
13651    mac1 = arg[3]
13652  } else {
13653    defundef = substr(arg[1], 2)
13654    mac1 = arg[2]
13655  }
13656  split(mac1, mac2, "(") #)
13657  macro = mac2[1]
13658  prefix = substr(line, 1, index(line, defundef) - 1)
13659  if (D_is_set[macro]) {
13660    # Preserve the white space surrounding the "#".
13661    print prefix "define", macro P[macro] D[macro]
13662    next
13663  } else {
13664    # Replace #undef with comments.  This is necessary, for example,
13665    # in the case of _POSIX_SOURCE, which is predefined and required
13666    # on some systems where configure will not decide to define it.
13667    if (defundef == "undef") {
13668      print "/*", prefix defundef, macro, "*/"
13669      next
13670    }
13671  }
13672}
13673{ print }
13674_ACAWK
13675_ACEOF
13676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13677  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13678$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13679   { (exit 1); exit 1; }; }
13680fi # test -n "$CONFIG_HEADERS"
13681
13682
13683eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13684shift
13685for ac_tag
13686do
13687  case $ac_tag in
13688  :[FHLC]) ac_mode=$ac_tag; continue;;
13689  esac
13690  case $ac_mode$ac_tag in
13691  :[FHL]*:*);;
13692  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13693$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13694   { (exit 1); exit 1; }; };;
13695  :[FH]-) ac_tag=-:-;;
13696  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13697  esac
13698  ac_save_IFS=$IFS
13699  IFS=:
13700  set x $ac_tag
13701  IFS=$ac_save_IFS
13702  shift
13703  ac_file=$1
13704  shift
13705
13706  case $ac_mode in
13707  :L) ac_source=$1;;
13708  :[FH])
13709    ac_file_inputs=
13710    for ac_f
13711    do
13712      case $ac_f in
13713      -) ac_f="$tmp/stdin";;
13714      *) # Look for the file first in the build tree, then in the source tree
13715	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13716	 # because $ac_f cannot contain `:'.
13717	 test -f "$ac_f" ||
13718	   case $ac_f in
13719	   [\\/$]*) false;;
13720	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13721	   esac ||
13722	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13723$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13724   { (exit 1); exit 1; }; };;
13725      esac
13726      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13727      ac_file_inputs="$ac_file_inputs '$ac_f'"
13728    done
13729
13730    # Let's still pretend it is `configure' which instantiates (i.e., don't
13731    # use $as_me), people would be surprised to read:
13732    #    /* config.h.  Generated by config.status.  */
13733    configure_input='Generated from '`
13734	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13735	`' by configure.'
13736    if test x"$ac_file" != x-; then
13737      configure_input="$ac_file.  $configure_input"
13738      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13739$as_echo "$as_me: creating $ac_file" >&6;}
13740    fi
13741    # Neutralize special characters interpreted by sed in replacement strings.
13742    case $configure_input in #(
13743    *\&* | *\|* | *\\* )
13744       ac_sed_conf_input=`$as_echo "$configure_input" |
13745       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13746    *) ac_sed_conf_input=$configure_input;;
13747    esac
13748
13749    case $ac_tag in
13750    *:-:* | *:-) cat >"$tmp/stdin" \
13751      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13752$as_echo "$as_me: error: could not create $ac_file" >&2;}
13753   { (exit 1); exit 1; }; } ;;
13754    esac
13755    ;;
13756  esac
13757
13758  ac_dir=`$as_dirname -- "$ac_file" ||
13759$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760	 X"$ac_file" : 'X\(//\)[^/]' \| \
13761	 X"$ac_file" : 'X\(//\)$' \| \
13762	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13763$as_echo X"$ac_file" |
13764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13765	    s//\1/
13766	    q
13767	  }
13768	  /^X\(\/\/\)[^/].*/{
13769	    s//\1/
13770	    q
13771	  }
13772	  /^X\(\/\/\)$/{
13773	    s//\1/
13774	    q
13775	  }
13776	  /^X\(\/\).*/{
13777	    s//\1/
13778	    q
13779	  }
13780	  s/.*/./; q'`
13781  { as_dir="$ac_dir"
13782  case $as_dir in #(
13783  -*) as_dir=./$as_dir;;
13784  esac
13785  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13786    as_dirs=
13787    while :; do
13788      case $as_dir in #(
13789      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13790      *) as_qdir=$as_dir;;
13791      esac
13792      as_dirs="'$as_qdir' $as_dirs"
13793      as_dir=`$as_dirname -- "$as_dir" ||
13794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13795	 X"$as_dir" : 'X\(//\)[^/]' \| \
13796	 X"$as_dir" : 'X\(//\)$' \| \
13797	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13798$as_echo X"$as_dir" |
13799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13800	    s//\1/
13801	    q
13802	  }
13803	  /^X\(\/\/\)[^/].*/{
13804	    s//\1/
13805	    q
13806	  }
13807	  /^X\(\/\/\)$/{
13808	    s//\1/
13809	    q
13810	  }
13811	  /^X\(\/\).*/{
13812	    s//\1/
13813	    q
13814	  }
13815	  s/.*/./; q'`
13816      test -d "$as_dir" && break
13817    done
13818    test -z "$as_dirs" || eval "mkdir $as_dirs"
13819  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13820$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13821   { (exit 1); exit 1; }; }; }
13822  ac_builddir=.
13823
13824case "$ac_dir" in
13825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13826*)
13827  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13828  # A ".." for each directory in $ac_dir_suffix.
13829  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13830  case $ac_top_builddir_sub in
13831  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13832  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13833  esac ;;
13834esac
13835ac_abs_top_builddir=$ac_pwd
13836ac_abs_builddir=$ac_pwd$ac_dir_suffix
13837# for backward compatibility:
13838ac_top_builddir=$ac_top_build_prefix
13839
13840case $srcdir in
13841  .)  # We are building in place.
13842    ac_srcdir=.
13843    ac_top_srcdir=$ac_top_builddir_sub
13844    ac_abs_top_srcdir=$ac_pwd ;;
13845  [\\/]* | ?:[\\/]* )  # Absolute name.
13846    ac_srcdir=$srcdir$ac_dir_suffix;
13847    ac_top_srcdir=$srcdir
13848    ac_abs_top_srcdir=$srcdir ;;
13849  *) # Relative name.
13850    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13851    ac_top_srcdir=$ac_top_build_prefix$srcdir
13852    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13853esac
13854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13855
13856
13857  case $ac_mode in
13858  :F)
13859  #
13860  # CONFIG_FILE
13861  #
13862
13863  case $INSTALL in
13864  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13865  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13866  esac
13867  ac_MKDIR_P=$MKDIR_P
13868  case $MKDIR_P in
13869  [\\/$]* | ?:[\\/]* ) ;;
13870  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13871  esac
13872_ACEOF
13873
13874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13875# If the template does not know about datarootdir, expand it.
13876# FIXME: This hack should be removed a few years after 2.60.
13877ac_datarootdir_hack=; ac_datarootdir_seen=
13878
13879ac_sed_dataroot='
13880/datarootdir/ {
13881  p
13882  q
13883}
13884/@datadir@/p
13885/@docdir@/p
13886/@infodir@/p
13887/@localedir@/p
13888/@mandir@/p
13889'
13890case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13891*datarootdir*) ac_datarootdir_seen=yes;;
13892*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13893  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13894$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13895_ACEOF
13896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13897  ac_datarootdir_hack='
13898  s&@datadir@&$datadir&g
13899  s&@docdir@&$docdir&g
13900  s&@infodir@&$infodir&g
13901  s&@localedir@&$localedir&g
13902  s&@mandir@&$mandir&g
13903    s&\\\${datarootdir}&$datarootdir&g' ;;
13904esac
13905_ACEOF
13906
13907# Neutralize VPATH when `$srcdir' = `.'.
13908# Shell code in configure.ac might set extrasub.
13909# FIXME: do we really want to maintain this feature?
13910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911ac_sed_extra="$ac_vpsub
13912$extrasub
13913_ACEOF
13914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915:t
13916/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13917s|@configure_input@|$ac_sed_conf_input|;t t
13918s&@top_builddir@&$ac_top_builddir_sub&;t t
13919s&@top_build_prefix@&$ac_top_build_prefix&;t t
13920s&@srcdir@&$ac_srcdir&;t t
13921s&@abs_srcdir@&$ac_abs_srcdir&;t t
13922s&@top_srcdir@&$ac_top_srcdir&;t t
13923s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13924s&@builddir@&$ac_builddir&;t t
13925s&@abs_builddir@&$ac_abs_builddir&;t t
13926s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13927s&@INSTALL@&$ac_INSTALL&;t t
13928s&@MKDIR_P@&$ac_MKDIR_P&;t t
13929$ac_datarootdir_hack
13930"
13931eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13932  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13933$as_echo "$as_me: error: could not create $ac_file" >&2;}
13934   { (exit 1); exit 1; }; }
13935
13936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13937  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13938  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13939  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13940which seems to be undefined.  Please make sure it is defined." >&5
13941$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13942which seems to be undefined.  Please make sure it is defined." >&2;}
13943
13944  rm -f "$tmp/stdin"
13945  case $ac_file in
13946  -) cat "$tmp/out" && rm -f "$tmp/out";;
13947  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13948  esac \
13949  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13950$as_echo "$as_me: error: could not create $ac_file" >&2;}
13951   { (exit 1); exit 1; }; }
13952 ;;
13953  :H)
13954  #
13955  # CONFIG_HEADER
13956  #
13957  if test x"$ac_file" != x-; then
13958    {
13959      $as_echo "/* $configure_input  */" \
13960      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13961    } >"$tmp/config.h" \
13962      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13963$as_echo "$as_me: error: could not create $ac_file" >&2;}
13964   { (exit 1); exit 1; }; }
13965    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13966      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13967$as_echo "$as_me: $ac_file is unchanged" >&6;}
13968    else
13969      rm -f "$ac_file"
13970      mv "$tmp/config.h" "$ac_file" \
13971	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13972$as_echo "$as_me: error: could not create $ac_file" >&2;}
13973   { (exit 1); exit 1; }; }
13974    fi
13975  else
13976    $as_echo "/* $configure_input  */" \
13977      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13978      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13979$as_echo "$as_me: error: could not create -" >&2;}
13980   { (exit 1); exit 1; }; }
13981  fi
13982# Compute "$ac_file"'s index in $config_headers.
13983_am_arg="$ac_file"
13984_am_stamp_count=1
13985for _am_header in $config_headers :; do
13986  case $_am_header in
13987    $_am_arg | $_am_arg:* )
13988      break ;;
13989    * )
13990      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13991  esac
13992done
13993echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13994$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13995	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13996	 X"$_am_arg" : 'X\(//\)$' \| \
13997	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13998$as_echo X"$_am_arg" |
13999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14000	    s//\1/
14001	    q
14002	  }
14003	  /^X\(\/\/\)[^/].*/{
14004	    s//\1/
14005	    q
14006	  }
14007	  /^X\(\/\/\)$/{
14008	    s//\1/
14009	    q
14010	  }
14011	  /^X\(\/\).*/{
14012	    s//\1/
14013	    q
14014	  }
14015	  s/.*/./; q'`/stamp-h$_am_stamp_count
14016 ;;
14017
14018  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14019$as_echo "$as_me: executing $ac_file commands" >&6;}
14020 ;;
14021  esac
14022
14023
14024  case $ac_file$ac_mode in
14025    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14026  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14027  # are listed without --file.  Let's play safe and only enable the eval
14028  # if we detect the quoting.
14029  case $CONFIG_FILES in
14030  *\'*) eval set x "$CONFIG_FILES" ;;
14031  *)   set x $CONFIG_FILES ;;
14032  esac
14033  shift
14034  for mf
14035  do
14036    # Strip MF so we end up with the name of the file.
14037    mf=`echo "$mf" | sed -e 's/:.*$//'`
14038    # Check whether this is an Automake generated Makefile or not.
14039    # We used to match only the files named `Makefile.in', but
14040    # some people rename them; so instead we look at the file content.
14041    # Grep'ing the first line is not enough: some people post-process
14042    # each Makefile.in and add a new line on top of each file to say so.
14043    # Grep'ing the whole file is not good either: AIX grep has a line
14044    # limit of 2048, but all sed's we know have understand at least 4000.
14045    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14046      dirpart=`$as_dirname -- "$mf" ||
14047$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14048	 X"$mf" : 'X\(//\)[^/]' \| \
14049	 X"$mf" : 'X\(//\)$' \| \
14050	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14051$as_echo X"$mf" |
14052    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14053	    s//\1/
14054	    q
14055	  }
14056	  /^X\(\/\/\)[^/].*/{
14057	    s//\1/
14058	    q
14059	  }
14060	  /^X\(\/\/\)$/{
14061	    s//\1/
14062	    q
14063	  }
14064	  /^X\(\/\).*/{
14065	    s//\1/
14066	    q
14067	  }
14068	  s/.*/./; q'`
14069    else
14070      continue
14071    fi
14072    # Extract the definition of DEPDIR, am__include, and am__quote
14073    # from the Makefile without running `make'.
14074    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14075    test -z "$DEPDIR" && continue
14076    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14077    test -z "am__include" && continue
14078    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14079    # When using ansi2knr, U may be empty or an underscore; expand it
14080    U=`sed -n 's/^U = //p' < "$mf"`
14081    # Find all dependency output files, they are included files with
14082    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14083    # simplest approach to changing $(DEPDIR) to its actual value in the
14084    # expansion.
14085    for file in `sed -n "
14086      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14087	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14088      # Make sure the directory exists.
14089      test -f "$dirpart/$file" && continue
14090      fdir=`$as_dirname -- "$file" ||
14091$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14092	 X"$file" : 'X\(//\)[^/]' \| \
14093	 X"$file" : 'X\(//\)$' \| \
14094	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14095$as_echo X"$file" |
14096    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14097	    s//\1/
14098	    q
14099	  }
14100	  /^X\(\/\/\)[^/].*/{
14101	    s//\1/
14102	    q
14103	  }
14104	  /^X\(\/\/\)$/{
14105	    s//\1/
14106	    q
14107	  }
14108	  /^X\(\/\).*/{
14109	    s//\1/
14110	    q
14111	  }
14112	  s/.*/./; q'`
14113      { as_dir=$dirpart/$fdir
14114  case $as_dir in #(
14115  -*) as_dir=./$as_dir;;
14116  esac
14117  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14118    as_dirs=
14119    while :; do
14120      case $as_dir in #(
14121      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14122      *) as_qdir=$as_dir;;
14123      esac
14124      as_dirs="'$as_qdir' $as_dirs"
14125      as_dir=`$as_dirname -- "$as_dir" ||
14126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14127	 X"$as_dir" : 'X\(//\)[^/]' \| \
14128	 X"$as_dir" : 'X\(//\)$' \| \
14129	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14130$as_echo X"$as_dir" |
14131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14132	    s//\1/
14133	    q
14134	  }
14135	  /^X\(\/\/\)[^/].*/{
14136	    s//\1/
14137	    q
14138	  }
14139	  /^X\(\/\/\)$/{
14140	    s//\1/
14141	    q
14142	  }
14143	  /^X\(\/\).*/{
14144	    s//\1/
14145	    q
14146	  }
14147	  s/.*/./; q'`
14148      test -d "$as_dir" && break
14149    done
14150    test -z "$as_dirs" || eval "mkdir $as_dirs"
14151  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14152$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14153   { (exit 1); exit 1; }; }; }
14154      # echo "creating $dirpart/$file"
14155      echo '# dummy' > "$dirpart/$file"
14156    done
14157  done
14158}
14159 ;;
14160    "libtool":C)
14161
14162    # See if we are running on zsh, and set the options which allow our
14163    # commands through without removal of \ escapes.
14164    if test -n "${ZSH_VERSION+set}" ; then
14165      setopt NO_GLOB_SUBST
14166    fi
14167
14168    cfgfile="${ofile}T"
14169    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14170    $RM "$cfgfile"
14171
14172    cat <<_LT_EOF >> "$cfgfile"
14173#! $SHELL
14174
14175# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14176# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14177# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14178# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14179#
14180#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14181#                 2006, 2007, 2008 Free Software Foundation, Inc.
14182#   Written by Gordon Matzigkeit, 1996
14183#
14184#   This file is part of GNU Libtool.
14185#
14186# GNU Libtool is free software; you can redistribute it and/or
14187# modify it under the terms of the GNU General Public License as
14188# published by the Free Software Foundation; either version 2 of
14189# the License, or (at your option) any later version.
14190#
14191# As a special exception to the GNU General Public License,
14192# if you distribute this file as part of a program or library that
14193# is built using GNU Libtool, you may include this file under the
14194# same distribution terms that you use for the rest of that program.
14195#
14196# GNU Libtool is distributed in the hope that it will be useful,
14197# but WITHOUT ANY WARRANTY; without even the implied warranty of
14198# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14199# GNU General Public License for more details.
14200#
14201# You should have received a copy of the GNU General Public License
14202# along with GNU Libtool; see the file COPYING.  If not, a copy
14203# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14204# obtained by writing to the Free Software Foundation, Inc.,
14205# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14206
14207
14208# The names of the tagged configurations supported by this script.
14209available_tags=""
14210
14211# ### BEGIN LIBTOOL CONFIG
14212
14213# Whether or not to build static libraries.
14214build_old_libs=$enable_static
14215
14216# Which release of libtool.m4 was used?
14217macro_version=$macro_version
14218macro_revision=$macro_revision
14219
14220# Whether or not to build shared libraries.
14221build_libtool_libs=$enable_shared
14222
14223# What type of objects to build.
14224pic_mode=$pic_mode
14225
14226# Whether or not to optimize for fast installation.
14227fast_install=$enable_fast_install
14228
14229# The host system.
14230host_alias=$host_alias
14231host=$host
14232host_os=$host_os
14233
14234# The build system.
14235build_alias=$build_alias
14236build=$build
14237build_os=$build_os
14238
14239# A sed program that does not truncate output.
14240SED=$lt_SED
14241
14242# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14243Xsed="\$SED -e 1s/^X//"
14244
14245# A grep program that handles long lines.
14246GREP=$lt_GREP
14247
14248# An ERE matcher.
14249EGREP=$lt_EGREP
14250
14251# A literal string matcher.
14252FGREP=$lt_FGREP
14253
14254# A BSD- or MS-compatible name lister.
14255NM=$lt_NM
14256
14257# Whether we need soft or hard links.
14258LN_S=$lt_LN_S
14259
14260# What is the maximum length of a command?
14261max_cmd_len=$max_cmd_len
14262
14263# Object file suffix (normally "o").
14264objext=$ac_objext
14265
14266# Executable file suffix (normally "").
14267exeext=$exeext
14268
14269# whether the shell understands "unset".
14270lt_unset=$lt_unset
14271
14272# turn spaces into newlines.
14273SP2NL=$lt_lt_SP2NL
14274
14275# turn newlines into spaces.
14276NL2SP=$lt_lt_NL2SP
14277
14278# How to create reloadable object files.
14279reload_flag=$lt_reload_flag
14280reload_cmds=$lt_reload_cmds
14281
14282# An object symbol dumper.
14283OBJDUMP=$lt_OBJDUMP
14284
14285# Method to check whether dependent libraries are shared objects.
14286deplibs_check_method=$lt_deplibs_check_method
14287
14288# Command to use when deplibs_check_method == "file_magic".
14289file_magic_cmd=$lt_file_magic_cmd
14290
14291# The archiver.
14292AR=$lt_AR
14293AR_FLAGS=$lt_AR_FLAGS
14294
14295# A symbol stripping program.
14296STRIP=$lt_STRIP
14297
14298# Commands used to install an old-style archive.
14299RANLIB=$lt_RANLIB
14300old_postinstall_cmds=$lt_old_postinstall_cmds
14301old_postuninstall_cmds=$lt_old_postuninstall_cmds
14302
14303# A C compiler.
14304LTCC=$lt_CC
14305
14306# LTCC compiler flags.
14307LTCFLAGS=$lt_CFLAGS
14308
14309# Take the output of nm and produce a listing of raw symbols and C names.
14310global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14311
14312# Transform the output of nm in a proper C declaration.
14313global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14314
14315# Transform the output of nm in a C name address pair.
14316global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14317
14318# Transform the output of nm in a C name address pair when lib prefix is needed.
14319global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14320
14321# The name of the directory that contains temporary libtool files.
14322objdir=$objdir
14323
14324# Shell to use when invoking shell scripts.
14325SHELL=$lt_SHELL
14326
14327# An echo program that does not interpret backslashes.
14328ECHO=$lt_ECHO
14329
14330# Used to examine libraries when file_magic_cmd begins with "file".
14331MAGIC_CMD=$MAGIC_CMD
14332
14333# Must we lock files when doing compilation?
14334need_locks=$lt_need_locks
14335
14336# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14337DSYMUTIL=$lt_DSYMUTIL
14338
14339# Tool to change global to local symbols on Mac OS X.
14340NMEDIT=$lt_NMEDIT
14341
14342# Tool to manipulate fat objects and archives on Mac OS X.
14343LIPO=$lt_LIPO
14344
14345# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14346OTOOL=$lt_OTOOL
14347
14348# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14349OTOOL64=$lt_OTOOL64
14350
14351# Old archive suffix (normally "a").
14352libext=$libext
14353
14354# Shared library suffix (normally ".so").
14355shrext_cmds=$lt_shrext_cmds
14356
14357# The commands to extract the exported symbol list from a shared archive.
14358extract_expsyms_cmds=$lt_extract_expsyms_cmds
14359
14360# Variables whose values should be saved in libtool wrapper scripts and
14361# restored at link time.
14362variables_saved_for_relink=$lt_variables_saved_for_relink
14363
14364# Do we need the "lib" prefix for modules?
14365need_lib_prefix=$need_lib_prefix
14366
14367# Do we need a version for libraries?
14368need_version=$need_version
14369
14370# Library versioning type.
14371version_type=$version_type
14372
14373# Shared library runtime path variable.
14374runpath_var=$runpath_var
14375
14376# Shared library path variable.
14377shlibpath_var=$shlibpath_var
14378
14379# Is shlibpath searched before the hard-coded library search path?
14380shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14381
14382# Format of library name prefix.
14383libname_spec=$lt_libname_spec
14384
14385# List of archive names.  First name is the real one, the rest are links.
14386# The last name is the one that the linker finds with -lNAME
14387library_names_spec=$lt_library_names_spec
14388
14389# The coded name of the library, if different from the real name.
14390soname_spec=$lt_soname_spec
14391
14392# Command to use after installation of a shared archive.
14393postinstall_cmds=$lt_postinstall_cmds
14394
14395# Command to use after uninstallation of a shared archive.
14396postuninstall_cmds=$lt_postuninstall_cmds
14397
14398# Commands used to finish a libtool library installation in a directory.
14399finish_cmds=$lt_finish_cmds
14400
14401# As "finish_cmds", except a single script fragment to be evaled but
14402# not shown.
14403finish_eval=$lt_finish_eval
14404
14405# Whether we should hardcode library paths into libraries.
14406hardcode_into_libs=$hardcode_into_libs
14407
14408# Compile-time system search path for libraries.
14409sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14410
14411# Run-time system search path for libraries.
14412sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14413
14414# Whether dlopen is supported.
14415dlopen_support=$enable_dlopen
14416
14417# Whether dlopen of programs is supported.
14418dlopen_self=$enable_dlopen_self
14419
14420# Whether dlopen of statically linked programs is supported.
14421dlopen_self_static=$enable_dlopen_self_static
14422
14423# Commands to strip libraries.
14424old_striplib=$lt_old_striplib
14425striplib=$lt_striplib
14426
14427
14428# The linker used to build libraries.
14429LD=$lt_LD
14430
14431# Commands used to build an old-style archive.
14432old_archive_cmds=$lt_old_archive_cmds
14433
14434# A language specific compiler.
14435CC=$lt_compiler
14436
14437# Is the compiler the GNU compiler?
14438with_gcc=$GCC
14439
14440# Compiler flag to turn off builtin functions.
14441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14442
14443# How to pass a linker flag through the compiler.
14444wl=$lt_lt_prog_compiler_wl
14445
14446# Additional compiler flags for building library objects.
14447pic_flag=$lt_lt_prog_compiler_pic
14448
14449# Compiler flag to prevent dynamic linking.
14450link_static_flag=$lt_lt_prog_compiler_static
14451
14452# Does compiler simultaneously support -c and -o options?
14453compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14454
14455# Whether or not to add -lc for building shared libraries.
14456build_libtool_need_lc=$archive_cmds_need_lc
14457
14458# Whether or not to disallow shared libs when runtime libs are static.
14459allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14460
14461# Compiler flag to allow reflexive dlopens.
14462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14463
14464# Compiler flag to generate shared objects directly from archives.
14465whole_archive_flag_spec=$lt_whole_archive_flag_spec
14466
14467# Whether the compiler copes with passing no objects directly.
14468compiler_needs_object=$lt_compiler_needs_object
14469
14470# Create an old-style archive from a shared archive.
14471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14472
14473# Create a temporary old-style archive to link instead of a shared archive.
14474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14475
14476# Commands used to build a shared archive.
14477archive_cmds=$lt_archive_cmds
14478archive_expsym_cmds=$lt_archive_expsym_cmds
14479
14480# Commands used to build a loadable module if different from building
14481# a shared archive.
14482module_cmds=$lt_module_cmds
14483module_expsym_cmds=$lt_module_expsym_cmds
14484
14485# Whether we are building with GNU ld or not.
14486with_gnu_ld=$lt_with_gnu_ld
14487
14488# Flag that allows shared libraries with undefined symbols to be built.
14489allow_undefined_flag=$lt_allow_undefined_flag
14490
14491# Flag that enforces no undefined symbols.
14492no_undefined_flag=$lt_no_undefined_flag
14493
14494# Flag to hardcode \$libdir into a binary during linking.
14495# This must work even if \$libdir does not exist
14496hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14497
14498# If ld is used when linking, flag to hardcode \$libdir into a binary
14499# during linking.  This must work even if \$libdir does not exist.
14500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14501
14502# Whether we need a single "-rpath" flag with a separated argument.
14503hardcode_libdir_separator=$lt_hardcode_libdir_separator
14504
14505# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14506# DIR into the resulting binary.
14507hardcode_direct=$hardcode_direct
14508
14509# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14510# DIR into the resulting binary and the resulting library dependency is
14511# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14512# library is relocated.
14513hardcode_direct_absolute=$hardcode_direct_absolute
14514
14515# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14516# into the resulting binary.
14517hardcode_minus_L=$hardcode_minus_L
14518
14519# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14520# into the resulting binary.
14521hardcode_shlibpath_var=$hardcode_shlibpath_var
14522
14523# Set to "yes" if building a shared library automatically hardcodes DIR
14524# into the library and all subsequent libraries and executables linked
14525# against it.
14526hardcode_automatic=$hardcode_automatic
14527
14528# Set to yes if linker adds runtime paths of dependent libraries
14529# to runtime path list.
14530inherit_rpath=$inherit_rpath
14531
14532# Whether libtool must link a program against all its dependency libraries.
14533link_all_deplibs=$link_all_deplibs
14534
14535# Fix the shell variable \$srcfile for the compiler.
14536fix_srcfile_path=$lt_fix_srcfile_path
14537
14538# Set to "yes" if exported symbols are required.
14539always_export_symbols=$always_export_symbols
14540
14541# The commands to list exported symbols.
14542export_symbols_cmds=$lt_export_symbols_cmds
14543
14544# Symbols that should not be listed in the preloaded symbols.
14545exclude_expsyms=$lt_exclude_expsyms
14546
14547# Symbols that must always be exported.
14548include_expsyms=$lt_include_expsyms
14549
14550# Commands necessary for linking programs (against libraries) with templates.
14551prelink_cmds=$lt_prelink_cmds
14552
14553# Specify filename containing input files.
14554file_list_spec=$lt_file_list_spec
14555
14556# How to hardcode a shared library path into an executable.
14557hardcode_action=$hardcode_action
14558
14559# ### END LIBTOOL CONFIG
14560
14561_LT_EOF
14562
14563  case $host_os in
14564  aix3*)
14565    cat <<\_LT_EOF >> "$cfgfile"
14566# AIX sometimes has problems with the GCC collect2 program.  For some
14567# reason, if we set the COLLECT_NAMES environment variable, the problems
14568# vanish in a puff of smoke.
14569if test "X${COLLECT_NAMES+set}" != Xset; then
14570  COLLECT_NAMES=
14571  export COLLECT_NAMES
14572fi
14573_LT_EOF
14574    ;;
14575  esac
14576
14577
14578ltmain="$ac_aux_dir/ltmain.sh"
14579
14580
14581  # We use sed instead of cat because bash on DJGPP gets confused if
14582  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14583  # text mode, it properly converts lines to CR/LF.  This bash problem
14584  # is reportedly fixed, but why not run on old versions too?
14585  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14586    || (rm -f "$cfgfile"; exit 1)
14587
14588  case $xsi_shell in
14589  yes)
14590    cat << \_LT_EOF >> "$cfgfile"
14591
14592# func_dirname file append nondir_replacement
14593# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14594# otherwise set result to NONDIR_REPLACEMENT.
14595func_dirname ()
14596{
14597  case ${1} in
14598    */*) func_dirname_result="${1%/*}${2}" ;;
14599    *  ) func_dirname_result="${3}" ;;
14600  esac
14601}
14602
14603# func_basename file
14604func_basename ()
14605{
14606  func_basename_result="${1##*/}"
14607}
14608
14609# func_dirname_and_basename file append nondir_replacement
14610# perform func_basename and func_dirname in a single function
14611# call:
14612#   dirname:  Compute the dirname of FILE.  If nonempty,
14613#             add APPEND to the result, otherwise set result
14614#             to NONDIR_REPLACEMENT.
14615#             value returned in "$func_dirname_result"
14616#   basename: Compute filename of FILE.
14617#             value retuned in "$func_basename_result"
14618# Implementation must be kept synchronized with func_dirname
14619# and func_basename. For efficiency, we do not delegate to
14620# those functions but instead duplicate the functionality here.
14621func_dirname_and_basename ()
14622{
14623  case ${1} in
14624    */*) func_dirname_result="${1%/*}${2}" ;;
14625    *  ) func_dirname_result="${3}" ;;
14626  esac
14627  func_basename_result="${1##*/}"
14628}
14629
14630# func_stripname prefix suffix name
14631# strip PREFIX and SUFFIX off of NAME.
14632# PREFIX and SUFFIX must not contain globbing or regex special
14633# characters, hashes, percent signs, but SUFFIX may contain a leading
14634# dot (in which case that matches only a dot).
14635func_stripname ()
14636{
14637  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14638  # positional parameters, so assign one to ordinary parameter first.
14639  func_stripname_result=${3}
14640  func_stripname_result=${func_stripname_result#"${1}"}
14641  func_stripname_result=${func_stripname_result%"${2}"}
14642}
14643
14644# func_opt_split
14645func_opt_split ()
14646{
14647  func_opt_split_opt=${1%%=*}
14648  func_opt_split_arg=${1#*=}
14649}
14650
14651# func_lo2o object
14652func_lo2o ()
14653{
14654  case ${1} in
14655    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14656    *)    func_lo2o_result=${1} ;;
14657  esac
14658}
14659
14660# func_xform libobj-or-source
14661func_xform ()
14662{
14663  func_xform_result=${1%.*}.lo
14664}
14665
14666# func_arith arithmetic-term...
14667func_arith ()
14668{
14669  func_arith_result=$(( $* ))
14670}
14671
14672# func_len string
14673# STRING may not start with a hyphen.
14674func_len ()
14675{
14676  func_len_result=${#1}
14677}
14678
14679_LT_EOF
14680    ;;
14681  *) # Bourne compatible functions.
14682    cat << \_LT_EOF >> "$cfgfile"
14683
14684# func_dirname file append nondir_replacement
14685# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14686# otherwise set result to NONDIR_REPLACEMENT.
14687func_dirname ()
14688{
14689  # Extract subdirectory from the argument.
14690  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14691  if test "X$func_dirname_result" = "X${1}"; then
14692    func_dirname_result="${3}"
14693  else
14694    func_dirname_result="$func_dirname_result${2}"
14695  fi
14696}
14697
14698# func_basename file
14699func_basename ()
14700{
14701  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14702}
14703
14704
14705# func_stripname prefix suffix name
14706# strip PREFIX and SUFFIX off of NAME.
14707# PREFIX and SUFFIX must not contain globbing or regex special
14708# characters, hashes, percent signs, but SUFFIX may contain a leading
14709# dot (in which case that matches only a dot).
14710# func_strip_suffix prefix name
14711func_stripname ()
14712{
14713  case ${2} in
14714    .*) func_stripname_result=`$ECHO "X${3}" \
14715           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14716    *)  func_stripname_result=`$ECHO "X${3}" \
14717           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14718  esac
14719}
14720
14721# sed scripts:
14722my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14723my_sed_long_arg='1s/^-[^=]*=//'
14724
14725# func_opt_split
14726func_opt_split ()
14727{
14728  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14729  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14730}
14731
14732# func_lo2o object
14733func_lo2o ()
14734{
14735  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14736}
14737
14738# func_xform libobj-or-source
14739func_xform ()
14740{
14741  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14742}
14743
14744# func_arith arithmetic-term...
14745func_arith ()
14746{
14747  func_arith_result=`expr "$@"`
14748}
14749
14750# func_len string
14751# STRING may not start with a hyphen.
14752func_len ()
14753{
14754  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14755}
14756
14757_LT_EOF
14758esac
14759
14760case $lt_shell_append in
14761  yes)
14762    cat << \_LT_EOF >> "$cfgfile"
14763
14764# func_append var value
14765# Append VALUE to the end of shell variable VAR.
14766func_append ()
14767{
14768  eval "$1+=\$2"
14769}
14770_LT_EOF
14771    ;;
14772  *)
14773    cat << \_LT_EOF >> "$cfgfile"
14774
14775# func_append var value
14776# Append VALUE to the end of shell variable VAR.
14777func_append ()
14778{
14779  eval "$1=\$$1\$2"
14780}
14781
14782_LT_EOF
14783    ;;
14784  esac
14785
14786
14787  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14788    || (rm -f "$cfgfile"; exit 1)
14789
14790  mv -f "$cfgfile" "$ofile" ||
14791    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14792  chmod +x "$ofile"
14793
14794 ;;
14795
14796  esac
14797done # for ac_tag
14798
14799
14800{ (exit 0); exit 0; }
14801_ACEOF
14802chmod +x $CONFIG_STATUS
14803ac_clean_files=$ac_clean_files_save
14804
14805test $ac_write_fail = 0 ||
14806  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14807$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14808   { (exit 1); exit 1; }; }
14809
14810
14811# configure is writing to config.log, and then calls config.status.
14812# config.status does its own redirection, appending to config.log.
14813# Unfortunately, on DOS this fails, as config.log is still kept open
14814# by configure, so config.status won't be able to write to it; its
14815# output is simply discarded.  So we exec the FD to /dev/null,
14816# effectively closing config.log, so it can be properly (re)opened and
14817# appended to by config.status.  When coming back to configure, we
14818# need to make the FD available again.
14819if test "$no_create" != yes; then
14820  ac_cs_success=:
14821  ac_config_status_args=
14822  test "$silent" = yes &&
14823    ac_config_status_args="$ac_config_status_args --quiet"
14824  exec 5>/dev/null
14825  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14826  exec 5>>config.log
14827  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14828  # would make configure fail if this is the last instruction.
14829  $ac_cs_success || { (exit 1); exit 1; }
14830fi
14831if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14832  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14833$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14834fi
14835
14836