configure revision 5592a31f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-vesa 2.3.0.
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-vesa'
747PACKAGE_TARNAME='xf86-video-vesa'
748PACKAGE_VERSION='2.3.0'
749PACKAGE_STRING='xf86-video-vesa 2.3.0'
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
794INCLUDES
795XSERVER_LIBPCIACCESS_FALSE
796XSERVER_LIBPCIACCESS_TRUE
797PCIACCESS_LIBS
798PCIACCESS_CFLAGS
799HAVE_XEXTPROTO_71_FALSE
800HAVE_XEXTPROTO_71_TRUE
801XEXT_LIBS
802XEXT_CFLAGS
803XORG_LIBS
804XORG_CFLAGS
805moduledir
806OTOOL64
807OTOOL
808LIPO
809NMEDIT
810DSYMUTIL
811lt_ECHO
812RANLIB
813AR
814OBJDUMP
815LN_S
816NM
817ac_ct_DUMPBIN
818DUMPBIN
819LD
820FGREP
821SED
822LIBTOOL
823ADMIN_MAN_DIR
824DRIVER_MAN_DIR
825MISC_MAN_DIR
826FILE_MAN_DIR
827LIB_MAN_DIR
828APP_MAN_DIR
829ADMIN_MAN_SUFFIX
830DRIVER_MAN_SUFFIX
831MISC_MAN_SUFFIX
832FILE_MAN_SUFFIX
833LIB_MAN_SUFFIX
834APP_MAN_SUFFIX
835host_os
836host_vendor
837host_cpu
838host
839build_os
840build_vendor
841build_cpu
842build
843INSTALL_CMD
844PKG_CONFIG
845CHANGELOG_CMD
846AM_BACKSLASH
847AM_DEFAULT_VERBOSITY
848CWARNFLAGS
849EGREP
850GREP
851CPP
852am__fastdepCC_FALSE
853am__fastdepCC_TRUE
854CCDEPMODE
855AMDEPBACKSLASH
856AMDEP_FALSE
857AMDEP_TRUE
858am__quote
859am__include
860DEPDIR
861OBJEXT
862EXEEXT
863ac_ct_CC
864CPPFLAGS
865LDFLAGS
866CFLAGS
867CC
868MAINT
869MAINTAINER_MODE_FALSE
870MAINTAINER_MODE_TRUE
871am__untar
872am__tar
873AMTAR
874am__leading_dot
875SET_MAKE
876AWK
877mkdir_p
878MKDIR_P
879INSTALL_STRIP_PROGRAM
880STRIP
881install_sh
882MAKEINFO
883AUTOHEADER
884AUTOMAKE
885AUTOCONF
886ACLOCAL
887VERSION
888PACKAGE
889CYGPATH_W
890am__isrc
891INSTALL_DATA
892INSTALL_SCRIPT
893INSTALL_PROGRAM
894target_alias
895host_alias
896build_alias
897LIBS
898ECHO_T
899ECHO_N
900ECHO_C
901DEFS
902mandir
903localedir
904libdir
905psdir
906pdfdir
907dvidir
908htmldir
909infodir
910docdir
911oldincludedir
912includedir
913localstatedir
914sharedstatedir
915sysconfdir
916datadir
917datarootdir
918libexecdir
919sbindir
920bindir
921program_transform_name
922prefix
923exec_prefix
924PACKAGE_BUGREPORT
925PACKAGE_STRING
926PACKAGE_VERSION
927PACKAGE_TARNAME
928PACKAGE_NAME
929PATH_SEPARATOR
930SHELL'
931ac_subst_files=''
932ac_user_opts='
933enable_option_checking
934enable_maintainer_mode
935enable_dependency_tracking
936enable_silent_rules
937enable_strict_compilation
938with_release_version
939enable_static
940enable_shared
941with_pic
942enable_fast_install
943with_gnu_ld
944enable_libtool_lock
945with_xorg_module_dir
946'
947      ac_precious_vars='build_alias
948host_alias
949target_alias
950CC
951CFLAGS
952LDFLAGS
953LIBS
954CPPFLAGS
955CPP
956PKG_CONFIG
957XORG_CFLAGS
958XORG_LIBS
959XEXT_CFLAGS
960XEXT_LIBS
961PCIACCESS_CFLAGS
962PCIACCESS_LIBS'
963
964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968ac_unrecognized_opts=
969ac_unrecognized_sep=
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
992# (The list follows the same order as the GNU Coding Standards.)
993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
1001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
1003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
1012
1013ac_prev=
1014ac_dashdash=
1015for ac_option
1016do
1017  # If the previous option needs an argument, assign it.
1018  if test -n "$ac_prev"; then
1019    eval $ac_prev=\$ac_option
1020    ac_prev=
1021    continue
1022  fi
1023
1024  case $ac_option in
1025  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026  *)	ac_optarg=yes ;;
1027  esac
1028
1029  # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031  case $ac_dashdash$ac_option in
1032  --)
1033    ac_dashdash=yes ;;
1034
1035  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036    ac_prev=bindir ;;
1037  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038    bindir=$ac_optarg ;;
1039
1040  -build | --build | --buil | --bui | --bu)
1041    ac_prev=build_alias ;;
1042  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043    build_alias=$ac_optarg ;;
1044
1045  -cache-file | --cache-file | --cache-fil | --cache-fi \
1046  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047    ac_prev=cache_file ;;
1048  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050    cache_file=$ac_optarg ;;
1051
1052  --config-cache | -C)
1053    cache_file=config.cache ;;
1054
1055  -datadir | --datadir | --datadi | --datad)
1056    ac_prev=datadir ;;
1057  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058    datadir=$ac_optarg ;;
1059
1060  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061  | --dataroo | --dataro | --datar)
1062    ac_prev=datarootdir ;;
1063  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065    datarootdir=$ac_optarg ;;
1066
1067  -disable-* | --disable-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072   { (exit 1); exit 1; }; }
1073    ac_useropt_orig=$ac_useropt
1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075    case $ac_user_opts in
1076      *"
1077"enable_$ac_useropt"
1078"*) ;;
1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080	 ac_unrecognized_sep=', ';;
1081    esac
1082    eval enable_$ac_useropt=no ;;
1083
1084  -docdir | --docdir | --docdi | --doc | --do)
1085    ac_prev=docdir ;;
1086  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087    docdir=$ac_optarg ;;
1088
1089  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090    ac_prev=dvidir ;;
1091  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092    dvidir=$ac_optarg ;;
1093
1094  -enable-* | --enable-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099   { (exit 1); exit 1; }; }
1100    ac_useropt_orig=$ac_useropt
1101    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102    case $ac_user_opts in
1103      *"
1104"enable_$ac_useropt"
1105"*) ;;
1106      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107	 ac_unrecognized_sep=', ';;
1108    esac
1109    eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113  | --exec | --exe | --ex)
1114    ac_prev=exec_prefix ;;
1115  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117  | --exec=* | --exe=* | --ex=*)
1118    exec_prefix=$ac_optarg ;;
1119
1120  -gas | --gas | --ga | --g)
1121    # Obsolete; use --with-gas.
1122    with_gas=yes ;;
1123
1124  -help | --help | --hel | --he | -h)
1125    ac_init_help=long ;;
1126  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127    ac_init_help=recursive ;;
1128  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129    ac_init_help=short ;;
1130
1131  -host | --host | --hos | --ho)
1132    ac_prev=host_alias ;;
1133  -host=* | --host=* | --hos=* | --ho=*)
1134    host_alias=$ac_optarg ;;
1135
1136  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137    ac_prev=htmldir ;;
1138  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139  | --ht=*)
1140    htmldir=$ac_optarg ;;
1141
1142  -includedir | --includedir | --includedi | --included | --include \
1143  | --includ | --inclu | --incl | --inc)
1144    ac_prev=includedir ;;
1145  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146  | --includ=* | --inclu=* | --incl=* | --inc=*)
1147    includedir=$ac_optarg ;;
1148
1149  -infodir | --infodir | --infodi | --infod | --info | --inf)
1150    ac_prev=infodir ;;
1151  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152    infodir=$ac_optarg ;;
1153
1154  -libdir | --libdir | --libdi | --libd)
1155    ac_prev=libdir ;;
1156  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157    libdir=$ac_optarg ;;
1158
1159  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160  | --libexe | --libex | --libe)
1161    ac_prev=libexecdir ;;
1162  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163  | --libexe=* | --libex=* | --libe=*)
1164    libexecdir=$ac_optarg ;;
1165
1166  -localedir | --localedir | --localedi | --localed | --locale)
1167    ac_prev=localedir ;;
1168  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169    localedir=$ac_optarg ;;
1170
1171  -localstatedir | --localstatedir | --localstatedi | --localstated \
1172  | --localstate | --localstat | --localsta | --localst | --locals)
1173    ac_prev=localstatedir ;;
1174  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176    localstatedir=$ac_optarg ;;
1177
1178  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179    ac_prev=mandir ;;
1180  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181    mandir=$ac_optarg ;;
1182
1183  -nfp | --nfp | --nf)
1184    # Obsolete; use --without-fp.
1185    with_fp=no ;;
1186
1187  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188  | --no-cr | --no-c | -n)
1189    no_create=yes ;;
1190
1191  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193    no_recursion=yes ;;
1194
1195  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197  | --oldin | --oldi | --old | --ol | --o)
1198    ac_prev=oldincludedir ;;
1199  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202    oldincludedir=$ac_optarg ;;
1203
1204  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205    ac_prev=prefix ;;
1206  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207    prefix=$ac_optarg ;;
1208
1209  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210  | --program-pre | --program-pr | --program-p)
1211    ac_prev=program_prefix ;;
1212  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214    program_prefix=$ac_optarg ;;
1215
1216  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217  | --program-suf | --program-su | --program-s)
1218    ac_prev=program_suffix ;;
1219  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221    program_suffix=$ac_optarg ;;
1222
1223  -program-transform-name | --program-transform-name \
1224  | --program-transform-nam | --program-transform-na \
1225  | --program-transform-n | --program-transform- \
1226  | --program-transform | --program-transfor \
1227  | --program-transfo | --program-transf \
1228  | --program-trans | --program-tran \
1229  | --progr-tra | --program-tr | --program-t)
1230    ac_prev=program_transform_name ;;
1231  -program-transform-name=* | --program-transform-name=* \
1232  | --program-transform-nam=* | --program-transform-na=* \
1233  | --program-transform-n=* | --program-transform-=* \
1234  | --program-transform=* | --program-transfor=* \
1235  | --program-transfo=* | --program-transf=* \
1236  | --program-trans=* | --program-tran=* \
1237  | --progr-tra=* | --program-tr=* | --program-t=*)
1238    program_transform_name=$ac_optarg ;;
1239
1240  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241    ac_prev=pdfdir ;;
1242  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243    pdfdir=$ac_optarg ;;
1244
1245  -psdir | --psdir | --psdi | --psd | --ps)
1246    ac_prev=psdir ;;
1247  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248    psdir=$ac_optarg ;;
1249
1250  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251  | -silent | --silent | --silen | --sile | --sil)
1252    silent=yes ;;
1253
1254  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255    ac_prev=sbindir ;;
1256  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257  | --sbi=* | --sb=*)
1258    sbindir=$ac_optarg ;;
1259
1260  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262  | --sharedst | --shareds | --shared | --share | --shar \
1263  | --sha | --sh)
1264    ac_prev=sharedstatedir ;;
1265  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268  | --sha=* | --sh=*)
1269    sharedstatedir=$ac_optarg ;;
1270
1271  -site | --site | --sit)
1272    ac_prev=site ;;
1273  -site=* | --site=* | --sit=*)
1274    site=$ac_optarg ;;
1275
1276  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277    ac_prev=srcdir ;;
1278  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279    srcdir=$ac_optarg ;;
1280
1281  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282  | --syscon | --sysco | --sysc | --sys | --sy)
1283    ac_prev=sysconfdir ;;
1284  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286    sysconfdir=$ac_optarg ;;
1287
1288  -target | --target | --targe | --targ | --tar | --ta | --t)
1289    ac_prev=target_alias ;;
1290  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291    target_alias=$ac_optarg ;;
1292
1293  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294    verbose=yes ;;
1295
1296  -version | --version | --versio | --versi | --vers | -V)
1297    ac_init_version=: ;;
1298
1299  -with-* | --with-*)
1300    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301    # Reject names that are not valid shell variable names.
1302    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304   { (exit 1); exit 1; }; }
1305    ac_useropt_orig=$ac_useropt
1306    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307    case $ac_user_opts in
1308      *"
1309"with_$ac_useropt"
1310"*) ;;
1311      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312	 ac_unrecognized_sep=', ';;
1313    esac
1314    eval with_$ac_useropt=\$ac_optarg ;;
1315
1316  -without-* | --without-*)
1317    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318    # Reject names that are not valid shell variable names.
1319    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321   { (exit 1); exit 1; }; }
1322    ac_useropt_orig=$ac_useropt
1323    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324    case $ac_user_opts in
1325      *"
1326"with_$ac_useropt"
1327"*) ;;
1328      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329	 ac_unrecognized_sep=', ';;
1330    esac
1331    eval with_$ac_useropt=no ;;
1332
1333  --x)
1334    # Obsolete; use --with-x.
1335    with_x=yes ;;
1336
1337  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338  | --x-incl | --x-inc | --x-in | --x-i)
1339    ac_prev=x_includes ;;
1340  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342    x_includes=$ac_optarg ;;
1343
1344  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346    ac_prev=x_libraries ;;
1347  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349    x_libraries=$ac_optarg ;;
1350
1351  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352Try \`$0 --help' for more information." >&2
1353   { (exit 1); exit 1; }; }
1354    ;;
1355
1356  *=*)
1357    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358    # Reject names that are not valid shell variable names.
1359    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361   { (exit 1); exit 1; }; }
1362    eval $ac_envvar=\$ac_optarg
1363    export $ac_envvar ;;
1364
1365  *)
1366    # FIXME: should be removed in autoconf 3.0.
1367    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371    ;;
1372
1373  esac
1374done
1375
1376if test -n "$ac_prev"; then
1377  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379   { (exit 1); exit 1; }; }
1380fi
1381
1382if test -n "$ac_unrecognized_opts"; then
1383  case $enable_option_checking in
1384    no) ;;
1385    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386   { (exit 1); exit 1; }; } ;;
1387    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388  esac
1389fi
1390
1391# Check all directory arguments for consistency.
1392for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393		datadir sysconfdir sharedstatedir localstatedir includedir \
1394		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395		libdir localedir mandir
1396do
1397  eval ac_val=\$$ac_var
1398  # Remove trailing slashes.
1399  case $ac_val in
1400    */ )
1401      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402      eval $ac_var=\$ac_val;;
1403  esac
1404  # Be sure to have absolute directory names.
1405  case $ac_val in
1406    [\\/$]* | ?:[\\/]* )  continue;;
1407    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408  esac
1409  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410   { (exit 1); exit 1; }; }
1411done
1412
1413# There might be people who depend on the old broken behavior: `$host'
1414# used to hold the argument of --host etc.
1415# FIXME: To remove some day.
1416build=$build_alias
1417host=$host_alias
1418target=$target_alias
1419
1420# FIXME: To remove some day.
1421if test "x$host_alias" != x; then
1422  if test "x$build_alias" = x; then
1423    cross_compiling=maybe
1424    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425    If a cross compiler is detected then cross compile mode will be used." >&2
1426  elif test "x$build_alias" != "x$host_alias"; then
1427    cross_compiling=yes
1428  fi
1429fi
1430
1431ac_tool_prefix=
1432test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433
1434test "$silent" = yes && exec 6>/dev/null
1435
1436
1437ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438ac_ls_di=`ls -di .` &&
1439ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441   { (exit 1); exit 1; }; }
1442test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444   { (exit 1); exit 1; }; }
1445
1446
1447# Find the source files, if location was not specified.
1448if test -z "$srcdir"; then
1449  ac_srcdir_defaulted=yes
1450  # Try the directory containing this script, then the parent directory.
1451  ac_confdir=`$as_dirname -- "$as_myself" ||
1452$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453	 X"$as_myself" : 'X\(//\)[^/]' \| \
1454	 X"$as_myself" : 'X\(//\)$' \| \
1455	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456$as_echo X"$as_myself" |
1457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)[^/].*/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\/\)$/{
1466	    s//\1/
1467	    q
1468	  }
1469	  /^X\(\/\).*/{
1470	    s//\1/
1471	    q
1472	  }
1473	  s/.*/./; q'`
1474  srcdir=$ac_confdir
1475  if test ! -r "$srcdir/$ac_unique_file"; then
1476    srcdir=..
1477  fi
1478else
1479  ac_srcdir_defaulted=no
1480fi
1481if test ! -r "$srcdir/$ac_unique_file"; then
1482  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484   { (exit 1); exit 1; }; }
1485fi
1486ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487ac_abs_confdir=`(
1488	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489   { (exit 1); exit 1; }; }
1490	pwd)`
1491# When building in place, set srcdir=.
1492if test "$ac_abs_confdir" = "$ac_pwd"; then
1493  srcdir=.
1494fi
1495# Remove unnecessary trailing slashes from srcdir.
1496# Double slashes in file names in object file debugging info
1497# mess up M-x gdb in Emacs.
1498case $srcdir in
1499*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500esac
1501for ac_var in $ac_precious_vars; do
1502  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503  eval ac_env_${ac_var}_value=\$${ac_var}
1504  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506done
1507
1508#
1509# Report the --help message.
1510#
1511if test "$ac_init_help" = "long"; then
1512  # Omit some internal or obsolete options to make the list less imposing.
1513  # This message is too long to be a string in the A/UX 3.1 sh.
1514  cat <<_ACEOF
1515\`configure' configures xf86-video-vesa 2.3.0 to adapt to many kinds of systems.
1516
1517Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520VAR=VALUE.  See below for descriptions of some of the useful variables.
1521
1522Defaults for the options are specified in brackets.
1523
1524Configuration:
1525  -h, --help              display this help and exit
1526      --help=short        display options specific to this package
1527      --help=recursive    display the short help of all the included packages
1528  -V, --version           display version information and exit
1529  -q, --quiet, --silent   do not print \`checking...' messages
1530      --cache-file=FILE   cache test results in FILE [disabled]
1531  -C, --config-cache      alias for \`--cache-file=config.cache'
1532  -n, --no-create         do not create output files
1533      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1534
1535Installation directories:
1536  --prefix=PREFIX         install architecture-independent files in PREFIX
1537                          [$ac_default_prefix]
1538  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1539                          [PREFIX]
1540
1541By default, \`make install' will install all the files in
1542\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1543an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544for instance \`--prefix=\$HOME'.
1545
1546For better control, use the options below.
1547
1548Fine tuning of the installation directories:
1549  --bindir=DIR            user executables [EPREFIX/bin]
1550  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1551  --libexecdir=DIR        program executables [EPREFIX/libexec]
1552  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1553  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1554  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1555  --libdir=DIR            object code libraries [EPREFIX/lib]
1556  --includedir=DIR        C header files [PREFIX/include]
1557  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1558  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1559  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1560  --infodir=DIR           info documentation [DATAROOTDIR/info]
1561  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1562  --mandir=DIR            man documentation [DATAROOTDIR/man]
1563  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1564  --htmldir=DIR           html documentation [DOCDIR]
1565  --dvidir=DIR            dvi documentation [DOCDIR]
1566  --pdfdir=DIR            pdf documentation [DOCDIR]
1567  --psdir=DIR             ps documentation [DOCDIR]
1568_ACEOF
1569
1570  cat <<\_ACEOF
1571
1572Program names:
1573  --program-prefix=PREFIX            prepend PREFIX to installed program names
1574  --program-suffix=SUFFIX            append SUFFIX to installed program names
1575  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1576
1577System types:
1578  --build=BUILD     configure for building on BUILD [guessed]
1579  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1580_ACEOF
1581fi
1582
1583if test -n "$ac_init_help"; then
1584  case $ac_init_help in
1585     short | recursive ) echo "Configuration of xf86-video-vesa 2.3.0:";;
1586   esac
1587  cat <<\_ACEOF
1588
1589Optional Features:
1590  --disable-option-checking  ignore unrecognized --enable/--with options
1591  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1592  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1593  --enable-maintainer-mode  enable make rules and dependencies not useful
1594			  (and sometimes confusing) to the casual installer
1595  --disable-dependency-tracking  speeds up one-time build
1596  --enable-dependency-tracking   do not reject slow dependency extractors
1597  --enable-silent-rules          less verbose build output (undo: `make V=1')
1598  --disable-silent-rules         verbose build output (undo: `make V=0')
1599  --enable-strict-compilation
1600                          Enable all warnings from compiler and make them
1601                          errors (default: disabled)
1602  --enable-static[=PKGS]  build static libraries [default=no]
1603  --enable-shared[=PKGS]  build shared libraries [default=yes]
1604  --enable-fast-install[=PKGS]
1605                          optimize for fast installation [default=yes]
1606  --disable-libtool-lock  avoid locking (might break parallel builds)
1607
1608Optional Packages:
1609  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611  --with-release-version=STRING
1612                          Use release version string in package name
1613  --with-pic              try to use only PIC/non-PIC objects [default=use
1614                          both]
1615  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616  --with-xorg-module-dir=DIR
1617
1618Some influential environment variables:
1619  CC          C compiler command
1620  CFLAGS      C compiler flags
1621  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1622              nonstandard directory <lib dir>
1623  LIBS        libraries to pass to the linker, e.g. -l<library>
1624  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1625              you have headers in a nonstandard directory <include dir>
1626  CPP         C preprocessor
1627  PKG_CONFIG  path to pkg-config utility
1628  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1629  XORG_LIBS   linker flags for XORG, overriding pkg-config
1630  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1631  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1632  PCIACCESS_CFLAGS
1633              C compiler flags for PCIACCESS, overriding pkg-config
1634  PCIACCESS_LIBS
1635              linker flags for PCIACCESS, overriding pkg-config
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
1640Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1641_ACEOF
1642ac_status=$?
1643fi
1644
1645if test "$ac_init_help" = "recursive"; then
1646  # If there are subdirs, report their specific --help.
1647  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648    test -d "$ac_dir" ||
1649      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650      continue
1651    ac_builddir=.
1652
1653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
1656  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657  # A ".." for each directory in $ac_dir_suffix.
1658  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659  case $ac_top_builddir_sub in
1660  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662  esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
1668
1669case $srcdir in
1670  .)  # We are building in place.
1671    ac_srcdir=.
1672    ac_top_srcdir=$ac_top_builddir_sub
1673    ac_abs_top_srcdir=$ac_pwd ;;
1674  [\\/]* | ?:[\\/]* )  # Absolute name.
1675    ac_srcdir=$srcdir$ac_dir_suffix;
1676    ac_top_srcdir=$srcdir
1677    ac_abs_top_srcdir=$srcdir ;;
1678  *) # Relative name.
1679    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680    ac_top_srcdir=$ac_top_build_prefix$srcdir
1681    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682esac
1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685    cd "$ac_dir" || { ac_status=$?; continue; }
1686    # Check for guested configure.
1687    if test -f "$ac_srcdir/configure.gnu"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690    elif test -f "$ac_srcdir/configure"; then
1691      echo &&
1692      $SHELL "$ac_srcdir/configure" --help=recursive
1693    else
1694      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695    fi || ac_status=$?
1696    cd "$ac_pwd" || { ac_status=$?; break; }
1697  done
1698fi
1699
1700test -n "$ac_init_help" && exit $ac_status
1701if $ac_init_version; then
1702  cat <<\_ACEOF
1703xf86-video-vesa configure 2.3.0
1704generated by GNU Autoconf 2.63
1705
1706Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17072002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
1710_ACEOF
1711  exit
1712fi
1713cat >config.log <<_ACEOF
1714This file contains any messages produced by compilers while
1715running configure, to aid debugging if configure makes a mistake.
1716
1717It was created by xf86-video-vesa $as_me 2.3.0, which was
1718generated by GNU Autoconf 2.63.  Invocation command line was
1719
1720  $ $0 $@
1721
1722_ACEOF
1723exec 5>>config.log
1724{
1725cat <<_ASUNAME
1726## --------- ##
1727## Platform. ##
1728## --------- ##
1729
1730hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735
1736/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1738
1739/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1740/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1741/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1743/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1744/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1745/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1746
1747_ASUNAME
1748
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752  IFS=$as_save_IFS
1753  test -z "$as_dir" && as_dir=.
1754  $as_echo "PATH: $as_dir"
1755done
1756IFS=$as_save_IFS
1757
1758} >&5
1759
1760cat >&5 <<_ACEOF
1761
1762
1763## ----------- ##
1764## Core tests. ##
1765## ----------- ##
1766
1767_ACEOF
1768
1769
1770# Keep a trace of the command line.
1771# Strip out --no-create and --no-recursion so they do not pile up.
1772# Strip out --silent because we don't want to record it for future runs.
1773# Also quote any args containing shell meta-characters.
1774# Make two passes to allow for proper duplicate-argument suppression.
1775ac_configure_args=
1776ac_configure_args0=
1777ac_configure_args1=
1778ac_must_keep_next=false
1779for ac_pass in 1 2
1780do
1781  for ac_arg
1782  do
1783    case $ac_arg in
1784    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786    | -silent | --silent | --silen | --sile | --sil)
1787      continue ;;
1788    *\'*)
1789      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790    esac
1791    case $ac_pass in
1792    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793    2)
1794      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1795      if test $ac_must_keep_next = true; then
1796	ac_must_keep_next=false # Got value, back to normal.
1797      else
1798	case $ac_arg in
1799	  *=* | --config-cache | -C | -disable-* | --disable-* \
1800	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802	  | -with-* | --with-* | -without-* | --without-* | --x)
1803	    case "$ac_configure_args0 " in
1804	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1805	    esac
1806	    ;;
1807	  -* ) ac_must_keep_next=true ;;
1808	esac
1809      fi
1810      ac_configure_args="$ac_configure_args '$ac_arg'"
1811      ;;
1812    esac
1813  done
1814done
1815$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1816$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817
1818# When interrupted or exit'd, cleanup temporary files, and complete
1819# config.log.  We remove comments because anyway the quotes in there
1820# would cause problems or look ugly.
1821# WARNING: Use '\'' to represent an apostrophe within the trap.
1822# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1823trap 'exit_status=$?
1824  # Save into config.log some information that might help in debugging.
1825  {
1826    echo
1827
1828    cat <<\_ASBOX
1829## ---------------- ##
1830## Cache variables. ##
1831## ---------------- ##
1832_ASBOX
1833    echo
1834    # The following way of writing the cache mishandles newlines in values,
1835(
1836  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1837    eval ac_val=\$$ac_var
1838    case $ac_val in #(
1839    *${as_nl}*)
1840      case $ac_var in #(
1841      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1842$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1843      esac
1844      case $ac_var in #(
1845      _ | IFS | as_nl) ;; #(
1846      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1847      *) $as_unset $ac_var ;;
1848      esac ;;
1849    esac
1850  done
1851  (set) 2>&1 |
1852    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1853    *${as_nl}ac_space=\ *)
1854      sed -n \
1855	"s/'\''/'\''\\\\'\'''\''/g;
1856	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1857      ;; #(
1858    *)
1859      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1860      ;;
1861    esac |
1862    sort
1863)
1864    echo
1865
1866    cat <<\_ASBOX
1867## ----------------- ##
1868## Output variables. ##
1869## ----------------- ##
1870_ASBOX
1871    echo
1872    for ac_var in $ac_subst_vars
1873    do
1874      eval ac_val=\$$ac_var
1875      case $ac_val in
1876      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877      esac
1878      $as_echo "$ac_var='\''$ac_val'\''"
1879    done | sort
1880    echo
1881
1882    if test -n "$ac_subst_files"; then
1883      cat <<\_ASBOX
1884## ------------------- ##
1885## File substitutions. ##
1886## ------------------- ##
1887_ASBOX
1888      echo
1889      for ac_var in $ac_subst_files
1890      do
1891	eval ac_val=\$$ac_var
1892	case $ac_val in
1893	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894	esac
1895	$as_echo "$ac_var='\''$ac_val'\''"
1896      done | sort
1897      echo
1898    fi
1899
1900    if test -s confdefs.h; then
1901      cat <<\_ASBOX
1902## ----------- ##
1903## confdefs.h. ##
1904## ----------- ##
1905_ASBOX
1906      echo
1907      cat confdefs.h
1908      echo
1909    fi
1910    test "$ac_signal" != 0 &&
1911      $as_echo "$as_me: caught signal $ac_signal"
1912    $as_echo "$as_me: exit $exit_status"
1913  } >&5
1914  rm -f core *.core core.conftest.* &&
1915    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1916    exit $exit_status
1917' 0
1918for ac_signal in 1 2 13 15; do
1919  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1920done
1921ac_signal=0
1922
1923# confdefs.h avoids OS command line length limits that DEFS can exceed.
1924rm -f -r conftest* confdefs.h
1925
1926# Predefined preprocessor variables.
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_NAME "$PACKAGE_NAME"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_VERSION "$PACKAGE_VERSION"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_STRING "$PACKAGE_STRING"
1945_ACEOF
1946
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1950_ACEOF
1951
1952
1953# Let the site file select an alternate cache file if it wants to.
1954# Prefer an explicitly selected file to automatically selected ones.
1955ac_site_file1=NONE
1956ac_site_file2=NONE
1957if test -n "$CONFIG_SITE"; then
1958  ac_site_file1=$CONFIG_SITE
1959elif test "x$prefix" != xNONE; then
1960  ac_site_file1=$prefix/share/config.site
1961  ac_site_file2=$prefix/etc/config.site
1962else
1963  ac_site_file1=$ac_default_prefix/share/config.site
1964  ac_site_file2=$ac_default_prefix/etc/config.site
1965fi
1966for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1967do
1968  test "x$ac_site_file" = xNONE && continue
1969  if test -r "$ac_site_file"; then
1970    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1971$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1972    sed 's/^/| /' "$ac_site_file" >&5
1973    . "$ac_site_file"
1974  fi
1975done
1976
1977if test -r "$cache_file"; then
1978  # Some versions of bash will fail to source /dev/null (special
1979  # files actually), so we avoid doing that.
1980  if test -f "$cache_file"; then
1981    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1982$as_echo "$as_me: loading cache $cache_file" >&6;}
1983    case $cache_file in
1984      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1985      *)                      . "./$cache_file";;
1986    esac
1987  fi
1988else
1989  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1990$as_echo "$as_me: creating cache $cache_file" >&6;}
1991  >$cache_file
1992fi
1993
1994# Check that the precious variables saved in the cache have kept the same
1995# value.
1996ac_cache_corrupted=false
1997for ac_var in $ac_precious_vars; do
1998  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1999  eval ac_new_set=\$ac_env_${ac_var}_set
2000  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2001  eval ac_new_val=\$ac_env_${ac_var}_value
2002  case $ac_old_set,$ac_new_set in
2003    set,)
2004      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2005$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2006      ac_cache_corrupted=: ;;
2007    ,set)
2008      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2009$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2010      ac_cache_corrupted=: ;;
2011    ,);;
2012    *)
2013      if test "x$ac_old_val" != "x$ac_new_val"; then
2014	# differences in whitespace do not lead to failure.
2015	ac_old_val_w=`echo x $ac_old_val`
2016	ac_new_val_w=`echo x $ac_new_val`
2017	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2018	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2019$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2020	  ac_cache_corrupted=:
2021	else
2022	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2023$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2024	  eval $ac_var=\$ac_old_val
2025	fi
2026	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2027$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2028	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2029$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2030      fi;;
2031  esac
2032  # Pass precious variables to config.status.
2033  if test "$ac_new_set" = set; then
2034    case $ac_new_val in
2035    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2036    *) ac_arg=$ac_var=$ac_new_val ;;
2037    esac
2038    case " $ac_configure_args " in
2039      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2040      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2041    esac
2042  fi
2043done
2044if $ac_cache_corrupted; then
2045  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2047  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2048$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2049  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2050$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2051   { (exit 1); exit 1; }; }
2052fi
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078ac_ext=c
2079ac_cpp='$CPP $CPPFLAGS'
2080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083
2084
2085
2086
2087ac_config_headers="$ac_config_headers config.h"
2088
2089ac_aux_dir=
2090for ac_dir in . "$srcdir"/.; do
2091  if test -f "$ac_dir/install-sh"; then
2092    ac_aux_dir=$ac_dir
2093    ac_install_sh="$ac_aux_dir/install-sh -c"
2094    break
2095  elif test -f "$ac_dir/install.sh"; then
2096    ac_aux_dir=$ac_dir
2097    ac_install_sh="$ac_aux_dir/install.sh -c"
2098    break
2099  elif test -f "$ac_dir/shtool"; then
2100    ac_aux_dir=$ac_dir
2101    ac_install_sh="$ac_aux_dir/shtool install -c"
2102    break
2103  fi
2104done
2105if test -z "$ac_aux_dir"; then
2106  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2107$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2108   { (exit 1); exit 1; }; }
2109fi
2110
2111# These three variables are undocumented and unsupported,
2112# and are intended to be withdrawn in a future Autoconf release.
2113# They can cause serious problems if a builder's source tree is in a directory
2114# whose full name contains unusual characters.
2115ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2116ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2117ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2118
2119
2120
2121am__api_version='1.11'
2122
2123# Find a good install program.  We prefer a C program (faster),
2124# so one script is as good as another.  But avoid the broken or
2125# incompatible versions:
2126# SysV /etc/install, /usr/sbin/install
2127# SunOS /usr/etc/install
2128# IRIX /sbin/install
2129# AIX /bin/install
2130# AmigaOS /C/install, which installs bootblocks on floppy discs
2131# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134# OS/2's system install, which has a completely different semantic
2135# ./install, which can be erroneously created by make from ./install.sh.
2136# Reject install programs that cannot install multiple files.
2137{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138$as_echo_n "checking for a BSD-compatible install... " >&6; }
2139if test -z "$INSTALL"; then
2140if test "${ac_cv_path_install+set}" = set; then
2141  $as_echo_n "(cached) " >&6
2142else
2143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  # Account for people who put trailing slashes in PATH elements.
2149case $as_dir/ in
2150  ./ | .// | /cC/* | \
2151  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153  /usr/ucb/* ) ;;
2154  *)
2155    # OSF1 and SCO ODT 3.0 have their own names for install.
2156    # Don't use installbsd from OSF since it installs stuff as root
2157    # by default.
2158    for ac_prog in ginstall scoinst install; do
2159      for ac_exec_ext in '' $ac_executable_extensions; do
2160	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161	  if test $ac_prog = install &&
2162	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163	    # AIX install.  It has an incompatible calling convention.
2164	    :
2165	  elif test $ac_prog = install &&
2166	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167	    # program-specific install script used by HP pwplus--don't use.
2168	    :
2169	  else
2170	    rm -rf conftest.one conftest.two conftest.dir
2171	    echo one > conftest.one
2172	    echo two > conftest.two
2173	    mkdir conftest.dir
2174	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2175	      test -s conftest.one && test -s conftest.two &&
2176	      test -s conftest.dir/conftest.one &&
2177	      test -s conftest.dir/conftest.two
2178	    then
2179	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2180	      break 3
2181	    fi
2182	  fi
2183	fi
2184      done
2185    done
2186    ;;
2187esac
2188
2189done
2190IFS=$as_save_IFS
2191
2192rm -rf conftest.one conftest.two conftest.dir
2193
2194fi
2195  if test "${ac_cv_path_install+set}" = set; then
2196    INSTALL=$ac_cv_path_install
2197  else
2198    # As a last resort, use the slow shell script.  Don't cache a
2199    # value for INSTALL within a source directory, because that will
2200    # break other packages using the cache if that directory is
2201    # removed, or if the value is a relative name.
2202    INSTALL=$ac_install_sh
2203  fi
2204fi
2205{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2206$as_echo "$INSTALL" >&6; }
2207
2208# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2209# It thinks the first close brace ends the variable substitution.
2210test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2211
2212test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2213
2214test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2215
2216{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2217$as_echo_n "checking whether build environment is sane... " >&6; }
2218# Just in case
2219sleep 1
2220echo timestamp > conftest.file
2221# Reject unsafe characters in $srcdir or the absolute working directory
2222# name.  Accept space and tab only in the latter.
2223am_lf='
2224'
2225case `pwd` in
2226  *[\\\"\#\$\&\'\`$am_lf]*)
2227    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2228$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2229   { (exit 1); exit 1; }; };;
2230esac
2231case $srcdir in
2232  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2233    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2234$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2235   { (exit 1); exit 1; }; };;
2236esac
2237
2238# Do `set' in a subshell so we don't clobber the current shell's
2239# arguments.  Must try -L first in case configure is actually a
2240# symlink; some systems play weird games with the mod time of symlinks
2241# (eg FreeBSD returns the mod time of the symlink's containing
2242# directory).
2243if (
2244   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2245   if test "$*" = "X"; then
2246      # -L didn't work.
2247      set X `ls -t "$srcdir/configure" conftest.file`
2248   fi
2249   rm -f conftest.file
2250   if test "$*" != "X $srcdir/configure conftest.file" \
2251      && test "$*" != "X conftest.file $srcdir/configure"; then
2252
2253      # If neither matched, then we have a broken ls.  This can happen
2254      # if, for instance, CONFIG_SHELL is bash and it inherits a
2255      # broken ls alias from the environment.  This has actually
2256      # happened.  Such a system could not be considered "sane".
2257      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2258alias in your environment" >&5
2259$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2260alias in your environment" >&2;}
2261   { (exit 1); exit 1; }; }
2262   fi
2263
2264   test "$2" = conftest.file
2265   )
2266then
2267   # Ok.
2268   :
2269else
2270   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2271Check your system clock" >&5
2272$as_echo "$as_me: error: newly created file is older than distributed files!
2273Check your system clock" >&2;}
2274   { (exit 1); exit 1; }; }
2275fi
2276{ $as_echo "$as_me:$LINENO: result: yes" >&5
2277$as_echo "yes" >&6; }
2278test "$program_prefix" != NONE &&
2279  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2280# Use a double $ so make ignores it.
2281test "$program_suffix" != NONE &&
2282  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2283# Double any \ or $.
2284# By default was `s,x,x', remove it if useless.
2285ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2286program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2287
2288# expand $ac_aux_dir to an absolute path
2289am_aux_dir=`cd $ac_aux_dir && pwd`
2290
2291if test x"${MISSING+set}" != xset; then
2292  case $am_aux_dir in
2293  *\ * | *\	*)
2294    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2295  *)
2296    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2297  esac
2298fi
2299# Use eval to expand $SHELL
2300if eval "$MISSING --run true"; then
2301  am_missing_run="$MISSING --run "
2302else
2303  am_missing_run=
2304  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2305$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2306fi
2307
2308if test x"${install_sh}" != xset; then
2309  case $am_aux_dir in
2310  *\ * | *\	*)
2311    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2312  *)
2313    install_sh="\${SHELL} $am_aux_dir/install-sh"
2314  esac
2315fi
2316
2317# Installed binaries are usually stripped using `strip' when the user
2318# run `make install-strip'.  However `strip' might not be the right
2319# tool to use in cross-compilation environments, therefore Automake
2320# will honor the `STRIP' environment variable to overrule this program.
2321if test "$cross_compiling" != no; then
2322  if test -n "$ac_tool_prefix"; then
2323  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2324set dummy ${ac_tool_prefix}strip; ac_word=$2
2325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
2327if test "${ac_cv_prog_STRIP+set}" = set; then
2328  $as_echo_n "(cached) " >&6
2329else
2330  if test -n "$STRIP"; then
2331  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338  for ac_exec_ext in '' $ac_executable_extensions; do
2339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342    break 2
2343  fi
2344done
2345done
2346IFS=$as_save_IFS
2347
2348fi
2349fi
2350STRIP=$ac_cv_prog_STRIP
2351if test -n "$STRIP"; then
2352  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2353$as_echo "$STRIP" >&6; }
2354else
2355  { $as_echo "$as_me:$LINENO: result: no" >&5
2356$as_echo "no" >&6; }
2357fi
2358
2359
2360fi
2361if test -z "$ac_cv_prog_STRIP"; then
2362  ac_ct_STRIP=$STRIP
2363  # Extract the first word of "strip", so it can be a program name with args.
2364set dummy strip; ac_word=$2
2365{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2366$as_echo_n "checking for $ac_word... " >&6; }
2367if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2368  $as_echo_n "(cached) " >&6
2369else
2370  if test -n "$ac_ct_STRIP"; then
2371  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376  IFS=$as_save_IFS
2377  test -z "$as_dir" && as_dir=.
2378  for ac_exec_ext in '' $ac_executable_extensions; do
2379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380    ac_cv_prog_ac_ct_STRIP="strip"
2381    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382    break 2
2383  fi
2384done
2385done
2386IFS=$as_save_IFS
2387
2388fi
2389fi
2390ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2391if test -n "$ac_ct_STRIP"; then
2392  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2393$as_echo "$ac_ct_STRIP" >&6; }
2394else
2395  { $as_echo "$as_me:$LINENO: result: no" >&5
2396$as_echo "no" >&6; }
2397fi
2398
2399  if test "x$ac_ct_STRIP" = x; then
2400    STRIP=":"
2401  else
2402    case $cross_compiling:$ac_tool_warned in
2403yes:)
2404{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2406ac_tool_warned=yes ;;
2407esac
2408    STRIP=$ac_ct_STRIP
2409  fi
2410else
2411  STRIP="$ac_cv_prog_STRIP"
2412fi
2413
2414fi
2415INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2416
2417{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2418$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2419if test -z "$MKDIR_P"; then
2420  if test "${ac_cv_path_mkdir+set}" = set; then
2421  $as_echo_n "(cached) " >&6
2422else
2423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2425do
2426  IFS=$as_save_IFS
2427  test -z "$as_dir" && as_dir=.
2428  for ac_prog in mkdir gmkdir; do
2429	 for ac_exec_ext in '' $ac_executable_extensions; do
2430	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2431	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2432	     'mkdir (GNU coreutils) '* | \
2433	     'mkdir (coreutils) '* | \
2434	     'mkdir (fileutils) '4.1*)
2435	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2436	       break 3;;
2437	   esac
2438	 done
2439       done
2440done
2441IFS=$as_save_IFS
2442
2443fi
2444
2445  if test "${ac_cv_path_mkdir+set}" = set; then
2446    MKDIR_P="$ac_cv_path_mkdir -p"
2447  else
2448    # As a last resort, use the slow shell script.  Don't cache a
2449    # value for MKDIR_P within a source directory, because that will
2450    # break other packages using the cache if that directory is
2451    # removed, or if the value is a relative name.
2452    test -d ./--version && rmdir ./--version
2453    MKDIR_P="$ac_install_sh -d"
2454  fi
2455fi
2456{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2457$as_echo "$MKDIR_P" >&6; }
2458
2459mkdir_p="$MKDIR_P"
2460case $mkdir_p in
2461  [\\/$]* | ?:[\\/]*) ;;
2462  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2463esac
2464
2465for ac_prog in gawk mawk nawk awk
2466do
2467  # Extract the first word of "$ac_prog", so it can be a program name with args.
2468set dummy $ac_prog; ac_word=$2
2469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2470$as_echo_n "checking for $ac_word... " >&6; }
2471if test "${ac_cv_prog_AWK+set}" = set; then
2472  $as_echo_n "(cached) " >&6
2473else
2474  if test -n "$AWK"; then
2475  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480  IFS=$as_save_IFS
2481  test -z "$as_dir" && as_dir=.
2482  for ac_exec_ext in '' $ac_executable_extensions; do
2483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484    ac_cv_prog_AWK="$ac_prog"
2485    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486    break 2
2487  fi
2488done
2489done
2490IFS=$as_save_IFS
2491
2492fi
2493fi
2494AWK=$ac_cv_prog_AWK
2495if test -n "$AWK"; then
2496  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2497$as_echo "$AWK" >&6; }
2498else
2499  { $as_echo "$as_me:$LINENO: result: no" >&5
2500$as_echo "no" >&6; }
2501fi
2502
2503
2504  test -n "$AWK" && break
2505done
2506
2507{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2509set x ${MAKE-make}
2510ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2511if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2512  $as_echo_n "(cached) " >&6
2513else
2514  cat >conftest.make <<\_ACEOF
2515SHELL = /bin/sh
2516all:
2517	@echo '@@@%%%=$(MAKE)=@@@%%%'
2518_ACEOF
2519# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2520case `${MAKE-make} -f conftest.make 2>/dev/null` in
2521  *@@@%%%=?*=@@@%%%*)
2522    eval ac_cv_prog_make_${ac_make}_set=yes;;
2523  *)
2524    eval ac_cv_prog_make_${ac_make}_set=no;;
2525esac
2526rm -f conftest.make
2527fi
2528if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2529  { $as_echo "$as_me:$LINENO: result: yes" >&5
2530$as_echo "yes" >&6; }
2531  SET_MAKE=
2532else
2533  { $as_echo "$as_me:$LINENO: result: no" >&5
2534$as_echo "no" >&6; }
2535  SET_MAKE="MAKE=${MAKE-make}"
2536fi
2537
2538rm -rf .tst 2>/dev/null
2539mkdir .tst 2>/dev/null
2540if test -d .tst; then
2541  am__leading_dot=.
2542else
2543  am__leading_dot=_
2544fi
2545rmdir .tst 2>/dev/null
2546
2547if test "`cd $srcdir && pwd`" != "`pwd`"; then
2548  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2549  # is not polluted with repeated "-I."
2550  am__isrc=' -I$(srcdir)'
2551  # test to see if srcdir already configured
2552  if test -f $srcdir/config.status; then
2553    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2554$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2555   { (exit 1); exit 1; }; }
2556  fi
2557fi
2558
2559# test whether we have cygpath
2560if test -z "$CYGPATH_W"; then
2561  if (cygpath --version) >/dev/null 2>/dev/null; then
2562    CYGPATH_W='cygpath -w'
2563  else
2564    CYGPATH_W=echo
2565  fi
2566fi
2567
2568
2569# Define the identity of the package.
2570 PACKAGE='xf86-video-vesa'
2571 VERSION='2.3.0'
2572
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE "$PACKAGE"
2576_ACEOF
2577
2578
2579cat >>confdefs.h <<_ACEOF
2580#define VERSION "$VERSION"
2581_ACEOF
2582
2583# Some tools Automake needs.
2584
2585ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2586
2587
2588AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2589
2590
2591AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2592
2593
2594AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2595
2596
2597MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2598
2599# We need awk for the "check" target.  The system "awk" is bad on
2600# some platforms.
2601# Always define AMTAR for backward compatibility.
2602
2603AMTAR=${AMTAR-"${am_missing_run}tar"}
2604
2605am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2606
2607
2608
2609
2610
2611
2612
2613{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2614$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2615    # Check whether --enable-maintainer-mode was given.
2616if test "${enable_maintainer_mode+set}" = set; then
2617  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2618else
2619  USE_MAINTAINER_MODE=no
2620fi
2621
2622  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2623$as_echo "$USE_MAINTAINER_MODE" >&6; }
2624   if test $USE_MAINTAINER_MODE = yes; then
2625  MAINTAINER_MODE_TRUE=
2626  MAINTAINER_MODE_FALSE='#'
2627else
2628  MAINTAINER_MODE_TRUE='#'
2629  MAINTAINER_MODE_FALSE=
2630fi
2631
2632  MAINT=$MAINTAINER_MODE_TRUE
2633
2634
2635
2636# Require xorg-macros: XORG_DEFAULT_OPTIONS
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648DEPDIR="${am__leading_dot}deps"
2649
2650ac_config_commands="$ac_config_commands depfiles"
2651
2652
2653am_make=${MAKE-make}
2654cat > confinc << 'END'
2655am__doit:
2656	@echo this is the am__doit target
2657.PHONY: am__doit
2658END
2659# If we don't find an include directive, just comment out the code.
2660{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2661$as_echo_n "checking for style of include used by $am_make... " >&6; }
2662am__include="#"
2663am__quote=
2664_am_result=none
2665# First try GNU make style include.
2666echo "include confinc" > confmf
2667# Ignore all kinds of additional output from `make'.
2668case `$am_make -s -f confmf 2> /dev/null` in #(
2669*the\ am__doit\ target*)
2670  am__include=include
2671  am__quote=
2672  _am_result=GNU
2673  ;;
2674esac
2675# Now try BSD make style include.
2676if test "$am__include" = "#"; then
2677   echo '.include "confinc"' > confmf
2678   case `$am_make -s -f confmf 2> /dev/null` in #(
2679   *the\ am__doit\ target*)
2680     am__include=.include
2681     am__quote="\""
2682     _am_result=BSD
2683     ;;
2684   esac
2685fi
2686
2687
2688{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2689$as_echo "$_am_result" >&6; }
2690rm -f confinc confmf
2691
2692# Check whether --enable-dependency-tracking was given.
2693if test "${enable_dependency_tracking+set}" = set; then
2694  enableval=$enable_dependency_tracking;
2695fi
2696
2697if test "x$enable_dependency_tracking" != xno; then
2698  am_depcomp="$ac_aux_dir/depcomp"
2699  AMDEPBACKSLASH='\'
2700fi
2701 if test "x$enable_dependency_tracking" != xno; then
2702  AMDEP_TRUE=
2703  AMDEP_FALSE='#'
2704else
2705  AMDEP_TRUE='#'
2706  AMDEP_FALSE=
2707fi
2708
2709
2710ac_ext=c
2711ac_cpp='$CPP $CPPFLAGS'
2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715if test -n "$ac_tool_prefix"; then
2716  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2717set dummy ${ac_tool_prefix}gcc; ac_word=$2
2718{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if test "${ac_cv_prog_CC+set}" = set; then
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$CC"; then
2724  ac_cv_prog_CC="$CC" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731  for ac_exec_ext in '' $ac_executable_extensions; do
2732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2734    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743CC=$ac_cv_prog_CC
2744if test -n "$CC"; then
2745  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2746$as_echo "$CC" >&6; }
2747else
2748  { $as_echo "$as_me:$LINENO: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752
2753fi
2754if test -z "$ac_cv_prog_CC"; then
2755  ac_ct_CC=$CC
2756  # Extract the first word of "gcc", so it can be a program name with args.
2757set dummy gcc; ac_word=$2
2758{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2761  $as_echo_n "(cached) " >&6
2762else
2763  if test -n "$ac_ct_CC"; then
2764  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771  for ac_exec_ext in '' $ac_executable_extensions; do
2772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773    ac_cv_prog_ac_ct_CC="gcc"
2774    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784if test -n "$ac_ct_CC"; then
2785  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786$as_echo "$ac_ct_CC" >&6; }
2787else
2788  { $as_echo "$as_me:$LINENO: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792  if test "x$ac_ct_CC" = x; then
2793    CC=""
2794  else
2795    case $cross_compiling:$ac_tool_warned in
2796yes:)
2797{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799ac_tool_warned=yes ;;
2800esac
2801    CC=$ac_ct_CC
2802  fi
2803else
2804  CC="$ac_cv_prog_CC"
2805fi
2806
2807if test -z "$CC"; then
2808          if test -n "$ac_tool_prefix"; then
2809    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}cc; ac_word=$2
2811{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if test "${ac_cv_prog_CC+set}" = set; then
2814  $as_echo_n "(cached) " >&6
2815else
2816  if test -n "$CC"; then
2817  ac_cv_prog_CC="$CC" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824  for ac_exec_ext in '' $ac_executable_extensions; do
2825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826    ac_cv_prog_CC="${ac_tool_prefix}cc"
2827    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836CC=$ac_cv_prog_CC
2837if test -n "$CC"; then
2838  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2839$as_echo "$CC" >&6; }
2840else
2841  { $as_echo "$as_me:$LINENO: result: no" >&5
2842$as_echo "no" >&6; }
2843fi
2844
2845
2846  fi
2847fi
2848if test -z "$CC"; then
2849  # Extract the first word of "cc", so it can be a program name with args.
2850set dummy cc; ac_word=$2
2851{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
2853if test "${ac_cv_prog_CC+set}" = set; then
2854  $as_echo_n "(cached) " >&6
2855else
2856  if test -n "$CC"; then
2857  ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
2859  ac_prog_rejected=no
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865  for ac_exec_ext in '' $ac_executable_extensions; do
2866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2868       ac_prog_rejected=yes
2869       continue
2870     fi
2871    ac_cv_prog_CC="cc"
2872    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876done
2877IFS=$as_save_IFS
2878
2879if test $ac_prog_rejected = yes; then
2880  # We found a bogon in the path, so make sure we never use it.
2881  set dummy $ac_cv_prog_CC
2882  shift
2883  if test $# != 0; then
2884    # We chose a different compiler from the bogus one.
2885    # However, it has the same basename, so the bogon will be chosen
2886    # first if we set CC to just the basename; use the full file name.
2887    shift
2888    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2889  fi
2890fi
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2896$as_echo "$CC" >&6; }
2897else
2898  { $as_echo "$as_me:$LINENO: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902
2903fi
2904if test -z "$CC"; then
2905  if test -n "$ac_tool_prefix"; then
2906  for ac_prog in cl.exe
2907  do
2908    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
2912if test "${ac_cv_prog_CC+set}" = set; then
2913  $as_echo_n "(cached) " >&6
2914else
2915  if test -n "$CC"; then
2916  ac_cv_prog_CC="$CC" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923  for ac_exec_ext in '' $ac_executable_extensions; do
2924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927    break 2
2928  fi
2929done
2930done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
2937  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2938$as_echo "$CC" >&6; }
2939else
2940  { $as_echo "$as_me:$LINENO: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944
2945    test -n "$CC" && break
2946  done
2947fi
2948if test -z "$CC"; then
2949  ac_ct_CC=$CC
2950  for ac_prog in cl.exe
2951do
2952  # Extract the first word of "$ac_prog", so it can be a program name with args.
2953set dummy $ac_prog; ac_word=$2
2954{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
2956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test -n "$ac_ct_CC"; then
2960  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967  for ac_exec_ext in '' $ac_executable_extensions; do
2968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969    ac_cv_prog_ac_ct_CC="$ac_prog"
2970    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980if test -n "$ac_ct_CC"; then
2981  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982$as_echo "$ac_ct_CC" >&6; }
2983else
2984  { $as_echo "$as_me:$LINENO: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988
2989  test -n "$ac_ct_CC" && break
2990done
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003fi
3004
3005fi
3006
3007
3008test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3011See \`config.log' for more details." >&5
3012$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3013See \`config.log' for more details." >&2;}
3014   { (exit 1); exit 1; }; }; }
3015
3016# Provide some information about the compiler.
3017$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3018set X $ac_compile
3019ac_compiler=$2
3020{ (ac_try="$ac_compiler --version >&5"
3021case "(($ac_try" in
3022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023  *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3026$as_echo "$ac_try_echo") >&5
3027  (eval "$ac_compiler --version >&5") 2>&5
3028  ac_status=$?
3029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }
3031{ (ac_try="$ac_compiler -v >&5"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3037$as_echo "$ac_try_echo") >&5
3038  (eval "$ac_compiler -v >&5") 2>&5
3039  ac_status=$?
3040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); }
3042{ (ac_try="$ac_compiler -V >&5"
3043case "(($ac_try" in
3044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045  *) ac_try_echo=$ac_try;;
3046esac
3047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048$as_echo "$ac_try_echo") >&5
3049  (eval "$ac_compiler -V >&5") 2>&5
3050  ac_status=$?
3051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }
3053
3054cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069ac_clean_files_save=$ac_clean_files
3070ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3071# Try to create an executable without -o first, disregard a.out.
3072# It will help us diagnose broken compilers, and finding out an intuition
3073# of exeext.
3074{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3075$as_echo_n "checking for C compiler default output file name... " >&6; }
3076ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3077
3078# The possible output files:
3079ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3080
3081ac_rmfiles=
3082for ac_file in $ac_files
3083do
3084  case $ac_file in
3085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087  esac
3088done
3089rm -f $ac_rmfiles
3090
3091if { (ac_try="$ac_link_default"
3092case "(($ac_try" in
3093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094  *) ac_try_echo=$ac_try;;
3095esac
3096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3097$as_echo "$ac_try_echo") >&5
3098  (eval "$ac_link_default") 2>&5
3099  ac_status=$?
3100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; then
3102  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3103# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3104# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3105# so that the user can short-circuit this test for compilers unknown to
3106# Autoconf.
3107for ac_file in $ac_files ''
3108do
3109  test -f "$ac_file" || continue
3110  case $ac_file in
3111    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3112	;;
3113    [ab].out )
3114	# We found the default executable, but exeext='' is most
3115	# certainly right.
3116	break;;
3117    *.* )
3118        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3119	then :; else
3120	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121	fi
3122	# We set ac_cv_exeext here because the later test for it is not
3123	# safe: cross compilers may not add the suffix if given an `-o'
3124	# argument, so we may need to know it at that point already.
3125	# Even if this section looks crufty: it has the advantage of
3126	# actually working.
3127	break;;
3128    * )
3129	break;;
3130  esac
3131done
3132test "$ac_cv_exeext" = no && ac_cv_exeext=
3133
3134else
3135  ac_file=''
3136fi
3137
3138{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3139$as_echo "$ac_file" >&6; }
3140if test -z "$ac_file"; then
3141  $as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3147See \`config.log' for more details." >&5
3148$as_echo "$as_me: error: C compiler cannot create executables
3149See \`config.log' for more details." >&2;}
3150   { (exit 77); exit 77; }; }; }
3151fi
3152
3153ac_exeext=$ac_cv_exeext
3154
3155# Check that the compiler produces executables we can run.  If not, either
3156# the compiler is broken, or we cross compile.
3157{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3158$as_echo_n "checking whether the C compiler works... " >&6; }
3159# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3160# If not cross compiling, check that we can run a simple program.
3161if test "$cross_compiling" != yes; then
3162  if { ac_try='./$ac_file'
3163  { (case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168$as_echo "$ac_try_echo") >&5
3169  (eval "$ac_try") 2>&5
3170  ac_status=$?
3171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }; }; then
3173    cross_compiling=no
3174  else
3175    if test "$cross_compiling" = maybe; then
3176	cross_compiling=yes
3177    else
3178	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3181If you meant to cross compile, use \`--host'.
3182See \`config.log' for more details." >&5
3183$as_echo "$as_me: error: cannot run C compiled programs.
3184If you meant to cross compile, use \`--host'.
3185See \`config.log' for more details." >&2;}
3186   { (exit 1); exit 1; }; }; }
3187    fi
3188  fi
3189fi
3190{ $as_echo "$as_me:$LINENO: result: yes" >&5
3191$as_echo "yes" >&6; }
3192
3193rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3194ac_clean_files=$ac_clean_files_save
3195# Check that the compiler produces executables we can run.  If not, either
3196# the compiler is broken, or we cross compile.
3197{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3198$as_echo_n "checking whether we are cross compiling... " >&6; }
3199{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3200$as_echo "$cross_compiling" >&6; }
3201
3202{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3203$as_echo_n "checking for suffix of executables... " >&6; }
3204if { (ac_try="$ac_link"
3205case "(($ac_try" in
3206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207  *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210$as_echo "$ac_try_echo") >&5
3211  (eval "$ac_link") 2>&5
3212  ac_status=$?
3213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; then
3215  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3217# work properly (i.e., refer to `conftest.exe'), while it won't with
3218# `rm'.
3219for ac_file in conftest.exe conftest conftest.*; do
3220  test -f "$ac_file" || continue
3221  case $ac_file in
3222    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224	  break;;
3225    * ) break;;
3226  esac
3227done
3228else
3229  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3232See \`config.log' for more details." >&5
3233$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3234See \`config.log' for more details." >&2;}
3235   { (exit 1); exit 1; }; }; }
3236fi
3237
3238rm -f conftest$ac_cv_exeext
3239{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3240$as_echo "$ac_cv_exeext" >&6; }
3241
3242rm -f conftest.$ac_ext
3243EXEEXT=$ac_cv_exeext
3244ac_exeext=$EXEEXT
3245{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3246$as_echo_n "checking for suffix of object files... " >&6; }
3247if test "${ac_cv_objext+set}" = set; then
3248  $as_echo_n "(cached) " >&6
3249else
3250  cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h.  */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265rm -f conftest.o conftest.obj
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269  *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272$as_echo "$ac_try_echo") >&5
3273  (eval "$ac_compile") 2>&5
3274  ac_status=$?
3275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; then
3277  for ac_file in conftest.o conftest.obj conftest.*; do
3278  test -f "$ac_file" || continue;
3279  case $ac_file in
3280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282       break;;
3283  esac
3284done
3285else
3286  $as_echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3292See \`config.log' for more details." >&5
3293$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3294See \`config.log' for more details." >&2;}
3295   { (exit 1); exit 1; }; }; }
3296fi
3297
3298rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299fi
3300{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3301$as_echo "$ac_cv_objext" >&6; }
3302OBJEXT=$ac_cv_objext
3303ac_objext=$OBJEXT
3304{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3305$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3306if test "${ac_cv_c_compiler_gnu+set}" = set; then
3307  $as_echo_n "(cached) " >&6
3308else
3309  cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319#ifndef __GNUC__
3320       choke me
3321#endif
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext
3328if { (ac_try="$ac_compile"
3329case "(($ac_try" in
3330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331  *) ac_try_echo=$ac_try;;
3332esac
3333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334$as_echo "$ac_try_echo") >&5
3335  (eval "$ac_compile") 2>conftest.er1
3336  ac_status=$?
3337  grep -v '^ *+' conftest.er1 >conftest.err
3338  rm -f conftest.er1
3339  cat conftest.err >&5
3340  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); } && {
3342	 test -z "$ac_c_werror_flag" ||
3343	 test ! -s conftest.err
3344       } && test -s conftest.$ac_objext; then
3345  ac_compiler_gnu=yes
3346else
3347  $as_echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3350	ac_compiler_gnu=no
3351fi
3352
3353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355
3356fi
3357{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3358$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3359if test $ac_compiler_gnu = yes; then
3360  GCC=yes
3361else
3362  GCC=
3363fi
3364ac_test_CFLAGS=${CFLAGS+set}
3365ac_save_CFLAGS=$CFLAGS
3366{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3367$as_echo_n "checking whether $CC accepts -g... " >&6; }
3368if test "${ac_cv_prog_cc_g+set}" = set; then
3369  $as_echo_n "(cached) " >&6
3370else
3371  ac_save_c_werror_flag=$ac_c_werror_flag
3372   ac_c_werror_flag=yes
3373   ac_cv_prog_cc_g=no
3374   CFLAGS="-g"
3375   cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h.  */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
3380/* end confdefs.h.  */
3381
3382int
3383main ()
3384{
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext
3391if { (ac_try="$ac_compile"
3392case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397$as_echo "$ac_try_echo") >&5
3398  (eval "$ac_compile") 2>conftest.er1
3399  ac_status=$?
3400  grep -v '^ *+' conftest.er1 >conftest.err
3401  rm -f conftest.er1
3402  cat conftest.err >&5
3403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); } && {
3405	 test -z "$ac_c_werror_flag" ||
3406	 test ! -s conftest.err
3407       } && test -s conftest.$ac_objext; then
3408  ac_cv_prog_cc_g=yes
3409else
3410  $as_echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413	CFLAGS=""
3414      cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h.  */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h.  */
3420
3421int
3422main ()
3423{
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (ac_try="$ac_compile"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3436$as_echo "$ac_try_echo") >&5
3437  (eval "$ac_compile") 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } && {
3444	 test -z "$ac_c_werror_flag" ||
3445	 test ! -s conftest.err
3446       } && test -s conftest.$ac_objext; then
3447  :
3448else
3449  $as_echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452	ac_c_werror_flag=$ac_save_c_werror_flag
3453	 CFLAGS="-g"
3454	 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h.  */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h.  */
3460
3461int
3462main ()
3463{
3464
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469rm -f conftest.$ac_objext
3470if { (ac_try="$ac_compile"
3471case "(($ac_try" in
3472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473  *) ac_try_echo=$ac_try;;
3474esac
3475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3476$as_echo "$ac_try_echo") >&5
3477  (eval "$ac_compile") 2>conftest.er1
3478  ac_status=$?
3479  grep -v '^ *+' conftest.er1 >conftest.err
3480  rm -f conftest.er1
3481  cat conftest.err >&5
3482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); } && {
3484	 test -z "$ac_c_werror_flag" ||
3485	 test ! -s conftest.err
3486       } && test -s conftest.$ac_objext; then
3487  ac_cv_prog_cc_g=yes
3488else
3489  $as_echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492
3493fi
3494
3495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496fi
3497
3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
3500
3501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502   ac_c_werror_flag=$ac_save_c_werror_flag
3503fi
3504{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3505$as_echo "$ac_cv_prog_cc_g" >&6; }
3506if test "$ac_test_CFLAGS" = set; then
3507  CFLAGS=$ac_save_CFLAGS
3508elif test $ac_cv_prog_cc_g = yes; then
3509  if test "$GCC" = yes; then
3510    CFLAGS="-g -O2"
3511  else
3512    CFLAGS="-g"
3513  fi
3514else
3515  if test "$GCC" = yes; then
3516    CFLAGS="-O2"
3517  else
3518    CFLAGS=
3519  fi
3520fi
3521{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3522$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523if test "${ac_cv_prog_cc_c89+set}" = set; then
3524  $as_echo_n "(cached) " >&6
3525else
3526  ac_cv_prog_cc_c89=no
3527ac_save_CC=$CC
3528cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534#include <stdarg.h>
3535#include <stdio.h>
3536#include <sys/types.h>
3537#include <sys/stat.h>
3538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3539struct buf { int x; };
3540FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541static char *e (p, i)
3542     char **p;
3543     int i;
3544{
3545  return p[i];
3546}
3547static char *f (char * (*g) (char **, int), char **p, ...)
3548{
3549  char *s;
3550  va_list v;
3551  va_start (v,p);
3552  s = g (p, va_arg (v,int));
3553  va_end (v);
3554  return s;
3555}
3556
3557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3558   function prototypes and stuff, but not '\xHH' hex character constants.
3559   These don't provoke an error unfortunately, instead are silently treated
3560   as 'x'.  The following induces an error, until -std is added to get
3561   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3562   array size at least.  It's necessary to write '\x00'==0 to get something
3563   that's true only with -std.  */
3564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3565
3566/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567   inside strings and character constants.  */
3568#define FOO(x) 'x'
3569int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3570
3571int test (int i, double x);
3572struct s1 {int (*f) (int a);};
3573struct s2 {int (*f) (double a);};
3574int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575int argc;
3576char **argv;
3577int
3578main ()
3579{
3580return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587do
3588  CC="$ac_save_CC $ac_arg"
3589  rm -f conftest.$ac_objext
3590if { (ac_try="$ac_compile"
3591case "(($ac_try" in
3592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593  *) ac_try_echo=$ac_try;;
3594esac
3595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596$as_echo "$ac_try_echo") >&5
3597  (eval "$ac_compile") 2>conftest.er1
3598  ac_status=$?
3599  grep -v '^ *+' conftest.er1 >conftest.err
3600  rm -f conftest.er1
3601  cat conftest.err >&5
3602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); } && {
3604	 test -z "$ac_c_werror_flag" ||
3605	 test ! -s conftest.err
3606       } && test -s conftest.$ac_objext; then
3607  ac_cv_prog_cc_c89=$ac_arg
3608else
3609  $as_echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612
3613fi
3614
3615rm -f core conftest.err conftest.$ac_objext
3616  test "x$ac_cv_prog_cc_c89" != "xno" && break
3617done
3618rm -f conftest.$ac_ext
3619CC=$ac_save_CC
3620
3621fi
3622# AC_CACHE_VAL
3623case "x$ac_cv_prog_cc_c89" in
3624  x)
3625    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3626$as_echo "none needed" >&6; } ;;
3627  xno)
3628    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3629$as_echo "unsupported" >&6; } ;;
3630  *)
3631    CC="$CC $ac_cv_prog_cc_c89"
3632    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3634esac
3635
3636
3637ac_ext=c
3638ac_cpp='$CPP $CPPFLAGS'
3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643depcc="$CC"   am_compiler_list=
3644
3645{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3646$as_echo_n "checking dependency style of $depcc... " >&6; }
3647if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3648  $as_echo_n "(cached) " >&6
3649else
3650  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651  # We make a subdir and do the tests there.  Otherwise we can end up
3652  # making bogus files that we don't know about and never remove.  For
3653  # instance it was reported that on HP-UX the gcc test will end up
3654  # making a dummy file named `D' -- because `-MD' means `put the output
3655  # in D'.
3656  mkdir conftest.dir
3657  # Copy depcomp to subdir because otherwise we won't find it if we're
3658  # using a relative directory.
3659  cp "$am_depcomp" conftest.dir
3660  cd conftest.dir
3661  # We will build objects and dependencies in a subdirectory because
3662  # it helps to detect inapplicable dependency modes.  For instance
3663  # both Tru64's cc and ICC support -MD to output dependencies as a
3664  # side effect of compilation, but ICC will put the dependencies in
3665  # the current directory while Tru64 will put them in the object
3666  # directory.
3667  mkdir sub
3668
3669  am_cv_CC_dependencies_compiler_type=none
3670  if test "$am_compiler_list" = ""; then
3671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672  fi
3673  am__universal=false
3674  case " $depcc " in #(
3675     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3676     esac
3677
3678  for depmode in $am_compiler_list; do
3679    # Setup a source with many dependencies, because some compilers
3680    # like to wrap large dependency lists on column 80 (with \), and
3681    # we should not choose a depcomp mode which is confused by this.
3682    #
3683    # We need to recreate these files for each test, as the compiler may
3684    # overwrite some of them when testing with obscure command lines.
3685    # This happens at least with the AIX C compiler.
3686    : > sub/conftest.c
3687    for i in 1 2 3 4 5 6; do
3688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3690      # Solaris 8's {/usr,}/bin/sh.
3691      touch sub/conftst$i.h
3692    done
3693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3696    # mode.  It turns out that the SunPro C++ compiler does not properly
3697    # handle `-M -o', and we need to detect this.  Also, some Intel
3698    # versions had trouble with output in subdirs
3699    am__obj=sub/conftest.${OBJEXT-o}
3700    am__minus_obj="-o $am__obj"
3701    case $depmode in
3702    gcc)
3703      # This depmode causes a compiler race in universal mode.
3704      test "$am__universal" = false || continue
3705      ;;
3706    nosideeffect)
3707      # after this tag, mechanisms are not by side-effect, so they'll
3708      # only be used when explicitly requested
3709      if test "x$enable_dependency_tracking" = xyes; then
3710	continue
3711      else
3712	break
3713      fi
3714      ;;
3715    msvisualcpp | msvcmsys)
3716      # This compiler won't grok `-c -o', but also, the minuso test has
3717      # not run yet.  These depmodes are late enough in the game, and
3718      # so weak that their functioning should not be impacted.
3719      am__obj=conftest.${OBJEXT-o}
3720      am__minus_obj=
3721      ;;
3722    none) break ;;
3723    esac
3724    if depmode=$depmode \
3725       source=sub/conftest.c object=$am__obj \
3726       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3727       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3728         >/dev/null 2>conftest.err &&
3729       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3730       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3732       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733      # icc doesn't choke on unknown options, it will just issue warnings
3734      # or remarks (even with -Werror).  So we grep stderr for any message
3735      # that says an option was ignored or not supported.
3736      # When given -MP, icc 7.0 and 7.1 complain thusly:
3737      #   icc: Command line warning: ignoring option '-M'; no argument required
3738      # The diagnosis changed in icc 8.0:
3739      #   icc: Command line remark: option '-MP' not supported
3740      if (grep 'ignoring option' conftest.err ||
3741          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742        am_cv_CC_dependencies_compiler_type=$depmode
3743        break
3744      fi
3745    fi
3746  done
3747
3748  cd ..
3749  rm -rf conftest.dir
3750else
3751  am_cv_CC_dependencies_compiler_type=none
3752fi
3753
3754fi
3755{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3758
3759 if
3760  test "x$enable_dependency_tracking" != xno \
3761  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3762  am__fastdepCC_TRUE=
3763  am__fastdepCC_FALSE='#'
3764else
3765  am__fastdepCC_TRUE='#'
3766  am__fastdepCC_FALSE=
3767fi
3768
3769
3770
3771ac_ext=c
3772ac_cpp='$CPP $CPPFLAGS'
3773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3777$as_echo_n "checking how to run the C preprocessor... " >&6; }
3778# On Suns, sometimes $CPP names a directory.
3779if test -n "$CPP" && test -d "$CPP"; then
3780  CPP=
3781fi
3782if test -z "$CPP"; then
3783  if test "${ac_cv_prog_CPP+set}" = set; then
3784  $as_echo_n "(cached) " >&6
3785else
3786      # Double quotes because CPP needs to be expanded
3787    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3788    do
3789      ac_preproc_ok=false
3790for ac_c_preproc_warn_flag in '' yes
3791do
3792  # Use a header file that comes with gcc, so configuring glibc
3793  # with a fresh cross-compiler works.
3794  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795  # <limits.h> exists even on freestanding compilers.
3796  # On the NeXT, cc -E runs the code through the compiler's parser,
3797  # not just through cpp. "Syntax error" is here to catch this case.
3798  cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804#ifdef __STDC__
3805# include <limits.h>
3806#else
3807# include <assert.h>
3808#endif
3809		     Syntax error
3810_ACEOF
3811if { (ac_try="$ac_cpp conftest.$ac_ext"
3812case "(($ac_try" in
3813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814  *) ac_try_echo=$ac_try;;
3815esac
3816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817$as_echo "$ac_try_echo") >&5
3818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } >/dev/null && {
3825	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3826	 test ! -s conftest.err
3827       }; then
3828  :
3829else
3830  $as_echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833  # Broken: fails on valid input.
3834continue
3835fi
3836
3837rm -f conftest.err conftest.$ac_ext
3838
3839  # OK, works on sane cases.  Now check whether nonexistent headers
3840  # can be detected and how.
3841  cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h.  */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h.  */
3847#include <ac_nonexistent.h>
3848_ACEOF
3849if { (ac_try="$ac_cpp conftest.$ac_ext"
3850case "(($ac_try" in
3851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852  *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3855$as_echo "$ac_try_echo") >&5
3856  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3857  ac_status=$?
3858  grep -v '^ *+' conftest.er1 >conftest.err
3859  rm -f conftest.er1
3860  cat conftest.err >&5
3861  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); } >/dev/null && {
3863	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3864	 test ! -s conftest.err
3865       }; then
3866  # Broken: success on invalid input.
3867continue
3868else
3869  $as_echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872  # Passes both tests.
3873ac_preproc_ok=:
3874break
3875fi
3876
3877rm -f conftest.err conftest.$ac_ext
3878
3879done
3880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881rm -f conftest.err conftest.$ac_ext
3882if $ac_preproc_ok; then
3883  break
3884fi
3885
3886    done
3887    ac_cv_prog_CPP=$CPP
3888
3889fi
3890  CPP=$ac_cv_prog_CPP
3891else
3892  ac_cv_prog_CPP=$CPP
3893fi
3894{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3895$as_echo "$CPP" >&6; }
3896ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
3898do
3899  # Use a header file that comes with gcc, so configuring glibc
3900  # with a fresh cross-compiler works.
3901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902  # <limits.h> exists even on freestanding compilers.
3903  # On the NeXT, cc -E runs the code through the compiler's parser,
3904  # not just through cpp. "Syntax error" is here to catch this case.
3905  cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h.  */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h.  */
3911#ifdef __STDC__
3912# include <limits.h>
3913#else
3914# include <assert.h>
3915#endif
3916		     Syntax error
3917_ACEOF
3918if { (ac_try="$ac_cpp conftest.$ac_ext"
3919case "(($ac_try" in
3920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921  *) ac_try_echo=$ac_try;;
3922esac
3923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924$as_echo "$ac_try_echo") >&5
3925  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3926  ac_status=$?
3927  grep -v '^ *+' conftest.er1 >conftest.err
3928  rm -f conftest.er1
3929  cat conftest.err >&5
3930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); } >/dev/null && {
3932	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933	 test ! -s conftest.err
3934       }; then
3935  :
3936else
3937  $as_echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940  # Broken: fails on valid input.
3941continue
3942fi
3943
3944rm -f conftest.err conftest.$ac_ext
3945
3946  # OK, works on sane cases.  Now check whether nonexistent headers
3947  # can be detected and how.
3948  cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954#include <ac_nonexistent.h>
3955_ACEOF
3956if { (ac_try="$ac_cpp conftest.$ac_ext"
3957case "(($ac_try" in
3958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959  *) ac_try_echo=$ac_try;;
3960esac
3961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962$as_echo "$ac_try_echo") >&5
3963  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } >/dev/null && {
3970	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3971	 test ! -s conftest.err
3972       }; then
3973  # Broken: success on invalid input.
3974continue
3975else
3976  $as_echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979  # Passes both tests.
3980ac_preproc_ok=:
3981break
3982fi
3983
3984rm -f conftest.err conftest.$ac_ext
3985
3986done
3987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988rm -f conftest.err conftest.$ac_ext
3989if $ac_preproc_ok; then
3990  :
3991else
3992  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3995See \`config.log' for more details." >&5
3996$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3997See \`config.log' for more details." >&2;}
3998   { (exit 1); exit 1; }; }; }
3999fi
4000
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007
4008{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4009$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4010if test "${ac_cv_path_GREP+set}" = set; then
4011  $as_echo_n "(cached) " >&6
4012else
4013  if test -z "$GREP"; then
4014  ac_path_GREP_found=false
4015  # Loop through the user's path and test for each of PROGNAME-LIST
4016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4018do
4019  IFS=$as_save_IFS
4020  test -z "$as_dir" && as_dir=.
4021  for ac_prog in grep ggrep; do
4022    for ac_exec_ext in '' $ac_executable_extensions; do
4023      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4024      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4025# Check for GNU ac_path_GREP and select it if it is found.
4026  # Check for GNU $ac_path_GREP
4027case `"$ac_path_GREP" --version 2>&1` in
4028*GNU*)
4029  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4030*)
4031  ac_count=0
4032  $as_echo_n 0123456789 >"conftest.in"
4033  while :
4034  do
4035    cat "conftest.in" "conftest.in" >"conftest.tmp"
4036    mv "conftest.tmp" "conftest.in"
4037    cp "conftest.in" "conftest.nl"
4038    $as_echo 'GREP' >> "conftest.nl"
4039    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041    ac_count=`expr $ac_count + 1`
4042    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4043      # Best one so far, save it but keep looking for a better one
4044      ac_cv_path_GREP="$ac_path_GREP"
4045      ac_path_GREP_max=$ac_count
4046    fi
4047    # 10*(2^10) chars as input seems more than enough
4048    test $ac_count -gt 10 && break
4049  done
4050  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051esac
4052
4053      $ac_path_GREP_found && break 3
4054    done
4055  done
4056done
4057IFS=$as_save_IFS
4058  if test -z "$ac_cv_path_GREP"; then
4059    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4060$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4061   { (exit 1); exit 1; }; }
4062  fi
4063else
4064  ac_cv_path_GREP=$GREP
4065fi
4066
4067fi
4068{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4069$as_echo "$ac_cv_path_GREP" >&6; }
4070 GREP="$ac_cv_path_GREP"
4071
4072
4073{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4074$as_echo_n "checking for egrep... " >&6; }
4075if test "${ac_cv_path_EGREP+set}" = set; then
4076  $as_echo_n "(cached) " >&6
4077else
4078  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4079   then ac_cv_path_EGREP="$GREP -E"
4080   else
4081     if test -z "$EGREP"; then
4082  ac_path_EGREP_found=false
4083  # Loop through the user's path and test for each of PROGNAME-LIST
4084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089  for ac_prog in egrep; do
4090    for ac_exec_ext in '' $ac_executable_extensions; do
4091      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4092      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4093# Check for GNU ac_path_EGREP and select it if it is found.
4094  # Check for GNU $ac_path_EGREP
4095case `"$ac_path_EGREP" --version 2>&1` in
4096*GNU*)
4097  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4098*)
4099  ac_count=0
4100  $as_echo_n 0123456789 >"conftest.in"
4101  while :
4102  do
4103    cat "conftest.in" "conftest.in" >"conftest.tmp"
4104    mv "conftest.tmp" "conftest.in"
4105    cp "conftest.in" "conftest.nl"
4106    $as_echo 'EGREP' >> "conftest.nl"
4107    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109    ac_count=`expr $ac_count + 1`
4110    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4111      # Best one so far, save it but keep looking for a better one
4112      ac_cv_path_EGREP="$ac_path_EGREP"
4113      ac_path_EGREP_max=$ac_count
4114    fi
4115    # 10*(2^10) chars as input seems more than enough
4116    test $ac_count -gt 10 && break
4117  done
4118  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119esac
4120
4121      $ac_path_EGREP_found && break 3
4122    done
4123  done
4124done
4125IFS=$as_save_IFS
4126  if test -z "$ac_cv_path_EGREP"; then
4127    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4128$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4129   { (exit 1); exit 1; }; }
4130  fi
4131else
4132  ac_cv_path_EGREP=$EGREP
4133fi
4134
4135   fi
4136fi
4137{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4138$as_echo "$ac_cv_path_EGREP" >&6; }
4139 EGREP="$ac_cv_path_EGREP"
4140
4141
4142{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4143$as_echo_n "checking for ANSI C header files... " >&6; }
4144if test "${ac_cv_header_stdc+set}" = set; then
4145  $as_echo_n "(cached) " >&6
4146else
4147  cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h.  */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h.  */
4153#include <stdlib.h>
4154#include <stdarg.h>
4155#include <string.h>
4156#include <float.h>
4157
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170  *) ac_try_echo=$ac_try;;
4171esac
4172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173$as_echo "$ac_try_echo") >&5
4174  (eval "$ac_compile") 2>conftest.er1
4175  ac_status=$?
4176  grep -v '^ *+' conftest.er1 >conftest.err
4177  rm -f conftest.er1
4178  cat conftest.err >&5
4179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); } && {
4181	 test -z "$ac_c_werror_flag" ||
4182	 test ! -s conftest.err
4183       } && test -s conftest.$ac_objext; then
4184  ac_cv_header_stdc=yes
4185else
4186  $as_echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189	ac_cv_header_stdc=no
4190fi
4191
4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193
4194if test $ac_cv_header_stdc = yes; then
4195  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4196  cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h.  */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h.  */
4202#include <string.h>
4203
4204_ACEOF
4205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206  $EGREP "memchr" >/dev/null 2>&1; then
4207  :
4208else
4209  ac_cv_header_stdc=no
4210fi
4211rm -f conftest*
4212
4213fi
4214
4215if test $ac_cv_header_stdc = yes; then
4216  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4217  cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h.  */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h.  */
4223#include <stdlib.h>
4224
4225_ACEOF
4226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227  $EGREP "free" >/dev/null 2>&1; then
4228  :
4229else
4230  ac_cv_header_stdc=no
4231fi
4232rm -f conftest*
4233
4234fi
4235
4236if test $ac_cv_header_stdc = yes; then
4237  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4238  if test "$cross_compiling" = yes; then
4239  :
4240else
4241  cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h.  */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h.  */
4247#include <ctype.h>
4248#include <stdlib.h>
4249#if ((' ' & 0x0FF) == 0x020)
4250# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4251# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4252#else
4253# define ISLOWER(c) \
4254		   (('a' <= (c) && (c) <= 'i') \
4255		     || ('j' <= (c) && (c) <= 'r') \
4256		     || ('s' <= (c) && (c) <= 'z'))
4257# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4258#endif
4259
4260#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4261int
4262main ()
4263{
4264  int i;
4265  for (i = 0; i < 256; i++)
4266    if (XOR (islower (i), ISLOWER (i))
4267	|| toupper (i) != TOUPPER (i))
4268      return 2;
4269  return 0;
4270}
4271_ACEOF
4272rm -f conftest$ac_exeext
4273if { (ac_try="$ac_link"
4274case "(($ac_try" in
4275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276  *) ac_try_echo=$ac_try;;
4277esac
4278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279$as_echo "$ac_try_echo") >&5
4280  (eval "$ac_link") 2>&5
4281  ac_status=$?
4282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4284  { (case "(($ac_try" in
4285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286  *) ac_try_echo=$ac_try;;
4287esac
4288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289$as_echo "$ac_try_echo") >&5
4290  (eval "$ac_try") 2>&5
4291  ac_status=$?
4292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293  (exit $ac_status); }; }; then
4294  :
4295else
4296  $as_echo "$as_me: program exited with status $ac_status" >&5
4297$as_echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300( exit $ac_status )
4301ac_cv_header_stdc=no
4302fi
4303rm -rf conftest.dSYM
4304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305fi
4306
4307
4308fi
4309fi
4310{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311$as_echo "$ac_cv_header_stdc" >&6; }
4312if test $ac_cv_header_stdc = yes; then
4313
4314cat >>confdefs.h <<\_ACEOF
4315#define STDC_HEADERS 1
4316_ACEOF
4317
4318fi
4319
4320# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331		  inttypes.h stdint.h unistd.h
4332do
4333as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4335$as_echo_n "checking for $ac_header... " >&6; }
4336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4337  $as_echo_n "(cached) " >&6
4338else
4339  cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345$ac_includes_default
4346
4347#include <$ac_header>
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (ac_try="$ac_compile"
4351case "(($ac_try" in
4352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353  *) ac_try_echo=$ac_try;;
4354esac
4355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4356$as_echo "$ac_try_echo") >&5
4357  (eval "$ac_compile") 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } && {
4364	 test -z "$ac_c_werror_flag" ||
4365	 test ! -s conftest.err
4366       } && test -s conftest.$ac_objext; then
4367  eval "$as_ac_Header=yes"
4368else
4369  $as_echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372	eval "$as_ac_Header=no"
4373fi
4374
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377ac_res=`eval 'as_val=${'$as_ac_Header'}
4378		 $as_echo "$as_val"'`
4379	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4380$as_echo "$ac_res" >&6; }
4381as_val=`eval 'as_val=${'$as_ac_Header'}
4382		 $as_echo "$as_val"'`
4383   if test "x$as_val" = x""yes; then
4384  cat >>confdefs.h <<_ACEOF
4385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386_ACEOF
4387
4388fi
4389
4390done
4391
4392
4393   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4394$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4395if test "${ac_cv_prog_cc_c99+set}" = set; then
4396  $as_echo_n "(cached) " >&6
4397else
4398  ac_cv_prog_cc_c99=no
4399ac_save_CC=$CC
4400cat >conftest.$ac_ext <<_ACEOF
4401/* confdefs.h.  */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h.  */
4406#include <stdarg.h>
4407#include <stdbool.h>
4408#include <stdlib.h>
4409#include <wchar.h>
4410#include <stdio.h>
4411
4412// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4413#define debug(...) fprintf (stderr, __VA_ARGS__)
4414#define showlist(...) puts (#__VA_ARGS__)
4415#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4416static void
4417test_varargs_macros (void)
4418{
4419  int x = 1234;
4420  int y = 5678;
4421  debug ("Flag");
4422  debug ("X = %d\n", x);
4423  showlist (The first, second, and third items.);
4424  report (x>y, "x is %d but y is %d", x, y);
4425}
4426
4427// Check long long types.
4428#define BIG64 18446744073709551615ull
4429#define BIG32 4294967295ul
4430#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4431#if !BIG_OK
4432  your preprocessor is broken;
4433#endif
4434#if BIG_OK
4435#else
4436  your preprocessor is broken;
4437#endif
4438static long long int bignum = -9223372036854775807LL;
4439static unsigned long long int ubignum = BIG64;
4440
4441struct incomplete_array
4442{
4443  int datasize;
4444  double data[];
4445};
4446
4447struct named_init {
4448  int number;
4449  const wchar_t *name;
4450  double average;
4451};
4452
4453typedef const char *ccp;
4454
4455static inline int
4456test_restrict (ccp restrict text)
4457{
4458  // See if C++-style comments work.
4459  // Iterate through items via the restricted pointer.
4460  // Also check for declarations in for loops.
4461  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4462    continue;
4463  return 0;
4464}
4465
4466// Check varargs and va_copy.
4467static void
4468test_varargs (const char *format, ...)
4469{
4470  va_list args;
4471  va_start (args, format);
4472  va_list args_copy;
4473  va_copy (args_copy, args);
4474
4475  const char *str;
4476  int number;
4477  float fnumber;
4478
4479  while (*format)
4480    {
4481      switch (*format++)
4482	{
4483	case 's': // string
4484	  str = va_arg (args_copy, const char *);
4485	  break;
4486	case 'd': // int
4487	  number = va_arg (args_copy, int);
4488	  break;
4489	case 'f': // float
4490	  fnumber = va_arg (args_copy, double);
4491	  break;
4492	default:
4493	  break;
4494	}
4495    }
4496  va_end (args_copy);
4497  va_end (args);
4498}
4499
4500int
4501main ()
4502{
4503
4504  // Check bool.
4505  _Bool success = false;
4506
4507  // Check restrict.
4508  if (test_restrict ("String literal") == 0)
4509    success = true;
4510  char *restrict newvar = "Another string";
4511
4512  // Check varargs.
4513  test_varargs ("s, d' f .", "string", 65, 34.234);
4514  test_varargs_macros ();
4515
4516  // Check flexible array members.
4517  struct incomplete_array *ia =
4518    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4519  ia->datasize = 10;
4520  for (int i = 0; i < ia->datasize; ++i)
4521    ia->data[i] = i * 1.234;
4522
4523  // Check named initializers.
4524  struct named_init ni = {
4525    .number = 34,
4526    .name = L"Test wide string",
4527    .average = 543.34343,
4528  };
4529
4530  ni.number = 58;
4531
4532  int dynamic_array[ni.number];
4533  dynamic_array[ni.number - 1] = 543;
4534
4535  // work around unused variable warnings
4536  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4537	  || dynamic_array[ni.number - 1] != 543);
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4544do
4545  CC="$ac_save_CC $ac_arg"
4546  rm -f conftest.$ac_objext
4547if { (ac_try="$ac_compile"
4548case "(($ac_try" in
4549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550  *) ac_try_echo=$ac_try;;
4551esac
4552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553$as_echo "$ac_try_echo") >&5
4554  (eval "$ac_compile") 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } && {
4561	 test -z "$ac_c_werror_flag" ||
4562	 test ! -s conftest.err
4563       } && test -s conftest.$ac_objext; then
4564  ac_cv_prog_cc_c99=$ac_arg
4565else
4566  $as_echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569
4570fi
4571
4572rm -f core conftest.err conftest.$ac_objext
4573  test "x$ac_cv_prog_cc_c99" != "xno" && break
4574done
4575rm -f conftest.$ac_ext
4576CC=$ac_save_CC
4577
4578fi
4579# AC_CACHE_VAL
4580case "x$ac_cv_prog_cc_c99" in
4581  x)
4582    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4583$as_echo "none needed" >&6; } ;;
4584  xno)
4585    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4586$as_echo "unsupported" >&6; } ;;
4587  *)
4588    CC="$CC $ac_cv_prog_cc_c99"
4589    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4590$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4591esac
4592
4593
4594
4595
4596
4597if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4598	if test -n "$ac_tool_prefix"; then
4599  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4600set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4602$as_echo_n "checking for $ac_word... " >&6; }
4603if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4604  $as_echo_n "(cached) " >&6
4605else
4606  case $PKG_CONFIG in
4607  [\\/]* | ?:[\\/]*)
4608  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4609  ;;
4610  *)
4611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616  for ac_exec_ext in '' $ac_executable_extensions; do
4617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4619    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623done
4624IFS=$as_save_IFS
4625
4626  ;;
4627esac
4628fi
4629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4630if test -n "$PKG_CONFIG"; then
4631  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4632$as_echo "$PKG_CONFIG" >&6; }
4633else
4634  { $as_echo "$as_me:$LINENO: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$ac_cv_path_PKG_CONFIG"; then
4641  ac_pt_PKG_CONFIG=$PKG_CONFIG
4642  # Extract the first word of "pkg-config", so it can be a program name with args.
4643set dummy pkg-config; ac_word=$2
4644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4645$as_echo_n "checking for $ac_word... " >&6; }
4646if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4647  $as_echo_n "(cached) " >&6
4648else
4649  case $ac_pt_PKG_CONFIG in
4650  [\\/]* | ?:[\\/]*)
4651  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4652  ;;
4653  *)
4654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  test -z "$as_dir" && as_dir=.
4659  for ac_exec_ext in '' $ac_executable_extensions; do
4660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4662    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663    break 2
4664  fi
4665done
4666done
4667IFS=$as_save_IFS
4668
4669  ;;
4670esac
4671fi
4672ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4673if test -n "$ac_pt_PKG_CONFIG"; then
4674  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4675$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4676else
4677  { $as_echo "$as_me:$LINENO: result: no" >&5
4678$as_echo "no" >&6; }
4679fi
4680
4681  if test "x$ac_pt_PKG_CONFIG" = x; then
4682    PKG_CONFIG=""
4683  else
4684    case $cross_compiling:$ac_tool_warned in
4685yes:)
4686{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688ac_tool_warned=yes ;;
4689esac
4690    PKG_CONFIG=$ac_pt_PKG_CONFIG
4691  fi
4692else
4693  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4694fi
4695
4696fi
4697if test -n "$PKG_CONFIG"; then
4698	_pkg_min_version=0.9.0
4699	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4700$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4701	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4702		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4703$as_echo "yes" >&6; }
4704	else
4705		{ $as_echo "$as_me:$LINENO: result: no" >&5
4706$as_echo "no" >&6; }
4707		PKG_CONFIG=""
4708	fi
4709
4710fi
4711# Make sure we can run config.sub.
4712$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4713  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4714$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4715   { (exit 1); exit 1; }; }
4716
4717{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4718$as_echo_n "checking build system type... " >&6; }
4719if test "${ac_cv_build+set}" = set; then
4720  $as_echo_n "(cached) " >&6
4721else
4722  ac_build_alias=$build_alias
4723test "x$ac_build_alias" = x &&
4724  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4725test "x$ac_build_alias" = x &&
4726  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4727$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4728   { (exit 1); exit 1; }; }
4729ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4731$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4732   { (exit 1); exit 1; }; }
4733
4734fi
4735{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4736$as_echo "$ac_cv_build" >&6; }
4737case $ac_cv_build in
4738*-*-*) ;;
4739*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4740$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4741   { (exit 1); exit 1; }; };;
4742esac
4743build=$ac_cv_build
4744ac_save_IFS=$IFS; IFS='-'
4745set x $ac_cv_build
4746shift
4747build_cpu=$1
4748build_vendor=$2
4749shift; shift
4750# Remember, the first character of IFS is used to create $*,
4751# except with old shells:
4752build_os=$*
4753IFS=$ac_save_IFS
4754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
4757{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4758$as_echo_n "checking host system type... " >&6; }
4759if test "${ac_cv_host+set}" = set; then
4760  $as_echo_n "(cached) " >&6
4761else
4762  if test "x$host_alias" = x; then
4763  ac_cv_host=$ac_cv_build
4764else
4765  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4767$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4768   { (exit 1); exit 1; }; }
4769fi
4770
4771fi
4772{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4773$as_echo "$ac_cv_host" >&6; }
4774case $ac_cv_host in
4775*-*-*) ;;
4776*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4777$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4778   { (exit 1); exit 1; }; };;
4779esac
4780host=$ac_cv_host
4781ac_save_IFS=$IFS; IFS='-'
4782set x $ac_cv_host
4783shift
4784host_cpu=$1
4785host_vendor=$2
4786shift; shift
4787# Remember, the first character of IFS is used to create $*,
4788# except with old shells:
4789host_os=$*
4790IFS=$ac_save_IFS
4791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4792
4793
4794
4795
4796
4797if  test "x$GCC" = xyes ; then
4798    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4799-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4800-Wbad-function-cast"
4801    case `$CC -dumpversion` in
4802    3.4.* | 4.*)
4803	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4804	;;
4805    esac
4806else
4807    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4808$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4809if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4810  $as_echo_n "(cached) " >&6
4811else
4812  cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h.  */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h.  */
4818$ac_includes_default
4819int
4820main ()
4821{
4822#ifndef __SUNPRO_C
4823  (void) __SUNPRO_C;
4824#endif
4825
4826  ;
4827  return 0;
4828}
4829_ACEOF
4830rm -f conftest.$ac_objext
4831if { (ac_try="$ac_compile"
4832case "(($ac_try" in
4833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834  *) ac_try_echo=$ac_try;;
4835esac
4836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4837$as_echo "$ac_try_echo") >&5
4838  (eval "$ac_compile") 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } && {
4845	 test -z "$ac_c_werror_flag" ||
4846	 test ! -s conftest.err
4847       } && test -s conftest.$ac_objext; then
4848  ac_cv_have_decl___SUNPRO_C=yes
4849else
4850  $as_echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853	ac_cv_have_decl___SUNPRO_C=no
4854fi
4855
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857fi
4858{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4859$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4860if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4861  SUNCC="yes"
4862else
4863  SUNCC="no"
4864fi
4865
4866    if test "x$SUNCC" = "xyes"; then
4867	CWARNFLAGS="-v"
4868    fi
4869fi
4870
4871# Check whether --enable-silent-rules was given.
4872if test "${enable_silent_rules+set}" = set; then
4873  enableval=$enable_silent_rules;
4874fi
4875
4876case $enable_silent_rules in
4877yes) AM_DEFAULT_VERBOSITY=0;;
4878no)  AM_DEFAULT_VERBOSITY=1;;
4879*)   AM_DEFAULT_VERBOSITY=0;;
4880esac
4881AM_BACKSLASH='\'
4882
4883
4884
4885
4886
4887
4888
4889# Check whether --enable-strict-compilation was given.
4890if test "${enable_strict_compilation+set}" = set; then
4891  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4892else
4893  STRICT_COMPILE=no
4894fi
4895
4896if test "x$STRICT_COMPILE" = "xyes"; then
4897	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4898$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4899if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4900  $as_echo_n "(cached) " >&6
4901else
4902  cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h.  */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h.  */
4908$ac_includes_default
4909int
4910main ()
4911{
4912#ifndef __SUNPRO_C
4913  (void) __SUNPRO_C;
4914#endif
4915
4916  ;
4917  return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext
4921if { (ac_try="$ac_compile"
4922case "(($ac_try" in
4923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924  *) ac_try_echo=$ac_try;;
4925esac
4926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4927$as_echo "$ac_try_echo") >&5
4928  (eval "$ac_compile") 2>conftest.er1
4929  ac_status=$?
4930  grep -v '^ *+' conftest.er1 >conftest.err
4931  rm -f conftest.er1
4932  cat conftest.err >&5
4933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); } && {
4935	 test -z "$ac_c_werror_flag" ||
4936	 test ! -s conftest.err
4937       } && test -s conftest.$ac_objext; then
4938  ac_cv_have_decl___SUNPRO_C=yes
4939else
4940  $as_echo "$as_me: failed program was:" >&5
4941sed 's/^/| /' conftest.$ac_ext >&5
4942
4943	ac_cv_have_decl___SUNPRO_C=no
4944fi
4945
4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
4948{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4949$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4950if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4951  SUNCC="yes"
4952else
4953  SUNCC="no"
4954fi
4955
4956	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4957$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4958if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4959  $as_echo_n "(cached) " >&6
4960else
4961  cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h.  */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h.  */
4967$ac_includes_default
4968int
4969main ()
4970{
4971#ifndef __INTEL_COMPILER
4972  (void) __INTEL_COMPILER;
4973#endif
4974
4975  ;
4976  return 0;
4977}
4978_ACEOF
4979rm -f conftest.$ac_objext
4980if { (ac_try="$ac_compile"
4981case "(($ac_try" in
4982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983  *) ac_try_echo=$ac_try;;
4984esac
4985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986$as_echo "$ac_try_echo") >&5
4987  (eval "$ac_compile") 2>conftest.er1
4988  ac_status=$?
4989  grep -v '^ *+' conftest.er1 >conftest.err
4990  rm -f conftest.er1
4991  cat conftest.err >&5
4992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); } && {
4994	 test -z "$ac_c_werror_flag" ||
4995	 test ! -s conftest.err
4996       } && test -s conftest.$ac_objext; then
4997  ac_cv_have_decl___INTEL_COMPILER=yes
4998else
4999  $as_echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002	ac_cv_have_decl___INTEL_COMPILER=no
5003fi
5004
5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006fi
5007{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5008$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5009if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5010  INTELCC="yes"
5011else
5012  INTELCC="no"
5013fi
5014
5015	if test "x$GCC" = xyes ; then
5016		STRICT_CFLAGS="-pedantic -Werror"
5017	elif test "x$SUNCC" = "xyes"; then
5018		STRICT_CFLAGS="-errwarn"
5019    elif test "x$INTELCC" = "xyes"; then
5020		STRICT_CFLAGS="-Werror"
5021	fi
5022fi
5023CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5024
5025
5026
5027
5028# Check whether --with-release-version was given.
5029if test "${with_release_version+set}" = set; then
5030  withval=$with_release_version; RELEASE_VERSION="$withval"
5031else
5032  RELEASE_VERSION=""
5033fi
5034
5035	if test "x$RELEASE_VERSION" != "x"; then
5036		PACKAGE="$PACKAGE-$RELEASE_VERSION"
5037		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
5038		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
5039$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
5040	fi
5041
5042cat >>confdefs.h <<_ACEOF
5043#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5044_ACEOF
5045
5046	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5047	if test "x$PVM" = "x"; then
5048		PVM="0"
5049	fi
5050
5051cat >>confdefs.h <<_ACEOF
5052#define PACKAGE_VERSION_MINOR $PVM
5053_ACEOF
5054
5055	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5056	if test "x$PVP" = "x"; then
5057		PVP="0"
5058	fi
5059
5060cat >>confdefs.h <<_ACEOF
5061#define PACKAGE_VERSION_PATCHLEVEL $PVP
5062_ACEOF
5063
5064
5065
5066CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5067mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5068|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5069echo 'git directory not found: installing possibly empty changelog.' >&2)"
5070
5071
5072
5073
5074macros_docdir=$($PKG_CONFIG --print-errors --variable=docdir xorg-macros)
5075INSTALL_CMD="(cp -f "$macros_docdir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5076mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5077|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5078echo 'util-macros \"docdir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5079
5080
5081
5082
5083
5084if test x$APP_MAN_SUFFIX = x    ; then
5085    APP_MAN_SUFFIX=1
5086fi
5087if test x$APP_MAN_DIR = x    ; then
5088    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5089fi
5090
5091if test x$LIB_MAN_SUFFIX = x    ; then
5092    LIB_MAN_SUFFIX=3
5093fi
5094if test x$LIB_MAN_DIR = x    ; then
5095    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5096fi
5097
5098if test x$FILE_MAN_SUFFIX = x    ; then
5099    case $host_os in
5100	solaris*)	FILE_MAN_SUFFIX=4  ;;
5101	*)		FILE_MAN_SUFFIX=5  ;;
5102    esac
5103fi
5104if test x$FILE_MAN_DIR = x    ; then
5105    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5106fi
5107
5108if test x$MISC_MAN_SUFFIX = x    ; then
5109    case $host_os in
5110	solaris*)	MISC_MAN_SUFFIX=5  ;;
5111	*)		MISC_MAN_SUFFIX=7  ;;
5112    esac
5113fi
5114if test x$MISC_MAN_DIR = x    ; then
5115    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5116fi
5117
5118if test x$DRIVER_MAN_SUFFIX = x    ; then
5119    case $host_os in
5120	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5121	*)		DRIVER_MAN_SUFFIX=4  ;;
5122    esac
5123fi
5124if test x$DRIVER_MAN_DIR = x    ; then
5125    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5126fi
5127
5128if test x$ADMIN_MAN_SUFFIX = x    ; then
5129    case $host_os in
5130	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5131	*)		ADMIN_MAN_SUFFIX=8  ;;
5132    esac
5133fi
5134if test x$ADMIN_MAN_DIR = x    ; then
5135    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5136fi
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154# Checks for programs.
5155# Check whether --enable-static was given.
5156if test "${enable_static+set}" = set; then
5157  enableval=$enable_static; p=${PACKAGE-default}
5158    case $enableval in
5159    yes) enable_static=yes ;;
5160    no) enable_static=no ;;
5161    *)
5162     enable_static=no
5163      # Look at the argument we got.  We use all the common list separators.
5164      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5165      for pkg in $enableval; do
5166	IFS="$lt_save_ifs"
5167	if test "X$pkg" = "X$p"; then
5168	  enable_static=yes
5169	fi
5170      done
5171      IFS="$lt_save_ifs"
5172      ;;
5173    esac
5174else
5175  enable_static=no
5176fi
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186case `pwd` in
5187  *\ * | *\	*)
5188    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5189$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5190esac
5191
5192
5193
5194macro_version='2.2.6'
5195macro_revision='1.3012'
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209ltmain="$ac_aux_dir/ltmain.sh"
5210
5211{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5212$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5213if test "${ac_cv_path_SED+set}" = set; then
5214  $as_echo_n "(cached) " >&6
5215else
5216            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5217     for ac_i in 1 2 3 4 5 6 7; do
5218       ac_script="$ac_script$as_nl$ac_script"
5219     done
5220     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5221     $as_unset ac_script || ac_script=
5222     if test -z "$SED"; then
5223  ac_path_SED_found=false
5224  # Loop through the user's path and test for each of PROGNAME-LIST
5225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230  for ac_prog in sed gsed; do
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5233      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5234# Check for GNU ac_path_SED and select it if it is found.
5235  # Check for GNU $ac_path_SED
5236case `"$ac_path_SED" --version 2>&1` in
5237*GNU*)
5238  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5239*)
5240  ac_count=0
5241  $as_echo_n 0123456789 >"conftest.in"
5242  while :
5243  do
5244    cat "conftest.in" "conftest.in" >"conftest.tmp"
5245    mv "conftest.tmp" "conftest.in"
5246    cp "conftest.in" "conftest.nl"
5247    $as_echo '' >> "conftest.nl"
5248    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250    ac_count=`expr $ac_count + 1`
5251    if test $ac_count -gt ${ac_path_SED_max-0}; then
5252      # Best one so far, save it but keep looking for a better one
5253      ac_cv_path_SED="$ac_path_SED"
5254      ac_path_SED_max=$ac_count
5255    fi
5256    # 10*(2^10) chars as input seems more than enough
5257    test $ac_count -gt 10 && break
5258  done
5259  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260esac
5261
5262      $ac_path_SED_found && break 3
5263    done
5264  done
5265done
5266IFS=$as_save_IFS
5267  if test -z "$ac_cv_path_SED"; then
5268    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5269$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5270   { (exit 1); exit 1; }; }
5271  fi
5272else
5273  ac_cv_path_SED=$SED
5274fi
5275
5276fi
5277{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5278$as_echo "$ac_cv_path_SED" >&6; }
5279 SED="$ac_cv_path_SED"
5280  rm -f conftest.sed
5281
5282test -z "$SED" && SED=sed
5283Xsed="$SED -e 1s/^X//"
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5296$as_echo_n "checking for fgrep... " >&6; }
5297if test "${ac_cv_path_FGREP+set}" = set; then
5298  $as_echo_n "(cached) " >&6
5299else
5300  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5301   then ac_cv_path_FGREP="$GREP -F"
5302   else
5303     if test -z "$FGREP"; then
5304  ac_path_FGREP_found=false
5305  # Loop through the user's path and test for each of PROGNAME-LIST
5306  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5308do
5309  IFS=$as_save_IFS
5310  test -z "$as_dir" && as_dir=.
5311  for ac_prog in fgrep; do
5312    for ac_exec_ext in '' $ac_executable_extensions; do
5313      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5314      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5315# Check for GNU ac_path_FGREP and select it if it is found.
5316  # Check for GNU $ac_path_FGREP
5317case `"$ac_path_FGREP" --version 2>&1` in
5318*GNU*)
5319  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5320*)
5321  ac_count=0
5322  $as_echo_n 0123456789 >"conftest.in"
5323  while :
5324  do
5325    cat "conftest.in" "conftest.in" >"conftest.tmp"
5326    mv "conftest.tmp" "conftest.in"
5327    cp "conftest.in" "conftest.nl"
5328    $as_echo 'FGREP' >> "conftest.nl"
5329    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331    ac_count=`expr $ac_count + 1`
5332    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5333      # Best one so far, save it but keep looking for a better one
5334      ac_cv_path_FGREP="$ac_path_FGREP"
5335      ac_path_FGREP_max=$ac_count
5336    fi
5337    # 10*(2^10) chars as input seems more than enough
5338    test $ac_count -gt 10 && break
5339  done
5340  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341esac
5342
5343      $ac_path_FGREP_found && break 3
5344    done
5345  done
5346done
5347IFS=$as_save_IFS
5348  if test -z "$ac_cv_path_FGREP"; then
5349    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5350$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5351   { (exit 1); exit 1; }; }
5352  fi
5353else
5354  ac_cv_path_FGREP=$FGREP
5355fi
5356
5357   fi
5358fi
5359{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5360$as_echo "$ac_cv_path_FGREP" >&6; }
5361 FGREP="$ac_cv_path_FGREP"
5362
5363
5364test -z "$GREP" && GREP=grep
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384# Check whether --with-gnu-ld was given.
5385if test "${with_gnu_ld+set}" = set; then
5386  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5387else
5388  with_gnu_ld=no
5389fi
5390
5391ac_prog=ld
5392if test "$GCC" = yes; then
5393  # Check if gcc -print-prog-name=ld gives a path.
5394  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5395$as_echo_n "checking for ld used by $CC... " >&6; }
5396  case $host in
5397  *-*-mingw*)
5398    # gcc leaves a trailing carriage return which upsets mingw
5399    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5400  *)
5401    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5402  esac
5403  case $ac_prog in
5404    # Accept absolute paths.
5405    [\\/]* | ?:[\\/]*)
5406      re_direlt='/[^/][^/]*/\.\./'
5407      # Canonicalize the pathname of ld
5408      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5409      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5410	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5411      done
5412      test -z "$LD" && LD="$ac_prog"
5413      ;;
5414  "")
5415    # If it fails, then pretend we aren't using GCC.
5416    ac_prog=ld
5417    ;;
5418  *)
5419    # If it is relative, then search for the first ld in PATH.
5420    with_gnu_ld=unknown
5421    ;;
5422  esac
5423elif test "$with_gnu_ld" = yes; then
5424  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5425$as_echo_n "checking for GNU ld... " >&6; }
5426else
5427  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5428$as_echo_n "checking for non-GNU ld... " >&6; }
5429fi
5430if test "${lt_cv_path_LD+set}" = set; then
5431  $as_echo_n "(cached) " >&6
5432else
5433  if test -z "$LD"; then
5434  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5435  for ac_dir in $PATH; do
5436    IFS="$lt_save_ifs"
5437    test -z "$ac_dir" && ac_dir=.
5438    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5439      lt_cv_path_LD="$ac_dir/$ac_prog"
5440      # Check to see if the program is GNU ld.  I'd rather use --version,
5441      # but apparently some variants of GNU ld only accept -v.
5442      # Break only if it was the GNU/non-GNU ld that we prefer.
5443      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5444      *GNU* | *'with BFD'*)
5445	test "$with_gnu_ld" != no && break
5446	;;
5447      *)
5448	test "$with_gnu_ld" != yes && break
5449	;;
5450      esac
5451    fi
5452  done
5453  IFS="$lt_save_ifs"
5454else
5455  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5456fi
5457fi
5458
5459LD="$lt_cv_path_LD"
5460if test -n "$LD"; then
5461  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5462$as_echo "$LD" >&6; }
5463else
5464  { $as_echo "$as_me:$LINENO: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5468$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5469   { (exit 1); exit 1; }; }
5470{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5471$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5472if test "${lt_cv_prog_gnu_ld+set}" = set; then
5473  $as_echo_n "(cached) " >&6
5474else
5475  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5476case `$LD -v 2>&1 </dev/null` in
5477*GNU* | *'with BFD'*)
5478  lt_cv_prog_gnu_ld=yes
5479  ;;
5480*)
5481  lt_cv_prog_gnu_ld=no
5482  ;;
5483esac
5484fi
5485{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5486$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5487with_gnu_ld=$lt_cv_prog_gnu_ld
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5498$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5499if test "${lt_cv_path_NM+set}" = set; then
5500  $as_echo_n "(cached) " >&6
5501else
5502  if test -n "$NM"; then
5503  # Let the user override the test.
5504  lt_cv_path_NM="$NM"
5505else
5506  lt_nm_to_check="${ac_tool_prefix}nm"
5507  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5508    lt_nm_to_check="$lt_nm_to_check nm"
5509  fi
5510  for lt_tmp_nm in $lt_nm_to_check; do
5511    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5513      IFS="$lt_save_ifs"
5514      test -z "$ac_dir" && ac_dir=.
5515      tmp_nm="$ac_dir/$lt_tmp_nm"
5516      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5517	# Check to see if the nm accepts a BSD-compat flag.
5518	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5519	#   nm: unknown option "B" ignored
5520	# Tru64's nm complains that /dev/null is an invalid object file
5521	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5522	*/dev/null* | *'Invalid file or object type'*)
5523	  lt_cv_path_NM="$tmp_nm -B"
5524	  break
5525	  ;;
5526	*)
5527	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5528	  */dev/null*)
5529	    lt_cv_path_NM="$tmp_nm -p"
5530	    break
5531	    ;;
5532	  *)
5533	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5534	    continue # so that we can try to find one that supports BSD flags
5535	    ;;
5536	  esac
5537	  ;;
5538	esac
5539      fi
5540    done
5541    IFS="$lt_save_ifs"
5542  done
5543  : ${lt_cv_path_NM=no}
5544fi
5545fi
5546{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5547$as_echo "$lt_cv_path_NM" >&6; }
5548if test "$lt_cv_path_NM" != "no"; then
5549  NM="$lt_cv_path_NM"
5550else
5551  # Didn't find any BSD compatible name lister, look for dumpbin.
5552  if test -n "$ac_tool_prefix"; then
5553  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5554  do
5555    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
5559if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5560  $as_echo_n "(cached) " >&6
5561else
5562  if test -n "$DUMPBIN"; then
5563  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568  IFS=$as_save_IFS
5569  test -z "$as_dir" && as_dir=.
5570  for ac_exec_ext in '' $ac_executable_extensions; do
5571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5573    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574    break 2
5575  fi
5576done
5577done
5578IFS=$as_save_IFS
5579
5580fi
5581fi
5582DUMPBIN=$ac_cv_prog_DUMPBIN
5583if test -n "$DUMPBIN"; then
5584  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5585$as_echo "$DUMPBIN" >&6; }
5586else
5587  { $as_echo "$as_me:$LINENO: result: no" >&5
5588$as_echo "no" >&6; }
5589fi
5590
5591
5592    test -n "$DUMPBIN" && break
5593  done
5594fi
5595if test -z "$DUMPBIN"; then
5596  ac_ct_DUMPBIN=$DUMPBIN
5597  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5598do
5599  # Extract the first word of "$ac_prog", so it can be a program name with args.
5600set dummy $ac_prog; ac_word=$2
5601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
5603if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5604  $as_echo_n "(cached) " >&6
5605else
5606  if test -n "$ac_ct_DUMPBIN"; then
5607  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612  IFS=$as_save_IFS
5613  test -z "$as_dir" && as_dir=.
5614  for ac_exec_ext in '' $ac_executable_extensions; do
5615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5617    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618    break 2
5619  fi
5620done
5621done
5622IFS=$as_save_IFS
5623
5624fi
5625fi
5626ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5627if test -n "$ac_ct_DUMPBIN"; then
5628  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5629$as_echo "$ac_ct_DUMPBIN" >&6; }
5630else
5631  { $as_echo "$as_me:$LINENO: result: no" >&5
5632$as_echo "no" >&6; }
5633fi
5634
5635
5636  test -n "$ac_ct_DUMPBIN" && break
5637done
5638
5639  if test "x$ac_ct_DUMPBIN" = x; then
5640    DUMPBIN=":"
5641  else
5642    case $cross_compiling:$ac_tool_warned in
5643yes:)
5644{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646ac_tool_warned=yes ;;
5647esac
5648    DUMPBIN=$ac_ct_DUMPBIN
5649  fi
5650fi
5651
5652
5653  if test "$DUMPBIN" != ":"; then
5654    NM="$DUMPBIN"
5655  fi
5656fi
5657test -z "$NM" && NM=nm
5658
5659
5660
5661
5662
5663
5664{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5665$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5666if test "${lt_cv_nm_interface+set}" = set; then
5667  $as_echo_n "(cached) " >&6
5668else
5669  lt_cv_nm_interface="BSD nm"
5670  echo "int some_variable = 0;" > conftest.$ac_ext
5671  (eval echo "\"\$as_me:5671: $ac_compile\"" >&5)
5672  (eval "$ac_compile" 2>conftest.err)
5673  cat conftest.err >&5
5674  (eval echo "\"\$as_me:5674: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5675  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5676  cat conftest.err >&5
5677  (eval echo "\"\$as_me:5677: output\"" >&5)
5678  cat conftest.out >&5
5679  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5680    lt_cv_nm_interface="MS dumpbin"
5681  fi
5682  rm -f conftest*
5683fi
5684{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5685$as_echo "$lt_cv_nm_interface" >&6; }
5686
5687{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5688$as_echo_n "checking whether ln -s works... " >&6; }
5689LN_S=$as_ln_s
5690if test "$LN_S" = "ln -s"; then
5691  { $as_echo "$as_me:$LINENO: result: yes" >&5
5692$as_echo "yes" >&6; }
5693else
5694  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5695$as_echo "no, using $LN_S" >&6; }
5696fi
5697
5698# find the maximum length of command line arguments
5699{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5700$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5701if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5702  $as_echo_n "(cached) " >&6
5703else
5704    i=0
5705  teststring="ABCD"
5706
5707  case $build_os in
5708  msdosdjgpp*)
5709    # On DJGPP, this test can blow up pretty badly due to problems in libc
5710    # (any single argument exceeding 2000 bytes causes a buffer overrun
5711    # during glob expansion).  Even if it were fixed, the result of this
5712    # check would be larger than it should be.
5713    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5714    ;;
5715
5716  gnu*)
5717    # Under GNU Hurd, this test is not required because there is
5718    # no limit to the length of command line arguments.
5719    # Libtool will interpret -1 as no limit whatsoever
5720    lt_cv_sys_max_cmd_len=-1;
5721    ;;
5722
5723  cygwin* | mingw* | cegcc*)
5724    # On Win9x/ME, this test blows up -- it succeeds, but takes
5725    # about 5 minutes as the teststring grows exponentially.
5726    # Worse, since 9x/ME are not pre-emptively multitasking,
5727    # you end up with a "frozen" computer, even though with patience
5728    # the test eventually succeeds (with a max line length of 256k).
5729    # Instead, let's just punt: use the minimum linelength reported by
5730    # all of the supported platforms: 8192 (on NT/2K/XP).
5731    lt_cv_sys_max_cmd_len=8192;
5732    ;;
5733
5734  amigaos*)
5735    # On AmigaOS with pdksh, this test takes hours, literally.
5736    # So we just punt and use a minimum line length of 8192.
5737    lt_cv_sys_max_cmd_len=8192;
5738    ;;
5739
5740  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5741    # This has been around since 386BSD, at least.  Likely further.
5742    if test -x /sbin/sysctl; then
5743      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5744    elif test -x /usr/sbin/sysctl; then
5745      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5746    else
5747      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5748    fi
5749    # And add a safety zone
5750    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5751    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5752    ;;
5753
5754  interix*)
5755    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5756    lt_cv_sys_max_cmd_len=196608
5757    ;;
5758
5759  osf*)
5760    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5761    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5762    # nice to cause kernel panics so lets avoid the loop below.
5763    # First set a reasonable default.
5764    lt_cv_sys_max_cmd_len=16384
5765    #
5766    if test -x /sbin/sysconfig; then
5767      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5768        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5769      esac
5770    fi
5771    ;;
5772  sco3.2v5*)
5773    lt_cv_sys_max_cmd_len=102400
5774    ;;
5775  sysv5* | sco5v6* | sysv4.2uw2*)
5776    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5777    if test -n "$kargmax"; then
5778      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5779    else
5780      lt_cv_sys_max_cmd_len=32768
5781    fi
5782    ;;
5783  *)
5784    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5785    if test -n "$lt_cv_sys_max_cmd_len"; then
5786      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5787      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5788    else
5789      # Make teststring a little bigger before we do anything with it.
5790      # a 1K string should be a reasonable start.
5791      for i in 1 2 3 4 5 6 7 8 ; do
5792        teststring=$teststring$teststring
5793      done
5794      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5795      # If test is not a shell built-in, we'll probably end up computing a
5796      # maximum length that is only half of the actual maximum length, but
5797      # we can't tell.
5798      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5799	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5800	      test $i != 17 # 1/2 MB should be enough
5801      do
5802        i=`expr $i + 1`
5803        teststring=$teststring$teststring
5804      done
5805      # Only check the string length outside the loop.
5806      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5807      teststring=
5808      # Add a significant safety factor because C++ compilers can tack on
5809      # massive amounts of additional arguments before passing them to the
5810      # linker.  It appears as though 1/2 is a usable value.
5811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5812    fi
5813    ;;
5814  esac
5815
5816fi
5817
5818if test -n $lt_cv_sys_max_cmd_len ; then
5819  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5820$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5821else
5822  { $as_echo "$as_me:$LINENO: result: none" >&5
5823$as_echo "none" >&6; }
5824fi
5825max_cmd_len=$lt_cv_sys_max_cmd_len
5826
5827
5828
5829
5830
5831
5832: ${CP="cp -f"}
5833: ${MV="mv -f"}
5834: ${RM="rm -f"}
5835
5836{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5837$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5838# Try some XSI features
5839xsi_shell=no
5840( _lt_dummy="a/b/c"
5841  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5842      = c,a/b,, \
5843    && eval 'test $(( 1 + 1 )) -eq 2 \
5844    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5845  && xsi_shell=yes
5846{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5847$as_echo "$xsi_shell" >&6; }
5848
5849
5850{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5851$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5852lt_shell_append=no
5853( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5854    >/dev/null 2>&1 \
5855  && lt_shell_append=yes
5856{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5857$as_echo "$lt_shell_append" >&6; }
5858
5859
5860if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5861  lt_unset=unset
5862else
5863  lt_unset=false
5864fi
5865
5866
5867
5868
5869
5870# test EBCDIC or ASCII
5871case `echo X|tr X '\101'` in
5872 A) # ASCII based system
5873    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5874  lt_SP2NL='tr \040 \012'
5875  lt_NL2SP='tr \015\012 \040\040'
5876  ;;
5877 *) # EBCDIC based system
5878  lt_SP2NL='tr \100 \n'
5879  lt_NL2SP='tr \r\n \100\100'
5880  ;;
5881esac
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5892$as_echo_n "checking for $LD option to reload object files... " >&6; }
5893if test "${lt_cv_ld_reload_flag+set}" = set; then
5894  $as_echo_n "(cached) " >&6
5895else
5896  lt_cv_ld_reload_flag='-r'
5897fi
5898{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5899$as_echo "$lt_cv_ld_reload_flag" >&6; }
5900reload_flag=$lt_cv_ld_reload_flag
5901case $reload_flag in
5902"" | " "*) ;;
5903*) reload_flag=" $reload_flag" ;;
5904esac
5905reload_cmds='$LD$reload_flag -o $output$reload_objs'
5906case $host_os in
5907  darwin*)
5908    if test "$GCC" = yes; then
5909      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5910    else
5911      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5912    fi
5913    ;;
5914esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924if test -n "$ac_tool_prefix"; then
5925  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5926set dummy ${ac_tool_prefix}objdump; ac_word=$2
5927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5930  $as_echo_n "(cached) " >&6
5931else
5932  if test -n "$OBJDUMP"; then
5933  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940  for ac_exec_ext in '' $ac_executable_extensions; do
5941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5943    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944    break 2
5945  fi
5946done
5947done
5948IFS=$as_save_IFS
5949
5950fi
5951fi
5952OBJDUMP=$ac_cv_prog_OBJDUMP
5953if test -n "$OBJDUMP"; then
5954  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5955$as_echo "$OBJDUMP" >&6; }
5956else
5957  { $as_echo "$as_me:$LINENO: result: no" >&5
5958$as_echo "no" >&6; }
5959fi
5960
5961
5962fi
5963if test -z "$ac_cv_prog_OBJDUMP"; then
5964  ac_ct_OBJDUMP=$OBJDUMP
5965  # Extract the first word of "objdump", so it can be a program name with args.
5966set dummy objdump; ac_word=$2
5967{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5970  $as_echo_n "(cached) " >&6
5971else
5972  if test -n "$ac_ct_OBJDUMP"; then
5973  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980  for ac_exec_ext in '' $ac_executable_extensions; do
5981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5983    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987done
5988IFS=$as_save_IFS
5989
5990fi
5991fi
5992ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5993if test -n "$ac_ct_OBJDUMP"; then
5994  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5995$as_echo "$ac_ct_OBJDUMP" >&6; }
5996else
5997  { $as_echo "$as_me:$LINENO: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001  if test "x$ac_ct_OBJDUMP" = x; then
6002    OBJDUMP="false"
6003  else
6004    case $cross_compiling:$ac_tool_warned in
6005yes:)
6006{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008ac_tool_warned=yes ;;
6009esac
6010    OBJDUMP=$ac_ct_OBJDUMP
6011  fi
6012else
6013  OBJDUMP="$ac_cv_prog_OBJDUMP"
6014fi
6015
6016test -z "$OBJDUMP" && OBJDUMP=objdump
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6027$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6028if test "${lt_cv_deplibs_check_method+set}" = set; then
6029  $as_echo_n "(cached) " >&6
6030else
6031  lt_cv_file_magic_cmd='$MAGIC_CMD'
6032lt_cv_file_magic_test_file=
6033lt_cv_deplibs_check_method='unknown'
6034# Need to set the preceding variable on all platforms that support
6035# interlibrary dependencies.
6036# 'none' -- dependencies not supported.
6037# `unknown' -- same as none, but documents that we really don't know.
6038# 'pass_all' -- all dependencies passed with no checks.
6039# 'test_compile' -- check by making test program.
6040# 'file_magic [[regex]]' -- check by looking for files in library path
6041# which responds to the $file_magic_cmd with a given extended regex.
6042# If you have `file' or equivalent on your system and you're not sure
6043# whether `pass_all' will *always* work, you probably want this one.
6044
6045case $host_os in
6046aix[4-9]*)
6047  lt_cv_deplibs_check_method=pass_all
6048  ;;
6049
6050beos*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054bsdi[45]*)
6055  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6056  lt_cv_file_magic_cmd='/usr/bin/file -L'
6057  lt_cv_file_magic_test_file=/shlib/libc.so
6058  ;;
6059
6060cygwin*)
6061  # func_win32_libid is a shell function defined in ltmain.sh
6062  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6063  lt_cv_file_magic_cmd='func_win32_libid'
6064  ;;
6065
6066mingw* | pw32*)
6067  # Base MSYS/MinGW do not provide the 'file' command needed by
6068  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6069  # unless we find 'file', for example because we are cross-compiling.
6070  if ( file / ) >/dev/null 2>&1; then
6071    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6072    lt_cv_file_magic_cmd='func_win32_libid'
6073  else
6074    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6075    lt_cv_file_magic_cmd='$OBJDUMP -f'
6076  fi
6077  ;;
6078
6079cegcc)
6080  # use the weaker test based on 'objdump'. See mingw*.
6081  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6082  lt_cv_file_magic_cmd='$OBJDUMP -f'
6083  ;;
6084
6085darwin* | rhapsody*)
6086  lt_cv_deplibs_check_method=pass_all
6087  ;;
6088
6089freebsd* | dragonfly*)
6090  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6091    case $host_cpu in
6092    i*86 )
6093      # Not sure whether the presence of OpenBSD here was a mistake.
6094      # Let's accept both of them until this is cleared up.
6095      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6096      lt_cv_file_magic_cmd=/usr/bin/file
6097      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6098      ;;
6099    esac
6100  else
6101    lt_cv_deplibs_check_method=pass_all
6102  fi
6103  ;;
6104
6105gnu*)
6106  lt_cv_deplibs_check_method=pass_all
6107  ;;
6108
6109hpux10.20* | hpux11*)
6110  lt_cv_file_magic_cmd=/usr/bin/file
6111  case $host_cpu in
6112  ia64*)
6113    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6115    ;;
6116  hppa*64*)
6117    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]'
6118    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6119    ;;
6120  *)
6121    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6122    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6123    ;;
6124  esac
6125  ;;
6126
6127interix[3-9]*)
6128  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6130  ;;
6131
6132irix5* | irix6* | nonstopux*)
6133  case $LD in
6134  *-32|*"-32 ") libmagic=32-bit;;
6135  *-n32|*"-n32 ") libmagic=N32;;
6136  *-64|*"-64 ") libmagic=64-bit;;
6137  *) libmagic=never-match;;
6138  esac
6139  lt_cv_deplibs_check_method=pass_all
6140  ;;
6141
6142# This must be Linux ELF.
6143linux* | k*bsd*-gnu)
6144  lt_cv_deplibs_check_method=pass_all
6145  ;;
6146
6147netbsd*)
6148  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6149    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150  else
6151    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6152  fi
6153  ;;
6154
6155newos6*)
6156  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157  lt_cv_file_magic_cmd=/usr/bin/file
6158  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6159  ;;
6160
6161*nto* | *qnx*)
6162  lt_cv_deplibs_check_method=pass_all
6163  ;;
6164
6165openbsd*)
6166  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6168  else
6169    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6170  fi
6171  ;;
6172
6173osf3* | osf4* | osf5*)
6174  lt_cv_deplibs_check_method=pass_all
6175  ;;
6176
6177rdos*)
6178  lt_cv_deplibs_check_method=pass_all
6179  ;;
6180
6181solaris*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6186  lt_cv_deplibs_check_method=pass_all
6187  ;;
6188
6189sysv4 | sysv4.3*)
6190  case $host_vendor in
6191  motorola)
6192    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]'
6193    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6194    ;;
6195  ncr)
6196    lt_cv_deplibs_check_method=pass_all
6197    ;;
6198  sequent)
6199    lt_cv_file_magic_cmd='/bin/file'
6200    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6201    ;;
6202  sni)
6203    lt_cv_file_magic_cmd='/bin/file'
6204    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6205    lt_cv_file_magic_test_file=/lib/libc.so
6206    ;;
6207  siemens)
6208    lt_cv_deplibs_check_method=pass_all
6209    ;;
6210  pc)
6211    lt_cv_deplibs_check_method=pass_all
6212    ;;
6213  esac
6214  ;;
6215
6216tpf*)
6217  lt_cv_deplibs_check_method=pass_all
6218  ;;
6219esac
6220
6221fi
6222{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6223$as_echo "$lt_cv_deplibs_check_method" >&6; }
6224file_magic_cmd=$lt_cv_file_magic_cmd
6225deplibs_check_method=$lt_cv_deplibs_check_method
6226test -z "$deplibs_check_method" && deplibs_check_method=unknown
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239if test -n "$ac_tool_prefix"; then
6240  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}ar; ac_word=$2
6242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
6244if test "${ac_cv_prog_AR+set}" = set; then
6245  $as_echo_n "(cached) " >&6
6246else
6247  if test -n "$AR"; then
6248  ac_cv_prog_AR="$AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253  IFS=$as_save_IFS
6254  test -z "$as_dir" && as_dir=.
6255  for ac_exec_ext in '' $ac_executable_extensions; do
6256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257    ac_cv_prog_AR="${ac_tool_prefix}ar"
6258    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259    break 2
6260  fi
6261done
6262done
6263IFS=$as_save_IFS
6264
6265fi
6266fi
6267AR=$ac_cv_prog_AR
6268if test -n "$AR"; then
6269  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6270$as_echo "$AR" >&6; }
6271else
6272  { $as_echo "$as_me:$LINENO: result: no" >&5
6273$as_echo "no" >&6; }
6274fi
6275
6276
6277fi
6278if test -z "$ac_cv_prog_AR"; then
6279  ac_ct_AR=$AR
6280  # Extract the first word of "ar", so it can be a program name with args.
6281set dummy ar; ac_word=$2
6282{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6285  $as_echo_n "(cached) " >&6
6286else
6287  if test -n "$ac_ct_AR"; then
6288  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295  for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_prog_ac_ct_AR="ar"
6298    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307ac_ct_AR=$ac_cv_prog_ac_ct_AR
6308if test -n "$ac_ct_AR"; then
6309  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6310$as_echo "$ac_ct_AR" >&6; }
6311else
6312  { $as_echo "$as_me:$LINENO: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316  if test "x$ac_ct_AR" = x; then
6317    AR="false"
6318  else
6319    case $cross_compiling:$ac_tool_warned in
6320yes:)
6321{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325    AR=$ac_ct_AR
6326  fi
6327else
6328  AR="$ac_cv_prog_AR"
6329fi
6330
6331test -z "$AR" && AR=ar
6332test -z "$AR_FLAGS" && AR_FLAGS=cru
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344if test -n "$ac_tool_prefix"; then
6345  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6346set dummy ${ac_tool_prefix}strip; ac_word=$2
6347{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if test "${ac_cv_prog_STRIP+set}" = set; then
6350  $as_echo_n "(cached) " >&6
6351else
6352  if test -n "$STRIP"; then
6353  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360  for ac_exec_ext in '' $ac_executable_extensions; do
6361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6363    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372STRIP=$ac_cv_prog_STRIP
6373if test -n "$STRIP"; then
6374  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6375$as_echo "$STRIP" >&6; }
6376else
6377  { $as_echo "$as_me:$LINENO: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382fi
6383if test -z "$ac_cv_prog_STRIP"; then
6384  ac_ct_STRIP=$STRIP
6385  # Extract the first word of "strip", so it can be a program name with args.
6386set dummy strip; ac_word=$2
6387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6388$as_echo_n "checking for $ac_word... " >&6; }
6389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6390  $as_echo_n "(cached) " >&6
6391else
6392  if test -n "$ac_ct_STRIP"; then
6393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398  IFS=$as_save_IFS
6399  test -z "$as_dir" && as_dir=.
6400  for ac_exec_ext in '' $ac_executable_extensions; do
6401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402    ac_cv_prog_ac_ct_STRIP="strip"
6403    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404    break 2
6405  fi
6406done
6407done
6408IFS=$as_save_IFS
6409
6410fi
6411fi
6412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6413if test -n "$ac_ct_STRIP"; then
6414  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6415$as_echo "$ac_ct_STRIP" >&6; }
6416else
6417  { $as_echo "$as_me:$LINENO: result: no" >&5
6418$as_echo "no" >&6; }
6419fi
6420
6421  if test "x$ac_ct_STRIP" = x; then
6422    STRIP=":"
6423  else
6424    case $cross_compiling:$ac_tool_warned in
6425yes:)
6426{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428ac_tool_warned=yes ;;
6429esac
6430    STRIP=$ac_ct_STRIP
6431  fi
6432else
6433  STRIP="$ac_cv_prog_STRIP"
6434fi
6435
6436test -z "$STRIP" && STRIP=:
6437
6438
6439
6440
6441
6442
6443if test -n "$ac_tool_prefix"; then
6444  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if test "${ac_cv_prog_RANLIB+set}" = set; then
6449  $as_echo_n "(cached) " >&6
6450else
6451  if test -n "$RANLIB"; then
6452  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457  IFS=$as_save_IFS
6458  test -z "$as_dir" && as_dir=.
6459  for ac_exec_ext in '' $ac_executable_extensions; do
6460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6462    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471RANLIB=$ac_cv_prog_RANLIB
6472if test -n "$RANLIB"; then
6473  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6474$as_echo "$RANLIB" >&6; }
6475else
6476  { $as_echo "$as_me:$LINENO: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
6482if test -z "$ac_cv_prog_RANLIB"; then
6483  ac_ct_RANLIB=$RANLIB
6484  # Extract the first word of "ranlib", so it can be a program name with args.
6485set dummy ranlib; ac_word=$2
6486{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_RANLIB"; then
6492  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499  for ac_exec_ext in '' $ac_executable_extensions; do
6500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501    ac_cv_prog_ac_ct_RANLIB="ranlib"
6502    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6512if test -n "$ac_ct_RANLIB"; then
6513  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6514$as_echo "$ac_ct_RANLIB" >&6; }
6515else
6516  { $as_echo "$as_me:$LINENO: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520  if test "x$ac_ct_RANLIB" = x; then
6521    RANLIB=":"
6522  else
6523    case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529    RANLIB=$ac_ct_RANLIB
6530  fi
6531else
6532  RANLIB="$ac_cv_prog_RANLIB"
6533fi
6534
6535test -z "$RANLIB" && RANLIB=:
6536
6537
6538
6539
6540
6541
6542# Determine commands to create old-style static archives.
6543old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6544old_postinstall_cmds='chmod 644 $oldlib'
6545old_postuninstall_cmds=
6546
6547if test -n "$RANLIB"; then
6548  case $host_os in
6549  openbsd*)
6550    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6551    ;;
6552  *)
6553    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6554    ;;
6555  esac
6556  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6557fi
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592# If no C compiler was specified, use CC.
6593LTCC=${LTCC-"$CC"}
6594
6595# If no C compiler flags were specified, use CFLAGS.
6596LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6597
6598# Allow CC to be a program name with arguments.
6599compiler=$CC
6600
6601
6602# Check for command to grab the raw symbol name followed by C symbol from nm.
6603{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6604$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6605if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6606  $as_echo_n "(cached) " >&6
6607else
6608
6609# These are sane defaults that work on at least a few old systems.
6610# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6611
6612# Character class describing NM global symbol codes.
6613symcode='[BCDEGRST]'
6614
6615# Regexp to match symbols that can be accessed directly from C.
6616sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6617
6618# Define system-specific variables.
6619case $host_os in
6620aix*)
6621  symcode='[BCDT]'
6622  ;;
6623cygwin* | mingw* | pw32* | cegcc*)
6624  symcode='[ABCDGISTW]'
6625  ;;
6626hpux*)
6627  if test "$host_cpu" = ia64; then
6628    symcode='[ABCDEGRST]'
6629  fi
6630  ;;
6631irix* | nonstopux*)
6632  symcode='[BCDEGRST]'
6633  ;;
6634osf*)
6635  symcode='[BCDEGQRST]'
6636  ;;
6637solaris*)
6638  symcode='[BDRT]'
6639  ;;
6640sco3.2v5*)
6641  symcode='[DT]'
6642  ;;
6643sysv4.2uw2*)
6644  symcode='[DT]'
6645  ;;
6646sysv5* | sco5v6* | unixware* | OpenUNIX*)
6647  symcode='[ABDT]'
6648  ;;
6649sysv4)
6650  symcode='[DFNSTU]'
6651  ;;
6652esac
6653
6654# If we're using GNU nm, then use its standard symbol codes.
6655case `$NM -V 2>&1` in
6656*GNU* | *'with BFD'*)
6657  symcode='[ABCDGIRSTW]' ;;
6658esac
6659
6660# Transform an extracted symbol line into a proper C declaration.
6661# Some systems (esp. on ia64) link data and code symbols differently,
6662# so use this general approach.
6663lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6664
6665# Transform an extracted symbol line into symbol name and symbol address
6666lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6667lt_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'"
6668
6669# Handle CRLF in mingw tool chain
6670opt_cr=
6671case $build_os in
6672mingw*)
6673  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6674  ;;
6675esac
6676
6677# Try without a prefix underscore, then with it.
6678for ac_symprfx in "" "_"; do
6679
6680  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6681  symxfrm="\\1 $ac_symprfx\\2 \\2"
6682
6683  # Write the raw and C identifiers.
6684  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6685    # Fake it for dumpbin and say T for any non-static function
6686    # and D for any global variable.
6687    # Also find C++ and __fastcall symbols from MSVC++,
6688    # which start with @ or ?.
6689    lt_cv_sys_global_symbol_pipe="$AWK '"\
6690"     {last_section=section; section=\$ 3};"\
6691"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6692"     \$ 0!~/External *\|/{next};"\
6693"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6694"     {if(hide[section]) next};"\
6695"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6696"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6697"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6698"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6699"     ' prfx=^$ac_symprfx"
6700  else
6701    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6702  fi
6703
6704  # Check to see that the pipe works correctly.
6705  pipe_works=no
6706
6707  rm -f conftest*
6708  cat > conftest.$ac_ext <<_LT_EOF
6709#ifdef __cplusplus
6710extern "C" {
6711#endif
6712char nm_test_var;
6713void nm_test_func(void);
6714void nm_test_func(void){}
6715#ifdef __cplusplus
6716}
6717#endif
6718int main(){nm_test_var='a';nm_test_func();return(0);}
6719_LT_EOF
6720
6721  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722  (eval $ac_compile) 2>&5
6723  ac_status=$?
6724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); }; then
6726    # Now try to grab the symbols.
6727    nlist=conftest.nm
6728    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6729  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6730  ac_status=$?
6731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); } && test -s "$nlist"; then
6733      # Try sorting and uniquifying the output.
6734      if sort "$nlist" | uniq > "$nlist"T; then
6735	mv -f "$nlist"T "$nlist"
6736      else
6737	rm -f "$nlist"T
6738      fi
6739
6740      # Make sure that we snagged all the symbols we need.
6741      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6742	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6743	  cat <<_LT_EOF > conftest.$ac_ext
6744#ifdef __cplusplus
6745extern "C" {
6746#endif
6747
6748_LT_EOF
6749	  # Now generate the symbol file.
6750	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6751
6752	  cat <<_LT_EOF >> conftest.$ac_ext
6753
6754/* The mapping between symbol names and symbols.  */
6755const struct {
6756  const char *name;
6757  void       *address;
6758}
6759lt__PROGRAM__LTX_preloaded_symbols[] =
6760{
6761  { "@PROGRAM@", (void *) 0 },
6762_LT_EOF
6763	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6764	  cat <<\_LT_EOF >> conftest.$ac_ext
6765  {0, (void *) 0}
6766};
6767
6768/* This works around a problem in FreeBSD linker */
6769#ifdef FREEBSD_WORKAROUND
6770static const void *lt_preloaded_setup() {
6771  return lt__PROGRAM__LTX_preloaded_symbols;
6772}
6773#endif
6774
6775#ifdef __cplusplus
6776}
6777#endif
6778_LT_EOF
6779	  # Now try linking the two files.
6780	  mv conftest.$ac_objext conftstm.$ac_objext
6781	  lt_save_LIBS="$LIBS"
6782	  lt_save_CFLAGS="$CFLAGS"
6783	  LIBS="conftstm.$ac_objext"
6784	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6785	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786  (eval $ac_link) 2>&5
6787  ac_status=$?
6788  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6790	    pipe_works=yes
6791	  fi
6792	  LIBS="$lt_save_LIBS"
6793	  CFLAGS="$lt_save_CFLAGS"
6794	else
6795	  echo "cannot find nm_test_func in $nlist" >&5
6796	fi
6797      else
6798	echo "cannot find nm_test_var in $nlist" >&5
6799      fi
6800    else
6801      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6802    fi
6803  else
6804    echo "$progname: failed program was:" >&5
6805    cat conftest.$ac_ext >&5
6806  fi
6807  rm -rf conftest* conftst*
6808
6809  # Do not use the global_symbol_pipe unless it works.
6810  if test "$pipe_works" = yes; then
6811    break
6812  else
6813    lt_cv_sys_global_symbol_pipe=
6814  fi
6815done
6816
6817fi
6818
6819if test -z "$lt_cv_sys_global_symbol_pipe"; then
6820  lt_cv_sys_global_symbol_to_cdecl=
6821fi
6822if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6823  { $as_echo "$as_me:$LINENO: result: failed" >&5
6824$as_echo "failed" >&6; }
6825else
6826  { $as_echo "$as_me:$LINENO: result: ok" >&5
6827$as_echo "ok" >&6; }
6828fi
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851# Check whether --enable-libtool-lock was given.
6852if test "${enable_libtool_lock+set}" = set; then
6853  enableval=$enable_libtool_lock;
6854fi
6855
6856test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6857
6858# Some flags need to be propagated to the compiler or linker for good
6859# libtool support.
6860case $host in
6861ia64-*-hpux*)
6862  # Find out which ABI we are using.
6863  echo 'int i;' > conftest.$ac_ext
6864  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865  (eval $ac_compile) 2>&5
6866  ac_status=$?
6867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868  (exit $ac_status); }; then
6869    case `/usr/bin/file conftest.$ac_objext` in
6870      *ELF-32*)
6871	HPUX_IA64_MODE="32"
6872	;;
6873      *ELF-64*)
6874	HPUX_IA64_MODE="64"
6875	;;
6876    esac
6877  fi
6878  rm -rf conftest*
6879  ;;
6880*-*-irix6*)
6881  # Find out which ABI we are using.
6882  echo '#line 6882 "configure"' > conftest.$ac_ext
6883  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884  (eval $ac_compile) 2>&5
6885  ac_status=$?
6886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); }; then
6888    if test "$lt_cv_prog_gnu_ld" = yes; then
6889      case `/usr/bin/file conftest.$ac_objext` in
6890	*32-bit*)
6891	  LD="${LD-ld} -melf32bsmip"
6892	  ;;
6893	*N32*)
6894	  LD="${LD-ld} -melf32bmipn32"
6895	  ;;
6896	*64-bit*)
6897	  LD="${LD-ld} -melf64bmip"
6898	;;
6899      esac
6900    else
6901      case `/usr/bin/file conftest.$ac_objext` in
6902	*32-bit*)
6903	  LD="${LD-ld} -32"
6904	  ;;
6905	*N32*)
6906	  LD="${LD-ld} -n32"
6907	  ;;
6908	*64-bit*)
6909	  LD="${LD-ld} -64"
6910	  ;;
6911      esac
6912    fi
6913  fi
6914  rm -rf conftest*
6915  ;;
6916
6917x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6918s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6919  # Find out which ABI we are using.
6920  echo 'int i;' > conftest.$ac_ext
6921  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922  (eval $ac_compile) 2>&5
6923  ac_status=$?
6924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); }; then
6926    case `/usr/bin/file conftest.o` in
6927      *32-bit*)
6928	case $host in
6929	  x86_64-*kfreebsd*-gnu)
6930	    LD="${LD-ld} -m elf_i386_fbsd"
6931	    ;;
6932	  x86_64-*linux*)
6933	    LD="${LD-ld} -m elf_i386"
6934	    ;;
6935	  ppc64-*linux*|powerpc64-*linux*)
6936	    LD="${LD-ld} -m elf32ppclinux"
6937	    ;;
6938	  s390x-*linux*)
6939	    LD="${LD-ld} -m elf_s390"
6940	    ;;
6941	  sparc64-*linux*)
6942	    LD="${LD-ld} -m elf32_sparc"
6943	    ;;
6944	esac
6945	;;
6946      *64-bit*)
6947	case $host in
6948	  x86_64-*kfreebsd*-gnu)
6949	    LD="${LD-ld} -m elf_x86_64_fbsd"
6950	    ;;
6951	  x86_64-*linux*)
6952	    LD="${LD-ld} -m elf_x86_64"
6953	    ;;
6954	  ppc*-*linux*|powerpc*-*linux*)
6955	    LD="${LD-ld} -m elf64ppc"
6956	    ;;
6957	  s390*-*linux*|s390*-*tpf*)
6958	    LD="${LD-ld} -m elf64_s390"
6959	    ;;
6960	  sparc*-*linux*)
6961	    LD="${LD-ld} -m elf64_sparc"
6962	    ;;
6963	esac
6964	;;
6965    esac
6966  fi
6967  rm -rf conftest*
6968  ;;
6969
6970*-*-sco3.2v5*)
6971  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6972  SAVE_CFLAGS="$CFLAGS"
6973  CFLAGS="$CFLAGS -belf"
6974  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6975$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6976if test "${lt_cv_cc_needs_belf+set}" = set; then
6977  $as_echo_n "(cached) " >&6
6978else
6979  ac_ext=c
6980ac_cpp='$CPP $CPPFLAGS'
6981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984
6985     cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h.  */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h.  */
6991
6992int
6993main ()
6994{
6995
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext conftest$ac_exeext
7001if { (ac_try="$ac_link"
7002case "(($ac_try" in
7003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004  *) ac_try_echo=$ac_try;;
7005esac
7006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7007$as_echo "$ac_try_echo") >&5
7008  (eval "$ac_link") 2>conftest.er1
7009  ac_status=$?
7010  grep -v '^ *+' conftest.er1 >conftest.err
7011  rm -f conftest.er1
7012  cat conftest.err >&5
7013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); } && {
7015	 test -z "$ac_c_werror_flag" ||
7016	 test ! -s conftest.err
7017       } && test -s conftest$ac_exeext && {
7018	 test "$cross_compiling" = yes ||
7019	 $as_test_x conftest$ac_exeext
7020       }; then
7021  lt_cv_cc_needs_belf=yes
7022else
7023  $as_echo "$as_me: failed program was:" >&5
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026	lt_cv_cc_needs_belf=no
7027fi
7028
7029rm -rf conftest.dSYM
7030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7031      conftest$ac_exeext conftest.$ac_ext
7032     ac_ext=c
7033ac_cpp='$CPP $CPPFLAGS'
7034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037
7038fi
7039{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7040$as_echo "$lt_cv_cc_needs_belf" >&6; }
7041  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7042    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7043    CFLAGS="$SAVE_CFLAGS"
7044  fi
7045  ;;
7046sparc*-*solaris*)
7047  # Find out which ABI we are using.
7048  echo 'int i;' > conftest.$ac_ext
7049  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050  (eval $ac_compile) 2>&5
7051  ac_status=$?
7052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); }; then
7054    case `/usr/bin/file conftest.o` in
7055    *64-bit*)
7056      case $lt_cv_prog_gnu_ld in
7057      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7058      *)
7059	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7060	  LD="${LD-ld} -64"
7061	fi
7062	;;
7063      esac
7064      ;;
7065    esac
7066  fi
7067  rm -rf conftest*
7068  ;;
7069esac
7070
7071need_locks="$enable_libtool_lock"
7072
7073
7074  case $host_os in
7075    rhapsody* | darwin*)
7076    if test -n "$ac_tool_prefix"; then
7077  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7078set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -n "$DSYMUTIL"; then
7085  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092  for ac_exec_ext in '' $ac_executable_extensions; do
7093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7095    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104DSYMUTIL=$ac_cv_prog_DSYMUTIL
7105if test -n "$DSYMUTIL"; then
7106  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7107$as_echo "$DSYMUTIL" >&6; }
7108else
7109  { $as_echo "$as_me:$LINENO: result: no" >&5
7110$as_echo "no" >&6; }
7111fi
7112
7113
7114fi
7115if test -z "$ac_cv_prog_DSYMUTIL"; then
7116  ac_ct_DSYMUTIL=$DSYMUTIL
7117  # Extract the first word of "dsymutil", so it can be a program name with args.
7118set dummy dsymutil; ac_word=$2
7119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7120$as_echo_n "checking for $ac_word... " >&6; }
7121if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7122  $as_echo_n "(cached) " >&6
7123else
7124  if test -n "$ac_ct_DSYMUTIL"; then
7125  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130  IFS=$as_save_IFS
7131  test -z "$as_dir" && as_dir=.
7132  for ac_exec_ext in '' $ac_executable_extensions; do
7133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136    break 2
7137  fi
7138done
7139done
7140IFS=$as_save_IFS
7141
7142fi
7143fi
7144ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145if test -n "$ac_ct_DSYMUTIL"; then
7146  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7147$as_echo "$ac_ct_DSYMUTIL" >&6; }
7148else
7149  { $as_echo "$as_me:$LINENO: result: no" >&5
7150$as_echo "no" >&6; }
7151fi
7152
7153  if test "x$ac_ct_DSYMUTIL" = x; then
7154    DSYMUTIL=":"
7155  else
7156    case $cross_compiling:$ac_tool_warned in
7157yes:)
7158{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160ac_tool_warned=yes ;;
7161esac
7162    DSYMUTIL=$ac_ct_DSYMUTIL
7163  fi
7164else
7165  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7166fi
7167
7168    if test -n "$ac_tool_prefix"; then
7169  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7170set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7172$as_echo_n "checking for $ac_word... " >&6; }
7173if test "${ac_cv_prog_NMEDIT+set}" = set; then
7174  $as_echo_n "(cached) " >&6
7175else
7176  if test -n "$NMEDIT"; then
7177  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184  for ac_exec_ext in '' $ac_executable_extensions; do
7185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7187    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196NMEDIT=$ac_cv_prog_NMEDIT
7197if test -n "$NMEDIT"; then
7198  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7199$as_echo "$NMEDIT" >&6; }
7200else
7201  { $as_echo "$as_me:$LINENO: result: no" >&5
7202$as_echo "no" >&6; }
7203fi
7204
7205
7206fi
7207if test -z "$ac_cv_prog_NMEDIT"; then
7208  ac_ct_NMEDIT=$NMEDIT
7209  # Extract the first word of "nmedit", so it can be a program name with args.
7210set dummy nmedit; ac_word=$2
7211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7212$as_echo_n "checking for $ac_word... " >&6; }
7213if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7214  $as_echo_n "(cached) " >&6
7215else
7216  if test -n "$ac_ct_NMEDIT"; then
7217  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222  IFS=$as_save_IFS
7223  test -z "$as_dir" && as_dir=.
7224  for ac_exec_ext in '' $ac_executable_extensions; do
7225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7227    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228    break 2
7229  fi
7230done
7231done
7232IFS=$as_save_IFS
7233
7234fi
7235fi
7236ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7237if test -n "$ac_ct_NMEDIT"; then
7238  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7239$as_echo "$ac_ct_NMEDIT" >&6; }
7240else
7241  { $as_echo "$as_me:$LINENO: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245  if test "x$ac_ct_NMEDIT" = x; then
7246    NMEDIT=":"
7247  else
7248    case $cross_compiling:$ac_tool_warned in
7249yes:)
7250{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252ac_tool_warned=yes ;;
7253esac
7254    NMEDIT=$ac_ct_NMEDIT
7255  fi
7256else
7257  NMEDIT="$ac_cv_prog_NMEDIT"
7258fi
7259
7260    if test -n "$ac_tool_prefix"; then
7261  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}lipo; ac_word=$2
7263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if test "${ac_cv_prog_LIPO+set}" = set; then
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$LIPO"; then
7269  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276  for ac_exec_ext in '' $ac_executable_extensions; do
7277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7279    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288LIPO=$ac_cv_prog_LIPO
7289if test -n "$LIPO"; then
7290  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7291$as_echo "$LIPO" >&6; }
7292else
7293  { $as_echo "$as_me:$LINENO: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297
7298fi
7299if test -z "$ac_cv_prog_LIPO"; then
7300  ac_ct_LIPO=$LIPO
7301  # Extract the first word of "lipo", so it can be a program name with args.
7302set dummy lipo; ac_word=$2
7303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7306  $as_echo_n "(cached) " >&6
7307else
7308  if test -n "$ac_ct_LIPO"; then
7309  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316  for ac_exec_ext in '' $ac_executable_extensions; do
7317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318    ac_cv_prog_ac_ct_LIPO="lipo"
7319    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7329if test -n "$ac_ct_LIPO"; then
7330  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7331$as_echo "$ac_ct_LIPO" >&6; }
7332else
7333  { $as_echo "$as_me:$LINENO: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337  if test "x$ac_ct_LIPO" = x; then
7338    LIPO=":"
7339  else
7340    case $cross_compiling:$ac_tool_warned in
7341yes:)
7342{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344ac_tool_warned=yes ;;
7345esac
7346    LIPO=$ac_ct_LIPO
7347  fi
7348else
7349  LIPO="$ac_cv_prog_LIPO"
7350fi
7351
7352    if test -n "$ac_tool_prefix"; then
7353  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7354set dummy ${ac_tool_prefix}otool; ac_word=$2
7355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if test "${ac_cv_prog_OTOOL+set}" = set; then
7358  $as_echo_n "(cached) " >&6
7359else
7360  if test -n "$OTOOL"; then
7361  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368  for ac_exec_ext in '' $ac_executable_extensions; do
7369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7371    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380OTOOL=$ac_cv_prog_OTOOL
7381if test -n "$OTOOL"; then
7382  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7383$as_echo "$OTOOL" >&6; }
7384else
7385  { $as_echo "$as_me:$LINENO: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389
7390fi
7391if test -z "$ac_cv_prog_OTOOL"; then
7392  ac_ct_OTOOL=$OTOOL
7393  # Extract the first word of "otool", so it can be a program name with args.
7394set dummy otool; ac_word=$2
7395{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7396$as_echo_n "checking for $ac_word... " >&6; }
7397if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7398  $as_echo_n "(cached) " >&6
7399else
7400  if test -n "$ac_ct_OTOOL"; then
7401  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7402else
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406  IFS=$as_save_IFS
7407  test -z "$as_dir" && as_dir=.
7408  for ac_exec_ext in '' $ac_executable_extensions; do
7409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410    ac_cv_prog_ac_ct_OTOOL="otool"
7411    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412    break 2
7413  fi
7414done
7415done
7416IFS=$as_save_IFS
7417
7418fi
7419fi
7420ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7421if test -n "$ac_ct_OTOOL"; then
7422  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7423$as_echo "$ac_ct_OTOOL" >&6; }
7424else
7425  { $as_echo "$as_me:$LINENO: result: no" >&5
7426$as_echo "no" >&6; }
7427fi
7428
7429  if test "x$ac_ct_OTOOL" = x; then
7430    OTOOL=":"
7431  else
7432    case $cross_compiling:$ac_tool_warned in
7433yes:)
7434{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436ac_tool_warned=yes ;;
7437esac
7438    OTOOL=$ac_ct_OTOOL
7439  fi
7440else
7441  OTOOL="$ac_cv_prog_OTOOL"
7442fi
7443
7444    if test -n "$ac_tool_prefix"; then
7445  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7446set dummy ${ac_tool_prefix}otool64; ac_word=$2
7447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7448$as_echo_n "checking for $ac_word... " >&6; }
7449if test "${ac_cv_prog_OTOOL64+set}" = set; then
7450  $as_echo_n "(cached) " >&6
7451else
7452  if test -n "$OTOOL64"; then
7453  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460  for ac_exec_ext in '' $ac_executable_extensions; do
7461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7463    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467done
7468IFS=$as_save_IFS
7469
7470fi
7471fi
7472OTOOL64=$ac_cv_prog_OTOOL64
7473if test -n "$OTOOL64"; then
7474  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7475$as_echo "$OTOOL64" >&6; }
7476else
7477  { $as_echo "$as_me:$LINENO: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480
7481
7482fi
7483if test -z "$ac_cv_prog_OTOOL64"; then
7484  ac_ct_OTOOL64=$OTOOL64
7485  # Extract the first word of "otool64", so it can be a program name with args.
7486set dummy otool64; ac_word=$2
7487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7488$as_echo_n "checking for $ac_word... " >&6; }
7489if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7490  $as_echo_n "(cached) " >&6
7491else
7492  if test -n "$ac_ct_OTOOL64"; then
7493  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7494else
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498  IFS=$as_save_IFS
7499  test -z "$as_dir" && as_dir=.
7500  for ac_exec_ext in '' $ac_executable_extensions; do
7501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502    ac_cv_prog_ac_ct_OTOOL64="otool64"
7503    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504    break 2
7505  fi
7506done
7507done
7508IFS=$as_save_IFS
7509
7510fi
7511fi
7512ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7513if test -n "$ac_ct_OTOOL64"; then
7514  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7515$as_echo "$ac_ct_OTOOL64" >&6; }
7516else
7517  { $as_echo "$as_me:$LINENO: result: no" >&5
7518$as_echo "no" >&6; }
7519fi
7520
7521  if test "x$ac_ct_OTOOL64" = x; then
7522    OTOOL64=":"
7523  else
7524    case $cross_compiling:$ac_tool_warned in
7525yes:)
7526{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528ac_tool_warned=yes ;;
7529esac
7530    OTOOL64=$ac_ct_OTOOL64
7531  fi
7532else
7533  OTOOL64="$ac_cv_prog_OTOOL64"
7534fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7563$as_echo_n "checking for -single_module linker flag... " >&6; }
7564if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7565  $as_echo_n "(cached) " >&6
7566else
7567  lt_cv_apple_cc_single_mod=no
7568      if test -z "${LT_MULTI_MODULE}"; then
7569	# By default we will add the -single_module flag. You can override
7570	# by either setting the environment variable LT_MULTI_MODULE
7571	# non-empty at configure time, or by adding -multi_module to the
7572	# link flags.
7573	rm -rf libconftest.dylib*
7574	echo "int foo(void){return 1;}" > conftest.c
7575	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7576-dynamiclib -Wl,-single_module conftest.c" >&5
7577	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7578	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7579        _lt_result=$?
7580	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7581	  lt_cv_apple_cc_single_mod=yes
7582	else
7583	  cat conftest.err >&5
7584	fi
7585	rm -rf libconftest.dylib*
7586	rm -f conftest.*
7587      fi
7588fi
7589{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7590$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7591    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7592$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7593if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7594  $as_echo_n "(cached) " >&6
7595else
7596  lt_cv_ld_exported_symbols_list=no
7597      save_LDFLAGS=$LDFLAGS
7598      echo "_main" > conftest.sym
7599      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7600      cat >conftest.$ac_ext <<_ACEOF
7601/* confdefs.h.  */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h.  */
7606
7607int
7608main ()
7609{
7610
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (ac_try="$ac_link"
7617case "(($ac_try" in
7618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619  *) ac_try_echo=$ac_try;;
7620esac
7621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622$as_echo "$ac_try_echo") >&5
7623  (eval "$ac_link") 2>conftest.er1
7624  ac_status=$?
7625  grep -v '^ *+' conftest.er1 >conftest.err
7626  rm -f conftest.er1
7627  cat conftest.err >&5
7628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); } && {
7630	 test -z "$ac_c_werror_flag" ||
7631	 test ! -s conftest.err
7632       } && test -s conftest$ac_exeext && {
7633	 test "$cross_compiling" = yes ||
7634	 $as_test_x conftest$ac_exeext
7635       }; then
7636  lt_cv_ld_exported_symbols_list=yes
7637else
7638  $as_echo "$as_me: failed program was:" >&5
7639sed 's/^/| /' conftest.$ac_ext >&5
7640
7641	lt_cv_ld_exported_symbols_list=no
7642fi
7643
7644rm -rf conftest.dSYM
7645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7646      conftest$ac_exeext conftest.$ac_ext
7647	LDFLAGS="$save_LDFLAGS"
7648
7649fi
7650{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7651$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7652    case $host_os in
7653    rhapsody* | darwin1.[012])
7654      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7655    darwin1.*)
7656      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7657    darwin*) # darwin 5.x on
7658      # if running on 10.5 or later, the deployment target defaults
7659      # to the OS version, if on x86, and 10.4, the deployment
7660      # target defaults to 10.4. Don't you love it?
7661      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7662	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7663	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7664	10.[012]*)
7665	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7666	10.*)
7667	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7668      esac
7669    ;;
7670  esac
7671    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7672      _lt_dar_single_mod='$single_module'
7673    fi
7674    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7675      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7676    else
7677      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7678    fi
7679    if test "$DSYMUTIL" != ":"; then
7680      _lt_dsymutil='~$DSYMUTIL $lib || :'
7681    else
7682      _lt_dsymutil=
7683    fi
7684    ;;
7685  esac
7686
7687
7688for ac_header in dlfcn.h
7689do
7690as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7691{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7692$as_echo_n "checking for $ac_header... " >&6; }
7693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7694  $as_echo_n "(cached) " >&6
7695else
7696  cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h.  */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h.  */
7702$ac_includes_default
7703
7704#include <$ac_header>
7705_ACEOF
7706rm -f conftest.$ac_objext
7707if { (ac_try="$ac_compile"
7708case "(($ac_try" in
7709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710  *) ac_try_echo=$ac_try;;
7711esac
7712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713$as_echo "$ac_try_echo") >&5
7714  (eval "$ac_compile") 2>conftest.er1
7715  ac_status=$?
7716  grep -v '^ *+' conftest.er1 >conftest.err
7717  rm -f conftest.er1
7718  cat conftest.err >&5
7719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); } && {
7721	 test -z "$ac_c_werror_flag" ||
7722	 test ! -s conftest.err
7723       } && test -s conftest.$ac_objext; then
7724  eval "$as_ac_Header=yes"
7725else
7726  $as_echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729	eval "$as_ac_Header=no"
7730fi
7731
7732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733fi
7734ac_res=`eval 'as_val=${'$as_ac_Header'}
7735		 $as_echo "$as_val"'`
7736	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7737$as_echo "$ac_res" >&6; }
7738as_val=`eval 'as_val=${'$as_ac_Header'}
7739		 $as_echo "$as_val"'`
7740   if test "x$as_val" = x""yes; then
7741  cat >>confdefs.h <<_ACEOF
7742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743_ACEOF
7744
7745fi
7746
7747done
7748
7749
7750
7751# Set options
7752
7753
7754
7755        enable_dlopen=no
7756
7757
7758  enable_win32_dll=no
7759
7760
7761            # Check whether --enable-shared was given.
7762if test "${enable_shared+set}" = set; then
7763  enableval=$enable_shared; p=${PACKAGE-default}
7764    case $enableval in
7765    yes) enable_shared=yes ;;
7766    no) enable_shared=no ;;
7767    *)
7768      enable_shared=no
7769      # Look at the argument we got.  We use all the common list separators.
7770      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7771      for pkg in $enableval; do
7772	IFS="$lt_save_ifs"
7773	if test "X$pkg" = "X$p"; then
7774	  enable_shared=yes
7775	fi
7776      done
7777      IFS="$lt_save_ifs"
7778      ;;
7779    esac
7780else
7781  enable_shared=yes
7782fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794# Check whether --with-pic was given.
7795if test "${with_pic+set}" = set; then
7796  withval=$with_pic; pic_mode="$withval"
7797else
7798  pic_mode=default
7799fi
7800
7801
7802test -z "$pic_mode" && pic_mode=default
7803
7804
7805
7806
7807
7808
7809
7810  # Check whether --enable-fast-install was given.
7811if test "${enable_fast_install+set}" = set; then
7812  enableval=$enable_fast_install; p=${PACKAGE-default}
7813    case $enableval in
7814    yes) enable_fast_install=yes ;;
7815    no) enable_fast_install=no ;;
7816    *)
7817      enable_fast_install=no
7818      # Look at the argument we got.  We use all the common list separators.
7819      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7820      for pkg in $enableval; do
7821	IFS="$lt_save_ifs"
7822	if test "X$pkg" = "X$p"; then
7823	  enable_fast_install=yes
7824	fi
7825      done
7826      IFS="$lt_save_ifs"
7827      ;;
7828    esac
7829else
7830  enable_fast_install=yes
7831fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843# This can be used to rebuild libtool when needed
7844LIBTOOL_DEPS="$ltmain"
7845
7846# Always use our own libtool.
7847LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873test -z "$LN_S" && LN_S="ln -s"
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888if test -n "${ZSH_VERSION+set}" ; then
7889   setopt NO_GLOB_SUBST
7890fi
7891
7892{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7893$as_echo_n "checking for objdir... " >&6; }
7894if test "${lt_cv_objdir+set}" = set; then
7895  $as_echo_n "(cached) " >&6
7896else
7897  rm -f .libs 2>/dev/null
7898mkdir .libs 2>/dev/null
7899if test -d .libs; then
7900  lt_cv_objdir=.libs
7901else
7902  # MS-DOS does not allow filenames that begin with a dot.
7903  lt_cv_objdir=_libs
7904fi
7905rmdir .libs 2>/dev/null
7906fi
7907{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7908$as_echo "$lt_cv_objdir" >&6; }
7909objdir=$lt_cv_objdir
7910
7911
7912
7913
7914
7915cat >>confdefs.h <<_ACEOF
7916#define LT_OBJDIR "$lt_cv_objdir/"
7917_ACEOF
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935case $host_os in
7936aix3*)
7937  # AIX sometimes has problems with the GCC collect2 program.  For some
7938  # reason, if we set the COLLECT_NAMES environment variable, the problems
7939  # vanish in a puff of smoke.
7940  if test "X${COLLECT_NAMES+set}" != Xset; then
7941    COLLECT_NAMES=
7942    export COLLECT_NAMES
7943  fi
7944  ;;
7945esac
7946
7947# Sed substitution that helps us do robust quoting.  It backslashifies
7948# metacharacters that are still active within double-quoted strings.
7949sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7950
7951# Same as above, but do not quote variable references.
7952double_quote_subst='s/\(["`\\]\)/\\\1/g'
7953
7954# Sed substitution to delay expansion of an escaped shell variable in a
7955# double_quote_subst'ed string.
7956delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7957
7958# Sed substitution to delay expansion of an escaped single quote.
7959delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7960
7961# Sed substitution to avoid accidental globbing in evaled expressions
7962no_glob_subst='s/\*/\\\*/g'
7963
7964# Global variables:
7965ofile=libtool
7966can_build_shared=yes
7967
7968# All known linkers require a `.a' archive for static linking (except MSVC,
7969# which needs '.lib').
7970libext=a
7971
7972with_gnu_ld="$lt_cv_prog_gnu_ld"
7973
7974old_CC="$CC"
7975old_CFLAGS="$CFLAGS"
7976
7977# Set sane defaults for various variables
7978test -z "$CC" && CC=cc
7979test -z "$LTCC" && LTCC=$CC
7980test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7981test -z "$LD" && LD=ld
7982test -z "$ac_objext" && ac_objext=o
7983
7984for cc_temp in $compiler""; do
7985  case $cc_temp in
7986    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7987    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7988    \-*) ;;
7989    *) break;;
7990  esac
7991done
7992cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7993
7994
7995# Only perform the check for file, if the check method requires it
7996test -z "$MAGIC_CMD" && MAGIC_CMD=file
7997case $deplibs_check_method in
7998file_magic*)
7999  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8000    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8001$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8002if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8003  $as_echo_n "(cached) " >&6
8004else
8005  case $MAGIC_CMD in
8006[\\/*] |  ?:[\\/]*)
8007  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8008  ;;
8009*)
8010  lt_save_MAGIC_CMD="$MAGIC_CMD"
8011  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8012  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8013  for ac_dir in $ac_dummy; do
8014    IFS="$lt_save_ifs"
8015    test -z "$ac_dir" && ac_dir=.
8016    if test -f $ac_dir/${ac_tool_prefix}file; then
8017      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8018      if test -n "$file_magic_test_file"; then
8019	case $deplibs_check_method in
8020	"file_magic "*)
8021	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8022	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8024	    $EGREP "$file_magic_regex" > /dev/null; then
8025	    :
8026	  else
8027	    cat <<_LT_EOF 1>&2
8028
8029*** Warning: the command libtool uses to detect shared libraries,
8030*** $file_magic_cmd, produces output that libtool cannot recognize.
8031*** The result is that libtool may fail to recognize shared libraries
8032*** as such.  This will affect the creation of libtool libraries that
8033*** depend on shared libraries, but programs linked with such libtool
8034*** libraries will work regardless of this problem.  Nevertheless, you
8035*** may want to report the problem to your system manager and/or to
8036*** bug-libtool@gnu.org
8037
8038_LT_EOF
8039	  fi ;;
8040	esac
8041      fi
8042      break
8043    fi
8044  done
8045  IFS="$lt_save_ifs"
8046  MAGIC_CMD="$lt_save_MAGIC_CMD"
8047  ;;
8048esac
8049fi
8050
8051MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052if test -n "$MAGIC_CMD"; then
8053  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8054$as_echo "$MAGIC_CMD" >&6; }
8055else
8056  { $as_echo "$as_me:$LINENO: result: no" >&5
8057$as_echo "no" >&6; }
8058fi
8059
8060
8061
8062
8063
8064if test -z "$lt_cv_path_MAGIC_CMD"; then
8065  if test -n "$ac_tool_prefix"; then
8066    { $as_echo "$as_me:$LINENO: checking for file" >&5
8067$as_echo_n "checking for file... " >&6; }
8068if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8069  $as_echo_n "(cached) " >&6
8070else
8071  case $MAGIC_CMD in
8072[\\/*] |  ?:[\\/]*)
8073  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8074  ;;
8075*)
8076  lt_save_MAGIC_CMD="$MAGIC_CMD"
8077  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8078  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8079  for ac_dir in $ac_dummy; do
8080    IFS="$lt_save_ifs"
8081    test -z "$ac_dir" && ac_dir=.
8082    if test -f $ac_dir/file; then
8083      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8084      if test -n "$file_magic_test_file"; then
8085	case $deplibs_check_method in
8086	"file_magic "*)
8087	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8088	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8090	    $EGREP "$file_magic_regex" > /dev/null; then
8091	    :
8092	  else
8093	    cat <<_LT_EOF 1>&2
8094
8095*** Warning: the command libtool uses to detect shared libraries,
8096*** $file_magic_cmd, produces output that libtool cannot recognize.
8097*** The result is that libtool may fail to recognize shared libraries
8098*** as such.  This will affect the creation of libtool libraries that
8099*** depend on shared libraries, but programs linked with such libtool
8100*** libraries will work regardless of this problem.  Nevertheless, you
8101*** may want to report the problem to your system manager and/or to
8102*** bug-libtool@gnu.org
8103
8104_LT_EOF
8105	  fi ;;
8106	esac
8107      fi
8108      break
8109    fi
8110  done
8111  IFS="$lt_save_ifs"
8112  MAGIC_CMD="$lt_save_MAGIC_CMD"
8113  ;;
8114esac
8115fi
8116
8117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8118if test -n "$MAGIC_CMD"; then
8119  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8120$as_echo "$MAGIC_CMD" >&6; }
8121else
8122  { $as_echo "$as_me:$LINENO: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127  else
8128    MAGIC_CMD=:
8129  fi
8130fi
8131
8132  fi
8133  ;;
8134esac
8135
8136# Use C for the default configuration in the libtool script
8137
8138lt_save_CC="$CC"
8139ac_ext=c
8140ac_cpp='$CPP $CPPFLAGS'
8141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143ac_compiler_gnu=$ac_cv_c_compiler_gnu
8144
8145
8146# Source file extension for C test sources.
8147ac_ext=c
8148
8149# Object file extension for compiled C test sources.
8150objext=o
8151objext=$objext
8152
8153# Code to be used in simple compile tests
8154lt_simple_compile_test_code="int some_variable = 0;"
8155
8156# Code to be used in simple link tests
8157lt_simple_link_test_code='int main(){return(0);}'
8158
8159
8160
8161
8162
8163
8164
8165# If no C compiler was specified, use CC.
8166LTCC=${LTCC-"$CC"}
8167
8168# If no C compiler flags were specified, use CFLAGS.
8169LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8170
8171# Allow CC to be a program name with arguments.
8172compiler=$CC
8173
8174# Save the default compiler, since it gets overwritten when the other
8175# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8176compiler_DEFAULT=$CC
8177
8178# save warnings/boilerplate of simple test code
8179ac_outfile=conftest.$ac_objext
8180echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8181eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8182_lt_compiler_boilerplate=`cat conftest.err`
8183$RM conftest*
8184
8185ac_outfile=conftest.$ac_objext
8186echo "$lt_simple_link_test_code" >conftest.$ac_ext
8187eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8188_lt_linker_boilerplate=`cat conftest.err`
8189$RM -r conftest*
8190
8191
8192if test -n "$compiler"; then
8193
8194lt_prog_compiler_no_builtin_flag=
8195
8196if test "$GCC" = yes; then
8197  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8198
8199  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8200$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8201if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8202  $as_echo_n "(cached) " >&6
8203else
8204  lt_cv_prog_compiler_rtti_exceptions=no
8205   ac_outfile=conftest.$ac_objext
8206   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207   lt_compiler_flag="-fno-rtti -fno-exceptions"
8208   # Insert the option either (1) after the last *FLAGS variable, or
8209   # (2) before a word containing "conftest.", or (3) at the end.
8210   # Note that $ac_compile itself does not contain backslashes and begins
8211   # with a dollar sign (not a hyphen), so the echo should work correctly.
8212   # The option is referenced via a variable to avoid confusing sed.
8213   lt_compile=`echo "$ac_compile" | $SED \
8214   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216   -e 's:$: $lt_compiler_flag:'`
8217   (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
8218   (eval "$lt_compile" 2>conftest.err)
8219   ac_status=$?
8220   cat conftest.err >&5
8221   echo "$as_me:8221: \$? = $ac_status" >&5
8222   if (exit $ac_status) && test -s "$ac_outfile"; then
8223     # The compiler can only warn and ignore the option if not recognized
8224     # So say no if there are warnings other than the usual output.
8225     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8226     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8227     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8228       lt_cv_prog_compiler_rtti_exceptions=yes
8229     fi
8230   fi
8231   $RM conftest*
8232
8233fi
8234{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8235$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8236
8237if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8238    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8239else
8240    :
8241fi
8242
8243fi
8244
8245
8246
8247
8248
8249
8250  lt_prog_compiler_wl=
8251lt_prog_compiler_pic=
8252lt_prog_compiler_static=
8253
8254{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8255$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8256
8257  if test "$GCC" = yes; then
8258    lt_prog_compiler_wl='-Wl,'
8259    lt_prog_compiler_static='-static'
8260
8261    case $host_os in
8262      aix*)
8263      # All AIX code is PIC.
8264      if test "$host_cpu" = ia64; then
8265	# AIX 5 now supports IA64 processor
8266	lt_prog_compiler_static='-Bstatic'
8267      fi
8268      ;;
8269
8270    amigaos*)
8271      case $host_cpu in
8272      powerpc)
8273            # see comment about AmigaOS4 .so support
8274            lt_prog_compiler_pic='-fPIC'
8275        ;;
8276      m68k)
8277            # FIXME: we need at least 68020 code to build shared libraries, but
8278            # adding the `-m68020' flag to GCC prevents building anything better,
8279            # like `-m68040'.
8280            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8281        ;;
8282      esac
8283      ;;
8284
8285    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8286      # PIC is the default for these OSes.
8287      ;;
8288
8289    mingw* | cygwin* | pw32* | os2* | cegcc*)
8290      # This hack is so that the source file can tell whether it is being
8291      # built for inclusion in a dll (and should export symbols for example).
8292      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8293      # (--disable-auto-import) libraries
8294      lt_prog_compiler_pic='-DDLL_EXPORT'
8295      ;;
8296
8297    darwin* | rhapsody*)
8298      # PIC is the default on this platform
8299      # Common symbols not allowed in MH_DYLIB files
8300      lt_prog_compiler_pic='-fno-common'
8301      ;;
8302
8303    hpux*)
8304      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8305      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8306      # sets the default TLS model and affects inlining.
8307      case $host_cpu in
8308      hppa*64*)
8309	# +Z the default
8310	;;
8311      *)
8312	lt_prog_compiler_pic='-fPIC'
8313	;;
8314      esac
8315      ;;
8316
8317    interix[3-9]*)
8318      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8319      # Instead, we relocate shared libraries at runtime.
8320      ;;
8321
8322    msdosdjgpp*)
8323      # Just because we use GCC doesn't mean we suddenly get shared libraries
8324      # on systems that don't support them.
8325      lt_prog_compiler_can_build_shared=no
8326      enable_shared=no
8327      ;;
8328
8329    *nto* | *qnx*)
8330      # QNX uses GNU C++, but need to define -shared option too, otherwise
8331      # it will coredump.
8332      lt_prog_compiler_pic='-fPIC -shared'
8333      ;;
8334
8335    sysv4*MP*)
8336      if test -d /usr/nec; then
8337	lt_prog_compiler_pic=-Kconform_pic
8338      fi
8339      ;;
8340
8341    *)
8342      lt_prog_compiler_pic='-fPIC'
8343      ;;
8344    esac
8345  else
8346    # PORTME Check for flag to pass linker flags through the system compiler.
8347    case $host_os in
8348    aix*)
8349      lt_prog_compiler_wl='-Wl,'
8350      if test "$host_cpu" = ia64; then
8351	# AIX 5 now supports IA64 processor
8352	lt_prog_compiler_static='-Bstatic'
8353      else
8354	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8355      fi
8356      ;;
8357
8358    mingw* | cygwin* | pw32* | os2* | cegcc*)
8359      # This hack is so that the source file can tell whether it is being
8360      # built for inclusion in a dll (and should export symbols for example).
8361      lt_prog_compiler_pic='-DDLL_EXPORT'
8362      ;;
8363
8364    hpux9* | hpux10* | hpux11*)
8365      lt_prog_compiler_wl='-Wl,'
8366      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8367      # not for PA HP-UX.
8368      case $host_cpu in
8369      hppa*64*|ia64*)
8370	# +Z the default
8371	;;
8372      *)
8373	lt_prog_compiler_pic='+Z'
8374	;;
8375      esac
8376      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8377      lt_prog_compiler_static='${wl}-a ${wl}archive'
8378      ;;
8379
8380    irix5* | irix6* | nonstopux*)
8381      lt_prog_compiler_wl='-Wl,'
8382      # PIC (with -KPIC) is the default.
8383      lt_prog_compiler_static='-non_shared'
8384      ;;
8385
8386    linux* | k*bsd*-gnu)
8387      case $cc_basename in
8388      # old Intel for x86_64 which still supported -KPIC.
8389      ecc*)
8390	lt_prog_compiler_wl='-Wl,'
8391	lt_prog_compiler_pic='-KPIC'
8392	lt_prog_compiler_static='-static'
8393        ;;
8394      # icc used to be incompatible with GCC.
8395      # ICC 10 doesn't accept -KPIC any more.
8396      icc* | ifort*)
8397	lt_prog_compiler_wl='-Wl,'
8398	lt_prog_compiler_pic='-fPIC'
8399	lt_prog_compiler_static='-static'
8400        ;;
8401      # Lahey Fortran 8.1.
8402      lf95*)
8403	lt_prog_compiler_wl='-Wl,'
8404	lt_prog_compiler_pic='--shared'
8405	lt_prog_compiler_static='--static'
8406	;;
8407      pgcc* | pgf77* | pgf90* | pgf95*)
8408        # Portland Group compilers (*not* the Pentium gcc compiler,
8409	# which looks to be a dead project)
8410	lt_prog_compiler_wl='-Wl,'
8411	lt_prog_compiler_pic='-fpic'
8412	lt_prog_compiler_static='-Bstatic'
8413        ;;
8414      ccc*)
8415        lt_prog_compiler_wl='-Wl,'
8416        # All Alpha code is PIC.
8417        lt_prog_compiler_static='-non_shared'
8418        ;;
8419      xl*)
8420	# IBM XL C 8.0/Fortran 10.1 on PPC
8421	lt_prog_compiler_wl='-Wl,'
8422	lt_prog_compiler_pic='-qpic'
8423	lt_prog_compiler_static='-qstaticlink'
8424	;;
8425      *)
8426	case `$CC -V 2>&1 | sed 5q` in
8427	*Sun\ C*)
8428	  # Sun C 5.9
8429	  lt_prog_compiler_pic='-KPIC'
8430	  lt_prog_compiler_static='-Bstatic'
8431	  lt_prog_compiler_wl='-Wl,'
8432	  ;;
8433	*Sun\ F*)
8434	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8435	  lt_prog_compiler_pic='-KPIC'
8436	  lt_prog_compiler_static='-Bstatic'
8437	  lt_prog_compiler_wl=''
8438	  ;;
8439	esac
8440	;;
8441      esac
8442      ;;
8443
8444    newsos6)
8445      lt_prog_compiler_pic='-KPIC'
8446      lt_prog_compiler_static='-Bstatic'
8447      ;;
8448
8449    *nto* | *qnx*)
8450      # QNX uses GNU C++, but need to define -shared option too, otherwise
8451      # it will coredump.
8452      lt_prog_compiler_pic='-fPIC -shared'
8453      ;;
8454
8455    osf3* | osf4* | osf5*)
8456      lt_prog_compiler_wl='-Wl,'
8457      # All OSF/1 code is PIC.
8458      lt_prog_compiler_static='-non_shared'
8459      ;;
8460
8461    rdos*)
8462      lt_prog_compiler_static='-non_shared'
8463      ;;
8464
8465    solaris*)
8466      lt_prog_compiler_pic='-KPIC'
8467      lt_prog_compiler_static='-Bstatic'
8468      case $cc_basename in
8469      f77* | f90* | f95*)
8470	lt_prog_compiler_wl='-Qoption ld ';;
8471      *)
8472	lt_prog_compiler_wl='-Wl,';;
8473      esac
8474      ;;
8475
8476    sunos4*)
8477      lt_prog_compiler_wl='-Qoption ld '
8478      lt_prog_compiler_pic='-PIC'
8479      lt_prog_compiler_static='-Bstatic'
8480      ;;
8481
8482    sysv4 | sysv4.2uw2* | sysv4.3*)
8483      lt_prog_compiler_wl='-Wl,'
8484      lt_prog_compiler_pic='-KPIC'
8485      lt_prog_compiler_static='-Bstatic'
8486      ;;
8487
8488    sysv4*MP*)
8489      if test -d /usr/nec ;then
8490	lt_prog_compiler_pic='-Kconform_pic'
8491	lt_prog_compiler_static='-Bstatic'
8492      fi
8493      ;;
8494
8495    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8496      lt_prog_compiler_wl='-Wl,'
8497      lt_prog_compiler_pic='-KPIC'
8498      lt_prog_compiler_static='-Bstatic'
8499      ;;
8500
8501    unicos*)
8502      lt_prog_compiler_wl='-Wl,'
8503      lt_prog_compiler_can_build_shared=no
8504      ;;
8505
8506    uts4*)
8507      lt_prog_compiler_pic='-pic'
8508      lt_prog_compiler_static='-Bstatic'
8509      ;;
8510
8511    *)
8512      lt_prog_compiler_can_build_shared=no
8513      ;;
8514    esac
8515  fi
8516
8517case $host_os in
8518  # For platforms which do not support PIC, -DPIC is meaningless:
8519  *djgpp*)
8520    lt_prog_compiler_pic=
8521    ;;
8522  *)
8523    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8524    ;;
8525esac
8526{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8527$as_echo "$lt_prog_compiler_pic" >&6; }
8528
8529
8530
8531
8532
8533
8534#
8535# Check to make sure the PIC flag actually works.
8536#
8537if test -n "$lt_prog_compiler_pic"; then
8538  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8539$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8540if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8541  $as_echo_n "(cached) " >&6
8542else
8543  lt_cv_prog_compiler_pic_works=no
8544   ac_outfile=conftest.$ac_objext
8545   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8547   # Insert the option either (1) after the last *FLAGS variable, or
8548   # (2) before a word containing "conftest.", or (3) at the end.
8549   # Note that $ac_compile itself does not contain backslashes and begins
8550   # with a dollar sign (not a hyphen), so the echo should work correctly.
8551   # The option is referenced via a variable to avoid confusing sed.
8552   lt_compile=`echo "$ac_compile" | $SED \
8553   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8554   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8555   -e 's:$: $lt_compiler_flag:'`
8556   (eval echo "\"\$as_me:8556: $lt_compile\"" >&5)
8557   (eval "$lt_compile" 2>conftest.err)
8558   ac_status=$?
8559   cat conftest.err >&5
8560   echo "$as_me:8560: \$? = $ac_status" >&5
8561   if (exit $ac_status) && test -s "$ac_outfile"; then
8562     # The compiler can only warn and ignore the option if not recognized
8563     # So say no if there are warnings other than the usual output.
8564     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8565     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8566     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8567       lt_cv_prog_compiler_pic_works=yes
8568     fi
8569   fi
8570   $RM conftest*
8571
8572fi
8573{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8574$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8575
8576if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8577    case $lt_prog_compiler_pic in
8578     "" | " "*) ;;
8579     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8580     esac
8581else
8582    lt_prog_compiler_pic=
8583     lt_prog_compiler_can_build_shared=no
8584fi
8585
8586fi
8587
8588
8589
8590
8591
8592
8593#
8594# Check to make sure the static flag actually works.
8595#
8596wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8597{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8598$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8599if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8600  $as_echo_n "(cached) " >&6
8601else
8602  lt_cv_prog_compiler_static_works=no
8603   save_LDFLAGS="$LDFLAGS"
8604   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8605   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8606   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8607     # The linker can only warn and ignore the option if not recognized
8608     # So say no if there are warnings
8609     if test -s conftest.err; then
8610       # Append any errors to the config.log.
8611       cat conftest.err 1>&5
8612       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8613       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614       if diff conftest.exp conftest.er2 >/dev/null; then
8615         lt_cv_prog_compiler_static_works=yes
8616       fi
8617     else
8618       lt_cv_prog_compiler_static_works=yes
8619     fi
8620   fi
8621   $RM -r conftest*
8622   LDFLAGS="$save_LDFLAGS"
8623
8624fi
8625{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8626$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8627
8628if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8629    :
8630else
8631    lt_prog_compiler_static=
8632fi
8633
8634
8635
8636
8637
8638
8639
8640  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8641$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8642if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8643  $as_echo_n "(cached) " >&6
8644else
8645  lt_cv_prog_compiler_c_o=no
8646   $RM -r conftest 2>/dev/null
8647   mkdir conftest
8648   cd conftest
8649   mkdir out
8650   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8651
8652   lt_compiler_flag="-o out/conftest2.$ac_objext"
8653   # Insert the option either (1) after the last *FLAGS variable, or
8654   # (2) before a word containing "conftest.", or (3) at the end.
8655   # Note that $ac_compile itself does not contain backslashes and begins
8656   # with a dollar sign (not a hyphen), so the echo should work correctly.
8657   lt_compile=`echo "$ac_compile" | $SED \
8658   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660   -e 's:$: $lt_compiler_flag:'`
8661   (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
8662   (eval "$lt_compile" 2>out/conftest.err)
8663   ac_status=$?
8664   cat out/conftest.err >&5
8665   echo "$as_me:8665: \$? = $ac_status" >&5
8666   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8667   then
8668     # The compiler can only warn and ignore the option if not recognized
8669     # So say no if there are warnings
8670     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8671     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8672     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8673       lt_cv_prog_compiler_c_o=yes
8674     fi
8675   fi
8676   chmod u+w . 2>&5
8677   $RM conftest*
8678   # SGI C++ compiler will create directory out/ii_files/ for
8679   # template instantiation
8680   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8681   $RM out/* && rmdir out
8682   cd ..
8683   $RM -r conftest
8684   $RM conftest*
8685
8686fi
8687{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8688$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8689
8690
8691
8692
8693
8694
8695  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8697if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8698  $as_echo_n "(cached) " >&6
8699else
8700  lt_cv_prog_compiler_c_o=no
8701   $RM -r conftest 2>/dev/null
8702   mkdir conftest
8703   cd conftest
8704   mkdir out
8705   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8706
8707   lt_compiler_flag="-o out/conftest2.$ac_objext"
8708   # Insert the option either (1) after the last *FLAGS variable, or
8709   # (2) before a word containing "conftest.", or (3) at the end.
8710   # Note that $ac_compile itself does not contain backslashes and begins
8711   # with a dollar sign (not a hyphen), so the echo should work correctly.
8712   lt_compile=`echo "$ac_compile" | $SED \
8713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8715   -e 's:$: $lt_compiler_flag:'`
8716   (eval echo "\"\$as_me:8716: $lt_compile\"" >&5)
8717   (eval "$lt_compile" 2>out/conftest.err)
8718   ac_status=$?
8719   cat out/conftest.err >&5
8720   echo "$as_me:8720: \$? = $ac_status" >&5
8721   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8722   then
8723     # The compiler can only warn and ignore the option if not recognized
8724     # So say no if there are warnings
8725     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8726     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8727     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8728       lt_cv_prog_compiler_c_o=yes
8729     fi
8730   fi
8731   chmod u+w . 2>&5
8732   $RM conftest*
8733   # SGI C++ compiler will create directory out/ii_files/ for
8734   # template instantiation
8735   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8736   $RM out/* && rmdir out
8737   cd ..
8738   $RM -r conftest
8739   $RM conftest*
8740
8741fi
8742{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8743$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8744
8745
8746
8747
8748hard_links="nottested"
8749if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8750  # do not overwrite the value of need_locks provided by the user
8751  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8752$as_echo_n "checking if we can lock with hard links... " >&6; }
8753  hard_links=yes
8754  $RM conftest*
8755  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8756  touch conftest.a
8757  ln conftest.a conftest.b 2>&5 || hard_links=no
8758  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8759  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8760$as_echo "$hard_links" >&6; }
8761  if test "$hard_links" = no; then
8762    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8763$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8764    need_locks=warn
8765  fi
8766else
8767  need_locks=no
8768fi
8769
8770
8771
8772
8773
8774
8775  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8776$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8777
8778  runpath_var=
8779  allow_undefined_flag=
8780  always_export_symbols=no
8781  archive_cmds=
8782  archive_expsym_cmds=
8783  compiler_needs_object=no
8784  enable_shared_with_static_runtimes=no
8785  export_dynamic_flag_spec=
8786  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8787  hardcode_automatic=no
8788  hardcode_direct=no
8789  hardcode_direct_absolute=no
8790  hardcode_libdir_flag_spec=
8791  hardcode_libdir_flag_spec_ld=
8792  hardcode_libdir_separator=
8793  hardcode_minus_L=no
8794  hardcode_shlibpath_var=unsupported
8795  inherit_rpath=no
8796  link_all_deplibs=unknown
8797  module_cmds=
8798  module_expsym_cmds=
8799  old_archive_from_new_cmds=
8800  old_archive_from_expsyms_cmds=
8801  thread_safe_flag_spec=
8802  whole_archive_flag_spec=
8803  # include_expsyms should be a list of space-separated symbols to be *always*
8804  # included in the symbol list
8805  include_expsyms=
8806  # exclude_expsyms can be an extended regexp of symbols to exclude
8807  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8808  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8809  # as well as any symbol that contains `d'.
8810  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8811  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8812  # platforms (ab)use it in PIC code, but their linkers get confused if
8813  # the symbol is explicitly referenced.  Since portable code cannot
8814  # rely on this symbol name, it's probably fine to never include it in
8815  # preloaded symbol tables.
8816  # Exclude shared library initialization/finalization symbols.
8817  extract_expsyms_cmds=
8818
8819  case $host_os in
8820  cygwin* | mingw* | pw32* | cegcc*)
8821    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8822    # When not using gcc, we currently assume that we are using
8823    # Microsoft Visual C++.
8824    if test "$GCC" != yes; then
8825      with_gnu_ld=no
8826    fi
8827    ;;
8828  interix*)
8829    # we just hope/assume this is gcc and not c89 (= MSVC++)
8830    with_gnu_ld=yes
8831    ;;
8832  openbsd*)
8833    with_gnu_ld=no
8834    ;;
8835  esac
8836
8837  ld_shlibs=yes
8838  if test "$with_gnu_ld" = yes; then
8839    # If archive_cmds runs LD, not CC, wlarc should be empty
8840    wlarc='${wl}'
8841
8842    # Set some defaults for GNU ld with shared library support. These
8843    # are reset later if shared libraries are not supported. Putting them
8844    # here allows them to be overridden if necessary.
8845    runpath_var=LD_RUN_PATH
8846    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847    export_dynamic_flag_spec='${wl}--export-dynamic'
8848    # ancient GNU ld didn't support --whole-archive et. al.
8849    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8850      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8851    else
8852      whole_archive_flag_spec=
8853    fi
8854    supports_anon_versioning=no
8855    case `$LD -v 2>&1` in
8856      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8857      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8858      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8859      *\ 2.11.*) ;; # other 2.11 versions
8860      *) supports_anon_versioning=yes ;;
8861    esac
8862
8863    # See if GNU ld supports shared libraries.
8864    case $host_os in
8865    aix[3-9]*)
8866      # On AIX/PPC, the GNU linker is very broken
8867      if test "$host_cpu" != ia64; then
8868	ld_shlibs=no
8869	cat <<_LT_EOF 1>&2
8870
8871*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8872*** to be unable to reliably create shared libraries on AIX.
8873*** Therefore, libtool is disabling shared libraries support.  If you
8874*** really care for shared libraries, you may want to modify your PATH
8875*** so that a non-GNU linker is found, and then restart.
8876
8877_LT_EOF
8878      fi
8879      ;;
8880
8881    amigaos*)
8882      case $host_cpu in
8883      powerpc)
8884            # see comment about AmigaOS4 .so support
8885            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886            archive_expsym_cmds=''
8887        ;;
8888      m68k)
8889            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)'
8890            hardcode_libdir_flag_spec='-L$libdir'
8891            hardcode_minus_L=yes
8892        ;;
8893      esac
8894      ;;
8895
8896    beos*)
8897      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8898	allow_undefined_flag=unsupported
8899	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8900	# support --undefined.  This deserves some investigation.  FIXME
8901	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8902      else
8903	ld_shlibs=no
8904      fi
8905      ;;
8906
8907    cygwin* | mingw* | pw32* | cegcc*)
8908      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8909      # as there is no search path for DLLs.
8910      hardcode_libdir_flag_spec='-L$libdir'
8911      allow_undefined_flag=unsupported
8912      always_export_symbols=no
8913      enable_shared_with_static_runtimes=yes
8914      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8915
8916      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8917        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8918	# If the export-symbols file already is a .def file (1st line
8919	# is EXPORTS), use it as is; otherwise, prepend...
8920	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8921	  cp $export_symbols $output_objdir/$soname.def;
8922	else
8923	  echo EXPORTS > $output_objdir/$soname.def;
8924	  cat $export_symbols >> $output_objdir/$soname.def;
8925	fi~
8926	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8927      else
8928	ld_shlibs=no
8929      fi
8930      ;;
8931
8932    interix[3-9]*)
8933      hardcode_direct=no
8934      hardcode_shlibpath_var=no
8935      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936      export_dynamic_flag_spec='${wl}-E'
8937      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8938      # Instead, shared libraries are loaded at an image base (0x10000000 by
8939      # default) and relocated if they conflict, which is a slow very memory
8940      # consuming and fragmenting process.  To avoid this, we pick a random,
8941      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8942      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8943      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8944      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'
8945      ;;
8946
8947    gnu* | linux* | tpf* | k*bsd*-gnu)
8948      tmp_diet=no
8949      if test "$host_os" = linux-dietlibc; then
8950	case $cc_basename in
8951	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8952	esac
8953      fi
8954      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8955	 && test "$tmp_diet" = no
8956      then
8957	tmp_addflag=
8958	tmp_sharedflag='-shared'
8959	case $cc_basename,$host_cpu in
8960        pgcc*)				# Portland Group C compiler
8961	  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'
8962	  tmp_addflag=' $pic_flag'
8963	  ;;
8964	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8965	  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'
8966	  tmp_addflag=' $pic_flag -Mnomain' ;;
8967	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8968	  tmp_addflag=' -i_dynamic' ;;
8969	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8970	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8971	ifc* | ifort*)			# Intel Fortran compiler
8972	  tmp_addflag=' -nofor_main' ;;
8973	lf95*)				# Lahey Fortran 8.1
8974	  whole_archive_flag_spec=
8975	  tmp_sharedflag='--shared' ;;
8976	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8977	  tmp_sharedflag='-qmkshrobj'
8978	  tmp_addflag= ;;
8979	esac
8980	case `$CC -V 2>&1 | sed 5q` in
8981	*Sun\ C*)			# Sun C 5.9
8982	  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'
8983	  compiler_needs_object=yes
8984	  tmp_sharedflag='-G' ;;
8985	*Sun\ F*)			# Sun Fortran 8.3
8986	  tmp_sharedflag='-G' ;;
8987	esac
8988	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989
8990        if test "x$supports_anon_versioning" = xyes; then
8991          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993	    echo "local: *; };" >> $output_objdir/$libname.ver~
8994	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8995        fi
8996
8997	case $cc_basename in
8998	xlf*)
8999	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9000	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9001	  hardcode_libdir_flag_spec=
9002	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9003	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9004	  if test "x$supports_anon_versioning" = xyes; then
9005	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9006	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9007	      echo "local: *; };" >> $output_objdir/$libname.ver~
9008	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9009	  fi
9010	  ;;
9011	esac
9012      else
9013        ld_shlibs=no
9014      fi
9015      ;;
9016
9017    netbsd*)
9018      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9019	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9020	wlarc=
9021      else
9022	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024      fi
9025      ;;
9026
9027    solaris*)
9028      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9029	ld_shlibs=no
9030	cat <<_LT_EOF 1>&2
9031
9032*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9033*** create shared libraries on Solaris systems.  Therefore, libtool
9034*** is disabling shared libraries support.  We urge you to upgrade GNU
9035*** binutils to release 2.9.1 or newer.  Another option is to modify
9036*** your PATH or compiler configuration so that the native linker is
9037*** used, and then restart.
9038
9039_LT_EOF
9040      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043      else
9044	ld_shlibs=no
9045      fi
9046      ;;
9047
9048    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9049      case `$LD -v 2>&1` in
9050        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9051	ld_shlibs=no
9052	cat <<_LT_EOF 1>&2
9053
9054*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9055*** reliably create shared libraries on SCO systems.  Therefore, libtool
9056*** is disabling shared libraries support.  We urge you to upgrade GNU
9057*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9058*** your PATH or compiler configuration so that the native linker is
9059*** used, and then restart.
9060
9061_LT_EOF
9062	;;
9063	*)
9064	  # For security reasons, it is highly recommended that you always
9065	  # use absolute paths for naming shared libraries, and exclude the
9066	  # DT_RUNPATH tag from executables and libraries.  But doing so
9067	  # requires that you compile everything twice, which is a pain.
9068	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9069	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9070	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9072	  else
9073	    ld_shlibs=no
9074	  fi
9075	;;
9076      esac
9077      ;;
9078
9079    sunos4*)
9080      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9081      wlarc=
9082      hardcode_direct=yes
9083      hardcode_shlibpath_var=no
9084      ;;
9085
9086    *)
9087      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9088	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090      else
9091	ld_shlibs=no
9092      fi
9093      ;;
9094    esac
9095
9096    if test "$ld_shlibs" = no; then
9097      runpath_var=
9098      hardcode_libdir_flag_spec=
9099      export_dynamic_flag_spec=
9100      whole_archive_flag_spec=
9101    fi
9102  else
9103    # PORTME fill in a description of your system's linker (not GNU ld)
9104    case $host_os in
9105    aix3*)
9106      allow_undefined_flag=unsupported
9107      always_export_symbols=yes
9108      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'
9109      # Note: this linker hardcodes the directories in LIBPATH if there
9110      # are no directories specified by -L.
9111      hardcode_minus_L=yes
9112      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9113	# Neither direct hardcoding nor static linking is supported with a
9114	# broken collect2.
9115	hardcode_direct=unsupported
9116      fi
9117      ;;
9118
9119    aix[4-9]*)
9120      if test "$host_cpu" = ia64; then
9121	# On IA64, the linker does run time linking by default, so we don't
9122	# have to do anything special.
9123	aix_use_runtimelinking=no
9124	exp_sym_flag='-Bexport'
9125	no_entry_flag=""
9126      else
9127	# If we're using GNU nm, then we don't want the "-C" option.
9128	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9129	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9130	  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'
9131	else
9132	  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'
9133	fi
9134	aix_use_runtimelinking=no
9135
9136	# Test if we are trying to use run time linking or normal
9137	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9138	# need to do runtime linking.
9139	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9140	  for ld_flag in $LDFLAGS; do
9141	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9142	    aix_use_runtimelinking=yes
9143	    break
9144	  fi
9145	  done
9146	  ;;
9147	esac
9148
9149	exp_sym_flag='-bexport'
9150	no_entry_flag='-bnoentry'
9151      fi
9152
9153      # When large executables or shared objects are built, AIX ld can
9154      # have problems creating the table of contents.  If linking a library
9155      # or program results in "error TOC overflow" add -mminimal-toc to
9156      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9157      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9158
9159      archive_cmds=''
9160      hardcode_direct=yes
9161      hardcode_direct_absolute=yes
9162      hardcode_libdir_separator=':'
9163      link_all_deplibs=yes
9164      file_list_spec='${wl}-f,'
9165
9166      if test "$GCC" = yes; then
9167	case $host_os in aix4.[012]|aix4.[012].*)
9168	# We only want to do this on AIX 4.2 and lower, the check
9169	# below for broken collect2 doesn't work under 4.3+
9170	  collect2name=`${CC} -print-prog-name=collect2`
9171	  if test -f "$collect2name" &&
9172	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9173	  then
9174	  # We have reworked collect2
9175	  :
9176	  else
9177	  # We have old collect2
9178	  hardcode_direct=unsupported
9179	  # It fails to find uninstalled libraries when the uninstalled
9180	  # path is not listed in the libpath.  Setting hardcode_minus_L
9181	  # to unsupported forces relinking
9182	  hardcode_minus_L=yes
9183	  hardcode_libdir_flag_spec='-L$libdir'
9184	  hardcode_libdir_separator=
9185	  fi
9186	  ;;
9187	esac
9188	shared_flag='-shared'
9189	if test "$aix_use_runtimelinking" = yes; then
9190	  shared_flag="$shared_flag "'${wl}-G'
9191	fi
9192      else
9193	# not using gcc
9194	if test "$host_cpu" = ia64; then
9195	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9196	# chokes on -Wl,-G. The following line is correct:
9197	  shared_flag='-G'
9198	else
9199	  if test "$aix_use_runtimelinking" = yes; then
9200	    shared_flag='${wl}-G'
9201	  else
9202	    shared_flag='${wl}-bM:SRE'
9203	  fi
9204	fi
9205      fi
9206
9207      export_dynamic_flag_spec='${wl}-bexpall'
9208      # It seems that -bexpall does not export symbols beginning with
9209      # underscore (_), so it is better to generate a list of symbols to export.
9210      always_export_symbols=yes
9211      if test "$aix_use_runtimelinking" = yes; then
9212	# Warning - without using the other runtime loading flags (-brtl),
9213	# -berok will link without error, but may produce a broken library.
9214	allow_undefined_flag='-berok'
9215        # Determine the default libpath from the value encoded in an
9216        # empty executable.
9217        cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h.  */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h.  */
9223
9224int
9225main ()
9226{
9227
9228  ;
9229  return 0;
9230}
9231_ACEOF
9232rm -f conftest.$ac_objext conftest$ac_exeext
9233if { (ac_try="$ac_link"
9234case "(($ac_try" in
9235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236  *) ac_try_echo=$ac_try;;
9237esac
9238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9239$as_echo "$ac_try_echo") >&5
9240  (eval "$ac_link") 2>conftest.er1
9241  ac_status=$?
9242  grep -v '^ *+' conftest.er1 >conftest.err
9243  rm -f conftest.er1
9244  cat conftest.err >&5
9245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246  (exit $ac_status); } && {
9247	 test -z "$ac_c_werror_flag" ||
9248	 test ! -s conftest.err
9249       } && test -s conftest$ac_exeext && {
9250	 test "$cross_compiling" = yes ||
9251	 $as_test_x conftest$ac_exeext
9252       }; then
9253
9254lt_aix_libpath_sed='
9255    /Import File Strings/,/^$/ {
9256	/^0/ {
9257	    s/^0  *\(.*\)$/\1/
9258	    p
9259	}
9260    }'
9261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262# Check for a 64-bit object if we didn't find anything.
9263if test -z "$aix_libpath"; then
9264  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265fi
9266else
9267  $as_echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270
9271fi
9272
9273rm -rf conftest.dSYM
9274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9275      conftest$ac_exeext conftest.$ac_ext
9276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9277
9278        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9279        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"
9280      else
9281	if test "$host_cpu" = ia64; then
9282	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9283	  allow_undefined_flag="-z nodefs"
9284	  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"
9285	else
9286	 # Determine the default libpath from the value encoded in an
9287	 # empty executable.
9288	 cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h.  */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h.  */
9294
9295int
9296main ()
9297{
9298
9299  ;
9300  return 0;
9301}
9302_ACEOF
9303rm -f conftest.$ac_objext conftest$ac_exeext
9304if { (ac_try="$ac_link"
9305case "(($ac_try" in
9306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307  *) ac_try_echo=$ac_try;;
9308esac
9309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310$as_echo "$ac_try_echo") >&5
9311  (eval "$ac_link") 2>conftest.er1
9312  ac_status=$?
9313  grep -v '^ *+' conftest.er1 >conftest.err
9314  rm -f conftest.er1
9315  cat conftest.err >&5
9316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317  (exit $ac_status); } && {
9318	 test -z "$ac_c_werror_flag" ||
9319	 test ! -s conftest.err
9320       } && test -s conftest$ac_exeext && {
9321	 test "$cross_compiling" = yes ||
9322	 $as_test_x conftest$ac_exeext
9323       }; then
9324
9325lt_aix_libpath_sed='
9326    /Import File Strings/,/^$/ {
9327	/^0/ {
9328	    s/^0  *\(.*\)$/\1/
9329	    p
9330	}
9331    }'
9332aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9333# Check for a 64-bit object if we didn't find anything.
9334if test -z "$aix_libpath"; then
9335  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9336fi
9337else
9338  $as_echo "$as_me: failed program was:" >&5
9339sed 's/^/| /' conftest.$ac_ext >&5
9340
9341
9342fi
9343
9344rm -rf conftest.dSYM
9345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9346      conftest$ac_exeext conftest.$ac_ext
9347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9348
9349	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9350	  # Warning - without using the other run time loading flags,
9351	  # -berok will link without error, but may produce a broken library.
9352	  no_undefined_flag=' ${wl}-bernotok'
9353	  allow_undefined_flag=' ${wl}-berok'
9354	  # Exported symbols can be pulled into shared objects from archives
9355	  whole_archive_flag_spec='$convenience'
9356	  archive_cmds_need_lc=yes
9357	  # This is similar to how AIX traditionally builds its shared libraries.
9358	  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'
9359	fi
9360      fi
9361      ;;
9362
9363    amigaos*)
9364      case $host_cpu in
9365      powerpc)
9366            # see comment about AmigaOS4 .so support
9367            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368            archive_expsym_cmds=''
9369        ;;
9370      m68k)
9371            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)'
9372            hardcode_libdir_flag_spec='-L$libdir'
9373            hardcode_minus_L=yes
9374        ;;
9375      esac
9376      ;;
9377
9378    bsdi[45]*)
9379      export_dynamic_flag_spec=-rdynamic
9380      ;;
9381
9382    cygwin* | mingw* | pw32* | cegcc*)
9383      # When not using gcc, we currently assume that we are using
9384      # Microsoft Visual C++.
9385      # hardcode_libdir_flag_spec is actually meaningless, as there is
9386      # no search path for DLLs.
9387      hardcode_libdir_flag_spec=' '
9388      allow_undefined_flag=unsupported
9389      # Tell ltmain to make .lib files, not .a files.
9390      libext=lib
9391      # Tell ltmain to make .dll files, not .so files.
9392      shrext_cmds=".dll"
9393      # FIXME: Setting linknames here is a bad hack.
9394      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9395      # The linker will automatically build a .lib file if we build a DLL.
9396      old_archive_from_new_cmds='true'
9397      # FIXME: Should let the user specify the lib program.
9398      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9399      fix_srcfile_path='`cygpath -w "$srcfile"`'
9400      enable_shared_with_static_runtimes=yes
9401      ;;
9402
9403    darwin* | rhapsody*)
9404
9405
9406  archive_cmds_need_lc=no
9407  hardcode_direct=no
9408  hardcode_automatic=yes
9409  hardcode_shlibpath_var=unsupported
9410  whole_archive_flag_spec=''
9411  link_all_deplibs=yes
9412  allow_undefined_flag="$_lt_dar_allow_undefined"
9413  case $cc_basename in
9414     ifort*) _lt_dar_can_shared=yes ;;
9415     *) _lt_dar_can_shared=$GCC ;;
9416  esac
9417  if test "$_lt_dar_can_shared" = "yes"; then
9418    output_verbose_link_cmd=echo
9419    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9420    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9421    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}"
9422    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}"
9423
9424  else
9425  ld_shlibs=no
9426  fi
9427
9428      ;;
9429
9430    dgux*)
9431      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9432      hardcode_libdir_flag_spec='-L$libdir'
9433      hardcode_shlibpath_var=no
9434      ;;
9435
9436    freebsd1*)
9437      ld_shlibs=no
9438      ;;
9439
9440    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9441    # support.  Future versions do this automatically, but an explicit c++rt0.o
9442    # does not break anything, and helps significantly (at the cost of a little
9443    # extra space).
9444    freebsd2.2*)
9445      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9446      hardcode_libdir_flag_spec='-R$libdir'
9447      hardcode_direct=yes
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9452    freebsd2*)
9453      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454      hardcode_direct=yes
9455      hardcode_minus_L=yes
9456      hardcode_shlibpath_var=no
9457      ;;
9458
9459    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9460    freebsd* | dragonfly*)
9461      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9462      hardcode_libdir_flag_spec='-R$libdir'
9463      hardcode_direct=yes
9464      hardcode_shlibpath_var=no
9465      ;;
9466
9467    hpux9*)
9468      if test "$GCC" = yes; then
9469	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'
9470      else
9471	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'
9472      fi
9473      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474      hardcode_libdir_separator=:
9475      hardcode_direct=yes
9476
9477      # hardcode_minus_L: Not really in the search PATH,
9478      # but as the default location of the library.
9479      hardcode_minus_L=yes
9480      export_dynamic_flag_spec='${wl}-E'
9481      ;;
9482
9483    hpux10*)
9484      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9485	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9486      else
9487	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9488      fi
9489      if test "$with_gnu_ld" = no; then
9490	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491	hardcode_libdir_flag_spec_ld='+b $libdir'
9492	hardcode_libdir_separator=:
9493	hardcode_direct=yes
9494	hardcode_direct_absolute=yes
9495	export_dynamic_flag_spec='${wl}-E'
9496	# hardcode_minus_L: Not really in the search PATH,
9497	# but as the default location of the library.
9498	hardcode_minus_L=yes
9499      fi
9500      ;;
9501
9502    hpux11*)
9503      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9504	case $host_cpu in
9505	hppa*64*)
9506	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507	  ;;
9508	ia64*)
9509	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9510	  ;;
9511	*)
9512	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9513	  ;;
9514	esac
9515      else
9516	case $host_cpu in
9517	hppa*64*)
9518	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9519	  ;;
9520	ia64*)
9521	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9522	  ;;
9523	*)
9524	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9525	  ;;
9526	esac
9527      fi
9528      if test "$with_gnu_ld" = no; then
9529	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9530	hardcode_libdir_separator=:
9531
9532	case $host_cpu in
9533	hppa*64*|ia64*)
9534	  hardcode_direct=no
9535	  hardcode_shlibpath_var=no
9536	  ;;
9537	*)
9538	  hardcode_direct=yes
9539	  hardcode_direct_absolute=yes
9540	  export_dynamic_flag_spec='${wl}-E'
9541
9542	  # hardcode_minus_L: Not really in the search PATH,
9543	  # but as the default location of the library.
9544	  hardcode_minus_L=yes
9545	  ;;
9546	esac
9547      fi
9548      ;;
9549
9550    irix5* | irix6* | nonstopux*)
9551      if test "$GCC" = yes; then
9552	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'
9553	# Try to use the -exported_symbol ld option, if it does not
9554	# work, assume that -exports_file does not work either and
9555	# implicitly export all symbols.
9556        save_LDFLAGS="$LDFLAGS"
9557        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9558        cat >conftest.$ac_ext <<_ACEOF
9559int foo(void) {}
9560_ACEOF
9561rm -f conftest.$ac_objext conftest$ac_exeext
9562if { (ac_try="$ac_link"
9563case "(($ac_try" in
9564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565  *) ac_try_echo=$ac_try;;
9566esac
9567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568$as_echo "$ac_try_echo") >&5
9569  (eval "$ac_link") 2>conftest.er1
9570  ac_status=$?
9571  grep -v '^ *+' conftest.er1 >conftest.err
9572  rm -f conftest.er1
9573  cat conftest.err >&5
9574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575  (exit $ac_status); } && {
9576	 test -z "$ac_c_werror_flag" ||
9577	 test ! -s conftest.err
9578       } && test -s conftest$ac_exeext && {
9579	 test "$cross_compiling" = yes ||
9580	 $as_test_x conftest$ac_exeext
9581       }; then
9582  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'
9583
9584else
9585  $as_echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588
9589fi
9590
9591rm -rf conftest.dSYM
9592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593      conftest$ac_exeext conftest.$ac_ext
9594        LDFLAGS="$save_LDFLAGS"
9595      else
9596	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'
9597	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'
9598      fi
9599      archive_cmds_need_lc='no'
9600      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601      hardcode_libdir_separator=:
9602      inherit_rpath=yes
9603      link_all_deplibs=yes
9604      ;;
9605
9606    netbsd*)
9607      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9608	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9609      else
9610	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9611      fi
9612      hardcode_libdir_flag_spec='-R$libdir'
9613      hardcode_direct=yes
9614      hardcode_shlibpath_var=no
9615      ;;
9616
9617    newsos6)
9618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619      hardcode_direct=yes
9620      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621      hardcode_libdir_separator=:
9622      hardcode_shlibpath_var=no
9623      ;;
9624
9625    *nto* | *qnx*)
9626      ;;
9627
9628    openbsd*)
9629      if test -f /usr/libexec/ld.so; then
9630	hardcode_direct=yes
9631	hardcode_shlibpath_var=no
9632	hardcode_direct_absolute=yes
9633	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9636	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637	  export_dynamic_flag_spec='${wl}-E'
9638	else
9639	  case $host_os in
9640	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9641	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642	     hardcode_libdir_flag_spec='-R$libdir'
9643	     ;;
9644	   *)
9645	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647	     ;;
9648	  esac
9649	fi
9650      else
9651	ld_shlibs=no
9652      fi
9653      ;;
9654
9655    os2*)
9656      hardcode_libdir_flag_spec='-L$libdir'
9657      hardcode_minus_L=yes
9658      allow_undefined_flag=unsupported
9659      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'
9660      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9661      ;;
9662
9663    osf3*)
9664      if test "$GCC" = yes; then
9665	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9666	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'
9667      else
9668	allow_undefined_flag=' -expect_unresolved \*'
9669	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'
9670      fi
9671      archive_cmds_need_lc='no'
9672      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673      hardcode_libdir_separator=:
9674      ;;
9675
9676    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9677      if test "$GCC" = yes; then
9678	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9679	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'
9680	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9681      else
9682	allow_undefined_flag=' -expect_unresolved \*'
9683	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'
9684	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~
9685	$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'
9686
9687	# Both c and cxx compiler support -rpath directly
9688	hardcode_libdir_flag_spec='-rpath $libdir'
9689      fi
9690      archive_cmds_need_lc='no'
9691      hardcode_libdir_separator=:
9692      ;;
9693
9694    solaris*)
9695      no_undefined_flag=' -z defs'
9696      if test "$GCC" = yes; then
9697	wlarc='${wl}'
9698	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9700	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9701      else
9702	case `$CC -V 2>&1` in
9703	*"Compilers 5.0"*)
9704	  wlarc=''
9705	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9708	  ;;
9709	*)
9710	  wlarc='${wl}'
9711	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9714	  ;;
9715	esac
9716      fi
9717      hardcode_libdir_flag_spec='-R$libdir'
9718      hardcode_shlibpath_var=no
9719      case $host_os in
9720      solaris2.[0-5] | solaris2.[0-5].*) ;;
9721      *)
9722	# The compiler driver will combine and reorder linker options,
9723	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9724	# but is careful enough not to reorder.
9725	# Supported since Solaris 2.6 (maybe 2.5.1?)
9726	if test "$GCC" = yes; then
9727	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9728	else
9729	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9730	fi
9731	;;
9732      esac
9733      link_all_deplibs=yes
9734      ;;
9735
9736    sunos4*)
9737      if test "x$host_vendor" = xsequent; then
9738	# Use $CC to link under sequent, because it throws in some extra .o
9739	# files that make .init and .fini sections work.
9740	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9741      else
9742	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9743      fi
9744      hardcode_libdir_flag_spec='-L$libdir'
9745      hardcode_direct=yes
9746      hardcode_minus_L=yes
9747      hardcode_shlibpath_var=no
9748      ;;
9749
9750    sysv4)
9751      case $host_vendor in
9752	sni)
9753	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754	  hardcode_direct=yes # is this really true???
9755	;;
9756	siemens)
9757	  ## LD is ld it makes a PLAMLIB
9758	  ## CC just makes a GrossModule.
9759	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760	  reload_cmds='$CC -r -o $output$reload_objs'
9761	  hardcode_direct=no
9762        ;;
9763	motorola)
9764	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9766	;;
9767      esac
9768      runpath_var='LD_RUN_PATH'
9769      hardcode_shlibpath_var=no
9770      ;;
9771
9772    sysv4.3*)
9773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774      hardcode_shlibpath_var=no
9775      export_dynamic_flag_spec='-Bexport'
9776      ;;
9777
9778    sysv4*MP*)
9779      if test -d /usr/nec; then
9780	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781	hardcode_shlibpath_var=no
9782	runpath_var=LD_RUN_PATH
9783	hardcode_runpath_var=yes
9784	ld_shlibs=yes
9785      fi
9786      ;;
9787
9788    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9789      no_undefined_flag='${wl}-z,text'
9790      archive_cmds_need_lc=no
9791      hardcode_shlibpath_var=no
9792      runpath_var='LD_RUN_PATH'
9793
9794      if test "$GCC" = yes; then
9795	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797      else
9798	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800      fi
9801      ;;
9802
9803    sysv5* | sco3.2v5* | sco5v6*)
9804      # Note: We can NOT use -z defs as we might desire, because we do not
9805      # link with -lc, and that would cause any symbols used from libc to
9806      # always be unresolved, which means just about no library would
9807      # ever link correctly.  If we're not using GNU ld we use -z text
9808      # though, which does catch some bad symbols but isn't as heavy-handed
9809      # as -z defs.
9810      no_undefined_flag='${wl}-z,text'
9811      allow_undefined_flag='${wl}-z,nodefs'
9812      archive_cmds_need_lc=no
9813      hardcode_shlibpath_var=no
9814      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9815      hardcode_libdir_separator=':'
9816      link_all_deplibs=yes
9817      export_dynamic_flag_spec='${wl}-Bexport'
9818      runpath_var='LD_RUN_PATH'
9819
9820      if test "$GCC" = yes; then
9821	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823      else
9824	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826      fi
9827      ;;
9828
9829    uts4*)
9830      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831      hardcode_libdir_flag_spec='-L$libdir'
9832      hardcode_shlibpath_var=no
9833      ;;
9834
9835    *)
9836      ld_shlibs=no
9837      ;;
9838    esac
9839
9840    if test x$host_vendor = xsni; then
9841      case $host in
9842      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9843	export_dynamic_flag_spec='${wl}-Blargedynsym'
9844	;;
9845      esac
9846    fi
9847  fi
9848
9849{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9850$as_echo "$ld_shlibs" >&6; }
9851test "$ld_shlibs" = no && can_build_shared=no
9852
9853with_gnu_ld=$with_gnu_ld
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869#
9870# Do we need to explicitly link libc?
9871#
9872case "x$archive_cmds_need_lc" in
9873x|xyes)
9874  # Assume -lc should be added
9875  archive_cmds_need_lc=yes
9876
9877  if test "$enable_shared" = yes && test "$GCC" = yes; then
9878    case $archive_cmds in
9879    *'~'*)
9880      # FIXME: we may have to deal with multi-command sequences.
9881      ;;
9882    '$CC '*)
9883      # Test whether the compiler implicitly links with -lc since on some
9884      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9885      # to ld, don't add -lc before -lgcc.
9886      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9887$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9888      $RM conftest*
9889      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9890
9891      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892  (eval $ac_compile) 2>&5
9893  ac_status=$?
9894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895  (exit $ac_status); } 2>conftest.err; then
9896        soname=conftest
9897        lib=conftest
9898        libobjs=conftest.$ac_objext
9899        deplibs=
9900        wl=$lt_prog_compiler_wl
9901	pic_flag=$lt_prog_compiler_pic
9902        compiler_flags=-v
9903        linker_flags=-v
9904        verstring=
9905        output_objdir=.
9906        libname=conftest
9907        lt_save_allow_undefined_flag=$allow_undefined_flag
9908        allow_undefined_flag=
9909        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9910  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9911  ac_status=$?
9912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); }
9914        then
9915	  archive_cmds_need_lc=no
9916        else
9917	  archive_cmds_need_lc=yes
9918        fi
9919        allow_undefined_flag=$lt_save_allow_undefined_flag
9920      else
9921        cat conftest.err 1>&5
9922      fi
9923      $RM conftest*
9924      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9925$as_echo "$archive_cmds_need_lc" >&6; }
9926      ;;
9927    esac
9928  fi
9929  ;;
9930esac
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
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  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10089$as_echo_n "checking dynamic linker characteristics... " >&6; }
10090
10091if test "$GCC" = yes; then
10092  case $host_os in
10093    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10094    *) lt_awk_arg="/^libraries:/" ;;
10095  esac
10096  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10097  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10098    # if the path contains ";" then we assume it to be the separator
10099    # otherwise default to the standard path separator (i.e. ":") - it is
10100    # assumed that no part of a normal pathname contains ";" but that should
10101    # okay in the real world where ";" in dirpaths is itself problematic.
10102    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10103  else
10104    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10105  fi
10106  # Ok, now we have the path, separated by spaces, we can step through it
10107  # and add multilib dir if necessary.
10108  lt_tmp_lt_search_path_spec=
10109  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10110  for lt_sys_path in $lt_search_path_spec; do
10111    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10112      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10113    else
10114      test -d "$lt_sys_path" && \
10115	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10116    fi
10117  done
10118  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10119BEGIN {RS=" "; FS="/|\n";} {
10120  lt_foo="";
10121  lt_count=0;
10122  for (lt_i = NF; lt_i > 0; lt_i--) {
10123    if ($lt_i != "" && $lt_i != ".") {
10124      if ($lt_i == "..") {
10125        lt_count++;
10126      } else {
10127        if (lt_count == 0) {
10128          lt_foo="/" $lt_i lt_foo;
10129        } else {
10130          lt_count--;
10131        }
10132      }
10133    }
10134  }
10135  if (lt_foo != "") { lt_freq[lt_foo]++; }
10136  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10137}'`
10138  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10139else
10140  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10141fi
10142library_names_spec=
10143libname_spec='lib$name'
10144soname_spec=
10145shrext_cmds=".so"
10146postinstall_cmds=
10147postuninstall_cmds=
10148finish_cmds=
10149finish_eval=
10150shlibpath_var=
10151shlibpath_overrides_runpath=unknown
10152version_type=none
10153dynamic_linker="$host_os ld.so"
10154sys_lib_dlsearch_path_spec="/lib /usr/lib"
10155need_lib_prefix=unknown
10156hardcode_into_libs=no
10157
10158# when you set need_version to no, make sure it does not cause -set_version
10159# flags to be left without arguments
10160need_version=unknown
10161
10162case $host_os in
10163aix3*)
10164  version_type=linux
10165  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10166  shlibpath_var=LIBPATH
10167
10168  # AIX 3 has no versioning support, so we append a major version to the name.
10169  soname_spec='${libname}${release}${shared_ext}$major'
10170  ;;
10171
10172aix[4-9]*)
10173  version_type=linux
10174  need_lib_prefix=no
10175  need_version=no
10176  hardcode_into_libs=yes
10177  if test "$host_cpu" = ia64; then
10178    # AIX 5 supports IA64
10179    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10180    shlibpath_var=LD_LIBRARY_PATH
10181  else
10182    # With GCC up to 2.95.x, collect2 would create an import file
10183    # for dependence libraries.  The import file would start with
10184    # the line `#! .'.  This would cause the generated library to
10185    # depend on `.', always an invalid library.  This was fixed in
10186    # development snapshots of GCC prior to 3.0.
10187    case $host_os in
10188      aix4 | aix4.[01] | aix4.[01].*)
10189      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10190	   echo ' yes '
10191	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10192	:
10193      else
10194	can_build_shared=no
10195      fi
10196      ;;
10197    esac
10198    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10199    # soname into executable. Probably we can add versioning support to
10200    # collect2, so additional links can be useful in future.
10201    if test "$aix_use_runtimelinking" = yes; then
10202      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10203      # instead of lib<name>.a to let people know that these are not
10204      # typical AIX shared libraries.
10205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206    else
10207      # We preserve .a as extension for shared libraries through AIX4.2
10208      # and later when we are not doing run time linking.
10209      library_names_spec='${libname}${release}.a $libname.a'
10210      soname_spec='${libname}${release}${shared_ext}$major'
10211    fi
10212    shlibpath_var=LIBPATH
10213  fi
10214  ;;
10215
10216amigaos*)
10217  case $host_cpu in
10218  powerpc)
10219    # Since July 2007 AmigaOS4 officially supports .so libraries.
10220    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10221    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222    ;;
10223  m68k)
10224    library_names_spec='$libname.ixlibrary $libname.a'
10225    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10226    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'
10227    ;;
10228  esac
10229  ;;
10230
10231beos*)
10232  library_names_spec='${libname}${shared_ext}'
10233  dynamic_linker="$host_os ld.so"
10234  shlibpath_var=LIBRARY_PATH
10235  ;;
10236
10237bsdi[45]*)
10238  version_type=linux
10239  need_version=no
10240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241  soname_spec='${libname}${release}${shared_ext}$major'
10242  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10243  shlibpath_var=LD_LIBRARY_PATH
10244  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10245  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10246  # the default ld.so.conf also contains /usr/contrib/lib and
10247  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10248  # libtool to hard-code these into programs
10249  ;;
10250
10251cygwin* | mingw* | pw32* | cegcc*)
10252  version_type=windows
10253  shrext_cmds=".dll"
10254  need_version=no
10255  need_lib_prefix=no
10256
10257  case $GCC,$host_os in
10258  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10259    library_names_spec='$libname.dll.a'
10260    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10261    postinstall_cmds='base_file=`basename \${file}`~
10262      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10263      dldir=$destdir/`dirname \$dlpath`~
10264      test -d \$dldir || mkdir -p \$dldir~
10265      $install_prog $dir/$dlname \$dldir/$dlname~
10266      chmod a+x \$dldir/$dlname~
10267      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10268        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10269      fi'
10270    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10271      dlpath=$dir/\$dldll~
10272       $RM \$dlpath'
10273    shlibpath_overrides_runpath=yes
10274
10275    case $host_os in
10276    cygwin*)
10277      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10278      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10279      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10280      ;;
10281    mingw* | cegcc*)
10282      # MinGW DLLs use traditional 'lib' prefix
10283      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10284      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10285      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10286        # It is most probably a Windows format PATH printed by
10287        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10288        # path with ; separators, and with drive letters. We can handle the
10289        # drive letters (cygwin fileutils understands them), so leave them,
10290        # especially as we might pass files found there to a mingw objdump,
10291        # which wouldn't understand a cygwinified path. Ahh.
10292        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10293      else
10294        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10295      fi
10296      ;;
10297    pw32*)
10298      # pw32 DLLs use 'pw' prefix rather than 'lib'
10299      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300      ;;
10301    esac
10302    ;;
10303
10304  *)
10305    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10306    ;;
10307  esac
10308  dynamic_linker='Win32 ld.exe'
10309  # FIXME: first we should search . and the directory the executable is in
10310  shlibpath_var=PATH
10311  ;;
10312
10313darwin* | rhapsody*)
10314  dynamic_linker="$host_os dyld"
10315  version_type=darwin
10316  need_lib_prefix=no
10317  need_version=no
10318  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10319  soname_spec='${libname}${release}${major}$shared_ext'
10320  shlibpath_overrides_runpath=yes
10321  shlibpath_var=DYLD_LIBRARY_PATH
10322  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10323
10324  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10325  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10326  ;;
10327
10328dgux*)
10329  version_type=linux
10330  need_lib_prefix=no
10331  need_version=no
10332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10333  soname_spec='${libname}${release}${shared_ext}$major'
10334  shlibpath_var=LD_LIBRARY_PATH
10335  ;;
10336
10337freebsd1*)
10338  dynamic_linker=no
10339  ;;
10340
10341freebsd* | dragonfly*)
10342  # DragonFly does not have aout.  When/if they implement a new
10343  # versioning mechanism, adjust this.
10344  if test -x /usr/bin/objformat; then
10345    objformat=`/usr/bin/objformat`
10346  else
10347    case $host_os in
10348    freebsd[123]*) objformat=aout ;;
10349    *) objformat=elf ;;
10350    esac
10351  fi
10352  version_type=freebsd-$objformat
10353  case $version_type in
10354    freebsd-elf*)
10355      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10356      need_version=no
10357      need_lib_prefix=no
10358      ;;
10359    freebsd-*)
10360      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10361      need_version=yes
10362      ;;
10363  esac
10364  shlibpath_var=LD_LIBRARY_PATH
10365  case $host_os in
10366  freebsd2*)
10367    shlibpath_overrides_runpath=yes
10368    ;;
10369  freebsd3.[01]* | freebsdelf3.[01]*)
10370    shlibpath_overrides_runpath=yes
10371    hardcode_into_libs=yes
10372    ;;
10373  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10374  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10375    shlibpath_overrides_runpath=no
10376    hardcode_into_libs=yes
10377    ;;
10378  *) # from 4.6 on, and DragonFly
10379    shlibpath_overrides_runpath=yes
10380    hardcode_into_libs=yes
10381    ;;
10382  esac
10383  ;;
10384
10385gnu*)
10386  version_type=linux
10387  need_lib_prefix=no
10388  need_version=no
10389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10390  soname_spec='${libname}${release}${shared_ext}$major'
10391  shlibpath_var=LD_LIBRARY_PATH
10392  hardcode_into_libs=yes
10393  ;;
10394
10395hpux9* | hpux10* | hpux11*)
10396  # Give a soname corresponding to the major version so that dld.sl refuses to
10397  # link against other versions.
10398  version_type=sunos
10399  need_lib_prefix=no
10400  need_version=no
10401  case $host_cpu in
10402  ia64*)
10403    shrext_cmds='.so'
10404    hardcode_into_libs=yes
10405    dynamic_linker="$host_os dld.so"
10406    shlibpath_var=LD_LIBRARY_PATH
10407    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10408    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409    soname_spec='${libname}${release}${shared_ext}$major'
10410    if test "X$HPUX_IA64_MODE" = X32; then
10411      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10412    else
10413      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10414    fi
10415    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10416    ;;
10417  hppa*64*)
10418    shrext_cmds='.sl'
10419    hardcode_into_libs=yes
10420    dynamic_linker="$host_os dld.sl"
10421    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10422    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10423    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424    soname_spec='${libname}${release}${shared_ext}$major'
10425    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10426    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10427    ;;
10428  *)
10429    shrext_cmds='.sl'
10430    dynamic_linker="$host_os dld.sl"
10431    shlibpath_var=SHLIB_PATH
10432    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434    soname_spec='${libname}${release}${shared_ext}$major'
10435    ;;
10436  esac
10437  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10438  postinstall_cmds='chmod 555 $lib'
10439  ;;
10440
10441interix[3-9]*)
10442  version_type=linux
10443  need_lib_prefix=no
10444  need_version=no
10445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446  soname_spec='${libname}${release}${shared_ext}$major'
10447  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10448  shlibpath_var=LD_LIBRARY_PATH
10449  shlibpath_overrides_runpath=no
10450  hardcode_into_libs=yes
10451  ;;
10452
10453irix5* | irix6* | nonstopux*)
10454  case $host_os in
10455    nonstopux*) version_type=nonstopux ;;
10456    *)
10457	if test "$lt_cv_prog_gnu_ld" = yes; then
10458		version_type=linux
10459	else
10460		version_type=irix
10461	fi ;;
10462  esac
10463  need_lib_prefix=no
10464  need_version=no
10465  soname_spec='${libname}${release}${shared_ext}$major'
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10467  case $host_os in
10468  irix5* | nonstopux*)
10469    libsuff= shlibsuff=
10470    ;;
10471  *)
10472    case $LD in # libtool.m4 will add one of these switches to LD
10473    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10474      libsuff= shlibsuff= libmagic=32-bit;;
10475    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10476      libsuff=32 shlibsuff=N32 libmagic=N32;;
10477    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10478      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10479    *) libsuff= shlibsuff= libmagic=never-match;;
10480    esac
10481    ;;
10482  esac
10483  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10484  shlibpath_overrides_runpath=no
10485  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10486  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10487  hardcode_into_libs=yes
10488  ;;
10489
10490# No shared lib support for Linux oldld, aout, or coff.
10491linux*oldld* | linux*aout* | linux*coff*)
10492  dynamic_linker=no
10493  ;;
10494
10495# This must be Linux ELF.
10496linux* | k*bsd*-gnu)
10497  version_type=linux
10498  need_lib_prefix=no
10499  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  shlibpath_overrides_runpath=no
10505  # Some binutils ld are patched to set DT_RUNPATH
10506  save_LDFLAGS=$LDFLAGS
10507  save_libdir=$libdir
10508  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10509       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10510  cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h.  */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h.  */
10516
10517int
10518main ()
10519{
10520
10521  ;
10522  return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext conftest$ac_exeext
10526if { (ac_try="$ac_link"
10527case "(($ac_try" in
10528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529  *) ac_try_echo=$ac_try;;
10530esac
10531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10532$as_echo "$ac_try_echo") >&5
10533  (eval "$ac_link") 2>conftest.er1
10534  ac_status=$?
10535  grep -v '^ *+' conftest.er1 >conftest.err
10536  rm -f conftest.er1
10537  cat conftest.err >&5
10538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); } && {
10540	 test -z "$ac_c_werror_flag" ||
10541	 test ! -s conftest.err
10542       } && test -s conftest$ac_exeext && {
10543	 test "$cross_compiling" = yes ||
10544	 $as_test_x conftest$ac_exeext
10545       }; then
10546  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10547  shlibpath_overrides_runpath=yes
10548fi
10549
10550else
10551  $as_echo "$as_me: failed program was:" >&5
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
10554
10555fi
10556
10557rm -rf conftest.dSYM
10558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10559      conftest$ac_exeext conftest.$ac_ext
10560  LDFLAGS=$save_LDFLAGS
10561  libdir=$save_libdir
10562
10563  # This implies no fast_install, which is unacceptable.
10564  # Some rework will be needed to allow for fast_install
10565  # before this can be enabled.
10566  hardcode_into_libs=yes
10567
10568  # Add ABI-specific directories to the system library path.
10569  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10570
10571  # Append ld.so.conf contents to the search path
10572  if test -f /etc/ld.so.conf; then
10573    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' ' '`
10574    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10575  fi
10576
10577  # We used to test for /lib/ld.so.1 and disable shared libraries on
10578  # powerpc, because MkLinux only supported shared libraries with the
10579  # GNU dynamic linker.  Since this was broken with cross compilers,
10580  # most powerpc-linux boxes support dynamic linking these days and
10581  # people can always --disable-shared, the test was removed, and we
10582  # assume the GNU/Linux dynamic linker is in use.
10583  dynamic_linker='GNU/Linux ld.so'
10584  ;;
10585
10586netbsd*)
10587  version_type=sunos
10588  need_lib_prefix=no
10589  need_version=no
10590  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10591    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10593    dynamic_linker='NetBSD (a.out) ld.so'
10594  else
10595    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10596    soname_spec='${libname}${release}${shared_ext}$major'
10597    dynamic_linker='NetBSD ld.elf_so'
10598  fi
10599  shlibpath_var=LD_LIBRARY_PATH
10600  shlibpath_overrides_runpath=yes
10601  hardcode_into_libs=yes
10602  ;;
10603
10604newsos6)
10605  version_type=linux
10606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607  shlibpath_var=LD_LIBRARY_PATH
10608  shlibpath_overrides_runpath=yes
10609  ;;
10610
10611*nto* | *qnx*)
10612  version_type=qnx
10613  need_lib_prefix=no
10614  need_version=no
10615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616  soname_spec='${libname}${release}${shared_ext}$major'
10617  shlibpath_var=LD_LIBRARY_PATH
10618  shlibpath_overrides_runpath=no
10619  hardcode_into_libs=yes
10620  dynamic_linker='ldqnx.so'
10621  ;;
10622
10623openbsd*)
10624  version_type=sunos
10625  sys_lib_dlsearch_path_spec="/usr/lib"
10626  need_lib_prefix=no
10627  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10628  case $host_os in
10629    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10630    *)				need_version=no  ;;
10631  esac
10632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10633  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10634  shlibpath_var=LD_LIBRARY_PATH
10635  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10636    case $host_os in
10637      openbsd2.[89] | openbsd2.[89].*)
10638	shlibpath_overrides_runpath=no
10639	;;
10640      *)
10641	shlibpath_overrides_runpath=yes
10642	;;
10643      esac
10644  else
10645    shlibpath_overrides_runpath=yes
10646  fi
10647  ;;
10648
10649os2*)
10650  libname_spec='$name'
10651  shrext_cmds=".dll"
10652  need_lib_prefix=no
10653  library_names_spec='$libname${shared_ext} $libname.a'
10654  dynamic_linker='OS/2 ld.exe'
10655  shlibpath_var=LIBPATH
10656  ;;
10657
10658osf3* | osf4* | osf5*)
10659  version_type=osf
10660  need_lib_prefix=no
10661  need_version=no
10662  soname_spec='${libname}${release}${shared_ext}$major'
10663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664  shlibpath_var=LD_LIBRARY_PATH
10665  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10666  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10667  ;;
10668
10669rdos*)
10670  dynamic_linker=no
10671  ;;
10672
10673solaris*)
10674  version_type=linux
10675  need_lib_prefix=no
10676  need_version=no
10677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678  soname_spec='${libname}${release}${shared_ext}$major'
10679  shlibpath_var=LD_LIBRARY_PATH
10680  shlibpath_overrides_runpath=yes
10681  hardcode_into_libs=yes
10682  # ldd complains unless libraries are executable
10683  postinstall_cmds='chmod +x $lib'
10684  ;;
10685
10686sunos4*)
10687  version_type=sunos
10688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10689  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10690  shlibpath_var=LD_LIBRARY_PATH
10691  shlibpath_overrides_runpath=yes
10692  if test "$with_gnu_ld" = yes; then
10693    need_lib_prefix=no
10694  fi
10695  need_version=yes
10696  ;;
10697
10698sysv4 | sysv4.3*)
10699  version_type=linux
10700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701  soname_spec='${libname}${release}${shared_ext}$major'
10702  shlibpath_var=LD_LIBRARY_PATH
10703  case $host_vendor in
10704    sni)
10705      shlibpath_overrides_runpath=no
10706      need_lib_prefix=no
10707      runpath_var=LD_RUN_PATH
10708      ;;
10709    siemens)
10710      need_lib_prefix=no
10711      ;;
10712    motorola)
10713      need_lib_prefix=no
10714      need_version=no
10715      shlibpath_overrides_runpath=no
10716      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10717      ;;
10718  esac
10719  ;;
10720
10721sysv4*MP*)
10722  if test -d /usr/nec ;then
10723    version_type=linux
10724    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10725    soname_spec='$libname${shared_ext}.$major'
10726    shlibpath_var=LD_LIBRARY_PATH
10727  fi
10728  ;;
10729
10730sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10731  version_type=freebsd-elf
10732  need_lib_prefix=no
10733  need_version=no
10734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10735  soname_spec='${libname}${release}${shared_ext}$major'
10736  shlibpath_var=LD_LIBRARY_PATH
10737  shlibpath_overrides_runpath=yes
10738  hardcode_into_libs=yes
10739  if test "$with_gnu_ld" = yes; then
10740    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10741  else
10742    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10743    case $host_os in
10744      sco3.2v5*)
10745        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10746	;;
10747    esac
10748  fi
10749  sys_lib_dlsearch_path_spec='/usr/lib'
10750  ;;
10751
10752tpf*)
10753  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10754  version_type=linux
10755  need_lib_prefix=no
10756  need_version=no
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758  shlibpath_var=LD_LIBRARY_PATH
10759  shlibpath_overrides_runpath=no
10760  hardcode_into_libs=yes
10761  ;;
10762
10763uts4*)
10764  version_type=linux
10765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766  soname_spec='${libname}${release}${shared_ext}$major'
10767  shlibpath_var=LD_LIBRARY_PATH
10768  ;;
10769
10770*)
10771  dynamic_linker=no
10772  ;;
10773esac
10774{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10775$as_echo "$dynamic_linker" >&6; }
10776test "$dynamic_linker" = no && can_build_shared=no
10777
10778variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10779if test "$GCC" = yes; then
10780  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10781fi
10782
10783if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10784  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10785fi
10786if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10787  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10788fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10877$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10878hardcode_action=
10879if test -n "$hardcode_libdir_flag_spec" ||
10880   test -n "$runpath_var" ||
10881   test "X$hardcode_automatic" = "Xyes" ; then
10882
10883  # We can hardcode non-existent directories.
10884  if test "$hardcode_direct" != no &&
10885     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10886     # have to relink, otherwise we might link with an installed library
10887     # when we should be linking with a yet-to-be-installed one
10888     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10889     test "$hardcode_minus_L" != no; then
10890    # Linking always hardcodes the temporary library directory.
10891    hardcode_action=relink
10892  else
10893    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10894    hardcode_action=immediate
10895  fi
10896else
10897  # We cannot hardcode anything, or else we can only hardcode existing
10898  # directories.
10899  hardcode_action=unsupported
10900fi
10901{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10902$as_echo "$hardcode_action" >&6; }
10903
10904if test "$hardcode_action" = relink ||
10905   test "$inherit_rpath" = yes; then
10906  # Fast installation is not supported
10907  enable_fast_install=no
10908elif test "$shlibpath_overrides_runpath" = yes ||
10909     test "$enable_shared" = no; then
10910  # Fast installation is not necessary
10911  enable_fast_install=needless
10912fi
10913
10914
10915
10916
10917
10918
10919  if test "x$enable_dlopen" != xyes; then
10920  enable_dlopen=unknown
10921  enable_dlopen_self=unknown
10922  enable_dlopen_self_static=unknown
10923else
10924  lt_cv_dlopen=no
10925  lt_cv_dlopen_libs=
10926
10927  case $host_os in
10928  beos*)
10929    lt_cv_dlopen="load_add_on"
10930    lt_cv_dlopen_libs=
10931    lt_cv_dlopen_self=yes
10932    ;;
10933
10934  mingw* | pw32* | cegcc*)
10935    lt_cv_dlopen="LoadLibrary"
10936    lt_cv_dlopen_libs=
10937    ;;
10938
10939  cygwin*)
10940    lt_cv_dlopen="dlopen"
10941    lt_cv_dlopen_libs=
10942    ;;
10943
10944  darwin*)
10945  # if libdl is installed we need to link against it
10946    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10947$as_echo_n "checking for dlopen in -ldl... " >&6; }
10948if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10949  $as_echo_n "(cached) " >&6
10950else
10951  ac_check_lib_save_LIBS=$LIBS
10952LIBS="-ldl  $LIBS"
10953cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h.  */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h.  */
10959
10960/* Override any GCC internal prototype to avoid an error.
10961   Use char because int might match the return type of a GCC
10962   builtin and then its argument prototype would still apply.  */
10963#ifdef __cplusplus
10964extern "C"
10965#endif
10966char dlopen ();
10967int
10968main ()
10969{
10970return dlopen ();
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975rm -f conftest.$ac_objext conftest$ac_exeext
10976if { (ac_try="$ac_link"
10977case "(($ac_try" in
10978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979  *) ac_try_echo=$ac_try;;
10980esac
10981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10982$as_echo "$ac_try_echo") >&5
10983  (eval "$ac_link") 2>conftest.er1
10984  ac_status=$?
10985  grep -v '^ *+' conftest.er1 >conftest.err
10986  rm -f conftest.er1
10987  cat conftest.err >&5
10988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989  (exit $ac_status); } && {
10990	 test -z "$ac_c_werror_flag" ||
10991	 test ! -s conftest.err
10992       } && test -s conftest$ac_exeext && {
10993	 test "$cross_compiling" = yes ||
10994	 $as_test_x conftest$ac_exeext
10995       }; then
10996  ac_cv_lib_dl_dlopen=yes
10997else
10998  $as_echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001	ac_cv_lib_dl_dlopen=no
11002fi
11003
11004rm -rf conftest.dSYM
11005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11006      conftest$ac_exeext conftest.$ac_ext
11007LIBS=$ac_check_lib_save_LIBS
11008fi
11009{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11010$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11011if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11012  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11013else
11014
11015    lt_cv_dlopen="dyld"
11016    lt_cv_dlopen_libs=
11017    lt_cv_dlopen_self=yes
11018
11019fi
11020
11021    ;;
11022
11023  *)
11024    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11025$as_echo_n "checking for shl_load... " >&6; }
11026if test "${ac_cv_func_shl_load+set}" = set; then
11027  $as_echo_n "(cached) " >&6
11028else
11029  cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h.  */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h.  */
11035/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11036   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11037#define shl_load innocuous_shl_load
11038
11039/* System header to define __stub macros and hopefully few prototypes,
11040    which can conflict with char shl_load (); below.
11041    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11042    <limits.h> exists even on freestanding compilers.  */
11043
11044#ifdef __STDC__
11045# include <limits.h>
11046#else
11047# include <assert.h>
11048#endif
11049
11050#undef shl_load
11051
11052/* Override any GCC internal prototype to avoid an error.
11053   Use char because int might match the return type of a GCC
11054   builtin and then its argument prototype would still apply.  */
11055#ifdef __cplusplus
11056extern "C"
11057#endif
11058char shl_load ();
11059/* The GNU C library defines this for functions which it implements
11060    to always fail with ENOSYS.  Some functions are actually named
11061    something starting with __ and the normal name is an alias.  */
11062#if defined __stub_shl_load || defined __stub___shl_load
11063choke me
11064#endif
11065
11066int
11067main ()
11068{
11069return shl_load ();
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074rm -f conftest.$ac_objext conftest$ac_exeext
11075if { (ac_try="$ac_link"
11076case "(($ac_try" in
11077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078  *) ac_try_echo=$ac_try;;
11079esac
11080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11081$as_echo "$ac_try_echo") >&5
11082  (eval "$ac_link") 2>conftest.er1
11083  ac_status=$?
11084  grep -v '^ *+' conftest.er1 >conftest.err
11085  rm -f conftest.er1
11086  cat conftest.err >&5
11087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088  (exit $ac_status); } && {
11089	 test -z "$ac_c_werror_flag" ||
11090	 test ! -s conftest.err
11091       } && test -s conftest$ac_exeext && {
11092	 test "$cross_compiling" = yes ||
11093	 $as_test_x conftest$ac_exeext
11094       }; then
11095  ac_cv_func_shl_load=yes
11096else
11097  $as_echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100	ac_cv_func_shl_load=no
11101fi
11102
11103rm -rf conftest.dSYM
11104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105      conftest$ac_exeext conftest.$ac_ext
11106fi
11107{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11108$as_echo "$ac_cv_func_shl_load" >&6; }
11109if test "x$ac_cv_func_shl_load" = x""yes; then
11110  lt_cv_dlopen="shl_load"
11111else
11112  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11113$as_echo_n "checking for shl_load in -ldld... " >&6; }
11114if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11115  $as_echo_n "(cached) " >&6
11116else
11117  ac_check_lib_save_LIBS=$LIBS
11118LIBS="-ldld  $LIBS"
11119cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h.  */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h.  */
11125
11126/* Override any GCC internal prototype to avoid an error.
11127   Use char because int might match the return type of a GCC
11128   builtin and then its argument prototype would still apply.  */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char shl_load ();
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_lib_dld_shl_load=yes
11163else
11164  $as_echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167	ac_cv_lib_dld_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
11173LIBS=$ac_check_lib_save_LIBS
11174fi
11175{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11176$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11177if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11178  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11179else
11180  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11181$as_echo_n "checking for dlopen... " >&6; }
11182if test "${ac_cv_func_dlopen+set}" = set; then
11183  $as_echo_n "(cached) " >&6
11184else
11185  cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h.  */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h.  */
11191/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11192   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11193#define dlopen innocuous_dlopen
11194
11195/* System header to define __stub macros and hopefully few prototypes,
11196    which can conflict with char dlopen (); below.
11197    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11198    <limits.h> exists even on freestanding compilers.  */
11199
11200#ifdef __STDC__
11201# include <limits.h>
11202#else
11203# include <assert.h>
11204#endif
11205
11206#undef dlopen
11207
11208/* Override any GCC internal prototype to avoid an error.
11209   Use char because int might match the return type of a GCC
11210   builtin and then its argument prototype would still apply.  */
11211#ifdef __cplusplus
11212extern "C"
11213#endif
11214char dlopen ();
11215/* The GNU C library defines this for functions which it implements
11216    to always fail with ENOSYS.  Some functions are actually named
11217    something starting with __ and the normal name is an alias.  */
11218#if defined __stub_dlopen || defined __stub___dlopen
11219choke me
11220#endif
11221
11222int
11223main ()
11224{
11225return dlopen ();
11226  ;
11227  return 0;
11228}
11229_ACEOF
11230rm -f conftest.$ac_objext conftest$ac_exeext
11231if { (ac_try="$ac_link"
11232case "(($ac_try" in
11233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234  *) ac_try_echo=$ac_try;;
11235esac
11236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11237$as_echo "$ac_try_echo") >&5
11238  (eval "$ac_link") 2>conftest.er1
11239  ac_status=$?
11240  grep -v '^ *+' conftest.er1 >conftest.err
11241  rm -f conftest.er1
11242  cat conftest.err >&5
11243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244  (exit $ac_status); } && {
11245	 test -z "$ac_c_werror_flag" ||
11246	 test ! -s conftest.err
11247       } && test -s conftest$ac_exeext && {
11248	 test "$cross_compiling" = yes ||
11249	 $as_test_x conftest$ac_exeext
11250       }; then
11251  ac_cv_func_dlopen=yes
11252else
11253  $as_echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256	ac_cv_func_dlopen=no
11257fi
11258
11259rm -rf conftest.dSYM
11260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11261      conftest$ac_exeext conftest.$ac_ext
11262fi
11263{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11264$as_echo "$ac_cv_func_dlopen" >&6; }
11265if test "x$ac_cv_func_dlopen" = x""yes; then
11266  lt_cv_dlopen="dlopen"
11267else
11268  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11269$as_echo_n "checking for dlopen in -ldl... " >&6; }
11270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11271  $as_echo_n "(cached) " >&6
11272else
11273  ac_check_lib_save_LIBS=$LIBS
11274LIBS="-ldl  $LIBS"
11275cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h.  */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h.  */
11281
11282/* Override any GCC internal prototype to avoid an error.
11283   Use char because int might match the return type of a GCC
11284   builtin and then its argument prototype would still apply.  */
11285#ifdef __cplusplus
11286extern "C"
11287#endif
11288char dlopen ();
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_lib_dl_dlopen=yes
11319else
11320  $as_echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323	ac_cv_lib_dl_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
11329LIBS=$ac_check_lib_save_LIBS
11330fi
11331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11332$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11334  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335else
11336  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11337$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11338if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11339  $as_echo_n "(cached) " >&6
11340else
11341  ac_check_lib_save_LIBS=$LIBS
11342LIBS="-lsvld  $LIBS"
11343cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h.  */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h.  */
11349
11350/* Override any GCC internal prototype to avoid an error.
11351   Use char because int might match the return type of a GCC
11352   builtin and then its argument prototype would still apply.  */
11353#ifdef __cplusplus
11354extern "C"
11355#endif
11356char dlopen ();
11357int
11358main ()
11359{
11360return dlopen ();
11361  ;
11362  return 0;
11363}
11364_ACEOF
11365rm -f conftest.$ac_objext conftest$ac_exeext
11366if { (ac_try="$ac_link"
11367case "(($ac_try" in
11368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369  *) ac_try_echo=$ac_try;;
11370esac
11371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11372$as_echo "$ac_try_echo") >&5
11373  (eval "$ac_link") 2>conftest.er1
11374  ac_status=$?
11375  grep -v '^ *+' conftest.er1 >conftest.err
11376  rm -f conftest.er1
11377  cat conftest.err >&5
11378  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379  (exit $ac_status); } && {
11380	 test -z "$ac_c_werror_flag" ||
11381	 test ! -s conftest.err
11382       } && test -s conftest$ac_exeext && {
11383	 test "$cross_compiling" = yes ||
11384	 $as_test_x conftest$ac_exeext
11385       }; then
11386  ac_cv_lib_svld_dlopen=yes
11387else
11388  $as_echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391	ac_cv_lib_svld_dlopen=no
11392fi
11393
11394rm -rf conftest.dSYM
11395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11396      conftest$ac_exeext conftest.$ac_ext
11397LIBS=$ac_check_lib_save_LIBS
11398fi
11399{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11400$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11401if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11402  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11403else
11404  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11405$as_echo_n "checking for dld_link in -ldld... " >&6; }
11406if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11407  $as_echo_n "(cached) " >&6
11408else
11409  ac_check_lib_save_LIBS=$LIBS
11410LIBS="-ldld  $LIBS"
11411cat >conftest.$ac_ext <<_ACEOF
11412/* confdefs.h.  */
11413_ACEOF
11414cat confdefs.h >>conftest.$ac_ext
11415cat >>conftest.$ac_ext <<_ACEOF
11416/* end confdefs.h.  */
11417
11418/* Override any GCC internal prototype to avoid an error.
11419   Use char because int might match the return type of a GCC
11420   builtin and then its argument prototype would still apply.  */
11421#ifdef __cplusplus
11422extern "C"
11423#endif
11424char dld_link ();
11425int
11426main ()
11427{
11428return dld_link ();
11429  ;
11430  return 0;
11431}
11432_ACEOF
11433rm -f conftest.$ac_objext conftest$ac_exeext
11434if { (ac_try="$ac_link"
11435case "(($ac_try" in
11436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437  *) ac_try_echo=$ac_try;;
11438esac
11439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11440$as_echo "$ac_try_echo") >&5
11441  (eval "$ac_link") 2>conftest.er1
11442  ac_status=$?
11443  grep -v '^ *+' conftest.er1 >conftest.err
11444  rm -f conftest.er1
11445  cat conftest.err >&5
11446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447  (exit $ac_status); } && {
11448	 test -z "$ac_c_werror_flag" ||
11449	 test ! -s conftest.err
11450       } && test -s conftest$ac_exeext && {
11451	 test "$cross_compiling" = yes ||
11452	 $as_test_x conftest$ac_exeext
11453       }; then
11454  ac_cv_lib_dld_dld_link=yes
11455else
11456  $as_echo "$as_me: failed program was:" >&5
11457sed 's/^/| /' conftest.$ac_ext >&5
11458
11459	ac_cv_lib_dld_dld_link=no
11460fi
11461
11462rm -rf conftest.dSYM
11463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11464      conftest$ac_exeext conftest.$ac_ext
11465LIBS=$ac_check_lib_save_LIBS
11466fi
11467{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11468$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11469if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11470  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11471fi
11472
11473
11474fi
11475
11476
11477fi
11478
11479
11480fi
11481
11482
11483fi
11484
11485
11486fi
11487
11488    ;;
11489  esac
11490
11491  if test "x$lt_cv_dlopen" != xno; then
11492    enable_dlopen=yes
11493  else
11494    enable_dlopen=no
11495  fi
11496
11497  case $lt_cv_dlopen in
11498  dlopen)
11499    save_CPPFLAGS="$CPPFLAGS"
11500    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11501
11502    save_LDFLAGS="$LDFLAGS"
11503    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11504
11505    save_LIBS="$LIBS"
11506    LIBS="$lt_cv_dlopen_libs $LIBS"
11507
11508    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11509$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11510if test "${lt_cv_dlopen_self+set}" = set; then
11511  $as_echo_n "(cached) " >&6
11512else
11513  	  if test "$cross_compiling" = yes; then :
11514  lt_cv_dlopen_self=cross
11515else
11516  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517  lt_status=$lt_dlunknown
11518  cat > conftest.$ac_ext <<_LT_EOF
11519#line 11519 "configure"
11520#include "confdefs.h"
11521
11522#if HAVE_DLFCN_H
11523#include <dlfcn.h>
11524#endif
11525
11526#include <stdio.h>
11527
11528#ifdef RTLD_GLOBAL
11529#  define LT_DLGLOBAL		RTLD_GLOBAL
11530#else
11531#  ifdef DL_GLOBAL
11532#    define LT_DLGLOBAL		DL_GLOBAL
11533#  else
11534#    define LT_DLGLOBAL		0
11535#  endif
11536#endif
11537
11538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539   find out it does not work in some platform. */
11540#ifndef LT_DLLAZY_OR_NOW
11541#  ifdef RTLD_LAZY
11542#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11543#  else
11544#    ifdef DL_LAZY
11545#      define LT_DLLAZY_OR_NOW		DL_LAZY
11546#    else
11547#      ifdef RTLD_NOW
11548#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11549#      else
11550#        ifdef DL_NOW
11551#          define LT_DLLAZY_OR_NOW	DL_NOW
11552#        else
11553#          define LT_DLLAZY_OR_NOW	0
11554#        endif
11555#      endif
11556#    endif
11557#  endif
11558#endif
11559
11560void fnord() { int i=42;}
11561int main ()
11562{
11563  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11564  int status = $lt_dlunknown;
11565
11566  if (self)
11567    {
11568      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11569      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570      /* dlclose (self); */
11571    }
11572  else
11573    puts (dlerror ());
11574
11575  return status;
11576}
11577_LT_EOF
11578  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11579  (eval $ac_link) 2>&5
11580  ac_status=$?
11581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11583    (./conftest; exit; ) >&5 2>/dev/null
11584    lt_status=$?
11585    case x$lt_status in
11586      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11587      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11588      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11589    esac
11590  else :
11591    # compilation failed
11592    lt_cv_dlopen_self=no
11593  fi
11594fi
11595rm -fr conftest*
11596
11597
11598fi
11599{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11600$as_echo "$lt_cv_dlopen_self" >&6; }
11601
11602    if test "x$lt_cv_dlopen_self" = xyes; then
11603      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11604      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11605$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11606if test "${lt_cv_dlopen_self_static+set}" = set; then
11607  $as_echo_n "(cached) " >&6
11608else
11609  	  if test "$cross_compiling" = yes; then :
11610  lt_cv_dlopen_self_static=cross
11611else
11612  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613  lt_status=$lt_dlunknown
11614  cat > conftest.$ac_ext <<_LT_EOF
11615#line 11615 "configure"
11616#include "confdefs.h"
11617
11618#if HAVE_DLFCN_H
11619#include <dlfcn.h>
11620#endif
11621
11622#include <stdio.h>
11623
11624#ifdef RTLD_GLOBAL
11625#  define LT_DLGLOBAL		RTLD_GLOBAL
11626#else
11627#  ifdef DL_GLOBAL
11628#    define LT_DLGLOBAL		DL_GLOBAL
11629#  else
11630#    define LT_DLGLOBAL		0
11631#  endif
11632#endif
11633
11634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635   find out it does not work in some platform. */
11636#ifndef LT_DLLAZY_OR_NOW
11637#  ifdef RTLD_LAZY
11638#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11639#  else
11640#    ifdef DL_LAZY
11641#      define LT_DLLAZY_OR_NOW		DL_LAZY
11642#    else
11643#      ifdef RTLD_NOW
11644#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11645#      else
11646#        ifdef DL_NOW
11647#          define LT_DLLAZY_OR_NOW	DL_NOW
11648#        else
11649#          define LT_DLLAZY_OR_NOW	0
11650#        endif
11651#      endif
11652#    endif
11653#  endif
11654#endif
11655
11656void fnord() { int i=42;}
11657int main ()
11658{
11659  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11660  int status = $lt_dlunknown;
11661
11662  if (self)
11663    {
11664      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11665      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11666      /* dlclose (self); */
11667    }
11668  else
11669    puts (dlerror ());
11670
11671  return status;
11672}
11673_LT_EOF
11674  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11675  (eval $ac_link) 2>&5
11676  ac_status=$?
11677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11679    (./conftest; exit; ) >&5 2>/dev/null
11680    lt_status=$?
11681    case x$lt_status in
11682      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11683      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11684      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11685    esac
11686  else :
11687    # compilation failed
11688    lt_cv_dlopen_self_static=no
11689  fi
11690fi
11691rm -fr conftest*
11692
11693
11694fi
11695{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11696$as_echo "$lt_cv_dlopen_self_static" >&6; }
11697    fi
11698
11699    CPPFLAGS="$save_CPPFLAGS"
11700    LDFLAGS="$save_LDFLAGS"
11701    LIBS="$save_LIBS"
11702    ;;
11703  esac
11704
11705  case $lt_cv_dlopen_self in
11706  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11707  *) enable_dlopen_self=unknown ;;
11708  esac
11709
11710  case $lt_cv_dlopen_self_static in
11711  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11712  *) enable_dlopen_self_static=unknown ;;
11713  esac
11714fi
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732striplib=
11733old_striplib=
11734{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11735$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11736if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11737  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11738  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11739  { $as_echo "$as_me:$LINENO: result: yes" >&5
11740$as_echo "yes" >&6; }
11741else
11742# FIXME - insert some real tests, host_os isn't really good enough
11743  case $host_os in
11744  darwin*)
11745    if test -n "$STRIP" ; then
11746      striplib="$STRIP -x"
11747      old_striplib="$STRIP -S"
11748      { $as_echo "$as_me:$LINENO: result: yes" >&5
11749$as_echo "yes" >&6; }
11750    else
11751      { $as_echo "$as_me:$LINENO: result: no" >&5
11752$as_echo "no" >&6; }
11753    fi
11754    ;;
11755  *)
11756    { $as_echo "$as_me:$LINENO: result: no" >&5
11757$as_echo "no" >&6; }
11758    ;;
11759  esac
11760fi
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773  # Report which library types will actually be built
11774  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11775$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11776  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11777$as_echo "$can_build_shared" >&6; }
11778
11779  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11780$as_echo_n "checking whether to build shared libraries... " >&6; }
11781  test "$can_build_shared" = "no" && enable_shared=no
11782
11783  # On AIX, shared libraries and static libraries use the same namespace, and
11784  # are all built from PIC.
11785  case $host_os in
11786  aix3*)
11787    test "$enable_shared" = yes && enable_static=no
11788    if test -n "$RANLIB"; then
11789      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11790      postinstall_cmds='$RANLIB $lib'
11791    fi
11792    ;;
11793
11794  aix[4-9]*)
11795    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11796      test "$enable_shared" = yes && enable_static=no
11797    fi
11798    ;;
11799  esac
11800  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11801$as_echo "$enable_shared" >&6; }
11802
11803  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11804$as_echo_n "checking whether to build static libraries... " >&6; }
11805  # Make sure either enable_shared or enable_static is yes.
11806  test "$enable_shared" = yes || enable_static=yes
11807  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11808$as_echo "$enable_static" >&6; }
11809
11810
11811
11812
11813fi
11814ac_ext=c
11815ac_cpp='$CPP $CPPFLAGS'
11816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818ac_compiler_gnu=$ac_cv_c_compiler_gnu
11819
11820CC="$lt_save_CC"
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834        ac_config_commands="$ac_config_commands libtool"
11835
11836
11837
11838
11839# Only expand once:
11840
11841
11842ac_ext=c
11843ac_cpp='$CPP $CPPFLAGS'
11844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846ac_compiler_gnu=$ac_cv_c_compiler_gnu
11847if test -n "$ac_tool_prefix"; then
11848  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11849set dummy ${ac_tool_prefix}gcc; ac_word=$2
11850{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
11852if test "${ac_cv_prog_CC+set}" = set; then
11853  $as_echo_n "(cached) " >&6
11854else
11855  if test -n "$CC"; then
11856  ac_cv_prog_CC="$CC" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861  IFS=$as_save_IFS
11862  test -z "$as_dir" && as_dir=.
11863  for ac_exec_ext in '' $ac_executable_extensions; do
11864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11866    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11867    break 2
11868  fi
11869done
11870done
11871IFS=$as_save_IFS
11872
11873fi
11874fi
11875CC=$ac_cv_prog_CC
11876if test -n "$CC"; then
11877  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11878$as_echo "$CC" >&6; }
11879else
11880  { $as_echo "$as_me:$LINENO: result: no" >&5
11881$as_echo "no" >&6; }
11882fi
11883
11884
11885fi
11886if test -z "$ac_cv_prog_CC"; then
11887  ac_ct_CC=$CC
11888  # Extract the first word of "gcc", so it can be a program name with args.
11889set dummy gcc; ac_word=$2
11890{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
11892if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11893  $as_echo_n "(cached) " >&6
11894else
11895  if test -n "$ac_ct_CC"; then
11896  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901  IFS=$as_save_IFS
11902  test -z "$as_dir" && as_dir=.
11903  for ac_exec_ext in '' $ac_executable_extensions; do
11904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905    ac_cv_prog_ac_ct_CC="gcc"
11906    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11907    break 2
11908  fi
11909done
11910done
11911IFS=$as_save_IFS
11912
11913fi
11914fi
11915ac_ct_CC=$ac_cv_prog_ac_ct_CC
11916if test -n "$ac_ct_CC"; then
11917  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11918$as_echo "$ac_ct_CC" >&6; }
11919else
11920  { $as_echo "$as_me:$LINENO: result: no" >&5
11921$as_echo "no" >&6; }
11922fi
11923
11924  if test "x$ac_ct_CC" = x; then
11925    CC=""
11926  else
11927    case $cross_compiling:$ac_tool_warned in
11928yes:)
11929{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11931ac_tool_warned=yes ;;
11932esac
11933    CC=$ac_ct_CC
11934  fi
11935else
11936  CC="$ac_cv_prog_CC"
11937fi
11938
11939if test -z "$CC"; then
11940          if test -n "$ac_tool_prefix"; then
11941    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11942set dummy ${ac_tool_prefix}cc; ac_word=$2
11943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
11945if test "${ac_cv_prog_CC+set}" = set; then
11946  $as_echo_n "(cached) " >&6
11947else
11948  if test -n "$CC"; then
11949  ac_cv_prog_CC="$CC" # Let the user override the test.
11950else
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954  IFS=$as_save_IFS
11955  test -z "$as_dir" && as_dir=.
11956  for ac_exec_ext in '' $ac_executable_extensions; do
11957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958    ac_cv_prog_CC="${ac_tool_prefix}cc"
11959    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11960    break 2
11961  fi
11962done
11963done
11964IFS=$as_save_IFS
11965
11966fi
11967fi
11968CC=$ac_cv_prog_CC
11969if test -n "$CC"; then
11970  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11971$as_echo "$CC" >&6; }
11972else
11973  { $as_echo "$as_me:$LINENO: result: no" >&5
11974$as_echo "no" >&6; }
11975fi
11976
11977
11978  fi
11979fi
11980if test -z "$CC"; then
11981  # Extract the first word of "cc", so it can be a program name with args.
11982set dummy cc; ac_word=$2
11983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
11985if test "${ac_cv_prog_CC+set}" = set; then
11986  $as_echo_n "(cached) " >&6
11987else
11988  if test -n "$CC"; then
11989  ac_cv_prog_CC="$CC" # Let the user override the test.
11990else
11991  ac_prog_rejected=no
11992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993for as_dir in $PATH
11994do
11995  IFS=$as_save_IFS
11996  test -z "$as_dir" && as_dir=.
11997  for ac_exec_ext in '' $ac_executable_extensions; do
11998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12000       ac_prog_rejected=yes
12001       continue
12002     fi
12003    ac_cv_prog_CC="cc"
12004    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12005    break 2
12006  fi
12007done
12008done
12009IFS=$as_save_IFS
12010
12011if test $ac_prog_rejected = yes; then
12012  # We found a bogon in the path, so make sure we never use it.
12013  set dummy $ac_cv_prog_CC
12014  shift
12015  if test $# != 0; then
12016    # We chose a different compiler from the bogus one.
12017    # However, it has the same basename, so the bogon will be chosen
12018    # first if we set CC to just the basename; use the full file name.
12019    shift
12020    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12021  fi
12022fi
12023fi
12024fi
12025CC=$ac_cv_prog_CC
12026if test -n "$CC"; then
12027  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12028$as_echo "$CC" >&6; }
12029else
12030  { $as_echo "$as_me:$LINENO: result: no" >&5
12031$as_echo "no" >&6; }
12032fi
12033
12034
12035fi
12036if test -z "$CC"; then
12037  if test -n "$ac_tool_prefix"; then
12038  for ac_prog in cl.exe
12039  do
12040    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12043$as_echo_n "checking for $ac_word... " >&6; }
12044if test "${ac_cv_prog_CC+set}" = set; then
12045  $as_echo_n "(cached) " >&6
12046else
12047  if test -n "$CC"; then
12048  ac_cv_prog_CC="$CC" # Let the user override the test.
12049else
12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053  IFS=$as_save_IFS
12054  test -z "$as_dir" && as_dir=.
12055  for ac_exec_ext in '' $ac_executable_extensions; do
12056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12057    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12058    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12059    break 2
12060  fi
12061done
12062done
12063IFS=$as_save_IFS
12064
12065fi
12066fi
12067CC=$ac_cv_prog_CC
12068if test -n "$CC"; then
12069  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12070$as_echo "$CC" >&6; }
12071else
12072  { $as_echo "$as_me:$LINENO: result: no" >&5
12073$as_echo "no" >&6; }
12074fi
12075
12076
12077    test -n "$CC" && break
12078  done
12079fi
12080if test -z "$CC"; then
12081  ac_ct_CC=$CC
12082  for ac_prog in cl.exe
12083do
12084  # Extract the first word of "$ac_prog", so it can be a program name with args.
12085set dummy $ac_prog; ac_word=$2
12086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
12088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12089  $as_echo_n "(cached) " >&6
12090else
12091  if test -n "$ac_ct_CC"; then
12092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12093else
12094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097  IFS=$as_save_IFS
12098  test -z "$as_dir" && as_dir=.
12099  for ac_exec_ext in '' $ac_executable_extensions; do
12100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101    ac_cv_prog_ac_ct_CC="$ac_prog"
12102    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12103    break 2
12104  fi
12105done
12106done
12107IFS=$as_save_IFS
12108
12109fi
12110fi
12111ac_ct_CC=$ac_cv_prog_ac_ct_CC
12112if test -n "$ac_ct_CC"; then
12113  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12114$as_echo "$ac_ct_CC" >&6; }
12115else
12116  { $as_echo "$as_me:$LINENO: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119
12120
12121  test -n "$ac_ct_CC" && break
12122done
12123
12124  if test "x$ac_ct_CC" = x; then
12125    CC=""
12126  else
12127    case $cross_compiling:$ac_tool_warned in
12128yes:)
12129{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131ac_tool_warned=yes ;;
12132esac
12133    CC=$ac_ct_CC
12134  fi
12135fi
12136
12137fi
12138
12139
12140test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12142{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12143See \`config.log' for more details." >&5
12144$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12145See \`config.log' for more details." >&2;}
12146   { (exit 1); exit 1; }; }; }
12147
12148# Provide some information about the compiler.
12149$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12150set X $ac_compile
12151ac_compiler=$2
12152{ (ac_try="$ac_compiler --version >&5"
12153case "(($ac_try" in
12154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155  *) ac_try_echo=$ac_try;;
12156esac
12157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12158$as_echo "$ac_try_echo") >&5
12159  (eval "$ac_compiler --version >&5") 2>&5
12160  ac_status=$?
12161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162  (exit $ac_status); }
12163{ (ac_try="$ac_compiler -v >&5"
12164case "(($ac_try" in
12165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166  *) ac_try_echo=$ac_try;;
12167esac
12168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12169$as_echo "$ac_try_echo") >&5
12170  (eval "$ac_compiler -v >&5") 2>&5
12171  ac_status=$?
12172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173  (exit $ac_status); }
12174{ (ac_try="$ac_compiler -V >&5"
12175case "(($ac_try" in
12176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177  *) ac_try_echo=$ac_try;;
12178esac
12179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180$as_echo "$ac_try_echo") >&5
12181  (eval "$ac_compiler -V >&5") 2>&5
12182  ac_status=$?
12183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184  (exit $ac_status); }
12185
12186{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12187$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12188if test "${ac_cv_c_compiler_gnu+set}" = set; then
12189  $as_echo_n "(cached) " >&6
12190else
12191  cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h.  */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h.  */
12197
12198int
12199main ()
12200{
12201#ifndef __GNUC__
12202       choke me
12203#endif
12204
12205  ;
12206  return 0;
12207}
12208_ACEOF
12209rm -f conftest.$ac_objext
12210if { (ac_try="$ac_compile"
12211case "(($ac_try" in
12212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213  *) ac_try_echo=$ac_try;;
12214esac
12215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12216$as_echo "$ac_try_echo") >&5
12217  (eval "$ac_compile") 2>conftest.er1
12218  ac_status=$?
12219  grep -v '^ *+' conftest.er1 >conftest.err
12220  rm -f conftest.er1
12221  cat conftest.err >&5
12222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223  (exit $ac_status); } && {
12224	 test -z "$ac_c_werror_flag" ||
12225	 test ! -s conftest.err
12226       } && test -s conftest.$ac_objext; then
12227  ac_compiler_gnu=yes
12228else
12229  $as_echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232	ac_compiler_gnu=no
12233fi
12234
12235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236ac_cv_c_compiler_gnu=$ac_compiler_gnu
12237
12238fi
12239{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12240$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12241if test $ac_compiler_gnu = yes; then
12242  GCC=yes
12243else
12244  GCC=
12245fi
12246ac_test_CFLAGS=${CFLAGS+set}
12247ac_save_CFLAGS=$CFLAGS
12248{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12249$as_echo_n "checking whether $CC accepts -g... " >&6; }
12250if test "${ac_cv_prog_cc_g+set}" = set; then
12251  $as_echo_n "(cached) " >&6
12252else
12253  ac_save_c_werror_flag=$ac_c_werror_flag
12254   ac_c_werror_flag=yes
12255   ac_cv_prog_cc_g=no
12256   CFLAGS="-g"
12257   cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h.  */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h.  */
12263
12264int
12265main ()
12266{
12267
12268  ;
12269  return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext
12273if { (ac_try="$ac_compile"
12274case "(($ac_try" in
12275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276  *) ac_try_echo=$ac_try;;
12277esac
12278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279$as_echo "$ac_try_echo") >&5
12280  (eval "$ac_compile") 2>conftest.er1
12281  ac_status=$?
12282  grep -v '^ *+' conftest.er1 >conftest.err
12283  rm -f conftest.er1
12284  cat conftest.err >&5
12285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286  (exit $ac_status); } && {
12287	 test -z "$ac_c_werror_flag" ||
12288	 test ! -s conftest.err
12289       } && test -s conftest.$ac_objext; then
12290  ac_cv_prog_cc_g=yes
12291else
12292  $as_echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295	CFLAGS=""
12296      cat >conftest.$ac_ext <<_ACEOF
12297/* confdefs.h.  */
12298_ACEOF
12299cat confdefs.h >>conftest.$ac_ext
12300cat >>conftest.$ac_ext <<_ACEOF
12301/* end confdefs.h.  */
12302
12303int
12304main ()
12305{
12306
12307  ;
12308  return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext
12312if { (ac_try="$ac_compile"
12313case "(($ac_try" in
12314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315  *) ac_try_echo=$ac_try;;
12316esac
12317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12318$as_echo "$ac_try_echo") >&5
12319  (eval "$ac_compile") 2>conftest.er1
12320  ac_status=$?
12321  grep -v '^ *+' conftest.er1 >conftest.err
12322  rm -f conftest.er1
12323  cat conftest.err >&5
12324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325  (exit $ac_status); } && {
12326	 test -z "$ac_c_werror_flag" ||
12327	 test ! -s conftest.err
12328       } && test -s conftest.$ac_objext; then
12329  :
12330else
12331  $as_echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
12334	ac_c_werror_flag=$ac_save_c_werror_flag
12335	 CFLAGS="-g"
12336	 cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h.  */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h.  */
12342
12343int
12344main ()
12345{
12346
12347  ;
12348  return 0;
12349}
12350_ACEOF
12351rm -f conftest.$ac_objext
12352if { (ac_try="$ac_compile"
12353case "(($ac_try" in
12354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355  *) ac_try_echo=$ac_try;;
12356esac
12357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12358$as_echo "$ac_try_echo") >&5
12359  (eval "$ac_compile") 2>conftest.er1
12360  ac_status=$?
12361  grep -v '^ *+' conftest.er1 >conftest.err
12362  rm -f conftest.er1
12363  cat conftest.err >&5
12364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365  (exit $ac_status); } && {
12366	 test -z "$ac_c_werror_flag" ||
12367	 test ! -s conftest.err
12368       } && test -s conftest.$ac_objext; then
12369  ac_cv_prog_cc_g=yes
12370else
12371  $as_echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374
12375fi
12376
12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378fi
12379
12380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381fi
12382
12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384   ac_c_werror_flag=$ac_save_c_werror_flag
12385fi
12386{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12387$as_echo "$ac_cv_prog_cc_g" >&6; }
12388if test "$ac_test_CFLAGS" = set; then
12389  CFLAGS=$ac_save_CFLAGS
12390elif test $ac_cv_prog_cc_g = yes; then
12391  if test "$GCC" = yes; then
12392    CFLAGS="-g -O2"
12393  else
12394    CFLAGS="-g"
12395  fi
12396else
12397  if test "$GCC" = yes; then
12398    CFLAGS="-O2"
12399  else
12400    CFLAGS=
12401  fi
12402fi
12403{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12404$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12405if test "${ac_cv_prog_cc_c89+set}" = set; then
12406  $as_echo_n "(cached) " >&6
12407else
12408  ac_cv_prog_cc_c89=no
12409ac_save_CC=$CC
12410cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h.  */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h.  */
12416#include <stdarg.h>
12417#include <stdio.h>
12418#include <sys/types.h>
12419#include <sys/stat.h>
12420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12421struct buf { int x; };
12422FILE * (*rcsopen) (struct buf *, struct stat *, int);
12423static char *e (p, i)
12424     char **p;
12425     int i;
12426{
12427  return p[i];
12428}
12429static char *f (char * (*g) (char **, int), char **p, ...)
12430{
12431  char *s;
12432  va_list v;
12433  va_start (v,p);
12434  s = g (p, va_arg (v,int));
12435  va_end (v);
12436  return s;
12437}
12438
12439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12440   function prototypes and stuff, but not '\xHH' hex character constants.
12441   These don't provoke an error unfortunately, instead are silently treated
12442   as 'x'.  The following induces an error, until -std is added to get
12443   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12444   array size at least.  It's necessary to write '\x00'==0 to get something
12445   that's true only with -std.  */
12446int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12447
12448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12449   inside strings and character constants.  */
12450#define FOO(x) 'x'
12451int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12452
12453int test (int i, double x);
12454struct s1 {int (*f) (int a);};
12455struct s2 {int (*f) (double a);};
12456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12457int argc;
12458char **argv;
12459int
12460main ()
12461{
12462return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12463  ;
12464  return 0;
12465}
12466_ACEOF
12467for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12468	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12469do
12470  CC="$ac_save_CC $ac_arg"
12471  rm -f conftest.$ac_objext
12472if { (ac_try="$ac_compile"
12473case "(($ac_try" in
12474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475  *) ac_try_echo=$ac_try;;
12476esac
12477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478$as_echo "$ac_try_echo") >&5
12479  (eval "$ac_compile") 2>conftest.er1
12480  ac_status=$?
12481  grep -v '^ *+' conftest.er1 >conftest.err
12482  rm -f conftest.er1
12483  cat conftest.err >&5
12484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485  (exit $ac_status); } && {
12486	 test -z "$ac_c_werror_flag" ||
12487	 test ! -s conftest.err
12488       } && test -s conftest.$ac_objext; then
12489  ac_cv_prog_cc_c89=$ac_arg
12490else
12491  $as_echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
12494
12495fi
12496
12497rm -f core conftest.err conftest.$ac_objext
12498  test "x$ac_cv_prog_cc_c89" != "xno" && break
12499done
12500rm -f conftest.$ac_ext
12501CC=$ac_save_CC
12502
12503fi
12504# AC_CACHE_VAL
12505case "x$ac_cv_prog_cc_c89" in
12506  x)
12507    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12508$as_echo "none needed" >&6; } ;;
12509  xno)
12510    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12511$as_echo "unsupported" >&6; } ;;
12512  *)
12513    CC="$CC $ac_cv_prog_cc_c89"
12514    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12515$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12516esac
12517
12518
12519ac_ext=c
12520ac_cpp='$CPP $CPPFLAGS'
12521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525depcc="$CC"   am_compiler_list=
12526
12527{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12528$as_echo_n "checking dependency style of $depcc... " >&6; }
12529if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12530  $as_echo_n "(cached) " >&6
12531else
12532  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12533  # We make a subdir and do the tests there.  Otherwise we can end up
12534  # making bogus files that we don't know about and never remove.  For
12535  # instance it was reported that on HP-UX the gcc test will end up
12536  # making a dummy file named `D' -- because `-MD' means `put the output
12537  # in D'.
12538  mkdir conftest.dir
12539  # Copy depcomp to subdir because otherwise we won't find it if we're
12540  # using a relative directory.
12541  cp "$am_depcomp" conftest.dir
12542  cd conftest.dir
12543  # We will build objects and dependencies in a subdirectory because
12544  # it helps to detect inapplicable dependency modes.  For instance
12545  # both Tru64's cc and ICC support -MD to output dependencies as a
12546  # side effect of compilation, but ICC will put the dependencies in
12547  # the current directory while Tru64 will put them in the object
12548  # directory.
12549  mkdir sub
12550
12551  am_cv_CC_dependencies_compiler_type=none
12552  if test "$am_compiler_list" = ""; then
12553     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12554  fi
12555  am__universal=false
12556  case " $depcc " in #(
12557     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12558     esac
12559
12560  for depmode in $am_compiler_list; do
12561    # Setup a source with many dependencies, because some compilers
12562    # like to wrap large dependency lists on column 80 (with \), and
12563    # we should not choose a depcomp mode which is confused by this.
12564    #
12565    # We need to recreate these files for each test, as the compiler may
12566    # overwrite some of them when testing with obscure command lines.
12567    # This happens at least with the AIX C compiler.
12568    : > sub/conftest.c
12569    for i in 1 2 3 4 5 6; do
12570      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12571      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12572      # Solaris 8's {/usr,}/bin/sh.
12573      touch sub/conftst$i.h
12574    done
12575    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12576
12577    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12578    # mode.  It turns out that the SunPro C++ compiler does not properly
12579    # handle `-M -o', and we need to detect this.  Also, some Intel
12580    # versions had trouble with output in subdirs
12581    am__obj=sub/conftest.${OBJEXT-o}
12582    am__minus_obj="-o $am__obj"
12583    case $depmode in
12584    gcc)
12585      # This depmode causes a compiler race in universal mode.
12586      test "$am__universal" = false || continue
12587      ;;
12588    nosideeffect)
12589      # after this tag, mechanisms are not by side-effect, so they'll
12590      # only be used when explicitly requested
12591      if test "x$enable_dependency_tracking" = xyes; then
12592	continue
12593      else
12594	break
12595      fi
12596      ;;
12597    msvisualcpp | msvcmsys)
12598      # This compiler won't grok `-c -o', but also, the minuso test has
12599      # not run yet.  These depmodes are late enough in the game, and
12600      # so weak that their functioning should not be impacted.
12601      am__obj=conftest.${OBJEXT-o}
12602      am__minus_obj=
12603      ;;
12604    none) break ;;
12605    esac
12606    if depmode=$depmode \
12607       source=sub/conftest.c object=$am__obj \
12608       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12609       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12610         >/dev/null 2>conftest.err &&
12611       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12612       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12613       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12614       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12615      # icc doesn't choke on unknown options, it will just issue warnings
12616      # or remarks (even with -Werror).  So we grep stderr for any message
12617      # that says an option was ignored or not supported.
12618      # When given -MP, icc 7.0 and 7.1 complain thusly:
12619      #   icc: Command line warning: ignoring option '-M'; no argument required
12620      # The diagnosis changed in icc 8.0:
12621      #   icc: Command line remark: option '-MP' not supported
12622      if (grep 'ignoring option' conftest.err ||
12623          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12624        am_cv_CC_dependencies_compiler_type=$depmode
12625        break
12626      fi
12627    fi
12628  done
12629
12630  cd ..
12631  rm -rf conftest.dir
12632else
12633  am_cv_CC_dependencies_compiler_type=none
12634fi
12635
12636fi
12637{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12638$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12639CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12640
12641 if
12642  test "x$enable_dependency_tracking" != xno \
12643  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12644  am__fastdepCC_TRUE=
12645  am__fastdepCC_FALSE='#'
12646else
12647  am__fastdepCC_TRUE='#'
12648  am__fastdepCC_FALSE=
12649fi
12650
12651
12652
12653
12654
12655
12656
12657# Check whether --with-xorg-module-dir was given.
12658if test "${with_xorg_module_dir+set}" = set; then
12659  withval=$with_xorg_module_dir;  moduledir="$withval"
12660else
12661   moduledir="$libdir/xorg/modules"
12662fi
12663
12664
12665
12666
12667# Checks for extensions
12668
12669	SAVE_CFLAGS="$CFLAGS"
12670	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12671	cat >conftest.$ac_ext <<_ACEOF
12672/* confdefs.h.  */
12673_ACEOF
12674cat confdefs.h >>conftest.$ac_ext
12675cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h.  */
12677
12678#include "xorg-server.h"
12679#if !defined RANDR
12680#error RANDR not defined
12681#endif
12682
12683int
12684main ()
12685{
12686
12687  ;
12688  return 0;
12689}
12690_ACEOF
12691rm -f conftest.$ac_objext
12692if { (ac_try="$ac_compile"
12693case "(($ac_try" in
12694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695  *) ac_try_echo=$ac_try;;
12696esac
12697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12698$as_echo "$ac_try_echo") >&5
12699  (eval "$ac_compile") 2>conftest.er1
12700  ac_status=$?
12701  grep -v '^ *+' conftest.er1 >conftest.err
12702  rm -f conftest.er1
12703  cat conftest.err >&5
12704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705  (exit $ac_status); } && {
12706	 test -z "$ac_c_werror_flag" ||
12707	 test ! -s conftest.err
12708       } && test -s conftest.$ac_objext; then
12709  _EXT_CHECK=yes
12710else
12711  $as_echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714	_EXT_CHECK=no
12715fi
12716
12717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718	CFLAGS="$SAVE_CFLAGS"
12719	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12720$as_echo_n "checking if RANDR is defined... " >&6; }
12721	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12722$as_echo "$_EXT_CHECK" >&6; }
12723	if test "$_EXT_CHECK" != no; then
12724		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12725	fi
12726
12727
12728	SAVE_CFLAGS="$CFLAGS"
12729	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12730	cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h.  */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h.  */
12736
12737#include "xorg-server.h"
12738#if !defined RENDER
12739#error RENDER not defined
12740#endif
12741
12742int
12743main ()
12744{
12745
12746  ;
12747  return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext
12751if { (ac_try="$ac_compile"
12752case "(($ac_try" in
12753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754  *) ac_try_echo=$ac_try;;
12755esac
12756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757$as_echo "$ac_try_echo") >&5
12758  (eval "$ac_compile") 2>conftest.er1
12759  ac_status=$?
12760  grep -v '^ *+' conftest.er1 >conftest.err
12761  rm -f conftest.er1
12762  cat conftest.err >&5
12763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764  (exit $ac_status); } && {
12765	 test -z "$ac_c_werror_flag" ||
12766	 test ! -s conftest.err
12767       } && test -s conftest.$ac_objext; then
12768  _EXT_CHECK=yes
12769else
12770  $as_echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773	_EXT_CHECK=no
12774fi
12775
12776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777	CFLAGS="$SAVE_CFLAGS"
12778	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12779$as_echo_n "checking if RENDER is defined... " >&6; }
12780	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12781$as_echo "$_EXT_CHECK" >&6; }
12782	if test "$_EXT_CHECK" != no; then
12783		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12784	fi
12785
12786
12787	SAVE_CFLAGS="$CFLAGS"
12788	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12789	cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h.  */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h.  */
12795
12796#include "xorg-server.h"
12797#if !defined DPMSExtension
12798#error DPMSExtension not defined
12799#endif
12800
12801int
12802main ()
12803{
12804
12805  ;
12806  return 0;
12807}
12808_ACEOF
12809rm -f conftest.$ac_objext
12810if { (ac_try="$ac_compile"
12811case "(($ac_try" in
12812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813  *) ac_try_echo=$ac_try;;
12814esac
12815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816$as_echo "$ac_try_echo") >&5
12817  (eval "$ac_compile") 2>conftest.er1
12818  ac_status=$?
12819  grep -v '^ *+' conftest.er1 >conftest.err
12820  rm -f conftest.er1
12821  cat conftest.err >&5
12822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823  (exit $ac_status); } && {
12824	 test -z "$ac_c_werror_flag" ||
12825	 test ! -s conftest.err
12826       } && test -s conftest.$ac_objext; then
12827  _EXT_CHECK=yes
12828else
12829  $as_echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
12832	_EXT_CHECK=no
12833fi
12834
12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836	CFLAGS="$SAVE_CFLAGS"
12837	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12838$as_echo_n "checking if DPMSExtension is defined... " >&6; }
12839	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12840$as_echo "$_EXT_CHECK" >&6; }
12841	if test "$_EXT_CHECK" != no; then
12842		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12843	fi
12844
12845
12846# Checks for pkg-config packages
12847
12848pkg_failed=no
12849{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
12850$as_echo_n "checking for XORG... " >&6; }
12851
12852if test -n "$XORG_CFLAGS"; then
12853    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12854 elif test -n "$PKG_CONFIG"; then
12855    if test -n "$PKG_CONFIG" && \
12856    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12857  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12858  ac_status=$?
12859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860  (exit $ac_status); }; then
12861  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12862else
12863  pkg_failed=yes
12864fi
12865 else
12866    pkg_failed=untried
12867fi
12868if test -n "$XORG_LIBS"; then
12869    pkg_cv_XORG_LIBS="$XORG_LIBS"
12870 elif test -n "$PKG_CONFIG"; then
12871    if test -n "$PKG_CONFIG" && \
12872    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12873  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12874  ac_status=$?
12875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876  (exit $ac_status); }; then
12877  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12878else
12879  pkg_failed=yes
12880fi
12881 else
12882    pkg_failed=untried
12883fi
12884
12885
12886
12887if test $pkg_failed = yes; then
12888
12889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12890        _pkg_short_errors_supported=yes
12891else
12892        _pkg_short_errors_supported=no
12893fi
12894        if test $_pkg_short_errors_supported = yes; then
12895	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12896        else
12897	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12898        fi
12899	# Put the nasty error message in config.log where it belongs
12900	echo "$XORG_PKG_ERRORS" >&5
12901
12902	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12903
12904$XORG_PKG_ERRORS
12905
12906Consider adjusting the PKG_CONFIG_PATH environment variable if you
12907installed software in a non-standard prefix.
12908
12909Alternatively, you may set the environment variables XORG_CFLAGS
12910and XORG_LIBS to avoid the need to call pkg-config.
12911See the pkg-config man page for more details.
12912" >&5
12913$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12914
12915$XORG_PKG_ERRORS
12916
12917Consider adjusting the PKG_CONFIG_PATH environment variable if you
12918installed software in a non-standard prefix.
12919
12920Alternatively, you may set the environment variables XORG_CFLAGS
12921and XORG_LIBS to avoid the need to call pkg-config.
12922See the pkg-config man page for more details.
12923" >&2;}
12924   { (exit 1); exit 1; }; }
12925elif test $pkg_failed = untried; then
12926	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12928{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12929is in your PATH or set the PKG_CONFIG environment variable to the full
12930path to pkg-config.
12931
12932Alternatively, you may set the environment variables XORG_CFLAGS
12933and XORG_LIBS to avoid the need to call pkg-config.
12934See the pkg-config man page for more details.
12935
12936To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12937See \`config.log' for more details." >&5
12938$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12939is in your PATH or set the PKG_CONFIG environment variable to the full
12940path to pkg-config.
12941
12942Alternatively, you may set the environment variables XORG_CFLAGS
12943and XORG_LIBS to avoid the need to call pkg-config.
12944See the pkg-config man page for more details.
12945
12946To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12947See \`config.log' for more details." >&2;}
12948   { (exit 1); exit 1; }; }; }
12949else
12950	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12951	XORG_LIBS=$pkg_cv_XORG_LIBS
12952        { $as_echo "$as_me:$LINENO: result: yes" >&5
12953$as_echo "yes" >&6; }
12954	:
12955fi
12956
12957pkg_failed=no
12958{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5
12959$as_echo_n "checking for XEXT... " >&6; }
12960
12961if test -n "$XEXT_CFLAGS"; then
12962    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12963 elif test -n "$PKG_CONFIG"; then
12964    if test -n "$PKG_CONFIG" && \
12965    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
12966  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12967  ac_status=$?
12968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969  (exit $ac_status); }; then
12970  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
12971else
12972  pkg_failed=yes
12973fi
12974 else
12975    pkg_failed=untried
12976fi
12977if test -n "$XEXT_LIBS"; then
12978    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12979 elif test -n "$PKG_CONFIG"; then
12980    if test -n "$PKG_CONFIG" && \
12981    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
12982  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12983  ac_status=$?
12984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985  (exit $ac_status); }; then
12986  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
12987else
12988  pkg_failed=yes
12989fi
12990 else
12991    pkg_failed=untried
12992fi
12993
12994
12995
12996if test $pkg_failed = yes; then
12997
12998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12999        _pkg_short_errors_supported=yes
13000else
13001        _pkg_short_errors_supported=no
13002fi
13003        if test $_pkg_short_errors_supported = yes; then
13004	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
13005        else
13006	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
13007        fi
13008	# Put the nasty error message in config.log where it belongs
13009	echo "$XEXT_PKG_ERRORS" >&5
13010
13011	{ $as_echo "$as_me:$LINENO: result: no" >&5
13012$as_echo "no" >&6; }
13013                HAVE_XEXTPROTO_71="no"
13014elif test $pkg_failed = untried; then
13015	HAVE_XEXTPROTO_71="no"
13016else
13017	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
13018	XEXT_LIBS=$pkg_cv_XEXT_LIBS
13019        { $as_echo "$as_me:$LINENO: result: yes" >&5
13020$as_echo "yes" >&6; }
13021	HAVE_XEXTPROTO_71="yes";
13022cat >>confdefs.h <<\_ACEOF
13023#define HAVE_XEXTPROTO_71 1
13024_ACEOF
13025
13026fi
13027 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
13028  HAVE_XEXTPROTO_71_TRUE=
13029  HAVE_XEXTPROTO_71_FALSE='#'
13030else
13031  HAVE_XEXTPROTO_71_TRUE='#'
13032  HAVE_XEXTPROTO_71_FALSE=
13033fi
13034
13035
13036save_CFLAGS="$CFLAGS"
13037CFLAGS="$XORG_CFLAGS"
13038{ $as_echo "$as_me:$LINENO: checking whether xf86ConfigIsaEntity is declared" >&5
13039$as_echo_n "checking whether xf86ConfigIsaEntity is declared... " >&6; }
13040if test "${ac_cv_have_decl_xf86ConfigIsaEntity+set}" = set; then
13041  $as_echo_n "(cached) " >&6
13042else
13043  cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h.  */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h.  */
13049#include "xf86.h"
13050
13051int
13052main ()
13053{
13054#ifndef xf86ConfigIsaEntity
13055  (void) xf86ConfigIsaEntity;
13056#endif
13057
13058  ;
13059  return 0;
13060}
13061_ACEOF
13062rm -f conftest.$ac_objext
13063if { (ac_try="$ac_compile"
13064case "(($ac_try" in
13065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066  *) ac_try_echo=$ac_try;;
13067esac
13068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13069$as_echo "$ac_try_echo") >&5
13070  (eval "$ac_compile") 2>conftest.er1
13071  ac_status=$?
13072  grep -v '^ *+' conftest.er1 >conftest.err
13073  rm -f conftest.er1
13074  cat conftest.err >&5
13075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076  (exit $ac_status); } && {
13077	 test -z "$ac_c_werror_flag" ||
13078	 test ! -s conftest.err
13079       } && test -s conftest.$ac_objext; then
13080  ac_cv_have_decl_xf86ConfigIsaEntity=yes
13081else
13082  $as_echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085	ac_cv_have_decl_xf86ConfigIsaEntity=no
13086fi
13087
13088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089fi
13090{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ConfigIsaEntity" >&5
13091$as_echo "$ac_cv_have_decl_xf86ConfigIsaEntity" >&6; }
13092if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = x""yes; then
13093
13094cat >>confdefs.h <<\_ACEOF
13095#define HAVE_ISA 1
13096_ACEOF
13097
13098fi
13099
13100CFLAGS="$save_CFLAGS"
13101
13102save_CFLAGS="$CFLAGS"
13103CFLAGS="$XORG_CFLAGS"
13104{ $as_echo "$as_me:$LINENO: checking whether VBEReadPanelID is declared" >&5
13105$as_echo_n "checking whether VBEReadPanelID is declared... " >&6; }
13106if test "${ac_cv_have_decl_VBEReadPanelID+set}" = set; then
13107  $as_echo_n "(cached) " >&6
13108else
13109  cat >conftest.$ac_ext <<_ACEOF
13110/* confdefs.h.  */
13111_ACEOF
13112cat confdefs.h >>conftest.$ac_ext
13113cat >>conftest.$ac_ext <<_ACEOF
13114/* end confdefs.h.  */
13115#include "vbe.h"
13116
13117int
13118main ()
13119{
13120#ifndef VBEReadPanelID
13121  (void) VBEReadPanelID;
13122#endif
13123
13124  ;
13125  return 0;
13126}
13127_ACEOF
13128rm -f conftest.$ac_objext
13129if { (ac_try="$ac_compile"
13130case "(($ac_try" in
13131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132  *) ac_try_echo=$ac_try;;
13133esac
13134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135$as_echo "$ac_try_echo") >&5
13136  (eval "$ac_compile") 2>conftest.er1
13137  ac_status=$?
13138  grep -v '^ *+' conftest.er1 >conftest.err
13139  rm -f conftest.er1
13140  cat conftest.err >&5
13141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142  (exit $ac_status); } && {
13143	 test -z "$ac_c_werror_flag" ||
13144	 test ! -s conftest.err
13145       } && test -s conftest.$ac_objext; then
13146  ac_cv_have_decl_VBEReadPanelID=yes
13147else
13148  $as_echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151	ac_cv_have_decl_VBEReadPanelID=no
13152fi
13153
13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155fi
13156{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_VBEReadPanelID" >&5
13157$as_echo "$ac_cv_have_decl_VBEReadPanelID" >&6; }
13158if test "x$ac_cv_have_decl_VBEReadPanelID" = x""yes; then
13159
13160cat >>confdefs.h <<\_ACEOF
13161#define HAVE_PANELID 1
13162_ACEOF
13163
13164fi
13165
13166CFLAGS="$save_CFLAGS"
13167
13168save_CFLAGS="$CFLAGS"
13169CFLAGS="$XORG_CFLAGS"
13170{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
13171$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
13172if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
13173  $as_echo_n "(cached) " >&6
13174else
13175  cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h.  */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h.  */
13181#include "xorg-server.h"
13182
13183int
13184main ()
13185{
13186#ifndef XSERVER_LIBPCIACCESS
13187  (void) XSERVER_LIBPCIACCESS;
13188#endif
13189
13190  ;
13191  return 0;
13192}
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (ac_try="$ac_compile"
13196case "(($ac_try" in
13197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198  *) ac_try_echo=$ac_try;;
13199esac
13200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13201$as_echo "$ac_try_echo") >&5
13202  (eval "$ac_compile") 2>conftest.er1
13203  ac_status=$?
13204  grep -v '^ *+' conftest.er1 >conftest.err
13205  rm -f conftest.er1
13206  cat conftest.err >&5
13207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208  (exit $ac_status); } && {
13209	 test -z "$ac_c_werror_flag" ||
13210	 test ! -s conftest.err
13211       } && test -s conftest.$ac_objext; then
13212  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
13213else
13214  $as_echo "$as_me: failed program was:" >&5
13215sed 's/^/| /' conftest.$ac_ext >&5
13216
13217	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
13218fi
13219
13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221fi
13222{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
13223$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
13224if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
13225  XSERVER_LIBPCIACCESS=yes
13226else
13227  XSERVER_LIBPCIACCESS=no
13228fi
13229
13230CFLAGS="$save_CFLAGS"
13231
13232if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13233
13234pkg_failed=no
13235{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
13236$as_echo_n "checking for PCIACCESS... " >&6; }
13237
13238if test -n "$PCIACCESS_CFLAGS"; then
13239    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
13240 elif test -n "$PKG_CONFIG"; then
13241    if test -n "$PKG_CONFIG" && \
13242    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
13243  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
13244  ac_status=$?
13245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246  (exit $ac_status); }; then
13247  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
13248else
13249  pkg_failed=yes
13250fi
13251 else
13252    pkg_failed=untried
13253fi
13254if test -n "$PCIACCESS_LIBS"; then
13255    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
13256 elif test -n "$PKG_CONFIG"; then
13257    if test -n "$PKG_CONFIG" && \
13258    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
13259  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
13260  ac_status=$?
13261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262  (exit $ac_status); }; then
13263  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
13264else
13265  pkg_failed=yes
13266fi
13267 else
13268    pkg_failed=untried
13269fi
13270
13271
13272
13273if test $pkg_failed = yes; then
13274
13275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13276        _pkg_short_errors_supported=yes
13277else
13278        _pkg_short_errors_supported=no
13279fi
13280        if test $_pkg_short_errors_supported = yes; then
13281	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
13282        else
13283	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
13284        fi
13285	# Put the nasty error message in config.log where it belongs
13286	echo "$PCIACCESS_PKG_ERRORS" >&5
13287
13288	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met:
13289
13290$PCIACCESS_PKG_ERRORS
13291
13292Consider adjusting the PKG_CONFIG_PATH environment variable if you
13293installed software in a non-standard prefix.
13294
13295Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13296and PCIACCESS_LIBS to avoid the need to call pkg-config.
13297See the pkg-config man page for more details.
13298" >&5
13299$as_echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met:
13300
13301$PCIACCESS_PKG_ERRORS
13302
13303Consider adjusting the PKG_CONFIG_PATH environment variable if you
13304installed software in a non-standard prefix.
13305
13306Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13307and PCIACCESS_LIBS to avoid the need to call pkg-config.
13308See the pkg-config man page for more details.
13309" >&2;}
13310   { (exit 1); exit 1; }; }
13311elif test $pkg_failed = untried; then
13312	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13314{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13315is in your PATH or set the PKG_CONFIG environment variable to the full
13316path to pkg-config.
13317
13318Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13319and PCIACCESS_LIBS to avoid the need to call pkg-config.
13320See the pkg-config man page for more details.
13321
13322To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13323See \`config.log' for more details." >&5
13324$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13325is in your PATH or set the PKG_CONFIG environment variable to the full
13326path to pkg-config.
13327
13328Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13329and PCIACCESS_LIBS to avoid the need to call pkg-config.
13330See the pkg-config man page for more details.
13331
13332To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13333See \`config.log' for more details." >&2;}
13334   { (exit 1); exit 1; }; }; }
13335else
13336	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13337	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13338        { $as_echo "$as_me:$LINENO: result: yes" >&5
13339$as_echo "yes" >&6; }
13340	:
13341fi
13342fi
13343 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13344  XSERVER_LIBPCIACCESS_TRUE=
13345  XSERVER_LIBPCIACCESS_FALSE='#'
13346else
13347  XSERVER_LIBPCIACCESS_TRUE='#'
13348  XSERVER_LIBPCIACCESS_FALSE=
13349fi
13350
13351
13352CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
13353INCLUDES="$XORG_INCS "'-I$(top_srcdir)/src'
13354
13355
13356
13357# Checks for libraries.
13358
13359# Checks for header files.
13360{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13361$as_echo_n "checking for ANSI C header files... " >&6; }
13362if test "${ac_cv_header_stdc+set}" = set; then
13363  $as_echo_n "(cached) " >&6
13364else
13365  cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h.  */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h.  */
13371#include <stdlib.h>
13372#include <stdarg.h>
13373#include <string.h>
13374#include <float.h>
13375
13376int
13377main ()
13378{
13379
13380  ;
13381  return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext
13385if { (ac_try="$ac_compile"
13386case "(($ac_try" in
13387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388  *) ac_try_echo=$ac_try;;
13389esac
13390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13391$as_echo "$ac_try_echo") >&5
13392  (eval "$ac_compile") 2>conftest.er1
13393  ac_status=$?
13394  grep -v '^ *+' conftest.er1 >conftest.err
13395  rm -f conftest.er1
13396  cat conftest.err >&5
13397  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398  (exit $ac_status); } && {
13399	 test -z "$ac_c_werror_flag" ||
13400	 test ! -s conftest.err
13401       } && test -s conftest.$ac_objext; then
13402  ac_cv_header_stdc=yes
13403else
13404  $as_echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407	ac_cv_header_stdc=no
13408fi
13409
13410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411
13412if test $ac_cv_header_stdc = yes; then
13413  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13414  cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h.  */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h.  */
13420#include <string.h>
13421
13422_ACEOF
13423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13424  $EGREP "memchr" >/dev/null 2>&1; then
13425  :
13426else
13427  ac_cv_header_stdc=no
13428fi
13429rm -f conftest*
13430
13431fi
13432
13433if test $ac_cv_header_stdc = yes; then
13434  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13435  cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h.  */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h.  */
13441#include <stdlib.h>
13442
13443_ACEOF
13444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445  $EGREP "free" >/dev/null 2>&1; then
13446  :
13447else
13448  ac_cv_header_stdc=no
13449fi
13450rm -f conftest*
13451
13452fi
13453
13454if test $ac_cv_header_stdc = yes; then
13455  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13456  if test "$cross_compiling" = yes; then
13457  :
13458else
13459  cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h.  */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h.  */
13465#include <ctype.h>
13466#include <stdlib.h>
13467#if ((' ' & 0x0FF) == 0x020)
13468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13470#else
13471# define ISLOWER(c) \
13472		   (('a' <= (c) && (c) <= 'i') \
13473		     || ('j' <= (c) && (c) <= 'r') \
13474		     || ('s' <= (c) && (c) <= 'z'))
13475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13476#endif
13477
13478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13479int
13480main ()
13481{
13482  int i;
13483  for (i = 0; i < 256; i++)
13484    if (XOR (islower (i), ISLOWER (i))
13485	|| toupper (i) != TOUPPER (i))
13486      return 2;
13487  return 0;
13488}
13489_ACEOF
13490rm -f conftest$ac_exeext
13491if { (ac_try="$ac_link"
13492case "(($ac_try" in
13493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494  *) ac_try_echo=$ac_try;;
13495esac
13496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13497$as_echo "$ac_try_echo") >&5
13498  (eval "$ac_link") 2>&5
13499  ac_status=$?
13500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13502  { (case "(($ac_try" in
13503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504  *) ac_try_echo=$ac_try;;
13505esac
13506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13507$as_echo "$ac_try_echo") >&5
13508  (eval "$ac_try") 2>&5
13509  ac_status=$?
13510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511  (exit $ac_status); }; }; then
13512  :
13513else
13514  $as_echo "$as_me: program exited with status $ac_status" >&5
13515$as_echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518( exit $ac_status )
13519ac_cv_header_stdc=no
13520fi
13521rm -rf conftest.dSYM
13522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13523fi
13524
13525
13526fi
13527fi
13528{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13529$as_echo "$ac_cv_header_stdc" >&6; }
13530if test $ac_cv_header_stdc = yes; then
13531
13532cat >>confdefs.h <<\_ACEOF
13533#define STDC_HEADERS 1
13534_ACEOF
13535
13536fi
13537
13538
13539DRIVER_NAME=vesa
13540
13541
13542ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13543
13544cat >confcache <<\_ACEOF
13545# This file is a shell script that caches the results of configure
13546# tests run on this system so they can be shared between configure
13547# scripts and configure runs, see configure's option --config-cache.
13548# It is not useful on other systems.  If it contains results you don't
13549# want to keep, you may remove or edit it.
13550#
13551# config.status only pays attention to the cache file if you give it
13552# the --recheck option to rerun configure.
13553#
13554# `ac_cv_env_foo' variables (set or unset) will be overridden when
13555# loading this file, other *unset* `ac_cv_foo' will be assigned the
13556# following values.
13557
13558_ACEOF
13559
13560# The following way of writing the cache mishandles newlines in values,
13561# but we know of no workaround that is simple, portable, and efficient.
13562# So, we kill variables containing newlines.
13563# Ultrix sh set writes to stderr and can't be redirected directly,
13564# and sets the high bit in the cache file unless we assign to the vars.
13565(
13566  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13567    eval ac_val=\$$ac_var
13568    case $ac_val in #(
13569    *${as_nl}*)
13570      case $ac_var in #(
13571      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13572$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13573      esac
13574      case $ac_var in #(
13575      _ | IFS | as_nl) ;; #(
13576      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13577      *) $as_unset $ac_var ;;
13578      esac ;;
13579    esac
13580  done
13581
13582  (set) 2>&1 |
13583    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13584    *${as_nl}ac_space=\ *)
13585      # `set' does not quote correctly, so add quotes (double-quote
13586      # substitution turns \\\\ into \\, and sed turns \\ into \).
13587      sed -n \
13588	"s/'/'\\\\''/g;
13589	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13590      ;; #(
13591    *)
13592      # `set' quotes correctly as required by POSIX, so do not add quotes.
13593      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13594      ;;
13595    esac |
13596    sort
13597) |
13598  sed '
13599     /^ac_cv_env_/b end
13600     t clear
13601     :clear
13602     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13603     t end
13604     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13605     :end' >>confcache
13606if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13607  if test -w "$cache_file"; then
13608    test "x$cache_file" != "x/dev/null" &&
13609      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13610$as_echo "$as_me: updating cache $cache_file" >&6;}
13611    cat confcache >$cache_file
13612  else
13613    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13614$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13615  fi
13616fi
13617rm -f confcache
13618
13619test "x$prefix" = xNONE && prefix=$ac_default_prefix
13620# Let make expand exec_prefix.
13621test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13622
13623DEFS=-DHAVE_CONFIG_H
13624
13625ac_libobjs=
13626ac_ltlibobjs=
13627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13628  # 1. Remove the extension, and $U if already installed.
13629  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13630  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13631  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13632  #    will be set to the directory where LIBOBJS objects are built.
13633  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13634  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13635done
13636LIBOBJS=$ac_libobjs
13637
13638LTLIBOBJS=$ac_ltlibobjs
13639
13640
13641 if test -n "$EXEEXT"; then
13642  am__EXEEXT_TRUE=
13643  am__EXEEXT_FALSE='#'
13644else
13645  am__EXEEXT_TRUE='#'
13646  am__EXEEXT_FALSE=
13647fi
13648
13649if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13650  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13651Usually this means the macro was only invoked conditionally." >&5
13652$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13653Usually this means the macro was only invoked conditionally." >&2;}
13654   { (exit 1); exit 1; }; }
13655fi
13656if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13657  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13658Usually this means the macro was only invoked conditionally." >&5
13659$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13660Usually this means the macro was only invoked conditionally." >&2;}
13661   { (exit 1); exit 1; }; }
13662fi
13663if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13664  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13665Usually this means the macro was only invoked conditionally." >&5
13666$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13667Usually this means the macro was only invoked conditionally." >&2;}
13668   { (exit 1); exit 1; }; }
13669fi
13670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13671  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13672Usually this means the macro was only invoked conditionally." >&5
13673$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13674Usually this means the macro was only invoked conditionally." >&2;}
13675   { (exit 1); exit 1; }; }
13676fi
13677if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
13678  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
13679Usually this means the macro was only invoked conditionally." >&5
13680$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
13681Usually this means the macro was only invoked conditionally." >&2;}
13682   { (exit 1); exit 1; }; }
13683fi
13684if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13685  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13686Usually this means the macro was only invoked conditionally." >&5
13687$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13688Usually this means the macro was only invoked conditionally." >&2;}
13689   { (exit 1); exit 1; }; }
13690fi
13691
13692: ${CONFIG_STATUS=./config.status}
13693ac_write_fail=0
13694ac_clean_files_save=$ac_clean_files
13695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13696{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13698cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13699#! $SHELL
13700# Generated by $as_me.
13701# Run this file to recreate the current configuration.
13702# Compiler output produced by configure, useful for debugging
13703# configure, is in config.log if it exists.
13704
13705debug=false
13706ac_cs_recheck=false
13707ac_cs_silent=false
13708SHELL=\${CONFIG_SHELL-$SHELL}
13709_ACEOF
13710
13711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712## --------------------- ##
13713## M4sh Initialization.  ##
13714## --------------------- ##
13715
13716# Be more Bourne compatible
13717DUALCASE=1; export DUALCASE # for MKS sh
13718if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13719  emulate sh
13720  NULLCMD=:
13721  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13722  # is contrary to our usage.  Disable this feature.
13723  alias -g '${1+"$@"}'='"$@"'
13724  setopt NO_GLOB_SUBST
13725else
13726  case `(set -o) 2>/dev/null` in
13727  *posix*) set -o posix ;;
13728esac
13729
13730fi
13731
13732
13733
13734
13735# PATH needs CR
13736# Avoid depending upon Character Ranges.
13737as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13738as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13739as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13740as_cr_digits='0123456789'
13741as_cr_alnum=$as_cr_Letters$as_cr_digits
13742
13743as_nl='
13744'
13745export as_nl
13746# Printing a long string crashes Solaris 7 /usr/bin/printf.
13747as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13749as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13750if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13751  as_echo='printf %s\n'
13752  as_echo_n='printf %s'
13753else
13754  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13755    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13756    as_echo_n='/usr/ucb/echo -n'
13757  else
13758    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13759    as_echo_n_body='eval
13760      arg=$1;
13761      case $arg in
13762      *"$as_nl"*)
13763	expr "X$arg" : "X\\(.*\\)$as_nl";
13764	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13765      esac;
13766      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13767    '
13768    export as_echo_n_body
13769    as_echo_n='sh -c $as_echo_n_body as_echo'
13770  fi
13771  export as_echo_body
13772  as_echo='sh -c $as_echo_body as_echo'
13773fi
13774
13775# The user is always right.
13776if test "${PATH_SEPARATOR+set}" != set; then
13777  PATH_SEPARATOR=:
13778  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13779    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13780      PATH_SEPARATOR=';'
13781  }
13782fi
13783
13784# Support unset when possible.
13785if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13786  as_unset=unset
13787else
13788  as_unset=false
13789fi
13790
13791
13792# IFS
13793# We need space, tab and new line, in precisely that order.  Quoting is
13794# there to prevent editors from complaining about space-tab.
13795# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13796# splitting by setting IFS to empty value.)
13797IFS=" ""	$as_nl"
13798
13799# Find who we are.  Look in the path if we contain no directory separator.
13800case $0 in
13801  *[\\/]* ) as_myself=$0 ;;
13802  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803for as_dir in $PATH
13804do
13805  IFS=$as_save_IFS
13806  test -z "$as_dir" && as_dir=.
13807  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13808done
13809IFS=$as_save_IFS
13810
13811     ;;
13812esac
13813# We did not find ourselves, most probably we were run as `sh COMMAND'
13814# in which case we are not to be found in the path.
13815if test "x$as_myself" = x; then
13816  as_myself=$0
13817fi
13818if test ! -f "$as_myself"; then
13819  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13820  { (exit 1); exit 1; }
13821fi
13822
13823# Work around bugs in pre-3.0 UWIN ksh.
13824for as_var in ENV MAIL MAILPATH
13825do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13826done
13827PS1='$ '
13828PS2='> '
13829PS4='+ '
13830
13831# NLS nuisances.
13832LC_ALL=C
13833export LC_ALL
13834LANGUAGE=C
13835export LANGUAGE
13836
13837# Required to use basename.
13838if expr a : '\(a\)' >/dev/null 2>&1 &&
13839   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13840  as_expr=expr
13841else
13842  as_expr=false
13843fi
13844
13845if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13846  as_basename=basename
13847else
13848  as_basename=false
13849fi
13850
13851
13852# Name of the executable.
13853as_me=`$as_basename -- "$0" ||
13854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13855	 X"$0" : 'X\(//\)$' \| \
13856	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13857$as_echo X/"$0" |
13858    sed '/^.*\/\([^/][^/]*\)\/*$/{
13859	    s//\1/
13860	    q
13861	  }
13862	  /^X\/\(\/\/\)$/{
13863	    s//\1/
13864	    q
13865	  }
13866	  /^X\/\(\/\).*/{
13867	    s//\1/
13868	    q
13869	  }
13870	  s/.*/./; q'`
13871
13872# CDPATH.
13873$as_unset CDPATH
13874
13875
13876
13877  as_lineno_1=$LINENO
13878  as_lineno_2=$LINENO
13879  test "x$as_lineno_1" != "x$as_lineno_2" &&
13880  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13881
13882  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13883  # uniformly replaced by the line number.  The first 'sed' inserts a
13884  # line-number line after each line using $LINENO; the second 'sed'
13885  # does the real work.  The second script uses 'N' to pair each
13886  # line-number line with the line containing $LINENO, and appends
13887  # trailing '-' during substitution so that $LINENO is not a special
13888  # case at line end.
13889  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13890  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13891  # E. McMahon (1931-1989) for sed's syntax.  :-)
13892  sed -n '
13893    p
13894    /[$]LINENO/=
13895  ' <$as_myself |
13896    sed '
13897      s/[$]LINENO.*/&-/
13898      t lineno
13899      b
13900      :lineno
13901      N
13902      :loop
13903      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13904      t loop
13905      s/-\n.*//
13906    ' >$as_me.lineno &&
13907  chmod +x "$as_me.lineno" ||
13908    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13909   { (exit 1); exit 1; }; }
13910
13911  # Don't try to exec as it changes $[0], causing all sort of problems
13912  # (the dirname of $[0] is not the place where we might find the
13913  # original and so on.  Autoconf is especially sensitive to this).
13914  . "./$as_me.lineno"
13915  # Exit status is that of the last command.
13916  exit
13917}
13918
13919
13920if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13921  as_dirname=dirname
13922else
13923  as_dirname=false
13924fi
13925
13926ECHO_C= ECHO_N= ECHO_T=
13927case `echo -n x` in
13928-n*)
13929  case `echo 'x\c'` in
13930  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13931  *)   ECHO_C='\c';;
13932  esac;;
13933*)
13934  ECHO_N='-n';;
13935esac
13936if expr a : '\(a\)' >/dev/null 2>&1 &&
13937   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13938  as_expr=expr
13939else
13940  as_expr=false
13941fi
13942
13943rm -f conf$$ conf$$.exe conf$$.file
13944if test -d conf$$.dir; then
13945  rm -f conf$$.dir/conf$$.file
13946else
13947  rm -f conf$$.dir
13948  mkdir conf$$.dir 2>/dev/null
13949fi
13950if (echo >conf$$.file) 2>/dev/null; then
13951  if ln -s conf$$.file conf$$ 2>/dev/null; then
13952    as_ln_s='ln -s'
13953    # ... but there are two gotchas:
13954    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13955    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13956    # In both cases, we have to default to `cp -p'.
13957    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13958      as_ln_s='cp -p'
13959  elif ln conf$$.file conf$$ 2>/dev/null; then
13960    as_ln_s=ln
13961  else
13962    as_ln_s='cp -p'
13963  fi
13964else
13965  as_ln_s='cp -p'
13966fi
13967rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13968rmdir conf$$.dir 2>/dev/null
13969
13970if mkdir -p . 2>/dev/null; then
13971  as_mkdir_p=:
13972else
13973  test -d ./-p && rmdir ./-p
13974  as_mkdir_p=false
13975fi
13976
13977if test -x / >/dev/null 2>&1; then
13978  as_test_x='test -x'
13979else
13980  if ls -dL / >/dev/null 2>&1; then
13981    as_ls_L_option=L
13982  else
13983    as_ls_L_option=
13984  fi
13985  as_test_x='
13986    eval sh -c '\''
13987      if test -d "$1"; then
13988	test -d "$1/.";
13989      else
13990	case $1 in
13991	-*)set "./$1";;
13992	esac;
13993	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13994	???[sx]*):;;*)false;;esac;fi
13995    '\'' sh
13996  '
13997fi
13998as_executable_p=$as_test_x
13999
14000# Sed expression to map a string onto a valid CPP name.
14001as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14002
14003# Sed expression to map a string onto a valid variable name.
14004as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14005
14006
14007exec 6>&1
14008
14009# Save the log message, to keep $[0] and so on meaningful, and to
14010# report actual input values of CONFIG_FILES etc. instead of their
14011# values after options handling.
14012ac_log="
14013This file was extended by xf86-video-vesa $as_me 2.3.0, which was
14014generated by GNU Autoconf 2.63.  Invocation command line was
14015
14016  CONFIG_FILES    = $CONFIG_FILES
14017  CONFIG_HEADERS  = $CONFIG_HEADERS
14018  CONFIG_LINKS    = $CONFIG_LINKS
14019  CONFIG_COMMANDS = $CONFIG_COMMANDS
14020  $ $0 $@
14021
14022on `(hostname || uname -n) 2>/dev/null | sed 1q`
14023"
14024
14025_ACEOF
14026
14027case $ac_config_files in *"
14028"*) set x $ac_config_files; shift; ac_config_files=$*;;
14029esac
14030
14031case $ac_config_headers in *"
14032"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14033esac
14034
14035
14036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14037# Files that config.status was made for.
14038config_files="$ac_config_files"
14039config_headers="$ac_config_headers"
14040config_commands="$ac_config_commands"
14041
14042_ACEOF
14043
14044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14045ac_cs_usage="\
14046\`$as_me' instantiates files from templates according to the
14047current configuration.
14048
14049Usage: $0 [OPTION]... [FILE]...
14050
14051  -h, --help       print this help, then exit
14052  -V, --version    print version number and configuration settings, then exit
14053  -q, --quiet, --silent
14054                   do not print progress messages
14055  -d, --debug      don't remove temporary files
14056      --recheck    update $as_me by reconfiguring in the same conditions
14057      --file=FILE[:TEMPLATE]
14058                   instantiate the configuration file FILE
14059      --header=FILE[:TEMPLATE]
14060                   instantiate the configuration header FILE
14061
14062Configuration files:
14063$config_files
14064
14065Configuration headers:
14066$config_headers
14067
14068Configuration commands:
14069$config_commands
14070
14071Report bugs to <bug-autoconf@gnu.org>."
14072
14073_ACEOF
14074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14075ac_cs_version="\\
14076xf86-video-vesa config.status 2.3.0
14077configured by $0, generated by GNU Autoconf 2.63,
14078  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14079
14080Copyright (C) 2008 Free Software Foundation, Inc.
14081This config.status script is free software; the Free Software Foundation
14082gives unlimited permission to copy, distribute and modify it."
14083
14084ac_pwd='$ac_pwd'
14085srcdir='$srcdir'
14086INSTALL='$INSTALL'
14087MKDIR_P='$MKDIR_P'
14088AWK='$AWK'
14089test -n "\$AWK" || AWK=awk
14090_ACEOF
14091
14092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093# The default lists apply if the user does not specify any file.
14094ac_need_defaults=:
14095while test $# != 0
14096do
14097  case $1 in
14098  --*=*)
14099    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14100    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14101    ac_shift=:
14102    ;;
14103  *)
14104    ac_option=$1
14105    ac_optarg=$2
14106    ac_shift=shift
14107    ;;
14108  esac
14109
14110  case $ac_option in
14111  # Handling of the options.
14112  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14113    ac_cs_recheck=: ;;
14114  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14115    $as_echo "$ac_cs_version"; exit ;;
14116  --debug | --debu | --deb | --de | --d | -d )
14117    debug=: ;;
14118  --file | --fil | --fi | --f )
14119    $ac_shift
14120    case $ac_optarg in
14121    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14122    esac
14123    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14124    ac_need_defaults=false;;
14125  --header | --heade | --head | --hea )
14126    $ac_shift
14127    case $ac_optarg in
14128    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14129    esac
14130    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14131    ac_need_defaults=false;;
14132  --he | --h)
14133    # Conflict between --help and --header
14134    { $as_echo "$as_me: error: ambiguous option: $1
14135Try \`$0 --help' for more information." >&2
14136   { (exit 1); exit 1; }; };;
14137  --help | --hel | -h )
14138    $as_echo "$ac_cs_usage"; exit ;;
14139  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14140  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14141    ac_cs_silent=: ;;
14142
14143  # This is an error.
14144  -*) { $as_echo "$as_me: error: unrecognized option: $1
14145Try \`$0 --help' for more information." >&2
14146   { (exit 1); exit 1; }; } ;;
14147
14148  *) ac_config_targets="$ac_config_targets $1"
14149     ac_need_defaults=false ;;
14150
14151  esac
14152  shift
14153done
14154
14155ac_configure_extra_args=
14156
14157if $ac_cs_silent; then
14158  exec 6>/dev/null
14159  ac_configure_extra_args="$ac_configure_extra_args --silent"
14160fi
14161
14162_ACEOF
14163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164if \$ac_cs_recheck; then
14165  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14166  shift
14167  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14168  CONFIG_SHELL='$SHELL'
14169  export CONFIG_SHELL
14170  exec "\$@"
14171fi
14172
14173_ACEOF
14174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14175exec 5>>config.log
14176{
14177  echo
14178  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14179## Running $as_me. ##
14180_ASBOX
14181  $as_echo "$ac_log"
14182} >&5
14183
14184_ACEOF
14185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186#
14187# INIT-COMMANDS
14188#
14189AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14190
14191
14192# The HP-UX ksh and POSIX shell print the target directory to stdout
14193# if CDPATH is set.
14194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14195
14196sed_quote_subst='$sed_quote_subst'
14197double_quote_subst='$double_quote_subst'
14198delay_variable_subst='$delay_variable_subst'
14199enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14200macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14201macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14202enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14203pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14204enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14205host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14206host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14207host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14208build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14209build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14210build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14211SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14212Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14213GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14214EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14215FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14216LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14217NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14218LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14219max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14220ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14221exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14222lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14223lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14224lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14225reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14226reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14227OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14228deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14229file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14230AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14231AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14232STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14233RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14234old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14235old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14237CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14238CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14239compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14240GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14241lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14242lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14243lt_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"`'
14244lt_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"`'
14245objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14246SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14247ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14248MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14249lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14250lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14251lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14252lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14253lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14254need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14255DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14256NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14257LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14258OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14259OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14260libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14261shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14262extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14263archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14264enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14265export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14266whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14267compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14268old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14269old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14270archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14271archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14272module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14273module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14274with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14275allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14276no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14277hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14278hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14279hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14280hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14281hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14282hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14283hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14284hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14285inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14286link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14287fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14288always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14289export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14290exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14291include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14292prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14293file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14294variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14295need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14296need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14297version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14298runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14299shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14300shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14301libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14302library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14303soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14304postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14305postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14306finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14307finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14308hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14309sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14310sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14311hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14312enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14313enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14314enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14315old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14316striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14317
14318LTCC='$LTCC'
14319LTCFLAGS='$LTCFLAGS'
14320compiler='$compiler_DEFAULT'
14321
14322# Quote evaled strings.
14323for var in SED \
14324GREP \
14325EGREP \
14326FGREP \
14327LD \
14328NM \
14329LN_S \
14330lt_SP2NL \
14331lt_NL2SP \
14332reload_flag \
14333OBJDUMP \
14334deplibs_check_method \
14335file_magic_cmd \
14336AR \
14337AR_FLAGS \
14338STRIP \
14339RANLIB \
14340CC \
14341CFLAGS \
14342compiler \
14343lt_cv_sys_global_symbol_pipe \
14344lt_cv_sys_global_symbol_to_cdecl \
14345lt_cv_sys_global_symbol_to_c_name_address \
14346lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14347SHELL \
14348ECHO \
14349lt_prog_compiler_no_builtin_flag \
14350lt_prog_compiler_wl \
14351lt_prog_compiler_pic \
14352lt_prog_compiler_static \
14353lt_cv_prog_compiler_c_o \
14354need_locks \
14355DSYMUTIL \
14356NMEDIT \
14357LIPO \
14358OTOOL \
14359OTOOL64 \
14360shrext_cmds \
14361export_dynamic_flag_spec \
14362whole_archive_flag_spec \
14363compiler_needs_object \
14364with_gnu_ld \
14365allow_undefined_flag \
14366no_undefined_flag \
14367hardcode_libdir_flag_spec \
14368hardcode_libdir_flag_spec_ld \
14369hardcode_libdir_separator \
14370fix_srcfile_path \
14371exclude_expsyms \
14372include_expsyms \
14373file_list_spec \
14374variables_saved_for_relink \
14375libname_spec \
14376library_names_spec \
14377soname_spec \
14378finish_eval \
14379old_striplib \
14380striplib; do
14381    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14382    *[\\\\\\\`\\"\\\$]*)
14383      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14384      ;;
14385    *)
14386      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14387      ;;
14388    esac
14389done
14390
14391# Double-quote double-evaled strings.
14392for var in reload_cmds \
14393old_postinstall_cmds \
14394old_postuninstall_cmds \
14395old_archive_cmds \
14396extract_expsyms_cmds \
14397old_archive_from_new_cmds \
14398old_archive_from_expsyms_cmds \
14399archive_cmds \
14400archive_expsym_cmds \
14401module_cmds \
14402module_expsym_cmds \
14403export_symbols_cmds \
14404prelink_cmds \
14405postinstall_cmds \
14406postuninstall_cmds \
14407finish_cmds \
14408sys_lib_search_path_spec \
14409sys_lib_dlsearch_path_spec; do
14410    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14411    *[\\\\\\\`\\"\\\$]*)
14412      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14413      ;;
14414    *)
14415      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14416      ;;
14417    esac
14418done
14419
14420# Fix-up fallback echo if it was mangled by the above quoting rules.
14421case \$lt_ECHO in
14422*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14423  ;;
14424esac
14425
14426ac_aux_dir='$ac_aux_dir'
14427xsi_shell='$xsi_shell'
14428lt_shell_append='$lt_shell_append'
14429
14430# See if we are running on zsh, and set the options which allow our
14431# commands through without removal of \ escapes INIT.
14432if test -n "\${ZSH_VERSION+set}" ; then
14433   setopt NO_GLOB_SUBST
14434fi
14435
14436
14437    PACKAGE='$PACKAGE'
14438    VERSION='$VERSION'
14439    TIMESTAMP='$TIMESTAMP'
14440    RM='$RM'
14441    ofile='$ofile'
14442
14443
14444
14445
14446_ACEOF
14447
14448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14449
14450# Handling of arguments.
14451for ac_config_target in $ac_config_targets
14452do
14453  case $ac_config_target in
14454    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14455    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14456    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14457    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14458    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14459    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14460
14461  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14462$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14463   { (exit 1); exit 1; }; };;
14464  esac
14465done
14466
14467
14468# If the user did not use the arguments to specify the items to instantiate,
14469# then the envvar interface is used.  Set only those that are not.
14470# We use the long form for the default assignment because of an extremely
14471# bizarre bug on SunOS 4.1.3.
14472if $ac_need_defaults; then
14473  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14474  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14475  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14476fi
14477
14478# Have a temporary directory for convenience.  Make it in the build tree
14479# simply because there is no reason against having it here, and in addition,
14480# creating and moving files from /tmp can sometimes cause problems.
14481# Hook for its removal unless debugging.
14482# Note that there is a small window in which the directory will not be cleaned:
14483# after its creation but before its name has been assigned to `$tmp'.
14484$debug ||
14485{
14486  tmp=
14487  trap 'exit_status=$?
14488  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14489' 0
14490  trap '{ (exit 1); exit 1; }' 1 2 13 15
14491}
14492# Create a (secure) tmp directory for tmp files.
14493
14494{
14495  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14496  test -n "$tmp" && test -d "$tmp"
14497}  ||
14498{
14499  tmp=./conf$$-$RANDOM
14500  (umask 077 && mkdir "$tmp")
14501} ||
14502{
14503   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14504   { (exit 1); exit 1; }
14505}
14506
14507# Set up the scripts for CONFIG_FILES section.
14508# No need to generate them if there are no CONFIG_FILES.
14509# This happens for instance with `./config.status config.h'.
14510if test -n "$CONFIG_FILES"; then
14511
14512
14513ac_cr='
14514'
14515ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14516if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14517  ac_cs_awk_cr='\\r'
14518else
14519  ac_cs_awk_cr=$ac_cr
14520fi
14521
14522echo 'BEGIN {' >"$tmp/subs1.awk" &&
14523_ACEOF
14524
14525
14526{
14527  echo "cat >conf$$subs.awk <<_ACEOF" &&
14528  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14529  echo "_ACEOF"
14530} >conf$$subs.sh ||
14531  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14532$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14533   { (exit 1); exit 1; }; }
14534ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14535ac_delim='%!_!# '
14536for ac_last_try in false false false false false :; do
14537  . ./conf$$subs.sh ||
14538    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14539$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14540   { (exit 1); exit 1; }; }
14541
14542  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14543  if test $ac_delim_n = $ac_delim_num; then
14544    break
14545  elif $ac_last_try; then
14546    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14547$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14548   { (exit 1); exit 1; }; }
14549  else
14550    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14551  fi
14552done
14553rm -f conf$$subs.sh
14554
14555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14556cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14557_ACEOF
14558sed -n '
14559h
14560s/^/S["/; s/!.*/"]=/
14561p
14562g
14563s/^[^!]*!//
14564:repl
14565t repl
14566s/'"$ac_delim"'$//
14567t delim
14568:nl
14569h
14570s/\(.\{148\}\).*/\1/
14571t more1
14572s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14573p
14574n
14575b repl
14576:more1
14577s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14578p
14579g
14580s/.\{148\}//
14581t nl
14582:delim
14583h
14584s/\(.\{148\}\).*/\1/
14585t more2
14586s/["\\]/\\&/g; s/^/"/; s/$/"/
14587p
14588b
14589:more2
14590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14591p
14592g
14593s/.\{148\}//
14594t delim
14595' <conf$$subs.awk | sed '
14596/^[^""]/{
14597  N
14598  s/\n//
14599}
14600' >>$CONFIG_STATUS || ac_write_fail=1
14601rm -f conf$$subs.awk
14602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603_ACAWK
14604cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14605  for (key in S) S_is_set[key] = 1
14606  FS = ""
14607
14608}
14609{
14610  line = $ 0
14611  nfields = split(line, field, "@")
14612  substed = 0
14613  len = length(field[1])
14614  for (i = 2; i < nfields; i++) {
14615    key = field[i]
14616    keylen = length(key)
14617    if (S_is_set[key]) {
14618      value = S[key]
14619      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14620      len += length(value) + length(field[++i])
14621      substed = 1
14622    } else
14623      len += 1 + keylen
14624  }
14625
14626  print line
14627}
14628
14629_ACAWK
14630_ACEOF
14631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14632if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14633  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14634else
14635  cat
14636fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14637  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14638$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14639   { (exit 1); exit 1; }; }
14640_ACEOF
14641
14642# VPATH may cause trouble with some makes, so we remove $(srcdir),
14643# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14644# trailing colons and then remove the whole line if VPATH becomes empty
14645# (actually we leave an empty line to preserve line numbers).
14646if test "x$srcdir" = x.; then
14647  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14648s/:*\$(srcdir):*/:/
14649s/:*\${srcdir}:*/:/
14650s/:*@srcdir@:*/:/
14651s/^\([^=]*=[	 ]*\):*/\1/
14652s/:*$//
14653s/^[^=]*=[	 ]*$//
14654}'
14655fi
14656
14657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14658fi # test -n "$CONFIG_FILES"
14659
14660# Set up the scripts for CONFIG_HEADERS section.
14661# No need to generate them if there are no CONFIG_HEADERS.
14662# This happens for instance with `./config.status Makefile'.
14663if test -n "$CONFIG_HEADERS"; then
14664cat >"$tmp/defines.awk" <<\_ACAWK ||
14665BEGIN {
14666_ACEOF
14667
14668# Transform confdefs.h into an awk script `defines.awk', embedded as
14669# here-document in config.status, that substitutes the proper values into
14670# config.h.in to produce config.h.
14671
14672# Create a delimiter string that does not exist in confdefs.h, to ease
14673# handling of long lines.
14674ac_delim='%!_!# '
14675for ac_last_try in false false :; do
14676  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14677  if test -z "$ac_t"; then
14678    break
14679  elif $ac_last_try; then
14680    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14681$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14682   { (exit 1); exit 1; }; }
14683  else
14684    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14685  fi
14686done
14687
14688# For the awk script, D is an array of macro values keyed by name,
14689# likewise P contains macro parameters if any.  Preserve backslash
14690# newline sequences.
14691
14692ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14693sed -n '
14694s/.\{148\}/&'"$ac_delim"'/g
14695t rset
14696:rset
14697s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14698t def
14699d
14700:def
14701s/\\$//
14702t bsnl
14703s/["\\]/\\&/g
14704s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14705D["\1"]=" \3"/p
14706s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14707d
14708:bsnl
14709s/["\\]/\\&/g
14710s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14711D["\1"]=" \3\\\\\\n"\\/p
14712t cont
14713s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14714t cont
14715d
14716:cont
14717n
14718s/.\{148\}/&'"$ac_delim"'/g
14719t clear
14720:clear
14721s/\\$//
14722t bsnlc
14723s/["\\]/\\&/g; s/^/"/; s/$/"/p
14724d
14725:bsnlc
14726s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14727b cont
14728' <confdefs.h | sed '
14729s/'"$ac_delim"'/"\\\
14730"/g' >>$CONFIG_STATUS || ac_write_fail=1
14731
14732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14733  for (key in D) D_is_set[key] = 1
14734  FS = ""
14735}
14736/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14737  line = \$ 0
14738  split(line, arg, " ")
14739  if (arg[1] == "#") {
14740    defundef = arg[2]
14741    mac1 = arg[3]
14742  } else {
14743    defundef = substr(arg[1], 2)
14744    mac1 = arg[2]
14745  }
14746  split(mac1, mac2, "(") #)
14747  macro = mac2[1]
14748  prefix = substr(line, 1, index(line, defundef) - 1)
14749  if (D_is_set[macro]) {
14750    # Preserve the white space surrounding the "#".
14751    print prefix "define", macro P[macro] D[macro]
14752    next
14753  } else {
14754    # Replace #undef with comments.  This is necessary, for example,
14755    # in the case of _POSIX_SOURCE, which is predefined and required
14756    # on some systems where configure will not decide to define it.
14757    if (defundef == "undef") {
14758      print "/*", prefix defundef, macro, "*/"
14759      next
14760    }
14761  }
14762}
14763{ print }
14764_ACAWK
14765_ACEOF
14766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14768$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14769   { (exit 1); exit 1; }; }
14770fi # test -n "$CONFIG_HEADERS"
14771
14772
14773eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14774shift
14775for ac_tag
14776do
14777  case $ac_tag in
14778  :[FHLC]) ac_mode=$ac_tag; continue;;
14779  esac
14780  case $ac_mode$ac_tag in
14781  :[FHL]*:*);;
14782  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14783$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14784   { (exit 1); exit 1; }; };;
14785  :[FH]-) ac_tag=-:-;;
14786  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14787  esac
14788  ac_save_IFS=$IFS
14789  IFS=:
14790  set x $ac_tag
14791  IFS=$ac_save_IFS
14792  shift
14793  ac_file=$1
14794  shift
14795
14796  case $ac_mode in
14797  :L) ac_source=$1;;
14798  :[FH])
14799    ac_file_inputs=
14800    for ac_f
14801    do
14802      case $ac_f in
14803      -) ac_f="$tmp/stdin";;
14804      *) # Look for the file first in the build tree, then in the source tree
14805	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14806	 # because $ac_f cannot contain `:'.
14807	 test -f "$ac_f" ||
14808	   case $ac_f in
14809	   [\\/$]*) false;;
14810	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14811	   esac ||
14812	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14813$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14814   { (exit 1); exit 1; }; };;
14815      esac
14816      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14817      ac_file_inputs="$ac_file_inputs '$ac_f'"
14818    done
14819
14820    # Let's still pretend it is `configure' which instantiates (i.e., don't
14821    # use $as_me), people would be surprised to read:
14822    #    /* config.h.  Generated by config.status.  */
14823    configure_input='Generated from '`
14824	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14825	`' by configure.'
14826    if test x"$ac_file" != x-; then
14827      configure_input="$ac_file.  $configure_input"
14828      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14829$as_echo "$as_me: creating $ac_file" >&6;}
14830    fi
14831    # Neutralize special characters interpreted by sed in replacement strings.
14832    case $configure_input in #(
14833    *\&* | *\|* | *\\* )
14834       ac_sed_conf_input=`$as_echo "$configure_input" |
14835       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14836    *) ac_sed_conf_input=$configure_input;;
14837    esac
14838
14839    case $ac_tag in
14840    *:-:* | *:-) cat >"$tmp/stdin" \
14841      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14842$as_echo "$as_me: error: could not create $ac_file" >&2;}
14843   { (exit 1); exit 1; }; } ;;
14844    esac
14845    ;;
14846  esac
14847
14848  ac_dir=`$as_dirname -- "$ac_file" ||
14849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14850	 X"$ac_file" : 'X\(//\)[^/]' \| \
14851	 X"$ac_file" : 'X\(//\)$' \| \
14852	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14853$as_echo X"$ac_file" |
14854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14855	    s//\1/
14856	    q
14857	  }
14858	  /^X\(\/\/\)[^/].*/{
14859	    s//\1/
14860	    q
14861	  }
14862	  /^X\(\/\/\)$/{
14863	    s//\1/
14864	    q
14865	  }
14866	  /^X\(\/\).*/{
14867	    s//\1/
14868	    q
14869	  }
14870	  s/.*/./; q'`
14871  { as_dir="$ac_dir"
14872  case $as_dir in #(
14873  -*) as_dir=./$as_dir;;
14874  esac
14875  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14876    as_dirs=
14877    while :; do
14878      case $as_dir in #(
14879      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14880      *) as_qdir=$as_dir;;
14881      esac
14882      as_dirs="'$as_qdir' $as_dirs"
14883      as_dir=`$as_dirname -- "$as_dir" ||
14884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14885	 X"$as_dir" : 'X\(//\)[^/]' \| \
14886	 X"$as_dir" : 'X\(//\)$' \| \
14887	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14888$as_echo X"$as_dir" |
14889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14890	    s//\1/
14891	    q
14892	  }
14893	  /^X\(\/\/\)[^/].*/{
14894	    s//\1/
14895	    q
14896	  }
14897	  /^X\(\/\/\)$/{
14898	    s//\1/
14899	    q
14900	  }
14901	  /^X\(\/\).*/{
14902	    s//\1/
14903	    q
14904	  }
14905	  s/.*/./; q'`
14906      test -d "$as_dir" && break
14907    done
14908    test -z "$as_dirs" || eval "mkdir $as_dirs"
14909  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14910$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14911   { (exit 1); exit 1; }; }; }
14912  ac_builddir=.
14913
14914case "$ac_dir" in
14915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14916*)
14917  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14918  # A ".." for each directory in $ac_dir_suffix.
14919  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14920  case $ac_top_builddir_sub in
14921  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14922  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14923  esac ;;
14924esac
14925ac_abs_top_builddir=$ac_pwd
14926ac_abs_builddir=$ac_pwd$ac_dir_suffix
14927# for backward compatibility:
14928ac_top_builddir=$ac_top_build_prefix
14929
14930case $srcdir in
14931  .)  # We are building in place.
14932    ac_srcdir=.
14933    ac_top_srcdir=$ac_top_builddir_sub
14934    ac_abs_top_srcdir=$ac_pwd ;;
14935  [\\/]* | ?:[\\/]* )  # Absolute name.
14936    ac_srcdir=$srcdir$ac_dir_suffix;
14937    ac_top_srcdir=$srcdir
14938    ac_abs_top_srcdir=$srcdir ;;
14939  *) # Relative name.
14940    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14941    ac_top_srcdir=$ac_top_build_prefix$srcdir
14942    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14943esac
14944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14945
14946
14947  case $ac_mode in
14948  :F)
14949  #
14950  # CONFIG_FILE
14951  #
14952
14953  case $INSTALL in
14954  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14955  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14956  esac
14957  ac_MKDIR_P=$MKDIR_P
14958  case $MKDIR_P in
14959  [\\/$]* | ?:[\\/]* ) ;;
14960  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14961  esac
14962_ACEOF
14963
14964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14965# If the template does not know about datarootdir, expand it.
14966# FIXME: This hack should be removed a few years after 2.60.
14967ac_datarootdir_hack=; ac_datarootdir_seen=
14968
14969ac_sed_dataroot='
14970/datarootdir/ {
14971  p
14972  q
14973}
14974/@datadir@/p
14975/@docdir@/p
14976/@infodir@/p
14977/@localedir@/p
14978/@mandir@/p
14979'
14980case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14981*datarootdir*) ac_datarootdir_seen=yes;;
14982*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14983  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14984$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14985_ACEOF
14986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14987  ac_datarootdir_hack='
14988  s&@datadir@&$datadir&g
14989  s&@docdir@&$docdir&g
14990  s&@infodir@&$infodir&g
14991  s&@localedir@&$localedir&g
14992  s&@mandir@&$mandir&g
14993    s&\\\${datarootdir}&$datarootdir&g' ;;
14994esac
14995_ACEOF
14996
14997# Neutralize VPATH when `$srcdir' = `.'.
14998# Shell code in configure.ac might set extrasub.
14999# FIXME: do we really want to maintain this feature?
15000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15001ac_sed_extra="$ac_vpsub
15002$extrasub
15003_ACEOF
15004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15005:t
15006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15007s|@configure_input@|$ac_sed_conf_input|;t t
15008s&@top_builddir@&$ac_top_builddir_sub&;t t
15009s&@top_build_prefix@&$ac_top_build_prefix&;t t
15010s&@srcdir@&$ac_srcdir&;t t
15011s&@abs_srcdir@&$ac_abs_srcdir&;t t
15012s&@top_srcdir@&$ac_top_srcdir&;t t
15013s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15014s&@builddir@&$ac_builddir&;t t
15015s&@abs_builddir@&$ac_abs_builddir&;t t
15016s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15017s&@INSTALL@&$ac_INSTALL&;t t
15018s&@MKDIR_P@&$ac_MKDIR_P&;t t
15019$ac_datarootdir_hack
15020"
15021eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15022  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15023$as_echo "$as_me: error: could not create $ac_file" >&2;}
15024   { (exit 1); exit 1; }; }
15025
15026test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15027  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15028  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15029  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15030which seems to be undefined.  Please make sure it is defined." >&5
15031$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15032which seems to be undefined.  Please make sure it is defined." >&2;}
15033
15034  rm -f "$tmp/stdin"
15035  case $ac_file in
15036  -) cat "$tmp/out" && rm -f "$tmp/out";;
15037  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15038  esac \
15039  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15040$as_echo "$as_me: error: could not create $ac_file" >&2;}
15041   { (exit 1); exit 1; }; }
15042 ;;
15043  :H)
15044  #
15045  # CONFIG_HEADER
15046  #
15047  if test x"$ac_file" != x-; then
15048    {
15049      $as_echo "/* $configure_input  */" \
15050      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15051    } >"$tmp/config.h" \
15052      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15053$as_echo "$as_me: error: could not create $ac_file" >&2;}
15054   { (exit 1); exit 1; }; }
15055    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15056      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15057$as_echo "$as_me: $ac_file is unchanged" >&6;}
15058    else
15059      rm -f "$ac_file"
15060      mv "$tmp/config.h" "$ac_file" \
15061	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15062$as_echo "$as_me: error: could not create $ac_file" >&2;}
15063   { (exit 1); exit 1; }; }
15064    fi
15065  else
15066    $as_echo "/* $configure_input  */" \
15067      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15068      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15069$as_echo "$as_me: error: could not create -" >&2;}
15070   { (exit 1); exit 1; }; }
15071  fi
15072# Compute "$ac_file"'s index in $config_headers.
15073_am_arg="$ac_file"
15074_am_stamp_count=1
15075for _am_header in $config_headers :; do
15076  case $_am_header in
15077    $_am_arg | $_am_arg:* )
15078      break ;;
15079    * )
15080      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15081  esac
15082done
15083echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15084$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15085	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15086	 X"$_am_arg" : 'X\(//\)$' \| \
15087	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15088$as_echo X"$_am_arg" |
15089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15090	    s//\1/
15091	    q
15092	  }
15093	  /^X\(\/\/\)[^/].*/{
15094	    s//\1/
15095	    q
15096	  }
15097	  /^X\(\/\/\)$/{
15098	    s//\1/
15099	    q
15100	  }
15101	  /^X\(\/\).*/{
15102	    s//\1/
15103	    q
15104	  }
15105	  s/.*/./; q'`/stamp-h$_am_stamp_count
15106 ;;
15107
15108  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15109$as_echo "$as_me: executing $ac_file commands" >&6;}
15110 ;;
15111  esac
15112
15113
15114  case $ac_file$ac_mode in
15115    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15116  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15117  # are listed without --file.  Let's play safe and only enable the eval
15118  # if we detect the quoting.
15119  case $CONFIG_FILES in
15120  *\'*) eval set x "$CONFIG_FILES" ;;
15121  *)   set x $CONFIG_FILES ;;
15122  esac
15123  shift
15124  for mf
15125  do
15126    # Strip MF so we end up with the name of the file.
15127    mf=`echo "$mf" | sed -e 's/:.*$//'`
15128    # Check whether this is an Automake generated Makefile or not.
15129    # We used to match only the files named `Makefile.in', but
15130    # some people rename them; so instead we look at the file content.
15131    # Grep'ing the first line is not enough: some people post-process
15132    # each Makefile.in and add a new line on top of each file to say so.
15133    # Grep'ing the whole file is not good either: AIX grep has a line
15134    # limit of 2048, but all sed's we know have understand at least 4000.
15135    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15136      dirpart=`$as_dirname -- "$mf" ||
15137$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15138	 X"$mf" : 'X\(//\)[^/]' \| \
15139	 X"$mf" : 'X\(//\)$' \| \
15140	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15141$as_echo X"$mf" |
15142    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15143	    s//\1/
15144	    q
15145	  }
15146	  /^X\(\/\/\)[^/].*/{
15147	    s//\1/
15148	    q
15149	  }
15150	  /^X\(\/\/\)$/{
15151	    s//\1/
15152	    q
15153	  }
15154	  /^X\(\/\).*/{
15155	    s//\1/
15156	    q
15157	  }
15158	  s/.*/./; q'`
15159    else
15160      continue
15161    fi
15162    # Extract the definition of DEPDIR, am__include, and am__quote
15163    # from the Makefile without running `make'.
15164    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15165    test -z "$DEPDIR" && continue
15166    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15167    test -z "am__include" && continue
15168    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15169    # When using ansi2knr, U may be empty or an underscore; expand it
15170    U=`sed -n 's/^U = //p' < "$mf"`
15171    # Find all dependency output files, they are included files with
15172    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15173    # simplest approach to changing $(DEPDIR) to its actual value in the
15174    # expansion.
15175    for file in `sed -n "
15176      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15177	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15178      # Make sure the directory exists.
15179      test -f "$dirpart/$file" && continue
15180      fdir=`$as_dirname -- "$file" ||
15181$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15182	 X"$file" : 'X\(//\)[^/]' \| \
15183	 X"$file" : 'X\(//\)$' \| \
15184	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15185$as_echo X"$file" |
15186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15187	    s//\1/
15188	    q
15189	  }
15190	  /^X\(\/\/\)[^/].*/{
15191	    s//\1/
15192	    q
15193	  }
15194	  /^X\(\/\/\)$/{
15195	    s//\1/
15196	    q
15197	  }
15198	  /^X\(\/\).*/{
15199	    s//\1/
15200	    q
15201	  }
15202	  s/.*/./; q'`
15203      { as_dir=$dirpart/$fdir
15204  case $as_dir in #(
15205  -*) as_dir=./$as_dir;;
15206  esac
15207  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15208    as_dirs=
15209    while :; do
15210      case $as_dir in #(
15211      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15212      *) as_qdir=$as_dir;;
15213      esac
15214      as_dirs="'$as_qdir' $as_dirs"
15215      as_dir=`$as_dirname -- "$as_dir" ||
15216$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15217	 X"$as_dir" : 'X\(//\)[^/]' \| \
15218	 X"$as_dir" : 'X\(//\)$' \| \
15219	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15220$as_echo X"$as_dir" |
15221    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15222	    s//\1/
15223	    q
15224	  }
15225	  /^X\(\/\/\)[^/].*/{
15226	    s//\1/
15227	    q
15228	  }
15229	  /^X\(\/\/\)$/{
15230	    s//\1/
15231	    q
15232	  }
15233	  /^X\(\/\).*/{
15234	    s//\1/
15235	    q
15236	  }
15237	  s/.*/./; q'`
15238      test -d "$as_dir" && break
15239    done
15240    test -z "$as_dirs" || eval "mkdir $as_dirs"
15241  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15242$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15243   { (exit 1); exit 1; }; }; }
15244      # echo "creating $dirpart/$file"
15245      echo '# dummy' > "$dirpart/$file"
15246    done
15247  done
15248}
15249 ;;
15250    "libtool":C)
15251
15252    # See if we are running on zsh, and set the options which allow our
15253    # commands through without removal of \ escapes.
15254    if test -n "${ZSH_VERSION+set}" ; then
15255      setopt NO_GLOB_SUBST
15256    fi
15257
15258    cfgfile="${ofile}T"
15259    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15260    $RM "$cfgfile"
15261
15262    cat <<_LT_EOF >> "$cfgfile"
15263#! $SHELL
15264
15265# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15266# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15267# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15268# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15269#
15270#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15271#                 2006, 2007, 2008 Free Software Foundation, Inc.
15272#   Written by Gordon Matzigkeit, 1996
15273#
15274#   This file is part of GNU Libtool.
15275#
15276# GNU Libtool is free software; you can redistribute it and/or
15277# modify it under the terms of the GNU General Public License as
15278# published by the Free Software Foundation; either version 2 of
15279# the License, or (at your option) any later version.
15280#
15281# As a special exception to the GNU General Public License,
15282# if you distribute this file as part of a program or library that
15283# is built using GNU Libtool, you may include this file under the
15284# same distribution terms that you use for the rest of that program.
15285#
15286# GNU Libtool is distributed in the hope that it will be useful,
15287# but WITHOUT ANY WARRANTY; without even the implied warranty of
15288# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15289# GNU General Public License for more details.
15290#
15291# You should have received a copy of the GNU General Public License
15292# along with GNU Libtool; see the file COPYING.  If not, a copy
15293# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15294# obtained by writing to the Free Software Foundation, Inc.,
15295# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15296
15297
15298# The names of the tagged configurations supported by this script.
15299available_tags=""
15300
15301# ### BEGIN LIBTOOL CONFIG
15302
15303# Whether or not to build static libraries.
15304build_old_libs=$enable_static
15305
15306# Which release of libtool.m4 was used?
15307macro_version=$macro_version
15308macro_revision=$macro_revision
15309
15310# Whether or not to build shared libraries.
15311build_libtool_libs=$enable_shared
15312
15313# What type of objects to build.
15314pic_mode=$pic_mode
15315
15316# Whether or not to optimize for fast installation.
15317fast_install=$enable_fast_install
15318
15319# The host system.
15320host_alias=$host_alias
15321host=$host
15322host_os=$host_os
15323
15324# The build system.
15325build_alias=$build_alias
15326build=$build
15327build_os=$build_os
15328
15329# A sed program that does not truncate output.
15330SED=$lt_SED
15331
15332# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15333Xsed="\$SED -e 1s/^X//"
15334
15335# A grep program that handles long lines.
15336GREP=$lt_GREP
15337
15338# An ERE matcher.
15339EGREP=$lt_EGREP
15340
15341# A literal string matcher.
15342FGREP=$lt_FGREP
15343
15344# A BSD- or MS-compatible name lister.
15345NM=$lt_NM
15346
15347# Whether we need soft or hard links.
15348LN_S=$lt_LN_S
15349
15350# What is the maximum length of a command?
15351max_cmd_len=$max_cmd_len
15352
15353# Object file suffix (normally "o").
15354objext=$ac_objext
15355
15356# Executable file suffix (normally "").
15357exeext=$exeext
15358
15359# whether the shell understands "unset".
15360lt_unset=$lt_unset
15361
15362# turn spaces into newlines.
15363SP2NL=$lt_lt_SP2NL
15364
15365# turn newlines into spaces.
15366NL2SP=$lt_lt_NL2SP
15367
15368# How to create reloadable object files.
15369reload_flag=$lt_reload_flag
15370reload_cmds=$lt_reload_cmds
15371
15372# An object symbol dumper.
15373OBJDUMP=$lt_OBJDUMP
15374
15375# Method to check whether dependent libraries are shared objects.
15376deplibs_check_method=$lt_deplibs_check_method
15377
15378# Command to use when deplibs_check_method == "file_magic".
15379file_magic_cmd=$lt_file_magic_cmd
15380
15381# The archiver.
15382AR=$lt_AR
15383AR_FLAGS=$lt_AR_FLAGS
15384
15385# A symbol stripping program.
15386STRIP=$lt_STRIP
15387
15388# Commands used to install an old-style archive.
15389RANLIB=$lt_RANLIB
15390old_postinstall_cmds=$lt_old_postinstall_cmds
15391old_postuninstall_cmds=$lt_old_postuninstall_cmds
15392
15393# A C compiler.
15394LTCC=$lt_CC
15395
15396# LTCC compiler flags.
15397LTCFLAGS=$lt_CFLAGS
15398
15399# Take the output of nm and produce a listing of raw symbols and C names.
15400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15401
15402# Transform the output of nm in a proper C declaration.
15403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15404
15405# Transform the output of nm in a C name address pair.
15406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15407
15408# Transform the output of nm in a C name address pair when lib prefix is needed.
15409global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15410
15411# The name of the directory that contains temporary libtool files.
15412objdir=$objdir
15413
15414# Shell to use when invoking shell scripts.
15415SHELL=$lt_SHELL
15416
15417# An echo program that does not interpret backslashes.
15418ECHO=$lt_ECHO
15419
15420# Used to examine libraries when file_magic_cmd begins with "file".
15421MAGIC_CMD=$MAGIC_CMD
15422
15423# Must we lock files when doing compilation?
15424need_locks=$lt_need_locks
15425
15426# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15427DSYMUTIL=$lt_DSYMUTIL
15428
15429# Tool to change global to local symbols on Mac OS X.
15430NMEDIT=$lt_NMEDIT
15431
15432# Tool to manipulate fat objects and archives on Mac OS X.
15433LIPO=$lt_LIPO
15434
15435# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15436OTOOL=$lt_OTOOL
15437
15438# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15439OTOOL64=$lt_OTOOL64
15440
15441# Old archive suffix (normally "a").
15442libext=$libext
15443
15444# Shared library suffix (normally ".so").
15445shrext_cmds=$lt_shrext_cmds
15446
15447# The commands to extract the exported symbol list from a shared archive.
15448extract_expsyms_cmds=$lt_extract_expsyms_cmds
15449
15450# Variables whose values should be saved in libtool wrapper scripts and
15451# restored at link time.
15452variables_saved_for_relink=$lt_variables_saved_for_relink
15453
15454# Do we need the "lib" prefix for modules?
15455need_lib_prefix=$need_lib_prefix
15456
15457# Do we need a version for libraries?
15458need_version=$need_version
15459
15460# Library versioning type.
15461version_type=$version_type
15462
15463# Shared library runtime path variable.
15464runpath_var=$runpath_var
15465
15466# Shared library path variable.
15467shlibpath_var=$shlibpath_var
15468
15469# Is shlibpath searched before the hard-coded library search path?
15470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15471
15472# Format of library name prefix.
15473libname_spec=$lt_libname_spec
15474
15475# List of archive names.  First name is the real one, the rest are links.
15476# The last name is the one that the linker finds with -lNAME
15477library_names_spec=$lt_library_names_spec
15478
15479# The coded name of the library, if different from the real name.
15480soname_spec=$lt_soname_spec
15481
15482# Command to use after installation of a shared archive.
15483postinstall_cmds=$lt_postinstall_cmds
15484
15485# Command to use after uninstallation of a shared archive.
15486postuninstall_cmds=$lt_postuninstall_cmds
15487
15488# Commands used to finish a libtool library installation in a directory.
15489finish_cmds=$lt_finish_cmds
15490
15491# As "finish_cmds", except a single script fragment to be evaled but
15492# not shown.
15493finish_eval=$lt_finish_eval
15494
15495# Whether we should hardcode library paths into libraries.
15496hardcode_into_libs=$hardcode_into_libs
15497
15498# Compile-time system search path for libraries.
15499sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15500
15501# Run-time system search path for libraries.
15502sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15503
15504# Whether dlopen is supported.
15505dlopen_support=$enable_dlopen
15506
15507# Whether dlopen of programs is supported.
15508dlopen_self=$enable_dlopen_self
15509
15510# Whether dlopen of statically linked programs is supported.
15511dlopen_self_static=$enable_dlopen_self_static
15512
15513# Commands to strip libraries.
15514old_striplib=$lt_old_striplib
15515striplib=$lt_striplib
15516
15517
15518# The linker used to build libraries.
15519LD=$lt_LD
15520
15521# Commands used to build an old-style archive.
15522old_archive_cmds=$lt_old_archive_cmds
15523
15524# A language specific compiler.
15525CC=$lt_compiler
15526
15527# Is the compiler the GNU compiler?
15528with_gcc=$GCC
15529
15530# Compiler flag to turn off builtin functions.
15531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15532
15533# How to pass a linker flag through the compiler.
15534wl=$lt_lt_prog_compiler_wl
15535
15536# Additional compiler flags for building library objects.
15537pic_flag=$lt_lt_prog_compiler_pic
15538
15539# Compiler flag to prevent dynamic linking.
15540link_static_flag=$lt_lt_prog_compiler_static
15541
15542# Does compiler simultaneously support -c and -o options?
15543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15544
15545# Whether or not to add -lc for building shared libraries.
15546build_libtool_need_lc=$archive_cmds_need_lc
15547
15548# Whether or not to disallow shared libs when runtime libs are static.
15549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15550
15551# Compiler flag to allow reflexive dlopens.
15552export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15553
15554# Compiler flag to generate shared objects directly from archives.
15555whole_archive_flag_spec=$lt_whole_archive_flag_spec
15556
15557# Whether the compiler copes with passing no objects directly.
15558compiler_needs_object=$lt_compiler_needs_object
15559
15560# Create an old-style archive from a shared archive.
15561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15562
15563# Create a temporary old-style archive to link instead of a shared archive.
15564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15565
15566# Commands used to build a shared archive.
15567archive_cmds=$lt_archive_cmds
15568archive_expsym_cmds=$lt_archive_expsym_cmds
15569
15570# Commands used to build a loadable module if different from building
15571# a shared archive.
15572module_cmds=$lt_module_cmds
15573module_expsym_cmds=$lt_module_expsym_cmds
15574
15575# Whether we are building with GNU ld or not.
15576with_gnu_ld=$lt_with_gnu_ld
15577
15578# Flag that allows shared libraries with undefined symbols to be built.
15579allow_undefined_flag=$lt_allow_undefined_flag
15580
15581# Flag that enforces no undefined symbols.
15582no_undefined_flag=$lt_no_undefined_flag
15583
15584# Flag to hardcode \$libdir into a binary during linking.
15585# This must work even if \$libdir does not exist
15586hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15587
15588# If ld is used when linking, flag to hardcode \$libdir into a binary
15589# during linking.  This must work even if \$libdir does not exist.
15590hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15591
15592# Whether we need a single "-rpath" flag with a separated argument.
15593hardcode_libdir_separator=$lt_hardcode_libdir_separator
15594
15595# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15596# DIR into the resulting binary.
15597hardcode_direct=$hardcode_direct
15598
15599# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15600# DIR into the resulting binary and the resulting library dependency is
15601# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15602# library is relocated.
15603hardcode_direct_absolute=$hardcode_direct_absolute
15604
15605# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15606# into the resulting binary.
15607hardcode_minus_L=$hardcode_minus_L
15608
15609# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15610# into the resulting binary.
15611hardcode_shlibpath_var=$hardcode_shlibpath_var
15612
15613# Set to "yes" if building a shared library automatically hardcodes DIR
15614# into the library and all subsequent libraries and executables linked
15615# against it.
15616hardcode_automatic=$hardcode_automatic
15617
15618# Set to yes if linker adds runtime paths of dependent libraries
15619# to runtime path list.
15620inherit_rpath=$inherit_rpath
15621
15622# Whether libtool must link a program against all its dependency libraries.
15623link_all_deplibs=$link_all_deplibs
15624
15625# Fix the shell variable \$srcfile for the compiler.
15626fix_srcfile_path=$lt_fix_srcfile_path
15627
15628# Set to "yes" if exported symbols are required.
15629always_export_symbols=$always_export_symbols
15630
15631# The commands to list exported symbols.
15632export_symbols_cmds=$lt_export_symbols_cmds
15633
15634# Symbols that should not be listed in the preloaded symbols.
15635exclude_expsyms=$lt_exclude_expsyms
15636
15637# Symbols that must always be exported.
15638include_expsyms=$lt_include_expsyms
15639
15640# Commands necessary for linking programs (against libraries) with templates.
15641prelink_cmds=$lt_prelink_cmds
15642
15643# Specify filename containing input files.
15644file_list_spec=$lt_file_list_spec
15645
15646# How to hardcode a shared library path into an executable.
15647hardcode_action=$hardcode_action
15648
15649# ### END LIBTOOL CONFIG
15650
15651_LT_EOF
15652
15653  case $host_os in
15654  aix3*)
15655    cat <<\_LT_EOF >> "$cfgfile"
15656# AIX sometimes has problems with the GCC collect2 program.  For some
15657# reason, if we set the COLLECT_NAMES environment variable, the problems
15658# vanish in a puff of smoke.
15659if test "X${COLLECT_NAMES+set}" != Xset; then
15660  COLLECT_NAMES=
15661  export COLLECT_NAMES
15662fi
15663_LT_EOF
15664    ;;
15665  esac
15666
15667
15668ltmain="$ac_aux_dir/ltmain.sh"
15669
15670
15671  # We use sed instead of cat because bash on DJGPP gets confused if
15672  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15673  # text mode, it properly converts lines to CR/LF.  This bash problem
15674  # is reportedly fixed, but why not run on old versions too?
15675  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15676    || (rm -f "$cfgfile"; exit 1)
15677
15678  case $xsi_shell in
15679  yes)
15680    cat << \_LT_EOF >> "$cfgfile"
15681
15682# func_dirname file append nondir_replacement
15683# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15684# otherwise set result to NONDIR_REPLACEMENT.
15685func_dirname ()
15686{
15687  case ${1} in
15688    */*) func_dirname_result="${1%/*}${2}" ;;
15689    *  ) func_dirname_result="${3}" ;;
15690  esac
15691}
15692
15693# func_basename file
15694func_basename ()
15695{
15696  func_basename_result="${1##*/}"
15697}
15698
15699# func_dirname_and_basename file append nondir_replacement
15700# perform func_basename and func_dirname in a single function
15701# call:
15702#   dirname:  Compute the dirname of FILE.  If nonempty,
15703#             add APPEND to the result, otherwise set result
15704#             to NONDIR_REPLACEMENT.
15705#             value returned in "$func_dirname_result"
15706#   basename: Compute filename of FILE.
15707#             value retuned in "$func_basename_result"
15708# Implementation must be kept synchronized with func_dirname
15709# and func_basename. For efficiency, we do not delegate to
15710# those functions but instead duplicate the functionality here.
15711func_dirname_and_basename ()
15712{
15713  case ${1} in
15714    */*) func_dirname_result="${1%/*}${2}" ;;
15715    *  ) func_dirname_result="${3}" ;;
15716  esac
15717  func_basename_result="${1##*/}"
15718}
15719
15720# func_stripname prefix suffix name
15721# strip PREFIX and SUFFIX off of NAME.
15722# PREFIX and SUFFIX must not contain globbing or regex special
15723# characters, hashes, percent signs, but SUFFIX may contain a leading
15724# dot (in which case that matches only a dot).
15725func_stripname ()
15726{
15727  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15728  # positional parameters, so assign one to ordinary parameter first.
15729  func_stripname_result=${3}
15730  func_stripname_result=${func_stripname_result#"${1}"}
15731  func_stripname_result=${func_stripname_result%"${2}"}
15732}
15733
15734# func_opt_split
15735func_opt_split ()
15736{
15737  func_opt_split_opt=${1%%=*}
15738  func_opt_split_arg=${1#*=}
15739}
15740
15741# func_lo2o object
15742func_lo2o ()
15743{
15744  case ${1} in
15745    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15746    *)    func_lo2o_result=${1} ;;
15747  esac
15748}
15749
15750# func_xform libobj-or-source
15751func_xform ()
15752{
15753  func_xform_result=${1%.*}.lo
15754}
15755
15756# func_arith arithmetic-term...
15757func_arith ()
15758{
15759  func_arith_result=$(( $* ))
15760}
15761
15762# func_len string
15763# STRING may not start with a hyphen.
15764func_len ()
15765{
15766  func_len_result=${#1}
15767}
15768
15769_LT_EOF
15770    ;;
15771  *) # Bourne compatible functions.
15772    cat << \_LT_EOF >> "$cfgfile"
15773
15774# func_dirname file append nondir_replacement
15775# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15776# otherwise set result to NONDIR_REPLACEMENT.
15777func_dirname ()
15778{
15779  # Extract subdirectory from the argument.
15780  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15781  if test "X$func_dirname_result" = "X${1}"; then
15782    func_dirname_result="${3}"
15783  else
15784    func_dirname_result="$func_dirname_result${2}"
15785  fi
15786}
15787
15788# func_basename file
15789func_basename ()
15790{
15791  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15792}
15793
15794
15795# func_stripname prefix suffix name
15796# strip PREFIX and SUFFIX off of NAME.
15797# PREFIX and SUFFIX must not contain globbing or regex special
15798# characters, hashes, percent signs, but SUFFIX may contain a leading
15799# dot (in which case that matches only a dot).
15800# func_strip_suffix prefix name
15801func_stripname ()
15802{
15803  case ${2} in
15804    .*) func_stripname_result=`$ECHO "X${3}" \
15805           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15806    *)  func_stripname_result=`$ECHO "X${3}" \
15807           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15808  esac
15809}
15810
15811# sed scripts:
15812my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15813my_sed_long_arg='1s/^-[^=]*=//'
15814
15815# func_opt_split
15816func_opt_split ()
15817{
15818  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15819  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15820}
15821
15822# func_lo2o object
15823func_lo2o ()
15824{
15825  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15826}
15827
15828# func_xform libobj-or-source
15829func_xform ()
15830{
15831  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15832}
15833
15834# func_arith arithmetic-term...
15835func_arith ()
15836{
15837  func_arith_result=`expr "$@"`
15838}
15839
15840# func_len string
15841# STRING may not start with a hyphen.
15842func_len ()
15843{
15844  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15845}
15846
15847_LT_EOF
15848esac
15849
15850case $lt_shell_append in
15851  yes)
15852    cat << \_LT_EOF >> "$cfgfile"
15853
15854# func_append var value
15855# Append VALUE to the end of shell variable VAR.
15856func_append ()
15857{
15858  eval "$1+=\$2"
15859}
15860_LT_EOF
15861    ;;
15862  *)
15863    cat << \_LT_EOF >> "$cfgfile"
15864
15865# func_append var value
15866# Append VALUE to the end of shell variable VAR.
15867func_append ()
15868{
15869  eval "$1=\$$1\$2"
15870}
15871
15872_LT_EOF
15873    ;;
15874  esac
15875
15876
15877  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15878    || (rm -f "$cfgfile"; exit 1)
15879
15880  mv -f "$cfgfile" "$ofile" ||
15881    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15882  chmod +x "$ofile"
15883
15884 ;;
15885
15886  esac
15887done # for ac_tag
15888
15889
15890{ (exit 0); exit 0; }
15891_ACEOF
15892chmod +x $CONFIG_STATUS
15893ac_clean_files=$ac_clean_files_save
15894
15895test $ac_write_fail = 0 ||
15896  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15897$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15898   { (exit 1); exit 1; }; }
15899
15900
15901# configure is writing to config.log, and then calls config.status.
15902# config.status does its own redirection, appending to config.log.
15903# Unfortunately, on DOS this fails, as config.log is still kept open
15904# by configure, so config.status won't be able to write to it; its
15905# output is simply discarded.  So we exec the FD to /dev/null,
15906# effectively closing config.log, so it can be properly (re)opened and
15907# appended to by config.status.  When coming back to configure, we
15908# need to make the FD available again.
15909if test "$no_create" != yes; then
15910  ac_cs_success=:
15911  ac_config_status_args=
15912  test "$silent" = yes &&
15913    ac_config_status_args="$ac_config_status_args --quiet"
15914  exec 5>/dev/null
15915  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15916  exec 5>>config.log
15917  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15918  # would make configure fail if this is the last instruction.
15919  $ac_cs_success || { (exit 1); exit 1; }
15920fi
15921if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15922  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15923$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15924fi
15925
15926