configure revision 5a3d36df
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXfont 1.4.2.
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
575as_awk_strverscmp='
576  # Use only awk features that work with 7th edition Unix awk (1978).
577  # My, what an old awk you have, Mr. Solaris!
578  END {
579    while (length(v1) && length(v2)) {
580      # Set d1 to be the next thing to compare from v1, and likewise for d2.
581      # Normally this is a single character, but if v1 and v2 contain digits,
582      # compare them as integers and fractions as strverscmp does.
583      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
584	# Split v1 and v2 into their leading digit string components d1 and d2,
585	# and advance v1 and v2 past the leading digit strings.
586	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
587	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
588	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
589	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
590	if (d1 ~ /^0/) {
591	  if (d2 ~ /^0/) {
592	    # Compare two fractions.
593	    while (d1 ~ /^0/ && d2 ~ /^0/) {
594	      d1 = substr(d1, 2); len1--
595	      d2 = substr(d2, 2); len2--
596	    }
597	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
598	      # The two components differ in length, and the common prefix
599	      # contains only leading zeros.  Consider the longer to be less.
600	      d1 = -len1
601	      d2 = -len2
602	    } else {
603	      # Otherwise, compare as strings.
604	      d1 = "x" d1
605	      d2 = "x" d2
606	    }
607	  } else {
608	    # A fraction is less than an integer.
609	    exit 1
610	  }
611	} else {
612	  if (d2 ~ /^0/) {
613	    # An integer is greater than a fraction.
614	    exit 2
615	  } else {
616	    # Compare two integers.
617	    d1 += 0
618	    d2 += 0
619	  }
620	}
621      } else {
622	# The normal case, without worrying about digits.
623	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
624	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
625      }
626      if (d1 < d2) exit 1
627      if (d1 > d2) exit 2
628    }
629    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
630    # which mishandles some comparisons of empty strings to integers.
631    if (length(v2)) exit 1
632    if (length(v1)) exit 2
633  }
634'
635
636
637# Check that we are running under the correct shell.
638SHELL=${CONFIG_SHELL-/bin/sh}
639
640case X$lt_ECHO in
641X*--fallback-echo)
642  # Remove one level of quotation (which was required for Make).
643  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
644  ;;
645esac
646
647ECHO=${lt_ECHO-echo}
648if test "X$1" = X--no-reexec; then
649  # Discard the --no-reexec flag, and continue.
650  shift
651elif test "X$1" = X--fallback-echo; then
652  # Avoid inline document here, it may be left over
653  :
654elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
655  # Yippee, $ECHO works!
656  :
657else
658  # Restart under the correct shell.
659  exec $SHELL "$0" --no-reexec ${1+"$@"}
660fi
661
662if test "X$1" = X--fallback-echo; then
663  # used as fallback echo
664  shift
665  cat <<_LT_EOF
666$*
667_LT_EOF
668  exit 0
669fi
670
671# The HP-UX ksh and POSIX shell print the target directory to stdout
672# if CDPATH is set.
673(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
674
675if test -z "$lt_ECHO"; then
676  if test "X${echo_test_string+set}" != Xset; then
677    # find a string as large as possible, as long as the shell can cope with it
678    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
679      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
680      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
681	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
682      then
683        break
684      fi
685    done
686  fi
687
688  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
689     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
690     test "X$echo_testing_string" = "X$echo_test_string"; then
691    :
692  else
693    # The Solaris, AIX, and Digital Unix default echo programs unquote
694    # backslashes.  This makes it impossible to quote backslashes using
695    #   echo "$something" | sed 's/\\/\\\\/g'
696    #
697    # So, first we look for a working echo in the user's PATH.
698
699    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
700    for dir in $PATH /usr/ucb; do
701      IFS="$lt_save_ifs"
702      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
703         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
704         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
705         test "X$echo_testing_string" = "X$echo_test_string"; then
706        ECHO="$dir/echo"
707        break
708      fi
709    done
710    IFS="$lt_save_ifs"
711
712    if test "X$ECHO" = Xecho; then
713      # We didn't find a better echo, so look for alternatives.
714      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
715         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
716         test "X$echo_testing_string" = "X$echo_test_string"; then
717        # This shell has a builtin print -r that does the trick.
718        ECHO='print -r'
719      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
720	   test "X$CONFIG_SHELL" != X/bin/ksh; then
721        # If we have ksh, try running configure again with it.
722        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
723        export ORIGINAL_CONFIG_SHELL
724        CONFIG_SHELL=/bin/ksh
725        export CONFIG_SHELL
726        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
727      else
728        # Try using printf.
729        ECHO='printf %s\n'
730        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
731	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
732	   test "X$echo_testing_string" = "X$echo_test_string"; then
733	  # Cool, printf works
734	  :
735        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
736	     test "X$echo_testing_string" = 'X\t' &&
737	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
738	     test "X$echo_testing_string" = "X$echo_test_string"; then
739	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
740	  export CONFIG_SHELL
741	  SHELL="$CONFIG_SHELL"
742	  export SHELL
743	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
744        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
745	     test "X$echo_testing_string" = 'X\t' &&
746	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
747	     test "X$echo_testing_string" = "X$echo_test_string"; then
748	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
749        else
750	  # maybe with a smaller string...
751	  prev=:
752
753	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
754	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
755	    then
756	      break
757	    fi
758	    prev="$cmd"
759	  done
760
761	  if test "$prev" != 'sed 50q "$0"'; then
762	    echo_test_string=`eval $prev`
763	    export echo_test_string
764	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
765	  else
766	    # Oops.  We lost completely, so just stick with echo.
767	    ECHO=echo
768	  fi
769        fi
770      fi
771    fi
772  fi
773fi
774
775# Copy echo and quote the copy suitably for passing to libtool from
776# the Makefile, instead of quoting the original, which is used later.
777lt_ECHO=$ECHO
778if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
779   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
780fi
781
782
783
784
785exec 7<&0 </dev/null 6>&1
786
787# Name of the host.
788# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
789# so uname gets run too.
790ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
791
792#
793# Initializations.
794#
795ac_default_prefix=/usr/local
796ac_clean_files=
797ac_config_libobj_dir=.
798LIBOBJS=
799cross_compiling=no
800subdirs=
801MFLAGS=
802MAKEFLAGS=
803SHELL=${CONFIG_SHELL-/bin/sh}
804
805# Identity of this package.
806PACKAGE_NAME='libXfont'
807PACKAGE_TARNAME='libXfont'
808PACKAGE_VERSION='1.4.2'
809PACKAGE_STRING='libXfont 1.4.2'
810PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
811
812# Factoring default headers for most tests.
813ac_includes_default="\
814#include <stdio.h>
815#ifdef HAVE_SYS_TYPES_H
816# include <sys/types.h>
817#endif
818#ifdef HAVE_SYS_STAT_H
819# include <sys/stat.h>
820#endif
821#ifdef STDC_HEADERS
822# include <stdlib.h>
823# include <stddef.h>
824#else
825# ifdef HAVE_STDLIB_H
826#  include <stdlib.h>
827# endif
828#endif
829#ifdef HAVE_STRING_H
830# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
831#  include <memory.h>
832# endif
833# include <string.h>
834#endif
835#ifdef HAVE_STRINGS_H
836# include <strings.h>
837#endif
838#ifdef HAVE_INTTYPES_H
839# include <inttypes.h>
840#endif
841#ifdef HAVE_STDINT_H
842# include <stdint.h>
843#endif
844#ifdef HAVE_UNISTD_H
845# include <unistd.h>
846#endif"
847
848ac_subst_vars='LTLIBOBJS
849LIBOBJS
850OS_CFLAGS
851XFONT_LIBS
852XFONT_CFLAGS
853MATH_LIBS
854XFONT_FC_FALSE
855XFONT_FC_TRUE
856XFONT_FONTFILE_FALSE
857XFONT_FONTFILE_TRUE
858XFONT_BITMAP_FALSE
859XFONT_BITMAP_TRUE
860XFONT_SNFFORMAT_FALSE
861XFONT_SNFFORMAT_TRUE
862XFONT_BDFFORMAT_FALSE
863XFONT_BDFFORMAT_TRUE
864XFONT_PCFFORMAT_FALSE
865XFONT_PCFFORMAT_TRUE
866XFONT_BUILTINS_FALSE
867XFONT_BUILTINS_TRUE
868Z_LIBS
869X_BZIP2_FONT_COMPRESSION_FALSE
870X_BZIP2_FONT_COMPRESSION_TRUE
871X_GZIP_FONT_COMPRESSION
872FREETYPE_REQUIRES
873ft_config
874FREETYPE_LIBS
875FREETYPE_CFLAGS
876XFONT_FREETYPE_FALSE
877XFONT_FREETYPE_TRUE
878OTOOL64
879OTOOL
880LIPO
881NMEDIT
882DSYMUTIL
883lt_ECHO
884RANLIB
885AR
886OBJDUMP
887LN_S
888NM
889ac_ct_DUMPBIN
890DUMPBIN
891LD
892FGREP
893LIBTOOL
894HAVE_FOP_FALSE
895HAVE_FOP_TRUE
896FOP
897HAVE_XMLTO_FALSE
898HAVE_XMLTO_TRUE
899XMLTO
900ENABLE_DEVEL_DOCS_FALSE
901ENABLE_DEVEL_DOCS_TRUE
902AM_DEFAULT_VERBOSITY
903MAN_SUBSTS
904XORG_MAN_PAGE
905ADMIN_MAN_DIR
906DRIVER_MAN_DIR
907MISC_MAN_DIR
908FILE_MAN_DIR
909LIB_MAN_DIR
910APP_MAN_DIR
911ADMIN_MAN_SUFFIX
912DRIVER_MAN_SUFFIX
913MISC_MAN_SUFFIX
914FILE_MAN_SUFFIX
915LIB_MAN_SUFFIX
916APP_MAN_SUFFIX
917SED
918host_os
919host_vendor
920host_cpu
921host
922build_os
923build_vendor
924build_cpu
925build
926INSTALL_CMD
927PKG_CONFIG
928CHANGELOG_CMD
929CWARNFLAGS
930EGREP
931GREP
932CPP
933am__fastdepCC_FALSE
934am__fastdepCC_TRUE
935CCDEPMODE
936AMDEPBACKSLASH
937AMDEP_FALSE
938AMDEP_TRUE
939am__quote
940am__include
941DEPDIR
942OBJEXT
943EXEEXT
944ac_ct_CC
945CPPFLAGS
946LDFLAGS
947CFLAGS
948CC
949MAINT
950MAINTAINER_MODE_FALSE
951MAINTAINER_MODE_TRUE
952am__untar
953am__tar
954AMTAR
955am__leading_dot
956SET_MAKE
957AWK
958mkdir_p
959MKDIR_P
960INSTALL_STRIP_PROGRAM
961STRIP
962install_sh
963MAKEINFO
964AUTOHEADER
965AUTOMAKE
966AUTOCONF
967ACLOCAL
968VERSION
969PACKAGE
970CYGPATH_W
971am__isrc
972INSTALL_DATA
973INSTALL_SCRIPT
974INSTALL_PROGRAM
975target_alias
976host_alias
977build_alias
978LIBS
979ECHO_T
980ECHO_N
981ECHO_C
982DEFS
983mandir
984localedir
985libdir
986psdir
987pdfdir
988dvidir
989htmldir
990infodir
991docdir
992oldincludedir
993includedir
994localstatedir
995sharedstatedir
996sysconfdir
997datadir
998datarootdir
999libexecdir
1000sbindir
1001bindir
1002program_transform_name
1003prefix
1004exec_prefix
1005PACKAGE_BUGREPORT
1006PACKAGE_STRING
1007PACKAGE_VERSION
1008PACKAGE_TARNAME
1009PACKAGE_NAME
1010PATH_SEPARATOR
1011SHELL'
1012ac_subst_files=''
1013ac_user_opts='
1014enable_option_checking
1015enable_maintainer_mode
1016enable_dependency_tracking
1017enable_strict_compilation
1018enable_devel_docs
1019with_xmlto
1020with_fop
1021enable_shared
1022enable_static
1023with_pic
1024enable_fast_install
1025with_gnu_ld
1026enable_libtool_lock
1027enable_freetype
1028with_freetype_config
1029with_bzip2
1030enable_builtins
1031enable_pcfformat
1032enable_bdfformat
1033enable_snfformat
1034enable_fc
1035enable_unix_transport
1036enable_tcp_transport
1037enable_ipv6
1038enable_local_transport
1039'
1040      ac_precious_vars='build_alias
1041host_alias
1042target_alias
1043CC
1044CFLAGS
1045LDFLAGS
1046LIBS
1047CPPFLAGS
1048CPP
1049PKG_CONFIG
1050XMLTO
1051FOP
1052FREETYPE_CFLAGS
1053FREETYPE_LIBS
1054XFONT_CFLAGS
1055XFONT_LIBS'
1056
1057
1058# Initialize some variables set by options.
1059ac_init_help=
1060ac_init_version=false
1061ac_unrecognized_opts=
1062ac_unrecognized_sep=
1063# The variables have the same names as the options, with
1064# dashes changed to underlines.
1065cache_file=/dev/null
1066exec_prefix=NONE
1067no_create=
1068no_recursion=
1069prefix=NONE
1070program_prefix=NONE
1071program_suffix=NONE
1072program_transform_name=s,x,x,
1073silent=
1074site=
1075srcdir=
1076verbose=
1077x_includes=NONE
1078x_libraries=NONE
1079
1080# Installation directory options.
1081# These are left unexpanded so users can "make install exec_prefix=/foo"
1082# and all the variables that are supposed to be based on exec_prefix
1083# by default will actually change.
1084# Use braces instead of parens because sh, perl, etc. also accept them.
1085# (The list follows the same order as the GNU Coding Standards.)
1086bindir='${exec_prefix}/bin'
1087sbindir='${exec_prefix}/sbin'
1088libexecdir='${exec_prefix}/libexec'
1089datarootdir='${prefix}/share'
1090datadir='${datarootdir}'
1091sysconfdir='${prefix}/etc'
1092sharedstatedir='${prefix}/com'
1093localstatedir='${prefix}/var'
1094includedir='${prefix}/include'
1095oldincludedir='/usr/include'
1096docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1097infodir='${datarootdir}/info'
1098htmldir='${docdir}'
1099dvidir='${docdir}'
1100pdfdir='${docdir}'
1101psdir='${docdir}'
1102libdir='${exec_prefix}/lib'
1103localedir='${datarootdir}/locale'
1104mandir='${datarootdir}/man'
1105
1106ac_prev=
1107ac_dashdash=
1108for ac_option
1109do
1110  # If the previous option needs an argument, assign it.
1111  if test -n "$ac_prev"; then
1112    eval $ac_prev=\$ac_option
1113    ac_prev=
1114    continue
1115  fi
1116
1117  case $ac_option in
1118  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1119  *)	ac_optarg=yes ;;
1120  esac
1121
1122  # Accept the important Cygnus configure options, so we can diagnose typos.
1123
1124  case $ac_dashdash$ac_option in
1125  --)
1126    ac_dashdash=yes ;;
1127
1128  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1129    ac_prev=bindir ;;
1130  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1131    bindir=$ac_optarg ;;
1132
1133  -build | --build | --buil | --bui | --bu)
1134    ac_prev=build_alias ;;
1135  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1136    build_alias=$ac_optarg ;;
1137
1138  -cache-file | --cache-file | --cache-fil | --cache-fi \
1139  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1140    ac_prev=cache_file ;;
1141  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1142  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1143    cache_file=$ac_optarg ;;
1144
1145  --config-cache | -C)
1146    cache_file=config.cache ;;
1147
1148  -datadir | --datadir | --datadi | --datad)
1149    ac_prev=datadir ;;
1150  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1151    datadir=$ac_optarg ;;
1152
1153  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1154  | --dataroo | --dataro | --datar)
1155    ac_prev=datarootdir ;;
1156  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1157  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1158    datarootdir=$ac_optarg ;;
1159
1160  -disable-* | --disable-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1165   { (exit 1); exit 1; }; }
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"enable_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval enable_$ac_useropt=no ;;
1176
1177  -docdir | --docdir | --docdi | --doc | --do)
1178    ac_prev=docdir ;;
1179  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180    docdir=$ac_optarg ;;
1181
1182  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183    ac_prev=dvidir ;;
1184  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185    dvidir=$ac_optarg ;;
1186
1187  -enable-* | --enable-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1192   { (exit 1); exit 1; }; }
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"enable_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval enable_$ac_useropt=\$ac_optarg ;;
1203
1204  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1205  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1206  | --exec | --exe | --ex)
1207    ac_prev=exec_prefix ;;
1208  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1209  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1210  | --exec=* | --exe=* | --ex=*)
1211    exec_prefix=$ac_optarg ;;
1212
1213  -gas | --gas | --ga | --g)
1214    # Obsolete; use --with-gas.
1215    with_gas=yes ;;
1216
1217  -help | --help | --hel | --he | -h)
1218    ac_init_help=long ;;
1219  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1220    ac_init_help=recursive ;;
1221  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1222    ac_init_help=short ;;
1223
1224  -host | --host | --hos | --ho)
1225    ac_prev=host_alias ;;
1226  -host=* | --host=* | --hos=* | --ho=*)
1227    host_alias=$ac_optarg ;;
1228
1229  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1230    ac_prev=htmldir ;;
1231  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1232  | --ht=*)
1233    htmldir=$ac_optarg ;;
1234
1235  -includedir | --includedir | --includedi | --included | --include \
1236  | --includ | --inclu | --incl | --inc)
1237    ac_prev=includedir ;;
1238  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1239  | --includ=* | --inclu=* | --incl=* | --inc=*)
1240    includedir=$ac_optarg ;;
1241
1242  -infodir | --infodir | --infodi | --infod | --info | --inf)
1243    ac_prev=infodir ;;
1244  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1245    infodir=$ac_optarg ;;
1246
1247  -libdir | --libdir | --libdi | --libd)
1248    ac_prev=libdir ;;
1249  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1250    libdir=$ac_optarg ;;
1251
1252  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1253  | --libexe | --libex | --libe)
1254    ac_prev=libexecdir ;;
1255  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1256  | --libexe=* | --libex=* | --libe=*)
1257    libexecdir=$ac_optarg ;;
1258
1259  -localedir | --localedir | --localedi | --localed | --locale)
1260    ac_prev=localedir ;;
1261  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1262    localedir=$ac_optarg ;;
1263
1264  -localstatedir | --localstatedir | --localstatedi | --localstated \
1265  | --localstate | --localstat | --localsta | --localst | --locals)
1266    ac_prev=localstatedir ;;
1267  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1268  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1269    localstatedir=$ac_optarg ;;
1270
1271  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1272    ac_prev=mandir ;;
1273  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1274    mandir=$ac_optarg ;;
1275
1276  -nfp | --nfp | --nf)
1277    # Obsolete; use --without-fp.
1278    with_fp=no ;;
1279
1280  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1281  | --no-cr | --no-c | -n)
1282    no_create=yes ;;
1283
1284  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1285  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1286    no_recursion=yes ;;
1287
1288  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1289  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1290  | --oldin | --oldi | --old | --ol | --o)
1291    ac_prev=oldincludedir ;;
1292  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1293  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1294  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1295    oldincludedir=$ac_optarg ;;
1296
1297  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1298    ac_prev=prefix ;;
1299  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1300    prefix=$ac_optarg ;;
1301
1302  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1303  | --program-pre | --program-pr | --program-p)
1304    ac_prev=program_prefix ;;
1305  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1306  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1307    program_prefix=$ac_optarg ;;
1308
1309  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1310  | --program-suf | --program-su | --program-s)
1311    ac_prev=program_suffix ;;
1312  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1313  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1314    program_suffix=$ac_optarg ;;
1315
1316  -program-transform-name | --program-transform-name \
1317  | --program-transform-nam | --program-transform-na \
1318  | --program-transform-n | --program-transform- \
1319  | --program-transform | --program-transfor \
1320  | --program-transfo | --program-transf \
1321  | --program-trans | --program-tran \
1322  | --progr-tra | --program-tr | --program-t)
1323    ac_prev=program_transform_name ;;
1324  -program-transform-name=* | --program-transform-name=* \
1325  | --program-transform-nam=* | --program-transform-na=* \
1326  | --program-transform-n=* | --program-transform-=* \
1327  | --program-transform=* | --program-transfor=* \
1328  | --program-transfo=* | --program-transf=* \
1329  | --program-trans=* | --program-tran=* \
1330  | --progr-tra=* | --program-tr=* | --program-t=*)
1331    program_transform_name=$ac_optarg ;;
1332
1333  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1334    ac_prev=pdfdir ;;
1335  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1336    pdfdir=$ac_optarg ;;
1337
1338  -psdir | --psdir | --psdi | --psd | --ps)
1339    ac_prev=psdir ;;
1340  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1341    psdir=$ac_optarg ;;
1342
1343  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344  | -silent | --silent | --silen | --sile | --sil)
1345    silent=yes ;;
1346
1347  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1348    ac_prev=sbindir ;;
1349  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1350  | --sbi=* | --sb=*)
1351    sbindir=$ac_optarg ;;
1352
1353  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1354  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1355  | --sharedst | --shareds | --shared | --share | --shar \
1356  | --sha | --sh)
1357    ac_prev=sharedstatedir ;;
1358  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1359  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1360  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1361  | --sha=* | --sh=*)
1362    sharedstatedir=$ac_optarg ;;
1363
1364  -site | --site | --sit)
1365    ac_prev=site ;;
1366  -site=* | --site=* | --sit=*)
1367    site=$ac_optarg ;;
1368
1369  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1370    ac_prev=srcdir ;;
1371  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1372    srcdir=$ac_optarg ;;
1373
1374  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1375  | --syscon | --sysco | --sysc | --sys | --sy)
1376    ac_prev=sysconfdir ;;
1377  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1378  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1379    sysconfdir=$ac_optarg ;;
1380
1381  -target | --target | --targe | --targ | --tar | --ta | --t)
1382    ac_prev=target_alias ;;
1383  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1384    target_alias=$ac_optarg ;;
1385
1386  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1387    verbose=yes ;;
1388
1389  -version | --version | --versio | --versi | --vers | -V)
1390    ac_init_version=: ;;
1391
1392  -with-* | --with-*)
1393    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394    # Reject names that are not valid shell variable names.
1395    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1397   { (exit 1); exit 1; }; }
1398    ac_useropt_orig=$ac_useropt
1399    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400    case $ac_user_opts in
1401      *"
1402"with_$ac_useropt"
1403"*) ;;
1404      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1405	 ac_unrecognized_sep=', ';;
1406    esac
1407    eval with_$ac_useropt=\$ac_optarg ;;
1408
1409  -without-* | --without-*)
1410    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1411    # Reject names that are not valid shell variable names.
1412    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1414   { (exit 1); exit 1; }; }
1415    ac_useropt_orig=$ac_useropt
1416    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1417    case $ac_user_opts in
1418      *"
1419"with_$ac_useropt"
1420"*) ;;
1421      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1422	 ac_unrecognized_sep=', ';;
1423    esac
1424    eval with_$ac_useropt=no ;;
1425
1426  --x)
1427    # Obsolete; use --with-x.
1428    with_x=yes ;;
1429
1430  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1431  | --x-incl | --x-inc | --x-in | --x-i)
1432    ac_prev=x_includes ;;
1433  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1434  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1435    x_includes=$ac_optarg ;;
1436
1437  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1438  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1439    ac_prev=x_libraries ;;
1440  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1441  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1442    x_libraries=$ac_optarg ;;
1443
1444  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1445Try \`$0 --help' for more information." >&2
1446   { (exit 1); exit 1; }; }
1447    ;;
1448
1449  *=*)
1450    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1451    # Reject names that are not valid shell variable names.
1452    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1453      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1454   { (exit 1); exit 1; }; }
1455    eval $ac_envvar=\$ac_optarg
1456    export $ac_envvar ;;
1457
1458  *)
1459    # FIXME: should be removed in autoconf 3.0.
1460    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1461    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1462      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1463    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1464    ;;
1465
1466  esac
1467done
1468
1469if test -n "$ac_prev"; then
1470  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1471  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1472   { (exit 1); exit 1; }; }
1473fi
1474
1475if test -n "$ac_unrecognized_opts"; then
1476  case $enable_option_checking in
1477    no) ;;
1478    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1479   { (exit 1); exit 1; }; } ;;
1480    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1481  esac
1482fi
1483
1484# Check all directory arguments for consistency.
1485for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1486		datadir sysconfdir sharedstatedir localstatedir includedir \
1487		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1488		libdir localedir mandir
1489do
1490  eval ac_val=\$$ac_var
1491  # Remove trailing slashes.
1492  case $ac_val in
1493    */ )
1494      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1495      eval $ac_var=\$ac_val;;
1496  esac
1497  # Be sure to have absolute directory names.
1498  case $ac_val in
1499    [\\/$]* | ?:[\\/]* )  continue;;
1500    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1501  esac
1502  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1503   { (exit 1); exit 1; }; }
1504done
1505
1506# There might be people who depend on the old broken behavior: `$host'
1507# used to hold the argument of --host etc.
1508# FIXME: To remove some day.
1509build=$build_alias
1510host=$host_alias
1511target=$target_alias
1512
1513# FIXME: To remove some day.
1514if test "x$host_alias" != x; then
1515  if test "x$build_alias" = x; then
1516    cross_compiling=maybe
1517    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1518    If a cross compiler is detected then cross compile mode will be used." >&2
1519  elif test "x$build_alias" != "x$host_alias"; then
1520    cross_compiling=yes
1521  fi
1522fi
1523
1524ac_tool_prefix=
1525test -n "$host_alias" && ac_tool_prefix=$host_alias-
1526
1527test "$silent" = yes && exec 6>/dev/null
1528
1529
1530ac_pwd=`pwd` && test -n "$ac_pwd" &&
1531ac_ls_di=`ls -di .` &&
1532ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1533  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1534   { (exit 1); exit 1; }; }
1535test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1536  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1537   { (exit 1); exit 1; }; }
1538
1539
1540# Find the source files, if location was not specified.
1541if test -z "$srcdir"; then
1542  ac_srcdir_defaulted=yes
1543  # Try the directory containing this script, then the parent directory.
1544  ac_confdir=`$as_dirname -- "$as_myself" ||
1545$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546	 X"$as_myself" : 'X\(//\)[^/]' \| \
1547	 X"$as_myself" : 'X\(//\)$' \| \
1548	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549$as_echo X"$as_myself" |
1550    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1551	    s//\1/
1552	    q
1553	  }
1554	  /^X\(\/\/\)[^/].*/{
1555	    s//\1/
1556	    q
1557	  }
1558	  /^X\(\/\/\)$/{
1559	    s//\1/
1560	    q
1561	  }
1562	  /^X\(\/\).*/{
1563	    s//\1/
1564	    q
1565	  }
1566	  s/.*/./; q'`
1567  srcdir=$ac_confdir
1568  if test ! -r "$srcdir/$ac_unique_file"; then
1569    srcdir=..
1570  fi
1571else
1572  ac_srcdir_defaulted=no
1573fi
1574if test ! -r "$srcdir/$ac_unique_file"; then
1575  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1576  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1577   { (exit 1); exit 1; }; }
1578fi
1579ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1580ac_abs_confdir=`(
1581	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1582   { (exit 1); exit 1; }; }
1583	pwd)`
1584# When building in place, set srcdir=.
1585if test "$ac_abs_confdir" = "$ac_pwd"; then
1586  srcdir=.
1587fi
1588# Remove unnecessary trailing slashes from srcdir.
1589# Double slashes in file names in object file debugging info
1590# mess up M-x gdb in Emacs.
1591case $srcdir in
1592*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1593esac
1594for ac_var in $ac_precious_vars; do
1595  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1596  eval ac_env_${ac_var}_value=\$${ac_var}
1597  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1598  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1599done
1600
1601#
1602# Report the --help message.
1603#
1604if test "$ac_init_help" = "long"; then
1605  # Omit some internal or obsolete options to make the list less imposing.
1606  # This message is too long to be a string in the A/UX 3.1 sh.
1607  cat <<_ACEOF
1608\`configure' configures libXfont 1.4.2 to adapt to many kinds of systems.
1609
1610Usage: $0 [OPTION]... [VAR=VALUE]...
1611
1612To assign environment variables (e.g., CC, CFLAGS...), specify them as
1613VAR=VALUE.  See below for descriptions of some of the useful variables.
1614
1615Defaults for the options are specified in brackets.
1616
1617Configuration:
1618  -h, --help              display this help and exit
1619      --help=short        display options specific to this package
1620      --help=recursive    display the short help of all the included packages
1621  -V, --version           display version information and exit
1622  -q, --quiet, --silent   do not print \`checking...' messages
1623      --cache-file=FILE   cache test results in FILE [disabled]
1624  -C, --config-cache      alias for \`--cache-file=config.cache'
1625  -n, --no-create         do not create output files
1626      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1627
1628Installation directories:
1629  --prefix=PREFIX         install architecture-independent files in PREFIX
1630                          [$ac_default_prefix]
1631  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1632                          [PREFIX]
1633
1634By default, \`make install' will install all the files in
1635\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1636an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1637for instance \`--prefix=\$HOME'.
1638
1639For better control, use the options below.
1640
1641Fine tuning of the installation directories:
1642  --bindir=DIR            user executables [EPREFIX/bin]
1643  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1644  --libexecdir=DIR        program executables [EPREFIX/libexec]
1645  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1646  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1647  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1648  --libdir=DIR            object code libraries [EPREFIX/lib]
1649  --includedir=DIR        C header files [PREFIX/include]
1650  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1651  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1652  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1653  --infodir=DIR           info documentation [DATAROOTDIR/info]
1654  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1655  --mandir=DIR            man documentation [DATAROOTDIR/man]
1656  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfont]
1657  --htmldir=DIR           html documentation [DOCDIR]
1658  --dvidir=DIR            dvi documentation [DOCDIR]
1659  --pdfdir=DIR            pdf documentation [DOCDIR]
1660  --psdir=DIR             ps documentation [DOCDIR]
1661_ACEOF
1662
1663  cat <<\_ACEOF
1664
1665Program names:
1666  --program-prefix=PREFIX            prepend PREFIX to installed program names
1667  --program-suffix=SUFFIX            append SUFFIX to installed program names
1668  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1669
1670System types:
1671  --build=BUILD     configure for building on BUILD [guessed]
1672  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1673_ACEOF
1674fi
1675
1676if test -n "$ac_init_help"; then
1677  case $ac_init_help in
1678     short | recursive ) echo "Configuration of libXfont 1.4.2:";;
1679   esac
1680  cat <<\_ACEOF
1681
1682Optional Features:
1683  --disable-option-checking  ignore unrecognized --enable/--with options
1684  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1685  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1686  --enable-maintainer-mode  enable make rules and dependencies not useful
1687			  (and sometimes confusing) to the casual installer
1688  --disable-dependency-tracking  speeds up one-time build
1689  --enable-dependency-tracking   do not reject slow dependency extractors
1690  --enable-strict-compilation
1691                          Enable all warnings from compiler and make them
1692                          errors (default: disabled)
1693  --enable-devel-docs     Enable building the developer documentation
1694                          (default: yes)
1695  --enable-shared[=PKGS]  build shared libraries [default=yes]
1696  --enable-static[=PKGS]  build static libraries [default=yes]
1697  --enable-fast-install[=PKGS]
1698                          optimize for fast installation [default=yes]
1699  --disable-libtool-lock  avoid locking (might break parallel builds)
1700 --disable-freetype
1701 --disable-builtins
1702 --disable-pcfformat
1703 --disable-bdfformat
1704 --disable-snfformat
1705 --disable-fc
1706  --enable-unix-transport Enable UNIX domain socket transport
1707  --enable-tcp-transport  Enable TCP socket transport
1708  --enable-ipv6           Enable IPv6 support
1709  --enable-local-transport
1710                          Enable os-specific local transport
1711
1712Optional Packages:
1713  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1714  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1715  --with-xmlto            Use xmlto to regenerate documentation (default: yes,
1716                          if installed)
1717  --with-fop              Use fop to regenerate documentation (default: yes,
1718                          if installed)
1719  --with-pic              try to use only PIC/non-PIC objects [default=use
1720                          both]
1721  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1722  --with-freetype-config=PROG   Use FreeType configuration program PROG
1723  --with-bzip2            Support bzip2 compressed bitmap fonts
1724
1725Some influential environment variables:
1726  CC          C compiler command
1727  CFLAGS      C compiler flags
1728  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1729              nonstandard directory <lib dir>
1730  LIBS        libraries to pass to the linker, e.g. -l<library>
1731  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1732              you have headers in a nonstandard directory <include dir>
1733  CPP         C preprocessor
1734  PKG_CONFIG  path to pkg-config utility
1735  XMLTO       Path to xmlto command
1736  FOP         Path to fop command
1737  FREETYPE_CFLAGS
1738              C compiler flags for FREETYPE, overriding pkg-config
1739  FREETYPE_LIBS
1740              linker flags for FREETYPE, overriding pkg-config
1741  XFONT_CFLAGS
1742              C compiler flags for XFONT, overriding pkg-config
1743  XFONT_LIBS  linker flags for XFONT, overriding pkg-config
1744
1745Use these variables to override the choices made by `configure' or to help
1746it to find libraries and programs with nonstandard names/locations.
1747
1748Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1749_ACEOF
1750ac_status=$?
1751fi
1752
1753if test "$ac_init_help" = "recursive"; then
1754  # If there are subdirs, report their specific --help.
1755  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1756    test -d "$ac_dir" ||
1757      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1758      continue
1759    ac_builddir=.
1760
1761case "$ac_dir" in
1762.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763*)
1764  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1765  # A ".." for each directory in $ac_dir_suffix.
1766  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1767  case $ac_top_builddir_sub in
1768  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1770  esac ;;
1771esac
1772ac_abs_top_builddir=$ac_pwd
1773ac_abs_builddir=$ac_pwd$ac_dir_suffix
1774# for backward compatibility:
1775ac_top_builddir=$ac_top_build_prefix
1776
1777case $srcdir in
1778  .)  # We are building in place.
1779    ac_srcdir=.
1780    ac_top_srcdir=$ac_top_builddir_sub
1781    ac_abs_top_srcdir=$ac_pwd ;;
1782  [\\/]* | ?:[\\/]* )  # Absolute name.
1783    ac_srcdir=$srcdir$ac_dir_suffix;
1784    ac_top_srcdir=$srcdir
1785    ac_abs_top_srcdir=$srcdir ;;
1786  *) # Relative name.
1787    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1788    ac_top_srcdir=$ac_top_build_prefix$srcdir
1789    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1790esac
1791ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1792
1793    cd "$ac_dir" || { ac_status=$?; continue; }
1794    # Check for guested configure.
1795    if test -f "$ac_srcdir/configure.gnu"; then
1796      echo &&
1797      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1798    elif test -f "$ac_srcdir/configure"; then
1799      echo &&
1800      $SHELL "$ac_srcdir/configure" --help=recursive
1801    else
1802      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1803    fi || ac_status=$?
1804    cd "$ac_pwd" || { ac_status=$?; break; }
1805  done
1806fi
1807
1808test -n "$ac_init_help" && exit $ac_status
1809if $ac_init_version; then
1810  cat <<\_ACEOF
1811libXfont configure 1.4.2
1812generated by GNU Autoconf 2.63
1813
1814Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1816This configure script is free software; the Free Software Foundation
1817gives unlimited permission to copy, distribute and modify it.
1818_ACEOF
1819  exit
1820fi
1821cat >config.log <<_ACEOF
1822This file contains any messages produced by compilers while
1823running configure, to aid debugging if configure makes a mistake.
1824
1825It was created by libXfont $as_me 1.4.2, which was
1826generated by GNU Autoconf 2.63.  Invocation command line was
1827
1828  $ $0 $@
1829
1830_ACEOF
1831exec 5>>config.log
1832{
1833cat <<_ASUNAME
1834## --------- ##
1835## Platform. ##
1836## --------- ##
1837
1838hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1846
1847/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1848/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1849/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1851/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1852/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1853/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1854
1855_ASUNAME
1856
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860  IFS=$as_save_IFS
1861  test -z "$as_dir" && as_dir=.
1862  $as_echo "PATH: $as_dir"
1863done
1864IFS=$as_save_IFS
1865
1866} >&5
1867
1868cat >&5 <<_ACEOF
1869
1870
1871## ----------- ##
1872## Core tests. ##
1873## ----------- ##
1874
1875_ACEOF
1876
1877
1878# Keep a trace of the command line.
1879# Strip out --no-create and --no-recursion so they do not pile up.
1880# Strip out --silent because we don't want to record it for future runs.
1881# Also quote any args containing shell meta-characters.
1882# Make two passes to allow for proper duplicate-argument suppression.
1883ac_configure_args=
1884ac_configure_args0=
1885ac_configure_args1=
1886ac_must_keep_next=false
1887for ac_pass in 1 2
1888do
1889  for ac_arg
1890  do
1891    case $ac_arg in
1892    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894    | -silent | --silent | --silen | --sile | --sil)
1895      continue ;;
1896    *\'*)
1897      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898    esac
1899    case $ac_pass in
1900    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1901    2)
1902      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1903      if test $ac_must_keep_next = true; then
1904	ac_must_keep_next=false # Got value, back to normal.
1905      else
1906	case $ac_arg in
1907	  *=* | --config-cache | -C | -disable-* | --disable-* \
1908	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910	  | -with-* | --with-* | -without-* | --without-* | --x)
1911	    case "$ac_configure_args0 " in
1912	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913	    esac
1914	    ;;
1915	  -* ) ac_must_keep_next=true ;;
1916	esac
1917      fi
1918      ac_configure_args="$ac_configure_args '$ac_arg'"
1919      ;;
1920    esac
1921  done
1922done
1923$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1924$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1925
1926# When interrupted or exit'd, cleanup temporary files, and complete
1927# config.log.  We remove comments because anyway the quotes in there
1928# would cause problems or look ugly.
1929# WARNING: Use '\'' to represent an apostrophe within the trap.
1930# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931trap 'exit_status=$?
1932  # Save into config.log some information that might help in debugging.
1933  {
1934    echo
1935
1936    cat <<\_ASBOX
1937## ---------------- ##
1938## Cache variables. ##
1939## ---------------- ##
1940_ASBOX
1941    echo
1942    # The following way of writing the cache mishandles newlines in values,
1943(
1944  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1945    eval ac_val=\$$ac_var
1946    case $ac_val in #(
1947    *${as_nl}*)
1948      case $ac_var in #(
1949      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1950$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1951      esac
1952      case $ac_var in #(
1953      _ | IFS | as_nl) ;; #(
1954      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1955      *) $as_unset $ac_var ;;
1956      esac ;;
1957    esac
1958  done
1959  (set) 2>&1 |
1960    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1961    *${as_nl}ac_space=\ *)
1962      sed -n \
1963	"s/'\''/'\''\\\\'\'''\''/g;
1964	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1965      ;; #(
1966    *)
1967      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1968      ;;
1969    esac |
1970    sort
1971)
1972    echo
1973
1974    cat <<\_ASBOX
1975## ----------------- ##
1976## Output variables. ##
1977## ----------------- ##
1978_ASBOX
1979    echo
1980    for ac_var in $ac_subst_vars
1981    do
1982      eval ac_val=\$$ac_var
1983      case $ac_val in
1984      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985      esac
1986      $as_echo "$ac_var='\''$ac_val'\''"
1987    done | sort
1988    echo
1989
1990    if test -n "$ac_subst_files"; then
1991      cat <<\_ASBOX
1992## ------------------- ##
1993## File substitutions. ##
1994## ------------------- ##
1995_ASBOX
1996      echo
1997      for ac_var in $ac_subst_files
1998      do
1999	eval ac_val=\$$ac_var
2000	case $ac_val in
2001	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002	esac
2003	$as_echo "$ac_var='\''$ac_val'\''"
2004      done | sort
2005      echo
2006    fi
2007
2008    if test -s confdefs.h; then
2009      cat <<\_ASBOX
2010## ----------- ##
2011## confdefs.h. ##
2012## ----------- ##
2013_ASBOX
2014      echo
2015      cat confdefs.h
2016      echo
2017    fi
2018    test "$ac_signal" != 0 &&
2019      $as_echo "$as_me: caught signal $ac_signal"
2020    $as_echo "$as_me: exit $exit_status"
2021  } >&5
2022  rm -f core *.core core.conftest.* &&
2023    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2024    exit $exit_status
2025' 0
2026for ac_signal in 1 2 13 15; do
2027  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2028done
2029ac_signal=0
2030
2031# confdefs.h avoids OS command line length limits that DEFS can exceed.
2032rm -f -r conftest* confdefs.h
2033
2034# Predefined preprocessor variables.
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_NAME "$PACKAGE_NAME"
2038_ACEOF
2039
2040
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2043_ACEOF
2044
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_VERSION "$PACKAGE_VERSION"
2048_ACEOF
2049
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_STRING "$PACKAGE_STRING"
2053_ACEOF
2054
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058_ACEOF
2059
2060
2061# Let the site file select an alternate cache file if it wants to.
2062# Prefer an explicitly selected file to automatically selected ones.
2063ac_site_file1=NONE
2064ac_site_file2=NONE
2065if test -n "$CONFIG_SITE"; then
2066  ac_site_file1=$CONFIG_SITE
2067elif test "x$prefix" != xNONE; then
2068  ac_site_file1=$prefix/share/config.site
2069  ac_site_file2=$prefix/etc/config.site
2070else
2071  ac_site_file1=$ac_default_prefix/share/config.site
2072  ac_site_file2=$ac_default_prefix/etc/config.site
2073fi
2074for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075do
2076  test "x$ac_site_file" = xNONE && continue
2077  if test -r "$ac_site_file"; then
2078    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2079$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2080    sed 's/^/| /' "$ac_site_file" >&5
2081    . "$ac_site_file"
2082  fi
2083done
2084
2085if test -r "$cache_file"; then
2086  # Some versions of bash will fail to source /dev/null (special
2087  # files actually), so we avoid doing that.
2088  if test -f "$cache_file"; then
2089    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2090$as_echo "$as_me: loading cache $cache_file" >&6;}
2091    case $cache_file in
2092      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093      *)                      . "./$cache_file";;
2094    esac
2095  fi
2096else
2097  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2098$as_echo "$as_me: creating cache $cache_file" >&6;}
2099  >$cache_file
2100fi
2101
2102# Check that the precious variables saved in the cache have kept the same
2103# value.
2104ac_cache_corrupted=false
2105for ac_var in $ac_precious_vars; do
2106  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107  eval ac_new_set=\$ac_env_${ac_var}_set
2108  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109  eval ac_new_val=\$ac_env_${ac_var}_value
2110  case $ac_old_set,$ac_new_set in
2111    set,)
2112      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114      ac_cache_corrupted=: ;;
2115    ,set)
2116      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2117$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118      ac_cache_corrupted=: ;;
2119    ,);;
2120    *)
2121      if test "x$ac_old_val" != "x$ac_new_val"; then
2122	# differences in whitespace do not lead to failure.
2123	ac_old_val_w=`echo x $ac_old_val`
2124	ac_new_val_w=`echo x $ac_new_val`
2125	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2127$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128	  ac_cache_corrupted=:
2129	else
2130	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132	  eval $ac_var=\$ac_old_val
2133	fi
2134	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2135$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2136	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2137$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2138      fi;;
2139  esac
2140  # Pass precious variables to config.status.
2141  if test "$ac_new_set" = set; then
2142    case $ac_new_val in
2143    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144    *) ac_arg=$ac_var=$ac_new_val ;;
2145    esac
2146    case " $ac_configure_args " in
2147      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2148      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2149    esac
2150  fi
2151done
2152if $ac_cache_corrupted; then
2153  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159   { (exit 1); exit 1; }; }
2160fi
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186ac_ext=c
2187ac_cpp='$CPP $CPPFLAGS'
2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
2192
2193# Autoheader generates config.h.in. No new lines allowed in the list.
2194ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2195
2196am__api_version='1.10'
2197
2198ac_aux_dir=
2199for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2200  if test -f "$ac_dir/install-sh"; then
2201    ac_aux_dir=$ac_dir
2202    ac_install_sh="$ac_aux_dir/install-sh -c"
2203    break
2204  elif test -f "$ac_dir/install.sh"; then
2205    ac_aux_dir=$ac_dir
2206    ac_install_sh="$ac_aux_dir/install.sh -c"
2207    break
2208  elif test -f "$ac_dir/shtool"; then
2209    ac_aux_dir=$ac_dir
2210    ac_install_sh="$ac_aux_dir/shtool install -c"
2211    break
2212  fi
2213done
2214if test -z "$ac_aux_dir"; then
2215  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2216$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2217   { (exit 1); exit 1; }; }
2218fi
2219
2220# These three variables are undocumented and unsupported,
2221# and are intended to be withdrawn in a future Autoconf release.
2222# They can cause serious problems if a builder's source tree is in a directory
2223# whose full name contains unusual characters.
2224ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2225ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2226ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2227
2228
2229# Find a good install program.  We prefer a C program (faster),
2230# so one script is as good as another.  But avoid the broken or
2231# incompatible versions:
2232# SysV /etc/install, /usr/sbin/install
2233# SunOS /usr/etc/install
2234# IRIX /sbin/install
2235# AIX /bin/install
2236# AmigaOS /C/install, which installs bootblocks on floppy discs
2237# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2238# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2239# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2240# OS/2's system install, which has a completely different semantic
2241# ./install, which can be erroneously created by make from ./install.sh.
2242# Reject install programs that cannot install multiple files.
2243{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2244$as_echo_n "checking for a BSD-compatible install... " >&6; }
2245if test -z "$INSTALL"; then
2246if test "${ac_cv_path_install+set}" = set; then
2247  $as_echo_n "(cached) " >&6
2248else
2249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252  IFS=$as_save_IFS
2253  test -z "$as_dir" && as_dir=.
2254  # Account for people who put trailing slashes in PATH elements.
2255case $as_dir/ in
2256  ./ | .// | /cC/* | \
2257  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2258  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2259  /usr/ucb/* ) ;;
2260  *)
2261    # OSF1 and SCO ODT 3.0 have their own names for install.
2262    # Don't use installbsd from OSF since it installs stuff as root
2263    # by default.
2264    for ac_prog in ginstall scoinst install; do
2265      for ac_exec_ext in '' $ac_executable_extensions; do
2266	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2267	  if test $ac_prog = install &&
2268	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269	    # AIX install.  It has an incompatible calling convention.
2270	    :
2271	  elif test $ac_prog = install &&
2272	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2273	    # program-specific install script used by HP pwplus--don't use.
2274	    :
2275	  else
2276	    rm -rf conftest.one conftest.two conftest.dir
2277	    echo one > conftest.one
2278	    echo two > conftest.two
2279	    mkdir conftest.dir
2280	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2281	      test -s conftest.one && test -s conftest.two &&
2282	      test -s conftest.dir/conftest.one &&
2283	      test -s conftest.dir/conftest.two
2284	    then
2285	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2286	      break 3
2287	    fi
2288	  fi
2289	fi
2290      done
2291    done
2292    ;;
2293esac
2294
2295done
2296IFS=$as_save_IFS
2297
2298rm -rf conftest.one conftest.two conftest.dir
2299
2300fi
2301  if test "${ac_cv_path_install+set}" = set; then
2302    INSTALL=$ac_cv_path_install
2303  else
2304    # As a last resort, use the slow shell script.  Don't cache a
2305    # value for INSTALL within a source directory, because that will
2306    # break other packages using the cache if that directory is
2307    # removed, or if the value is a relative name.
2308    INSTALL=$ac_install_sh
2309  fi
2310fi
2311{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2312$as_echo "$INSTALL" >&6; }
2313
2314# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2315# It thinks the first close brace ends the variable substitution.
2316test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2317
2318test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2319
2320test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2321
2322{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2323$as_echo_n "checking whether build environment is sane... " >&6; }
2324# Just in case
2325sleep 1
2326echo timestamp > conftest.file
2327# Do `set' in a subshell so we don't clobber the current shell's
2328# arguments.  Must try -L first in case configure is actually a
2329# symlink; some systems play weird games with the mod time of symlinks
2330# (eg FreeBSD returns the mod time of the symlink's containing
2331# directory).
2332if (
2333   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2334   if test "$*" = "X"; then
2335      # -L didn't work.
2336      set X `ls -t $srcdir/configure conftest.file`
2337   fi
2338   rm -f conftest.file
2339   if test "$*" != "X $srcdir/configure conftest.file" \
2340      && test "$*" != "X conftest.file $srcdir/configure"; then
2341
2342      # If neither matched, then we have a broken ls.  This can happen
2343      # if, for instance, CONFIG_SHELL is bash and it inherits a
2344      # broken ls alias from the environment.  This has actually
2345      # happened.  Such a system could not be considered "sane".
2346      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2347alias in your environment" >&5
2348$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2349alias in your environment" >&2;}
2350   { (exit 1); exit 1; }; }
2351   fi
2352
2353   test "$2" = conftest.file
2354   )
2355then
2356   # Ok.
2357   :
2358else
2359   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2360Check your system clock" >&5
2361$as_echo "$as_me: error: newly created file is older than distributed files!
2362Check your system clock" >&2;}
2363   { (exit 1); exit 1; }; }
2364fi
2365{ $as_echo "$as_me:$LINENO: result: yes" >&5
2366$as_echo "yes" >&6; }
2367test "$program_prefix" != NONE &&
2368  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369# Use a double $ so make ignores it.
2370test "$program_suffix" != NONE &&
2371  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372# Double any \ or $.
2373# By default was `s,x,x', remove it if useless.
2374ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377# expand $ac_aux_dir to an absolute path
2378am_aux_dir=`cd $ac_aux_dir && pwd`
2379
2380test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2381# Use eval to expand $SHELL
2382if eval "$MISSING --run true"; then
2383  am_missing_run="$MISSING --run "
2384else
2385  am_missing_run=
2386  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2387$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2388fi
2389
2390{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2391$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2392if test -z "$MKDIR_P"; then
2393  if test "${ac_cv_path_mkdir+set}" = set; then
2394  $as_echo_n "(cached) " >&6
2395else
2396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401  for ac_prog in mkdir gmkdir; do
2402	 for ac_exec_ext in '' $ac_executable_extensions; do
2403	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2404	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2405	     'mkdir (GNU coreutils) '* | \
2406	     'mkdir (coreutils) '* | \
2407	     'mkdir (fileutils) '4.1*)
2408	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2409	       break 3;;
2410	   esac
2411	 done
2412       done
2413done
2414IFS=$as_save_IFS
2415
2416fi
2417
2418  if test "${ac_cv_path_mkdir+set}" = set; then
2419    MKDIR_P="$ac_cv_path_mkdir -p"
2420  else
2421    # As a last resort, use the slow shell script.  Don't cache a
2422    # value for MKDIR_P within a source directory, because that will
2423    # break other packages using the cache if that directory is
2424    # removed, or if the value is a relative name.
2425    test -d ./--version && rmdir ./--version
2426    MKDIR_P="$ac_install_sh -d"
2427  fi
2428fi
2429{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2430$as_echo "$MKDIR_P" >&6; }
2431
2432mkdir_p="$MKDIR_P"
2433case $mkdir_p in
2434  [\\/$]* | ?:[\\/]*) ;;
2435  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2436esac
2437
2438for ac_prog in gawk mawk nawk awk
2439do
2440  # Extract the first word of "$ac_prog", so it can be a program name with args.
2441set dummy $ac_prog; ac_word=$2
2442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
2444if test "${ac_cv_prog_AWK+set}" = set; then
2445  $as_echo_n "(cached) " >&6
2446else
2447  if test -n "$AWK"; then
2448  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453  IFS=$as_save_IFS
2454  test -z "$as_dir" && as_dir=.
2455  for ac_exec_ext in '' $ac_executable_extensions; do
2456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457    ac_cv_prog_AWK="$ac_prog"
2458    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459    break 2
2460  fi
2461done
2462done
2463IFS=$as_save_IFS
2464
2465fi
2466fi
2467AWK=$ac_cv_prog_AWK
2468if test -n "$AWK"; then
2469  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2470$as_echo "$AWK" >&6; }
2471else
2472  { $as_echo "$as_me:$LINENO: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476
2477  test -n "$AWK" && break
2478done
2479
2480{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2481$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2482set x ${MAKE-make}
2483ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2484if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2485  $as_echo_n "(cached) " >&6
2486else
2487  cat >conftest.make <<\_ACEOF
2488SHELL = /bin/sh
2489all:
2490	@echo '@@@%%%=$(MAKE)=@@@%%%'
2491_ACEOF
2492# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2493case `${MAKE-make} -f conftest.make 2>/dev/null` in
2494  *@@@%%%=?*=@@@%%%*)
2495    eval ac_cv_prog_make_${ac_make}_set=yes;;
2496  *)
2497    eval ac_cv_prog_make_${ac_make}_set=no;;
2498esac
2499rm -f conftest.make
2500fi
2501if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2502  { $as_echo "$as_me:$LINENO: result: yes" >&5
2503$as_echo "yes" >&6; }
2504  SET_MAKE=
2505else
2506  { $as_echo "$as_me:$LINENO: result: no" >&5
2507$as_echo "no" >&6; }
2508  SET_MAKE="MAKE=${MAKE-make}"
2509fi
2510
2511rm -rf .tst 2>/dev/null
2512mkdir .tst 2>/dev/null
2513if test -d .tst; then
2514  am__leading_dot=.
2515else
2516  am__leading_dot=_
2517fi
2518rmdir .tst 2>/dev/null
2519
2520if test "`cd $srcdir && pwd`" != "`pwd`"; then
2521  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2522  # is not polluted with repeated "-I."
2523  am__isrc=' -I$(srcdir)'
2524  # test to see if srcdir already configured
2525  if test -f $srcdir/config.status; then
2526    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2527$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2528   { (exit 1); exit 1; }; }
2529  fi
2530fi
2531
2532# test whether we have cygpath
2533if test -z "$CYGPATH_W"; then
2534  if (cygpath --version) >/dev/null 2>/dev/null; then
2535    CYGPATH_W='cygpath -w'
2536  else
2537    CYGPATH_W=echo
2538  fi
2539fi
2540
2541
2542# Define the identity of the package.
2543 PACKAGE='libXfont'
2544 VERSION='1.4.2'
2545
2546
2547cat >>confdefs.h <<_ACEOF
2548#define PACKAGE "$PACKAGE"
2549_ACEOF
2550
2551
2552cat >>confdefs.h <<_ACEOF
2553#define VERSION "$VERSION"
2554_ACEOF
2555
2556# Some tools Automake needs.
2557
2558ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2559
2560
2561AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2562
2563
2564AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2565
2566
2567AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2568
2569
2570MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2571
2572install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2573
2574# Installed binaries are usually stripped using `strip' when the user
2575# run `make install-strip'.  However `strip' might not be the right
2576# tool to use in cross-compilation environments, therefore Automake
2577# will honor the `STRIP' environment variable to overrule this program.
2578if test "$cross_compiling" != no; then
2579  if test -n "$ac_tool_prefix"; then
2580  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581set dummy ${ac_tool_prefix}strip; ac_word=$2
2582{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2583$as_echo_n "checking for $ac_word... " >&6; }
2584if test "${ac_cv_prog_STRIP+set}" = set; then
2585  $as_echo_n "(cached) " >&6
2586else
2587  if test -n "$STRIP"; then
2588  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593  IFS=$as_save_IFS
2594  test -z "$as_dir" && as_dir=.
2595  for ac_exec_ext in '' $ac_executable_extensions; do
2596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599    break 2
2600  fi
2601done
2602done
2603IFS=$as_save_IFS
2604
2605fi
2606fi
2607STRIP=$ac_cv_prog_STRIP
2608if test -n "$STRIP"; then
2609  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2610$as_echo "$STRIP" >&6; }
2611else
2612  { $as_echo "$as_me:$LINENO: result: no" >&5
2613$as_echo "no" >&6; }
2614fi
2615
2616
2617fi
2618if test -z "$ac_cv_prog_STRIP"; then
2619  ac_ct_STRIP=$STRIP
2620  # Extract the first word of "strip", so it can be a program name with args.
2621set dummy strip; ac_word=$2
2622{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2625  $as_echo_n "(cached) " >&6
2626else
2627  if test -n "$ac_ct_STRIP"; then
2628  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635  for ac_exec_ext in '' $ac_executable_extensions; do
2636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637    ac_cv_prog_ac_ct_STRIP="strip"
2638    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648if test -n "$ac_ct_STRIP"; then
2649  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2650$as_echo "$ac_ct_STRIP" >&6; }
2651else
2652  { $as_echo "$as_me:$LINENO: result: no" >&5
2653$as_echo "no" >&6; }
2654fi
2655
2656  if test "x$ac_ct_STRIP" = x; then
2657    STRIP=":"
2658  else
2659    case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2663ac_tool_warned=yes ;;
2664esac
2665    STRIP=$ac_ct_STRIP
2666  fi
2667else
2668  STRIP="$ac_cv_prog_STRIP"
2669fi
2670
2671fi
2672INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2673
2674# We need awk for the "check" target.  The system "awk" is bad on
2675# some platforms.
2676# Always define AMTAR for backward compatibility.
2677
2678AMTAR=${AMTAR-"${am_missing_run}tar"}
2679
2680am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2681
2682
2683
2684
2685
2686{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688    # Check whether --enable-maintainer-mode was given.
2689if test "${enable_maintainer_mode+set}" = set; then
2690  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691else
2692  USE_MAINTAINER_MODE=no
2693fi
2694
2695  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2696$as_echo "$USE_MAINTAINER_MODE" >&6; }
2697   if test $USE_MAINTAINER_MODE = yes; then
2698  MAINTAINER_MODE_TRUE=
2699  MAINTAINER_MODE_FALSE='#'
2700else
2701  MAINTAINER_MODE_TRUE='#'
2702  MAINTAINER_MODE_FALSE=
2703fi
2704
2705  MAINT=$MAINTAINER_MODE_TRUE
2706
2707
2708
2709# Require xorg-macros: XORG_DEFAULT_OPTIONS
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721DEPDIR="${am__leading_dot}deps"
2722
2723ac_config_commands="$ac_config_commands depfiles"
2724
2725
2726am_make=${MAKE-make}
2727cat > confinc << 'END'
2728am__doit:
2729	@echo done
2730.PHONY: am__doit
2731END
2732# If we don't find an include directive, just comment out the code.
2733{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2734$as_echo_n "checking for style of include used by $am_make... " >&6; }
2735am__include="#"
2736am__quote=
2737_am_result=none
2738# First try GNU make style include.
2739echo "include confinc" > confmf
2740# We grep out `Entering directory' and `Leaving directory'
2741# messages which can occur if `w' ends up in MAKEFLAGS.
2742# In particular we don't look at `^make:' because GNU make might
2743# be invoked under some other name (usually "gmake"), in which
2744# case it prints its new name instead of `make'.
2745if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2746   am__include=include
2747   am__quote=
2748   _am_result=GNU
2749fi
2750# Now try BSD make style include.
2751if test "$am__include" = "#"; then
2752   echo '.include "confinc"' > confmf
2753   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2754      am__include=.include
2755      am__quote="\""
2756      _am_result=BSD
2757   fi
2758fi
2759
2760
2761{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2762$as_echo "$_am_result" >&6; }
2763rm -f confinc confmf
2764
2765# Check whether --enable-dependency-tracking was given.
2766if test "${enable_dependency_tracking+set}" = set; then
2767  enableval=$enable_dependency_tracking;
2768fi
2769
2770if test "x$enable_dependency_tracking" != xno; then
2771  am_depcomp="$ac_aux_dir/depcomp"
2772  AMDEPBACKSLASH='\'
2773fi
2774 if test "x$enable_dependency_tracking" != xno; then
2775  AMDEP_TRUE=
2776  AMDEP_FALSE='#'
2777else
2778  AMDEP_TRUE='#'
2779  AMDEP_FALSE=
2780fi
2781
2782
2783ac_ext=c
2784ac_cpp='$CPP $CPPFLAGS'
2785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788if test -n "$ac_tool_prefix"; then
2789  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2790set dummy ${ac_tool_prefix}gcc; ac_word=$2
2791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if test "${ac_cv_prog_CC+set}" = set; then
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$CC"; then
2797  ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804  for ac_exec_ext in '' $ac_executable_extensions; do
2805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2807    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2819$as_echo "$CC" >&6; }
2820else
2821  { $as_echo "$as_me:$LINENO: result: no" >&5
2822$as_echo "no" >&6; }
2823fi
2824
2825
2826fi
2827if test -z "$ac_cv_prog_CC"; then
2828  ac_ct_CC=$CC
2829  # Extract the first word of "gcc", so it can be a program name with args.
2830set dummy gcc; ac_word=$2
2831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test -n "$ac_ct_CC"; then
2837  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844  for ac_exec_ext in '' $ac_executable_extensions; do
2845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846    ac_cv_prog_ac_ct_CC="gcc"
2847    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857if test -n "$ac_ct_CC"; then
2858  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859$as_echo "$ac_ct_CC" >&6; }
2860else
2861  { $as_echo "$as_me:$LINENO: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865  if test "x$ac_ct_CC" = x; then
2866    CC=""
2867  else
2868    case $cross_compiling:$ac_tool_warned in
2869yes:)
2870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874    CC=$ac_ct_CC
2875  fi
2876else
2877  CC="$ac_cv_prog_CC"
2878fi
2879
2880if test -z "$CC"; then
2881          if test -n "$ac_tool_prefix"; then
2882    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883set dummy ${ac_tool_prefix}cc; ac_word=$2
2884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if test "${ac_cv_prog_CC+set}" = set; then
2887  $as_echo_n "(cached) " >&6
2888else
2889  if test -n "$CC"; then
2890  ac_cv_prog_CC="$CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897  for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    ac_cv_prog_CC="${ac_tool_prefix}cc"
2900    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909CC=$ac_cv_prog_CC
2910if test -n "$CC"; then
2911  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2912$as_echo "$CC" >&6; }
2913else
2914  { $as_echo "$as_me:$LINENO: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918
2919  fi
2920fi
2921if test -z "$CC"; then
2922  # Extract the first word of "cc", so it can be a program name with args.
2923set dummy cc; ac_word=$2
2924{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if test "${ac_cv_prog_CC+set}" = set; then
2927  $as_echo_n "(cached) " >&6
2928else
2929  if test -n "$CC"; then
2930  ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
2932  ac_prog_rejected=no
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938  for ac_exec_ext in '' $ac_executable_extensions; do
2939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941       ac_prog_rejected=yes
2942       continue
2943     fi
2944    ac_cv_prog_CC="cc"
2945    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949done
2950IFS=$as_save_IFS
2951
2952if test $ac_prog_rejected = yes; then
2953  # We found a bogon in the path, so make sure we never use it.
2954  set dummy $ac_cv_prog_CC
2955  shift
2956  if test $# != 0; then
2957    # We chose a different compiler from the bogus one.
2958    # However, it has the same basename, so the bogon will be chosen
2959    # first if we set CC to just the basename; use the full file name.
2960    shift
2961    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962  fi
2963fi
2964fi
2965fi
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2969$as_echo "$CC" >&6; }
2970else
2971  { $as_echo "$as_me:$LINENO: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$CC"; then
2978  if test -n "$ac_tool_prefix"; then
2979  for ac_prog in cl.exe
2980  do
2981    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if test "${ac_cv_prog_CC+set}" = set; then
2986  $as_echo_n "(cached) " >&6
2987else
2988  if test -n "$CC"; then
2989  ac_cv_prog_CC="$CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994  IFS=$as_save_IFS
2995  test -z "$as_dir" && as_dir=.
2996  for ac_exec_ext in '' $ac_executable_extensions; do
2997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000    break 2
3001  fi
3002done
3003done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008CC=$ac_cv_prog_CC
3009if test -n "$CC"; then
3010  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3011$as_echo "$CC" >&6; }
3012else
3013  { $as_echo "$as_me:$LINENO: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017
3018    test -n "$CC" && break
3019  done
3020fi
3021if test -z "$CC"; then
3022  ac_ct_CC=$CC
3023  for ac_prog in cl.exe
3024do
3025  # Extract the first word of "$ac_prog", so it can be a program name with args.
3026set dummy $ac_prog; ac_word=$2
3027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
3029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3030  $as_echo_n "(cached) " >&6
3031else
3032  if test -n "$ac_ct_CC"; then
3033  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040  for ac_exec_ext in '' $ac_executable_extensions; do
3041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042    ac_cv_prog_ac_ct_CC="$ac_prog"
3043    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044    break 2
3045  fi
3046done
3047done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053if test -n "$ac_ct_CC"; then
3054  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3055$as_echo "$ac_ct_CC" >&6; }
3056else
3057  { $as_echo "$as_me:$LINENO: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062  test -n "$ac_ct_CC" && break
3063done
3064
3065  if test "x$ac_ct_CC" = x; then
3066    CC=""
3067  else
3068    case $cross_compiling:$ac_tool_warned in
3069yes:)
3070{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072ac_tool_warned=yes ;;
3073esac
3074    CC=$ac_ct_CC
3075  fi
3076fi
3077
3078fi
3079
3080
3081test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3084See \`config.log' for more details." >&5
3085$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3086See \`config.log' for more details." >&2;}
3087   { (exit 1); exit 1; }; }; }
3088
3089# Provide some information about the compiler.
3090$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3091set X $ac_compile
3092ac_compiler=$2
3093{ (ac_try="$ac_compiler --version >&5"
3094case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3099$as_echo "$ac_try_echo") >&5
3100  (eval "$ac_compiler --version >&5") 2>&5
3101  ac_status=$?
3102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }
3104{ (ac_try="$ac_compiler -v >&5"
3105case "(($ac_try" in
3106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107  *) ac_try_echo=$ac_try;;
3108esac
3109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3110$as_echo "$ac_try_echo") >&5
3111  (eval "$ac_compiler -v >&5") 2>&5
3112  ac_status=$?
3113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); }
3115{ (ac_try="$ac_compiler -V >&5"
3116case "(($ac_try" in
3117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118  *) ac_try_echo=$ac_try;;
3119esac
3120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3121$as_echo "$ac_try_echo") >&5
3122  (eval "$ac_compiler -V >&5") 2>&5
3123  ac_status=$?
3124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }
3126
3127cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134int
3135main ()
3136{
3137
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142ac_clean_files_save=$ac_clean_files
3143ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3144# Try to create an executable without -o first, disregard a.out.
3145# It will help us diagnose broken compilers, and finding out an intuition
3146# of exeext.
3147{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3148$as_echo_n "checking for C compiler default output file name... " >&6; }
3149ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3150
3151# The possible output files:
3152ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3153
3154ac_rmfiles=
3155for ac_file in $ac_files
3156do
3157  case $ac_file in
3158    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3159    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3160  esac
3161done
3162rm -f $ac_rmfiles
3163
3164if { (ac_try="$ac_link_default"
3165case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170$as_echo "$ac_try_echo") >&5
3171  (eval "$ac_link_default") 2>&5
3172  ac_status=$?
3173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; then
3175  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3176# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3177# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3178# so that the user can short-circuit this test for compilers unknown to
3179# Autoconf.
3180for ac_file in $ac_files ''
3181do
3182  test -f "$ac_file" || continue
3183  case $ac_file in
3184    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3185	;;
3186    [ab].out )
3187	# We found the default executable, but exeext='' is most
3188	# certainly right.
3189	break;;
3190    *.* )
3191        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3192	then :; else
3193	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194	fi
3195	# We set ac_cv_exeext here because the later test for it is not
3196	# safe: cross compilers may not add the suffix if given an `-o'
3197	# argument, so we may need to know it at that point already.
3198	# Even if this section looks crufty: it has the advantage of
3199	# actually working.
3200	break;;
3201    * )
3202	break;;
3203  esac
3204done
3205test "$ac_cv_exeext" = no && ac_cv_exeext=
3206
3207else
3208  ac_file=''
3209fi
3210
3211{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3212$as_echo "$ac_file" >&6; }
3213if test -z "$ac_file"; then
3214  $as_echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3220See \`config.log' for more details." >&5
3221$as_echo "$as_me: error: C compiler cannot create executables
3222See \`config.log' for more details." >&2;}
3223   { (exit 77); exit 77; }; }; }
3224fi
3225
3226ac_exeext=$ac_cv_exeext
3227
3228# Check that the compiler produces executables we can run.  If not, either
3229# the compiler is broken, or we cross compile.
3230{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3231$as_echo_n "checking whether the C compiler works... " >&6; }
3232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3233# If not cross compiling, check that we can run a simple program.
3234if test "$cross_compiling" != yes; then
3235  if { ac_try='./$ac_file'
3236  { (case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241$as_echo "$ac_try_echo") >&5
3242  (eval "$ac_try") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245  (exit $ac_status); }; }; then
3246    cross_compiling=no
3247  else
3248    if test "$cross_compiling" = maybe; then
3249	cross_compiling=yes
3250    else
3251	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3254If you meant to cross compile, use \`--host'.
3255See \`config.log' for more details." >&5
3256$as_echo "$as_me: error: cannot run C compiled programs.
3257If you meant to cross compile, use \`--host'.
3258See \`config.log' for more details." >&2;}
3259   { (exit 1); exit 1; }; }; }
3260    fi
3261  fi
3262fi
3263{ $as_echo "$as_me:$LINENO: result: yes" >&5
3264$as_echo "yes" >&6; }
3265
3266rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3267ac_clean_files=$ac_clean_files_save
3268# Check that the compiler produces executables we can run.  If not, either
3269# the compiler is broken, or we cross compile.
3270{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3271$as_echo_n "checking whether we are cross compiling... " >&6; }
3272{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3273$as_echo "$cross_compiling" >&6; }
3274
3275{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3276$as_echo_n "checking for suffix of executables... " >&6; }
3277if { (ac_try="$ac_link"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3283$as_echo "$ac_try_echo") >&5
3284  (eval "$ac_link") 2>&5
3285  ac_status=$?
3286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }; then
3288  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3289# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3290# work properly (i.e., refer to `conftest.exe'), while it won't with
3291# `rm'.
3292for ac_file in conftest.exe conftest conftest.*; do
3293  test -f "$ac_file" || continue
3294  case $ac_file in
3295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297	  break;;
3298    * ) break;;
3299  esac
3300done
3301else
3302  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3305See \`config.log' for more details." >&5
3306$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3307See \`config.log' for more details." >&2;}
3308   { (exit 1); exit 1; }; }; }
3309fi
3310
3311rm -f conftest$ac_cv_exeext
3312{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3313$as_echo "$ac_cv_exeext" >&6; }
3314
3315rm -f conftest.$ac_ext
3316EXEEXT=$ac_cv_exeext
3317ac_exeext=$EXEEXT
3318{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3319$as_echo_n "checking for suffix of object files... " >&6; }
3320if test "${ac_cv_objext+set}" = set; then
3321  $as_echo_n "(cached) " >&6
3322else
3323  cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h.  */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h.  */
3329
3330int
3331main ()
3332{
3333
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338rm -f conftest.o conftest.obj
3339if { (ac_try="$ac_compile"
3340case "(($ac_try" in
3341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342  *) ac_try_echo=$ac_try;;
3343esac
3344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345$as_echo "$ac_try_echo") >&5
3346  (eval "$ac_compile") 2>&5
3347  ac_status=$?
3348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); }; then
3350  for ac_file in conftest.o conftest.obj conftest.*; do
3351  test -f "$ac_file" || continue;
3352  case $ac_file in
3353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355       break;;
3356  esac
3357done
3358else
3359  $as_echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3365See \`config.log' for more details." >&5
3366$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3367See \`config.log' for more details." >&2;}
3368   { (exit 1); exit 1; }; }; }
3369fi
3370
3371rm -f conftest.$ac_cv_objext conftest.$ac_ext
3372fi
3373{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3374$as_echo "$ac_cv_objext" >&6; }
3375OBJEXT=$ac_cv_objext
3376ac_objext=$OBJEXT
3377{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3378$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3379if test "${ac_cv_c_compiler_gnu+set}" = set; then
3380  $as_echo_n "(cached) " >&6
3381else
3382  cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h.  */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392#ifndef __GNUC__
3393       choke me
3394#endif
3395
3396  ;
3397  return 0;
3398}
3399_ACEOF
3400rm -f conftest.$ac_objext
3401if { (ac_try="$ac_compile"
3402case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407$as_echo "$ac_try_echo") >&5
3408  (eval "$ac_compile") 2>conftest.er1
3409  ac_status=$?
3410  grep -v '^ *+' conftest.er1 >conftest.err
3411  rm -f conftest.er1
3412  cat conftest.err >&5
3413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); } && {
3415	 test -z "$ac_c_werror_flag" ||
3416	 test ! -s conftest.err
3417       } && test -s conftest.$ac_objext; then
3418  ac_compiler_gnu=yes
3419else
3420  $as_echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423	ac_compiler_gnu=no
3424fi
3425
3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429fi
3430{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432if test $ac_compiler_gnu = yes; then
3433  GCC=yes
3434else
3435  GCC=
3436fi
3437ac_test_CFLAGS=${CFLAGS+set}
3438ac_save_CFLAGS=$CFLAGS
3439{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3440$as_echo_n "checking whether $CC accepts -g... " >&6; }
3441if test "${ac_cv_prog_cc_g+set}" = set; then
3442  $as_echo_n "(cached) " >&6
3443else
3444  ac_save_c_werror_flag=$ac_c_werror_flag
3445   ac_c_werror_flag=yes
3446   ac_cv_prog_cc_g=no
3447   CFLAGS="-g"
3448   cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h.  */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463rm -f conftest.$ac_objext
3464if { (ac_try="$ac_compile"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470$as_echo "$ac_try_echo") >&5
3471  (eval "$ac_compile") 2>conftest.er1
3472  ac_status=$?
3473  grep -v '^ *+' conftest.er1 >conftest.err
3474  rm -f conftest.er1
3475  cat conftest.err >&5
3476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); } && {
3478	 test -z "$ac_c_werror_flag" ||
3479	 test ! -s conftest.err
3480       } && test -s conftest.$ac_objext; then
3481  ac_cv_prog_cc_g=yes
3482else
3483  $as_echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486	CFLAGS=""
3487      cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493
3494int
3495main ()
3496{
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502rm -f conftest.$ac_objext
3503if { (ac_try="$ac_compile"
3504case "(($ac_try" in
3505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506  *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509$as_echo "$ac_try_echo") >&5
3510  (eval "$ac_compile") 2>conftest.er1
3511  ac_status=$?
3512  grep -v '^ *+' conftest.er1 >conftest.err
3513  rm -f conftest.er1
3514  cat conftest.err >&5
3515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); } && {
3517	 test -z "$ac_c_werror_flag" ||
3518	 test ! -s conftest.err
3519       } && test -s conftest.$ac_objext; then
3520  :
3521else
3522  $as_echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525	ac_c_werror_flag=$ac_save_c_werror_flag
3526	 CFLAGS="-g"
3527	 cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533
3534int
3535main ()
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (ac_try="$ac_compile"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549$as_echo "$ac_try_echo") >&5
3550  (eval "$ac_compile") 2>conftest.er1
3551  ac_status=$?
3552  grep -v '^ *+' conftest.er1 >conftest.err
3553  rm -f conftest.er1
3554  cat conftest.err >&5
3555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); } && {
3557	 test -z "$ac_c_werror_flag" ||
3558	 test ! -s conftest.err
3559       } && test -s conftest.$ac_objext; then
3560  ac_cv_prog_cc_g=yes
3561else
3562  $as_echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565
3566fi
3567
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569fi
3570
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572fi
3573
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575   ac_c_werror_flag=$ac_save_c_werror_flag
3576fi
3577{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3578$as_echo "$ac_cv_prog_cc_g" >&6; }
3579if test "$ac_test_CFLAGS" = set; then
3580  CFLAGS=$ac_save_CFLAGS
3581elif test $ac_cv_prog_cc_g = yes; then
3582  if test "$GCC" = yes; then
3583    CFLAGS="-g -O2"
3584  else
3585    CFLAGS="-g"
3586  fi
3587else
3588  if test "$GCC" = yes; then
3589    CFLAGS="-O2"
3590  else
3591    CFLAGS=
3592  fi
3593fi
3594{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3595$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3596if test "${ac_cv_prog_cc_c89+set}" = set; then
3597  $as_echo_n "(cached) " >&6
3598else
3599  ac_cv_prog_cc_c89=no
3600ac_save_CC=$CC
3601cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607#include <stdarg.h>
3608#include <stdio.h>
3609#include <sys/types.h>
3610#include <sys/stat.h>
3611/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3612struct buf { int x; };
3613FILE * (*rcsopen) (struct buf *, struct stat *, int);
3614static char *e (p, i)
3615     char **p;
3616     int i;
3617{
3618  return p[i];
3619}
3620static char *f (char * (*g) (char **, int), char **p, ...)
3621{
3622  char *s;
3623  va_list v;
3624  va_start (v,p);
3625  s = g (p, va_arg (v,int));
3626  va_end (v);
3627  return s;
3628}
3629
3630/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3631   function prototypes and stuff, but not '\xHH' hex character constants.
3632   These don't provoke an error unfortunately, instead are silently treated
3633   as 'x'.  The following induces an error, until -std is added to get
3634   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3635   array size at least.  It's necessary to write '\x00'==0 to get something
3636   that's true only with -std.  */
3637int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638
3639/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3640   inside strings and character constants.  */
3641#define FOO(x) 'x'
3642int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643
3644int test (int i, double x);
3645struct s1 {int (*f) (int a);};
3646struct s2 {int (*f) (double a);};
3647int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648int argc;
3649char **argv;
3650int
3651main ()
3652{
3653return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3659	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660do
3661  CC="$ac_save_CC $ac_arg"
3662  rm -f conftest.$ac_objext
3663if { (ac_try="$ac_compile"
3664case "(($ac_try" in
3665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666  *) ac_try_echo=$ac_try;;
3667esac
3668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669$as_echo "$ac_try_echo") >&5
3670  (eval "$ac_compile") 2>conftest.er1
3671  ac_status=$?
3672  grep -v '^ *+' conftest.er1 >conftest.err
3673  rm -f conftest.er1
3674  cat conftest.err >&5
3675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); } && {
3677	 test -z "$ac_c_werror_flag" ||
3678	 test ! -s conftest.err
3679       } && test -s conftest.$ac_objext; then
3680  ac_cv_prog_cc_c89=$ac_arg
3681else
3682  $as_echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685
3686fi
3687
3688rm -f core conftest.err conftest.$ac_objext
3689  test "x$ac_cv_prog_cc_c89" != "xno" && break
3690done
3691rm -f conftest.$ac_ext
3692CC=$ac_save_CC
3693
3694fi
3695# AC_CACHE_VAL
3696case "x$ac_cv_prog_cc_c89" in
3697  x)
3698    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3699$as_echo "none needed" >&6; } ;;
3700  xno)
3701    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3702$as_echo "unsupported" >&6; } ;;
3703  *)
3704    CC="$CC $ac_cv_prog_cc_c89"
3705    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3707esac
3708
3709
3710ac_ext=c
3711ac_cpp='$CPP $CPPFLAGS'
3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716depcc="$CC"   am_compiler_list=
3717
3718{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3719$as_echo_n "checking dependency style of $depcc... " >&6; }
3720if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3724  # We make a subdir and do the tests there.  Otherwise we can end up
3725  # making bogus files that we don't know about and never remove.  For
3726  # instance it was reported that on HP-UX the gcc test will end up
3727  # making a dummy file named `D' -- because `-MD' means `put the output
3728  # in D'.
3729  mkdir conftest.dir
3730  # Copy depcomp to subdir because otherwise we won't find it if we're
3731  # using a relative directory.
3732  cp "$am_depcomp" conftest.dir
3733  cd conftest.dir
3734  # We will build objects and dependencies in a subdirectory because
3735  # it helps to detect inapplicable dependency modes.  For instance
3736  # both Tru64's cc and ICC support -MD to output dependencies as a
3737  # side effect of compilation, but ICC will put the dependencies in
3738  # the current directory while Tru64 will put them in the object
3739  # directory.
3740  mkdir sub
3741
3742  am_cv_CC_dependencies_compiler_type=none
3743  if test "$am_compiler_list" = ""; then
3744     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3745  fi
3746  for depmode in $am_compiler_list; do
3747    # Setup a source with many dependencies, because some compilers
3748    # like to wrap large dependency lists on column 80 (with \), and
3749    # we should not choose a depcomp mode which is confused by this.
3750    #
3751    # We need to recreate these files for each test, as the compiler may
3752    # overwrite some of them when testing with obscure command lines.
3753    # This happens at least with the AIX C compiler.
3754    : > sub/conftest.c
3755    for i in 1 2 3 4 5 6; do
3756      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3757      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3758      # Solaris 8's {/usr,}/bin/sh.
3759      touch sub/conftst$i.h
3760    done
3761    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3762
3763    case $depmode in
3764    nosideeffect)
3765      # after this tag, mechanisms are not by side-effect, so they'll
3766      # only be used when explicitly requested
3767      if test "x$enable_dependency_tracking" = xyes; then
3768	continue
3769      else
3770	break
3771      fi
3772      ;;
3773    none) break ;;
3774    esac
3775    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3776    # mode.  It turns out that the SunPro C++ compiler does not properly
3777    # handle `-M -o', and we need to detect this.
3778    if depmode=$depmode \
3779       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3780       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3781       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3782         >/dev/null 2>conftest.err &&
3783       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3784       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3785       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3786       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3787      # icc doesn't choke on unknown options, it will just issue warnings
3788      # or remarks (even with -Werror).  So we grep stderr for any message
3789      # that says an option was ignored or not supported.
3790      # When given -MP, icc 7.0 and 7.1 complain thusly:
3791      #   icc: Command line warning: ignoring option '-M'; no argument required
3792      # The diagnosis changed in icc 8.0:
3793      #   icc: Command line remark: option '-MP' not supported
3794      if (grep 'ignoring option' conftest.err ||
3795          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3796        am_cv_CC_dependencies_compiler_type=$depmode
3797        break
3798      fi
3799    fi
3800  done
3801
3802  cd ..
3803  rm -rf conftest.dir
3804else
3805  am_cv_CC_dependencies_compiler_type=none
3806fi
3807
3808fi
3809{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3810$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3811CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3812
3813 if
3814  test "x$enable_dependency_tracking" != xno \
3815  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816  am__fastdepCC_TRUE=
3817  am__fastdepCC_FALSE='#'
3818else
3819  am__fastdepCC_TRUE='#'
3820  am__fastdepCC_FALSE=
3821fi
3822
3823
3824   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3825$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3826if test "${ac_cv_prog_cc_c99+set}" = set; then
3827  $as_echo_n "(cached) " >&6
3828else
3829  ac_cv_prog_cc_c99=no
3830ac_save_CC=$CC
3831cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h.  */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h.  */
3837#include <stdarg.h>
3838#include <stdbool.h>
3839#include <stdlib.h>
3840#include <wchar.h>
3841#include <stdio.h>
3842
3843// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3844#define debug(...) fprintf (stderr, __VA_ARGS__)
3845#define showlist(...) puts (#__VA_ARGS__)
3846#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3847static void
3848test_varargs_macros (void)
3849{
3850  int x = 1234;
3851  int y = 5678;
3852  debug ("Flag");
3853  debug ("X = %d\n", x);
3854  showlist (The first, second, and third items.);
3855  report (x>y, "x is %d but y is %d", x, y);
3856}
3857
3858// Check long long types.
3859#define BIG64 18446744073709551615ull
3860#define BIG32 4294967295ul
3861#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3862#if !BIG_OK
3863  your preprocessor is broken;
3864#endif
3865#if BIG_OK
3866#else
3867  your preprocessor is broken;
3868#endif
3869static long long int bignum = -9223372036854775807LL;
3870static unsigned long long int ubignum = BIG64;
3871
3872struct incomplete_array
3873{
3874  int datasize;
3875  double data[];
3876};
3877
3878struct named_init {
3879  int number;
3880  const wchar_t *name;
3881  double average;
3882};
3883
3884typedef const char *ccp;
3885
3886static inline int
3887test_restrict (ccp restrict text)
3888{
3889  // See if C++-style comments work.
3890  // Iterate through items via the restricted pointer.
3891  // Also check for declarations in for loops.
3892  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3893    continue;
3894  return 0;
3895}
3896
3897// Check varargs and va_copy.
3898static void
3899test_varargs (const char *format, ...)
3900{
3901  va_list args;
3902  va_start (args, format);
3903  va_list args_copy;
3904  va_copy (args_copy, args);
3905
3906  const char *str;
3907  int number;
3908  float fnumber;
3909
3910  while (*format)
3911    {
3912      switch (*format++)
3913	{
3914	case 's': // string
3915	  str = va_arg (args_copy, const char *);
3916	  break;
3917	case 'd': // int
3918	  number = va_arg (args_copy, int);
3919	  break;
3920	case 'f': // float
3921	  fnumber = va_arg (args_copy, double);
3922	  break;
3923	default:
3924	  break;
3925	}
3926    }
3927  va_end (args_copy);
3928  va_end (args);
3929}
3930
3931int
3932main ()
3933{
3934
3935  // Check bool.
3936  _Bool success = false;
3937
3938  // Check restrict.
3939  if (test_restrict ("String literal") == 0)
3940    success = true;
3941  char *restrict newvar = "Another string";
3942
3943  // Check varargs.
3944  test_varargs ("s, d' f .", "string", 65, 34.234);
3945  test_varargs_macros ();
3946
3947  // Check flexible array members.
3948  struct incomplete_array *ia =
3949    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3950  ia->datasize = 10;
3951  for (int i = 0; i < ia->datasize; ++i)
3952    ia->data[i] = i * 1.234;
3953
3954  // Check named initializers.
3955  struct named_init ni = {
3956    .number = 34,
3957    .name = L"Test wide string",
3958    .average = 543.34343,
3959  };
3960
3961  ni.number = 58;
3962
3963  int dynamic_array[ni.number];
3964  dynamic_array[ni.number - 1] = 543;
3965
3966  // work around unused variable warnings
3967  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3968	  || dynamic_array[ni.number - 1] != 543);
3969
3970  ;
3971  return 0;
3972}
3973_ACEOF
3974for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3975do
3976  CC="$ac_save_CC $ac_arg"
3977  rm -f conftest.$ac_objext
3978if { (ac_try="$ac_compile"
3979case "(($ac_try" in
3980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981  *) ac_try_echo=$ac_try;;
3982esac
3983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984$as_echo "$ac_try_echo") >&5
3985  (eval "$ac_compile") 2>conftest.er1
3986  ac_status=$?
3987  grep -v '^ *+' conftest.er1 >conftest.err
3988  rm -f conftest.er1
3989  cat conftest.err >&5
3990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); } && {
3992	 test -z "$ac_c_werror_flag" ||
3993	 test ! -s conftest.err
3994       } && test -s conftest.$ac_objext; then
3995  ac_cv_prog_cc_c99=$ac_arg
3996else
3997  $as_echo "$as_me: failed program was:" >&5
3998sed 's/^/| /' conftest.$ac_ext >&5
3999
4000
4001fi
4002
4003rm -f core conftest.err conftest.$ac_objext
4004  test "x$ac_cv_prog_cc_c99" != "xno" && break
4005done
4006rm -f conftest.$ac_ext
4007CC=$ac_save_CC
4008
4009fi
4010# AC_CACHE_VAL
4011case "x$ac_cv_prog_cc_c99" in
4012  x)
4013    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4014$as_echo "none needed" >&6; } ;;
4015  xno)
4016    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4017$as_echo "unsupported" >&6; } ;;
4018  *)
4019    CC="$CC $ac_cv_prog_cc_c99"
4020    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4021$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4022esac
4023
4024
4025
4026
4027ac_ext=c
4028ac_cpp='$CPP $CPPFLAGS'
4029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4033$as_echo_n "checking how to run the C preprocessor... " >&6; }
4034# On Suns, sometimes $CPP names a directory.
4035if test -n "$CPP" && test -d "$CPP"; then
4036  CPP=
4037fi
4038if test -z "$CPP"; then
4039  if test "${ac_cv_prog_CPP+set}" = set; then
4040  $as_echo_n "(cached) " >&6
4041else
4042      # Double quotes because CPP needs to be expanded
4043    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4044    do
4045      ac_preproc_ok=false
4046for ac_c_preproc_warn_flag in '' yes
4047do
4048  # Use a header file that comes with gcc, so configuring glibc
4049  # with a fresh cross-compiler works.
4050  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4051  # <limits.h> exists even on freestanding compilers.
4052  # On the NeXT, cc -E runs the code through the compiler's parser,
4053  # not just through cpp. "Syntax error" is here to catch this case.
4054  cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060#ifdef __STDC__
4061# include <limits.h>
4062#else
4063# include <assert.h>
4064#endif
4065		     Syntax error
4066_ACEOF
4067if { (ac_try="$ac_cpp conftest.$ac_ext"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073$as_echo "$ac_try_echo") >&5
4074  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4075  ac_status=$?
4076  grep -v '^ *+' conftest.er1 >conftest.err
4077  rm -f conftest.er1
4078  cat conftest.err >&5
4079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080  (exit $ac_status); } >/dev/null && {
4081	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4082	 test ! -s conftest.err
4083       }; then
4084  :
4085else
4086  $as_echo "$as_me: failed program was:" >&5
4087sed 's/^/| /' conftest.$ac_ext >&5
4088
4089  # Broken: fails on valid input.
4090continue
4091fi
4092
4093rm -f conftest.err conftest.$ac_ext
4094
4095  # OK, works on sane cases.  Now check whether nonexistent headers
4096  # can be detected and how.
4097  cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h.  */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h.  */
4103#include <ac_nonexistent.h>
4104_ACEOF
4105if { (ac_try="$ac_cpp conftest.$ac_ext"
4106case "(($ac_try" in
4107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108  *) ac_try_echo=$ac_try;;
4109esac
4110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111$as_echo "$ac_try_echo") >&5
4112  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4113  ac_status=$?
4114  grep -v '^ *+' conftest.er1 >conftest.err
4115  rm -f conftest.er1
4116  cat conftest.err >&5
4117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); } >/dev/null && {
4119	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4120	 test ! -s conftest.err
4121       }; then
4122  # Broken: success on invalid input.
4123continue
4124else
4125  $as_echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128  # Passes both tests.
4129ac_preproc_ok=:
4130break
4131fi
4132
4133rm -f conftest.err conftest.$ac_ext
4134
4135done
4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137rm -f conftest.err conftest.$ac_ext
4138if $ac_preproc_ok; then
4139  break
4140fi
4141
4142    done
4143    ac_cv_prog_CPP=$CPP
4144
4145fi
4146  CPP=$ac_cv_prog_CPP
4147else
4148  ac_cv_prog_CPP=$CPP
4149fi
4150{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4151$as_echo "$CPP" >&6; }
4152ac_preproc_ok=false
4153for ac_c_preproc_warn_flag in '' yes
4154do
4155  # Use a header file that comes with gcc, so configuring glibc
4156  # with a fresh cross-compiler works.
4157  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158  # <limits.h> exists even on freestanding compilers.
4159  # On the NeXT, cc -E runs the code through the compiler's parser,
4160  # not just through cpp. "Syntax error" is here to catch this case.
4161  cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h.  */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
4166/* end confdefs.h.  */
4167#ifdef __STDC__
4168# include <limits.h>
4169#else
4170# include <assert.h>
4171#endif
4172		     Syntax error
4173_ACEOF
4174if { (ac_try="$ac_cpp conftest.$ac_ext"
4175case "(($ac_try" in
4176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177  *) ac_try_echo=$ac_try;;
4178esac
4179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180$as_echo "$ac_try_echo") >&5
4181  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4182  ac_status=$?
4183  grep -v '^ *+' conftest.er1 >conftest.err
4184  rm -f conftest.er1
4185  cat conftest.err >&5
4186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187  (exit $ac_status); } >/dev/null && {
4188	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4189	 test ! -s conftest.err
4190       }; then
4191  :
4192else
4193  $as_echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196  # Broken: fails on valid input.
4197continue
4198fi
4199
4200rm -f conftest.err conftest.$ac_ext
4201
4202  # OK, works on sane cases.  Now check whether nonexistent headers
4203  # can be detected and how.
4204  cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h.  */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h.  */
4210#include <ac_nonexistent.h>
4211_ACEOF
4212if { (ac_try="$ac_cpp conftest.$ac_ext"
4213case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218$as_echo "$ac_try_echo") >&5
4219  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220  ac_status=$?
4221  grep -v '^ *+' conftest.er1 >conftest.err
4222  rm -f conftest.er1
4223  cat conftest.err >&5
4224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225  (exit $ac_status); } >/dev/null && {
4226	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227	 test ! -s conftest.err
4228       }; then
4229  # Broken: success on invalid input.
4230continue
4231else
4232  $as_echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235  # Passes both tests.
4236ac_preproc_ok=:
4237break
4238fi
4239
4240rm -f conftest.err conftest.$ac_ext
4241
4242done
4243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244rm -f conftest.err conftest.$ac_ext
4245if $ac_preproc_ok; then
4246  :
4247else
4248  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4251See \`config.log' for more details." >&5
4252$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4253See \`config.log' for more details." >&2;}
4254   { (exit 1); exit 1; }; }; }
4255fi
4256
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263
4264{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4265$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4266if test "${ac_cv_path_GREP+set}" = set; then
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -z "$GREP"; then
4270  ac_path_GREP_found=false
4271  # Loop through the user's path and test for each of PROGNAME-LIST
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_prog in grep ggrep; do
4278    for ac_exec_ext in '' $ac_executable_extensions; do
4279      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4280      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4281# Check for GNU ac_path_GREP and select it if it is found.
4282  # Check for GNU $ac_path_GREP
4283case `"$ac_path_GREP" --version 2>&1` in
4284*GNU*)
4285  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4286*)
4287  ac_count=0
4288  $as_echo_n 0123456789 >"conftest.in"
4289  while :
4290  do
4291    cat "conftest.in" "conftest.in" >"conftest.tmp"
4292    mv "conftest.tmp" "conftest.in"
4293    cp "conftest.in" "conftest.nl"
4294    $as_echo 'GREP' >> "conftest.nl"
4295    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297    ac_count=`expr $ac_count + 1`
4298    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4299      # Best one so far, save it but keep looking for a better one
4300      ac_cv_path_GREP="$ac_path_GREP"
4301      ac_path_GREP_max=$ac_count
4302    fi
4303    # 10*(2^10) chars as input seems more than enough
4304    test $ac_count -gt 10 && break
4305  done
4306  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307esac
4308
4309      $ac_path_GREP_found && break 3
4310    done
4311  done
4312done
4313IFS=$as_save_IFS
4314  if test -z "$ac_cv_path_GREP"; then
4315    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4316$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4317   { (exit 1); exit 1; }; }
4318  fi
4319else
4320  ac_cv_path_GREP=$GREP
4321fi
4322
4323fi
4324{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4325$as_echo "$ac_cv_path_GREP" >&6; }
4326 GREP="$ac_cv_path_GREP"
4327
4328
4329{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4330$as_echo_n "checking for egrep... " >&6; }
4331if test "${ac_cv_path_EGREP+set}" = set; then
4332  $as_echo_n "(cached) " >&6
4333else
4334  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4335   then ac_cv_path_EGREP="$GREP -E"
4336   else
4337     if test -z "$EGREP"; then
4338  ac_path_EGREP_found=false
4339  # Loop through the user's path and test for each of PROGNAME-LIST
4340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345  for ac_prog in egrep; do
4346    for ac_exec_ext in '' $ac_executable_extensions; do
4347      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4348      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4349# Check for GNU ac_path_EGREP and select it if it is found.
4350  # Check for GNU $ac_path_EGREP
4351case `"$ac_path_EGREP" --version 2>&1` in
4352*GNU*)
4353  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4354*)
4355  ac_count=0
4356  $as_echo_n 0123456789 >"conftest.in"
4357  while :
4358  do
4359    cat "conftest.in" "conftest.in" >"conftest.tmp"
4360    mv "conftest.tmp" "conftest.in"
4361    cp "conftest.in" "conftest.nl"
4362    $as_echo 'EGREP' >> "conftest.nl"
4363    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365    ac_count=`expr $ac_count + 1`
4366    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4367      # Best one so far, save it but keep looking for a better one
4368      ac_cv_path_EGREP="$ac_path_EGREP"
4369      ac_path_EGREP_max=$ac_count
4370    fi
4371    # 10*(2^10) chars as input seems more than enough
4372    test $ac_count -gt 10 && break
4373  done
4374  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375esac
4376
4377      $ac_path_EGREP_found && break 3
4378    done
4379  done
4380done
4381IFS=$as_save_IFS
4382  if test -z "$ac_cv_path_EGREP"; then
4383    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4384$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4385   { (exit 1); exit 1; }; }
4386  fi
4387else
4388  ac_cv_path_EGREP=$EGREP
4389fi
4390
4391   fi
4392fi
4393{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4394$as_echo "$ac_cv_path_EGREP" >&6; }
4395 EGREP="$ac_cv_path_EGREP"
4396
4397
4398{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4399$as_echo_n "checking for ANSI C header files... " >&6; }
4400if test "${ac_cv_header_stdc+set}" = set; then
4401  $as_echo_n "(cached) " >&6
4402else
4403  cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409#include <stdlib.h>
4410#include <stdarg.h>
4411#include <string.h>
4412#include <float.h>
4413
4414int
4415main ()
4416{
4417
4418  ;
4419  return 0;
4420}
4421_ACEOF
4422rm -f conftest.$ac_objext
4423if { (ac_try="$ac_compile"
4424case "(($ac_try" in
4425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426  *) ac_try_echo=$ac_try;;
4427esac
4428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4429$as_echo "$ac_try_echo") >&5
4430  (eval "$ac_compile") 2>conftest.er1
4431  ac_status=$?
4432  grep -v '^ *+' conftest.er1 >conftest.err
4433  rm -f conftest.er1
4434  cat conftest.err >&5
4435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); } && {
4437	 test -z "$ac_c_werror_flag" ||
4438	 test ! -s conftest.err
4439       } && test -s conftest.$ac_objext; then
4440  ac_cv_header_stdc=yes
4441else
4442  $as_echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445	ac_cv_header_stdc=no
4446fi
4447
4448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449
4450if test $ac_cv_header_stdc = yes; then
4451  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4452  cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h.  */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h.  */
4458#include <string.h>
4459
4460_ACEOF
4461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462  $EGREP "memchr" >/dev/null 2>&1; then
4463  :
4464else
4465  ac_cv_header_stdc=no
4466fi
4467rm -f conftest*
4468
4469fi
4470
4471if test $ac_cv_header_stdc = yes; then
4472  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4473  cat >conftest.$ac_ext <<_ACEOF
4474/* confdefs.h.  */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4478/* end confdefs.h.  */
4479#include <stdlib.h>
4480
4481_ACEOF
4482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483  $EGREP "free" >/dev/null 2>&1; then
4484  :
4485else
4486  ac_cv_header_stdc=no
4487fi
4488rm -f conftest*
4489
4490fi
4491
4492if test $ac_cv_header_stdc = yes; then
4493  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494  if test "$cross_compiling" = yes; then
4495  :
4496else
4497  cat >conftest.$ac_ext <<_ACEOF
4498/* confdefs.h.  */
4499_ACEOF
4500cat confdefs.h >>conftest.$ac_ext
4501cat >>conftest.$ac_ext <<_ACEOF
4502/* end confdefs.h.  */
4503#include <ctype.h>
4504#include <stdlib.h>
4505#if ((' ' & 0x0FF) == 0x020)
4506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4508#else
4509# define ISLOWER(c) \
4510		   (('a' <= (c) && (c) <= 'i') \
4511		     || ('j' <= (c) && (c) <= 'r') \
4512		     || ('s' <= (c) && (c) <= 'z'))
4513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4514#endif
4515
4516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4517int
4518main ()
4519{
4520  int i;
4521  for (i = 0; i < 256; i++)
4522    if (XOR (islower (i), ISLOWER (i))
4523	|| toupper (i) != TOUPPER (i))
4524      return 2;
4525  return 0;
4526}
4527_ACEOF
4528rm -f conftest$ac_exeext
4529if { (ac_try="$ac_link"
4530case "(($ac_try" in
4531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532  *) ac_try_echo=$ac_try;;
4533esac
4534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535$as_echo "$ac_try_echo") >&5
4536  (eval "$ac_link") 2>&5
4537  ac_status=$?
4538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4540  { (case "(($ac_try" in
4541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542  *) ac_try_echo=$ac_try;;
4543esac
4544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4545$as_echo "$ac_try_echo") >&5
4546  (eval "$ac_try") 2>&5
4547  ac_status=$?
4548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); }; }; then
4550  :
4551else
4552  $as_echo "$as_me: program exited with status $ac_status" >&5
4553$as_echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
4556( exit $ac_status )
4557ac_cv_header_stdc=no
4558fi
4559rm -rf conftest.dSYM
4560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561fi
4562
4563
4564fi
4565fi
4566{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4567$as_echo "$ac_cv_header_stdc" >&6; }
4568if test $ac_cv_header_stdc = yes; then
4569
4570cat >>confdefs.h <<\_ACEOF
4571#define STDC_HEADERS 1
4572_ACEOF
4573
4574fi
4575
4576# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4587		  inttypes.h stdint.h unistd.h
4588do
4589as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4590{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4591$as_echo_n "checking for $ac_header... " >&6; }
4592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4593  $as_echo_n "(cached) " >&6
4594else
4595  cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h.  */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h.  */
4601$ac_includes_default
4602
4603#include <$ac_header>
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (ac_try="$ac_compile"
4607case "(($ac_try" in
4608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609  *) ac_try_echo=$ac_try;;
4610esac
4611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612$as_echo "$ac_try_echo") >&5
4613  (eval "$ac_compile") 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } && {
4620	 test -z "$ac_c_werror_flag" ||
4621	 test ! -s conftest.err
4622       } && test -s conftest.$ac_objext; then
4623  eval "$as_ac_Header=yes"
4624else
4625  $as_echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
4627
4628	eval "$as_ac_Header=no"
4629fi
4630
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632fi
4633ac_res=`eval 'as_val=${'$as_ac_Header'}
4634		 $as_echo "$as_val"'`
4635	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4636$as_echo "$ac_res" >&6; }
4637as_val=`eval 'as_val=${'$as_ac_Header'}
4638		 $as_echo "$as_val"'`
4639   if test "x$as_val" = x""yes; then
4640  cat >>confdefs.h <<_ACEOF
4641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4642_ACEOF
4643
4644fi
4645
4646done
4647
4648
4649
4650
4651if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4652	if test -n "$ac_tool_prefix"; then
4653  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4654set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4658  $as_echo_n "(cached) " >&6
4659else
4660  case $PKG_CONFIG in
4661  [\\/]* | ?:[\\/]*)
4662  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4663  ;;
4664  *)
4665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670  for ac_exec_ext in '' $ac_executable_extensions; do
4671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4673    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677done
4678IFS=$as_save_IFS
4679
4680  ;;
4681esac
4682fi
4683PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4684if test -n "$PKG_CONFIG"; then
4685  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4686$as_echo "$PKG_CONFIG" >&6; }
4687else
4688  { $as_echo "$as_me:$LINENO: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692
4693fi
4694if test -z "$ac_cv_path_PKG_CONFIG"; then
4695  ac_pt_PKG_CONFIG=$PKG_CONFIG
4696  # Extract the first word of "pkg-config", so it can be a program name with args.
4697set dummy pkg-config; ac_word=$2
4698{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4701  $as_echo_n "(cached) " >&6
4702else
4703  case $ac_pt_PKG_CONFIG in
4704  [\\/]* | ?:[\\/]*)
4705  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4706  ;;
4707  *)
4708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713  for ac_exec_ext in '' $ac_executable_extensions; do
4714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4716    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720done
4721IFS=$as_save_IFS
4722
4723  ;;
4724esac
4725fi
4726ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4727if test -n "$ac_pt_PKG_CONFIG"; then
4728  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4729$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4730else
4731  { $as_echo "$as_me:$LINENO: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735  if test "x$ac_pt_PKG_CONFIG" = x; then
4736    PKG_CONFIG=""
4737  else
4738    case $cross_compiling:$ac_tool_warned in
4739yes:)
4740{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742ac_tool_warned=yes ;;
4743esac
4744    PKG_CONFIG=$ac_pt_PKG_CONFIG
4745  fi
4746else
4747  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4748fi
4749
4750fi
4751if test -n "$PKG_CONFIG"; then
4752	_pkg_min_version=0.9.0
4753	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4754$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4755	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4756		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4757$as_echo "yes" >&6; }
4758	else
4759		{ $as_echo "$as_me:$LINENO: result: no" >&5
4760$as_echo "no" >&6; }
4761		PKG_CONFIG=""
4762	fi
4763
4764fi
4765# Make sure we can run config.sub.
4766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4767  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4768$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4769   { (exit 1); exit 1; }; }
4770
4771{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4772$as_echo_n "checking build system type... " >&6; }
4773if test "${ac_cv_build+set}" = set; then
4774  $as_echo_n "(cached) " >&6
4775else
4776  ac_build_alias=$build_alias
4777test "x$ac_build_alias" = x &&
4778  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4779test "x$ac_build_alias" = x &&
4780  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4781$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4782   { (exit 1); exit 1; }; }
4783ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4784  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4785$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4786   { (exit 1); exit 1; }; }
4787
4788fi
4789{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4790$as_echo "$ac_cv_build" >&6; }
4791case $ac_cv_build in
4792*-*-*) ;;
4793*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4794$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4795   { (exit 1); exit 1; }; };;
4796esac
4797build=$ac_cv_build
4798ac_save_IFS=$IFS; IFS='-'
4799set x $ac_cv_build
4800shift
4801build_cpu=$1
4802build_vendor=$2
4803shift; shift
4804# Remember, the first character of IFS is used to create $*,
4805# except with old shells:
4806build_os=$*
4807IFS=$ac_save_IFS
4808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4809
4810
4811{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4812$as_echo_n "checking host system type... " >&6; }
4813if test "${ac_cv_host+set}" = set; then
4814  $as_echo_n "(cached) " >&6
4815else
4816  if test "x$host_alias" = x; then
4817  ac_cv_host=$ac_cv_build
4818else
4819  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4820    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4821$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4822   { (exit 1); exit 1; }; }
4823fi
4824
4825fi
4826{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4827$as_echo "$ac_cv_host" >&6; }
4828case $ac_cv_host in
4829*-*-*) ;;
4830*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4831$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4832   { (exit 1); exit 1; }; };;
4833esac
4834host=$ac_cv_host
4835ac_save_IFS=$IFS; IFS='-'
4836set x $ac_cv_host
4837shift
4838host_cpu=$1
4839host_vendor=$2
4840shift; shift
4841# Remember, the first character of IFS is used to create $*,
4842# except with old shells:
4843host_os=$*
4844IFS=$ac_save_IFS
4845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4846
4847
4848{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4849$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4850if test "${ac_cv_path_SED+set}" = set; then
4851  $as_echo_n "(cached) " >&6
4852else
4853            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4854     for ac_i in 1 2 3 4 5 6 7; do
4855       ac_script="$ac_script$as_nl$ac_script"
4856     done
4857     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4858     $as_unset ac_script || ac_script=
4859     if test -z "$SED"; then
4860  ac_path_SED_found=false
4861  # Loop through the user's path and test for each of PROGNAME-LIST
4862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867  for ac_prog in sed gsed; do
4868    for ac_exec_ext in '' $ac_executable_extensions; do
4869      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4870      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4871# Check for GNU ac_path_SED and select it if it is found.
4872  # Check for GNU $ac_path_SED
4873case `"$ac_path_SED" --version 2>&1` in
4874*GNU*)
4875  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4876*)
4877  ac_count=0
4878  $as_echo_n 0123456789 >"conftest.in"
4879  while :
4880  do
4881    cat "conftest.in" "conftest.in" >"conftest.tmp"
4882    mv "conftest.tmp" "conftest.in"
4883    cp "conftest.in" "conftest.nl"
4884    $as_echo '' >> "conftest.nl"
4885    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887    ac_count=`expr $ac_count + 1`
4888    if test $ac_count -gt ${ac_path_SED_max-0}; then
4889      # Best one so far, save it but keep looking for a better one
4890      ac_cv_path_SED="$ac_path_SED"
4891      ac_path_SED_max=$ac_count
4892    fi
4893    # 10*(2^10) chars as input seems more than enough
4894    test $ac_count -gt 10 && break
4895  done
4896  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897esac
4898
4899      $ac_path_SED_found && break 3
4900    done
4901  done
4902done
4903IFS=$as_save_IFS
4904  if test -z "$ac_cv_path_SED"; then
4905    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4906$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4907   { (exit 1); exit 1; }; }
4908  fi
4909else
4910  ac_cv_path_SED=$SED
4911fi
4912
4913fi
4914{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4915$as_echo "$ac_cv_path_SED" >&6; }
4916 SED="$ac_cv_path_SED"
4917  rm -f conftest.sed
4918
4919
4920
4921
4922
4923if  test "x$GCC" = xyes ; then
4924    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4925-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4926-Wbad-function-cast -Wformat=2"
4927    case `$CC -dumpversion` in
4928    3.4.* | 4.*)
4929	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4930	;;
4931    esac
4932else
4933    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4934$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4935if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat >conftest.$ac_ext <<_ACEOF
4939/* confdefs.h.  */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h.  */
4944$ac_includes_default
4945int
4946main ()
4947{
4948#ifndef __SUNPRO_C
4949  (void) __SUNPRO_C;
4950#endif
4951
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (ac_try="$ac_compile"
4958case "(($ac_try" in
4959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960  *) ac_try_echo=$ac_try;;
4961esac
4962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963$as_echo "$ac_try_echo") >&5
4964  (eval "$ac_compile") 2>conftest.er1
4965  ac_status=$?
4966  grep -v '^ *+' conftest.er1 >conftest.err
4967  rm -f conftest.er1
4968  cat conftest.err >&5
4969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } && {
4971	 test -z "$ac_c_werror_flag" ||
4972	 test ! -s conftest.err
4973       } && test -s conftest.$ac_objext; then
4974  ac_cv_have_decl___SUNPRO_C=yes
4975else
4976  $as_echo "$as_me: failed program was:" >&5
4977sed 's/^/| /' conftest.$ac_ext >&5
4978
4979	ac_cv_have_decl___SUNPRO_C=no
4980fi
4981
4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983fi
4984{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4985$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4986if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4987  SUNCC="yes"
4988else
4989  SUNCC="no"
4990fi
4991
4992    if test "x$SUNCC" = "xyes"; then
4993	CWARNFLAGS="-v"
4994    fi
4995fi
4996
4997
4998
4999# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
5000
5001
5002
5003# Check whether --enable-strict-compilation was given.
5004if test "${enable_strict_compilation+set}" = set; then
5005  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
5006else
5007  STRICT_COMPILE=no
5008fi
5009
5010if test "x$STRICT_COMPILE" = "xyes"; then
5011	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
5012$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
5013if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
5014  $as_echo_n "(cached) " >&6
5015else
5016  cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h.  */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h.  */
5022$ac_includes_default
5023int
5024main ()
5025{
5026#ifndef __SUNPRO_C
5027  (void) __SUNPRO_C;
5028#endif
5029
5030  ;
5031  return 0;
5032}
5033_ACEOF
5034rm -f conftest.$ac_objext
5035if { (ac_try="$ac_compile"
5036case "(($ac_try" in
5037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038  *) ac_try_echo=$ac_try;;
5039esac
5040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041$as_echo "$ac_try_echo") >&5
5042  (eval "$ac_compile") 2>conftest.er1
5043  ac_status=$?
5044  grep -v '^ *+' conftest.er1 >conftest.err
5045  rm -f conftest.er1
5046  cat conftest.err >&5
5047  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048  (exit $ac_status); } && {
5049	 test -z "$ac_c_werror_flag" ||
5050	 test ! -s conftest.err
5051       } && test -s conftest.$ac_objext; then
5052  ac_cv_have_decl___SUNPRO_C=yes
5053else
5054  $as_echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057	ac_cv_have_decl___SUNPRO_C=no
5058fi
5059
5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061fi
5062{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5063$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
5064if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
5065  SUNCC="yes"
5066else
5067  SUNCC="no"
5068fi
5069
5070	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5071$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
5072if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081$ac_includes_default
5082int
5083main ()
5084{
5085#ifndef __INTEL_COMPILER
5086  (void) __INTEL_COMPILER;
5087#endif
5088
5089  ;
5090  return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext
5094if { (ac_try="$ac_compile"
5095case "(($ac_try" in
5096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097  *) ac_try_echo=$ac_try;;
5098esac
5099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100$as_echo "$ac_try_echo") >&5
5101  (eval "$ac_compile") 2>conftest.er1
5102  ac_status=$?
5103  grep -v '^ *+' conftest.er1 >conftest.err
5104  rm -f conftest.er1
5105  cat conftest.err >&5
5106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); } && {
5108	 test -z "$ac_c_werror_flag" ||
5109	 test ! -s conftest.err
5110       } && test -s conftest.$ac_objext; then
5111  ac_cv_have_decl___INTEL_COMPILER=yes
5112else
5113  $as_echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116	ac_cv_have_decl___INTEL_COMPILER=no
5117fi
5118
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120fi
5121{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5122$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5123if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5124  INTELCC="yes"
5125else
5126  INTELCC="no"
5127fi
5128
5129	if test "x$GCC" = xyes ; then
5130		STRICT_CFLAGS="-pedantic -Werror"
5131	elif test "x$SUNCC" = "xyes"; then
5132		STRICT_CFLAGS="-errwarn"
5133    elif test "x$INTELCC" = "xyes"; then
5134		STRICT_CFLAGS="-Werror"
5135	fi
5136fi
5137CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5138
5139
5140
5141
5142cat >>confdefs.h <<_ACEOF
5143#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5144_ACEOF
5145
5146	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5147	if test "x$PVM" = "x"; then
5148		PVM="0"
5149	fi
5150
5151cat >>confdefs.h <<_ACEOF
5152#define PACKAGE_VERSION_MINOR $PVM
5153_ACEOF
5154
5155	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5156	if test "x$PVP" = "x"; then
5157		PVP="0"
5158	fi
5159
5160cat >>confdefs.h <<_ACEOF
5161#define PACKAGE_VERSION_PATCHLEVEL $PVP
5162_ACEOF
5163
5164
5165
5166CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5167mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5168|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5169echo 'git directory not found: installing possibly empty changelog.' >&2)"
5170
5171
5172
5173
5174macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5175INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5176mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5177|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5178echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5179
5180
5181
5182
5183
5184
5185if test x$APP_MAN_SUFFIX = x    ; then
5186    APP_MAN_SUFFIX=1
5187fi
5188if test x$APP_MAN_DIR = x    ; then
5189    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5190fi
5191
5192if test x$LIB_MAN_SUFFIX = x    ; then
5193    LIB_MAN_SUFFIX=3
5194fi
5195if test x$LIB_MAN_DIR = x    ; then
5196    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5197fi
5198
5199if test x$FILE_MAN_SUFFIX = x    ; then
5200    case $host_os in
5201	solaris*)	FILE_MAN_SUFFIX=4  ;;
5202	*)		FILE_MAN_SUFFIX=5  ;;
5203    esac
5204fi
5205if test x$FILE_MAN_DIR = x    ; then
5206    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5207fi
5208
5209if test x$MISC_MAN_SUFFIX = x    ; then
5210    case $host_os in
5211	solaris*)	MISC_MAN_SUFFIX=5  ;;
5212	*)		MISC_MAN_SUFFIX=7  ;;
5213    esac
5214fi
5215if test x$MISC_MAN_DIR = x    ; then
5216    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5217fi
5218
5219if test x$DRIVER_MAN_SUFFIX = x    ; then
5220    case $host_os in
5221	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5222	*)		DRIVER_MAN_SUFFIX=4  ;;
5223    esac
5224fi
5225if test x$DRIVER_MAN_DIR = x    ; then
5226    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5227fi
5228
5229if test x$ADMIN_MAN_SUFFIX = x    ; then
5230    case $host_os in
5231	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5232	*)		ADMIN_MAN_SUFFIX=8  ;;
5233    esac
5234fi
5235if test x$ADMIN_MAN_DIR = x    ; then
5236    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5237fi
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253XORG_MAN_PAGE="X Version 11"
5254
5255MAN_SUBSTS="\
5256	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5257	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5258	-e 's|__xservername__|Xorg|g' \
5259	-e 's|__xconfigfile__|xorg.conf|g' \
5260	-e 's|__projectroot__|\$(prefix)|g' \
5261	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5262	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5263	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5264	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5265	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5266	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5267
5268
5269
5270AM_DEFAULT_VERBOSITY=1
5271
5272
5273
5274devel_default=
5275if test "x$devel_default" = x ; then
5276  devel_default="yes"
5277fi
5278# Check whether --enable-devel-docs was given.
5279if test "${enable_devel_docs+set}" = set; then
5280  enableval=$enable_devel_docs; build_devel_docs=$enableval
5281else
5282  build_devel_docs=$devel_default
5283fi
5284
5285 if test x$build_devel_docs = xyes; then
5286  ENABLE_DEVEL_DOCS_TRUE=
5287  ENABLE_DEVEL_DOCS_FALSE='#'
5288else
5289  ENABLE_DEVEL_DOCS_TRUE='#'
5290  ENABLE_DEVEL_DOCS_FALSE=
5291fi
5292
5293{ $as_echo "$as_me:$LINENO: checking whether to build developer documentation" >&5
5294$as_echo_n "checking whether to build developer documentation... " >&6; }
5295{ $as_echo "$as_me:$LINENO: result: $build_devel_docs" >&5
5296$as_echo "$build_devel_docs" >&6; }
5297
5298
5299
5300
5301# Check whether --with-xmlto was given.
5302if test "${with_xmlto+set}" = set; then
5303  withval=$with_xmlto; use_xmlto=$withval
5304else
5305  use_xmlto=auto
5306fi
5307
5308
5309if test "x$use_xmlto" = x"auto"; then
5310   # Extract the first word of "xmlto", so it can be a program name with args.
5311set dummy xmlto; ac_word=$2
5312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if test "${ac_cv_path_XMLTO+set}" = set; then
5315  $as_echo_n "(cached) " >&6
5316else
5317  case $XMLTO in
5318  [\\/]* | ?:[\\/]*)
5319  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5320  ;;
5321  *)
5322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325  IFS=$as_save_IFS
5326  test -z "$as_dir" && as_dir=.
5327  for ac_exec_ext in '' $ac_executable_extensions; do
5328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5330    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331    break 2
5332  fi
5333done
5334done
5335IFS=$as_save_IFS
5336
5337  ;;
5338esac
5339fi
5340XMLTO=$ac_cv_path_XMLTO
5341if test -n "$XMLTO"; then
5342  { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
5343$as_echo "$XMLTO" >&6; }
5344else
5345  { $as_echo "$as_me:$LINENO: result: no" >&5
5346$as_echo "no" >&6; }
5347fi
5348
5349
5350   if test "x$XMLTO" = "x"; then
5351        { $as_echo "$as_me:$LINENO: WARNING: xmlto not found - documentation targets will be skipped" >&5
5352$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5353	have_xmlto=no
5354   else
5355        have_xmlto=yes
5356   fi
5357elif test "x$use_xmlto" = x"yes" ; then
5358   # Extract the first word of "xmlto", so it can be a program name with args.
5359set dummy xmlto; ac_word=$2
5360{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5361$as_echo_n "checking for $ac_word... " >&6; }
5362if test "${ac_cv_path_XMLTO+set}" = set; then
5363  $as_echo_n "(cached) " >&6
5364else
5365  case $XMLTO in
5366  [\\/]* | ?:[\\/]*)
5367  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5368  ;;
5369  *)
5370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373  IFS=$as_save_IFS
5374  test -z "$as_dir" && as_dir=.
5375  for ac_exec_ext in '' $ac_executable_extensions; do
5376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5378    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379    break 2
5380  fi
5381done
5382done
5383IFS=$as_save_IFS
5384
5385  ;;
5386esac
5387fi
5388XMLTO=$ac_cv_path_XMLTO
5389if test -n "$XMLTO"; then
5390  { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
5391$as_echo "$XMLTO" >&6; }
5392else
5393  { $as_echo "$as_me:$LINENO: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398   if test "x$XMLTO" = "x"; then
5399        { { $as_echo "$as_me:$LINENO: error: --with-xmlto=yes specified but xmlto not found in PATH" >&5
5400$as_echo "$as_me: error: --with-xmlto=yes specified but xmlto not found in PATH" >&2;}
5401   { (exit 1); exit 1; }; }
5402   fi
5403   have_xmlto=yes
5404elif test "x$use_xmlto" = x"no" ; then
5405   if test "x$XMLTO" != "x"; then
5406      { $as_echo "$as_me:$LINENO: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5407$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5408   fi
5409   have_xmlto=no
5410else
5411   { { $as_echo "$as_me:$LINENO: error: --with-xmlto expects 'yes' or 'no'" >&5
5412$as_echo "$as_me: error: --with-xmlto expects 'yes' or 'no'" >&2;}
5413   { (exit 1); exit 1; }; }
5414fi
5415if test "$have_xmlto" = yes; then
5416    # scrape the xmlto version
5417    { $as_echo "$as_me:$LINENO: checking the xmlto version" >&5
5418$as_echo_n "checking the xmlto version... " >&6; }
5419    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5420    { $as_echo "$as_me:$LINENO: result: $xmlto_version" >&5
5421$as_echo "$xmlto_version" >&6; }
5422    as_arg_v1=$xmlto_version
5423as_arg_v2=0.0.20
5424awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5425case $? in
54261) if test "x$use_xmlto" = xauto; then
5427            { $as_echo "$as_me:$LINENO: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5428$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5429            have_xmlto=no
5430        else
5431            { { $as_echo "$as_me:$LINENO: error: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5432$as_echo "$as_me: error: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5433   { (exit 1); exit 1; }; }
5434        fi;;
54350) ;;
54362) ;;
5437esac
5438fi
5439 if test "$have_xmlto" = yes; then
5440  HAVE_XMLTO_TRUE=
5441  HAVE_XMLTO_FALSE='#'
5442else
5443  HAVE_XMLTO_TRUE='#'
5444  HAVE_XMLTO_FALSE=
5445fi
5446
5447
5448
5449
5450
5451# Check whether --with-fop was given.
5452if test "${with_fop+set}" = set; then
5453  withval=$with_fop; use_fop=$withval
5454else
5455  use_fop=auto
5456fi
5457
5458
5459if test "x$use_fop" = x"auto"; then
5460   # Extract the first word of "fop", so it can be a program name with args.
5461set dummy fop; ac_word=$2
5462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_path_FOP+set}" = set; then
5465  $as_echo_n "(cached) " >&6
5466else
5467  case $FOP in
5468  [\\/]* | ?:[\\/]*)
5469  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5470  ;;
5471  *)
5472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477  for ac_exec_ext in '' $ac_executable_extensions; do
5478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5480    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484done
5485IFS=$as_save_IFS
5486
5487  ;;
5488esac
5489fi
5490FOP=$ac_cv_path_FOP
5491if test -n "$FOP"; then
5492  { $as_echo "$as_me:$LINENO: result: $FOP" >&5
5493$as_echo "$FOP" >&6; }
5494else
5495  { $as_echo "$as_me:$LINENO: result: no" >&5
5496$as_echo "no" >&6; }
5497fi
5498
5499
5500   if test "x$FOP" = "x"; then
5501        { $as_echo "$as_me:$LINENO: WARNING: fop not found - documentation targets will be skipped" >&5
5502$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5503	have_fop=no
5504   else
5505        have_fop=yes
5506   fi
5507elif test "x$use_fop" = x"yes" ; then
5508   # Extract the first word of "fop", so it can be a program name with args.
5509set dummy fop; ac_word=$2
5510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
5512if test "${ac_cv_path_FOP+set}" = set; then
5513  $as_echo_n "(cached) " >&6
5514else
5515  case $FOP in
5516  [\\/]* | ?:[\\/]*)
5517  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5518  ;;
5519  *)
5520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525  for ac_exec_ext in '' $ac_executable_extensions; do
5526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5528    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532done
5533IFS=$as_save_IFS
5534
5535  ;;
5536esac
5537fi
5538FOP=$ac_cv_path_FOP
5539if test -n "$FOP"; then
5540  { $as_echo "$as_me:$LINENO: result: $FOP" >&5
5541$as_echo "$FOP" >&6; }
5542else
5543  { $as_echo "$as_me:$LINENO: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548   if test "x$FOP" = "x"; then
5549        { { $as_echo "$as_me:$LINENO: error: --with-fop=yes specified but fop not found in PATH" >&5
5550$as_echo "$as_me: error: --with-fop=yes specified but fop not found in PATH" >&2;}
5551   { (exit 1); exit 1; }; }
5552   fi
5553   have_fop=yes
5554elif test "x$use_fop" = x"no" ; then
5555   if test "x$FOP" != "x"; then
5556      { $as_echo "$as_me:$LINENO: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5557$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5558   fi
5559   have_fop=no
5560else
5561   { { $as_echo "$as_me:$LINENO: error: --with-fop expects 'yes' or 'no'" >&5
5562$as_echo "$as_me: error: --with-fop expects 'yes' or 'no'" >&2;}
5563   { (exit 1); exit 1; }; }
5564fi
5565 if test "$have_fop" = yes; then
5566  HAVE_FOP_TRUE=
5567  HAVE_FOP_FALSE='#'
5568else
5569  HAVE_FOP_TRUE='#'
5570  HAVE_FOP_FALSE=
5571fi
5572
5573
5574
5575# Check for progs
5576ac_ext=c
5577ac_cpp='$CPP $CPPFLAGS'
5578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580ac_compiler_gnu=$ac_cv_c_compiler_gnu
5581if test -n "$ac_tool_prefix"; then
5582  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5583set dummy ${ac_tool_prefix}gcc; ac_word=$2
5584{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5585$as_echo_n "checking for $ac_word... " >&6; }
5586if test "${ac_cv_prog_CC+set}" = set; then
5587  $as_echo_n "(cached) " >&6
5588else
5589  if test -n "$CC"; then
5590  ac_cv_prog_CC="$CC" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595  IFS=$as_save_IFS
5596  test -z "$as_dir" && as_dir=.
5597  for ac_exec_ext in '' $ac_executable_extensions; do
5598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5600    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601    break 2
5602  fi
5603done
5604done
5605IFS=$as_save_IFS
5606
5607fi
5608fi
5609CC=$ac_cv_prog_CC
5610if test -n "$CC"; then
5611  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5612$as_echo "$CC" >&6; }
5613else
5614  { $as_echo "$as_me:$LINENO: result: no" >&5
5615$as_echo "no" >&6; }
5616fi
5617
5618
5619fi
5620if test -z "$ac_cv_prog_CC"; then
5621  ac_ct_CC=$CC
5622  # Extract the first word of "gcc", so it can be a program name with args.
5623set dummy gcc; ac_word=$2
5624{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5625$as_echo_n "checking for $ac_word... " >&6; }
5626if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5627  $as_echo_n "(cached) " >&6
5628else
5629  if test -n "$ac_ct_CC"; then
5630  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  test -z "$as_dir" && as_dir=.
5637  for ac_exec_ext in '' $ac_executable_extensions; do
5638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639    ac_cv_prog_ac_ct_CC="gcc"
5640    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641    break 2
5642  fi
5643done
5644done
5645IFS=$as_save_IFS
5646
5647fi
5648fi
5649ac_ct_CC=$ac_cv_prog_ac_ct_CC
5650if test -n "$ac_ct_CC"; then
5651  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5652$as_echo "$ac_ct_CC" >&6; }
5653else
5654  { $as_echo "$as_me:$LINENO: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658  if test "x$ac_ct_CC" = x; then
5659    CC=""
5660  else
5661    case $cross_compiling:$ac_tool_warned in
5662yes:)
5663{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667    CC=$ac_ct_CC
5668  fi
5669else
5670  CC="$ac_cv_prog_CC"
5671fi
5672
5673if test -z "$CC"; then
5674          if test -n "$ac_tool_prefix"; then
5675    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5676set dummy ${ac_tool_prefix}cc; ac_word=$2
5677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if test "${ac_cv_prog_CC+set}" = set; then
5680  $as_echo_n "(cached) " >&6
5681else
5682  if test -n "$CC"; then
5683  ac_cv_prog_CC="$CC" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690  for ac_exec_ext in '' $ac_executable_extensions; do
5691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692    ac_cv_prog_CC="${ac_tool_prefix}cc"
5693    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702CC=$ac_cv_prog_CC
5703if test -n "$CC"; then
5704  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5705$as_echo "$CC" >&6; }
5706else
5707  { $as_echo "$as_me:$LINENO: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712  fi
5713fi
5714if test -z "$CC"; then
5715  # Extract the first word of "cc", so it can be a program name with args.
5716set dummy cc; ac_word=$2
5717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if test "${ac_cv_prog_CC+set}" = set; then
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$CC"; then
5723  ac_cv_prog_CC="$CC" # Let the user override the test.
5724else
5725  ac_prog_rejected=no
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731  for ac_exec_ext in '' $ac_executable_extensions; do
5732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5734       ac_prog_rejected=yes
5735       continue
5736     fi
5737    ac_cv_prog_CC="cc"
5738    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739    break 2
5740  fi
5741done
5742done
5743IFS=$as_save_IFS
5744
5745if test $ac_prog_rejected = yes; then
5746  # We found a bogon in the path, so make sure we never use it.
5747  set dummy $ac_cv_prog_CC
5748  shift
5749  if test $# != 0; then
5750    # We chose a different compiler from the bogus one.
5751    # However, it has the same basename, so the bogon will be chosen
5752    # first if we set CC to just the basename; use the full file name.
5753    shift
5754    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5755  fi
5756fi
5757fi
5758fi
5759CC=$ac_cv_prog_CC
5760if test -n "$CC"; then
5761  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5762$as_echo "$CC" >&6; }
5763else
5764  { $as_echo "$as_me:$LINENO: result: no" >&5
5765$as_echo "no" >&6; }
5766fi
5767
5768
5769fi
5770if test -z "$CC"; then
5771  if test -n "$ac_tool_prefix"; then
5772  for ac_prog in cl.exe
5773  do
5774    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if test "${ac_cv_prog_CC+set}" = set; then
5779  $as_echo_n "(cached) " >&6
5780else
5781  if test -n "$CC"; then
5782  ac_cv_prog_CC="$CC" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789  for ac_exec_ext in '' $ac_executable_extensions; do
5790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5792    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801CC=$ac_cv_prog_CC
5802if test -n "$CC"; then
5803  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5804$as_echo "$CC" >&6; }
5805else
5806  { $as_echo "$as_me:$LINENO: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
5811    test -n "$CC" && break
5812  done
5813fi
5814if test -z "$CC"; then
5815  ac_ct_CC=$CC
5816  for ac_prog in cl.exe
5817do
5818  # Extract the first word of "$ac_prog", so it can be a program name with args.
5819set dummy $ac_prog; ac_word=$2
5820{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
5822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5823  $as_echo_n "(cached) " >&6
5824else
5825  if test -n "$ac_ct_CC"; then
5826  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831  IFS=$as_save_IFS
5832  test -z "$as_dir" && as_dir=.
5833  for ac_exec_ext in '' $ac_executable_extensions; do
5834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835    ac_cv_prog_ac_ct_CC="$ac_prog"
5836    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837    break 2
5838  fi
5839done
5840done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
5845ac_ct_CC=$ac_cv_prog_ac_ct_CC
5846if test -n "$ac_ct_CC"; then
5847  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5848$as_echo "$ac_ct_CC" >&6; }
5849else
5850  { $as_echo "$as_me:$LINENO: result: no" >&5
5851$as_echo "no" >&6; }
5852fi
5853
5854
5855  test -n "$ac_ct_CC" && break
5856done
5857
5858  if test "x$ac_ct_CC" = x; then
5859    CC=""
5860  else
5861    case $cross_compiling:$ac_tool_warned in
5862yes:)
5863{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865ac_tool_warned=yes ;;
5866esac
5867    CC=$ac_ct_CC
5868  fi
5869fi
5870
5871fi
5872
5873
5874test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5877See \`config.log' for more details." >&5
5878$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5879See \`config.log' for more details." >&2;}
5880   { (exit 1); exit 1; }; }; }
5881
5882# Provide some information about the compiler.
5883$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5884set X $ac_compile
5885ac_compiler=$2
5886{ (ac_try="$ac_compiler --version >&5"
5887case "(($ac_try" in
5888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889  *) ac_try_echo=$ac_try;;
5890esac
5891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892$as_echo "$ac_try_echo") >&5
5893  (eval "$ac_compiler --version >&5") 2>&5
5894  ac_status=$?
5895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); }
5897{ (ac_try="$ac_compiler -v >&5"
5898case "(($ac_try" in
5899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900  *) ac_try_echo=$ac_try;;
5901esac
5902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903$as_echo "$ac_try_echo") >&5
5904  (eval "$ac_compiler -v >&5") 2>&5
5905  ac_status=$?
5906  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); }
5908{ (ac_try="$ac_compiler -V >&5"
5909case "(($ac_try" in
5910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911  *) ac_try_echo=$ac_try;;
5912esac
5913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5914$as_echo "$ac_try_echo") >&5
5915  (eval "$ac_compiler -V >&5") 2>&5
5916  ac_status=$?
5917  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); }
5919
5920{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5921$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5922if test "${ac_cv_c_compiler_gnu+set}" = set; then
5923  $as_echo_n "(cached) " >&6
5924else
5925  cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h.  */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h.  */
5931
5932int
5933main ()
5934{
5935#ifndef __GNUC__
5936       choke me
5937#endif
5938
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext
5944if { (ac_try="$ac_compile"
5945case "(($ac_try" in
5946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947  *) ac_try_echo=$ac_try;;
5948esac
5949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950$as_echo "$ac_try_echo") >&5
5951  (eval "$ac_compile") 2>conftest.er1
5952  ac_status=$?
5953  grep -v '^ *+' conftest.er1 >conftest.err
5954  rm -f conftest.er1
5955  cat conftest.err >&5
5956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } && {
5958	 test -z "$ac_c_werror_flag" ||
5959	 test ! -s conftest.err
5960       } && test -s conftest.$ac_objext; then
5961  ac_compiler_gnu=yes
5962else
5963  $as_echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966	ac_compiler_gnu=no
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970ac_cv_c_compiler_gnu=$ac_compiler_gnu
5971
5972fi
5973{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5974$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5975if test $ac_compiler_gnu = yes; then
5976  GCC=yes
5977else
5978  GCC=
5979fi
5980ac_test_CFLAGS=${CFLAGS+set}
5981ac_save_CFLAGS=$CFLAGS
5982{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5983$as_echo_n "checking whether $CC accepts -g... " >&6; }
5984if test "${ac_cv_prog_cc_g+set}" = set; then
5985  $as_echo_n "(cached) " >&6
5986else
5987  ac_save_c_werror_flag=$ac_c_werror_flag
5988   ac_c_werror_flag=yes
5989   ac_cv_prog_cc_g=no
5990   CFLAGS="-g"
5991   cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997
5998int
5999main ()
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010  *) ac_try_echo=$ac_try;;
6011esac
6012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013$as_echo "$ac_try_echo") >&5
6014  (eval "$ac_compile") 2>conftest.er1
6015  ac_status=$?
6016  grep -v '^ *+' conftest.er1 >conftest.err
6017  rm -f conftest.er1
6018  cat conftest.err >&5
6019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); } && {
6021	 test -z "$ac_c_werror_flag" ||
6022	 test ! -s conftest.err
6023       } && test -s conftest.$ac_objext; then
6024  ac_cv_prog_cc_g=yes
6025else
6026  $as_echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029	CFLAGS=""
6030      cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h.  */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h.  */
6036
6037int
6038main ()
6039{
6040
6041  ;
6042  return 0;
6043}
6044_ACEOF
6045rm -f conftest.$ac_objext
6046if { (ac_try="$ac_compile"
6047case "(($ac_try" in
6048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049  *) ac_try_echo=$ac_try;;
6050esac
6051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6052$as_echo "$ac_try_echo") >&5
6053  (eval "$ac_compile") 2>conftest.er1
6054  ac_status=$?
6055  grep -v '^ *+' conftest.er1 >conftest.err
6056  rm -f conftest.er1
6057  cat conftest.err >&5
6058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); } && {
6060	 test -z "$ac_c_werror_flag" ||
6061	 test ! -s conftest.err
6062       } && test -s conftest.$ac_objext; then
6063  :
6064else
6065  $as_echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068	ac_c_werror_flag=$ac_save_c_werror_flag
6069	 CFLAGS="-g"
6070	 cat >conftest.$ac_ext <<_ACEOF
6071/* confdefs.h.  */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h.  */
6076
6077int
6078main ()
6079{
6080
6081  ;
6082  return 0;
6083}
6084_ACEOF
6085rm -f conftest.$ac_objext
6086if { (ac_try="$ac_compile"
6087case "(($ac_try" in
6088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089  *) ac_try_echo=$ac_try;;
6090esac
6091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092$as_echo "$ac_try_echo") >&5
6093  (eval "$ac_compile") 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } && {
6100	 test -z "$ac_c_werror_flag" ||
6101	 test ! -s conftest.err
6102       } && test -s conftest.$ac_objext; then
6103  ac_cv_prog_cc_g=yes
6104else
6105  $as_echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108
6109fi
6110
6111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112fi
6113
6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115fi
6116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118   ac_c_werror_flag=$ac_save_c_werror_flag
6119fi
6120{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6121$as_echo "$ac_cv_prog_cc_g" >&6; }
6122if test "$ac_test_CFLAGS" = set; then
6123  CFLAGS=$ac_save_CFLAGS
6124elif test $ac_cv_prog_cc_g = yes; then
6125  if test "$GCC" = yes; then
6126    CFLAGS="-g -O2"
6127  else
6128    CFLAGS="-g"
6129  fi
6130else
6131  if test "$GCC" = yes; then
6132    CFLAGS="-O2"
6133  else
6134    CFLAGS=
6135  fi
6136fi
6137{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6138$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6139if test "${ac_cv_prog_cc_c89+set}" = set; then
6140  $as_echo_n "(cached) " >&6
6141else
6142  ac_cv_prog_cc_c89=no
6143ac_save_CC=$CC
6144cat >conftest.$ac_ext <<_ACEOF
6145/* confdefs.h.  */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h.  */
6150#include <stdarg.h>
6151#include <stdio.h>
6152#include <sys/types.h>
6153#include <sys/stat.h>
6154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6155struct buf { int x; };
6156FILE * (*rcsopen) (struct buf *, struct stat *, int);
6157static char *e (p, i)
6158     char **p;
6159     int i;
6160{
6161  return p[i];
6162}
6163static char *f (char * (*g) (char **, int), char **p, ...)
6164{
6165  char *s;
6166  va_list v;
6167  va_start (v,p);
6168  s = g (p, va_arg (v,int));
6169  va_end (v);
6170  return s;
6171}
6172
6173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6174   function prototypes and stuff, but not '\xHH' hex character constants.
6175   These don't provoke an error unfortunately, instead are silently treated
6176   as 'x'.  The following induces an error, until -std is added to get
6177   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6178   array size at least.  It's necessary to write '\x00'==0 to get something
6179   that's true only with -std.  */
6180int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6181
6182/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6183   inside strings and character constants.  */
6184#define FOO(x) 'x'
6185int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6186
6187int test (int i, double x);
6188struct s1 {int (*f) (int a);};
6189struct s2 {int (*f) (double a);};
6190int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6191int argc;
6192char **argv;
6193int
6194main ()
6195{
6196return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6197  ;
6198  return 0;
6199}
6200_ACEOF
6201for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6202	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6203do
6204  CC="$ac_save_CC $ac_arg"
6205  rm -f conftest.$ac_objext
6206if { (ac_try="$ac_compile"
6207case "(($ac_try" in
6208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209  *) ac_try_echo=$ac_try;;
6210esac
6211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212$as_echo "$ac_try_echo") >&5
6213  (eval "$ac_compile") 2>conftest.er1
6214  ac_status=$?
6215  grep -v '^ *+' conftest.er1 >conftest.err
6216  rm -f conftest.er1
6217  cat conftest.err >&5
6218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); } && {
6220	 test -z "$ac_c_werror_flag" ||
6221	 test ! -s conftest.err
6222       } && test -s conftest.$ac_objext; then
6223  ac_cv_prog_cc_c89=$ac_arg
6224else
6225  $as_echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228
6229fi
6230
6231rm -f core conftest.err conftest.$ac_objext
6232  test "x$ac_cv_prog_cc_c89" != "xno" && break
6233done
6234rm -f conftest.$ac_ext
6235CC=$ac_save_CC
6236
6237fi
6238# AC_CACHE_VAL
6239case "x$ac_cv_prog_cc_c89" in
6240  x)
6241    { $as_echo "$as_me:$LINENO: result: none needed" >&5
6242$as_echo "none needed" >&6; } ;;
6243  xno)
6244    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6245$as_echo "unsupported" >&6; } ;;
6246  *)
6247    CC="$CC $ac_cv_prog_cc_c89"
6248    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6249$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6250esac
6251
6252
6253ac_ext=c
6254ac_cpp='$CPP $CPPFLAGS'
6255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259depcc="$CC"   am_compiler_list=
6260
6261{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6262$as_echo_n "checking dependency style of $depcc... " >&6; }
6263if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6264  $as_echo_n "(cached) " >&6
6265else
6266  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6267  # We make a subdir and do the tests there.  Otherwise we can end up
6268  # making bogus files that we don't know about and never remove.  For
6269  # instance it was reported that on HP-UX the gcc test will end up
6270  # making a dummy file named `D' -- because `-MD' means `put the output
6271  # in D'.
6272  mkdir conftest.dir
6273  # Copy depcomp to subdir because otherwise we won't find it if we're
6274  # using a relative directory.
6275  cp "$am_depcomp" conftest.dir
6276  cd conftest.dir
6277  # We will build objects and dependencies in a subdirectory because
6278  # it helps to detect inapplicable dependency modes.  For instance
6279  # both Tru64's cc and ICC support -MD to output dependencies as a
6280  # side effect of compilation, but ICC will put the dependencies in
6281  # the current directory while Tru64 will put them in the object
6282  # directory.
6283  mkdir sub
6284
6285  am_cv_CC_dependencies_compiler_type=none
6286  if test "$am_compiler_list" = ""; then
6287     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6288  fi
6289  for depmode in $am_compiler_list; do
6290    # Setup a source with many dependencies, because some compilers
6291    # like to wrap large dependency lists on column 80 (with \), and
6292    # we should not choose a depcomp mode which is confused by this.
6293    #
6294    # We need to recreate these files for each test, as the compiler may
6295    # overwrite some of them when testing with obscure command lines.
6296    # This happens at least with the AIX C compiler.
6297    : > sub/conftest.c
6298    for i in 1 2 3 4 5 6; do
6299      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6300      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6301      # Solaris 8's {/usr,}/bin/sh.
6302      touch sub/conftst$i.h
6303    done
6304    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6305
6306    case $depmode in
6307    nosideeffect)
6308      # after this tag, mechanisms are not by side-effect, so they'll
6309      # only be used when explicitly requested
6310      if test "x$enable_dependency_tracking" = xyes; then
6311	continue
6312      else
6313	break
6314      fi
6315      ;;
6316    none) break ;;
6317    esac
6318    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6319    # mode.  It turns out that the SunPro C++ compiler does not properly
6320    # handle `-M -o', and we need to detect this.
6321    if depmode=$depmode \
6322       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6323       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6324       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6325         >/dev/null 2>conftest.err &&
6326       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6327       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6328       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6329       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6330      # icc doesn't choke on unknown options, it will just issue warnings
6331      # or remarks (even with -Werror).  So we grep stderr for any message
6332      # that says an option was ignored or not supported.
6333      # When given -MP, icc 7.0 and 7.1 complain thusly:
6334      #   icc: Command line warning: ignoring option '-M'; no argument required
6335      # The diagnosis changed in icc 8.0:
6336      #   icc: Command line remark: option '-MP' not supported
6337      if (grep 'ignoring option' conftest.err ||
6338          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6339        am_cv_CC_dependencies_compiler_type=$depmode
6340        break
6341      fi
6342    fi
6343  done
6344
6345  cd ..
6346  rm -rf conftest.dir
6347else
6348  am_cv_CC_dependencies_compiler_type=none
6349fi
6350
6351fi
6352{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6353$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6354CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6355
6356 if
6357  test "x$enable_dependency_tracking" != xno \
6358  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6359  am__fastdepCC_TRUE=
6360  am__fastdepCC_FALSE='#'
6361else
6362  am__fastdepCC_TRUE='#'
6363  am__fastdepCC_FALSE=
6364fi
6365
6366
6367case `pwd` in
6368  *\ * | *\	*)
6369    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6370$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6371esac
6372
6373
6374
6375macro_version='2.2.6'
6376macro_revision='1.3012'
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390ltmain="$ac_aux_dir/ltmain.sh"
6391
6392{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6393$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6394if test "${ac_cv_path_SED+set}" = set; then
6395  $as_echo_n "(cached) " >&6
6396else
6397            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6398     for ac_i in 1 2 3 4 5 6 7; do
6399       ac_script="$ac_script$as_nl$ac_script"
6400     done
6401     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6402     $as_unset ac_script || ac_script=
6403     if test -z "$SED"; then
6404  ac_path_SED_found=false
6405  # Loop through the user's path and test for each of PROGNAME-LIST
6406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  test -z "$as_dir" && as_dir=.
6411  for ac_prog in sed gsed; do
6412    for ac_exec_ext in '' $ac_executable_extensions; do
6413      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6414      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6415# Check for GNU ac_path_SED and select it if it is found.
6416  # Check for GNU $ac_path_SED
6417case `"$ac_path_SED" --version 2>&1` in
6418*GNU*)
6419  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6420*)
6421  ac_count=0
6422  $as_echo_n 0123456789 >"conftest.in"
6423  while :
6424  do
6425    cat "conftest.in" "conftest.in" >"conftest.tmp"
6426    mv "conftest.tmp" "conftest.in"
6427    cp "conftest.in" "conftest.nl"
6428    $as_echo '' >> "conftest.nl"
6429    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6431    ac_count=`expr $ac_count + 1`
6432    if test $ac_count -gt ${ac_path_SED_max-0}; then
6433      # Best one so far, save it but keep looking for a better one
6434      ac_cv_path_SED="$ac_path_SED"
6435      ac_path_SED_max=$ac_count
6436    fi
6437    # 10*(2^10) chars as input seems more than enough
6438    test $ac_count -gt 10 && break
6439  done
6440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6441esac
6442
6443      $ac_path_SED_found && break 3
6444    done
6445  done
6446done
6447IFS=$as_save_IFS
6448  if test -z "$ac_cv_path_SED"; then
6449    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6450$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6451   { (exit 1); exit 1; }; }
6452  fi
6453else
6454  ac_cv_path_SED=$SED
6455fi
6456
6457fi
6458{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6459$as_echo "$ac_cv_path_SED" >&6; }
6460 SED="$ac_cv_path_SED"
6461  rm -f conftest.sed
6462
6463test -z "$SED" && SED=sed
6464Xsed="$SED -e 1s/^X//"
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6477$as_echo_n "checking for fgrep... " >&6; }
6478if test "${ac_cv_path_FGREP+set}" = set; then
6479  $as_echo_n "(cached) " >&6
6480else
6481  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6482   then ac_cv_path_FGREP="$GREP -F"
6483   else
6484     if test -z "$FGREP"; then
6485  ac_path_FGREP_found=false
6486  # Loop through the user's path and test for each of PROGNAME-LIST
6487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6489do
6490  IFS=$as_save_IFS
6491  test -z "$as_dir" && as_dir=.
6492  for ac_prog in fgrep; do
6493    for ac_exec_ext in '' $ac_executable_extensions; do
6494      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6495      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6496# Check for GNU ac_path_FGREP and select it if it is found.
6497  # Check for GNU $ac_path_FGREP
6498case `"$ac_path_FGREP" --version 2>&1` in
6499*GNU*)
6500  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6501*)
6502  ac_count=0
6503  $as_echo_n 0123456789 >"conftest.in"
6504  while :
6505  do
6506    cat "conftest.in" "conftest.in" >"conftest.tmp"
6507    mv "conftest.tmp" "conftest.in"
6508    cp "conftest.in" "conftest.nl"
6509    $as_echo 'FGREP' >> "conftest.nl"
6510    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6511    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6512    ac_count=`expr $ac_count + 1`
6513    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6514      # Best one so far, save it but keep looking for a better one
6515      ac_cv_path_FGREP="$ac_path_FGREP"
6516      ac_path_FGREP_max=$ac_count
6517    fi
6518    # 10*(2^10) chars as input seems more than enough
6519    test $ac_count -gt 10 && break
6520  done
6521  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6522esac
6523
6524      $ac_path_FGREP_found && break 3
6525    done
6526  done
6527done
6528IFS=$as_save_IFS
6529  if test -z "$ac_cv_path_FGREP"; then
6530    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6531$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6532   { (exit 1); exit 1; }; }
6533  fi
6534else
6535  ac_cv_path_FGREP=$FGREP
6536fi
6537
6538   fi
6539fi
6540{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6541$as_echo "$ac_cv_path_FGREP" >&6; }
6542 FGREP="$ac_cv_path_FGREP"
6543
6544
6545test -z "$GREP" && GREP=grep
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565# Check whether --with-gnu-ld was given.
6566if test "${with_gnu_ld+set}" = set; then
6567  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6568else
6569  with_gnu_ld=no
6570fi
6571
6572ac_prog=ld
6573if test "$GCC" = yes; then
6574  # Check if gcc -print-prog-name=ld gives a path.
6575  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6576$as_echo_n "checking for ld used by $CC... " >&6; }
6577  case $host in
6578  *-*-mingw*)
6579    # gcc leaves a trailing carriage return which upsets mingw
6580    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6581  *)
6582    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6583  esac
6584  case $ac_prog in
6585    # Accept absolute paths.
6586    [\\/]* | ?:[\\/]*)
6587      re_direlt='/[^/][^/]*/\.\./'
6588      # Canonicalize the pathname of ld
6589      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6590      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6591	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6592      done
6593      test -z "$LD" && LD="$ac_prog"
6594      ;;
6595  "")
6596    # If it fails, then pretend we aren't using GCC.
6597    ac_prog=ld
6598    ;;
6599  *)
6600    # If it is relative, then search for the first ld in PATH.
6601    with_gnu_ld=unknown
6602    ;;
6603  esac
6604elif test "$with_gnu_ld" = yes; then
6605  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6606$as_echo_n "checking for GNU ld... " >&6; }
6607else
6608  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6609$as_echo_n "checking for non-GNU ld... " >&6; }
6610fi
6611if test "${lt_cv_path_LD+set}" = set; then
6612  $as_echo_n "(cached) " >&6
6613else
6614  if test -z "$LD"; then
6615  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6616  for ac_dir in $PATH; do
6617    IFS="$lt_save_ifs"
6618    test -z "$ac_dir" && ac_dir=.
6619    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6620      lt_cv_path_LD="$ac_dir/$ac_prog"
6621      # Check to see if the program is GNU ld.  I'd rather use --version,
6622      # but apparently some variants of GNU ld only accept -v.
6623      # Break only if it was the GNU/non-GNU ld that we prefer.
6624      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6625      *GNU* | *'with BFD'*)
6626	test "$with_gnu_ld" != no && break
6627	;;
6628      *)
6629	test "$with_gnu_ld" != yes && break
6630	;;
6631      esac
6632    fi
6633  done
6634  IFS="$lt_save_ifs"
6635else
6636  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6637fi
6638fi
6639
6640LD="$lt_cv_path_LD"
6641if test -n "$LD"; then
6642  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6643$as_echo "$LD" >&6; }
6644else
6645  { $as_echo "$as_me:$LINENO: result: no" >&5
6646$as_echo "no" >&6; }
6647fi
6648test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6649$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6650   { (exit 1); exit 1; }; }
6651{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6652$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6653if test "${lt_cv_prog_gnu_ld+set}" = set; then
6654  $as_echo_n "(cached) " >&6
6655else
6656  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6657case `$LD -v 2>&1 </dev/null` in
6658*GNU* | *'with BFD'*)
6659  lt_cv_prog_gnu_ld=yes
6660  ;;
6661*)
6662  lt_cv_prog_gnu_ld=no
6663  ;;
6664esac
6665fi
6666{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6667$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6668with_gnu_ld=$lt_cv_prog_gnu_ld
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6679$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6680if test "${lt_cv_path_NM+set}" = set; then
6681  $as_echo_n "(cached) " >&6
6682else
6683  if test -n "$NM"; then
6684  # Let the user override the test.
6685  lt_cv_path_NM="$NM"
6686else
6687  lt_nm_to_check="${ac_tool_prefix}nm"
6688  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6689    lt_nm_to_check="$lt_nm_to_check nm"
6690  fi
6691  for lt_tmp_nm in $lt_nm_to_check; do
6692    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6693    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6694      IFS="$lt_save_ifs"
6695      test -z "$ac_dir" && ac_dir=.
6696      tmp_nm="$ac_dir/$lt_tmp_nm"
6697      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6698	# Check to see if the nm accepts a BSD-compat flag.
6699	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6700	#   nm: unknown option "B" ignored
6701	# Tru64's nm complains that /dev/null is an invalid object file
6702	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6703	*/dev/null* | *'Invalid file or object type'*)
6704	  lt_cv_path_NM="$tmp_nm -B"
6705	  break
6706	  ;;
6707	*)
6708	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6709	  */dev/null*)
6710	    lt_cv_path_NM="$tmp_nm -p"
6711	    break
6712	    ;;
6713	  *)
6714	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6715	    continue # so that we can try to find one that supports BSD flags
6716	    ;;
6717	  esac
6718	  ;;
6719	esac
6720      fi
6721    done
6722    IFS="$lt_save_ifs"
6723  done
6724  : ${lt_cv_path_NM=no}
6725fi
6726fi
6727{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6728$as_echo "$lt_cv_path_NM" >&6; }
6729if test "$lt_cv_path_NM" != "no"; then
6730  NM="$lt_cv_path_NM"
6731else
6732  # Didn't find any BSD compatible name lister, look for dumpbin.
6733  if test -n "$ac_tool_prefix"; then
6734  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6735  do
6736    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6738{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6739$as_echo_n "checking for $ac_word... " >&6; }
6740if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6741  $as_echo_n "(cached) " >&6
6742else
6743  if test -n "$DUMPBIN"; then
6744  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749  IFS=$as_save_IFS
6750  test -z "$as_dir" && as_dir=.
6751  for ac_exec_ext in '' $ac_executable_extensions; do
6752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6754    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755    break 2
6756  fi
6757done
6758done
6759IFS=$as_save_IFS
6760
6761fi
6762fi
6763DUMPBIN=$ac_cv_prog_DUMPBIN
6764if test -n "$DUMPBIN"; then
6765  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6766$as_echo "$DUMPBIN" >&6; }
6767else
6768  { $as_echo "$as_me:$LINENO: result: no" >&5
6769$as_echo "no" >&6; }
6770fi
6771
6772
6773    test -n "$DUMPBIN" && break
6774  done
6775fi
6776if test -z "$DUMPBIN"; then
6777  ac_ct_DUMPBIN=$DUMPBIN
6778  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6779do
6780  # Extract the first word of "$ac_prog", so it can be a program name with args.
6781set dummy $ac_prog; ac_word=$2
6782{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6785  $as_echo_n "(cached) " >&6
6786else
6787  if test -n "$ac_ct_DUMPBIN"; then
6788  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793  IFS=$as_save_IFS
6794  test -z "$as_dir" && as_dir=.
6795  for ac_exec_ext in '' $ac_executable_extensions; do
6796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6798    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6808if test -n "$ac_ct_DUMPBIN"; then
6809  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6810$as_echo "$ac_ct_DUMPBIN" >&6; }
6811else
6812  { $as_echo "$as_me:$LINENO: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816
6817  test -n "$ac_ct_DUMPBIN" && break
6818done
6819
6820  if test "x$ac_ct_DUMPBIN" = x; then
6821    DUMPBIN=":"
6822  else
6823    case $cross_compiling:$ac_tool_warned in
6824yes:)
6825{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827ac_tool_warned=yes ;;
6828esac
6829    DUMPBIN=$ac_ct_DUMPBIN
6830  fi
6831fi
6832
6833
6834  if test "$DUMPBIN" != ":"; then
6835    NM="$DUMPBIN"
6836  fi
6837fi
6838test -z "$NM" && NM=nm
6839
6840
6841
6842
6843
6844
6845{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6846$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6847if test "${lt_cv_nm_interface+set}" = set; then
6848  $as_echo_n "(cached) " >&6
6849else
6850  lt_cv_nm_interface="BSD nm"
6851  echo "int some_variable = 0;" > conftest.$ac_ext
6852  (eval echo "\"\$as_me:6852: $ac_compile\"" >&5)
6853  (eval "$ac_compile" 2>conftest.err)
6854  cat conftest.err >&5
6855  (eval echo "\"\$as_me:6855: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6856  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6857  cat conftest.err >&5
6858  (eval echo "\"\$as_me:6858: output\"" >&5)
6859  cat conftest.out >&5
6860  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6861    lt_cv_nm_interface="MS dumpbin"
6862  fi
6863  rm -f conftest*
6864fi
6865{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6866$as_echo "$lt_cv_nm_interface" >&6; }
6867
6868{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6869$as_echo_n "checking whether ln -s works... " >&6; }
6870LN_S=$as_ln_s
6871if test "$LN_S" = "ln -s"; then
6872  { $as_echo "$as_me:$LINENO: result: yes" >&5
6873$as_echo "yes" >&6; }
6874else
6875  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6876$as_echo "no, using $LN_S" >&6; }
6877fi
6878
6879# find the maximum length of command line arguments
6880{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6881$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6882if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6883  $as_echo_n "(cached) " >&6
6884else
6885    i=0
6886  teststring="ABCD"
6887
6888  case $build_os in
6889  msdosdjgpp*)
6890    # On DJGPP, this test can blow up pretty badly due to problems in libc
6891    # (any single argument exceeding 2000 bytes causes a buffer overrun
6892    # during glob expansion).  Even if it were fixed, the result of this
6893    # check would be larger than it should be.
6894    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6895    ;;
6896
6897  gnu*)
6898    # Under GNU Hurd, this test is not required because there is
6899    # no limit to the length of command line arguments.
6900    # Libtool will interpret -1 as no limit whatsoever
6901    lt_cv_sys_max_cmd_len=-1;
6902    ;;
6903
6904  cygwin* | mingw* | cegcc*)
6905    # On Win9x/ME, this test blows up -- it succeeds, but takes
6906    # about 5 minutes as the teststring grows exponentially.
6907    # Worse, since 9x/ME are not pre-emptively multitasking,
6908    # you end up with a "frozen" computer, even though with patience
6909    # the test eventually succeeds (with a max line length of 256k).
6910    # Instead, let's just punt: use the minimum linelength reported by
6911    # all of the supported platforms: 8192 (on NT/2K/XP).
6912    lt_cv_sys_max_cmd_len=8192;
6913    ;;
6914
6915  amigaos*)
6916    # On AmigaOS with pdksh, this test takes hours, literally.
6917    # So we just punt and use a minimum line length of 8192.
6918    lt_cv_sys_max_cmd_len=8192;
6919    ;;
6920
6921  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6922    # This has been around since 386BSD, at least.  Likely further.
6923    if test -x /sbin/sysctl; then
6924      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6925    elif test -x /usr/sbin/sysctl; then
6926      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6927    else
6928      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6929    fi
6930    # And add a safety zone
6931    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6932    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6933    ;;
6934
6935  interix*)
6936    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6937    lt_cv_sys_max_cmd_len=196608
6938    ;;
6939
6940  osf*)
6941    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6942    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6943    # nice to cause kernel panics so lets avoid the loop below.
6944    # First set a reasonable default.
6945    lt_cv_sys_max_cmd_len=16384
6946    #
6947    if test -x /sbin/sysconfig; then
6948      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6949        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6950      esac
6951    fi
6952    ;;
6953  sco3.2v5*)
6954    lt_cv_sys_max_cmd_len=102400
6955    ;;
6956  sysv5* | sco5v6* | sysv4.2uw2*)
6957    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6958    if test -n "$kargmax"; then
6959      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6960    else
6961      lt_cv_sys_max_cmd_len=32768
6962    fi
6963    ;;
6964  *)
6965    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6966    if test -n "$lt_cv_sys_max_cmd_len"; then
6967      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6968      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6969    else
6970      # Make teststring a little bigger before we do anything with it.
6971      # a 1K string should be a reasonable start.
6972      for i in 1 2 3 4 5 6 7 8 ; do
6973        teststring=$teststring$teststring
6974      done
6975      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6976      # If test is not a shell built-in, we'll probably end up computing a
6977      # maximum length that is only half of the actual maximum length, but
6978      # we can't tell.
6979      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6980	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6981	      test $i != 17 # 1/2 MB should be enough
6982      do
6983        i=`expr $i + 1`
6984        teststring=$teststring$teststring
6985      done
6986      # Only check the string length outside the loop.
6987      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6988      teststring=
6989      # Add a significant safety factor because C++ compilers can tack on
6990      # massive amounts of additional arguments before passing them to the
6991      # linker.  It appears as though 1/2 is a usable value.
6992      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6993    fi
6994    ;;
6995  esac
6996
6997fi
6998
6999if test -n $lt_cv_sys_max_cmd_len ; then
7000  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7001$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7002else
7003  { $as_echo "$as_me:$LINENO: result: none" >&5
7004$as_echo "none" >&6; }
7005fi
7006max_cmd_len=$lt_cv_sys_max_cmd_len
7007
7008
7009
7010
7011
7012
7013: ${CP="cp -f"}
7014: ${MV="mv -f"}
7015: ${RM="rm -f"}
7016
7017{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7018$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7019# Try some XSI features
7020xsi_shell=no
7021( _lt_dummy="a/b/c"
7022  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7023      = c,a/b,, \
7024    && eval 'test $(( 1 + 1 )) -eq 2 \
7025    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7026  && xsi_shell=yes
7027{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7028$as_echo "$xsi_shell" >&6; }
7029
7030
7031{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7032$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7033lt_shell_append=no
7034( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7035    >/dev/null 2>&1 \
7036  && lt_shell_append=yes
7037{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7038$as_echo "$lt_shell_append" >&6; }
7039
7040
7041if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7042  lt_unset=unset
7043else
7044  lt_unset=false
7045fi
7046
7047
7048
7049
7050
7051# test EBCDIC or ASCII
7052case `echo X|tr X '\101'` in
7053 A) # ASCII based system
7054    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7055  lt_SP2NL='tr \040 \012'
7056  lt_NL2SP='tr \015\012 \040\040'
7057  ;;
7058 *) # EBCDIC based system
7059  lt_SP2NL='tr \100 \n'
7060  lt_NL2SP='tr \r\n \100\100'
7061  ;;
7062esac
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7073$as_echo_n "checking for $LD option to reload object files... " >&6; }
7074if test "${lt_cv_ld_reload_flag+set}" = set; then
7075  $as_echo_n "(cached) " >&6
7076else
7077  lt_cv_ld_reload_flag='-r'
7078fi
7079{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7080$as_echo "$lt_cv_ld_reload_flag" >&6; }
7081reload_flag=$lt_cv_ld_reload_flag
7082case $reload_flag in
7083"" | " "*) ;;
7084*) reload_flag=" $reload_flag" ;;
7085esac
7086reload_cmds='$LD$reload_flag -o $output$reload_objs'
7087case $host_os in
7088  darwin*)
7089    if test "$GCC" = yes; then
7090      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7091    else
7092      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7093    fi
7094    ;;
7095esac
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105if test -n "$ac_tool_prefix"; then
7106  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7107set dummy ${ac_tool_prefix}objdump; ac_word=$2
7108{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7109$as_echo_n "checking for $ac_word... " >&6; }
7110if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7111  $as_echo_n "(cached) " >&6
7112else
7113  if test -n "$OBJDUMP"; then
7114  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121  for ac_exec_ext in '' $ac_executable_extensions; do
7122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7124    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128done
7129IFS=$as_save_IFS
7130
7131fi
7132fi
7133OBJDUMP=$ac_cv_prog_OBJDUMP
7134if test -n "$OBJDUMP"; then
7135  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7136$as_echo "$OBJDUMP" >&6; }
7137else
7138  { $as_echo "$as_me:$LINENO: result: no" >&5
7139$as_echo "no" >&6; }
7140fi
7141
7142
7143fi
7144if test -z "$ac_cv_prog_OBJDUMP"; then
7145  ac_ct_OBJDUMP=$OBJDUMP
7146  # Extract the first word of "objdump", so it can be a program name with args.
7147set dummy objdump; ac_word=$2
7148{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7149$as_echo_n "checking for $ac_word... " >&6; }
7150if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7151  $as_echo_n "(cached) " >&6
7152else
7153  if test -n "$ac_ct_OBJDUMP"; then
7154  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159  IFS=$as_save_IFS
7160  test -z "$as_dir" && as_dir=.
7161  for ac_exec_ext in '' $ac_executable_extensions; do
7162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7164    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171fi
7172fi
7173ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7174if test -n "$ac_ct_OBJDUMP"; then
7175  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7176$as_echo "$ac_ct_OBJDUMP" >&6; }
7177else
7178  { $as_echo "$as_me:$LINENO: result: no" >&5
7179$as_echo "no" >&6; }
7180fi
7181
7182  if test "x$ac_ct_OBJDUMP" = x; then
7183    OBJDUMP="false"
7184  else
7185    case $cross_compiling:$ac_tool_warned in
7186yes:)
7187{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189ac_tool_warned=yes ;;
7190esac
7191    OBJDUMP=$ac_ct_OBJDUMP
7192  fi
7193else
7194  OBJDUMP="$ac_cv_prog_OBJDUMP"
7195fi
7196
7197test -z "$OBJDUMP" && OBJDUMP=objdump
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7208$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7209if test "${lt_cv_deplibs_check_method+set}" = set; then
7210  $as_echo_n "(cached) " >&6
7211else
7212  lt_cv_file_magic_cmd='$MAGIC_CMD'
7213lt_cv_file_magic_test_file=
7214lt_cv_deplibs_check_method='unknown'
7215# Need to set the preceding variable on all platforms that support
7216# interlibrary dependencies.
7217# 'none' -- dependencies not supported.
7218# `unknown' -- same as none, but documents that we really don't know.
7219# 'pass_all' -- all dependencies passed with no checks.
7220# 'test_compile' -- check by making test program.
7221# 'file_magic [[regex]]' -- check by looking for files in library path
7222# which responds to the $file_magic_cmd with a given extended regex.
7223# If you have `file' or equivalent on your system and you're not sure
7224# whether `pass_all' will *always* work, you probably want this one.
7225
7226case $host_os in
7227aix[4-9]*)
7228  lt_cv_deplibs_check_method=pass_all
7229  ;;
7230
7231beos*)
7232  lt_cv_deplibs_check_method=pass_all
7233  ;;
7234
7235bsdi[45]*)
7236  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7237  lt_cv_file_magic_cmd='/usr/bin/file -L'
7238  lt_cv_file_magic_test_file=/shlib/libc.so
7239  ;;
7240
7241cygwin*)
7242  # func_win32_libid is a shell function defined in ltmain.sh
7243  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7244  lt_cv_file_magic_cmd='func_win32_libid'
7245  ;;
7246
7247mingw* | pw32*)
7248  # Base MSYS/MinGW do not provide the 'file' command needed by
7249  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7250  # unless we find 'file', for example because we are cross-compiling.
7251  if ( file / ) >/dev/null 2>&1; then
7252    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7253    lt_cv_file_magic_cmd='func_win32_libid'
7254  else
7255    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7256    lt_cv_file_magic_cmd='$OBJDUMP -f'
7257  fi
7258  ;;
7259
7260cegcc)
7261  # use the weaker test based on 'objdump'. See mingw*.
7262  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7263  lt_cv_file_magic_cmd='$OBJDUMP -f'
7264  ;;
7265
7266darwin* | rhapsody*)
7267  lt_cv_deplibs_check_method=pass_all
7268  ;;
7269
7270freebsd* | dragonfly*)
7271  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7272    case $host_cpu in
7273    i*86 )
7274      # Not sure whether the presence of OpenBSD here was a mistake.
7275      # Let's accept both of them until this is cleared up.
7276      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7277      lt_cv_file_magic_cmd=/usr/bin/file
7278      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7279      ;;
7280    esac
7281  else
7282    lt_cv_deplibs_check_method=pass_all
7283  fi
7284  ;;
7285
7286gnu*)
7287  lt_cv_deplibs_check_method=pass_all
7288  ;;
7289
7290hpux10.20* | hpux11*)
7291  lt_cv_file_magic_cmd=/usr/bin/file
7292  case $host_cpu in
7293  ia64*)
7294    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7295    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7296    ;;
7297  hppa*64*)
7298    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]'
7299    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7300    ;;
7301  *)
7302    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7303    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7304    ;;
7305  esac
7306  ;;
7307
7308interix[3-9]*)
7309  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7310  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7311  ;;
7312
7313irix5* | irix6* | nonstopux*)
7314  case $LD in
7315  *-32|*"-32 ") libmagic=32-bit;;
7316  *-n32|*"-n32 ") libmagic=N32;;
7317  *-64|*"-64 ") libmagic=64-bit;;
7318  *) libmagic=never-match;;
7319  esac
7320  lt_cv_deplibs_check_method=pass_all
7321  ;;
7322
7323# This must be Linux ELF.
7324linux* | k*bsd*-gnu)
7325  lt_cv_deplibs_check_method=pass_all
7326  ;;
7327
7328netbsd* | netbsdelf*-gnu)
7329  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7330    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7331  else
7332    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7333  fi
7334  ;;
7335
7336newos6*)
7337  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7338  lt_cv_file_magic_cmd=/usr/bin/file
7339  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7340  ;;
7341
7342*nto* | *qnx*)
7343  lt_cv_deplibs_check_method=pass_all
7344  ;;
7345
7346openbsd*)
7347  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7348    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7349  else
7350    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7351  fi
7352  ;;
7353
7354osf3* | osf4* | osf5*)
7355  lt_cv_deplibs_check_method=pass_all
7356  ;;
7357
7358rdos*)
7359  lt_cv_deplibs_check_method=pass_all
7360  ;;
7361
7362solaris*)
7363  lt_cv_deplibs_check_method=pass_all
7364  ;;
7365
7366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7367  lt_cv_deplibs_check_method=pass_all
7368  ;;
7369
7370sysv4 | sysv4.3*)
7371  case $host_vendor in
7372  motorola)
7373    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]'
7374    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7375    ;;
7376  ncr)
7377    lt_cv_deplibs_check_method=pass_all
7378    ;;
7379  sequent)
7380    lt_cv_file_magic_cmd='/bin/file'
7381    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7382    ;;
7383  sni)
7384    lt_cv_file_magic_cmd='/bin/file'
7385    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7386    lt_cv_file_magic_test_file=/lib/libc.so
7387    ;;
7388  siemens)
7389    lt_cv_deplibs_check_method=pass_all
7390    ;;
7391  pc)
7392    lt_cv_deplibs_check_method=pass_all
7393    ;;
7394  esac
7395  ;;
7396
7397tpf*)
7398  lt_cv_deplibs_check_method=pass_all
7399  ;;
7400esac
7401
7402fi
7403{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7404$as_echo "$lt_cv_deplibs_check_method" >&6; }
7405file_magic_cmd=$lt_cv_file_magic_cmd
7406deplibs_check_method=$lt_cv_deplibs_check_method
7407test -z "$deplibs_check_method" && deplibs_check_method=unknown
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420if test -n "$ac_tool_prefix"; then
7421  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7422set dummy ${ac_tool_prefix}ar; ac_word=$2
7423{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7424$as_echo_n "checking for $ac_word... " >&6; }
7425if test "${ac_cv_prog_AR+set}" = set; then
7426  $as_echo_n "(cached) " >&6
7427else
7428  if test -n "$AR"; then
7429  ac_cv_prog_AR="$AR" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434  IFS=$as_save_IFS
7435  test -z "$as_dir" && as_dir=.
7436  for ac_exec_ext in '' $ac_executable_extensions; do
7437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438    ac_cv_prog_AR="${ac_tool_prefix}ar"
7439    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440    break 2
7441  fi
7442done
7443done
7444IFS=$as_save_IFS
7445
7446fi
7447fi
7448AR=$ac_cv_prog_AR
7449if test -n "$AR"; then
7450  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7451$as_echo "$AR" >&6; }
7452else
7453  { $as_echo "$as_me:$LINENO: result: no" >&5
7454$as_echo "no" >&6; }
7455fi
7456
7457
7458fi
7459if test -z "$ac_cv_prog_AR"; then
7460  ac_ct_AR=$AR
7461  # Extract the first word of "ar", so it can be a program name with args.
7462set dummy ar; ac_word=$2
7463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7464$as_echo_n "checking for $ac_word... " >&6; }
7465if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7466  $as_echo_n "(cached) " >&6
7467else
7468  if test -n "$ac_ct_AR"; then
7469  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7470else
7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474  IFS=$as_save_IFS
7475  test -z "$as_dir" && as_dir=.
7476  for ac_exec_ext in '' $ac_executable_extensions; do
7477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478    ac_cv_prog_ac_ct_AR="ar"
7479    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480    break 2
7481  fi
7482done
7483done
7484IFS=$as_save_IFS
7485
7486fi
7487fi
7488ac_ct_AR=$ac_cv_prog_ac_ct_AR
7489if test -n "$ac_ct_AR"; then
7490  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7491$as_echo "$ac_ct_AR" >&6; }
7492else
7493  { $as_echo "$as_me:$LINENO: result: no" >&5
7494$as_echo "no" >&6; }
7495fi
7496
7497  if test "x$ac_ct_AR" = x; then
7498    AR="false"
7499  else
7500    case $cross_compiling:$ac_tool_warned in
7501yes:)
7502{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7504ac_tool_warned=yes ;;
7505esac
7506    AR=$ac_ct_AR
7507  fi
7508else
7509  AR="$ac_cv_prog_AR"
7510fi
7511
7512test -z "$AR" && AR=ar
7513test -z "$AR_FLAGS" && AR_FLAGS=cru
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525if test -n "$ac_tool_prefix"; then
7526  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7527set dummy ${ac_tool_prefix}strip; ac_word=$2
7528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if test "${ac_cv_prog_STRIP+set}" = set; then
7531  $as_echo_n "(cached) " >&6
7532else
7533  if test -n "$STRIP"; then
7534  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  test -z "$as_dir" && as_dir=.
7541  for ac_exec_ext in '' $ac_executable_extensions; do
7542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7544    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553STRIP=$ac_cv_prog_STRIP
7554if test -n "$STRIP"; then
7555  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7556$as_echo "$STRIP" >&6; }
7557else
7558  { $as_echo "$as_me:$LINENO: result: no" >&5
7559$as_echo "no" >&6; }
7560fi
7561
7562
7563fi
7564if test -z "$ac_cv_prog_STRIP"; then
7565  ac_ct_STRIP=$STRIP
7566  # Extract the first word of "strip", so it can be a program name with args.
7567set dummy strip; ac_word=$2
7568{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7569$as_echo_n "checking for $ac_word... " >&6; }
7570if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7571  $as_echo_n "(cached) " >&6
7572else
7573  if test -n "$ac_ct_STRIP"; then
7574  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579  IFS=$as_save_IFS
7580  test -z "$as_dir" && as_dir=.
7581  for ac_exec_ext in '' $ac_executable_extensions; do
7582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583    ac_cv_prog_ac_ct_STRIP="strip"
7584    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585    break 2
7586  fi
7587done
7588done
7589IFS=$as_save_IFS
7590
7591fi
7592fi
7593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7594if test -n "$ac_ct_STRIP"; then
7595  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7596$as_echo "$ac_ct_STRIP" >&6; }
7597else
7598  { $as_echo "$as_me:$LINENO: result: no" >&5
7599$as_echo "no" >&6; }
7600fi
7601
7602  if test "x$ac_ct_STRIP" = x; then
7603    STRIP=":"
7604  else
7605    case $cross_compiling:$ac_tool_warned in
7606yes:)
7607{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609ac_tool_warned=yes ;;
7610esac
7611    STRIP=$ac_ct_STRIP
7612  fi
7613else
7614  STRIP="$ac_cv_prog_STRIP"
7615fi
7616
7617test -z "$STRIP" && STRIP=:
7618
7619
7620
7621
7622
7623
7624if test -n "$ac_tool_prefix"; then
7625  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7626set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if test "${ac_cv_prog_RANLIB+set}" = set; then
7630  $as_echo_n "(cached) " >&6
7631else
7632  if test -n "$RANLIB"; then
7633  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638  IFS=$as_save_IFS
7639  test -z "$as_dir" && as_dir=.
7640  for ac_exec_ext in '' $ac_executable_extensions; do
7641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7643    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644    break 2
7645  fi
7646done
7647done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652RANLIB=$ac_cv_prog_RANLIB
7653if test -n "$RANLIB"; then
7654  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7655$as_echo "$RANLIB" >&6; }
7656else
7657  { $as_echo "$as_me:$LINENO: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661
7662fi
7663if test -z "$ac_cv_prog_RANLIB"; then
7664  ac_ct_RANLIB=$RANLIB
7665  # Extract the first word of "ranlib", so it can be a program name with args.
7666set dummy ranlib; ac_word=$2
7667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7670  $as_echo_n "(cached) " >&6
7671else
7672  if test -n "$ac_ct_RANLIB"; then
7673  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678  IFS=$as_save_IFS
7679  test -z "$as_dir" && as_dir=.
7680  for ac_exec_ext in '' $ac_executable_extensions; do
7681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682    ac_cv_prog_ac_ct_RANLIB="ranlib"
7683    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684    break 2
7685  fi
7686done
7687done
7688IFS=$as_save_IFS
7689
7690fi
7691fi
7692ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7693if test -n "$ac_ct_RANLIB"; then
7694  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7695$as_echo "$ac_ct_RANLIB" >&6; }
7696else
7697  { $as_echo "$as_me:$LINENO: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701  if test "x$ac_ct_RANLIB" = x; then
7702    RANLIB=":"
7703  else
7704    case $cross_compiling:$ac_tool_warned in
7705yes:)
7706{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708ac_tool_warned=yes ;;
7709esac
7710    RANLIB=$ac_ct_RANLIB
7711  fi
7712else
7713  RANLIB="$ac_cv_prog_RANLIB"
7714fi
7715
7716test -z "$RANLIB" && RANLIB=:
7717
7718
7719
7720
7721
7722
7723# Determine commands to create old-style static archives.
7724old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7725old_postinstall_cmds='chmod 644 $oldlib'
7726old_postuninstall_cmds=
7727
7728if test -n "$RANLIB"; then
7729  case $host_os in
7730  openbsd*)
7731    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7732    ;;
7733  *)
7734    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7735    ;;
7736  esac
7737  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7738fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773# If no C compiler was specified, use CC.
7774LTCC=${LTCC-"$CC"}
7775
7776# If no C compiler flags were specified, use CFLAGS.
7777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7778
7779# Allow CC to be a program name with arguments.
7780compiler=$CC
7781
7782
7783# Check for command to grab the raw symbol name followed by C symbol from nm.
7784{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7785$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7786if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7787  $as_echo_n "(cached) " >&6
7788else
7789
7790# These are sane defaults that work on at least a few old systems.
7791# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7792
7793# Character class describing NM global symbol codes.
7794symcode='[BCDEGRST]'
7795
7796# Regexp to match symbols that can be accessed directly from C.
7797sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7798
7799# Define system-specific variables.
7800case $host_os in
7801aix*)
7802  symcode='[BCDT]'
7803  ;;
7804cygwin* | mingw* | pw32* | cegcc*)
7805  symcode='[ABCDGISTW]'
7806  ;;
7807hpux*)
7808  if test "$host_cpu" = ia64; then
7809    symcode='[ABCDEGRST]'
7810  fi
7811  ;;
7812irix* | nonstopux*)
7813  symcode='[BCDEGRST]'
7814  ;;
7815osf*)
7816  symcode='[BCDEGQRST]'
7817  ;;
7818solaris*)
7819  symcode='[BDRT]'
7820  ;;
7821sco3.2v5*)
7822  symcode='[DT]'
7823  ;;
7824sysv4.2uw2*)
7825  symcode='[DT]'
7826  ;;
7827sysv5* | sco5v6* | unixware* | OpenUNIX*)
7828  symcode='[ABDT]'
7829  ;;
7830sysv4)
7831  symcode='[DFNSTU]'
7832  ;;
7833esac
7834
7835# If we're using GNU nm, then use its standard symbol codes.
7836case `$NM -V 2>&1` in
7837*GNU* | *'with BFD'*)
7838  symcode='[ABCDGIRSTW]' ;;
7839esac
7840
7841# Transform an extracted symbol line into a proper C declaration.
7842# Some systems (esp. on ia64) link data and code symbols differently,
7843# so use this general approach.
7844lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7845
7846# Transform an extracted symbol line into symbol name and symbol address
7847lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7848lt_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'"
7849
7850# Handle CRLF in mingw tool chain
7851opt_cr=
7852case $build_os in
7853mingw*)
7854  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7855  ;;
7856esac
7857
7858# Try without a prefix underscore, then with it.
7859for ac_symprfx in "" "_"; do
7860
7861  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7862  symxfrm="\\1 $ac_symprfx\\2 \\2"
7863
7864  # Write the raw and C identifiers.
7865  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7866    # Fake it for dumpbin and say T for any non-static function
7867    # and D for any global variable.
7868    # Also find C++ and __fastcall symbols from MSVC++,
7869    # which start with @ or ?.
7870    lt_cv_sys_global_symbol_pipe="$AWK '"\
7871"     {last_section=section; section=\$ 3};"\
7872"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7873"     \$ 0!~/External *\|/{next};"\
7874"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7875"     {if(hide[section]) next};"\
7876"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7877"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7878"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7879"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7880"     ' prfx=^$ac_symprfx"
7881  else
7882    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7883  fi
7884
7885  # Check to see that the pipe works correctly.
7886  pipe_works=no
7887
7888  rm -f conftest*
7889  cat > conftest.$ac_ext <<_LT_EOF
7890#ifdef __cplusplus
7891extern "C" {
7892#endif
7893char nm_test_var;
7894void nm_test_func(void);
7895void nm_test_func(void){}
7896#ifdef __cplusplus
7897}
7898#endif
7899int main(){nm_test_var='a';nm_test_func();return(0);}
7900_LT_EOF
7901
7902  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903  (eval $ac_compile) 2>&5
7904  ac_status=$?
7905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906  (exit $ac_status); }; then
7907    # Now try to grab the symbols.
7908    nlist=conftest.nm
7909    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7910  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7911  ac_status=$?
7912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913  (exit $ac_status); } && test -s "$nlist"; then
7914      # Try sorting and uniquifying the output.
7915      if sort "$nlist" | uniq > "$nlist"T; then
7916	mv -f "$nlist"T "$nlist"
7917      else
7918	rm -f "$nlist"T
7919      fi
7920
7921      # Make sure that we snagged all the symbols we need.
7922      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7923	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7924	  cat <<_LT_EOF > conftest.$ac_ext
7925#ifdef __cplusplus
7926extern "C" {
7927#endif
7928
7929_LT_EOF
7930	  # Now generate the symbol file.
7931	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7932
7933	  cat <<_LT_EOF >> conftest.$ac_ext
7934
7935/* The mapping between symbol names and symbols.  */
7936const struct {
7937  const char *name;
7938  void       *address;
7939}
7940lt__PROGRAM__LTX_preloaded_symbols[] =
7941{
7942  { "@PROGRAM@", (void *) 0 },
7943_LT_EOF
7944	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7945	  cat <<\_LT_EOF >> conftest.$ac_ext
7946  {0, (void *) 0}
7947};
7948
7949/* This works around a problem in FreeBSD linker */
7950#ifdef FREEBSD_WORKAROUND
7951static const void *lt_preloaded_setup() {
7952  return lt__PROGRAM__LTX_preloaded_symbols;
7953}
7954#endif
7955
7956#ifdef __cplusplus
7957}
7958#endif
7959_LT_EOF
7960	  # Now try linking the two files.
7961	  mv conftest.$ac_objext conftstm.$ac_objext
7962	  lt_save_LIBS="$LIBS"
7963	  lt_save_CFLAGS="$CFLAGS"
7964	  LIBS="conftstm.$ac_objext"
7965	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7966	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967  (eval $ac_link) 2>&5
7968  ac_status=$?
7969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7971	    pipe_works=yes
7972	  fi
7973	  LIBS="$lt_save_LIBS"
7974	  CFLAGS="$lt_save_CFLAGS"
7975	else
7976	  echo "cannot find nm_test_func in $nlist" >&5
7977	fi
7978      else
7979	echo "cannot find nm_test_var in $nlist" >&5
7980      fi
7981    else
7982      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7983    fi
7984  else
7985    echo "$progname: failed program was:" >&5
7986    cat conftest.$ac_ext >&5
7987  fi
7988  rm -rf conftest* conftst*
7989
7990  # Do not use the global_symbol_pipe unless it works.
7991  if test "$pipe_works" = yes; then
7992    break
7993  else
7994    lt_cv_sys_global_symbol_pipe=
7995  fi
7996done
7997
7998fi
7999
8000if test -z "$lt_cv_sys_global_symbol_pipe"; then
8001  lt_cv_sys_global_symbol_to_cdecl=
8002fi
8003if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8004  { $as_echo "$as_me:$LINENO: result: failed" >&5
8005$as_echo "failed" >&6; }
8006else
8007  { $as_echo "$as_me:$LINENO: result: ok" >&5
8008$as_echo "ok" >&6; }
8009fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032# Check whether --enable-libtool-lock was given.
8033if test "${enable_libtool_lock+set}" = set; then
8034  enableval=$enable_libtool_lock;
8035fi
8036
8037test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8038
8039# Some flags need to be propagated to the compiler or linker for good
8040# libtool support.
8041case $host in
8042ia64-*-hpux*)
8043  # Find out which ABI we are using.
8044  echo 'int i;' > conftest.$ac_ext
8045  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046  (eval $ac_compile) 2>&5
8047  ac_status=$?
8048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); }; then
8050    case `/usr/bin/file conftest.$ac_objext` in
8051      *ELF-32*)
8052	HPUX_IA64_MODE="32"
8053	;;
8054      *ELF-64*)
8055	HPUX_IA64_MODE="64"
8056	;;
8057    esac
8058  fi
8059  rm -rf conftest*
8060  ;;
8061*-*-irix6*)
8062  # Find out which ABI we are using.
8063  echo '#line 8063 "configure"' > conftest.$ac_ext
8064  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065  (eval $ac_compile) 2>&5
8066  ac_status=$?
8067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); }; then
8069    if test "$lt_cv_prog_gnu_ld" = yes; then
8070      case `/usr/bin/file conftest.$ac_objext` in
8071	*32-bit*)
8072	  LD="${LD-ld} -melf32bsmip"
8073	  ;;
8074	*N32*)
8075	  LD="${LD-ld} -melf32bmipn32"
8076	  ;;
8077	*64-bit*)
8078	  LD="${LD-ld} -melf64bmip"
8079	;;
8080      esac
8081    else
8082      case `/usr/bin/file conftest.$ac_objext` in
8083	*32-bit*)
8084	  LD="${LD-ld} -32"
8085	  ;;
8086	*N32*)
8087	  LD="${LD-ld} -n32"
8088	  ;;
8089	*64-bit*)
8090	  LD="${LD-ld} -64"
8091	  ;;
8092      esac
8093    fi
8094  fi
8095  rm -rf conftest*
8096  ;;
8097
8098x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8099s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8100  # Find out which ABI we are using.
8101  echo 'int i;' > conftest.$ac_ext
8102  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103  (eval $ac_compile) 2>&5
8104  ac_status=$?
8105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); }; then
8107    case `/usr/bin/file conftest.o` in
8108      *32-bit*)
8109	case $host in
8110	  x86_64-*kfreebsd*-gnu)
8111	    LD="${LD-ld} -m elf_i386_fbsd"
8112	    ;;
8113	  x86_64-*linux*)
8114	    LD="${LD-ld} -m elf_i386"
8115	    ;;
8116	  ppc64-*linux*|powerpc64-*linux*)
8117	    LD="${LD-ld} -m elf32ppclinux"
8118	    ;;
8119	  s390x-*linux*)
8120	    LD="${LD-ld} -m elf_s390"
8121	    ;;
8122	  sparc64-*linux*)
8123	    LD="${LD-ld} -m elf32_sparc"
8124	    ;;
8125	esac
8126	;;
8127      *64-bit*)
8128	case $host in
8129	  x86_64-*kfreebsd*-gnu)
8130	    LD="${LD-ld} -m elf_x86_64_fbsd"
8131	    ;;
8132	  x86_64-*linux*)
8133	    LD="${LD-ld} -m elf_x86_64"
8134	    ;;
8135	  ppc*-*linux*|powerpc*-*linux*)
8136	    LD="${LD-ld} -m elf64ppc"
8137	    ;;
8138	  s390*-*linux*|s390*-*tpf*)
8139	    LD="${LD-ld} -m elf64_s390"
8140	    ;;
8141	  sparc*-*linux*)
8142	    LD="${LD-ld} -m elf64_sparc"
8143	    ;;
8144	esac
8145	;;
8146    esac
8147  fi
8148  rm -rf conftest*
8149  ;;
8150
8151*-*-sco3.2v5*)
8152  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8153  SAVE_CFLAGS="$CFLAGS"
8154  CFLAGS="$CFLAGS -belf"
8155  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8156$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8157if test "${lt_cv_cc_needs_belf+set}" = set; then
8158  $as_echo_n "(cached) " >&6
8159else
8160  ac_ext=c
8161ac_cpp='$CPP $CPPFLAGS'
8162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165
8166     cat >conftest.$ac_ext <<_ACEOF
8167/* confdefs.h.  */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
8171/* end confdefs.h.  */
8172
8173int
8174main ()
8175{
8176
8177  ;
8178  return 0;
8179}
8180_ACEOF
8181rm -f conftest.$ac_objext conftest$ac_exeext
8182if { (ac_try="$ac_link"
8183case "(($ac_try" in
8184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185  *) ac_try_echo=$ac_try;;
8186esac
8187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8188$as_echo "$ac_try_echo") >&5
8189  (eval "$ac_link") 2>conftest.er1
8190  ac_status=$?
8191  grep -v '^ *+' conftest.er1 >conftest.err
8192  rm -f conftest.er1
8193  cat conftest.err >&5
8194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195  (exit $ac_status); } && {
8196	 test -z "$ac_c_werror_flag" ||
8197	 test ! -s conftest.err
8198       } && test -s conftest$ac_exeext && {
8199	 test "$cross_compiling" = yes ||
8200	 $as_test_x conftest$ac_exeext
8201       }; then
8202  lt_cv_cc_needs_belf=yes
8203else
8204  $as_echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207	lt_cv_cc_needs_belf=no
8208fi
8209
8210rm -rf conftest.dSYM
8211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8212      conftest$ac_exeext conftest.$ac_ext
8213     ac_ext=c
8214ac_cpp='$CPP $CPPFLAGS'
8215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219fi
8220{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8221$as_echo "$lt_cv_cc_needs_belf" >&6; }
8222  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8223    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8224    CFLAGS="$SAVE_CFLAGS"
8225  fi
8226  ;;
8227sparc*-*solaris*)
8228  # Find out which ABI we are using.
8229  echo 'int i;' > conftest.$ac_ext
8230  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231  (eval $ac_compile) 2>&5
8232  ac_status=$?
8233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); }; then
8235    case `/usr/bin/file conftest.o` in
8236    *64-bit*)
8237      case $lt_cv_prog_gnu_ld in
8238      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8239      *)
8240	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8241	  LD="${LD-ld} -64"
8242	fi
8243	;;
8244      esac
8245      ;;
8246    esac
8247  fi
8248  rm -rf conftest*
8249  ;;
8250esac
8251
8252need_locks="$enable_libtool_lock"
8253
8254
8255  case $host_os in
8256    rhapsody* | darwin*)
8257    if test -n "$ac_tool_prefix"; then
8258  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8261$as_echo_n "checking for $ac_word... " >&6; }
8262if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8263  $as_echo_n "(cached) " >&6
8264else
8265  if test -n "$DSYMUTIL"; then
8266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8267else
8268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269for as_dir in $PATH
8270do
8271  IFS=$as_save_IFS
8272  test -z "$as_dir" && as_dir=.
8273  for ac_exec_ext in '' $ac_executable_extensions; do
8274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8276    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277    break 2
8278  fi
8279done
8280done
8281IFS=$as_save_IFS
8282
8283fi
8284fi
8285DSYMUTIL=$ac_cv_prog_DSYMUTIL
8286if test -n "$DSYMUTIL"; then
8287  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8288$as_echo "$DSYMUTIL" >&6; }
8289else
8290  { $as_echo "$as_me:$LINENO: result: no" >&5
8291$as_echo "no" >&6; }
8292fi
8293
8294
8295fi
8296if test -z "$ac_cv_prog_DSYMUTIL"; then
8297  ac_ct_DSYMUTIL=$DSYMUTIL
8298  # Extract the first word of "dsymutil", so it can be a program name with args.
8299set dummy dsymutil; ac_word=$2
8300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8303  $as_echo_n "(cached) " >&6
8304else
8305  if test -n "$ac_ct_DSYMUTIL"; then
8306  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311  IFS=$as_save_IFS
8312  test -z "$as_dir" && as_dir=.
8313  for ac_exec_ext in '' $ac_executable_extensions; do
8314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8316    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317    break 2
8318  fi
8319done
8320done
8321IFS=$as_save_IFS
8322
8323fi
8324fi
8325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8326if test -n "$ac_ct_DSYMUTIL"; then
8327  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8328$as_echo "$ac_ct_DSYMUTIL" >&6; }
8329else
8330  { $as_echo "$as_me:$LINENO: result: no" >&5
8331$as_echo "no" >&6; }
8332fi
8333
8334  if test "x$ac_ct_DSYMUTIL" = x; then
8335    DSYMUTIL=":"
8336  else
8337    case $cross_compiling:$ac_tool_warned in
8338yes:)
8339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341ac_tool_warned=yes ;;
8342esac
8343    DSYMUTIL=$ac_ct_DSYMUTIL
8344  fi
8345else
8346  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8347fi
8348
8349    if test -n "$ac_tool_prefix"; then
8350  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8353$as_echo_n "checking for $ac_word... " >&6; }
8354if test "${ac_cv_prog_NMEDIT+set}" = set; then
8355  $as_echo_n "(cached) " >&6
8356else
8357  if test -n "$NMEDIT"; then
8358  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8359else
8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363  IFS=$as_save_IFS
8364  test -z "$as_dir" && as_dir=.
8365  for ac_exec_ext in '' $ac_executable_extensions; do
8366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8368    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369    break 2
8370  fi
8371done
8372done
8373IFS=$as_save_IFS
8374
8375fi
8376fi
8377NMEDIT=$ac_cv_prog_NMEDIT
8378if test -n "$NMEDIT"; then
8379  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8380$as_echo "$NMEDIT" >&6; }
8381else
8382  { $as_echo "$as_me:$LINENO: result: no" >&5
8383$as_echo "no" >&6; }
8384fi
8385
8386
8387fi
8388if test -z "$ac_cv_prog_NMEDIT"; then
8389  ac_ct_NMEDIT=$NMEDIT
8390  # Extract the first word of "nmedit", so it can be a program name with args.
8391set dummy nmedit; ac_word=$2
8392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8393$as_echo_n "checking for $ac_word... " >&6; }
8394if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8395  $as_echo_n "(cached) " >&6
8396else
8397  if test -n "$ac_ct_NMEDIT"; then
8398  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8399else
8400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401for as_dir in $PATH
8402do
8403  IFS=$as_save_IFS
8404  test -z "$as_dir" && as_dir=.
8405  for ac_exec_ext in '' $ac_executable_extensions; do
8406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8408    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409    break 2
8410  fi
8411done
8412done
8413IFS=$as_save_IFS
8414
8415fi
8416fi
8417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8418if test -n "$ac_ct_NMEDIT"; then
8419  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8420$as_echo "$ac_ct_NMEDIT" >&6; }
8421else
8422  { $as_echo "$as_me:$LINENO: result: no" >&5
8423$as_echo "no" >&6; }
8424fi
8425
8426  if test "x$ac_ct_NMEDIT" = x; then
8427    NMEDIT=":"
8428  else
8429    case $cross_compiling:$ac_tool_warned in
8430yes:)
8431{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8433ac_tool_warned=yes ;;
8434esac
8435    NMEDIT=$ac_ct_NMEDIT
8436  fi
8437else
8438  NMEDIT="$ac_cv_prog_NMEDIT"
8439fi
8440
8441    if test -n "$ac_tool_prefix"; then
8442  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8443set dummy ${ac_tool_prefix}lipo; ac_word=$2
8444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
8446if test "${ac_cv_prog_LIPO+set}" = set; then
8447  $as_echo_n "(cached) " >&6
8448else
8449  if test -n "$LIPO"; then
8450  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455  IFS=$as_save_IFS
8456  test -z "$as_dir" && as_dir=.
8457  for ac_exec_ext in '' $ac_executable_extensions; do
8458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8460    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8461    break 2
8462  fi
8463done
8464done
8465IFS=$as_save_IFS
8466
8467fi
8468fi
8469LIPO=$ac_cv_prog_LIPO
8470if test -n "$LIPO"; then
8471  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8472$as_echo "$LIPO" >&6; }
8473else
8474  { $as_echo "$as_me:$LINENO: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477
8478
8479fi
8480if test -z "$ac_cv_prog_LIPO"; then
8481  ac_ct_LIPO=$LIPO
8482  # Extract the first word of "lipo", so it can be a program name with args.
8483set dummy lipo; ac_word=$2
8484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8485$as_echo_n "checking for $ac_word... " >&6; }
8486if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8487  $as_echo_n "(cached) " >&6
8488else
8489  if test -n "$ac_ct_LIPO"; then
8490  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8491else
8492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495  IFS=$as_save_IFS
8496  test -z "$as_dir" && as_dir=.
8497  for ac_exec_ext in '' $ac_executable_extensions; do
8498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499    ac_cv_prog_ac_ct_LIPO="lipo"
8500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501    break 2
8502  fi
8503done
8504done
8505IFS=$as_save_IFS
8506
8507fi
8508fi
8509ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8510if test -n "$ac_ct_LIPO"; then
8511  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8512$as_echo "$ac_ct_LIPO" >&6; }
8513else
8514  { $as_echo "$as_me:$LINENO: result: no" >&5
8515$as_echo "no" >&6; }
8516fi
8517
8518  if test "x$ac_ct_LIPO" = x; then
8519    LIPO=":"
8520  else
8521    case $cross_compiling:$ac_tool_warned in
8522yes:)
8523{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8525ac_tool_warned=yes ;;
8526esac
8527    LIPO=$ac_ct_LIPO
8528  fi
8529else
8530  LIPO="$ac_cv_prog_LIPO"
8531fi
8532
8533    if test -n "$ac_tool_prefix"; then
8534  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8535set dummy ${ac_tool_prefix}otool; ac_word=$2
8536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if test "${ac_cv_prog_OTOOL+set}" = set; then
8539  $as_echo_n "(cached) " >&6
8540else
8541  if test -n "$OTOOL"; then
8542  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  test -z "$as_dir" && as_dir=.
8549  for ac_exec_ext in '' $ac_executable_extensions; do
8550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8552    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561OTOOL=$ac_cv_prog_OTOOL
8562if test -n "$OTOOL"; then
8563  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8564$as_echo "$OTOOL" >&6; }
8565else
8566  { $as_echo "$as_me:$LINENO: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570
8571fi
8572if test -z "$ac_cv_prog_OTOOL"; then
8573  ac_ct_OTOOL=$OTOOL
8574  # Extract the first word of "otool", so it can be a program name with args.
8575set dummy otool; ac_word=$2
8576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8577$as_echo_n "checking for $ac_word... " >&6; }
8578if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8579  $as_echo_n "(cached) " >&6
8580else
8581  if test -n "$ac_ct_OTOOL"; then
8582  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8583else
8584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587  IFS=$as_save_IFS
8588  test -z "$as_dir" && as_dir=.
8589  for ac_exec_ext in '' $ac_executable_extensions; do
8590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591    ac_cv_prog_ac_ct_OTOOL="otool"
8592    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593    break 2
8594  fi
8595done
8596done
8597IFS=$as_save_IFS
8598
8599fi
8600fi
8601ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8602if test -n "$ac_ct_OTOOL"; then
8603  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8604$as_echo "$ac_ct_OTOOL" >&6; }
8605else
8606  { $as_echo "$as_me:$LINENO: result: no" >&5
8607$as_echo "no" >&6; }
8608fi
8609
8610  if test "x$ac_ct_OTOOL" = x; then
8611    OTOOL=":"
8612  else
8613    case $cross_compiling:$ac_tool_warned in
8614yes:)
8615{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617ac_tool_warned=yes ;;
8618esac
8619    OTOOL=$ac_ct_OTOOL
8620  fi
8621else
8622  OTOOL="$ac_cv_prog_OTOOL"
8623fi
8624
8625    if test -n "$ac_tool_prefix"; then
8626  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8627set dummy ${ac_tool_prefix}otool64; ac_word=$2
8628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8629$as_echo_n "checking for $ac_word... " >&6; }
8630if test "${ac_cv_prog_OTOOL64+set}" = set; then
8631  $as_echo_n "(cached) " >&6
8632else
8633  if test -n "$OTOOL64"; then
8634  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639  IFS=$as_save_IFS
8640  test -z "$as_dir" && as_dir=.
8641  for ac_exec_ext in '' $ac_executable_extensions; do
8642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8644    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648done
8649IFS=$as_save_IFS
8650
8651fi
8652fi
8653OTOOL64=$ac_cv_prog_OTOOL64
8654if test -n "$OTOOL64"; then
8655  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8656$as_echo "$OTOOL64" >&6; }
8657else
8658  { $as_echo "$as_me:$LINENO: result: no" >&5
8659$as_echo "no" >&6; }
8660fi
8661
8662
8663fi
8664if test -z "$ac_cv_prog_OTOOL64"; then
8665  ac_ct_OTOOL64=$OTOOL64
8666  # Extract the first word of "otool64", so it can be a program name with args.
8667set dummy otool64; ac_word=$2
8668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8669$as_echo_n "checking for $ac_word... " >&6; }
8670if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8671  $as_echo_n "(cached) " >&6
8672else
8673  if test -n "$ac_ct_OTOOL64"; then
8674  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8675else
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679  IFS=$as_save_IFS
8680  test -z "$as_dir" && as_dir=.
8681  for ac_exec_ext in '' $ac_executable_extensions; do
8682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8683    ac_cv_prog_ac_ct_OTOOL64="otool64"
8684    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685    break 2
8686  fi
8687done
8688done
8689IFS=$as_save_IFS
8690
8691fi
8692fi
8693ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8694if test -n "$ac_ct_OTOOL64"; then
8695  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8696$as_echo "$ac_ct_OTOOL64" >&6; }
8697else
8698  { $as_echo "$as_me:$LINENO: result: no" >&5
8699$as_echo "no" >&6; }
8700fi
8701
8702  if test "x$ac_ct_OTOOL64" = x; then
8703    OTOOL64=":"
8704  else
8705    case $cross_compiling:$ac_tool_warned in
8706yes:)
8707{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8709ac_tool_warned=yes ;;
8710esac
8711    OTOOL64=$ac_ct_OTOOL64
8712  fi
8713else
8714  OTOOL64="$ac_cv_prog_OTOOL64"
8715fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8744$as_echo_n "checking for -single_module linker flag... " >&6; }
8745if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8746  $as_echo_n "(cached) " >&6
8747else
8748  lt_cv_apple_cc_single_mod=no
8749      if test -z "${LT_MULTI_MODULE}"; then
8750	# By default we will add the -single_module flag. You can override
8751	# by either setting the environment variable LT_MULTI_MODULE
8752	# non-empty at configure time, or by adding -multi_module to the
8753	# link flags.
8754	rm -rf libconftest.dylib*
8755	echo "int foo(void){return 1;}" > conftest.c
8756	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8757-dynamiclib -Wl,-single_module conftest.c" >&5
8758	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8759	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8760        _lt_result=$?
8761	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8762	  lt_cv_apple_cc_single_mod=yes
8763	else
8764	  cat conftest.err >&5
8765	fi
8766	rm -rf libconftest.dylib*
8767	rm -f conftest.*
8768      fi
8769fi
8770{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8771$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8772    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8773$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8774if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8775  $as_echo_n "(cached) " >&6
8776else
8777  lt_cv_ld_exported_symbols_list=no
8778      save_LDFLAGS=$LDFLAGS
8779      echo "_main" > conftest.sym
8780      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8781      cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h.  */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h.  */
8787
8788int
8789main ()
8790{
8791
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (ac_try="$ac_link"
8798case "(($ac_try" in
8799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800  *) ac_try_echo=$ac_try;;
8801esac
8802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8803$as_echo "$ac_try_echo") >&5
8804  (eval "$ac_link") 2>conftest.er1
8805  ac_status=$?
8806  grep -v '^ *+' conftest.er1 >conftest.err
8807  rm -f conftest.er1
8808  cat conftest.err >&5
8809  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); } && {
8811	 test -z "$ac_c_werror_flag" ||
8812	 test ! -s conftest.err
8813       } && test -s conftest$ac_exeext && {
8814	 test "$cross_compiling" = yes ||
8815	 $as_test_x conftest$ac_exeext
8816       }; then
8817  lt_cv_ld_exported_symbols_list=yes
8818else
8819  $as_echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822	lt_cv_ld_exported_symbols_list=no
8823fi
8824
8825rm -rf conftest.dSYM
8826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8827      conftest$ac_exeext conftest.$ac_ext
8828	LDFLAGS="$save_LDFLAGS"
8829
8830fi
8831{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8832$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8833    case $host_os in
8834    rhapsody* | darwin1.[012])
8835      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8836    darwin1.*)
8837      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8838    darwin*) # darwin 5.x on
8839      # if running on 10.5 or later, the deployment target defaults
8840      # to the OS version, if on x86, and 10.4, the deployment
8841      # target defaults to 10.4. Don't you love it?
8842      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8843	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8844	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8845	10.[012]*)
8846	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8847	10.*)
8848	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8849      esac
8850    ;;
8851  esac
8852    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8853      _lt_dar_single_mod='$single_module'
8854    fi
8855    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8856      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8857    else
8858      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8859    fi
8860    if test "$DSYMUTIL" != ":"; then
8861      _lt_dsymutil='~$DSYMUTIL $lib || :'
8862    else
8863      _lt_dsymutil=
8864    fi
8865    ;;
8866  esac
8867
8868
8869for ac_header in dlfcn.h
8870do
8871as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8872{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8873$as_echo_n "checking for $ac_header... " >&6; }
8874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8875  $as_echo_n "(cached) " >&6
8876else
8877  cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h.  */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h.  */
8883$ac_includes_default
8884
8885#include <$ac_header>
8886_ACEOF
8887rm -f conftest.$ac_objext
8888if { (ac_try="$ac_compile"
8889case "(($ac_try" in
8890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891  *) ac_try_echo=$ac_try;;
8892esac
8893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8894$as_echo "$ac_try_echo") >&5
8895  (eval "$ac_compile") 2>conftest.er1
8896  ac_status=$?
8897  grep -v '^ *+' conftest.er1 >conftest.err
8898  rm -f conftest.er1
8899  cat conftest.err >&5
8900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901  (exit $ac_status); } && {
8902	 test -z "$ac_c_werror_flag" ||
8903	 test ! -s conftest.err
8904       } && test -s conftest.$ac_objext; then
8905  eval "$as_ac_Header=yes"
8906else
8907  $as_echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910	eval "$as_ac_Header=no"
8911fi
8912
8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914fi
8915ac_res=`eval 'as_val=${'$as_ac_Header'}
8916		 $as_echo "$as_val"'`
8917	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8918$as_echo "$ac_res" >&6; }
8919as_val=`eval 'as_val=${'$as_ac_Header'}
8920		 $as_echo "$as_val"'`
8921   if test "x$as_val" = x""yes; then
8922  cat >>confdefs.h <<_ACEOF
8923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8924_ACEOF
8925
8926fi
8927
8928done
8929
8930
8931
8932# Set options
8933
8934
8935
8936        enable_dlopen=no
8937
8938
8939  enable_win32_dll=no
8940
8941
8942            # Check whether --enable-shared was given.
8943if test "${enable_shared+set}" = set; then
8944  enableval=$enable_shared; p=${PACKAGE-default}
8945    case $enableval in
8946    yes) enable_shared=yes ;;
8947    no) enable_shared=no ;;
8948    *)
8949      enable_shared=no
8950      # Look at the argument we got.  We use all the common list separators.
8951      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952      for pkg in $enableval; do
8953	IFS="$lt_save_ifs"
8954	if test "X$pkg" = "X$p"; then
8955	  enable_shared=yes
8956	fi
8957      done
8958      IFS="$lt_save_ifs"
8959      ;;
8960    esac
8961else
8962  enable_shared=yes
8963fi
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973  # Check whether --enable-static was given.
8974if test "${enable_static+set}" = set; then
8975  enableval=$enable_static; p=${PACKAGE-default}
8976    case $enableval in
8977    yes) enable_static=yes ;;
8978    no) enable_static=no ;;
8979    *)
8980     enable_static=no
8981      # Look at the argument we got.  We use all the common list separators.
8982      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8983      for pkg in $enableval; do
8984	IFS="$lt_save_ifs"
8985	if test "X$pkg" = "X$p"; then
8986	  enable_static=yes
8987	fi
8988      done
8989      IFS="$lt_save_ifs"
8990      ;;
8991    esac
8992else
8993  enable_static=yes
8994fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005# Check whether --with-pic was given.
9006if test "${with_pic+set}" = set; then
9007  withval=$with_pic; pic_mode="$withval"
9008else
9009  pic_mode=default
9010fi
9011
9012
9013test -z "$pic_mode" && pic_mode=default
9014
9015
9016
9017
9018
9019
9020
9021  # Check whether --enable-fast-install was given.
9022if test "${enable_fast_install+set}" = set; then
9023  enableval=$enable_fast_install; p=${PACKAGE-default}
9024    case $enableval in
9025    yes) enable_fast_install=yes ;;
9026    no) enable_fast_install=no ;;
9027    *)
9028      enable_fast_install=no
9029      # Look at the argument we got.  We use all the common list separators.
9030      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9031      for pkg in $enableval; do
9032	IFS="$lt_save_ifs"
9033	if test "X$pkg" = "X$p"; then
9034	  enable_fast_install=yes
9035	fi
9036      done
9037      IFS="$lt_save_ifs"
9038      ;;
9039    esac
9040else
9041  enable_fast_install=yes
9042fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054# This can be used to rebuild libtool when needed
9055LIBTOOL_DEPS="$ltmain"
9056
9057# Always use our own libtool.
9058LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084test -z "$LN_S" && LN_S="ln -s"
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099if test -n "${ZSH_VERSION+set}" ; then
9100   setopt NO_GLOB_SUBST
9101fi
9102
9103{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9104$as_echo_n "checking for objdir... " >&6; }
9105if test "${lt_cv_objdir+set}" = set; then
9106  $as_echo_n "(cached) " >&6
9107else
9108  rm -f .libs 2>/dev/null
9109mkdir .libs 2>/dev/null
9110if test -d .libs; then
9111  lt_cv_objdir=.libs
9112else
9113  # MS-DOS does not allow filenames that begin with a dot.
9114  lt_cv_objdir=_libs
9115fi
9116rmdir .libs 2>/dev/null
9117fi
9118{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9119$as_echo "$lt_cv_objdir" >&6; }
9120objdir=$lt_cv_objdir
9121
9122
9123
9124
9125
9126cat >>confdefs.h <<_ACEOF
9127#define LT_OBJDIR "$lt_cv_objdir/"
9128_ACEOF
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146case $host_os in
9147aix3*)
9148  # AIX sometimes has problems with the GCC collect2 program.  For some
9149  # reason, if we set the COLLECT_NAMES environment variable, the problems
9150  # vanish in a puff of smoke.
9151  if test "X${COLLECT_NAMES+set}" != Xset; then
9152    COLLECT_NAMES=
9153    export COLLECT_NAMES
9154  fi
9155  ;;
9156esac
9157
9158# Sed substitution that helps us do robust quoting.  It backslashifies
9159# metacharacters that are still active within double-quoted strings.
9160sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9161
9162# Same as above, but do not quote variable references.
9163double_quote_subst='s/\(["`\\]\)/\\\1/g'
9164
9165# Sed substitution to delay expansion of an escaped shell variable in a
9166# double_quote_subst'ed string.
9167delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9168
9169# Sed substitution to delay expansion of an escaped single quote.
9170delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9171
9172# Sed substitution to avoid accidental globbing in evaled expressions
9173no_glob_subst='s/\*/\\\*/g'
9174
9175# Global variables:
9176ofile=libtool
9177can_build_shared=yes
9178
9179# All known linkers require a `.a' archive for static linking (except MSVC,
9180# which needs '.lib').
9181libext=a
9182
9183with_gnu_ld="$lt_cv_prog_gnu_ld"
9184
9185old_CC="$CC"
9186old_CFLAGS="$CFLAGS"
9187
9188# Set sane defaults for various variables
9189test -z "$CC" && CC=cc
9190test -z "$LTCC" && LTCC=$CC
9191test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9192test -z "$LD" && LD=ld
9193test -z "$ac_objext" && ac_objext=o
9194
9195for cc_temp in $compiler""; do
9196  case $cc_temp in
9197    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9198    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9199    \-*) ;;
9200    *) break;;
9201  esac
9202done
9203cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9204
9205
9206# Only perform the check for file, if the check method requires it
9207test -z "$MAGIC_CMD" && MAGIC_CMD=file
9208case $deplibs_check_method in
9209file_magic*)
9210  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9211    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9212$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9213if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9214  $as_echo_n "(cached) " >&6
9215else
9216  case $MAGIC_CMD in
9217[\\/*] |  ?:[\\/]*)
9218  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9219  ;;
9220*)
9221  lt_save_MAGIC_CMD="$MAGIC_CMD"
9222  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9223  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9224  for ac_dir in $ac_dummy; do
9225    IFS="$lt_save_ifs"
9226    test -z "$ac_dir" && ac_dir=.
9227    if test -f $ac_dir/${ac_tool_prefix}file; then
9228      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9229      if test -n "$file_magic_test_file"; then
9230	case $deplibs_check_method in
9231	"file_magic "*)
9232	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9233	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9234	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9235	    $EGREP "$file_magic_regex" > /dev/null; then
9236	    :
9237	  else
9238	    cat <<_LT_EOF 1>&2
9239
9240*** Warning: the command libtool uses to detect shared libraries,
9241*** $file_magic_cmd, produces output that libtool cannot recognize.
9242*** The result is that libtool may fail to recognize shared libraries
9243*** as such.  This will affect the creation of libtool libraries that
9244*** depend on shared libraries, but programs linked with such libtool
9245*** libraries will work regardless of this problem.  Nevertheless, you
9246*** may want to report the problem to your system manager and/or to
9247*** bug-libtool@gnu.org
9248
9249_LT_EOF
9250	  fi ;;
9251	esac
9252      fi
9253      break
9254    fi
9255  done
9256  IFS="$lt_save_ifs"
9257  MAGIC_CMD="$lt_save_MAGIC_CMD"
9258  ;;
9259esac
9260fi
9261
9262MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9263if test -n "$MAGIC_CMD"; then
9264  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9265$as_echo "$MAGIC_CMD" >&6; }
9266else
9267  { $as_echo "$as_me:$LINENO: result: no" >&5
9268$as_echo "no" >&6; }
9269fi
9270
9271
9272
9273
9274
9275if test -z "$lt_cv_path_MAGIC_CMD"; then
9276  if test -n "$ac_tool_prefix"; then
9277    { $as_echo "$as_me:$LINENO: checking for file" >&5
9278$as_echo_n "checking for file... " >&6; }
9279if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9280  $as_echo_n "(cached) " >&6
9281else
9282  case $MAGIC_CMD in
9283[\\/*] |  ?:[\\/]*)
9284  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9285  ;;
9286*)
9287  lt_save_MAGIC_CMD="$MAGIC_CMD"
9288  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9289  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9290  for ac_dir in $ac_dummy; do
9291    IFS="$lt_save_ifs"
9292    test -z "$ac_dir" && ac_dir=.
9293    if test -f $ac_dir/file; then
9294      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9295      if test -n "$file_magic_test_file"; then
9296	case $deplibs_check_method in
9297	"file_magic "*)
9298	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9299	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9300	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9301	    $EGREP "$file_magic_regex" > /dev/null; then
9302	    :
9303	  else
9304	    cat <<_LT_EOF 1>&2
9305
9306*** Warning: the command libtool uses to detect shared libraries,
9307*** $file_magic_cmd, produces output that libtool cannot recognize.
9308*** The result is that libtool may fail to recognize shared libraries
9309*** as such.  This will affect the creation of libtool libraries that
9310*** depend on shared libraries, but programs linked with such libtool
9311*** libraries will work regardless of this problem.  Nevertheless, you
9312*** may want to report the problem to your system manager and/or to
9313*** bug-libtool@gnu.org
9314
9315_LT_EOF
9316	  fi ;;
9317	esac
9318      fi
9319      break
9320    fi
9321  done
9322  IFS="$lt_save_ifs"
9323  MAGIC_CMD="$lt_save_MAGIC_CMD"
9324  ;;
9325esac
9326fi
9327
9328MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9329if test -n "$MAGIC_CMD"; then
9330  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9331$as_echo "$MAGIC_CMD" >&6; }
9332else
9333  { $as_echo "$as_me:$LINENO: result: no" >&5
9334$as_echo "no" >&6; }
9335fi
9336
9337
9338  else
9339    MAGIC_CMD=:
9340  fi
9341fi
9342
9343  fi
9344  ;;
9345esac
9346
9347# Use C for the default configuration in the libtool script
9348
9349lt_save_CC="$CC"
9350ac_ext=c
9351ac_cpp='$CPP $CPPFLAGS'
9352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9354ac_compiler_gnu=$ac_cv_c_compiler_gnu
9355
9356
9357# Source file extension for C test sources.
9358ac_ext=c
9359
9360# Object file extension for compiled C test sources.
9361objext=o
9362objext=$objext
9363
9364# Code to be used in simple compile tests
9365lt_simple_compile_test_code="int some_variable = 0;"
9366
9367# Code to be used in simple link tests
9368lt_simple_link_test_code='int main(){return(0);}'
9369
9370
9371
9372
9373
9374
9375
9376# If no C compiler was specified, use CC.
9377LTCC=${LTCC-"$CC"}
9378
9379# If no C compiler flags were specified, use CFLAGS.
9380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9381
9382# Allow CC to be a program name with arguments.
9383compiler=$CC
9384
9385# Save the default compiler, since it gets overwritten when the other
9386# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9387compiler_DEFAULT=$CC
9388
9389# save warnings/boilerplate of simple test code
9390ac_outfile=conftest.$ac_objext
9391echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9392eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9393_lt_compiler_boilerplate=`cat conftest.err`
9394$RM conftest*
9395
9396ac_outfile=conftest.$ac_objext
9397echo "$lt_simple_link_test_code" >conftest.$ac_ext
9398eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9399_lt_linker_boilerplate=`cat conftest.err`
9400$RM -r conftest*
9401
9402
9403if test -n "$compiler"; then
9404
9405lt_prog_compiler_no_builtin_flag=
9406
9407if test "$GCC" = yes; then
9408  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9409
9410  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9411$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9412if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9413  $as_echo_n "(cached) " >&6
9414else
9415  lt_cv_prog_compiler_rtti_exceptions=no
9416   ac_outfile=conftest.$ac_objext
9417   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418   lt_compiler_flag="-fno-rtti -fno-exceptions"
9419   # Insert the option either (1) after the last *FLAGS variable, or
9420   # (2) before a word containing "conftest.", or (3) at the end.
9421   # Note that $ac_compile itself does not contain backslashes and begins
9422   # with a dollar sign (not a hyphen), so the echo should work correctly.
9423   # The option is referenced via a variable to avoid confusing sed.
9424   lt_compile=`echo "$ac_compile" | $SED \
9425   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427   -e 's:$: $lt_compiler_flag:'`
9428   (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
9429   (eval "$lt_compile" 2>conftest.err)
9430   ac_status=$?
9431   cat conftest.err >&5
9432   echo "$as_me:9432: \$? = $ac_status" >&5
9433   if (exit $ac_status) && test -s "$ac_outfile"; then
9434     # The compiler can only warn and ignore the option if not recognized
9435     # So say no if there are warnings other than the usual output.
9436     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9437     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9439       lt_cv_prog_compiler_rtti_exceptions=yes
9440     fi
9441   fi
9442   $RM conftest*
9443
9444fi
9445{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9446$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9447
9448if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9449    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9450else
9451    :
9452fi
9453
9454fi
9455
9456
9457
9458
9459
9460
9461  lt_prog_compiler_wl=
9462lt_prog_compiler_pic=
9463lt_prog_compiler_static=
9464
9465{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9466$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9467
9468  if test "$GCC" = yes; then
9469    lt_prog_compiler_wl='-Wl,'
9470    lt_prog_compiler_static='-static'
9471
9472    case $host_os in
9473      aix*)
9474      # All AIX code is PIC.
9475      if test "$host_cpu" = ia64; then
9476	# AIX 5 now supports IA64 processor
9477	lt_prog_compiler_static='-Bstatic'
9478      fi
9479      ;;
9480
9481    amigaos*)
9482      case $host_cpu in
9483      powerpc)
9484            # see comment about AmigaOS4 .so support
9485            lt_prog_compiler_pic='-fPIC'
9486        ;;
9487      m68k)
9488            # FIXME: we need at least 68020 code to build shared libraries, but
9489            # adding the `-m68020' flag to GCC prevents building anything better,
9490            # like `-m68040'.
9491            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9492        ;;
9493      esac
9494      ;;
9495
9496    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9497      # PIC is the default for these OSes.
9498      ;;
9499
9500    mingw* | cygwin* | pw32* | os2* | cegcc*)
9501      # This hack is so that the source file can tell whether it is being
9502      # built for inclusion in a dll (and should export symbols for example).
9503      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9504      # (--disable-auto-import) libraries
9505      lt_prog_compiler_pic='-DDLL_EXPORT'
9506      ;;
9507
9508    darwin* | rhapsody*)
9509      # PIC is the default on this platform
9510      # Common symbols not allowed in MH_DYLIB files
9511      lt_prog_compiler_pic='-fno-common'
9512      ;;
9513
9514    hpux*)
9515      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9516      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9517      # sets the default TLS model and affects inlining.
9518      case $host_cpu in
9519      hppa*64*)
9520	# +Z the default
9521	;;
9522      *)
9523	lt_prog_compiler_pic='-fPIC'
9524	;;
9525      esac
9526      ;;
9527
9528    interix[3-9]*)
9529      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9530      # Instead, we relocate shared libraries at runtime.
9531      ;;
9532
9533    msdosdjgpp*)
9534      # Just because we use GCC doesn't mean we suddenly get shared libraries
9535      # on systems that don't support them.
9536      lt_prog_compiler_can_build_shared=no
9537      enable_shared=no
9538      ;;
9539
9540    *nto* | *qnx*)
9541      # QNX uses GNU C++, but need to define -shared option too, otherwise
9542      # it will coredump.
9543      lt_prog_compiler_pic='-fPIC -shared'
9544      ;;
9545
9546    sysv4*MP*)
9547      if test -d /usr/nec; then
9548	lt_prog_compiler_pic=-Kconform_pic
9549      fi
9550      ;;
9551
9552    *)
9553      lt_prog_compiler_pic='-fPIC'
9554      ;;
9555    esac
9556  else
9557    # PORTME Check for flag to pass linker flags through the system compiler.
9558    case $host_os in
9559    aix*)
9560      lt_prog_compiler_wl='-Wl,'
9561      if test "$host_cpu" = ia64; then
9562	# AIX 5 now supports IA64 processor
9563	lt_prog_compiler_static='-Bstatic'
9564      else
9565	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9566      fi
9567      ;;
9568
9569    mingw* | cygwin* | pw32* | os2* | cegcc*)
9570      # This hack is so that the source file can tell whether it is being
9571      # built for inclusion in a dll (and should export symbols for example).
9572      lt_prog_compiler_pic='-DDLL_EXPORT'
9573      ;;
9574
9575    hpux9* | hpux10* | hpux11*)
9576      lt_prog_compiler_wl='-Wl,'
9577      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9578      # not for PA HP-UX.
9579      case $host_cpu in
9580      hppa*64*|ia64*)
9581	# +Z the default
9582	;;
9583      *)
9584	lt_prog_compiler_pic='+Z'
9585	;;
9586      esac
9587      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9588      lt_prog_compiler_static='${wl}-a ${wl}archive'
9589      ;;
9590
9591    irix5* | irix6* | nonstopux*)
9592      lt_prog_compiler_wl='-Wl,'
9593      # PIC (with -KPIC) is the default.
9594      lt_prog_compiler_static='-non_shared'
9595      ;;
9596
9597    linux* | k*bsd*-gnu)
9598      case $cc_basename in
9599      # old Intel for x86_64 which still supported -KPIC.
9600      ecc*)
9601	lt_prog_compiler_wl='-Wl,'
9602	lt_prog_compiler_pic='-KPIC'
9603	lt_prog_compiler_static='-static'
9604        ;;
9605      # icc used to be incompatible with GCC.
9606      # ICC 10 doesn't accept -KPIC any more.
9607      icc* | ifort*)
9608	lt_prog_compiler_wl='-Wl,'
9609	lt_prog_compiler_pic='-fPIC'
9610	lt_prog_compiler_static='-static'
9611        ;;
9612      # Lahey Fortran 8.1.
9613      lf95*)
9614	lt_prog_compiler_wl='-Wl,'
9615	lt_prog_compiler_pic='--shared'
9616	lt_prog_compiler_static='--static'
9617	;;
9618      pgcc* | pgf77* | pgf90* | pgf95*)
9619        # Portland Group compilers (*not* the Pentium gcc compiler,
9620	# which looks to be a dead project)
9621	lt_prog_compiler_wl='-Wl,'
9622	lt_prog_compiler_pic='-fpic'
9623	lt_prog_compiler_static='-Bstatic'
9624        ;;
9625      ccc*)
9626        lt_prog_compiler_wl='-Wl,'
9627        # All Alpha code is PIC.
9628        lt_prog_compiler_static='-non_shared'
9629        ;;
9630      xl*)
9631	# IBM XL C 8.0/Fortran 10.1 on PPC
9632	lt_prog_compiler_wl='-Wl,'
9633	lt_prog_compiler_pic='-qpic'
9634	lt_prog_compiler_static='-qstaticlink'
9635	;;
9636      *)
9637	case `$CC -V 2>&1 | sed 5q` in
9638	*Sun\ C*)
9639	  # Sun C 5.9
9640	  lt_prog_compiler_pic='-KPIC'
9641	  lt_prog_compiler_static='-Bstatic'
9642	  lt_prog_compiler_wl='-Wl,'
9643	  ;;
9644	*Sun\ F*)
9645	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9646	  lt_prog_compiler_pic='-KPIC'
9647	  lt_prog_compiler_static='-Bstatic'
9648	  lt_prog_compiler_wl=''
9649	  ;;
9650	esac
9651	;;
9652      esac
9653      ;;
9654
9655    newsos6)
9656      lt_prog_compiler_pic='-KPIC'
9657      lt_prog_compiler_static='-Bstatic'
9658      ;;
9659
9660    *nto* | *qnx*)
9661      # QNX uses GNU C++, but need to define -shared option too, otherwise
9662      # it will coredump.
9663      lt_prog_compiler_pic='-fPIC -shared'
9664      ;;
9665
9666    osf3* | osf4* | osf5*)
9667      lt_prog_compiler_wl='-Wl,'
9668      # All OSF/1 code is PIC.
9669      lt_prog_compiler_static='-non_shared'
9670      ;;
9671
9672    rdos*)
9673      lt_prog_compiler_static='-non_shared'
9674      ;;
9675
9676    solaris*)
9677      lt_prog_compiler_pic='-KPIC'
9678      lt_prog_compiler_static='-Bstatic'
9679      case $cc_basename in
9680      f77* | f90* | f95*)
9681	lt_prog_compiler_wl='-Qoption ld ';;
9682      *)
9683	lt_prog_compiler_wl='-Wl,';;
9684      esac
9685      ;;
9686
9687    sunos4*)
9688      lt_prog_compiler_wl='-Qoption ld '
9689      lt_prog_compiler_pic='-PIC'
9690      lt_prog_compiler_static='-Bstatic'
9691      ;;
9692
9693    sysv4 | sysv4.2uw2* | sysv4.3*)
9694      lt_prog_compiler_wl='-Wl,'
9695      lt_prog_compiler_pic='-KPIC'
9696      lt_prog_compiler_static='-Bstatic'
9697      ;;
9698
9699    sysv4*MP*)
9700      if test -d /usr/nec ;then
9701	lt_prog_compiler_pic='-Kconform_pic'
9702	lt_prog_compiler_static='-Bstatic'
9703      fi
9704      ;;
9705
9706    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707      lt_prog_compiler_wl='-Wl,'
9708      lt_prog_compiler_pic='-KPIC'
9709      lt_prog_compiler_static='-Bstatic'
9710      ;;
9711
9712    unicos*)
9713      lt_prog_compiler_wl='-Wl,'
9714      lt_prog_compiler_can_build_shared=no
9715      ;;
9716
9717    uts4*)
9718      lt_prog_compiler_pic='-pic'
9719      lt_prog_compiler_static='-Bstatic'
9720      ;;
9721
9722    *)
9723      lt_prog_compiler_can_build_shared=no
9724      ;;
9725    esac
9726  fi
9727
9728case $host_os in
9729  # For platforms which do not support PIC, -DPIC is meaningless:
9730  *djgpp*)
9731    lt_prog_compiler_pic=
9732    ;;
9733  *)
9734    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9735    ;;
9736esac
9737{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9738$as_echo "$lt_prog_compiler_pic" >&6; }
9739
9740
9741
9742
9743
9744
9745#
9746# Check to make sure the PIC flag actually works.
9747#
9748if test -n "$lt_prog_compiler_pic"; then
9749  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9750$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9751if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9752  $as_echo_n "(cached) " >&6
9753else
9754  lt_cv_prog_compiler_pic_works=no
9755   ac_outfile=conftest.$ac_objext
9756   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9758   # Insert the option either (1) after the last *FLAGS variable, or
9759   # (2) before a word containing "conftest.", or (3) at the end.
9760   # Note that $ac_compile itself does not contain backslashes and begins
9761   # with a dollar sign (not a hyphen), so the echo should work correctly.
9762   # The option is referenced via a variable to avoid confusing sed.
9763   lt_compile=`echo "$ac_compile" | $SED \
9764   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766   -e 's:$: $lt_compiler_flag:'`
9767   (eval echo "\"\$as_me:9767: $lt_compile\"" >&5)
9768   (eval "$lt_compile" 2>conftest.err)
9769   ac_status=$?
9770   cat conftest.err >&5
9771   echo "$as_me:9771: \$? = $ac_status" >&5
9772   if (exit $ac_status) && test -s "$ac_outfile"; then
9773     # The compiler can only warn and ignore the option if not recognized
9774     # So say no if there are warnings other than the usual output.
9775     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9776     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9778       lt_cv_prog_compiler_pic_works=yes
9779     fi
9780   fi
9781   $RM conftest*
9782
9783fi
9784{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9785$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9786
9787if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9788    case $lt_prog_compiler_pic in
9789     "" | " "*) ;;
9790     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9791     esac
9792else
9793    lt_prog_compiler_pic=
9794     lt_prog_compiler_can_build_shared=no
9795fi
9796
9797fi
9798
9799
9800
9801
9802
9803
9804#
9805# Check to make sure the static flag actually works.
9806#
9807wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9808{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9809$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9810if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9811  $as_echo_n "(cached) " >&6
9812else
9813  lt_cv_prog_compiler_static_works=no
9814   save_LDFLAGS="$LDFLAGS"
9815   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9816   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9817   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9818     # The linker can only warn and ignore the option if not recognized
9819     # So say no if there are warnings
9820     if test -s conftest.err; then
9821       # Append any errors to the config.log.
9822       cat conftest.err 1>&5
9823       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9824       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825       if diff conftest.exp conftest.er2 >/dev/null; then
9826         lt_cv_prog_compiler_static_works=yes
9827       fi
9828     else
9829       lt_cv_prog_compiler_static_works=yes
9830     fi
9831   fi
9832   $RM -r conftest*
9833   LDFLAGS="$save_LDFLAGS"
9834
9835fi
9836{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9837$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9838
9839if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9840    :
9841else
9842    lt_prog_compiler_static=
9843fi
9844
9845
9846
9847
9848
9849
9850
9851  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9852$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9853if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9854  $as_echo_n "(cached) " >&6
9855else
9856  lt_cv_prog_compiler_c_o=no
9857   $RM -r conftest 2>/dev/null
9858   mkdir conftest
9859   cd conftest
9860   mkdir out
9861   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9862
9863   lt_compiler_flag="-o out/conftest2.$ac_objext"
9864   # Insert the option either (1) after the last *FLAGS variable, or
9865   # (2) before a word containing "conftest.", or (3) at the end.
9866   # Note that $ac_compile itself does not contain backslashes and begins
9867   # with a dollar sign (not a hyphen), so the echo should work correctly.
9868   lt_compile=`echo "$ac_compile" | $SED \
9869   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9870   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9871   -e 's:$: $lt_compiler_flag:'`
9872   (eval echo "\"\$as_me:9872: $lt_compile\"" >&5)
9873   (eval "$lt_compile" 2>out/conftest.err)
9874   ac_status=$?
9875   cat out/conftest.err >&5
9876   echo "$as_me:9876: \$? = $ac_status" >&5
9877   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9878   then
9879     # The compiler can only warn and ignore the option if not recognized
9880     # So say no if there are warnings
9881     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9882     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9883     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9884       lt_cv_prog_compiler_c_o=yes
9885     fi
9886   fi
9887   chmod u+w . 2>&5
9888   $RM conftest*
9889   # SGI C++ compiler will create directory out/ii_files/ for
9890   # template instantiation
9891   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9892   $RM out/* && rmdir out
9893   cd ..
9894   $RM -r conftest
9895   $RM conftest*
9896
9897fi
9898{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9899$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9900
9901
9902
9903
9904
9905
9906  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9908if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9909  $as_echo_n "(cached) " >&6
9910else
9911  lt_cv_prog_compiler_c_o=no
9912   $RM -r conftest 2>/dev/null
9913   mkdir conftest
9914   cd conftest
9915   mkdir out
9916   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9917
9918   lt_compiler_flag="-o out/conftest2.$ac_objext"
9919   # Insert the option either (1) after the last *FLAGS variable, or
9920   # (2) before a word containing "conftest.", or (3) at the end.
9921   # Note that $ac_compile itself does not contain backslashes and begins
9922   # with a dollar sign (not a hyphen), so the echo should work correctly.
9923   lt_compile=`echo "$ac_compile" | $SED \
9924   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9925   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9926   -e 's:$: $lt_compiler_flag:'`
9927   (eval echo "\"\$as_me:9927: $lt_compile\"" >&5)
9928   (eval "$lt_compile" 2>out/conftest.err)
9929   ac_status=$?
9930   cat out/conftest.err >&5
9931   echo "$as_me:9931: \$? = $ac_status" >&5
9932   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9933   then
9934     # The compiler can only warn and ignore the option if not recognized
9935     # So say no if there are warnings
9936     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9937     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9938     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9939       lt_cv_prog_compiler_c_o=yes
9940     fi
9941   fi
9942   chmod u+w . 2>&5
9943   $RM conftest*
9944   # SGI C++ compiler will create directory out/ii_files/ for
9945   # template instantiation
9946   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9947   $RM out/* && rmdir out
9948   cd ..
9949   $RM -r conftest
9950   $RM conftest*
9951
9952fi
9953{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9954$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9955
9956
9957
9958
9959hard_links="nottested"
9960if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9961  # do not overwrite the value of need_locks provided by the user
9962  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9963$as_echo_n "checking if we can lock with hard links... " >&6; }
9964  hard_links=yes
9965  $RM conftest*
9966  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9967  touch conftest.a
9968  ln conftest.a conftest.b 2>&5 || hard_links=no
9969  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9970  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9971$as_echo "$hard_links" >&6; }
9972  if test "$hard_links" = no; then
9973    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9974$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9975    need_locks=warn
9976  fi
9977else
9978  need_locks=no
9979fi
9980
9981
9982
9983
9984
9985
9986  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9987$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9988
9989  runpath_var=
9990  allow_undefined_flag=
9991  always_export_symbols=no
9992  archive_cmds=
9993  archive_expsym_cmds=
9994  compiler_needs_object=no
9995  enable_shared_with_static_runtimes=no
9996  export_dynamic_flag_spec=
9997  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9998  hardcode_automatic=no
9999  hardcode_direct=no
10000  hardcode_direct_absolute=no
10001  hardcode_libdir_flag_spec=
10002  hardcode_libdir_flag_spec_ld=
10003  hardcode_libdir_separator=
10004  hardcode_minus_L=no
10005  hardcode_shlibpath_var=unsupported
10006  inherit_rpath=no
10007  link_all_deplibs=unknown
10008  module_cmds=
10009  module_expsym_cmds=
10010  old_archive_from_new_cmds=
10011  old_archive_from_expsyms_cmds=
10012  thread_safe_flag_spec=
10013  whole_archive_flag_spec=
10014  # include_expsyms should be a list of space-separated symbols to be *always*
10015  # included in the symbol list
10016  include_expsyms=
10017  # exclude_expsyms can be an extended regexp of symbols to exclude
10018  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10019  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10020  # as well as any symbol that contains `d'.
10021  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10022  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10023  # platforms (ab)use it in PIC code, but their linkers get confused if
10024  # the symbol is explicitly referenced.  Since portable code cannot
10025  # rely on this symbol name, it's probably fine to never include it in
10026  # preloaded symbol tables.
10027  # Exclude shared library initialization/finalization symbols.
10028  extract_expsyms_cmds=
10029
10030  case $host_os in
10031  cygwin* | mingw* | pw32* | cegcc*)
10032    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10033    # When not using gcc, we currently assume that we are using
10034    # Microsoft Visual C++.
10035    if test "$GCC" != yes; then
10036      with_gnu_ld=no
10037    fi
10038    ;;
10039  interix*)
10040    # we just hope/assume this is gcc and not c89 (= MSVC++)
10041    with_gnu_ld=yes
10042    ;;
10043  openbsd*)
10044    with_gnu_ld=no
10045    ;;
10046  esac
10047
10048  ld_shlibs=yes
10049  if test "$with_gnu_ld" = yes; then
10050    # If archive_cmds runs LD, not CC, wlarc should be empty
10051    wlarc='${wl}'
10052
10053    # Set some defaults for GNU ld with shared library support. These
10054    # are reset later if shared libraries are not supported. Putting them
10055    # here allows them to be overridden if necessary.
10056    runpath_var=LD_RUN_PATH
10057    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058    export_dynamic_flag_spec='${wl}--export-dynamic'
10059    # ancient GNU ld didn't support --whole-archive et. al.
10060    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10061      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10062    else
10063      whole_archive_flag_spec=
10064    fi
10065    supports_anon_versioning=no
10066    case `$LD -v 2>&1` in
10067      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10068      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10069      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10070      *\ 2.11.*) ;; # other 2.11 versions
10071      *) supports_anon_versioning=yes ;;
10072    esac
10073
10074    # See if GNU ld supports shared libraries.
10075    case $host_os in
10076    aix[3-9]*)
10077      # On AIX/PPC, the GNU linker is very broken
10078      if test "$host_cpu" != ia64; then
10079	ld_shlibs=no
10080	cat <<_LT_EOF 1>&2
10081
10082*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10083*** to be unable to reliably create shared libraries on AIX.
10084*** Therefore, libtool is disabling shared libraries support.  If you
10085*** really care for shared libraries, you may want to modify your PATH
10086*** so that a non-GNU linker is found, and then restart.
10087
10088_LT_EOF
10089      fi
10090      ;;
10091
10092    amigaos*)
10093      case $host_cpu in
10094      powerpc)
10095            # see comment about AmigaOS4 .so support
10096            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097            archive_expsym_cmds=''
10098        ;;
10099      m68k)
10100            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)'
10101            hardcode_libdir_flag_spec='-L$libdir'
10102            hardcode_minus_L=yes
10103        ;;
10104      esac
10105      ;;
10106
10107    beos*)
10108      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109	allow_undefined_flag=unsupported
10110	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10111	# support --undefined.  This deserves some investigation.  FIXME
10112	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113      else
10114	ld_shlibs=no
10115      fi
10116      ;;
10117
10118    cygwin* | mingw* | pw32* | cegcc*)
10119      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10120      # as there is no search path for DLLs.
10121      hardcode_libdir_flag_spec='-L$libdir'
10122      allow_undefined_flag=unsupported
10123      always_export_symbols=no
10124      enable_shared_with_static_runtimes=yes
10125      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10126
10127      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10128        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129	# If the export-symbols file already is a .def file (1st line
10130	# is EXPORTS), use it as is; otherwise, prepend...
10131	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132	  cp $export_symbols $output_objdir/$soname.def;
10133	else
10134	  echo EXPORTS > $output_objdir/$soname.def;
10135	  cat $export_symbols >> $output_objdir/$soname.def;
10136	fi~
10137	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138      else
10139	ld_shlibs=no
10140      fi
10141      ;;
10142
10143    interix[3-9]*)
10144      hardcode_direct=no
10145      hardcode_shlibpath_var=no
10146      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147      export_dynamic_flag_spec='${wl}-E'
10148      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10149      # Instead, shared libraries are loaded at an image base (0x10000000 by
10150      # default) and relocated if they conflict, which is a slow very memory
10151      # consuming and fragmenting process.  To avoid this, we pick a random,
10152      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10153      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10154      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10155      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'
10156      ;;
10157
10158    gnu* | linux* | tpf* | k*bsd*-gnu)
10159      tmp_diet=no
10160      if test "$host_os" = linux-dietlibc; then
10161	case $cc_basename in
10162	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10163	esac
10164      fi
10165      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10166	 && test "$tmp_diet" = no
10167      then
10168	tmp_addflag=
10169	tmp_sharedflag='-shared'
10170	case $cc_basename,$host_cpu in
10171        pgcc*)				# Portland Group C compiler
10172	  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'
10173	  tmp_addflag=' $pic_flag'
10174	  ;;
10175	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10176	  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'
10177	  tmp_addflag=' $pic_flag -Mnomain' ;;
10178	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10179	  tmp_addflag=' -i_dynamic' ;;
10180	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10181	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10182	ifc* | ifort*)			# Intel Fortran compiler
10183	  tmp_addflag=' -nofor_main' ;;
10184	lf95*)				# Lahey Fortran 8.1
10185	  whole_archive_flag_spec=
10186	  tmp_sharedflag='--shared' ;;
10187	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10188	  tmp_sharedflag='-qmkshrobj'
10189	  tmp_addflag= ;;
10190	esac
10191	case `$CC -V 2>&1 | sed 5q` in
10192	*Sun\ C*)			# Sun C 5.9
10193	  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'
10194	  compiler_needs_object=yes
10195	  tmp_sharedflag='-G' ;;
10196	*Sun\ F*)			# Sun Fortran 8.3
10197	  tmp_sharedflag='-G' ;;
10198	esac
10199	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200
10201        if test "x$supports_anon_versioning" = xyes; then
10202          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10203	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10204	    echo "local: *; };" >> $output_objdir/$libname.ver~
10205	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10206        fi
10207
10208	case $cc_basename in
10209	xlf*)
10210	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10211	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10212	  hardcode_libdir_flag_spec=
10213	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10214	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10215	  if test "x$supports_anon_versioning" = xyes; then
10216	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10217	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10218	      echo "local: *; };" >> $output_objdir/$libname.ver~
10219	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10220	  fi
10221	  ;;
10222	esac
10223      else
10224        ld_shlibs=no
10225      fi
10226      ;;
10227
10228    netbsd* | netbsdelf*-gnu)
10229      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10231	wlarc=
10232      else
10233	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235      fi
10236      ;;
10237
10238    solaris*)
10239      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10240	ld_shlibs=no
10241	cat <<_LT_EOF 1>&2
10242
10243*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10244*** create shared libraries on Solaris systems.  Therefore, libtool
10245*** is disabling shared libraries support.  We urge you to upgrade GNU
10246*** binutils to release 2.9.1 or newer.  Another option is to modify
10247*** your PATH or compiler configuration so that the native linker is
10248*** used, and then restart.
10249
10250_LT_EOF
10251      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10254      else
10255	ld_shlibs=no
10256      fi
10257      ;;
10258
10259    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10260      case `$LD -v 2>&1` in
10261        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10262	ld_shlibs=no
10263	cat <<_LT_EOF 1>&2
10264
10265*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10266*** reliably create shared libraries on SCO systems.  Therefore, libtool
10267*** is disabling shared libraries support.  We urge you to upgrade GNU
10268*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10269*** your PATH or compiler configuration so that the native linker is
10270*** used, and then restart.
10271
10272_LT_EOF
10273	;;
10274	*)
10275	  # For security reasons, it is highly recommended that you always
10276	  # use absolute paths for naming shared libraries, and exclude the
10277	  # DT_RUNPATH tag from executables and libraries.  But doing so
10278	  # requires that you compile everything twice, which is a pain.
10279	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10280	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10283	  else
10284	    ld_shlibs=no
10285	  fi
10286	;;
10287      esac
10288      ;;
10289
10290    sunos4*)
10291      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10292      wlarc=
10293      hardcode_direct=yes
10294      hardcode_shlibpath_var=no
10295      ;;
10296
10297    *)
10298      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10299	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10301      else
10302	ld_shlibs=no
10303      fi
10304      ;;
10305    esac
10306
10307    if test "$ld_shlibs" = no; then
10308      runpath_var=
10309      hardcode_libdir_flag_spec=
10310      export_dynamic_flag_spec=
10311      whole_archive_flag_spec=
10312    fi
10313  else
10314    # PORTME fill in a description of your system's linker (not GNU ld)
10315    case $host_os in
10316    aix3*)
10317      allow_undefined_flag=unsupported
10318      always_export_symbols=yes
10319      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'
10320      # Note: this linker hardcodes the directories in LIBPATH if there
10321      # are no directories specified by -L.
10322      hardcode_minus_L=yes
10323      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10324	# Neither direct hardcoding nor static linking is supported with a
10325	# broken collect2.
10326	hardcode_direct=unsupported
10327      fi
10328      ;;
10329
10330    aix[4-9]*)
10331      if test "$host_cpu" = ia64; then
10332	# On IA64, the linker does run time linking by default, so we don't
10333	# have to do anything special.
10334	aix_use_runtimelinking=no
10335	exp_sym_flag='-Bexport'
10336	no_entry_flag=""
10337      else
10338	# If we're using GNU nm, then we don't want the "-C" option.
10339	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10340	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10341	  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'
10342	else
10343	  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'
10344	fi
10345	aix_use_runtimelinking=no
10346
10347	# Test if we are trying to use run time linking or normal
10348	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10349	# need to do runtime linking.
10350	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10351	  for ld_flag in $LDFLAGS; do
10352	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10353	    aix_use_runtimelinking=yes
10354	    break
10355	  fi
10356	  done
10357	  ;;
10358	esac
10359
10360	exp_sym_flag='-bexport'
10361	no_entry_flag='-bnoentry'
10362      fi
10363
10364      # When large executables or shared objects are built, AIX ld can
10365      # have problems creating the table of contents.  If linking a library
10366      # or program results in "error TOC overflow" add -mminimal-toc to
10367      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10368      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10369
10370      archive_cmds=''
10371      hardcode_direct=yes
10372      hardcode_direct_absolute=yes
10373      hardcode_libdir_separator=':'
10374      link_all_deplibs=yes
10375      file_list_spec='${wl}-f,'
10376
10377      if test "$GCC" = yes; then
10378	case $host_os in aix4.[012]|aix4.[012].*)
10379	# We only want to do this on AIX 4.2 and lower, the check
10380	# below for broken collect2 doesn't work under 4.3+
10381	  collect2name=`${CC} -print-prog-name=collect2`
10382	  if test -f "$collect2name" &&
10383	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10384	  then
10385	  # We have reworked collect2
10386	  :
10387	  else
10388	  # We have old collect2
10389	  hardcode_direct=unsupported
10390	  # It fails to find uninstalled libraries when the uninstalled
10391	  # path is not listed in the libpath.  Setting hardcode_minus_L
10392	  # to unsupported forces relinking
10393	  hardcode_minus_L=yes
10394	  hardcode_libdir_flag_spec='-L$libdir'
10395	  hardcode_libdir_separator=
10396	  fi
10397	  ;;
10398	esac
10399	shared_flag='-shared'
10400	if test "$aix_use_runtimelinking" = yes; then
10401	  shared_flag="$shared_flag "'${wl}-G'
10402	fi
10403	link_all_deplibs=no
10404      else
10405	# not using gcc
10406	if test "$host_cpu" = ia64; then
10407	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408	# chokes on -Wl,-G. The following line is correct:
10409	  shared_flag='-G'
10410	else
10411	  if test "$aix_use_runtimelinking" = yes; then
10412	    shared_flag='${wl}-G'
10413	  else
10414	    shared_flag='${wl}-bM:SRE'
10415	  fi
10416	fi
10417      fi
10418
10419      export_dynamic_flag_spec='${wl}-bexpall'
10420      # It seems that -bexpall does not export symbols beginning with
10421      # underscore (_), so it is better to generate a list of symbols to export.
10422      always_export_symbols=yes
10423      if test "$aix_use_runtimelinking" = yes; then
10424	# Warning - without using the other runtime loading flags (-brtl),
10425	# -berok will link without error, but may produce a broken library.
10426	allow_undefined_flag='-berok'
10427        # Determine the default libpath from the value encoded in an
10428        # empty executable.
10429        cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h.  */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h.  */
10435
10436int
10437main ()
10438{
10439
10440  ;
10441  return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
10445if { (ac_try="$ac_link"
10446case "(($ac_try" in
10447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448  *) ac_try_echo=$ac_try;;
10449esac
10450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10451$as_echo "$ac_try_echo") >&5
10452  (eval "$ac_link") 2>conftest.er1
10453  ac_status=$?
10454  grep -v '^ *+' conftest.er1 >conftest.err
10455  rm -f conftest.er1
10456  cat conftest.err >&5
10457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } && {
10459	 test -z "$ac_c_werror_flag" ||
10460	 test ! -s conftest.err
10461       } && test -s conftest$ac_exeext && {
10462	 test "$cross_compiling" = yes ||
10463	 $as_test_x conftest$ac_exeext
10464       }; then
10465
10466lt_aix_libpath_sed='
10467    /Import File Strings/,/^$/ {
10468	/^0/ {
10469	    s/^0  *\(.*\)$/\1/
10470	    p
10471	}
10472    }'
10473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474# Check for a 64-bit object if we didn't find anything.
10475if test -z "$aix_libpath"; then
10476  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10477fi
10478else
10479  $as_echo "$as_me: failed program was:" >&5
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
10482
10483fi
10484
10485rm -rf conftest.dSYM
10486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487      conftest$ac_exeext conftest.$ac_ext
10488if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10489
10490        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10491        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"
10492      else
10493	if test "$host_cpu" = ia64; then
10494	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10495	  allow_undefined_flag="-z nodefs"
10496	  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"
10497	else
10498	 # Determine the default libpath from the value encoded in an
10499	 # empty executable.
10500	 cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h.  */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h.  */
10506
10507int
10508main ()
10509{
10510
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515rm -f conftest.$ac_objext conftest$ac_exeext
10516if { (ac_try="$ac_link"
10517case "(($ac_try" in
10518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519  *) ac_try_echo=$ac_try;;
10520esac
10521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10522$as_echo "$ac_try_echo") >&5
10523  (eval "$ac_link") 2>conftest.er1
10524  ac_status=$?
10525  grep -v '^ *+' conftest.er1 >conftest.err
10526  rm -f conftest.er1
10527  cat conftest.err >&5
10528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529  (exit $ac_status); } && {
10530	 test -z "$ac_c_werror_flag" ||
10531	 test ! -s conftest.err
10532       } && test -s conftest$ac_exeext && {
10533	 test "$cross_compiling" = yes ||
10534	 $as_test_x conftest$ac_exeext
10535       }; then
10536
10537lt_aix_libpath_sed='
10538    /Import File Strings/,/^$/ {
10539	/^0/ {
10540	    s/^0  *\(.*\)$/\1/
10541	    p
10542	}
10543    }'
10544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545# Check for a 64-bit object if we didn't find anything.
10546if test -z "$aix_libpath"; then
10547  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548fi
10549else
10550  $as_echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553
10554fi
10555
10556rm -rf conftest.dSYM
10557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558      conftest$ac_exeext conftest.$ac_ext
10559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560
10561	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562	  # Warning - without using the other run time loading flags,
10563	  # -berok will link without error, but may produce a broken library.
10564	  no_undefined_flag=' ${wl}-bernotok'
10565	  allow_undefined_flag=' ${wl}-berok'
10566	  # Exported symbols can be pulled into shared objects from archives
10567	  whole_archive_flag_spec='$convenience'
10568	  archive_cmds_need_lc=yes
10569	  # This is similar to how AIX traditionally builds its shared libraries.
10570	  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'
10571	fi
10572      fi
10573      ;;
10574
10575    amigaos*)
10576      case $host_cpu in
10577      powerpc)
10578            # see comment about AmigaOS4 .so support
10579            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580            archive_expsym_cmds=''
10581        ;;
10582      m68k)
10583            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)'
10584            hardcode_libdir_flag_spec='-L$libdir'
10585            hardcode_minus_L=yes
10586        ;;
10587      esac
10588      ;;
10589
10590    bsdi[45]*)
10591      export_dynamic_flag_spec=-rdynamic
10592      ;;
10593
10594    cygwin* | mingw* | pw32* | cegcc*)
10595      # When not using gcc, we currently assume that we are using
10596      # Microsoft Visual C++.
10597      # hardcode_libdir_flag_spec is actually meaningless, as there is
10598      # no search path for DLLs.
10599      hardcode_libdir_flag_spec=' '
10600      allow_undefined_flag=unsupported
10601      # Tell ltmain to make .lib files, not .a files.
10602      libext=lib
10603      # Tell ltmain to make .dll files, not .so files.
10604      shrext_cmds=".dll"
10605      # FIXME: Setting linknames here is a bad hack.
10606      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607      # The linker will automatically build a .lib file if we build a DLL.
10608      old_archive_from_new_cmds='true'
10609      # FIXME: Should let the user specify the lib program.
10610      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611      fix_srcfile_path='`cygpath -w "$srcfile"`'
10612      enable_shared_with_static_runtimes=yes
10613      ;;
10614
10615    darwin* | rhapsody*)
10616
10617
10618  archive_cmds_need_lc=no
10619  hardcode_direct=no
10620  hardcode_automatic=yes
10621  hardcode_shlibpath_var=unsupported
10622  whole_archive_flag_spec=''
10623  link_all_deplibs=yes
10624  allow_undefined_flag="$_lt_dar_allow_undefined"
10625  case $cc_basename in
10626     ifort*) _lt_dar_can_shared=yes ;;
10627     *) _lt_dar_can_shared=$GCC ;;
10628  esac
10629  if test "$_lt_dar_can_shared" = "yes"; then
10630    output_verbose_link_cmd=echo
10631    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633    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}"
10634    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}"
10635
10636  else
10637  ld_shlibs=no
10638  fi
10639
10640      ;;
10641
10642    dgux*)
10643      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644      hardcode_libdir_flag_spec='-L$libdir'
10645      hardcode_shlibpath_var=no
10646      ;;
10647
10648    freebsd1*)
10649      ld_shlibs=no
10650      ;;
10651
10652    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653    # support.  Future versions do this automatically, but an explicit c++rt0.o
10654    # does not break anything, and helps significantly (at the cost of a little
10655    # extra space).
10656    freebsd2.2*)
10657      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658      hardcode_libdir_flag_spec='-R$libdir'
10659      hardcode_direct=yes
10660      hardcode_shlibpath_var=no
10661      ;;
10662
10663    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664    freebsd2*)
10665      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666      hardcode_direct=yes
10667      hardcode_minus_L=yes
10668      hardcode_shlibpath_var=no
10669      ;;
10670
10671    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672    freebsd* | dragonfly*)
10673      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674      hardcode_libdir_flag_spec='-R$libdir'
10675      hardcode_direct=yes
10676      hardcode_shlibpath_var=no
10677      ;;
10678
10679    hpux9*)
10680      if test "$GCC" = yes; then
10681	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'
10682      else
10683	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'
10684      fi
10685      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686      hardcode_libdir_separator=:
10687      hardcode_direct=yes
10688
10689      # hardcode_minus_L: Not really in the search PATH,
10690      # but as the default location of the library.
10691      hardcode_minus_L=yes
10692      export_dynamic_flag_spec='${wl}-E'
10693      ;;
10694
10695    hpux10*)
10696      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698      else
10699	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700      fi
10701      if test "$with_gnu_ld" = no; then
10702	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703	hardcode_libdir_flag_spec_ld='+b $libdir'
10704	hardcode_libdir_separator=:
10705	hardcode_direct=yes
10706	hardcode_direct_absolute=yes
10707	export_dynamic_flag_spec='${wl}-E'
10708	# hardcode_minus_L: Not really in the search PATH,
10709	# but as the default location of the library.
10710	hardcode_minus_L=yes
10711      fi
10712      ;;
10713
10714    hpux11*)
10715      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10716	case $host_cpu in
10717	hppa*64*)
10718	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10719	  ;;
10720	ia64*)
10721	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10722	  ;;
10723	*)
10724	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725	  ;;
10726	esac
10727      else
10728	case $host_cpu in
10729	hppa*64*)
10730	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10731	  ;;
10732	ia64*)
10733	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10734	  ;;
10735	*)
10736	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737	  ;;
10738	esac
10739      fi
10740      if test "$with_gnu_ld" = no; then
10741	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742	hardcode_libdir_separator=:
10743
10744	case $host_cpu in
10745	hppa*64*|ia64*)
10746	  hardcode_direct=no
10747	  hardcode_shlibpath_var=no
10748	  ;;
10749	*)
10750	  hardcode_direct=yes
10751	  hardcode_direct_absolute=yes
10752	  export_dynamic_flag_spec='${wl}-E'
10753
10754	  # hardcode_minus_L: Not really in the search PATH,
10755	  # but as the default location of the library.
10756	  hardcode_minus_L=yes
10757	  ;;
10758	esac
10759      fi
10760      ;;
10761
10762    irix5* | irix6* | nonstopux*)
10763      if test "$GCC" = yes; then
10764	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'
10765	# Try to use the -exported_symbol ld option, if it does not
10766	# work, assume that -exports_file does not work either and
10767	# implicitly export all symbols.
10768        save_LDFLAGS="$LDFLAGS"
10769        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770        cat >conftest.$ac_ext <<_ACEOF
10771int foo(void) {}
10772_ACEOF
10773rm -f conftest.$ac_objext conftest$ac_exeext
10774if { (ac_try="$ac_link"
10775case "(($ac_try" in
10776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777  *) ac_try_echo=$ac_try;;
10778esac
10779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10780$as_echo "$ac_try_echo") >&5
10781  (eval "$ac_link") 2>conftest.er1
10782  ac_status=$?
10783  grep -v '^ *+' conftest.er1 >conftest.err
10784  rm -f conftest.er1
10785  cat conftest.err >&5
10786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787  (exit $ac_status); } && {
10788	 test -z "$ac_c_werror_flag" ||
10789	 test ! -s conftest.err
10790       } && test -s conftest$ac_exeext && {
10791	 test "$cross_compiling" = yes ||
10792	 $as_test_x conftest$ac_exeext
10793       }; then
10794  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'
10795
10796else
10797  $as_echo "$as_me: failed program was:" >&5
10798sed 's/^/| /' conftest.$ac_ext >&5
10799
10800
10801fi
10802
10803rm -rf conftest.dSYM
10804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805      conftest$ac_exeext conftest.$ac_ext
10806        LDFLAGS="$save_LDFLAGS"
10807      else
10808	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'
10809	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'
10810      fi
10811      archive_cmds_need_lc='no'
10812      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10813      hardcode_libdir_separator=:
10814      inherit_rpath=yes
10815      link_all_deplibs=yes
10816      ;;
10817
10818    netbsd* | netbsdelf*-gnu)
10819      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10820	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10821      else
10822	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10823      fi
10824      hardcode_libdir_flag_spec='-R$libdir'
10825      hardcode_direct=yes
10826      hardcode_shlibpath_var=no
10827      ;;
10828
10829    newsos6)
10830      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10831      hardcode_direct=yes
10832      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10833      hardcode_libdir_separator=:
10834      hardcode_shlibpath_var=no
10835      ;;
10836
10837    *nto* | *qnx*)
10838      ;;
10839
10840    openbsd*)
10841      if test -f /usr/libexec/ld.so; then
10842	hardcode_direct=yes
10843	hardcode_shlibpath_var=no
10844	hardcode_direct_absolute=yes
10845	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10846	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10847	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10848	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10849	  export_dynamic_flag_spec='${wl}-E'
10850	else
10851	  case $host_os in
10852	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10853	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10854	     hardcode_libdir_flag_spec='-R$libdir'
10855	     ;;
10856	   *)
10857	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10858	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10859	     ;;
10860	  esac
10861	fi
10862      else
10863	ld_shlibs=no
10864      fi
10865      ;;
10866
10867    os2*)
10868      hardcode_libdir_flag_spec='-L$libdir'
10869      hardcode_minus_L=yes
10870      allow_undefined_flag=unsupported
10871      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'
10872      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10873      ;;
10874
10875    osf3*)
10876      if test "$GCC" = yes; then
10877	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10878	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'
10879      else
10880	allow_undefined_flag=' -expect_unresolved \*'
10881	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'
10882      fi
10883      archive_cmds_need_lc='no'
10884      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885      hardcode_libdir_separator=:
10886      ;;
10887
10888    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10889      if test "$GCC" = yes; then
10890	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10891	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'
10892	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10893      else
10894	allow_undefined_flag=' -expect_unresolved \*'
10895	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'
10896	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~
10897	$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'
10898
10899	# Both c and cxx compiler support -rpath directly
10900	hardcode_libdir_flag_spec='-rpath $libdir'
10901      fi
10902      archive_cmds_need_lc='no'
10903      hardcode_libdir_separator=:
10904      ;;
10905
10906    solaris*)
10907      no_undefined_flag=' -z defs'
10908      if test "$GCC" = yes; then
10909	wlarc='${wl}'
10910	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10911	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913      else
10914	case `$CC -V 2>&1` in
10915	*"Compilers 5.0"*)
10916	  wlarc=''
10917	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10920	  ;;
10921	*)
10922	  wlarc='${wl}'
10923	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10924	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10925	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10926	  ;;
10927	esac
10928      fi
10929      hardcode_libdir_flag_spec='-R$libdir'
10930      hardcode_shlibpath_var=no
10931      case $host_os in
10932      solaris2.[0-5] | solaris2.[0-5].*) ;;
10933      *)
10934	# The compiler driver will combine and reorder linker options,
10935	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10936	# but is careful enough not to reorder.
10937	# Supported since Solaris 2.6 (maybe 2.5.1?)
10938	if test "$GCC" = yes; then
10939	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10940	else
10941	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10942	fi
10943	;;
10944      esac
10945      link_all_deplibs=yes
10946      ;;
10947
10948    sunos4*)
10949      if test "x$host_vendor" = xsequent; then
10950	# Use $CC to link under sequent, because it throws in some extra .o
10951	# files that make .init and .fini sections work.
10952	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10953      else
10954	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10955      fi
10956      hardcode_libdir_flag_spec='-L$libdir'
10957      hardcode_direct=yes
10958      hardcode_minus_L=yes
10959      hardcode_shlibpath_var=no
10960      ;;
10961
10962    sysv4)
10963      case $host_vendor in
10964	sni)
10965	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966	  hardcode_direct=yes # is this really true???
10967	;;
10968	siemens)
10969	  ## LD is ld it makes a PLAMLIB
10970	  ## CC just makes a GrossModule.
10971	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10972	  reload_cmds='$CC -r -o $output$reload_objs'
10973	  hardcode_direct=no
10974        ;;
10975	motorola)
10976	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10978	;;
10979      esac
10980      runpath_var='LD_RUN_PATH'
10981      hardcode_shlibpath_var=no
10982      ;;
10983
10984    sysv4.3*)
10985      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986      hardcode_shlibpath_var=no
10987      export_dynamic_flag_spec='-Bexport'
10988      ;;
10989
10990    sysv4*MP*)
10991      if test -d /usr/nec; then
10992	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993	hardcode_shlibpath_var=no
10994	runpath_var=LD_RUN_PATH
10995	hardcode_runpath_var=yes
10996	ld_shlibs=yes
10997      fi
10998      ;;
10999
11000    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11001      no_undefined_flag='${wl}-z,text'
11002      archive_cmds_need_lc=no
11003      hardcode_shlibpath_var=no
11004      runpath_var='LD_RUN_PATH'
11005
11006      if test "$GCC" = yes; then
11007	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009      else
11010	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012      fi
11013      ;;
11014
11015    sysv5* | sco3.2v5* | sco5v6*)
11016      # Note: We can NOT use -z defs as we might desire, because we do not
11017      # link with -lc, and that would cause any symbols used from libc to
11018      # always be unresolved, which means just about no library would
11019      # ever link correctly.  If we're not using GNU ld we use -z text
11020      # though, which does catch some bad symbols but isn't as heavy-handed
11021      # as -z defs.
11022      no_undefined_flag='${wl}-z,text'
11023      allow_undefined_flag='${wl}-z,nodefs'
11024      archive_cmds_need_lc=no
11025      hardcode_shlibpath_var=no
11026      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11027      hardcode_libdir_separator=':'
11028      link_all_deplibs=yes
11029      export_dynamic_flag_spec='${wl}-Bexport'
11030      runpath_var='LD_RUN_PATH'
11031
11032      if test "$GCC" = yes; then
11033	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035      else
11036	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038      fi
11039      ;;
11040
11041    uts4*)
11042      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043      hardcode_libdir_flag_spec='-L$libdir'
11044      hardcode_shlibpath_var=no
11045      ;;
11046
11047    *)
11048      ld_shlibs=no
11049      ;;
11050    esac
11051
11052    if test x$host_vendor = xsni; then
11053      case $host in
11054      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11055	export_dynamic_flag_spec='${wl}-Blargedynsym'
11056	;;
11057      esac
11058    fi
11059  fi
11060
11061{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11062$as_echo "$ld_shlibs" >&6; }
11063test "$ld_shlibs" = no && can_build_shared=no
11064
11065with_gnu_ld=$with_gnu_ld
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081#
11082# Do we need to explicitly link libc?
11083#
11084case "x$archive_cmds_need_lc" in
11085x|xyes)
11086  # Assume -lc should be added
11087  archive_cmds_need_lc=yes
11088
11089  if test "$enable_shared" = yes && test "$GCC" = yes; then
11090    case $archive_cmds in
11091    *'~'*)
11092      # FIXME: we may have to deal with multi-command sequences.
11093      ;;
11094    '$CC '*)
11095      # Test whether the compiler implicitly links with -lc since on some
11096      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11097      # to ld, don't add -lc before -lgcc.
11098      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11099$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11100      $RM conftest*
11101      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11102
11103      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104  (eval $ac_compile) 2>&5
11105  ac_status=$?
11106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107  (exit $ac_status); } 2>conftest.err; then
11108        soname=conftest
11109        lib=conftest
11110        libobjs=conftest.$ac_objext
11111        deplibs=
11112        wl=$lt_prog_compiler_wl
11113	pic_flag=$lt_prog_compiler_pic
11114        compiler_flags=-v
11115        linker_flags=-v
11116        verstring=
11117        output_objdir=.
11118        libname=conftest
11119        lt_save_allow_undefined_flag=$allow_undefined_flag
11120        allow_undefined_flag=
11121        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11122  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11123  ac_status=$?
11124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125  (exit $ac_status); }
11126        then
11127	  archive_cmds_need_lc=no
11128        else
11129	  archive_cmds_need_lc=yes
11130        fi
11131        allow_undefined_flag=$lt_save_allow_undefined_flag
11132      else
11133        cat conftest.err 1>&5
11134      fi
11135      $RM conftest*
11136      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11137$as_echo "$archive_cmds_need_lc" >&6; }
11138      ;;
11139    esac
11140  fi
11141  ;;
11142esac
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11301$as_echo_n "checking dynamic linker characteristics... " >&6; }
11302
11303if test "$GCC" = yes; then
11304  case $host_os in
11305    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11306    *) lt_awk_arg="/^libraries:/" ;;
11307  esac
11308  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11309  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11310    # if the path contains ";" then we assume it to be the separator
11311    # otherwise default to the standard path separator (i.e. ":") - it is
11312    # assumed that no part of a normal pathname contains ";" but that should
11313    # okay in the real world where ";" in dirpaths is itself problematic.
11314    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11315  else
11316    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11317  fi
11318  # Ok, now we have the path, separated by spaces, we can step through it
11319  # and add multilib dir if necessary.
11320  lt_tmp_lt_search_path_spec=
11321  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11322  for lt_sys_path in $lt_search_path_spec; do
11323    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11324      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11325    else
11326      test -d "$lt_sys_path" && \
11327	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11328    fi
11329  done
11330  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11331BEGIN {RS=" "; FS="/|\n";} {
11332  lt_foo="";
11333  lt_count=0;
11334  for (lt_i = NF; lt_i > 0; lt_i--) {
11335    if ($lt_i != "" && $lt_i != ".") {
11336      if ($lt_i == "..") {
11337        lt_count++;
11338      } else {
11339        if (lt_count == 0) {
11340          lt_foo="/" $lt_i lt_foo;
11341        } else {
11342          lt_count--;
11343        }
11344      }
11345    }
11346  }
11347  if (lt_foo != "") { lt_freq[lt_foo]++; }
11348  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11349}'`
11350  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11351else
11352  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353fi
11354library_names_spec=
11355libname_spec='lib$name'
11356soname_spec=
11357shrext_cmds=".so"
11358postinstall_cmds=
11359postuninstall_cmds=
11360finish_cmds=
11361finish_eval=
11362shlibpath_var=
11363shlibpath_overrides_runpath=unknown
11364version_type=none
11365dynamic_linker="$host_os ld.so"
11366sys_lib_dlsearch_path_spec="/lib /usr/lib"
11367need_lib_prefix=unknown
11368hardcode_into_libs=no
11369
11370# when you set need_version to no, make sure it does not cause -set_version
11371# flags to be left without arguments
11372need_version=unknown
11373
11374case $host_os in
11375aix3*)
11376  version_type=linux
11377  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11378  shlibpath_var=LIBPATH
11379
11380  # AIX 3 has no versioning support, so we append a major version to the name.
11381  soname_spec='${libname}${release}${shared_ext}$major'
11382  ;;
11383
11384aix[4-9]*)
11385  version_type=linux
11386  need_lib_prefix=no
11387  need_version=no
11388  hardcode_into_libs=yes
11389  if test "$host_cpu" = ia64; then
11390    # AIX 5 supports IA64
11391    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11392    shlibpath_var=LD_LIBRARY_PATH
11393  else
11394    # With GCC up to 2.95.x, collect2 would create an import file
11395    # for dependence libraries.  The import file would start with
11396    # the line `#! .'.  This would cause the generated library to
11397    # depend on `.', always an invalid library.  This was fixed in
11398    # development snapshots of GCC prior to 3.0.
11399    case $host_os in
11400      aix4 | aix4.[01] | aix4.[01].*)
11401      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11402	   echo ' yes '
11403	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11404	:
11405      else
11406	can_build_shared=no
11407      fi
11408      ;;
11409    esac
11410    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11411    # soname into executable. Probably we can add versioning support to
11412    # collect2, so additional links can be useful in future.
11413    if test "$aix_use_runtimelinking" = yes; then
11414      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415      # instead of lib<name>.a to let people know that these are not
11416      # typical AIX shared libraries.
11417      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418    else
11419      # We preserve .a as extension for shared libraries through AIX4.2
11420      # and later when we are not doing run time linking.
11421      library_names_spec='${libname}${release}.a $libname.a'
11422      soname_spec='${libname}${release}${shared_ext}$major'
11423    fi
11424    shlibpath_var=LIBPATH
11425  fi
11426  ;;
11427
11428amigaos*)
11429  case $host_cpu in
11430  powerpc)
11431    # Since July 2007 AmigaOS4 officially supports .so libraries.
11432    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434    ;;
11435  m68k)
11436    library_names_spec='$libname.ixlibrary $libname.a'
11437    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11438    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'
11439    ;;
11440  esac
11441  ;;
11442
11443beos*)
11444  library_names_spec='${libname}${shared_ext}'
11445  dynamic_linker="$host_os ld.so"
11446  shlibpath_var=LIBRARY_PATH
11447  ;;
11448
11449bsdi[45]*)
11450  version_type=linux
11451  need_version=no
11452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453  soname_spec='${libname}${release}${shared_ext}$major'
11454  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11455  shlibpath_var=LD_LIBRARY_PATH
11456  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11457  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11458  # the default ld.so.conf also contains /usr/contrib/lib and
11459  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11460  # libtool to hard-code these into programs
11461  ;;
11462
11463cygwin* | mingw* | pw32* | cegcc*)
11464  version_type=windows
11465  shrext_cmds=".dll"
11466  need_version=no
11467  need_lib_prefix=no
11468
11469  case $GCC,$host_os in
11470  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11471    library_names_spec='$libname.dll.a'
11472    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11473    postinstall_cmds='base_file=`basename \${file}`~
11474      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11475      dldir=$destdir/`dirname \$dlpath`~
11476      test -d \$dldir || mkdir -p \$dldir~
11477      $install_prog $dir/$dlname \$dldir/$dlname~
11478      chmod a+x \$dldir/$dlname~
11479      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11480        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11481      fi'
11482    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11483      dlpath=$dir/\$dldll~
11484       $RM \$dlpath'
11485    shlibpath_overrides_runpath=yes
11486
11487    case $host_os in
11488    cygwin*)
11489      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11490      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11492      ;;
11493    mingw* | cegcc*)
11494      # MinGW DLLs use traditional 'lib' prefix
11495      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11497      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11498        # It is most probably a Windows format PATH printed by
11499        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11500        # path with ; separators, and with drive letters. We can handle the
11501        # drive letters (cygwin fileutils understands them), so leave them,
11502        # especially as we might pass files found there to a mingw objdump,
11503        # which wouldn't understand a cygwinified path. Ahh.
11504        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11505      else
11506        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11507      fi
11508      ;;
11509    pw32*)
11510      # pw32 DLLs use 'pw' prefix rather than 'lib'
11511      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512      ;;
11513    esac
11514    ;;
11515
11516  *)
11517    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11518    ;;
11519  esac
11520  dynamic_linker='Win32 ld.exe'
11521  # FIXME: first we should search . and the directory the executable is in
11522  shlibpath_var=PATH
11523  ;;
11524
11525darwin* | rhapsody*)
11526  dynamic_linker="$host_os dyld"
11527  version_type=darwin
11528  need_lib_prefix=no
11529  need_version=no
11530  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11531  soname_spec='${libname}${release}${major}$shared_ext'
11532  shlibpath_overrides_runpath=yes
11533  shlibpath_var=DYLD_LIBRARY_PATH
11534  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11535
11536  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11537  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11538  ;;
11539
11540dgux*)
11541  version_type=linux
11542  need_lib_prefix=no
11543  need_version=no
11544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11545  soname_spec='${libname}${release}${shared_ext}$major'
11546  shlibpath_var=LD_LIBRARY_PATH
11547  ;;
11548
11549freebsd1*)
11550  dynamic_linker=no
11551  ;;
11552
11553freebsd* | dragonfly*)
11554  # DragonFly does not have aout.  When/if they implement a new
11555  # versioning mechanism, adjust this.
11556  if test -x /usr/bin/objformat; then
11557    objformat=`/usr/bin/objformat`
11558  else
11559    case $host_os in
11560    freebsd[123]*) objformat=aout ;;
11561    *) objformat=elf ;;
11562    esac
11563  fi
11564  version_type=freebsd-$objformat
11565  case $version_type in
11566    freebsd-elf*)
11567      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568      need_version=no
11569      need_lib_prefix=no
11570      ;;
11571    freebsd-*)
11572      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11573      need_version=yes
11574      ;;
11575  esac
11576  shlibpath_var=LD_LIBRARY_PATH
11577  case $host_os in
11578  freebsd2*)
11579    shlibpath_overrides_runpath=yes
11580    ;;
11581  freebsd3.[01]* | freebsdelf3.[01]*)
11582    shlibpath_overrides_runpath=yes
11583    hardcode_into_libs=yes
11584    ;;
11585  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11586  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11587    shlibpath_overrides_runpath=no
11588    hardcode_into_libs=yes
11589    ;;
11590  *) # from 4.6 on, and DragonFly
11591    shlibpath_overrides_runpath=yes
11592    hardcode_into_libs=yes
11593    ;;
11594  esac
11595  ;;
11596
11597gnu*)
11598  version_type=linux
11599  need_lib_prefix=no
11600  need_version=no
11601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11602  soname_spec='${libname}${release}${shared_ext}$major'
11603  shlibpath_var=LD_LIBRARY_PATH
11604  hardcode_into_libs=yes
11605  ;;
11606
11607hpux9* | hpux10* | hpux11*)
11608  # Give a soname corresponding to the major version so that dld.sl refuses to
11609  # link against other versions.
11610  version_type=sunos
11611  need_lib_prefix=no
11612  need_version=no
11613  case $host_cpu in
11614  ia64*)
11615    shrext_cmds='.so'
11616    hardcode_into_libs=yes
11617    dynamic_linker="$host_os dld.so"
11618    shlibpath_var=LD_LIBRARY_PATH
11619    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621    soname_spec='${libname}${release}${shared_ext}$major'
11622    if test "X$HPUX_IA64_MODE" = X32; then
11623      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11624    else
11625      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11626    fi
11627    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11628    ;;
11629  hppa*64*)
11630    shrext_cmds='.sl'
11631    hardcode_into_libs=yes
11632    dynamic_linker="$host_os dld.sl"
11633    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11634    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636    soname_spec='${libname}${release}${shared_ext}$major'
11637    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11638    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639    ;;
11640  *)
11641    shrext_cmds='.sl'
11642    dynamic_linker="$host_os dld.sl"
11643    shlibpath_var=SHLIB_PATH
11644    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646    soname_spec='${libname}${release}${shared_ext}$major'
11647    ;;
11648  esac
11649  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11650  postinstall_cmds='chmod 555 $lib'
11651  ;;
11652
11653interix[3-9]*)
11654  version_type=linux
11655  need_lib_prefix=no
11656  need_version=no
11657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658  soname_spec='${libname}${release}${shared_ext}$major'
11659  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11660  shlibpath_var=LD_LIBRARY_PATH
11661  shlibpath_overrides_runpath=no
11662  hardcode_into_libs=yes
11663  ;;
11664
11665irix5* | irix6* | nonstopux*)
11666  case $host_os in
11667    nonstopux*) version_type=nonstopux ;;
11668    *)
11669	if test "$lt_cv_prog_gnu_ld" = yes; then
11670		version_type=linux
11671	else
11672		version_type=irix
11673	fi ;;
11674  esac
11675  need_lib_prefix=no
11676  need_version=no
11677  soname_spec='${libname}${release}${shared_ext}$major'
11678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11679  case $host_os in
11680  irix5* | nonstopux*)
11681    libsuff= shlibsuff=
11682    ;;
11683  *)
11684    case $LD in # libtool.m4 will add one of these switches to LD
11685    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11686      libsuff= shlibsuff= libmagic=32-bit;;
11687    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11688      libsuff=32 shlibsuff=N32 libmagic=N32;;
11689    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11690      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11691    *) libsuff= shlibsuff= libmagic=never-match;;
11692    esac
11693    ;;
11694  esac
11695  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11696  shlibpath_overrides_runpath=no
11697  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11698  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11699  hardcode_into_libs=yes
11700  ;;
11701
11702# No shared lib support for Linux oldld, aout, or coff.
11703linux*oldld* | linux*aout* | linux*coff*)
11704  dynamic_linker=no
11705  ;;
11706
11707# This must be Linux ELF.
11708linux* | k*bsd*-gnu)
11709  version_type=linux
11710  need_lib_prefix=no
11711  need_version=no
11712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713  soname_spec='${libname}${release}${shared_ext}$major'
11714  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11715  shlibpath_var=LD_LIBRARY_PATH
11716  shlibpath_overrides_runpath=no
11717  # Some binutils ld are patched to set DT_RUNPATH
11718  save_LDFLAGS=$LDFLAGS
11719  save_libdir=$libdir
11720  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11721       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11722  cat >conftest.$ac_ext <<_ACEOF
11723/* confdefs.h.  */
11724_ACEOF
11725cat confdefs.h >>conftest.$ac_ext
11726cat >>conftest.$ac_ext <<_ACEOF
11727/* end confdefs.h.  */
11728
11729int
11730main ()
11731{
11732
11733  ;
11734  return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext conftest$ac_exeext
11738if { (ac_try="$ac_link"
11739case "(($ac_try" in
11740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741  *) ac_try_echo=$ac_try;;
11742esac
11743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744$as_echo "$ac_try_echo") >&5
11745  (eval "$ac_link") 2>conftest.er1
11746  ac_status=$?
11747  grep -v '^ *+' conftest.er1 >conftest.err
11748  rm -f conftest.er1
11749  cat conftest.err >&5
11750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751  (exit $ac_status); } && {
11752	 test -z "$ac_c_werror_flag" ||
11753	 test ! -s conftest.err
11754       } && test -s conftest$ac_exeext && {
11755	 test "$cross_compiling" = yes ||
11756	 $as_test_x conftest$ac_exeext
11757       }; then
11758  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11759  shlibpath_overrides_runpath=yes
11760fi
11761
11762else
11763  $as_echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766
11767fi
11768
11769rm -rf conftest.dSYM
11770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771      conftest$ac_exeext conftest.$ac_ext
11772  LDFLAGS=$save_LDFLAGS
11773  libdir=$save_libdir
11774
11775  # This implies no fast_install, which is unacceptable.
11776  # Some rework will be needed to allow for fast_install
11777  # before this can be enabled.
11778  hardcode_into_libs=yes
11779
11780  # Append ld.so.conf contents to the search path
11781  if test -f /etc/ld.so.conf; then
11782    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' ' '`
11783    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11784  fi
11785
11786  # We used to test for /lib/ld.so.1 and disable shared libraries on
11787  # powerpc, because MkLinux only supported shared libraries with the
11788  # GNU dynamic linker.  Since this was broken with cross compilers,
11789  # most powerpc-linux boxes support dynamic linking these days and
11790  # people can always --disable-shared, the test was removed, and we
11791  # assume the GNU/Linux dynamic linker is in use.
11792  dynamic_linker='GNU/Linux ld.so'
11793  ;;
11794
11795netbsdelf*-gnu)
11796  version_type=linux
11797  need_lib_prefix=no
11798  need_version=no
11799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11800  soname_spec='${libname}${release}${shared_ext}$major'
11801  shlibpath_var=LD_LIBRARY_PATH
11802  shlibpath_overrides_runpath=no
11803  hardcode_into_libs=yes
11804  dynamic_linker='NetBSD ld.elf_so'
11805  ;;
11806
11807netbsd*)
11808  version_type=sunos
11809  need_lib_prefix=no
11810  need_version=no
11811  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11813    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11814    dynamic_linker='NetBSD (a.out) ld.so'
11815  else
11816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11817    soname_spec='${libname}${release}${shared_ext}$major'
11818    dynamic_linker='NetBSD ld.elf_so'
11819  fi
11820  shlibpath_var=LD_LIBRARY_PATH
11821  shlibpath_overrides_runpath=yes
11822  hardcode_into_libs=yes
11823  ;;
11824
11825newsos6)
11826  version_type=linux
11827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828  shlibpath_var=LD_LIBRARY_PATH
11829  shlibpath_overrides_runpath=yes
11830  ;;
11831
11832*nto* | *qnx*)
11833  version_type=qnx
11834  need_lib_prefix=no
11835  need_version=no
11836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837  soname_spec='${libname}${release}${shared_ext}$major'
11838  shlibpath_var=LD_LIBRARY_PATH
11839  shlibpath_overrides_runpath=no
11840  hardcode_into_libs=yes
11841  dynamic_linker='ldqnx.so'
11842  ;;
11843
11844openbsd*)
11845  version_type=sunos
11846  sys_lib_dlsearch_path_spec="/usr/lib"
11847  need_lib_prefix=no
11848  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11849  case $host_os in
11850    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11851    *)				need_version=no  ;;
11852  esac
11853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11854  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11855  shlibpath_var=LD_LIBRARY_PATH
11856  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11857    case $host_os in
11858      openbsd2.[89] | openbsd2.[89].*)
11859	shlibpath_overrides_runpath=no
11860	;;
11861      *)
11862	shlibpath_overrides_runpath=yes
11863	;;
11864      esac
11865  else
11866    shlibpath_overrides_runpath=yes
11867  fi
11868  ;;
11869
11870os2*)
11871  libname_spec='$name'
11872  shrext_cmds=".dll"
11873  need_lib_prefix=no
11874  library_names_spec='$libname${shared_ext} $libname.a'
11875  dynamic_linker='OS/2 ld.exe'
11876  shlibpath_var=LIBPATH
11877  ;;
11878
11879osf3* | osf4* | osf5*)
11880  version_type=osf
11881  need_lib_prefix=no
11882  need_version=no
11883  soname_spec='${libname}${release}${shared_ext}$major'
11884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885  shlibpath_var=LD_LIBRARY_PATH
11886  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11887  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11888  ;;
11889
11890rdos*)
11891  dynamic_linker=no
11892  ;;
11893
11894solaris*)
11895  version_type=linux
11896  need_lib_prefix=no
11897  need_version=no
11898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899  soname_spec='${libname}${release}${shared_ext}$major'
11900  shlibpath_var=LD_LIBRARY_PATH
11901  shlibpath_overrides_runpath=yes
11902  hardcode_into_libs=yes
11903  # ldd complains unless libraries are executable
11904  postinstall_cmds='chmod +x $lib'
11905  ;;
11906
11907sunos4*)
11908  version_type=sunos
11909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11910  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11911  shlibpath_var=LD_LIBRARY_PATH
11912  shlibpath_overrides_runpath=yes
11913  if test "$with_gnu_ld" = yes; then
11914    need_lib_prefix=no
11915  fi
11916  need_version=yes
11917  ;;
11918
11919sysv4 | sysv4.3*)
11920  version_type=linux
11921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922  soname_spec='${libname}${release}${shared_ext}$major'
11923  shlibpath_var=LD_LIBRARY_PATH
11924  case $host_vendor in
11925    sni)
11926      shlibpath_overrides_runpath=no
11927      need_lib_prefix=no
11928      runpath_var=LD_RUN_PATH
11929      ;;
11930    siemens)
11931      need_lib_prefix=no
11932      ;;
11933    motorola)
11934      need_lib_prefix=no
11935      need_version=no
11936      shlibpath_overrides_runpath=no
11937      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11938      ;;
11939  esac
11940  ;;
11941
11942sysv4*MP*)
11943  if test -d /usr/nec ;then
11944    version_type=linux
11945    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11946    soname_spec='$libname${shared_ext}.$major'
11947    shlibpath_var=LD_LIBRARY_PATH
11948  fi
11949  ;;
11950
11951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11952  version_type=freebsd-elf
11953  need_lib_prefix=no
11954  need_version=no
11955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11956  soname_spec='${libname}${release}${shared_ext}$major'
11957  shlibpath_var=LD_LIBRARY_PATH
11958  shlibpath_overrides_runpath=yes
11959  hardcode_into_libs=yes
11960  if test "$with_gnu_ld" = yes; then
11961    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11962  else
11963    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11964    case $host_os in
11965      sco3.2v5*)
11966        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11967	;;
11968    esac
11969  fi
11970  sys_lib_dlsearch_path_spec='/usr/lib'
11971  ;;
11972
11973tpf*)
11974  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11975  version_type=linux
11976  need_lib_prefix=no
11977  need_version=no
11978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11979  shlibpath_var=LD_LIBRARY_PATH
11980  shlibpath_overrides_runpath=no
11981  hardcode_into_libs=yes
11982  ;;
11983
11984uts4*)
11985  version_type=linux
11986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987  soname_spec='${libname}${release}${shared_ext}$major'
11988  shlibpath_var=LD_LIBRARY_PATH
11989  ;;
11990
11991*)
11992  dynamic_linker=no
11993  ;;
11994esac
11995{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11996$as_echo "$dynamic_linker" >&6; }
11997test "$dynamic_linker" = no && can_build_shared=no
11998
11999variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12000if test "$GCC" = yes; then
12001  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12002fi
12003
12004if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12005  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12006fi
12007if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12008  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12009fi
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12098$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12099hardcode_action=
12100if test -n "$hardcode_libdir_flag_spec" ||
12101   test -n "$runpath_var" ||
12102   test "X$hardcode_automatic" = "Xyes" ; then
12103
12104  # We can hardcode non-existent directories.
12105  if test "$hardcode_direct" != no &&
12106     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12107     # have to relink, otherwise we might link with an installed library
12108     # when we should be linking with a yet-to-be-installed one
12109     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12110     test "$hardcode_minus_L" != no; then
12111    # Linking always hardcodes the temporary library directory.
12112    hardcode_action=relink
12113  else
12114    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12115    hardcode_action=immediate
12116  fi
12117else
12118  # We cannot hardcode anything, or else we can only hardcode existing
12119  # directories.
12120  hardcode_action=unsupported
12121fi
12122{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12123$as_echo "$hardcode_action" >&6; }
12124
12125if test "$hardcode_action" = relink ||
12126   test "$inherit_rpath" = yes; then
12127  # Fast installation is not supported
12128  enable_fast_install=no
12129elif test "$shlibpath_overrides_runpath" = yes ||
12130     test "$enable_shared" = no; then
12131  # Fast installation is not necessary
12132  enable_fast_install=needless
12133fi
12134
12135
12136
12137
12138
12139
12140  if test "x$enable_dlopen" != xyes; then
12141  enable_dlopen=unknown
12142  enable_dlopen_self=unknown
12143  enable_dlopen_self_static=unknown
12144else
12145  lt_cv_dlopen=no
12146  lt_cv_dlopen_libs=
12147
12148  case $host_os in
12149  beos*)
12150    lt_cv_dlopen="load_add_on"
12151    lt_cv_dlopen_libs=
12152    lt_cv_dlopen_self=yes
12153    ;;
12154
12155  mingw* | pw32* | cegcc*)
12156    lt_cv_dlopen="LoadLibrary"
12157    lt_cv_dlopen_libs=
12158    ;;
12159
12160  cygwin*)
12161    lt_cv_dlopen="dlopen"
12162    lt_cv_dlopen_libs=
12163    ;;
12164
12165  darwin*)
12166  # if libdl is installed we need to link against it
12167    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12168$as_echo_n "checking for dlopen in -ldl... " >&6; }
12169if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12170  $as_echo_n "(cached) " >&6
12171else
12172  ac_check_lib_save_LIBS=$LIBS
12173LIBS="-ldl  $LIBS"
12174cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h.  */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h.  */
12180
12181/* Override any GCC internal prototype to avoid an error.
12182   Use char because int might match the return type of a GCC
12183   builtin and then its argument prototype would still apply.  */
12184#ifdef __cplusplus
12185extern "C"
12186#endif
12187char dlopen ();
12188int
12189main ()
12190{
12191return dlopen ();
12192  ;
12193  return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext conftest$ac_exeext
12197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200  *) ac_try_echo=$ac_try;;
12201esac
12202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203$as_echo "$ac_try_echo") >&5
12204  (eval "$ac_link") 2>conftest.er1
12205  ac_status=$?
12206  grep -v '^ *+' conftest.er1 >conftest.err
12207  rm -f conftest.er1
12208  cat conftest.err >&5
12209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210  (exit $ac_status); } && {
12211	 test -z "$ac_c_werror_flag" ||
12212	 test ! -s conftest.err
12213       } && test -s conftest$ac_exeext && {
12214	 test "$cross_compiling" = yes ||
12215	 $as_test_x conftest$ac_exeext
12216       }; then
12217  ac_cv_lib_dl_dlopen=yes
12218else
12219  $as_echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
12221
12222	ac_cv_lib_dl_dlopen=no
12223fi
12224
12225rm -rf conftest.dSYM
12226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227      conftest$ac_exeext conftest.$ac_ext
12228LIBS=$ac_check_lib_save_LIBS
12229fi
12230{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12231$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12232if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12233  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12234else
12235
12236    lt_cv_dlopen="dyld"
12237    lt_cv_dlopen_libs=
12238    lt_cv_dlopen_self=yes
12239
12240fi
12241
12242    ;;
12243
12244  *)
12245    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12246$as_echo_n "checking for shl_load... " >&6; }
12247if test "${ac_cv_func_shl_load+set}" = set; then
12248  $as_echo_n "(cached) " >&6
12249else
12250  cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h.  */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h.  */
12256/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12257   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12258#define shl_load innocuous_shl_load
12259
12260/* System header to define __stub macros and hopefully few prototypes,
12261    which can conflict with char shl_load (); below.
12262    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263    <limits.h> exists even on freestanding compilers.  */
12264
12265#ifdef __STDC__
12266# include <limits.h>
12267#else
12268# include <assert.h>
12269#endif
12270
12271#undef shl_load
12272
12273/* Override any GCC internal prototype to avoid an error.
12274   Use char because int might match the return type of a GCC
12275   builtin and then its argument prototype would still apply.  */
12276#ifdef __cplusplus
12277extern "C"
12278#endif
12279char shl_load ();
12280/* The GNU C library defines this for functions which it implements
12281    to always fail with ENOSYS.  Some functions are actually named
12282    something starting with __ and the normal name is an alias.  */
12283#if defined __stub_shl_load || defined __stub___shl_load
12284choke me
12285#endif
12286
12287int
12288main ()
12289{
12290return shl_load ();
12291  ;
12292  return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (ac_try="$ac_link"
12297case "(($ac_try" in
12298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299  *) ac_try_echo=$ac_try;;
12300esac
12301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12302$as_echo "$ac_try_echo") >&5
12303  (eval "$ac_link") 2>conftest.er1
12304  ac_status=$?
12305  grep -v '^ *+' conftest.er1 >conftest.err
12306  rm -f conftest.er1
12307  cat conftest.err >&5
12308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309  (exit $ac_status); } && {
12310	 test -z "$ac_c_werror_flag" ||
12311	 test ! -s conftest.err
12312       } && test -s conftest$ac_exeext && {
12313	 test "$cross_compiling" = yes ||
12314	 $as_test_x conftest$ac_exeext
12315       }; then
12316  ac_cv_func_shl_load=yes
12317else
12318  $as_echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321	ac_cv_func_shl_load=no
12322fi
12323
12324rm -rf conftest.dSYM
12325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326      conftest$ac_exeext conftest.$ac_ext
12327fi
12328{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12329$as_echo "$ac_cv_func_shl_load" >&6; }
12330if test "x$ac_cv_func_shl_load" = x""yes; then
12331  lt_cv_dlopen="shl_load"
12332else
12333  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12334$as_echo_n "checking for shl_load in -ldld... " >&6; }
12335if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12336  $as_echo_n "(cached) " >&6
12337else
12338  ac_check_lib_save_LIBS=$LIBS
12339LIBS="-ldld  $LIBS"
12340cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h.  */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h.  */
12346
12347/* Override any GCC internal prototype to avoid an error.
12348   Use char because int might match the return type of a GCC
12349   builtin and then its argument prototype would still apply.  */
12350#ifdef __cplusplus
12351extern "C"
12352#endif
12353char shl_load ();
12354int
12355main ()
12356{
12357return shl_load ();
12358  ;
12359  return 0;
12360}
12361_ACEOF
12362rm -f conftest.$ac_objext conftest$ac_exeext
12363if { (ac_try="$ac_link"
12364case "(($ac_try" in
12365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366  *) ac_try_echo=$ac_try;;
12367esac
12368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12369$as_echo "$ac_try_echo") >&5
12370  (eval "$ac_link") 2>conftest.er1
12371  ac_status=$?
12372  grep -v '^ *+' conftest.er1 >conftest.err
12373  rm -f conftest.er1
12374  cat conftest.err >&5
12375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376  (exit $ac_status); } && {
12377	 test -z "$ac_c_werror_flag" ||
12378	 test ! -s conftest.err
12379       } && test -s conftest$ac_exeext && {
12380	 test "$cross_compiling" = yes ||
12381	 $as_test_x conftest$ac_exeext
12382       }; then
12383  ac_cv_lib_dld_shl_load=yes
12384else
12385  $as_echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388	ac_cv_lib_dld_shl_load=no
12389fi
12390
12391rm -rf conftest.dSYM
12392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12393      conftest$ac_exeext conftest.$ac_ext
12394LIBS=$ac_check_lib_save_LIBS
12395fi
12396{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12397$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12398if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12399  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12400else
12401  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12402$as_echo_n "checking for dlopen... " >&6; }
12403if test "${ac_cv_func_dlopen+set}" = set; then
12404  $as_echo_n "(cached) " >&6
12405else
12406  cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h.  */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h.  */
12412/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12413   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12414#define dlopen innocuous_dlopen
12415
12416/* System header to define __stub macros and hopefully few prototypes,
12417    which can conflict with char dlopen (); below.
12418    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12419    <limits.h> exists even on freestanding compilers.  */
12420
12421#ifdef __STDC__
12422# include <limits.h>
12423#else
12424# include <assert.h>
12425#endif
12426
12427#undef dlopen
12428
12429/* Override any GCC internal prototype to avoid an error.
12430   Use char because int might match the return type of a GCC
12431   builtin and then its argument prototype would still apply.  */
12432#ifdef __cplusplus
12433extern "C"
12434#endif
12435char dlopen ();
12436/* The GNU C library defines this for functions which it implements
12437    to always fail with ENOSYS.  Some functions are actually named
12438    something starting with __ and the normal name is an alias.  */
12439#if defined __stub_dlopen || defined __stub___dlopen
12440choke me
12441#endif
12442
12443int
12444main ()
12445{
12446return dlopen ();
12447  ;
12448  return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext conftest$ac_exeext
12452if { (ac_try="$ac_link"
12453case "(($ac_try" in
12454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455  *) ac_try_echo=$ac_try;;
12456esac
12457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12458$as_echo "$ac_try_echo") >&5
12459  (eval "$ac_link") 2>conftest.er1
12460  ac_status=$?
12461  grep -v '^ *+' conftest.er1 >conftest.err
12462  rm -f conftest.er1
12463  cat conftest.err >&5
12464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465  (exit $ac_status); } && {
12466	 test -z "$ac_c_werror_flag" ||
12467	 test ! -s conftest.err
12468       } && test -s conftest$ac_exeext && {
12469	 test "$cross_compiling" = yes ||
12470	 $as_test_x conftest$ac_exeext
12471       }; then
12472  ac_cv_func_dlopen=yes
12473else
12474  $as_echo "$as_me: failed program was:" >&5
12475sed 's/^/| /' conftest.$ac_ext >&5
12476
12477	ac_cv_func_dlopen=no
12478fi
12479
12480rm -rf conftest.dSYM
12481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12482      conftest$ac_exeext conftest.$ac_ext
12483fi
12484{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12485$as_echo "$ac_cv_func_dlopen" >&6; }
12486if test "x$ac_cv_func_dlopen" = x""yes; then
12487  lt_cv_dlopen="dlopen"
12488else
12489  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12490$as_echo_n "checking for dlopen in -ldl... " >&6; }
12491if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12492  $as_echo_n "(cached) " >&6
12493else
12494  ac_check_lib_save_LIBS=$LIBS
12495LIBS="-ldl  $LIBS"
12496cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h.  */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h.  */
12502
12503/* Override any GCC internal prototype to avoid an error.
12504   Use char because int might match the return type of a GCC
12505   builtin and then its argument prototype would still apply.  */
12506#ifdef __cplusplus
12507extern "C"
12508#endif
12509char dlopen ();
12510int
12511main ()
12512{
12513return dlopen ();
12514  ;
12515  return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
12519if { (ac_try="$ac_link"
12520case "(($ac_try" in
12521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522  *) ac_try_echo=$ac_try;;
12523esac
12524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12525$as_echo "$ac_try_echo") >&5
12526  (eval "$ac_link") 2>conftest.er1
12527  ac_status=$?
12528  grep -v '^ *+' conftest.er1 >conftest.err
12529  rm -f conftest.er1
12530  cat conftest.err >&5
12531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532  (exit $ac_status); } && {
12533	 test -z "$ac_c_werror_flag" ||
12534	 test ! -s conftest.err
12535       } && test -s conftest$ac_exeext && {
12536	 test "$cross_compiling" = yes ||
12537	 $as_test_x conftest$ac_exeext
12538       }; then
12539  ac_cv_lib_dl_dlopen=yes
12540else
12541  $as_echo "$as_me: failed program was:" >&5
12542sed 's/^/| /' conftest.$ac_ext >&5
12543
12544	ac_cv_lib_dl_dlopen=no
12545fi
12546
12547rm -rf conftest.dSYM
12548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12549      conftest$ac_exeext conftest.$ac_ext
12550LIBS=$ac_check_lib_save_LIBS
12551fi
12552{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12553$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12554if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12555  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12556else
12557  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12558$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12559if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12560  $as_echo_n "(cached) " >&6
12561else
12562  ac_check_lib_save_LIBS=$LIBS
12563LIBS="-lsvld  $LIBS"
12564cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h.  */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h.  */
12570
12571/* Override any GCC internal prototype to avoid an error.
12572   Use char because int might match the return type of a GCC
12573   builtin and then its argument prototype would still apply.  */
12574#ifdef __cplusplus
12575extern "C"
12576#endif
12577char dlopen ();
12578int
12579main ()
12580{
12581return dlopen ();
12582  ;
12583  return 0;
12584}
12585_ACEOF
12586rm -f conftest.$ac_objext conftest$ac_exeext
12587if { (ac_try="$ac_link"
12588case "(($ac_try" in
12589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590  *) ac_try_echo=$ac_try;;
12591esac
12592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12593$as_echo "$ac_try_echo") >&5
12594  (eval "$ac_link") 2>conftest.er1
12595  ac_status=$?
12596  grep -v '^ *+' conftest.er1 >conftest.err
12597  rm -f conftest.er1
12598  cat conftest.err >&5
12599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600  (exit $ac_status); } && {
12601	 test -z "$ac_c_werror_flag" ||
12602	 test ! -s conftest.err
12603       } && test -s conftest$ac_exeext && {
12604	 test "$cross_compiling" = yes ||
12605	 $as_test_x conftest$ac_exeext
12606       }; then
12607  ac_cv_lib_svld_dlopen=yes
12608else
12609  $as_echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612	ac_cv_lib_svld_dlopen=no
12613fi
12614
12615rm -rf conftest.dSYM
12616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12617      conftest$ac_exeext conftest.$ac_ext
12618LIBS=$ac_check_lib_save_LIBS
12619fi
12620{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12621$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12622if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12623  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12624else
12625  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12626$as_echo_n "checking for dld_link in -ldld... " >&6; }
12627if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12628  $as_echo_n "(cached) " >&6
12629else
12630  ac_check_lib_save_LIBS=$LIBS
12631LIBS="-ldld  $LIBS"
12632cat >conftest.$ac_ext <<_ACEOF
12633/* confdefs.h.  */
12634_ACEOF
12635cat confdefs.h >>conftest.$ac_ext
12636cat >>conftest.$ac_ext <<_ACEOF
12637/* end confdefs.h.  */
12638
12639/* Override any GCC internal prototype to avoid an error.
12640   Use char because int might match the return type of a GCC
12641   builtin and then its argument prototype would still apply.  */
12642#ifdef __cplusplus
12643extern "C"
12644#endif
12645char dld_link ();
12646int
12647main ()
12648{
12649return dld_link ();
12650  ;
12651  return 0;
12652}
12653_ACEOF
12654rm -f conftest.$ac_objext conftest$ac_exeext
12655if { (ac_try="$ac_link"
12656case "(($ac_try" in
12657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658  *) ac_try_echo=$ac_try;;
12659esac
12660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12661$as_echo "$ac_try_echo") >&5
12662  (eval "$ac_link") 2>conftest.er1
12663  ac_status=$?
12664  grep -v '^ *+' conftest.er1 >conftest.err
12665  rm -f conftest.er1
12666  cat conftest.err >&5
12667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668  (exit $ac_status); } && {
12669	 test -z "$ac_c_werror_flag" ||
12670	 test ! -s conftest.err
12671       } && test -s conftest$ac_exeext && {
12672	 test "$cross_compiling" = yes ||
12673	 $as_test_x conftest$ac_exeext
12674       }; then
12675  ac_cv_lib_dld_dld_link=yes
12676else
12677  $as_echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
12680	ac_cv_lib_dld_dld_link=no
12681fi
12682
12683rm -rf conftest.dSYM
12684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12685      conftest$ac_exeext conftest.$ac_ext
12686LIBS=$ac_check_lib_save_LIBS
12687fi
12688{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12689$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12690if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12691  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12692fi
12693
12694
12695fi
12696
12697
12698fi
12699
12700
12701fi
12702
12703
12704fi
12705
12706
12707fi
12708
12709    ;;
12710  esac
12711
12712  if test "x$lt_cv_dlopen" != xno; then
12713    enable_dlopen=yes
12714  else
12715    enable_dlopen=no
12716  fi
12717
12718  case $lt_cv_dlopen in
12719  dlopen)
12720    save_CPPFLAGS="$CPPFLAGS"
12721    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12722
12723    save_LDFLAGS="$LDFLAGS"
12724    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12725
12726    save_LIBS="$LIBS"
12727    LIBS="$lt_cv_dlopen_libs $LIBS"
12728
12729    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12730$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12731if test "${lt_cv_dlopen_self+set}" = set; then
12732  $as_echo_n "(cached) " >&6
12733else
12734  	  if test "$cross_compiling" = yes; then :
12735  lt_cv_dlopen_self=cross
12736else
12737  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12738  lt_status=$lt_dlunknown
12739  cat > conftest.$ac_ext <<_LT_EOF
12740#line 12740 "configure"
12741#include "confdefs.h"
12742
12743#if HAVE_DLFCN_H
12744#include <dlfcn.h>
12745#endif
12746
12747#include <stdio.h>
12748
12749#ifdef RTLD_GLOBAL
12750#  define LT_DLGLOBAL		RTLD_GLOBAL
12751#else
12752#  ifdef DL_GLOBAL
12753#    define LT_DLGLOBAL		DL_GLOBAL
12754#  else
12755#    define LT_DLGLOBAL		0
12756#  endif
12757#endif
12758
12759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12760   find out it does not work in some platform. */
12761#ifndef LT_DLLAZY_OR_NOW
12762#  ifdef RTLD_LAZY
12763#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12764#  else
12765#    ifdef DL_LAZY
12766#      define LT_DLLAZY_OR_NOW		DL_LAZY
12767#    else
12768#      ifdef RTLD_NOW
12769#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12770#      else
12771#        ifdef DL_NOW
12772#          define LT_DLLAZY_OR_NOW	DL_NOW
12773#        else
12774#          define LT_DLLAZY_OR_NOW	0
12775#        endif
12776#      endif
12777#    endif
12778#  endif
12779#endif
12780
12781void fnord() { int i=42;}
12782int main ()
12783{
12784  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12785  int status = $lt_dlunknown;
12786
12787  if (self)
12788    {
12789      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12790      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12791      /* dlclose (self); */
12792    }
12793  else
12794    puts (dlerror ());
12795
12796  return status;
12797}
12798_LT_EOF
12799  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12800  (eval $ac_link) 2>&5
12801  ac_status=$?
12802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12804    (./conftest; exit; ) >&5 2>/dev/null
12805    lt_status=$?
12806    case x$lt_status in
12807      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12808      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12809      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12810    esac
12811  else :
12812    # compilation failed
12813    lt_cv_dlopen_self=no
12814  fi
12815fi
12816rm -fr conftest*
12817
12818
12819fi
12820{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12821$as_echo "$lt_cv_dlopen_self" >&6; }
12822
12823    if test "x$lt_cv_dlopen_self" = xyes; then
12824      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12825      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12826$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12827if test "${lt_cv_dlopen_self_static+set}" = set; then
12828  $as_echo_n "(cached) " >&6
12829else
12830  	  if test "$cross_compiling" = yes; then :
12831  lt_cv_dlopen_self_static=cross
12832else
12833  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12834  lt_status=$lt_dlunknown
12835  cat > conftest.$ac_ext <<_LT_EOF
12836#line 12836 "configure"
12837#include "confdefs.h"
12838
12839#if HAVE_DLFCN_H
12840#include <dlfcn.h>
12841#endif
12842
12843#include <stdio.h>
12844
12845#ifdef RTLD_GLOBAL
12846#  define LT_DLGLOBAL		RTLD_GLOBAL
12847#else
12848#  ifdef DL_GLOBAL
12849#    define LT_DLGLOBAL		DL_GLOBAL
12850#  else
12851#    define LT_DLGLOBAL		0
12852#  endif
12853#endif
12854
12855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12856   find out it does not work in some platform. */
12857#ifndef LT_DLLAZY_OR_NOW
12858#  ifdef RTLD_LAZY
12859#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12860#  else
12861#    ifdef DL_LAZY
12862#      define LT_DLLAZY_OR_NOW		DL_LAZY
12863#    else
12864#      ifdef RTLD_NOW
12865#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12866#      else
12867#        ifdef DL_NOW
12868#          define LT_DLLAZY_OR_NOW	DL_NOW
12869#        else
12870#          define LT_DLLAZY_OR_NOW	0
12871#        endif
12872#      endif
12873#    endif
12874#  endif
12875#endif
12876
12877void fnord() { int i=42;}
12878int main ()
12879{
12880  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12881  int status = $lt_dlunknown;
12882
12883  if (self)
12884    {
12885      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12886      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12887      /* dlclose (self); */
12888    }
12889  else
12890    puts (dlerror ());
12891
12892  return status;
12893}
12894_LT_EOF
12895  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896  (eval $ac_link) 2>&5
12897  ac_status=$?
12898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12900    (./conftest; exit; ) >&5 2>/dev/null
12901    lt_status=$?
12902    case x$lt_status in
12903      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12904      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12905      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12906    esac
12907  else :
12908    # compilation failed
12909    lt_cv_dlopen_self_static=no
12910  fi
12911fi
12912rm -fr conftest*
12913
12914
12915fi
12916{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12917$as_echo "$lt_cv_dlopen_self_static" >&6; }
12918    fi
12919
12920    CPPFLAGS="$save_CPPFLAGS"
12921    LDFLAGS="$save_LDFLAGS"
12922    LIBS="$save_LIBS"
12923    ;;
12924  esac
12925
12926  case $lt_cv_dlopen_self in
12927  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12928  *) enable_dlopen_self=unknown ;;
12929  esac
12930
12931  case $lt_cv_dlopen_self_static in
12932  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12933  *) enable_dlopen_self_static=unknown ;;
12934  esac
12935fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953striplib=
12954old_striplib=
12955{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12956$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12957if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12958  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12959  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12960  { $as_echo "$as_me:$LINENO: result: yes" >&5
12961$as_echo "yes" >&6; }
12962else
12963# FIXME - insert some real tests, host_os isn't really good enough
12964  case $host_os in
12965  darwin*)
12966    if test -n "$STRIP" ; then
12967      striplib="$STRIP -x"
12968      old_striplib="$STRIP -S"
12969      { $as_echo "$as_me:$LINENO: result: yes" >&5
12970$as_echo "yes" >&6; }
12971    else
12972      { $as_echo "$as_me:$LINENO: result: no" >&5
12973$as_echo "no" >&6; }
12974    fi
12975    ;;
12976  *)
12977    { $as_echo "$as_me:$LINENO: result: no" >&5
12978$as_echo "no" >&6; }
12979    ;;
12980  esac
12981fi
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994  # Report which library types will actually be built
12995  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12996$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12997  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12998$as_echo "$can_build_shared" >&6; }
12999
13000  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13001$as_echo_n "checking whether to build shared libraries... " >&6; }
13002  test "$can_build_shared" = "no" && enable_shared=no
13003
13004  # On AIX, shared libraries and static libraries use the same namespace, and
13005  # are all built from PIC.
13006  case $host_os in
13007  aix3*)
13008    test "$enable_shared" = yes && enable_static=no
13009    if test -n "$RANLIB"; then
13010      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13011      postinstall_cmds='$RANLIB $lib'
13012    fi
13013    ;;
13014
13015  aix[4-9]*)
13016    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13017      test "$enable_shared" = yes && enable_static=no
13018    fi
13019    ;;
13020  esac
13021  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13022$as_echo "$enable_shared" >&6; }
13023
13024  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13025$as_echo_n "checking whether to build static libraries... " >&6; }
13026  # Make sure either enable_shared or enable_static is yes.
13027  test "$enable_shared" = yes || enable_static=yes
13028  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13029$as_echo "$enable_static" >&6; }
13030
13031
13032
13033
13034fi
13035ac_ext=c
13036ac_cpp='$CPP $CPPFLAGS'
13037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13039ac_compiler_gnu=$ac_cv_c_compiler_gnu
13040
13041CC="$lt_save_CC"
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055        ac_config_commands="$ac_config_commands libtool"
13056
13057
13058
13059
13060# Only expand once:
13061
13062
13063
13064
13065if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13066	if test -n "$ac_tool_prefix"; then
13067  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13068set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13069{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13070$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13072  $as_echo_n "(cached) " >&6
13073else
13074  case $PKG_CONFIG in
13075  [\\/]* | ?:[\\/]*)
13076  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13077  ;;
13078  *)
13079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH
13081do
13082  IFS=$as_save_IFS
13083  test -z "$as_dir" && as_dir=.
13084  for ac_exec_ext in '' $ac_executable_extensions; do
13085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13086    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13087    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088    break 2
13089  fi
13090done
13091done
13092IFS=$as_save_IFS
13093
13094  ;;
13095esac
13096fi
13097PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13098if test -n "$PKG_CONFIG"; then
13099  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13100$as_echo "$PKG_CONFIG" >&6; }
13101else
13102  { $as_echo "$as_me:$LINENO: result: no" >&5
13103$as_echo "no" >&6; }
13104fi
13105
13106
13107fi
13108if test -z "$ac_cv_path_PKG_CONFIG"; then
13109  ac_pt_PKG_CONFIG=$PKG_CONFIG
13110  # Extract the first word of "pkg-config", so it can be a program name with args.
13111set dummy pkg-config; ac_word=$2
13112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13113$as_echo_n "checking for $ac_word... " >&6; }
13114if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13115  $as_echo_n "(cached) " >&6
13116else
13117  case $ac_pt_PKG_CONFIG in
13118  [\\/]* | ?:[\\/]*)
13119  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13120  ;;
13121  *)
13122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123for as_dir in $PATH
13124do
13125  IFS=$as_save_IFS
13126  test -z "$as_dir" && as_dir=.
13127  for ac_exec_ext in '' $ac_executable_extensions; do
13128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13130    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131    break 2
13132  fi
13133done
13134done
13135IFS=$as_save_IFS
13136
13137  ;;
13138esac
13139fi
13140ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13141if test -n "$ac_pt_PKG_CONFIG"; then
13142  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13143$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13144else
13145  { $as_echo "$as_me:$LINENO: result: no" >&5
13146$as_echo "no" >&6; }
13147fi
13148
13149  if test "x$ac_pt_PKG_CONFIG" = x; then
13150    PKG_CONFIG=""
13151  else
13152    case $cross_compiling:$ac_tool_warned in
13153yes:)
13154{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13156ac_tool_warned=yes ;;
13157esac
13158    PKG_CONFIG=$ac_pt_PKG_CONFIG
13159  fi
13160else
13161  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13162fi
13163
13164fi
13165if test -n "$PKG_CONFIG"; then
13166	_pkg_min_version=0.9.0
13167	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13168$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13169	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13170		{ $as_echo "$as_me:$LINENO: result: yes" >&5
13171$as_echo "yes" >&6; }
13172	else
13173		{ $as_echo "$as_me:$LINENO: result: no" >&5
13174$as_echo "no" >&6; }
13175		PKG_CONFIG=""
13176	fi
13177
13178fi
13179
13180# Look for headers
13181
13182
13183
13184for ac_header in endian.h poll.h sys/poll.h
13185do
13186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13188  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13189$as_echo_n "checking for $ac_header... " >&6; }
13190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13191  $as_echo_n "(cached) " >&6
13192fi
13193ac_res=`eval 'as_val=${'$as_ac_Header'}
13194		 $as_echo "$as_val"'`
13195	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13196$as_echo "$ac_res" >&6; }
13197else
13198  # Is the header compilable?
13199{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13200$as_echo_n "checking $ac_header usability... " >&6; }
13201cat >conftest.$ac_ext <<_ACEOF
13202/* confdefs.h.  */
13203_ACEOF
13204cat confdefs.h >>conftest.$ac_ext
13205cat >>conftest.$ac_ext <<_ACEOF
13206/* end confdefs.h.  */
13207$ac_includes_default
13208#include <$ac_header>
13209_ACEOF
13210rm -f conftest.$ac_objext
13211if { (ac_try="$ac_compile"
13212case "(($ac_try" in
13213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214  *) ac_try_echo=$ac_try;;
13215esac
13216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13217$as_echo "$ac_try_echo") >&5
13218  (eval "$ac_compile") 2>conftest.er1
13219  ac_status=$?
13220  grep -v '^ *+' conftest.er1 >conftest.err
13221  rm -f conftest.er1
13222  cat conftest.err >&5
13223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224  (exit $ac_status); } && {
13225	 test -z "$ac_c_werror_flag" ||
13226	 test ! -s conftest.err
13227       } && test -s conftest.$ac_objext; then
13228  ac_header_compiler=yes
13229else
13230  $as_echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233	ac_header_compiler=no
13234fi
13235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238$as_echo "$ac_header_compiler" >&6; }
13239
13240# Is the header present?
13241{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242$as_echo_n "checking $ac_header presence... " >&6; }
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h.  */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h.  */
13249#include <$ac_header>
13250_ACEOF
13251if { (ac_try="$ac_cpp conftest.$ac_ext"
13252case "(($ac_try" in
13253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254  *) ac_try_echo=$ac_try;;
13255esac
13256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257$as_echo "$ac_try_echo") >&5
13258  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13259  ac_status=$?
13260  grep -v '^ *+' conftest.er1 >conftest.err
13261  rm -f conftest.er1
13262  cat conftest.err >&5
13263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264  (exit $ac_status); } >/dev/null && {
13265	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13266	 test ! -s conftest.err
13267       }; then
13268  ac_header_preproc=yes
13269else
13270  $as_echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273  ac_header_preproc=no
13274fi
13275
13276rm -f conftest.err conftest.$ac_ext
13277{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278$as_echo "$ac_header_preproc" >&6; }
13279
13280# So?  What about this header?
13281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13282  yes:no: )
13283    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13286$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13287    ac_header_preproc=yes
13288    ;;
13289  no:yes:* )
13290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13291$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13293$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13295$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13297$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13299$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13301$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13302    ( cat <<\_ASBOX
13303## ---------------------------------------------------------------------- ##
13304## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
13305## ---------------------------------------------------------------------- ##
13306_ASBOX
13307     ) | sed "s/^/$as_me: WARNING:     /" >&2
13308    ;;
13309esac
13310{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13311$as_echo_n "checking for $ac_header... " >&6; }
13312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13313  $as_echo_n "(cached) " >&6
13314else
13315  eval "$as_ac_Header=\$ac_header_preproc"
13316fi
13317ac_res=`eval 'as_val=${'$as_ac_Header'}
13318		 $as_echo "$as_val"'`
13319	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13320$as_echo "$ac_res" >&6; }
13321
13322fi
13323as_val=`eval 'as_val=${'$as_ac_Header'}
13324		 $as_echo "$as_val"'`
13325   if test "x$as_val" = x""yes; then
13326  cat >>confdefs.h <<_ACEOF
13327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13328_ACEOF
13329
13330fi
13331
13332done
13333
13334
13335for ac_func in poll
13336do
13337as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13338{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13339$as_echo_n "checking for $ac_func... " >&6; }
13340if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13341  $as_echo_n "(cached) " >&6
13342else
13343  cat >conftest.$ac_ext <<_ACEOF
13344/* confdefs.h.  */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
13348/* end confdefs.h.  */
13349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13350   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13351#define $ac_func innocuous_$ac_func
13352
13353/* System header to define __stub macros and hopefully few prototypes,
13354    which can conflict with char $ac_func (); below.
13355    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13356    <limits.h> exists even on freestanding compilers.  */
13357
13358#ifdef __STDC__
13359# include <limits.h>
13360#else
13361# include <assert.h>
13362#endif
13363
13364#undef $ac_func
13365
13366/* Override any GCC internal prototype to avoid an error.
13367   Use char because int might match the return type of a GCC
13368   builtin and then its argument prototype would still apply.  */
13369#ifdef __cplusplus
13370extern "C"
13371#endif
13372char $ac_func ();
13373/* The GNU C library defines this for functions which it implements
13374    to always fail with ENOSYS.  Some functions are actually named
13375    something starting with __ and the normal name is an alias.  */
13376#if defined __stub_$ac_func || defined __stub___$ac_func
13377choke me
13378#endif
13379
13380int
13381main ()
13382{
13383return $ac_func ();
13384  ;
13385  return 0;
13386}
13387_ACEOF
13388rm -f conftest.$ac_objext conftest$ac_exeext
13389if { (ac_try="$ac_link"
13390case "(($ac_try" in
13391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392  *) ac_try_echo=$ac_try;;
13393esac
13394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13395$as_echo "$ac_try_echo") >&5
13396  (eval "$ac_link") 2>conftest.er1
13397  ac_status=$?
13398  grep -v '^ *+' conftest.er1 >conftest.err
13399  rm -f conftest.er1
13400  cat conftest.err >&5
13401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402  (exit $ac_status); } && {
13403	 test -z "$ac_c_werror_flag" ||
13404	 test ! -s conftest.err
13405       } && test -s conftest$ac_exeext && {
13406	 test "$cross_compiling" = yes ||
13407	 $as_test_x conftest$ac_exeext
13408       }; then
13409  eval "$as_ac_var=yes"
13410else
13411  $as_echo "$as_me: failed program was:" >&5
13412sed 's/^/| /' conftest.$ac_ext >&5
13413
13414	eval "$as_ac_var=no"
13415fi
13416
13417rm -rf conftest.dSYM
13418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13419      conftest$ac_exeext conftest.$ac_ext
13420fi
13421ac_res=`eval 'as_val=${'$as_ac_var'}
13422		 $as_echo "$as_val"'`
13423	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13424$as_echo "$ac_res" >&6; }
13425as_val=`eval 'as_val=${'$as_ac_var'}
13426		 $as_echo "$as_val"'`
13427   if test "x$as_val" = x""yes; then
13428  cat >>confdefs.h <<_ACEOF
13429#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13430_ACEOF
13431
13432fi
13433done
13434
13435
13436#
13437# select libraries to include
13438#
13439
13440XFONT_FONTFILE=no
13441
13442#
13443# Scalable fonts in files:
13444# 	FreeType
13445#	Bitstream Speedo rasterizer
13446#
13447# Check whether --enable-freetype was given.
13448if test "${enable_freetype+set}" = set; then
13449  enableval=$enable_freetype; XFONT_FREETYPE=$enableval
13450else
13451  XFONT_FREETYPE=yes
13452fi
13453
13454 if test x$XFONT_FREETYPE = xyes; then
13455  XFONT_FREETYPE_TRUE=
13456  XFONT_FREETYPE_FALSE='#'
13457else
13458  XFONT_FREETYPE_TRUE='#'
13459  XFONT_FREETYPE_FALSE=
13460fi
13461
13462if test x$XFONT_FREETYPE = xyes; then
13463
13464cat >>confdefs.h <<\_ACEOF
13465#define XFONT_FREETYPE 1
13466_ACEOF
13467
13468
13469# Check whether --with-freetype-config was given.
13470if test "${with_freetype_config+set}" = set; then
13471  withval=$with_freetype_config; freetype_config=$withval
13472else
13473  freetype_config=auto
13474fi
13475
13476
13477	if test "$freetype_config" = "auto" ; then
13478
13479pkg_failed=no
13480{ $as_echo "$as_me:$LINENO: checking for FREETYPE" >&5
13481$as_echo_n "checking for FREETYPE... " >&6; }
13482
13483if test -n "$PKG_CONFIG"; then
13484    if test -n "$FREETYPE_CFLAGS"; then
13485        pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
13486    else
13487        if test -n "$PKG_CONFIG" && \
13488    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
13489  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13490  ac_status=$?
13491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492  (exit $ac_status); }; then
13493  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
13494else
13495  pkg_failed=yes
13496fi
13497    fi
13498else
13499	pkg_failed=untried
13500fi
13501if test -n "$PKG_CONFIG"; then
13502    if test -n "$FREETYPE_LIBS"; then
13503        pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
13504    else
13505        if test -n "$PKG_CONFIG" && \
13506    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
13507  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13508  ac_status=$?
13509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510  (exit $ac_status); }; then
13511  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
13512else
13513  pkg_failed=yes
13514fi
13515    fi
13516else
13517	pkg_failed=untried
13518fi
13519
13520
13521
13522if test $pkg_failed = yes; then
13523
13524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13525        _pkg_short_errors_supported=yes
13526else
13527        _pkg_short_errors_supported=no
13528fi
13529        if test $_pkg_short_errors_supported = yes; then
13530	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
13531        else
13532	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13533        fi
13534	# Put the nasty error message in config.log where it belongs
13535	echo "$FREETYPE_PKG_ERRORS" >&5
13536
13537	{ $as_echo "$as_me:$LINENO: result: no" >&5
13538$as_echo "no" >&6; }
13539                freetype_config=yes
13540elif test $pkg_failed = untried; then
13541	freetype_config=yes
13542else
13543	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
13544	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
13545        { $as_echo "$as_me:$LINENO: result: yes" >&5
13546$as_echo "yes" >&6; }
13547	freetype_config=no
13548fi
13549	fi
13550
13551	if test "$freetype_config" = "yes"; then
13552		# Extract the first word of "freetype-config", so it can be a program name with args.
13553set dummy freetype-config; ac_word=$2
13554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
13556if test "${ac_cv_path_ft_config+set}" = set; then
13557  $as_echo_n "(cached) " >&6
13558else
13559  case $ft_config in
13560  [\\/]* | ?:[\\/]*)
13561  ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
13562  ;;
13563  *)
13564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567  IFS=$as_save_IFS
13568  test -z "$as_dir" && as_dir=.
13569  for ac_exec_ext in '' $ac_executable_extensions; do
13570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13571    ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
13572    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13573    break 2
13574  fi
13575done
13576done
13577IFS=$as_save_IFS
13578
13579  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
13580  ;;
13581esac
13582fi
13583ft_config=$ac_cv_path_ft_config
13584if test -n "$ft_config"; then
13585  { $as_echo "$as_me:$LINENO: result: $ft_config" >&5
13586$as_echo "$ft_config" >&6; }
13587else
13588  { $as_echo "$as_me:$LINENO: result: no" >&5
13589$as_echo "no" >&6; }
13590fi
13591
13592
13593		if test "$ft_config" = "no"; then
13594			{ { $as_echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5
13595$as_echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;}
13596   { (exit 1); exit 1; }; }
13597		fi
13598	else
13599		ft_config="$freetype_config"
13600	fi
13601
13602	if test "$freetype_config" != "no"; then
13603		FREETYPE_CFLAGS="`$ft_config --cflags`"
13604		FREETYPE_LIBS="`$ft_config --libs`"
13605	fi
13606	FREETYPE_REQUIRES="freetype2"
13607	XFONT_FONTFILE=yes
13608else
13609	FREETYPE_CFLAGS=""
13610	FREETYPE_LIBS=""
13611	FREETYPE_REQUIRES=""
13612fi
13613
13614
13615
13616
13617#
13618# Bitmap fonts in files:
13619#	Builtins (gzipped pcf format in .text segment)
13620#	PCF
13621#	BDF
13622#	SNF
13623#
13624
13625
13626cat >>confdefs.h <<\_ACEOF
13627#define X_GZIP_FONT_COMPRESSION 1
13628_ACEOF
13629
13630X_GZIP_FONT_COMPRESSION=1
13631
13632{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
13633$as_echo_n "checking for gzopen in -lz... " >&6; }
13634if test "${ac_cv_lib_z_gzopen+set}" = set; then
13635  $as_echo_n "(cached) " >&6
13636else
13637  ac_check_lib_save_LIBS=$LIBS
13638LIBS="-lz  $LIBS"
13639cat >conftest.$ac_ext <<_ACEOF
13640/* confdefs.h.  */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h.  */
13645
13646/* Override any GCC internal prototype to avoid an error.
13647   Use char because int might match the return type of a GCC
13648   builtin and then its argument prototype would still apply.  */
13649#ifdef __cplusplus
13650extern "C"
13651#endif
13652char gzopen ();
13653int
13654main ()
13655{
13656return gzopen ();
13657  ;
13658  return 0;
13659}
13660_ACEOF
13661rm -f conftest.$ac_objext conftest$ac_exeext
13662if { (ac_try="$ac_link"
13663case "(($ac_try" in
13664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665  *) ac_try_echo=$ac_try;;
13666esac
13667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13668$as_echo "$ac_try_echo") >&5
13669  (eval "$ac_link") 2>conftest.er1
13670  ac_status=$?
13671  grep -v '^ *+' conftest.er1 >conftest.err
13672  rm -f conftest.er1
13673  cat conftest.err >&5
13674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675  (exit $ac_status); } && {
13676	 test -z "$ac_c_werror_flag" ||
13677	 test ! -s conftest.err
13678       } && test -s conftest$ac_exeext && {
13679	 test "$cross_compiling" = yes ||
13680	 $as_test_x conftest$ac_exeext
13681       }; then
13682  ac_cv_lib_z_gzopen=yes
13683else
13684  $as_echo "$as_me: failed program was:" >&5
13685sed 's/^/| /' conftest.$ac_ext >&5
13686
13687	ac_cv_lib_z_gzopen=no
13688fi
13689
13690rm -rf conftest.dSYM
13691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13692      conftest$ac_exeext conftest.$ac_ext
13693LIBS=$ac_check_lib_save_LIBS
13694fi
13695{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
13696$as_echo "$ac_cv_lib_z_gzopen" >&6; }
13697if test "x$ac_cv_lib_z_gzopen" = x""yes; then
13698  Z_LIBS=-lz
13699else
13700  { { $as_echo "$as_me:$LINENO: error: *** zlib is required" >&5
13701$as_echo "$as_me: error: *** zlib is required" >&2;}
13702   { (exit 1); exit 1; }; }
13703fi
13704
13705
13706
13707# Check whether --with-bzip2 was given.
13708if test "${with_bzip2+set}" = set; then
13709  withval=$with_bzip2;
13710else
13711  with_bzip2=no
13712fi
13713
13714if test "x$with_bzip2" = xyes; then
13715	{ $as_echo "$as_me:$LINENO: checking for BZ2_bzopen in -lbz2" >&5
13716$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
13717if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then
13718  $as_echo_n "(cached) " >&6
13719else
13720  ac_check_lib_save_LIBS=$LIBS
13721LIBS="-lbz2  $LIBS"
13722cat >conftest.$ac_ext <<_ACEOF
13723/* confdefs.h.  */
13724_ACEOF
13725cat confdefs.h >>conftest.$ac_ext
13726cat >>conftest.$ac_ext <<_ACEOF
13727/* end confdefs.h.  */
13728
13729/* Override any GCC internal prototype to avoid an error.
13730   Use char because int might match the return type of a GCC
13731   builtin and then its argument prototype would still apply.  */
13732#ifdef __cplusplus
13733extern "C"
13734#endif
13735char BZ2_bzopen ();
13736int
13737main ()
13738{
13739return BZ2_bzopen ();
13740  ;
13741  return 0;
13742}
13743_ACEOF
13744rm -f conftest.$ac_objext conftest$ac_exeext
13745if { (ac_try="$ac_link"
13746case "(($ac_try" in
13747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748  *) ac_try_echo=$ac_try;;
13749esac
13750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13751$as_echo "$ac_try_echo") >&5
13752  (eval "$ac_link") 2>conftest.er1
13753  ac_status=$?
13754  grep -v '^ *+' conftest.er1 >conftest.err
13755  rm -f conftest.er1
13756  cat conftest.err >&5
13757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758  (exit $ac_status); } && {
13759	 test -z "$ac_c_werror_flag" ||
13760	 test ! -s conftest.err
13761       } && test -s conftest$ac_exeext && {
13762	 test "$cross_compiling" = yes ||
13763	 $as_test_x conftest$ac_exeext
13764       }; then
13765  ac_cv_lib_bz2_BZ2_bzopen=yes
13766else
13767  $as_echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770	ac_cv_lib_bz2_BZ2_bzopen=no
13771fi
13772
13773rm -rf conftest.dSYM
13774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13775      conftest$ac_exeext conftest.$ac_ext
13776LIBS=$ac_check_lib_save_LIBS
13777fi
13778{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
13779$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
13780if test "x$ac_cv_lib_bz2_BZ2_bzopen" = x""yes; then
13781  Z_LIBS="$Z_LIBS -lbz2"
13782else
13783  { { $as_echo "$as_me:$LINENO: error: *** libbz2 is required for bzip2 support" >&5
13784$as_echo "$as_me: error: *** libbz2 is required for bzip2 support" >&2;}
13785   { (exit 1); exit 1; }; }
13786fi
13787
13788
13789cat >>confdefs.h <<\_ACEOF
13790#define X_BZIP2_FONT_COMPRESSION 1
13791_ACEOF
13792
13793fi
13794 if test "x$with_bzip2" = xyes ; then
13795  X_BZIP2_FONT_COMPRESSION_TRUE=
13796  X_BZIP2_FONT_COMPRESSION_FALSE='#'
13797else
13798  X_BZIP2_FONT_COMPRESSION_TRUE='#'
13799  X_BZIP2_FONT_COMPRESSION_FALSE=
13800fi
13801
13802
13803
13804# Check whether --enable-builtins was given.
13805if test "${enable_builtins+set}" = set; then
13806  enableval=$enable_builtins; XFONT_BUILTINS=$enableval
13807else
13808  XFONT_BUILTINS=yes
13809fi
13810
13811 if test "x$XFONT_BUILTINS" = xyes ; then
13812  XFONT_BUILTINS_TRUE=
13813  XFONT_BUILTINS_FALSE='#'
13814else
13815  XFONT_BUILTINS_TRUE='#'
13816  XFONT_BUILTINS_FALSE=
13817fi
13818
13819if test "x$XFONT_BUILTINS" = xyes; then
13820
13821cat >>confdefs.h <<\_ACEOF
13822#define XFONT_BUILTINS 1
13823_ACEOF
13824
13825	XFONT_BITMAP=yes
13826fi
13827
13828# Check whether --enable-pcfformat was given.
13829if test "${enable_pcfformat+set}" = set; then
13830  enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
13831else
13832  XFONT_PCFFORMAT=yes
13833fi
13834
13835 if test "x$XFONT_PCFFORMAT" = xyes; then
13836  XFONT_PCFFORMAT_TRUE=
13837  XFONT_PCFFORMAT_FALSE='#'
13838else
13839  XFONT_PCFFORMAT_TRUE='#'
13840  XFONT_PCFFORMAT_FALSE=
13841fi
13842
13843if test "x$XFONT_PCFFORMAT" = xyes; then
13844
13845cat >>confdefs.h <<\_ACEOF
13846#define XFONT_PCFFORMAT 1
13847_ACEOF
13848
13849	XFONT_BITMAP=yes
13850fi
13851
13852# Check whether --enable-bdfformat was given.
13853if test "${enable_bdfformat+set}" = set; then
13854  enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
13855else
13856  XFONT_BDFFORMAT=yes
13857fi
13858
13859 if test "x$XFONT_BDFFORMAT" = xyes; then
13860  XFONT_BDFFORMAT_TRUE=
13861  XFONT_BDFFORMAT_FALSE='#'
13862else
13863  XFONT_BDFFORMAT_TRUE='#'
13864  XFONT_BDFFORMAT_FALSE=
13865fi
13866
13867if test "x$XFONT_BDFFORMAT" = xyes; then
13868
13869cat >>confdefs.h <<\_ACEOF
13870#define XFONT_BDFFORMAT 1
13871_ACEOF
13872
13873	XFONT_BITMAP=yes
13874fi
13875
13876# Check whether --enable-snfformat was given.
13877if test "${enable_snfformat+set}" = set; then
13878  enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
13879else
13880  XFONT_SNFFORMAT=yes
13881fi
13882
13883 if test "x$XFONT_SNFFORMAT" = xyes; then
13884  XFONT_SNFFORMAT_TRUE=
13885  XFONT_SNFFORMAT_FALSE='#'
13886else
13887  XFONT_SNFFORMAT_TRUE='#'
13888  XFONT_SNFFORMAT_FALSE=
13889fi
13890
13891if test "x$XFONT_SNFFORMAT" = xyes; then
13892
13893cat >>confdefs.h <<\_ACEOF
13894#define XFONT_SNFFORMAT 1
13895_ACEOF
13896
13897	XFONT_BITMAP=yes
13898fi
13899
13900 if test "x$XFONT_BITMAP" = xyes ; then
13901  XFONT_BITMAP_TRUE=
13902  XFONT_BITMAP_FALSE='#'
13903else
13904  XFONT_BITMAP_TRUE='#'
13905  XFONT_BITMAP_FALSE=
13906fi
13907
13908if test "x$XFONT_BITMAP" = xyes; then
13909
13910cat >>confdefs.h <<\_ACEOF
13911#define XFONT_BITMAP 1
13912_ACEOF
13913
13914	XFONT_FONTFILE=yes
13915fi
13916
13917 if test "x$XFONT_FONTFILE" = xyes; then
13918  XFONT_FONTFILE_TRUE=
13919  XFONT_FONTFILE_FALSE='#'
13920else
13921  XFONT_FONTFILE_TRUE='#'
13922  XFONT_FONTFILE_FALSE=
13923fi
13924
13925if test "x$XFONT_FONTFILE" = xyes; then
13926
13927cat >>confdefs.h <<\_ACEOF
13928#define XFONT_FONTFILE 1
13929_ACEOF
13930
13931fi
13932
13933#
13934# Support connection to font servers?
13935#
13936
13937# Check whether --enable-fc was given.
13938if test "${enable_fc+set}" = set; then
13939  enableval=$enable_fc; XFONT_FC=$enableval
13940else
13941  XFONT_FC=yes
13942fi
13943
13944 if test "x$XFONT_FC" = xyes; then
13945  XFONT_FC_TRUE=
13946  XFONT_FC_FALSE='#'
13947else
13948  XFONT_FC_TRUE='#'
13949  XFONT_FC_FALSE=
13950fi
13951
13952if test "x$XFONT_FC" = xyes; then
13953
13954cat >>confdefs.h <<\_ACEOF
13955#define XFONT_FC 1
13956_ACEOF
13957
13958fi
13959
13960
13961{ $as_echo "$as_me:$LINENO: checking for hypot in -lm" >&5
13962$as_echo_n "checking for hypot in -lm... " >&6; }
13963if test "${ac_cv_lib_m_hypot+set}" = set; then
13964  $as_echo_n "(cached) " >&6
13965else
13966  ac_check_lib_save_LIBS=$LIBS
13967LIBS="-lm  $LIBS"
13968cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h.  */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h.  */
13974
13975/* Override any GCC internal prototype to avoid an error.
13976   Use char because int might match the return type of a GCC
13977   builtin and then its argument prototype would still apply.  */
13978#ifdef __cplusplus
13979extern "C"
13980#endif
13981char hypot ();
13982int
13983main ()
13984{
13985return hypot ();
13986  ;
13987  return 0;
13988}
13989_ACEOF
13990rm -f conftest.$ac_objext conftest$ac_exeext
13991if { (ac_try="$ac_link"
13992case "(($ac_try" in
13993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994  *) ac_try_echo=$ac_try;;
13995esac
13996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13997$as_echo "$ac_try_echo") >&5
13998  (eval "$ac_link") 2>conftest.er1
13999  ac_status=$?
14000  grep -v '^ *+' conftest.er1 >conftest.err
14001  rm -f conftest.er1
14002  cat conftest.err >&5
14003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004  (exit $ac_status); } && {
14005	 test -z "$ac_c_werror_flag" ||
14006	 test ! -s conftest.err
14007       } && test -s conftest$ac_exeext && {
14008	 test "$cross_compiling" = yes ||
14009	 $as_test_x conftest$ac_exeext
14010       }; then
14011  ac_cv_lib_m_hypot=yes
14012else
14013  $as_echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016	ac_cv_lib_m_hypot=no
14017fi
14018
14019rm -rf conftest.dSYM
14020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14021      conftest$ac_exeext conftest.$ac_ext
14022LIBS=$ac_check_lib_save_LIBS
14023fi
14024{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5
14025$as_echo "$ac_cv_lib_m_hypot" >&6; }
14026if test "x$ac_cv_lib_m_hypot" = x""yes; then
14027  MATH_LIBS=-lm
14028
14029else
14030  { { $as_echo "$as_me:$LINENO: error: *** libm is required" >&5
14031$as_echo "$as_me: error: *** libm is required" >&2;}
14032   { (exit 1); exit 1; }; }
14033fi
14034
14035
14036
14037pkg_failed=no
14038{ $as_echo "$as_me:$LINENO: checking for XFONT" >&5
14039$as_echo_n "checking for XFONT... " >&6; }
14040
14041if test -n "$PKG_CONFIG"; then
14042    if test -n "$XFONT_CFLAGS"; then
14043        pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
14044    else
14045        if test -n "$PKG_CONFIG" && \
14046    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\"") >&5
14047  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5
14048  ac_status=$?
14049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050  (exit $ac_status); }; then
14051  pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto fontenc" 2>/dev/null`
14052else
14053  pkg_failed=yes
14054fi
14055    fi
14056else
14057	pkg_failed=untried
14058fi
14059if test -n "$PKG_CONFIG"; then
14060    if test -n "$XFONT_LIBS"; then
14061        pkg_cv_XFONT_LIBS="$XFONT_LIBS"
14062    else
14063        if test -n "$PKG_CONFIG" && \
14064    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\"") >&5
14065  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5
14066  ac_status=$?
14067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068  (exit $ac_status); }; then
14069  pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto fontenc" 2>/dev/null`
14070else
14071  pkg_failed=yes
14072fi
14073    fi
14074else
14075	pkg_failed=untried
14076fi
14077
14078
14079
14080if test $pkg_failed = yes; then
14081
14082if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14083        _pkg_short_errors_supported=yes
14084else
14085        _pkg_short_errors_supported=no
14086fi
14087        if test $_pkg_short_errors_supported = yes; then
14088	        XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto xtrans fontsproto fontenc"`
14089        else
14090	        XFONT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto xtrans fontsproto fontenc"`
14091        fi
14092	# Put the nasty error message in config.log where it belongs
14093	echo "$XFONT_PKG_ERRORS" >&5
14094
14095	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto xtrans fontsproto fontenc) were not met:
14096
14097$XFONT_PKG_ERRORS
14098
14099Consider adjusting the PKG_CONFIG_PATH environment variable if you
14100installed software in a non-standard prefix.
14101
14102Alternatively, you may set the environment variables XFONT_CFLAGS
14103and XFONT_LIBS to avoid the need to call pkg-config.
14104See the pkg-config man page for more details.
14105" >&5
14106$as_echo "$as_me: error: Package requirements (xproto xtrans fontsproto fontenc) were not met:
14107
14108$XFONT_PKG_ERRORS
14109
14110Consider adjusting the PKG_CONFIG_PATH environment variable if you
14111installed software in a non-standard prefix.
14112
14113Alternatively, you may set the environment variables XFONT_CFLAGS
14114and XFONT_LIBS to avoid the need to call pkg-config.
14115See the pkg-config man page for more details.
14116" >&2;}
14117   { (exit 1); exit 1; }; }
14118elif test $pkg_failed = untried; then
14119	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14121{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
14122is in your PATH or set the PKG_CONFIG environment variable to the full
14123path to pkg-config.
14124
14125Alternatively, you may set the environment variables XFONT_CFLAGS
14126and XFONT_LIBS to avoid the need to call pkg-config.
14127See the pkg-config man page for more details.
14128
14129To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14130See \`config.log' for more details." >&5
14131$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
14132is in your PATH or set the PKG_CONFIG environment variable to the full
14133path to pkg-config.
14134
14135Alternatively, you may set the environment variables XFONT_CFLAGS
14136and XFONT_LIBS to avoid the need to call pkg-config.
14137See the pkg-config man page for more details.
14138
14139To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14140See \`config.log' for more details." >&2;}
14141   { (exit 1); exit 1; }; }; }
14142else
14143	XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
14144	XFONT_LIBS=$pkg_cv_XFONT_LIBS
14145        { $as_echo "$as_me:$LINENO: result: yes" >&5
14146$as_echo "yes" >&6; }
14147	:
14148fi
14149
14150# Transport selection macro from xtrans.m4
14151{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14152$as_echo_n "checking return type of signal handlers... " >&6; }
14153if test "${ac_cv_type_signal+set}" = set; then
14154  $as_echo_n "(cached) " >&6
14155else
14156  cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h.  */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h.  */
14162#include <sys/types.h>
14163#include <signal.h>
14164
14165int
14166main ()
14167{
14168return *(signal (0, 0)) (0) == 1;
14169  ;
14170  return 0;
14171}
14172_ACEOF
14173rm -f conftest.$ac_objext
14174if { (ac_try="$ac_compile"
14175case "(($ac_try" in
14176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177  *) ac_try_echo=$ac_try;;
14178esac
14179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14180$as_echo "$ac_try_echo") >&5
14181  (eval "$ac_compile") 2>conftest.er1
14182  ac_status=$?
14183  grep -v '^ *+' conftest.er1 >conftest.err
14184  rm -f conftest.er1
14185  cat conftest.err >&5
14186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187  (exit $ac_status); } && {
14188	 test -z "$ac_c_werror_flag" ||
14189	 test ! -s conftest.err
14190       } && test -s conftest.$ac_objext; then
14191  ac_cv_type_signal=int
14192else
14193  $as_echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196	ac_cv_type_signal=void
14197fi
14198
14199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200fi
14201{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14202$as_echo "$ac_cv_type_signal" >&6; }
14203
14204cat >>confdefs.h <<_ACEOF
14205#define RETSIGTYPE $ac_cv_type_signal
14206_ACEOF
14207
14208
14209
14210
14211
14212 case $host_os in
14213	mingw*)	unixdef="no"   ;;
14214	*)	unixdef="yes"  ;;
14215 esac
14216 # Check whether --enable-unix-transport was given.
14217if test "${enable_unix_transport+set}" = set; then
14218  enableval=$enable_unix_transport; UNIXCONN=$enableval
14219else
14220  UNIXCONN=$unixdef
14221fi
14222
14223 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
14224$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
14225 if test "$UNIXCONN" = "yes"; then
14226
14227cat >>confdefs.h <<\_ACEOF
14228#define UNIXCONN 1
14229_ACEOF
14230
14231 fi
14232 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5
14233$as_echo "$UNIXCONN" >&6; }
14234 # Check whether --enable-tcp-transport was given.
14235if test "${enable_tcp_transport+set}" = set; then
14236  enableval=$enable_tcp_transport; TCPCONN=$enableval
14237else
14238  TCPCONN=yes
14239fi
14240
14241 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
14242$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
14243 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5
14244$as_echo "$TCPCONN" >&6; }
14245 if test "$TCPCONN" = "yes"; then
14246
14247cat >>confdefs.h <<\_ACEOF
14248#define TCPCONN 1
14249_ACEOF
14250
14251
14252 # SVR4 hides these in libraries other than libc
14253 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
14254$as_echo_n "checking for library containing socket... " >&6; }
14255if test "${ac_cv_search_socket+set}" = set; then
14256  $as_echo_n "(cached) " >&6
14257else
14258  ac_func_search_save_LIBS=$LIBS
14259cat >conftest.$ac_ext <<_ACEOF
14260/* confdefs.h.  */
14261_ACEOF
14262cat confdefs.h >>conftest.$ac_ext
14263cat >>conftest.$ac_ext <<_ACEOF
14264/* end confdefs.h.  */
14265
14266/* Override any GCC internal prototype to avoid an error.
14267   Use char because int might match the return type of a GCC
14268   builtin and then its argument prototype would still apply.  */
14269#ifdef __cplusplus
14270extern "C"
14271#endif
14272char socket ();
14273int
14274main ()
14275{
14276return socket ();
14277  ;
14278  return 0;
14279}
14280_ACEOF
14281for ac_lib in '' socket; do
14282  if test -z "$ac_lib"; then
14283    ac_res="none required"
14284  else
14285    ac_res=-l$ac_lib
14286    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14287  fi
14288  rm -f conftest.$ac_objext conftest$ac_exeext
14289if { (ac_try="$ac_link"
14290case "(($ac_try" in
14291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292  *) ac_try_echo=$ac_try;;
14293esac
14294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14295$as_echo "$ac_try_echo") >&5
14296  (eval "$ac_link") 2>conftest.er1
14297  ac_status=$?
14298  grep -v '^ *+' conftest.er1 >conftest.err
14299  rm -f conftest.er1
14300  cat conftest.err >&5
14301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302  (exit $ac_status); } && {
14303	 test -z "$ac_c_werror_flag" ||
14304	 test ! -s conftest.err
14305       } && test -s conftest$ac_exeext && {
14306	 test "$cross_compiling" = yes ||
14307	 $as_test_x conftest$ac_exeext
14308       }; then
14309  ac_cv_search_socket=$ac_res
14310else
14311  $as_echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314
14315fi
14316
14317rm -rf conftest.dSYM
14318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14319      conftest$ac_exeext
14320  if test "${ac_cv_search_socket+set}" = set; then
14321  break
14322fi
14323done
14324if test "${ac_cv_search_socket+set}" = set; then
14325  :
14326else
14327  ac_cv_search_socket=no
14328fi
14329rm conftest.$ac_ext
14330LIBS=$ac_func_search_save_LIBS
14331fi
14332{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
14333$as_echo "$ac_cv_search_socket" >&6; }
14334ac_res=$ac_cv_search_socket
14335if test "$ac_res" != no; then
14336  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14337
14338fi
14339
14340 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
14341$as_echo_n "checking for library containing gethostbyname... " >&6; }
14342if test "${ac_cv_search_gethostbyname+set}" = set; then
14343  $as_echo_n "(cached) " >&6
14344else
14345  ac_func_search_save_LIBS=$LIBS
14346cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h.  */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h.  */
14352
14353/* Override any GCC internal prototype to avoid an error.
14354   Use char because int might match the return type of a GCC
14355   builtin and then its argument prototype would still apply.  */
14356#ifdef __cplusplus
14357extern "C"
14358#endif
14359char gethostbyname ();
14360int
14361main ()
14362{
14363return gethostbyname ();
14364  ;
14365  return 0;
14366}
14367_ACEOF
14368for ac_lib in '' nsl; do
14369  if test -z "$ac_lib"; then
14370    ac_res="none required"
14371  else
14372    ac_res=-l$ac_lib
14373    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14374  fi
14375  rm -f conftest.$ac_objext conftest$ac_exeext
14376if { (ac_try="$ac_link"
14377case "(($ac_try" in
14378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379  *) ac_try_echo=$ac_try;;
14380esac
14381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14382$as_echo "$ac_try_echo") >&5
14383  (eval "$ac_link") 2>conftest.er1
14384  ac_status=$?
14385  grep -v '^ *+' conftest.er1 >conftest.err
14386  rm -f conftest.er1
14387  cat conftest.err >&5
14388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389  (exit $ac_status); } && {
14390	 test -z "$ac_c_werror_flag" ||
14391	 test ! -s conftest.err
14392       } && test -s conftest$ac_exeext && {
14393	 test "$cross_compiling" = yes ||
14394	 $as_test_x conftest$ac_exeext
14395       }; then
14396  ac_cv_search_gethostbyname=$ac_res
14397else
14398  $as_echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
14401
14402fi
14403
14404rm -rf conftest.dSYM
14405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14406      conftest$ac_exeext
14407  if test "${ac_cv_search_gethostbyname+set}" = set; then
14408  break
14409fi
14410done
14411if test "${ac_cv_search_gethostbyname+set}" = set; then
14412  :
14413else
14414  ac_cv_search_gethostbyname=no
14415fi
14416rm conftest.$ac_ext
14417LIBS=$ac_func_search_save_LIBS
14418fi
14419{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
14420$as_echo "$ac_cv_search_gethostbyname" >&6; }
14421ac_res=$ac_cv_search_gethostbyname
14422if test "$ac_res" != no; then
14423  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14424
14425fi
14426
14427
14428{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
14429$as_echo_n "checking for main in -lws2_32... " >&6; }
14430if test "${ac_cv_lib_ws2_32_main+set}" = set; then
14431  $as_echo_n "(cached) " >&6
14432else
14433  ac_check_lib_save_LIBS=$LIBS
14434LIBS="-lws2_32  $LIBS"
14435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h.  */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h.  */
14441
14442
14443int
14444main ()
14445{
14446return main ();
14447  ;
14448  return 0;
14449}
14450_ACEOF
14451rm -f conftest.$ac_objext conftest$ac_exeext
14452if { (ac_try="$ac_link"
14453case "(($ac_try" in
14454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455  *) ac_try_echo=$ac_try;;
14456esac
14457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458$as_echo "$ac_try_echo") >&5
14459  (eval "$ac_link") 2>conftest.er1
14460  ac_status=$?
14461  grep -v '^ *+' conftest.er1 >conftest.err
14462  rm -f conftest.er1
14463  cat conftest.err >&5
14464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465  (exit $ac_status); } && {
14466	 test -z "$ac_c_werror_flag" ||
14467	 test ! -s conftest.err
14468       } && test -s conftest$ac_exeext && {
14469	 test "$cross_compiling" = yes ||
14470	 $as_test_x conftest$ac_exeext
14471       }; then
14472  ac_cv_lib_ws2_32_main=yes
14473else
14474  $as_echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477	ac_cv_lib_ws2_32_main=no
14478fi
14479
14480rm -rf conftest.dSYM
14481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482      conftest$ac_exeext conftest.$ac_ext
14483LIBS=$ac_check_lib_save_LIBS
14484fi
14485{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
14486$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
14487if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
14488  cat >>confdefs.h <<_ACEOF
14489#define HAVE_LIBWS2_32 1
14490_ACEOF
14491
14492  LIBS="-lws2_32 $LIBS"
14493
14494fi
14495ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
14496
14497
14498 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
14499 # Check whether --enable-ipv6 was given.
14500if test "${enable_ipv6+set}" = set; then
14501  enableval=$enable_ipv6; IPV6CONN=$enableval
14502else
14503  { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
14504$as_echo_n "checking for getaddrinfo... " >&6; }
14505if test "${ac_cv_func_getaddrinfo+set}" = set; then
14506  $as_echo_n "(cached) " >&6
14507else
14508  cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h.  */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h.  */
14514/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
14515   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14516#define getaddrinfo innocuous_getaddrinfo
14517
14518/* System header to define __stub macros and hopefully few prototypes,
14519    which can conflict with char getaddrinfo (); below.
14520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521    <limits.h> exists even on freestanding compilers.  */
14522
14523#ifdef __STDC__
14524# include <limits.h>
14525#else
14526# include <assert.h>
14527#endif
14528
14529#undef getaddrinfo
14530
14531/* Override any GCC internal prototype to avoid an error.
14532   Use char because int might match the return type of a GCC
14533   builtin and then its argument prototype would still apply.  */
14534#ifdef __cplusplus
14535extern "C"
14536#endif
14537char getaddrinfo ();
14538/* The GNU C library defines this for functions which it implements
14539    to always fail with ENOSYS.  Some functions are actually named
14540    something starting with __ and the normal name is an alias.  */
14541#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
14542choke me
14543#endif
14544
14545int
14546main ()
14547{
14548return getaddrinfo ();
14549  ;
14550  return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext conftest$ac_exeext
14554if { (ac_try="$ac_link"
14555case "(($ac_try" in
14556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557  *) ac_try_echo=$ac_try;;
14558esac
14559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14560$as_echo "$ac_try_echo") >&5
14561  (eval "$ac_link") 2>conftest.er1
14562  ac_status=$?
14563  grep -v '^ *+' conftest.er1 >conftest.err
14564  rm -f conftest.er1
14565  cat conftest.err >&5
14566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567  (exit $ac_status); } && {
14568	 test -z "$ac_c_werror_flag" ||
14569	 test ! -s conftest.err
14570       } && test -s conftest$ac_exeext && {
14571	 test "$cross_compiling" = yes ||
14572	 $as_test_x conftest$ac_exeext
14573       }; then
14574  ac_cv_func_getaddrinfo=yes
14575else
14576  $as_echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
14579	ac_cv_func_getaddrinfo=no
14580fi
14581
14582rm -rf conftest.dSYM
14583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14584      conftest$ac_exeext conftest.$ac_ext
14585fi
14586{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
14587$as_echo "$ac_cv_func_getaddrinfo" >&6; }
14588if test "x$ac_cv_func_getaddrinfo" = x""yes; then
14589  IPV6CONN=yes
14590else
14591  IPV6CONN=no
14592fi
14593
14594fi
14595
14596 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
14597$as_echo_n "checking if IPv6 support should be built... " >&6; }
14598 if test "$IPV6CONN" = "yes"; then
14599
14600cat >>confdefs.h <<\_ACEOF
14601#define IPv6 1
14602_ACEOF
14603
14604 fi
14605 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5
14606$as_echo "$IPV6CONN" >&6; }
14607
14608 # 4.3BSD-Reno added a new member to struct sockaddr_in
14609 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
14610$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
14611if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
14612  $as_echo_n "(cached) " >&6
14613else
14614  cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h.  */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h.  */
14620
14621#include <sys/types.h>
14622#include <sys/socket.h>
14623#include <netinet/in.h>
14624
14625
14626int
14627main ()
14628{
14629static struct sockaddr_in ac_aggr;
14630if (ac_aggr.sin_len)
14631return 0;
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636rm -f conftest.$ac_objext
14637if { (ac_try="$ac_compile"
14638case "(($ac_try" in
14639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640  *) ac_try_echo=$ac_try;;
14641esac
14642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14643$as_echo "$ac_try_echo") >&5
14644  (eval "$ac_compile") 2>conftest.er1
14645  ac_status=$?
14646  grep -v '^ *+' conftest.er1 >conftest.err
14647  rm -f conftest.er1
14648  cat conftest.err >&5
14649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650  (exit $ac_status); } && {
14651	 test -z "$ac_c_werror_flag" ||
14652	 test ! -s conftest.err
14653       } && test -s conftest.$ac_objext; then
14654  ac_cv_member_struct_sockaddr_in_sin_len=yes
14655else
14656  $as_echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
14659	cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h.  */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h.  */
14665
14666#include <sys/types.h>
14667#include <sys/socket.h>
14668#include <netinet/in.h>
14669
14670
14671int
14672main ()
14673{
14674static struct sockaddr_in ac_aggr;
14675if (sizeof ac_aggr.sin_len)
14676return 0;
14677  ;
14678  return 0;
14679}
14680_ACEOF
14681rm -f conftest.$ac_objext
14682if { (ac_try="$ac_compile"
14683case "(($ac_try" in
14684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685  *) ac_try_echo=$ac_try;;
14686esac
14687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14688$as_echo "$ac_try_echo") >&5
14689  (eval "$ac_compile") 2>conftest.er1
14690  ac_status=$?
14691  grep -v '^ *+' conftest.er1 >conftest.err
14692  rm -f conftest.er1
14693  cat conftest.err >&5
14694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695  (exit $ac_status); } && {
14696	 test -z "$ac_c_werror_flag" ||
14697	 test ! -s conftest.err
14698       } && test -s conftest.$ac_objext; then
14699  ac_cv_member_struct_sockaddr_in_sin_len=yes
14700else
14701  $as_echo "$as_me: failed program was:" >&5
14702sed 's/^/| /' conftest.$ac_ext >&5
14703
14704	ac_cv_member_struct_sockaddr_in_sin_len=no
14705fi
14706
14707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708fi
14709
14710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711fi
14712{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
14713$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
14714if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
14715
14716cat >>confdefs.h <<\_ACEOF
14717#define BSD44SOCKETS 1
14718_ACEOF
14719
14720fi
14721
14722
14723 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
14724 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
14725$as_echo_n "checking for socklen_t... " >&6; }
14726if test "${ac_cv_type_socklen_t+set}" = set; then
14727  $as_echo_n "(cached) " >&6
14728else
14729  ac_cv_type_socklen_t=no
14730cat >conftest.$ac_ext <<_ACEOF
14731/* confdefs.h.  */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h.  */
14736
14737$ac_includes_default
14738#include <sys/socket.h>
14739
14740int
14741main ()
14742{
14743if (sizeof (socklen_t))
14744       return 0;
14745  ;
14746  return 0;
14747}
14748_ACEOF
14749rm -f conftest.$ac_objext
14750if { (ac_try="$ac_compile"
14751case "(($ac_try" in
14752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753  *) ac_try_echo=$ac_try;;
14754esac
14755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756$as_echo "$ac_try_echo") >&5
14757  (eval "$ac_compile") 2>conftest.er1
14758  ac_status=$?
14759  grep -v '^ *+' conftest.er1 >conftest.err
14760  rm -f conftest.er1
14761  cat conftest.err >&5
14762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763  (exit $ac_status); } && {
14764	 test -z "$ac_c_werror_flag" ||
14765	 test ! -s conftest.err
14766       } && test -s conftest.$ac_objext; then
14767  cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h.  */
14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h.  */
14773
14774$ac_includes_default
14775#include <sys/socket.h>
14776
14777int
14778main ()
14779{
14780if (sizeof ((socklen_t)))
14781	  return 0;
14782  ;
14783  return 0;
14784}
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (ac_try="$ac_compile"
14788case "(($ac_try" in
14789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790  *) ac_try_echo=$ac_try;;
14791esac
14792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793$as_echo "$ac_try_echo") >&5
14794  (eval "$ac_compile") 2>conftest.er1
14795  ac_status=$?
14796  grep -v '^ *+' conftest.er1 >conftest.err
14797  rm -f conftest.er1
14798  cat conftest.err >&5
14799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800  (exit $ac_status); } && {
14801	 test -z "$ac_c_werror_flag" ||
14802	 test ! -s conftest.err
14803       } && test -s conftest.$ac_objext; then
14804  :
14805else
14806  $as_echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
14809	ac_cv_type_socklen_t=yes
14810fi
14811
14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813else
14814  $as_echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
14817
14818fi
14819
14820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821fi
14822{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14823$as_echo "$ac_cv_type_socklen_t" >&6; }
14824if test "x$ac_cv_type_socklen_t" = x""yes; then
14825
14826cat >>confdefs.h <<_ACEOF
14827#define HAVE_SOCKLEN_T 1
14828_ACEOF
14829
14830
14831fi
14832
14833
14834
14835 fi
14836 case $host_os in
14837	solaris*|sco*|sysv4*)	localdef="yes" ;;
14838	*)			localdef="no"  ;;
14839 esac
14840 # Check whether --enable-local-transport was given.
14841if test "${enable_local_transport+set}" = set; then
14842  enableval=$enable_local_transport; LOCALCONN=$enableval
14843else
14844  LOCALCONN=$localdef
14845fi
14846
14847 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
14848$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
14849 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5
14850$as_echo "$LOCALCONN" >&6; }
14851 if test "$LOCALCONN" = "yes"; then
14852
14853cat >>confdefs.h <<\_ACEOF
14854#define LOCALCONN 1
14855_ACEOF
14856
14857 fi
14858
14859
14860
14861case $host_os in
14862    linux*)
14863        OS_CFLAGS="-D_XOPEN_SOURCE"
14864        ;;
14865    darwin*)
14866        OS_CFLAGS="-Wl,-flat_namespace"
14867	;;
14868    *)
14869        OS_CFLAGS=
14870        ;;
14871esac
14872
14873
14874ac_config_files="$ac_config_files Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc"
14875
14876cat >confcache <<\_ACEOF
14877# This file is a shell script that caches the results of configure
14878# tests run on this system so they can be shared between configure
14879# scripts and configure runs, see configure's option --config-cache.
14880# It is not useful on other systems.  If it contains results you don't
14881# want to keep, you may remove or edit it.
14882#
14883# config.status only pays attention to the cache file if you give it
14884# the --recheck option to rerun configure.
14885#
14886# `ac_cv_env_foo' variables (set or unset) will be overridden when
14887# loading this file, other *unset* `ac_cv_foo' will be assigned the
14888# following values.
14889
14890_ACEOF
14891
14892# The following way of writing the cache mishandles newlines in values,
14893# but we know of no workaround that is simple, portable, and efficient.
14894# So, we kill variables containing newlines.
14895# Ultrix sh set writes to stderr and can't be redirected directly,
14896# and sets the high bit in the cache file unless we assign to the vars.
14897(
14898  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14899    eval ac_val=\$$ac_var
14900    case $ac_val in #(
14901    *${as_nl}*)
14902      case $ac_var in #(
14903      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14904$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14905      esac
14906      case $ac_var in #(
14907      _ | IFS | as_nl) ;; #(
14908      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14909      *) $as_unset $ac_var ;;
14910      esac ;;
14911    esac
14912  done
14913
14914  (set) 2>&1 |
14915    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14916    *${as_nl}ac_space=\ *)
14917      # `set' does not quote correctly, so add quotes (double-quote
14918      # substitution turns \\\\ into \\, and sed turns \\ into \).
14919      sed -n \
14920	"s/'/'\\\\''/g;
14921	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14922      ;; #(
14923    *)
14924      # `set' quotes correctly as required by POSIX, so do not add quotes.
14925      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14926      ;;
14927    esac |
14928    sort
14929) |
14930  sed '
14931     /^ac_cv_env_/b end
14932     t clear
14933     :clear
14934     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14935     t end
14936     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14937     :end' >>confcache
14938if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14939  if test -w "$cache_file"; then
14940    test "x$cache_file" != "x/dev/null" &&
14941      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14942$as_echo "$as_me: updating cache $cache_file" >&6;}
14943    cat confcache >$cache_file
14944  else
14945    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14946$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14947  fi
14948fi
14949rm -f confcache
14950
14951test "x$prefix" = xNONE && prefix=$ac_default_prefix
14952# Let make expand exec_prefix.
14953test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14954
14955DEFS=-DHAVE_CONFIG_H
14956
14957ac_libobjs=
14958ac_ltlibobjs=
14959for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14960  # 1. Remove the extension, and $U if already installed.
14961  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14962  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14963  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14964  #    will be set to the directory where LIBOBJS objects are built.
14965  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14966  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14967done
14968LIBOBJS=$ac_libobjs
14969
14970LTLIBOBJS=$ac_ltlibobjs
14971
14972
14973if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14974  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14975Usually this means the macro was only invoked conditionally." >&5
14976$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14977Usually this means the macro was only invoked conditionally." >&2;}
14978   { (exit 1); exit 1; }; }
14979fi
14980if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14981  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14982Usually this means the macro was only invoked conditionally." >&5
14983$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14984Usually this means the macro was only invoked conditionally." >&2;}
14985   { (exit 1); exit 1; }; }
14986fi
14987if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14988  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14989Usually this means the macro was only invoked conditionally." >&5
14990$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14991Usually this means the macro was only invoked conditionally." >&2;}
14992   { (exit 1); exit 1; }; }
14993fi
14994if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
14995  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL_DOCS\" was never defined.
14996Usually this means the macro was only invoked conditionally." >&5
14997$as_echo "$as_me: error: conditional \"ENABLE_DEVEL_DOCS\" was never defined.
14998Usually this means the macro was only invoked conditionally." >&2;}
14999   { (exit 1); exit 1; }; }
15000fi
15001if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
15002  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
15003Usually this means the macro was only invoked conditionally." >&5
15004$as_echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
15005Usually this means the macro was only invoked conditionally." >&2;}
15006   { (exit 1); exit 1; }; }
15007fi
15008if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
15009  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_FOP\" was never defined.
15010Usually this means the macro was only invoked conditionally." >&5
15011$as_echo "$as_me: error: conditional \"HAVE_FOP\" was never defined.
15012Usually this means the macro was only invoked conditionally." >&2;}
15013   { (exit 1); exit 1; }; }
15014fi
15015if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15016  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15017Usually this means the macro was only invoked conditionally." >&5
15018$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15019Usually this means the macro was only invoked conditionally." >&2;}
15020   { (exit 1); exit 1; }; }
15021fi
15022if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
15023  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_FREETYPE\" was never defined.
15024Usually this means the macro was only invoked conditionally." >&5
15025$as_echo "$as_me: error: conditional \"XFONT_FREETYPE\" was never defined.
15026Usually this means the macro was only invoked conditionally." >&2;}
15027   { (exit 1); exit 1; }; }
15028fi
15029if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
15030  { { $as_echo "$as_me:$LINENO: error: conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
15031Usually this means the macro was only invoked conditionally." >&5
15032$as_echo "$as_me: error: conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
15033Usually this means the macro was only invoked conditionally." >&2;}
15034   { (exit 1); exit 1; }; }
15035fi
15036if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
15037  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_BUILTINS\" was never defined.
15038Usually this means the macro was only invoked conditionally." >&5
15039$as_echo "$as_me: error: conditional \"XFONT_BUILTINS\" was never defined.
15040Usually this means the macro was only invoked conditionally." >&2;}
15041   { (exit 1); exit 1; }; }
15042fi
15043if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
15044  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_PCFFORMAT\" was never defined.
15045Usually this means the macro was only invoked conditionally." >&5
15046$as_echo "$as_me: error: conditional \"XFONT_PCFFORMAT\" was never defined.
15047Usually this means the macro was only invoked conditionally." >&2;}
15048   { (exit 1); exit 1; }; }
15049fi
15050if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
15051  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_BDFFORMAT\" was never defined.
15052Usually this means the macro was only invoked conditionally." >&5
15053$as_echo "$as_me: error: conditional \"XFONT_BDFFORMAT\" was never defined.
15054Usually this means the macro was only invoked conditionally." >&2;}
15055   { (exit 1); exit 1; }; }
15056fi
15057if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
15058  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_SNFFORMAT\" was never defined.
15059Usually this means the macro was only invoked conditionally." >&5
15060$as_echo "$as_me: error: conditional \"XFONT_SNFFORMAT\" was never defined.
15061Usually this means the macro was only invoked conditionally." >&2;}
15062   { (exit 1); exit 1; }; }
15063fi
15064if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
15065  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_BITMAP\" was never defined.
15066Usually this means the macro was only invoked conditionally." >&5
15067$as_echo "$as_me: error: conditional \"XFONT_BITMAP\" was never defined.
15068Usually this means the macro was only invoked conditionally." >&2;}
15069   { (exit 1); exit 1; }; }
15070fi
15071if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
15072  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_FONTFILE\" was never defined.
15073Usually this means the macro was only invoked conditionally." >&5
15074$as_echo "$as_me: error: conditional \"XFONT_FONTFILE\" was never defined.
15075Usually this means the macro was only invoked conditionally." >&2;}
15076   { (exit 1); exit 1; }; }
15077fi
15078if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
15079  { { $as_echo "$as_me:$LINENO: error: conditional \"XFONT_FC\" was never defined.
15080Usually this means the macro was only invoked conditionally." >&5
15081$as_echo "$as_me: error: conditional \"XFONT_FC\" was never defined.
15082Usually this means the macro was only invoked conditionally." >&2;}
15083   { (exit 1); exit 1; }; }
15084fi
15085
15086: ${CONFIG_STATUS=./config.status}
15087ac_write_fail=0
15088ac_clean_files_save=$ac_clean_files
15089ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15090{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15091$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15092cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093#! $SHELL
15094# Generated by $as_me.
15095# Run this file to recreate the current configuration.
15096# Compiler output produced by configure, useful for debugging
15097# configure, is in config.log if it exists.
15098
15099debug=false
15100ac_cs_recheck=false
15101ac_cs_silent=false
15102SHELL=\${CONFIG_SHELL-$SHELL}
15103_ACEOF
15104
15105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15106## --------------------- ##
15107## M4sh Initialization.  ##
15108## --------------------- ##
15109
15110# Be more Bourne compatible
15111DUALCASE=1; export DUALCASE # for MKS sh
15112if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15113  emulate sh
15114  NULLCMD=:
15115  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15116  # is contrary to our usage.  Disable this feature.
15117  alias -g '${1+"$@"}'='"$@"'
15118  setopt NO_GLOB_SUBST
15119else
15120  case `(set -o) 2>/dev/null` in
15121  *posix*) set -o posix ;;
15122esac
15123
15124fi
15125
15126
15127
15128
15129# PATH needs CR
15130# Avoid depending upon Character Ranges.
15131as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15132as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15133as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15134as_cr_digits='0123456789'
15135as_cr_alnum=$as_cr_Letters$as_cr_digits
15136
15137as_nl='
15138'
15139export as_nl
15140# Printing a long string crashes Solaris 7 /usr/bin/printf.
15141as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15142as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15143as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15144if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15145  as_echo='printf %s\n'
15146  as_echo_n='printf %s'
15147else
15148  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15149    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15150    as_echo_n='/usr/ucb/echo -n'
15151  else
15152    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15153    as_echo_n_body='eval
15154      arg=$1;
15155      case $arg in
15156      *"$as_nl"*)
15157	expr "X$arg" : "X\\(.*\\)$as_nl";
15158	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15159      esac;
15160      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15161    '
15162    export as_echo_n_body
15163    as_echo_n='sh -c $as_echo_n_body as_echo'
15164  fi
15165  export as_echo_body
15166  as_echo='sh -c $as_echo_body as_echo'
15167fi
15168
15169# The user is always right.
15170if test "${PATH_SEPARATOR+set}" != set; then
15171  PATH_SEPARATOR=:
15172  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15173    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15174      PATH_SEPARATOR=';'
15175  }
15176fi
15177
15178# Support unset when possible.
15179if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15180  as_unset=unset
15181else
15182  as_unset=false
15183fi
15184
15185
15186# IFS
15187# We need space, tab and new line, in precisely that order.  Quoting is
15188# there to prevent editors from complaining about space-tab.
15189# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15190# splitting by setting IFS to empty value.)
15191IFS=" ""	$as_nl"
15192
15193# Find who we are.  Look in the path if we contain no directory separator.
15194case $0 in
15195  *[\\/]* ) as_myself=$0 ;;
15196  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15197for as_dir in $PATH
15198do
15199  IFS=$as_save_IFS
15200  test -z "$as_dir" && as_dir=.
15201  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15202done
15203IFS=$as_save_IFS
15204
15205     ;;
15206esac
15207# We did not find ourselves, most probably we were run as `sh COMMAND'
15208# in which case we are not to be found in the path.
15209if test "x$as_myself" = x; then
15210  as_myself=$0
15211fi
15212if test ! -f "$as_myself"; then
15213  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15214  { (exit 1); exit 1; }
15215fi
15216
15217# Work around bugs in pre-3.0 UWIN ksh.
15218for as_var in ENV MAIL MAILPATH
15219do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15220done
15221PS1='$ '
15222PS2='> '
15223PS4='+ '
15224
15225# NLS nuisances.
15226LC_ALL=C
15227export LC_ALL
15228LANGUAGE=C
15229export LANGUAGE
15230
15231# Required to use basename.
15232if expr a : '\(a\)' >/dev/null 2>&1 &&
15233   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15234  as_expr=expr
15235else
15236  as_expr=false
15237fi
15238
15239if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15240  as_basename=basename
15241else
15242  as_basename=false
15243fi
15244
15245
15246# Name of the executable.
15247as_me=`$as_basename -- "$0" ||
15248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15249	 X"$0" : 'X\(//\)$' \| \
15250	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15251$as_echo X/"$0" |
15252    sed '/^.*\/\([^/][^/]*\)\/*$/{
15253	    s//\1/
15254	    q
15255	  }
15256	  /^X\/\(\/\/\)$/{
15257	    s//\1/
15258	    q
15259	  }
15260	  /^X\/\(\/\).*/{
15261	    s//\1/
15262	    q
15263	  }
15264	  s/.*/./; q'`
15265
15266# CDPATH.
15267$as_unset CDPATH
15268
15269
15270
15271  as_lineno_1=$LINENO
15272  as_lineno_2=$LINENO
15273  test "x$as_lineno_1" != "x$as_lineno_2" &&
15274  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15275
15276  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15277  # uniformly replaced by the line number.  The first 'sed' inserts a
15278  # line-number line after each line using $LINENO; the second 'sed'
15279  # does the real work.  The second script uses 'N' to pair each
15280  # line-number line with the line containing $LINENO, and appends
15281  # trailing '-' during substitution so that $LINENO is not a special
15282  # case at line end.
15283  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15284  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15285  # E. McMahon (1931-1989) for sed's syntax.  :-)
15286  sed -n '
15287    p
15288    /[$]LINENO/=
15289  ' <$as_myself |
15290    sed '
15291      s/[$]LINENO.*/&-/
15292      t lineno
15293      b
15294      :lineno
15295      N
15296      :loop
15297      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15298      t loop
15299      s/-\n.*//
15300    ' >$as_me.lineno &&
15301  chmod +x "$as_me.lineno" ||
15302    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15303   { (exit 1); exit 1; }; }
15304
15305  # Don't try to exec as it changes $[0], causing all sort of problems
15306  # (the dirname of $[0] is not the place where we might find the
15307  # original and so on.  Autoconf is especially sensitive to this).
15308  . "./$as_me.lineno"
15309  # Exit status is that of the last command.
15310  exit
15311}
15312
15313
15314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15315  as_dirname=dirname
15316else
15317  as_dirname=false
15318fi
15319
15320ECHO_C= ECHO_N= ECHO_T=
15321case `echo -n x` in
15322-n*)
15323  case `echo 'x\c'` in
15324  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15325  *)   ECHO_C='\c';;
15326  esac;;
15327*)
15328  ECHO_N='-n';;
15329esac
15330if expr a : '\(a\)' >/dev/null 2>&1 &&
15331   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15332  as_expr=expr
15333else
15334  as_expr=false
15335fi
15336
15337rm -f conf$$ conf$$.exe conf$$.file
15338if test -d conf$$.dir; then
15339  rm -f conf$$.dir/conf$$.file
15340else
15341  rm -f conf$$.dir
15342  mkdir conf$$.dir 2>/dev/null
15343fi
15344if (echo >conf$$.file) 2>/dev/null; then
15345  if ln -s conf$$.file conf$$ 2>/dev/null; then
15346    as_ln_s='ln -s'
15347    # ... but there are two gotchas:
15348    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15349    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15350    # In both cases, we have to default to `cp -p'.
15351    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15352      as_ln_s='cp -p'
15353  elif ln conf$$.file conf$$ 2>/dev/null; then
15354    as_ln_s=ln
15355  else
15356    as_ln_s='cp -p'
15357  fi
15358else
15359  as_ln_s='cp -p'
15360fi
15361rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15362rmdir conf$$.dir 2>/dev/null
15363
15364if mkdir -p . 2>/dev/null; then
15365  as_mkdir_p=:
15366else
15367  test -d ./-p && rmdir ./-p
15368  as_mkdir_p=false
15369fi
15370
15371if test -x / >/dev/null 2>&1; then
15372  as_test_x='test -x'
15373else
15374  if ls -dL / >/dev/null 2>&1; then
15375    as_ls_L_option=L
15376  else
15377    as_ls_L_option=
15378  fi
15379  as_test_x='
15380    eval sh -c '\''
15381      if test -d "$1"; then
15382	test -d "$1/.";
15383      else
15384	case $1 in
15385	-*)set "./$1";;
15386	esac;
15387	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15388	???[sx]*):;;*)false;;esac;fi
15389    '\'' sh
15390  '
15391fi
15392as_executable_p=$as_test_x
15393
15394# Sed expression to map a string onto a valid CPP name.
15395as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15396
15397# Sed expression to map a string onto a valid variable name.
15398as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15399
15400
15401exec 6>&1
15402
15403# Save the log message, to keep $[0] and so on meaningful, and to
15404# report actual input values of CONFIG_FILES etc. instead of their
15405# values after options handling.
15406ac_log="
15407This file was extended by libXfont $as_me 1.4.2, which was
15408generated by GNU Autoconf 2.63.  Invocation command line was
15409
15410  CONFIG_FILES    = $CONFIG_FILES
15411  CONFIG_HEADERS  = $CONFIG_HEADERS
15412  CONFIG_LINKS    = $CONFIG_LINKS
15413  CONFIG_COMMANDS = $CONFIG_COMMANDS
15414  $ $0 $@
15415
15416on `(hostname || uname -n) 2>/dev/null | sed 1q`
15417"
15418
15419_ACEOF
15420
15421case $ac_config_files in *"
15422"*) set x $ac_config_files; shift; ac_config_files=$*;;
15423esac
15424
15425case $ac_config_headers in *"
15426"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15427esac
15428
15429
15430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431# Files that config.status was made for.
15432config_files="$ac_config_files"
15433config_headers="$ac_config_headers"
15434config_commands="$ac_config_commands"
15435
15436_ACEOF
15437
15438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15439ac_cs_usage="\
15440\`$as_me' instantiates files from templates according to the
15441current configuration.
15442
15443Usage: $0 [OPTION]... [FILE]...
15444
15445  -h, --help       print this help, then exit
15446  -V, --version    print version number and configuration settings, then exit
15447  -q, --quiet, --silent
15448                   do not print progress messages
15449  -d, --debug      don't remove temporary files
15450      --recheck    update $as_me by reconfiguring in the same conditions
15451      --file=FILE[:TEMPLATE]
15452                   instantiate the configuration file FILE
15453      --header=FILE[:TEMPLATE]
15454                   instantiate the configuration header FILE
15455
15456Configuration files:
15457$config_files
15458
15459Configuration headers:
15460$config_headers
15461
15462Configuration commands:
15463$config_commands
15464
15465Report bugs to <bug-autoconf@gnu.org>."
15466
15467_ACEOF
15468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15469ac_cs_version="\\
15470libXfont config.status 1.4.2
15471configured by $0, generated by GNU Autoconf 2.63,
15472  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15473
15474Copyright (C) 2008 Free Software Foundation, Inc.
15475This config.status script is free software; the Free Software Foundation
15476gives unlimited permission to copy, distribute and modify it."
15477
15478ac_pwd='$ac_pwd'
15479srcdir='$srcdir'
15480INSTALL='$INSTALL'
15481MKDIR_P='$MKDIR_P'
15482AWK='$AWK'
15483test -n "\$AWK" || AWK=awk
15484_ACEOF
15485
15486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15487# The default lists apply if the user does not specify any file.
15488ac_need_defaults=:
15489while test $# != 0
15490do
15491  case $1 in
15492  --*=*)
15493    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15494    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15495    ac_shift=:
15496    ;;
15497  *)
15498    ac_option=$1
15499    ac_optarg=$2
15500    ac_shift=shift
15501    ;;
15502  esac
15503
15504  case $ac_option in
15505  # Handling of the options.
15506  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15507    ac_cs_recheck=: ;;
15508  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15509    $as_echo "$ac_cs_version"; exit ;;
15510  --debug | --debu | --deb | --de | --d | -d )
15511    debug=: ;;
15512  --file | --fil | --fi | --f )
15513    $ac_shift
15514    case $ac_optarg in
15515    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15516    esac
15517    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15518    ac_need_defaults=false;;
15519  --header | --heade | --head | --hea )
15520    $ac_shift
15521    case $ac_optarg in
15522    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15523    esac
15524    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15525    ac_need_defaults=false;;
15526  --he | --h)
15527    # Conflict between --help and --header
15528    { $as_echo "$as_me: error: ambiguous option: $1
15529Try \`$0 --help' for more information." >&2
15530   { (exit 1); exit 1; }; };;
15531  --help | --hel | -h )
15532    $as_echo "$ac_cs_usage"; exit ;;
15533  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15534  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15535    ac_cs_silent=: ;;
15536
15537  # This is an error.
15538  -*) { $as_echo "$as_me: error: unrecognized option: $1
15539Try \`$0 --help' for more information." >&2
15540   { (exit 1); exit 1; }; } ;;
15541
15542  *) ac_config_targets="$ac_config_targets $1"
15543     ac_need_defaults=false ;;
15544
15545  esac
15546  shift
15547done
15548
15549ac_configure_extra_args=
15550
15551if $ac_cs_silent; then
15552  exec 6>/dev/null
15553  ac_configure_extra_args="$ac_configure_extra_args --silent"
15554fi
15555
15556_ACEOF
15557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15558if \$ac_cs_recheck; then
15559  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15560  shift
15561  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15562  CONFIG_SHELL='$SHELL'
15563  export CONFIG_SHELL
15564  exec "\$@"
15565fi
15566
15567_ACEOF
15568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15569exec 5>>config.log
15570{
15571  echo
15572  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15573## Running $as_me. ##
15574_ASBOX
15575  $as_echo "$ac_log"
15576} >&5
15577
15578_ACEOF
15579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580#
15581# INIT-COMMANDS
15582#
15583AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15584
15585
15586# The HP-UX ksh and POSIX shell print the target directory to stdout
15587# if CDPATH is set.
15588(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15589
15590sed_quote_subst='$sed_quote_subst'
15591double_quote_subst='$double_quote_subst'
15592delay_variable_subst='$delay_variable_subst'
15593macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15594macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15595enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15596enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15597pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15598enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15599host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15600host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15601host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15602build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15603build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15604build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15605SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15606Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15607GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15608EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15609FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15610LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15611NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15612LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15613max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15614ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15615exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15616lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15617lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15618lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15619reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15620reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15621OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15622deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15623file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15624AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15625AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15626STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15627RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15628old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15629old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15630old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15631CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15632CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15633compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15634GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15635lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15636lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15637lt_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"`'
15638lt_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"`'
15639objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15640SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15641ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15642MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15643lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15644lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15645lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15646lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15647lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15648need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15649DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15650NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15651LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15652OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15653OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15654libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15655shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15656extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15657archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15658enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15659export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15660whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15661compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15662old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15663old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15664archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15665archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15666module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15667module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15668with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15669allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15670no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15671hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15672hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15673hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15674hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15675hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15676hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15677hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15678hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15679inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15680link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15681fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15682always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15683export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15684exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15685include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15686prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15687file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15688variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15689need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15690need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15691version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15692runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15693shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15694shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15695libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15696library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15697soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15698postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15699postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15700finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15701finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15702hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15703sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15704sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15705hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15706enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15707enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15708enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15709old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15710striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15711
15712LTCC='$LTCC'
15713LTCFLAGS='$LTCFLAGS'
15714compiler='$compiler_DEFAULT'
15715
15716# Quote evaled strings.
15717for var in SED \
15718GREP \
15719EGREP \
15720FGREP \
15721LD \
15722NM \
15723LN_S \
15724lt_SP2NL \
15725lt_NL2SP \
15726reload_flag \
15727OBJDUMP \
15728deplibs_check_method \
15729file_magic_cmd \
15730AR \
15731AR_FLAGS \
15732STRIP \
15733RANLIB \
15734CC \
15735CFLAGS \
15736compiler \
15737lt_cv_sys_global_symbol_pipe \
15738lt_cv_sys_global_symbol_to_cdecl \
15739lt_cv_sys_global_symbol_to_c_name_address \
15740lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15741SHELL \
15742ECHO \
15743lt_prog_compiler_no_builtin_flag \
15744lt_prog_compiler_wl \
15745lt_prog_compiler_pic \
15746lt_prog_compiler_static \
15747lt_cv_prog_compiler_c_o \
15748need_locks \
15749DSYMUTIL \
15750NMEDIT \
15751LIPO \
15752OTOOL \
15753OTOOL64 \
15754shrext_cmds \
15755export_dynamic_flag_spec \
15756whole_archive_flag_spec \
15757compiler_needs_object \
15758with_gnu_ld \
15759allow_undefined_flag \
15760no_undefined_flag \
15761hardcode_libdir_flag_spec \
15762hardcode_libdir_flag_spec_ld \
15763hardcode_libdir_separator \
15764fix_srcfile_path \
15765exclude_expsyms \
15766include_expsyms \
15767file_list_spec \
15768variables_saved_for_relink \
15769libname_spec \
15770library_names_spec \
15771soname_spec \
15772finish_eval \
15773old_striplib \
15774striplib; do
15775    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15776    *[\\\\\\\`\\"\\\$]*)
15777      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15778      ;;
15779    *)
15780      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15781      ;;
15782    esac
15783done
15784
15785# Double-quote double-evaled strings.
15786for var in reload_cmds \
15787old_postinstall_cmds \
15788old_postuninstall_cmds \
15789old_archive_cmds \
15790extract_expsyms_cmds \
15791old_archive_from_new_cmds \
15792old_archive_from_expsyms_cmds \
15793archive_cmds \
15794archive_expsym_cmds \
15795module_cmds \
15796module_expsym_cmds \
15797export_symbols_cmds \
15798prelink_cmds \
15799postinstall_cmds \
15800postuninstall_cmds \
15801finish_cmds \
15802sys_lib_search_path_spec \
15803sys_lib_dlsearch_path_spec; do
15804    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15805    *[\\\\\\\`\\"\\\$]*)
15806      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15807      ;;
15808    *)
15809      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15810      ;;
15811    esac
15812done
15813
15814# Fix-up fallback echo if it was mangled by the above quoting rules.
15815case \$lt_ECHO in
15816*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15817  ;;
15818esac
15819
15820ac_aux_dir='$ac_aux_dir'
15821xsi_shell='$xsi_shell'
15822lt_shell_append='$lt_shell_append'
15823
15824# See if we are running on zsh, and set the options which allow our
15825# commands through without removal of \ escapes INIT.
15826if test -n "\${ZSH_VERSION+set}" ; then
15827   setopt NO_GLOB_SUBST
15828fi
15829
15830
15831    PACKAGE='$PACKAGE'
15832    VERSION='$VERSION'
15833    TIMESTAMP='$TIMESTAMP'
15834    RM='$RM'
15835    ofile='$ofile'
15836
15837
15838
15839
15840_ACEOF
15841
15842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843
15844# Handling of arguments.
15845for ac_config_target in $ac_config_targets
15846do
15847  case $ac_config_target in
15848    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15849    "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
15850    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15851    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15852    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15853    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15854    "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
15855    "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
15856    "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
15857    "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
15858    "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
15859    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
15860    "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
15861    "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
15862
15863  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15864$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15865   { (exit 1); exit 1; }; };;
15866  esac
15867done
15868
15869
15870# If the user did not use the arguments to specify the items to instantiate,
15871# then the envvar interface is used.  Set only those that are not.
15872# We use the long form for the default assignment because of an extremely
15873# bizarre bug on SunOS 4.1.3.
15874if $ac_need_defaults; then
15875  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15876  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15877  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15878fi
15879
15880# Have a temporary directory for convenience.  Make it in the build tree
15881# simply because there is no reason against having it here, and in addition,
15882# creating and moving files from /tmp can sometimes cause problems.
15883# Hook for its removal unless debugging.
15884# Note that there is a small window in which the directory will not be cleaned:
15885# after its creation but before its name has been assigned to `$tmp'.
15886$debug ||
15887{
15888  tmp=
15889  trap 'exit_status=$?
15890  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15891' 0
15892  trap '{ (exit 1); exit 1; }' 1 2 13 15
15893}
15894# Create a (secure) tmp directory for tmp files.
15895
15896{
15897  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15898  test -n "$tmp" && test -d "$tmp"
15899}  ||
15900{
15901  tmp=./conf$$-$RANDOM
15902  (umask 077 && mkdir "$tmp")
15903} ||
15904{
15905   $as_echo "$as_me: cannot create a temporary directory in ." >&2
15906   { (exit 1); exit 1; }
15907}
15908
15909# Set up the scripts for CONFIG_FILES section.
15910# No need to generate them if there are no CONFIG_FILES.
15911# This happens for instance with `./config.status config.h'.
15912if test -n "$CONFIG_FILES"; then
15913
15914
15915ac_cr='
15916'
15917ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15918if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15919  ac_cs_awk_cr='\\r'
15920else
15921  ac_cs_awk_cr=$ac_cr
15922fi
15923
15924echo 'BEGIN {' >"$tmp/subs1.awk" &&
15925_ACEOF
15926
15927
15928{
15929  echo "cat >conf$$subs.awk <<_ACEOF" &&
15930  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15931  echo "_ACEOF"
15932} >conf$$subs.sh ||
15933  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15934$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15935   { (exit 1); exit 1; }; }
15936ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15937ac_delim='%!_!# '
15938for ac_last_try in false false false false false :; do
15939  . ./conf$$subs.sh ||
15940    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15941$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15942   { (exit 1); exit 1; }; }
15943
15944  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15945  if test $ac_delim_n = $ac_delim_num; then
15946    break
15947  elif $ac_last_try; then
15948    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15949$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15950   { (exit 1); exit 1; }; }
15951  else
15952    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15953  fi
15954done
15955rm -f conf$$subs.sh
15956
15957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15959_ACEOF
15960sed -n '
15961h
15962s/^/S["/; s/!.*/"]=/
15963p
15964g
15965s/^[^!]*!//
15966:repl
15967t repl
15968s/'"$ac_delim"'$//
15969t delim
15970:nl
15971h
15972s/\(.\{148\}\).*/\1/
15973t more1
15974s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15975p
15976n
15977b repl
15978:more1
15979s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15980p
15981g
15982s/.\{148\}//
15983t nl
15984:delim
15985h
15986s/\(.\{148\}\).*/\1/
15987t more2
15988s/["\\]/\\&/g; s/^/"/; s/$/"/
15989p
15990b
15991:more2
15992s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15993p
15994g
15995s/.\{148\}//
15996t delim
15997' <conf$$subs.awk | sed '
15998/^[^""]/{
15999  N
16000  s/\n//
16001}
16002' >>$CONFIG_STATUS || ac_write_fail=1
16003rm -f conf$$subs.awk
16004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16005_ACAWK
16006cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16007  for (key in S) S_is_set[key] = 1
16008  FS = ""
16009
16010}
16011{
16012  line = $ 0
16013  nfields = split(line, field, "@")
16014  substed = 0
16015  len = length(field[1])
16016  for (i = 2; i < nfields; i++) {
16017    key = field[i]
16018    keylen = length(key)
16019    if (S_is_set[key]) {
16020      value = S[key]
16021      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16022      len += length(value) + length(field[++i])
16023      substed = 1
16024    } else
16025      len += 1 + keylen
16026  }
16027
16028  print line
16029}
16030
16031_ACAWK
16032_ACEOF
16033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16034if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16035  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16036else
16037  cat
16038fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16039  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16040$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16041   { (exit 1); exit 1; }; }
16042_ACEOF
16043
16044# VPATH may cause trouble with some makes, so we remove $(srcdir),
16045# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16046# trailing colons and then remove the whole line if VPATH becomes empty
16047# (actually we leave an empty line to preserve line numbers).
16048if test "x$srcdir" = x.; then
16049  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16050s/:*\$(srcdir):*/:/
16051s/:*\${srcdir}:*/:/
16052s/:*@srcdir@:*/:/
16053s/^\([^=]*=[	 ]*\):*/\1/
16054s/:*$//
16055s/^[^=]*=[	 ]*$//
16056}'
16057fi
16058
16059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060fi # test -n "$CONFIG_FILES"
16061
16062# Set up the scripts for CONFIG_HEADERS section.
16063# No need to generate them if there are no CONFIG_HEADERS.
16064# This happens for instance with `./config.status Makefile'.
16065if test -n "$CONFIG_HEADERS"; then
16066cat >"$tmp/defines.awk" <<\_ACAWK ||
16067BEGIN {
16068_ACEOF
16069
16070# Transform confdefs.h into an awk script `defines.awk', embedded as
16071# here-document in config.status, that substitutes the proper values into
16072# config.h.in to produce config.h.
16073
16074# Create a delimiter string that does not exist in confdefs.h, to ease
16075# handling of long lines.
16076ac_delim='%!_!# '
16077for ac_last_try in false false :; do
16078  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16079  if test -z "$ac_t"; then
16080    break
16081  elif $ac_last_try; then
16082    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16083$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16084   { (exit 1); exit 1; }; }
16085  else
16086    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16087  fi
16088done
16089
16090# For the awk script, D is an array of macro values keyed by name,
16091# likewise P contains macro parameters if any.  Preserve backslash
16092# newline sequences.
16093
16094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16095sed -n '
16096s/.\{148\}/&'"$ac_delim"'/g
16097t rset
16098:rset
16099s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16100t def
16101d
16102:def
16103s/\\$//
16104t bsnl
16105s/["\\]/\\&/g
16106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16107D["\1"]=" \3"/p
16108s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16109d
16110:bsnl
16111s/["\\]/\\&/g
16112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16113D["\1"]=" \3\\\\\\n"\\/p
16114t cont
16115s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16116t cont
16117d
16118:cont
16119n
16120s/.\{148\}/&'"$ac_delim"'/g
16121t clear
16122:clear
16123s/\\$//
16124t bsnlc
16125s/["\\]/\\&/g; s/^/"/; s/$/"/p
16126d
16127:bsnlc
16128s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16129b cont
16130' <confdefs.h | sed '
16131s/'"$ac_delim"'/"\\\
16132"/g' >>$CONFIG_STATUS || ac_write_fail=1
16133
16134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135  for (key in D) D_is_set[key] = 1
16136  FS = ""
16137}
16138/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16139  line = \$ 0
16140  split(line, arg, " ")
16141  if (arg[1] == "#") {
16142    defundef = arg[2]
16143    mac1 = arg[3]
16144  } else {
16145    defundef = substr(arg[1], 2)
16146    mac1 = arg[2]
16147  }
16148  split(mac1, mac2, "(") #)
16149  macro = mac2[1]
16150  prefix = substr(line, 1, index(line, defundef) - 1)
16151  if (D_is_set[macro]) {
16152    # Preserve the white space surrounding the "#".
16153    print prefix "define", macro P[macro] D[macro]
16154    next
16155  } else {
16156    # Replace #undef with comments.  This is necessary, for example,
16157    # in the case of _POSIX_SOURCE, which is predefined and required
16158    # on some systems where configure will not decide to define it.
16159    if (defundef == "undef") {
16160      print "/*", prefix defundef, macro, "*/"
16161      next
16162    }
16163  }
16164}
16165{ print }
16166_ACAWK
16167_ACEOF
16168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16169  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16170$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16171   { (exit 1); exit 1; }; }
16172fi # test -n "$CONFIG_HEADERS"
16173
16174
16175eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16176shift
16177for ac_tag
16178do
16179  case $ac_tag in
16180  :[FHLC]) ac_mode=$ac_tag; continue;;
16181  esac
16182  case $ac_mode$ac_tag in
16183  :[FHL]*:*);;
16184  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16185$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16186   { (exit 1); exit 1; }; };;
16187  :[FH]-) ac_tag=-:-;;
16188  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16189  esac
16190  ac_save_IFS=$IFS
16191  IFS=:
16192  set x $ac_tag
16193  IFS=$ac_save_IFS
16194  shift
16195  ac_file=$1
16196  shift
16197
16198  case $ac_mode in
16199  :L) ac_source=$1;;
16200  :[FH])
16201    ac_file_inputs=
16202    for ac_f
16203    do
16204      case $ac_f in
16205      -) ac_f="$tmp/stdin";;
16206      *) # Look for the file first in the build tree, then in the source tree
16207	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16208	 # because $ac_f cannot contain `:'.
16209	 test -f "$ac_f" ||
16210	   case $ac_f in
16211	   [\\/$]*) false;;
16212	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16213	   esac ||
16214	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16215$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16216   { (exit 1); exit 1; }; };;
16217      esac
16218      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16219      ac_file_inputs="$ac_file_inputs '$ac_f'"
16220    done
16221
16222    # Let's still pretend it is `configure' which instantiates (i.e., don't
16223    # use $as_me), people would be surprised to read:
16224    #    /* config.h.  Generated by config.status.  */
16225    configure_input='Generated from '`
16226	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16227	`' by configure.'
16228    if test x"$ac_file" != x-; then
16229      configure_input="$ac_file.  $configure_input"
16230      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16231$as_echo "$as_me: creating $ac_file" >&6;}
16232    fi
16233    # Neutralize special characters interpreted by sed in replacement strings.
16234    case $configure_input in #(
16235    *\&* | *\|* | *\\* )
16236       ac_sed_conf_input=`$as_echo "$configure_input" |
16237       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16238    *) ac_sed_conf_input=$configure_input;;
16239    esac
16240
16241    case $ac_tag in
16242    *:-:* | *:-) cat >"$tmp/stdin" \
16243      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16244$as_echo "$as_me: error: could not create $ac_file" >&2;}
16245   { (exit 1); exit 1; }; } ;;
16246    esac
16247    ;;
16248  esac
16249
16250  ac_dir=`$as_dirname -- "$ac_file" ||
16251$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16252	 X"$ac_file" : 'X\(//\)[^/]' \| \
16253	 X"$ac_file" : 'X\(//\)$' \| \
16254	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16255$as_echo X"$ac_file" |
16256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16257	    s//\1/
16258	    q
16259	  }
16260	  /^X\(\/\/\)[^/].*/{
16261	    s//\1/
16262	    q
16263	  }
16264	  /^X\(\/\/\)$/{
16265	    s//\1/
16266	    q
16267	  }
16268	  /^X\(\/\).*/{
16269	    s//\1/
16270	    q
16271	  }
16272	  s/.*/./; q'`
16273  { as_dir="$ac_dir"
16274  case $as_dir in #(
16275  -*) as_dir=./$as_dir;;
16276  esac
16277  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16278    as_dirs=
16279    while :; do
16280      case $as_dir in #(
16281      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16282      *) as_qdir=$as_dir;;
16283      esac
16284      as_dirs="'$as_qdir' $as_dirs"
16285      as_dir=`$as_dirname -- "$as_dir" ||
16286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16287	 X"$as_dir" : 'X\(//\)[^/]' \| \
16288	 X"$as_dir" : 'X\(//\)$' \| \
16289	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16290$as_echo X"$as_dir" |
16291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16292	    s//\1/
16293	    q
16294	  }
16295	  /^X\(\/\/\)[^/].*/{
16296	    s//\1/
16297	    q
16298	  }
16299	  /^X\(\/\/\)$/{
16300	    s//\1/
16301	    q
16302	  }
16303	  /^X\(\/\).*/{
16304	    s//\1/
16305	    q
16306	  }
16307	  s/.*/./; q'`
16308      test -d "$as_dir" && break
16309    done
16310    test -z "$as_dirs" || eval "mkdir $as_dirs"
16311  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16312$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16313   { (exit 1); exit 1; }; }; }
16314  ac_builddir=.
16315
16316case "$ac_dir" in
16317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16318*)
16319  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16320  # A ".." for each directory in $ac_dir_suffix.
16321  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16322  case $ac_top_builddir_sub in
16323  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16324  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16325  esac ;;
16326esac
16327ac_abs_top_builddir=$ac_pwd
16328ac_abs_builddir=$ac_pwd$ac_dir_suffix
16329# for backward compatibility:
16330ac_top_builddir=$ac_top_build_prefix
16331
16332case $srcdir in
16333  .)  # We are building in place.
16334    ac_srcdir=.
16335    ac_top_srcdir=$ac_top_builddir_sub
16336    ac_abs_top_srcdir=$ac_pwd ;;
16337  [\\/]* | ?:[\\/]* )  # Absolute name.
16338    ac_srcdir=$srcdir$ac_dir_suffix;
16339    ac_top_srcdir=$srcdir
16340    ac_abs_top_srcdir=$srcdir ;;
16341  *) # Relative name.
16342    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16343    ac_top_srcdir=$ac_top_build_prefix$srcdir
16344    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16345esac
16346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16347
16348
16349  case $ac_mode in
16350  :F)
16351  #
16352  # CONFIG_FILE
16353  #
16354
16355  case $INSTALL in
16356  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16357  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16358  esac
16359  ac_MKDIR_P=$MKDIR_P
16360  case $MKDIR_P in
16361  [\\/$]* | ?:[\\/]* ) ;;
16362  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16363  esac
16364_ACEOF
16365
16366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16367# If the template does not know about datarootdir, expand it.
16368# FIXME: This hack should be removed a few years after 2.60.
16369ac_datarootdir_hack=; ac_datarootdir_seen=
16370
16371ac_sed_dataroot='
16372/datarootdir/ {
16373  p
16374  q
16375}
16376/@datadir@/p
16377/@docdir@/p
16378/@infodir@/p
16379/@localedir@/p
16380/@mandir@/p
16381'
16382case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16383*datarootdir*) ac_datarootdir_seen=yes;;
16384*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16385  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16386$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16387_ACEOF
16388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389  ac_datarootdir_hack='
16390  s&@datadir@&$datadir&g
16391  s&@docdir@&$docdir&g
16392  s&@infodir@&$infodir&g
16393  s&@localedir@&$localedir&g
16394  s&@mandir@&$mandir&g
16395    s&\\\${datarootdir}&$datarootdir&g' ;;
16396esac
16397_ACEOF
16398
16399# Neutralize VPATH when `$srcdir' = `.'.
16400# Shell code in configure.ac might set extrasub.
16401# FIXME: do we really want to maintain this feature?
16402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16403ac_sed_extra="$ac_vpsub
16404$extrasub
16405_ACEOF
16406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16407:t
16408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16409s|@configure_input@|$ac_sed_conf_input|;t t
16410s&@top_builddir@&$ac_top_builddir_sub&;t t
16411s&@top_build_prefix@&$ac_top_build_prefix&;t t
16412s&@srcdir@&$ac_srcdir&;t t
16413s&@abs_srcdir@&$ac_abs_srcdir&;t t
16414s&@top_srcdir@&$ac_top_srcdir&;t t
16415s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16416s&@builddir@&$ac_builddir&;t t
16417s&@abs_builddir@&$ac_abs_builddir&;t t
16418s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16419s&@INSTALL@&$ac_INSTALL&;t t
16420s&@MKDIR_P@&$ac_MKDIR_P&;t t
16421$ac_datarootdir_hack
16422"
16423eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16424  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16425$as_echo "$as_me: error: could not create $ac_file" >&2;}
16426   { (exit 1); exit 1; }; }
16427
16428test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16429  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16430  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16431  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16432which seems to be undefined.  Please make sure it is defined." >&5
16433$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16434which seems to be undefined.  Please make sure it is defined." >&2;}
16435
16436  rm -f "$tmp/stdin"
16437  case $ac_file in
16438  -) cat "$tmp/out" && rm -f "$tmp/out";;
16439  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16440  esac \
16441  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16442$as_echo "$as_me: error: could not create $ac_file" >&2;}
16443   { (exit 1); exit 1; }; }
16444 ;;
16445  :H)
16446  #
16447  # CONFIG_HEADER
16448  #
16449  if test x"$ac_file" != x-; then
16450    {
16451      $as_echo "/* $configure_input  */" \
16452      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16453    } >"$tmp/config.h" \
16454      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16455$as_echo "$as_me: error: could not create $ac_file" >&2;}
16456   { (exit 1); exit 1; }; }
16457    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16458      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16459$as_echo "$as_me: $ac_file is unchanged" >&6;}
16460    else
16461      rm -f "$ac_file"
16462      mv "$tmp/config.h" "$ac_file" \
16463	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16464$as_echo "$as_me: error: could not create $ac_file" >&2;}
16465   { (exit 1); exit 1; }; }
16466    fi
16467  else
16468    $as_echo "/* $configure_input  */" \
16469      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16470      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16471$as_echo "$as_me: error: could not create -" >&2;}
16472   { (exit 1); exit 1; }; }
16473  fi
16474# Compute "$ac_file"'s index in $config_headers.
16475_am_arg="$ac_file"
16476_am_stamp_count=1
16477for _am_header in $config_headers :; do
16478  case $_am_header in
16479    $_am_arg | $_am_arg:* )
16480      break ;;
16481    * )
16482      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16483  esac
16484done
16485echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16486$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16488	 X"$_am_arg" : 'X\(//\)$' \| \
16489	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16490$as_echo X"$_am_arg" |
16491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16492	    s//\1/
16493	    q
16494	  }
16495	  /^X\(\/\/\)[^/].*/{
16496	    s//\1/
16497	    q
16498	  }
16499	  /^X\(\/\/\)$/{
16500	    s//\1/
16501	    q
16502	  }
16503	  /^X\(\/\).*/{
16504	    s//\1/
16505	    q
16506	  }
16507	  s/.*/./; q'`/stamp-h$_am_stamp_count
16508 ;;
16509
16510  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16511$as_echo "$as_me: executing $ac_file commands" >&6;}
16512 ;;
16513  esac
16514
16515
16516  case $ac_file$ac_mode in
16517    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16518  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16519  # are listed without --file.  Let's play safe and only enable the eval
16520  # if we detect the quoting.
16521  case $CONFIG_FILES in
16522  *\'*) eval set x "$CONFIG_FILES" ;;
16523  *)   set x $CONFIG_FILES ;;
16524  esac
16525  shift
16526  for mf
16527  do
16528    # Strip MF so we end up with the name of the file.
16529    mf=`echo "$mf" | sed -e 's/:.*$//'`
16530    # Check whether this is an Automake generated Makefile or not.
16531    # We used to match only the files named `Makefile.in', but
16532    # some people rename them; so instead we look at the file content.
16533    # Grep'ing the first line is not enough: some people post-process
16534    # each Makefile.in and add a new line on top of each file to say so.
16535    # Grep'ing the whole file is not good either: AIX grep has a line
16536    # limit of 2048, but all sed's we know have understand at least 4000.
16537    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16538      dirpart=`$as_dirname -- "$mf" ||
16539$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16540	 X"$mf" : 'X\(//\)[^/]' \| \
16541	 X"$mf" : 'X\(//\)$' \| \
16542	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16543$as_echo X"$mf" |
16544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16545	    s//\1/
16546	    q
16547	  }
16548	  /^X\(\/\/\)[^/].*/{
16549	    s//\1/
16550	    q
16551	  }
16552	  /^X\(\/\/\)$/{
16553	    s//\1/
16554	    q
16555	  }
16556	  /^X\(\/\).*/{
16557	    s//\1/
16558	    q
16559	  }
16560	  s/.*/./; q'`
16561    else
16562      continue
16563    fi
16564    # Extract the definition of DEPDIR, am__include, and am__quote
16565    # from the Makefile without running `make'.
16566    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16567    test -z "$DEPDIR" && continue
16568    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16569    test -z "am__include" && continue
16570    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16571    # When using ansi2knr, U may be empty or an underscore; expand it
16572    U=`sed -n 's/^U = //p' < "$mf"`
16573    # Find all dependency output files, they are included files with
16574    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16575    # simplest approach to changing $(DEPDIR) to its actual value in the
16576    # expansion.
16577    for file in `sed -n "
16578      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16579	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16580      # Make sure the directory exists.
16581      test -f "$dirpart/$file" && continue
16582      fdir=`$as_dirname -- "$file" ||
16583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584	 X"$file" : 'X\(//\)[^/]' \| \
16585	 X"$file" : 'X\(//\)$' \| \
16586	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16587$as_echo X"$file" |
16588    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16589	    s//\1/
16590	    q
16591	  }
16592	  /^X\(\/\/\)[^/].*/{
16593	    s//\1/
16594	    q
16595	  }
16596	  /^X\(\/\/\)$/{
16597	    s//\1/
16598	    q
16599	  }
16600	  /^X\(\/\).*/{
16601	    s//\1/
16602	    q
16603	  }
16604	  s/.*/./; q'`
16605      { as_dir=$dirpart/$fdir
16606  case $as_dir in #(
16607  -*) as_dir=./$as_dir;;
16608  esac
16609  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16610    as_dirs=
16611    while :; do
16612      case $as_dir in #(
16613      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16614      *) as_qdir=$as_dir;;
16615      esac
16616      as_dirs="'$as_qdir' $as_dirs"
16617      as_dir=`$as_dirname -- "$as_dir" ||
16618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16619	 X"$as_dir" : 'X\(//\)[^/]' \| \
16620	 X"$as_dir" : 'X\(//\)$' \| \
16621	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16622$as_echo X"$as_dir" |
16623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16624	    s//\1/
16625	    q
16626	  }
16627	  /^X\(\/\/\)[^/].*/{
16628	    s//\1/
16629	    q
16630	  }
16631	  /^X\(\/\/\)$/{
16632	    s//\1/
16633	    q
16634	  }
16635	  /^X\(\/\).*/{
16636	    s//\1/
16637	    q
16638	  }
16639	  s/.*/./; q'`
16640      test -d "$as_dir" && break
16641    done
16642    test -z "$as_dirs" || eval "mkdir $as_dirs"
16643  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16644$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16645   { (exit 1); exit 1; }; }; }
16646      # echo "creating $dirpart/$file"
16647      echo '# dummy' > "$dirpart/$file"
16648    done
16649  done
16650}
16651 ;;
16652    "libtool":C)
16653
16654    # See if we are running on zsh, and set the options which allow our
16655    # commands through without removal of \ escapes.
16656    if test -n "${ZSH_VERSION+set}" ; then
16657      setopt NO_GLOB_SUBST
16658    fi
16659
16660    cfgfile="${ofile}T"
16661    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16662    $RM "$cfgfile"
16663
16664    cat <<_LT_EOF >> "$cfgfile"
16665#! $SHELL
16666
16667# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16668# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16669# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16670# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16671#
16672#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16673#                 2006, 2007, 2008 Free Software Foundation, Inc.
16674#   Written by Gordon Matzigkeit, 1996
16675#
16676#   This file is part of GNU Libtool.
16677#
16678# GNU Libtool is free software; you can redistribute it and/or
16679# modify it under the terms of the GNU General Public License as
16680# published by the Free Software Foundation; either version 2 of
16681# the License, or (at your option) any later version.
16682#
16683# As a special exception to the GNU General Public License,
16684# if you distribute this file as part of a program or library that
16685# is built using GNU Libtool, you may include this file under the
16686# same distribution terms that you use for the rest of that program.
16687#
16688# GNU Libtool is distributed in the hope that it will be useful,
16689# but WITHOUT ANY WARRANTY; without even the implied warranty of
16690# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16691# GNU General Public License for more details.
16692#
16693# You should have received a copy of the GNU General Public License
16694# along with GNU Libtool; see the file COPYING.  If not, a copy
16695# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16696# obtained by writing to the Free Software Foundation, Inc.,
16697# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16698
16699
16700# The names of the tagged configurations supported by this script.
16701available_tags=""
16702
16703# ### BEGIN LIBTOOL CONFIG
16704
16705# Which release of libtool.m4 was used?
16706macro_version=$macro_version
16707macro_revision=$macro_revision
16708
16709# Whether or not to build shared libraries.
16710build_libtool_libs=$enable_shared
16711
16712# Whether or not to build static libraries.
16713build_old_libs=$enable_static
16714
16715# What type of objects to build.
16716pic_mode=$pic_mode
16717
16718# Whether or not to optimize for fast installation.
16719fast_install=$enable_fast_install
16720
16721# The host system.
16722host_alias=$host_alias
16723host=$host
16724host_os=$host_os
16725
16726# The build system.
16727build_alias=$build_alias
16728build=$build
16729build_os=$build_os
16730
16731# A sed program that does not truncate output.
16732SED=$lt_SED
16733
16734# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16735Xsed="\$SED -e 1s/^X//"
16736
16737# A grep program that handles long lines.
16738GREP=$lt_GREP
16739
16740# An ERE matcher.
16741EGREP=$lt_EGREP
16742
16743# A literal string matcher.
16744FGREP=$lt_FGREP
16745
16746# A BSD- or MS-compatible name lister.
16747NM=$lt_NM
16748
16749# Whether we need soft or hard links.
16750LN_S=$lt_LN_S
16751
16752# What is the maximum length of a command?
16753max_cmd_len=$max_cmd_len
16754
16755# Object file suffix (normally "o").
16756objext=$ac_objext
16757
16758# Executable file suffix (normally "").
16759exeext=$exeext
16760
16761# whether the shell understands "unset".
16762lt_unset=$lt_unset
16763
16764# turn spaces into newlines.
16765SP2NL=$lt_lt_SP2NL
16766
16767# turn newlines into spaces.
16768NL2SP=$lt_lt_NL2SP
16769
16770# How to create reloadable object files.
16771reload_flag=$lt_reload_flag
16772reload_cmds=$lt_reload_cmds
16773
16774# An object symbol dumper.
16775OBJDUMP=$lt_OBJDUMP
16776
16777# Method to check whether dependent libraries are shared objects.
16778deplibs_check_method=$lt_deplibs_check_method
16779
16780# Command to use when deplibs_check_method == "file_magic".
16781file_magic_cmd=$lt_file_magic_cmd
16782
16783# The archiver.
16784AR=$lt_AR
16785AR_FLAGS=$lt_AR_FLAGS
16786
16787# A symbol stripping program.
16788STRIP=$lt_STRIP
16789
16790# Commands used to install an old-style archive.
16791RANLIB=$lt_RANLIB
16792old_postinstall_cmds=$lt_old_postinstall_cmds
16793old_postuninstall_cmds=$lt_old_postuninstall_cmds
16794
16795# A C compiler.
16796LTCC=$lt_CC
16797
16798# LTCC compiler flags.
16799LTCFLAGS=$lt_CFLAGS
16800
16801# Take the output of nm and produce a listing of raw symbols and C names.
16802global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16803
16804# Transform the output of nm in a proper C declaration.
16805global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16806
16807# Transform the output of nm in a C name address pair.
16808global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16809
16810# Transform the output of nm in a C name address pair when lib prefix is needed.
16811global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16812
16813# The name of the directory that contains temporary libtool files.
16814objdir=$objdir
16815
16816# Shell to use when invoking shell scripts.
16817SHELL=$lt_SHELL
16818
16819# An echo program that does not interpret backslashes.
16820ECHO=$lt_ECHO
16821
16822# Used to examine libraries when file_magic_cmd begins with "file".
16823MAGIC_CMD=$MAGIC_CMD
16824
16825# Must we lock files when doing compilation?
16826need_locks=$lt_need_locks
16827
16828# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16829DSYMUTIL=$lt_DSYMUTIL
16830
16831# Tool to change global to local symbols on Mac OS X.
16832NMEDIT=$lt_NMEDIT
16833
16834# Tool to manipulate fat objects and archives on Mac OS X.
16835LIPO=$lt_LIPO
16836
16837# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16838OTOOL=$lt_OTOOL
16839
16840# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16841OTOOL64=$lt_OTOOL64
16842
16843# Old archive suffix (normally "a").
16844libext=$libext
16845
16846# Shared library suffix (normally ".so").
16847shrext_cmds=$lt_shrext_cmds
16848
16849# The commands to extract the exported symbol list from a shared archive.
16850extract_expsyms_cmds=$lt_extract_expsyms_cmds
16851
16852# Variables whose values should be saved in libtool wrapper scripts and
16853# restored at link time.
16854variables_saved_for_relink=$lt_variables_saved_for_relink
16855
16856# Do we need the "lib" prefix for modules?
16857need_lib_prefix=$need_lib_prefix
16858
16859# Do we need a version for libraries?
16860need_version=$need_version
16861
16862# Library versioning type.
16863version_type=$version_type
16864
16865# Shared library runtime path variable.
16866runpath_var=$runpath_var
16867
16868# Shared library path variable.
16869shlibpath_var=$shlibpath_var
16870
16871# Is shlibpath searched before the hard-coded library search path?
16872shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16873
16874# Format of library name prefix.
16875libname_spec=$lt_libname_spec
16876
16877# List of archive names.  First name is the real one, the rest are links.
16878# The last name is the one that the linker finds with -lNAME
16879library_names_spec=$lt_library_names_spec
16880
16881# The coded name of the library, if different from the real name.
16882soname_spec=$lt_soname_spec
16883
16884# Command to use after installation of a shared archive.
16885postinstall_cmds=$lt_postinstall_cmds
16886
16887# Command to use after uninstallation of a shared archive.
16888postuninstall_cmds=$lt_postuninstall_cmds
16889
16890# Commands used to finish a libtool library installation in a directory.
16891finish_cmds=$lt_finish_cmds
16892
16893# As "finish_cmds", except a single script fragment to be evaled but
16894# not shown.
16895finish_eval=$lt_finish_eval
16896
16897# Whether we should hardcode library paths into libraries.
16898hardcode_into_libs=$hardcode_into_libs
16899
16900# Compile-time system search path for libraries.
16901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16902
16903# Run-time system search path for libraries.
16904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16905
16906# Whether dlopen is supported.
16907dlopen_support=$enable_dlopen
16908
16909# Whether dlopen of programs is supported.
16910dlopen_self=$enable_dlopen_self
16911
16912# Whether dlopen of statically linked programs is supported.
16913dlopen_self_static=$enable_dlopen_self_static
16914
16915# Commands to strip libraries.
16916old_striplib=$lt_old_striplib
16917striplib=$lt_striplib
16918
16919
16920# The linker used to build libraries.
16921LD=$lt_LD
16922
16923# Commands used to build an old-style archive.
16924old_archive_cmds=$lt_old_archive_cmds
16925
16926# A language specific compiler.
16927CC=$lt_compiler
16928
16929# Is the compiler the GNU compiler?
16930with_gcc=$GCC
16931
16932# Compiler flag to turn off builtin functions.
16933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16934
16935# How to pass a linker flag through the compiler.
16936wl=$lt_lt_prog_compiler_wl
16937
16938# Additional compiler flags for building library objects.
16939pic_flag=$lt_lt_prog_compiler_pic
16940
16941# Compiler flag to prevent dynamic linking.
16942link_static_flag=$lt_lt_prog_compiler_static
16943
16944# Does compiler simultaneously support -c and -o options?
16945compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16946
16947# Whether or not to add -lc for building shared libraries.
16948build_libtool_need_lc=$archive_cmds_need_lc
16949
16950# Whether or not to disallow shared libs when runtime libs are static.
16951allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16952
16953# Compiler flag to allow reflexive dlopens.
16954export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16955
16956# Compiler flag to generate shared objects directly from archives.
16957whole_archive_flag_spec=$lt_whole_archive_flag_spec
16958
16959# Whether the compiler copes with passing no objects directly.
16960compiler_needs_object=$lt_compiler_needs_object
16961
16962# Create an old-style archive from a shared archive.
16963old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16964
16965# Create a temporary old-style archive to link instead of a shared archive.
16966old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16967
16968# Commands used to build a shared archive.
16969archive_cmds=$lt_archive_cmds
16970archive_expsym_cmds=$lt_archive_expsym_cmds
16971
16972# Commands used to build a loadable module if different from building
16973# a shared archive.
16974module_cmds=$lt_module_cmds
16975module_expsym_cmds=$lt_module_expsym_cmds
16976
16977# Whether we are building with GNU ld or not.
16978with_gnu_ld=$lt_with_gnu_ld
16979
16980# Flag that allows shared libraries with undefined symbols to be built.
16981allow_undefined_flag=$lt_allow_undefined_flag
16982
16983# Flag that enforces no undefined symbols.
16984no_undefined_flag=$lt_no_undefined_flag
16985
16986# Flag to hardcode \$libdir into a binary during linking.
16987# This must work even if \$libdir does not exist
16988hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16989
16990# If ld is used when linking, flag to hardcode \$libdir into a binary
16991# during linking.  This must work even if \$libdir does not exist.
16992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16993
16994# Whether we need a single "-rpath" flag with a separated argument.
16995hardcode_libdir_separator=$lt_hardcode_libdir_separator
16996
16997# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16998# DIR into the resulting binary.
16999hardcode_direct=$hardcode_direct
17000
17001# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17002# DIR into the resulting binary and the resulting library dependency is
17003# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17004# library is relocated.
17005hardcode_direct_absolute=$hardcode_direct_absolute
17006
17007# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17008# into the resulting binary.
17009hardcode_minus_L=$hardcode_minus_L
17010
17011# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17012# into the resulting binary.
17013hardcode_shlibpath_var=$hardcode_shlibpath_var
17014
17015# Set to "yes" if building a shared library automatically hardcodes DIR
17016# into the library and all subsequent libraries and executables linked
17017# against it.
17018hardcode_automatic=$hardcode_automatic
17019
17020# Set to yes if linker adds runtime paths of dependent libraries
17021# to runtime path list.
17022inherit_rpath=$inherit_rpath
17023
17024# Whether libtool must link a program against all its dependency libraries.
17025link_all_deplibs=$link_all_deplibs
17026
17027# Fix the shell variable \$srcfile for the compiler.
17028fix_srcfile_path=$lt_fix_srcfile_path
17029
17030# Set to "yes" if exported symbols are required.
17031always_export_symbols=$always_export_symbols
17032
17033# The commands to list exported symbols.
17034export_symbols_cmds=$lt_export_symbols_cmds
17035
17036# Symbols that should not be listed in the preloaded symbols.
17037exclude_expsyms=$lt_exclude_expsyms
17038
17039# Symbols that must always be exported.
17040include_expsyms=$lt_include_expsyms
17041
17042# Commands necessary for linking programs (against libraries) with templates.
17043prelink_cmds=$lt_prelink_cmds
17044
17045# Specify filename containing input files.
17046file_list_spec=$lt_file_list_spec
17047
17048# How to hardcode a shared library path into an executable.
17049hardcode_action=$hardcode_action
17050
17051# ### END LIBTOOL CONFIG
17052
17053_LT_EOF
17054
17055  case $host_os in
17056  aix3*)
17057    cat <<\_LT_EOF >> "$cfgfile"
17058# AIX sometimes has problems with the GCC collect2 program.  For some
17059# reason, if we set the COLLECT_NAMES environment variable, the problems
17060# vanish in a puff of smoke.
17061if test "X${COLLECT_NAMES+set}" != Xset; then
17062  COLLECT_NAMES=
17063  export COLLECT_NAMES
17064fi
17065_LT_EOF
17066    ;;
17067  esac
17068
17069
17070ltmain="$ac_aux_dir/ltmain.sh"
17071
17072
17073  # We use sed instead of cat because bash on DJGPP gets confused if
17074  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17075  # text mode, it properly converts lines to CR/LF.  This bash problem
17076  # is reportedly fixed, but why not run on old versions too?
17077  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17078    || (rm -f "$cfgfile"; exit 1)
17079
17080  case $xsi_shell in
17081  yes)
17082    cat << \_LT_EOF >> "$cfgfile"
17083
17084# func_dirname file append nondir_replacement
17085# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17086# otherwise set result to NONDIR_REPLACEMENT.
17087func_dirname ()
17088{
17089  case ${1} in
17090    */*) func_dirname_result="${1%/*}${2}" ;;
17091    *  ) func_dirname_result="${3}" ;;
17092  esac
17093}
17094
17095# func_basename file
17096func_basename ()
17097{
17098  func_basename_result="${1##*/}"
17099}
17100
17101# func_dirname_and_basename file append nondir_replacement
17102# perform func_basename and func_dirname in a single function
17103# call:
17104#   dirname:  Compute the dirname of FILE.  If nonempty,
17105#             add APPEND to the result, otherwise set result
17106#             to NONDIR_REPLACEMENT.
17107#             value returned in "$func_dirname_result"
17108#   basename: Compute filename of FILE.
17109#             value retuned in "$func_basename_result"
17110# Implementation must be kept synchronized with func_dirname
17111# and func_basename. For efficiency, we do not delegate to
17112# those functions but instead duplicate the functionality here.
17113func_dirname_and_basename ()
17114{
17115  case ${1} in
17116    */*) func_dirname_result="${1%/*}${2}" ;;
17117    *  ) func_dirname_result="${3}" ;;
17118  esac
17119  func_basename_result="${1##*/}"
17120}
17121
17122# func_stripname prefix suffix name
17123# strip PREFIX and SUFFIX off of NAME.
17124# PREFIX and SUFFIX must not contain globbing or regex special
17125# characters, hashes, percent signs, but SUFFIX may contain a leading
17126# dot (in which case that matches only a dot).
17127func_stripname ()
17128{
17129  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17130  # positional parameters, so assign one to ordinary parameter first.
17131  func_stripname_result=${3}
17132  func_stripname_result=${func_stripname_result#"${1}"}
17133  func_stripname_result=${func_stripname_result%"${2}"}
17134}
17135
17136# func_opt_split
17137func_opt_split ()
17138{
17139  func_opt_split_opt=${1%%=*}
17140  func_opt_split_arg=${1#*=}
17141}
17142
17143# func_lo2o object
17144func_lo2o ()
17145{
17146  case ${1} in
17147    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17148    *)    func_lo2o_result=${1} ;;
17149  esac
17150}
17151
17152# func_xform libobj-or-source
17153func_xform ()
17154{
17155  func_xform_result=${1%.*}.lo
17156}
17157
17158# func_arith arithmetic-term...
17159func_arith ()
17160{
17161  func_arith_result=$(( $* ))
17162}
17163
17164# func_len string
17165# STRING may not start with a hyphen.
17166func_len ()
17167{
17168  func_len_result=${#1}
17169}
17170
17171_LT_EOF
17172    ;;
17173  *) # Bourne compatible functions.
17174    cat << \_LT_EOF >> "$cfgfile"
17175
17176# func_dirname file append nondir_replacement
17177# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17178# otherwise set result to NONDIR_REPLACEMENT.
17179func_dirname ()
17180{
17181  # Extract subdirectory from the argument.
17182  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17183  if test "X$func_dirname_result" = "X${1}"; then
17184    func_dirname_result="${3}"
17185  else
17186    func_dirname_result="$func_dirname_result${2}"
17187  fi
17188}
17189
17190# func_basename file
17191func_basename ()
17192{
17193  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17194}
17195
17196
17197# func_stripname prefix suffix name
17198# strip PREFIX and SUFFIX off of NAME.
17199# PREFIX and SUFFIX must not contain globbing or regex special
17200# characters, hashes, percent signs, but SUFFIX may contain a leading
17201# dot (in which case that matches only a dot).
17202# func_strip_suffix prefix name
17203func_stripname ()
17204{
17205  case ${2} in
17206    .*) func_stripname_result=`$ECHO "X${3}" \
17207           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17208    *)  func_stripname_result=`$ECHO "X${3}" \
17209           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17210  esac
17211}
17212
17213# sed scripts:
17214my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17215my_sed_long_arg='1s/^-[^=]*=//'
17216
17217# func_opt_split
17218func_opt_split ()
17219{
17220  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17221  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17222}
17223
17224# func_lo2o object
17225func_lo2o ()
17226{
17227  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17228}
17229
17230# func_xform libobj-or-source
17231func_xform ()
17232{
17233  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17234}
17235
17236# func_arith arithmetic-term...
17237func_arith ()
17238{
17239  func_arith_result=`expr "$@"`
17240}
17241
17242# func_len string
17243# STRING may not start with a hyphen.
17244func_len ()
17245{
17246  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17247}
17248
17249_LT_EOF
17250esac
17251
17252case $lt_shell_append in
17253  yes)
17254    cat << \_LT_EOF >> "$cfgfile"
17255
17256# func_append var value
17257# Append VALUE to the end of shell variable VAR.
17258func_append ()
17259{
17260  eval "$1+=\$2"
17261}
17262_LT_EOF
17263    ;;
17264  *)
17265    cat << \_LT_EOF >> "$cfgfile"
17266
17267# func_append var value
17268# Append VALUE to the end of shell variable VAR.
17269func_append ()
17270{
17271  eval "$1=\$$1\$2"
17272}
17273
17274_LT_EOF
17275    ;;
17276  esac
17277
17278
17279  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17280    || (rm -f "$cfgfile"; exit 1)
17281
17282  mv -f "$cfgfile" "$ofile" ||
17283    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17284  chmod +x "$ofile"
17285
17286 ;;
17287
17288  esac
17289done # for ac_tag
17290
17291
17292{ (exit 0); exit 0; }
17293_ACEOF
17294chmod +x $CONFIG_STATUS
17295ac_clean_files=$ac_clean_files_save
17296
17297test $ac_write_fail = 0 ||
17298  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17299$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17300   { (exit 1); exit 1; }; }
17301
17302
17303# configure is writing to config.log, and then calls config.status.
17304# config.status does its own redirection, appending to config.log.
17305# Unfortunately, on DOS this fails, as config.log is still kept open
17306# by configure, so config.status won't be able to write to it; its
17307# output is simply discarded.  So we exec the FD to /dev/null,
17308# effectively closing config.log, so it can be properly (re)opened and
17309# appended to by config.status.  When coming back to configure, we
17310# need to make the FD available again.
17311if test "$no_create" != yes; then
17312  ac_cs_success=:
17313  ac_config_status_args=
17314  test "$silent" = yes &&
17315    ac_config_status_args="$ac_config_status_args --quiet"
17316  exec 5>/dev/null
17317  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17318  exec 5>>config.log
17319  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17320  # would make configure fail if this is the last instruction.
17321  $ac_cs_success || { (exit 1); exit 1; }
17322fi
17323if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17324  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17325$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17326fi
17327
17328