configure revision bdf0f55d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for libXt 1.1.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error STATUS ERROR [LINENO LOG_FD]
364# ----------------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with STATUS, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$1; test $as_status -eq 0 && as_status=1
371  if test "$4"; then
372    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374  fi
375  $as_echo "$as_me: error: $2" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='libXt'
704PACKAGE_TARNAME='libXt'
705PACKAGE_VERSION='1.1.1'
706PACKAGE_STRING='libXt 1.1.1'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
709
710ac_unique_file="Makefile.am"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_subst_vars='am__EXEEXT_FALSE
748am__EXEEXT_TRUE
749LTLIBOBJS
750LIBOBJS
751STRINGSABIOPTIONS
752appdefaultdir
753XFILESEARCHPATHDEFAULT
754LDFLAGS_FOR_BUILD
755CFLAGS_FOR_BUILD
756CC_FOR_BUILD
757XT_LIBS
758XT_CFLAGS
759XTMALLOC_ZERO_CFLAGS
760XMALLOC_ZERO_CFLAGS
761MALLOC_ZERO_CFLAGS
762AM_BACKSLASH
763AM_DEFAULT_VERBOSITY
764MAN_SUBSTS
765XORG_MAN_PAGE
766ADMIN_MAN_DIR
767DRIVER_MAN_DIR
768MISC_MAN_DIR
769FILE_MAN_DIR
770LIB_MAN_DIR
771APP_MAN_DIR
772ADMIN_MAN_SUFFIX
773DRIVER_MAN_SUFFIX
774MISC_MAN_SUFFIX
775FILE_MAN_SUFFIX
776LIB_MAN_SUFFIX
777APP_MAN_SUFFIX
778INSTALL_CMD
779PKG_CONFIG_LIBDIR
780PKG_CONFIG_PATH
781PKG_CONFIG
782CHANGELOG_CMD
783CWARNFLAGS
784CPP
785OTOOL64
786OTOOL
787LIPO
788NMEDIT
789DSYMUTIL
790lt_ECHO
791RANLIB
792AR
793OBJDUMP
794LN_S
795NM
796ac_ct_DUMPBIN
797DUMPBIN
798LD
799FGREP
800EGREP
801GREP
802SED
803am__fastdepCC_FALSE
804am__fastdepCC_TRUE
805CCDEPMODE
806AMDEPBACKSLASH
807AMDEP_FALSE
808AMDEP_TRUE
809am__quote
810am__include
811DEPDIR
812OBJEXT
813EXEEXT
814ac_ct_CC
815CPPFLAGS
816LDFLAGS
817CFLAGS
818CC
819host_os
820host_vendor
821host_cpu
822host
823build_os
824build_vendor
825build_cpu
826build
827LIBTOOL
828MAINT
829MAINTAINER_MODE_FALSE
830MAINTAINER_MODE_TRUE
831am__untar
832am__tar
833AMTAR
834am__leading_dot
835SET_MAKE
836AWK
837mkdir_p
838MKDIR_P
839INSTALL_STRIP_PROGRAM
840STRIP
841install_sh
842MAKEINFO
843AUTOHEADER
844AUTOMAKE
845AUTOCONF
846ACLOCAL
847VERSION
848PACKAGE
849CYGPATH_W
850am__isrc
851INSTALL_DATA
852INSTALL_SCRIPT
853INSTALL_PROGRAM
854target_alias
855host_alias
856build_alias
857LIBS
858ECHO_T
859ECHO_N
860ECHO_C
861DEFS
862mandir
863localedir
864libdir
865psdir
866pdfdir
867dvidir
868htmldir
869infodir
870docdir
871oldincludedir
872includedir
873localstatedir
874sharedstatedir
875sysconfdir
876datadir
877datarootdir
878libexecdir
879sbindir
880bindir
881program_transform_name
882prefix
883exec_prefix
884PACKAGE_URL
885PACKAGE_BUGREPORT
886PACKAGE_STRING
887PACKAGE_VERSION
888PACKAGE_TARNAME
889PACKAGE_NAME
890PATH_SEPARATOR
891SHELL'
892ac_subst_files=''
893ac_user_opts='
894enable_option_checking
895enable_maintainer_mode
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900enable_dependency_tracking
901with_gnu_ld
902enable_libtool_lock
903enable_strict_compilation
904enable_silent_rules
905enable_malloc0returnsnull
906enable_xkb
907with_xfile_search_path
908with_appdefaultdir
909'
910      ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP
919PKG_CONFIG
920PKG_CONFIG_PATH
921PKG_CONFIG_LIBDIR
922XT_CFLAGS
923XT_LIBS'
924
925
926# Initialize some variables set by options.
927ac_init_help=
928ac_init_version=false
929ac_unrecognized_opts=
930ac_unrecognized_sep=
931# The variables have the same names as the options, with
932# dashes changed to underlines.
933cache_file=/dev/null
934exec_prefix=NONE
935no_create=
936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
944verbose=
945x_includes=NONE
946x_libraries=NONE
947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
953# (The list follows the same order as the GNU Coding Standards.)
954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
962includedir='${prefix}/include'
963oldincludedir='/usr/include'
964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
973
974ac_prev=
975ac_dashdash=
976for ac_option
977do
978  # If the previous option needs an argument, assign it.
979  if test -n "$ac_prev"; then
980    eval $ac_prev=\$ac_option
981    ac_prev=
982    continue
983  fi
984
985  case $ac_option in
986  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987  *=)   ac_optarg= ;;
988  *)    ac_optarg=yes ;;
989  esac
990
991  # Accept the important Cygnus configure options, so we can diagnose typos.
992
993  case $ac_dashdash$ac_option in
994  --)
995    ac_dashdash=yes ;;
996
997  -bindir | --bindir | --bindi | --bind | --bin | --bi)
998    ac_prev=bindir ;;
999  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000    bindir=$ac_optarg ;;
1001
1002  -build | --build | --buil | --bui | --bu)
1003    ac_prev=build_alias ;;
1004  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005    build_alias=$ac_optarg ;;
1006
1007  -cache-file | --cache-file | --cache-fil | --cache-fi \
1008  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009    ac_prev=cache_file ;;
1010  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012    cache_file=$ac_optarg ;;
1013
1014  --config-cache | -C)
1015    cache_file=config.cache ;;
1016
1017  -datadir | --datadir | --datadi | --datad)
1018    ac_prev=datadir ;;
1019  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020    datadir=$ac_optarg ;;
1021
1022  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023  | --dataroo | --dataro | --datar)
1024    ac_prev=datarootdir ;;
1025  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027    datarootdir=$ac_optarg ;;
1028
1029  -disable-* | --disable-*)
1030    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033      as_fn_error $? "invalid feature name: $ac_useropt"
1034    ac_useropt_orig=$ac_useropt
1035    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036    case $ac_user_opts in
1037      *"
1038"enable_$ac_useropt"
1039"*) ;;
1040      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041	 ac_unrecognized_sep=', ';;
1042    esac
1043    eval enable_$ac_useropt=no ;;
1044
1045  -docdir | --docdir | --docdi | --doc | --do)
1046    ac_prev=docdir ;;
1047  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048    docdir=$ac_optarg ;;
1049
1050  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051    ac_prev=dvidir ;;
1052  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053    dvidir=$ac_optarg ;;
1054
1055  -enable-* | --enable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      as_fn_error $? "invalid feature name: $ac_useropt"
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=\$ac_optarg ;;
1070
1071  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073  | --exec | --exe | --ex)
1074    ac_prev=exec_prefix ;;
1075  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077  | --exec=* | --exe=* | --ex=*)
1078    exec_prefix=$ac_optarg ;;
1079
1080  -gas | --gas | --ga | --g)
1081    # Obsolete; use --with-gas.
1082    with_gas=yes ;;
1083
1084  -help | --help | --hel | --he | -h)
1085    ac_init_help=long ;;
1086  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087    ac_init_help=recursive ;;
1088  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089    ac_init_help=short ;;
1090
1091  -host | --host | --hos | --ho)
1092    ac_prev=host_alias ;;
1093  -host=* | --host=* | --hos=* | --ho=*)
1094    host_alias=$ac_optarg ;;
1095
1096  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097    ac_prev=htmldir ;;
1098  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099  | --ht=*)
1100    htmldir=$ac_optarg ;;
1101
1102  -includedir | --includedir | --includedi | --included | --include \
1103  | --includ | --inclu | --incl | --inc)
1104    ac_prev=includedir ;;
1105  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106  | --includ=* | --inclu=* | --incl=* | --inc=*)
1107    includedir=$ac_optarg ;;
1108
1109  -infodir | --infodir | --infodi | --infod | --info | --inf)
1110    ac_prev=infodir ;;
1111  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112    infodir=$ac_optarg ;;
1113
1114  -libdir | --libdir | --libdi | --libd)
1115    ac_prev=libdir ;;
1116  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117    libdir=$ac_optarg ;;
1118
1119  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120  | --libexe | --libex | --libe)
1121    ac_prev=libexecdir ;;
1122  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123  | --libexe=* | --libex=* | --libe=*)
1124    libexecdir=$ac_optarg ;;
1125
1126  -localedir | --localedir | --localedi | --localed | --locale)
1127    ac_prev=localedir ;;
1128  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129    localedir=$ac_optarg ;;
1130
1131  -localstatedir | --localstatedir | --localstatedi | --localstated \
1132  | --localstate | --localstat | --localsta | --localst | --locals)
1133    ac_prev=localstatedir ;;
1134  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136    localstatedir=$ac_optarg ;;
1137
1138  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139    ac_prev=mandir ;;
1140  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141    mandir=$ac_optarg ;;
1142
1143  -nfp | --nfp | --nf)
1144    # Obsolete; use --without-fp.
1145    with_fp=no ;;
1146
1147  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148  | --no-cr | --no-c | -n)
1149    no_create=yes ;;
1150
1151  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153    no_recursion=yes ;;
1154
1155  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157  | --oldin | --oldi | --old | --ol | --o)
1158    ac_prev=oldincludedir ;;
1159  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162    oldincludedir=$ac_optarg ;;
1163
1164  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165    ac_prev=prefix ;;
1166  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167    prefix=$ac_optarg ;;
1168
1169  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170  | --program-pre | --program-pr | --program-p)
1171    ac_prev=program_prefix ;;
1172  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174    program_prefix=$ac_optarg ;;
1175
1176  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177  | --program-suf | --program-su | --program-s)
1178    ac_prev=program_suffix ;;
1179  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181    program_suffix=$ac_optarg ;;
1182
1183  -program-transform-name | --program-transform-name \
1184  | --program-transform-nam | --program-transform-na \
1185  | --program-transform-n | --program-transform- \
1186  | --program-transform | --program-transfor \
1187  | --program-transfo | --program-transf \
1188  | --program-trans | --program-tran \
1189  | --progr-tra | --program-tr | --program-t)
1190    ac_prev=program_transform_name ;;
1191  -program-transform-name=* | --program-transform-name=* \
1192  | --program-transform-nam=* | --program-transform-na=* \
1193  | --program-transform-n=* | --program-transform-=* \
1194  | --program-transform=* | --program-transfor=* \
1195  | --program-transfo=* | --program-transf=* \
1196  | --program-trans=* | --program-tran=* \
1197  | --progr-tra=* | --program-tr=* | --program-t=*)
1198    program_transform_name=$ac_optarg ;;
1199
1200  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201    ac_prev=pdfdir ;;
1202  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203    pdfdir=$ac_optarg ;;
1204
1205  -psdir | --psdir | --psdi | --psd | --ps)
1206    ac_prev=psdir ;;
1207  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208    psdir=$ac_optarg ;;
1209
1210  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211  | -silent | --silent | --silen | --sile | --sil)
1212    silent=yes ;;
1213
1214  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215    ac_prev=sbindir ;;
1216  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217  | --sbi=* | --sb=*)
1218    sbindir=$ac_optarg ;;
1219
1220  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222  | --sharedst | --shareds | --shared | --share | --shar \
1223  | --sha | --sh)
1224    ac_prev=sharedstatedir ;;
1225  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228  | --sha=* | --sh=*)
1229    sharedstatedir=$ac_optarg ;;
1230
1231  -site | --site | --sit)
1232    ac_prev=site ;;
1233  -site=* | --site=* | --sit=*)
1234    site=$ac_optarg ;;
1235
1236  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237    ac_prev=srcdir ;;
1238  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239    srcdir=$ac_optarg ;;
1240
1241  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242  | --syscon | --sysco | --sysc | --sys | --sy)
1243    ac_prev=sysconfdir ;;
1244  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246    sysconfdir=$ac_optarg ;;
1247
1248  -target | --target | --targe | --targ | --tar | --ta | --t)
1249    ac_prev=target_alias ;;
1250  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251    target_alias=$ac_optarg ;;
1252
1253  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254    verbose=yes ;;
1255
1256  -version | --version | --versio | --versi | --vers | -V)
1257    ac_init_version=: ;;
1258
1259  -with-* | --with-*)
1260    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263      as_fn_error $? "invalid package name: $ac_useropt"
1264    ac_useropt_orig=$ac_useropt
1265    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266    case $ac_user_opts in
1267      *"
1268"with_$ac_useropt"
1269"*) ;;
1270      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271	 ac_unrecognized_sep=', ';;
1272    esac
1273    eval with_$ac_useropt=\$ac_optarg ;;
1274
1275  -without-* | --without-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error $? "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=no ;;
1290
1291  --x)
1292    # Obsolete; use --with-x.
1293    with_x=yes ;;
1294
1295  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296  | --x-incl | --x-inc | --x-in | --x-i)
1297    ac_prev=x_includes ;;
1298  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300    x_includes=$ac_optarg ;;
1301
1302  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304    ac_prev=x_libraries ;;
1305  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307    x_libraries=$ac_optarg ;;
1308
1309  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310Try \`$0 --help' for more information"
1311    ;;
1312
1313  *=*)
1314    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315    # Reject names that are not valid shell variable names.
1316    case $ac_envvar in #(
1317      '' | [0-9]* | *[!_$as_cr_alnum]* )
1318      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319    esac
1320    eval $ac_envvar=\$ac_optarg
1321    export $ac_envvar ;;
1322
1323  *)
1324    # FIXME: should be removed in autoconf 3.0.
1325    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329    ;;
1330
1331  esac
1332done
1333
1334if test -n "$ac_prev"; then
1335  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336  as_fn_error $? "missing argument to $ac_option"
1337fi
1338
1339if test -n "$ac_unrecognized_opts"; then
1340  case $enable_option_checking in
1341    no) ;;
1342    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344  esac
1345fi
1346
1347# Check all directory arguments for consistency.
1348for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349		datadir sysconfdir sharedstatedir localstatedir includedir \
1350		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351		libdir localedir mandir
1352do
1353  eval ac_val=\$$ac_var
1354  # Remove trailing slashes.
1355  case $ac_val in
1356    */ )
1357      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358      eval $ac_var=\$ac_val;;
1359  esac
1360  # Be sure to have absolute directory names.
1361  case $ac_val in
1362    [\\/$]* | ?:[\\/]* )  continue;;
1363    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364  esac
1365  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366done
1367
1368# There might be people who depend on the old broken behavior: `$host'
1369# used to hold the argument of --host etc.
1370# FIXME: To remove some day.
1371build=$build_alias
1372host=$host_alias
1373target=$target_alias
1374
1375# FIXME: To remove some day.
1376if test "x$host_alias" != x; then
1377  if test "x$build_alias" = x; then
1378    cross_compiling=maybe
1379    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1380    If a cross compiler is detected then cross compile mode will be used" >&2
1381  elif test "x$build_alias" != "x$host_alias"; then
1382    cross_compiling=yes
1383  fi
1384fi
1385
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
1390
1391
1392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395  as_fn_error $? "working directory cannot be determined"
1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397  as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402  ac_srcdir_defaulted=yes
1403  # Try the directory containing this script, then the parent directory.
1404  ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406	 X"$as_myself" : 'X\(//\)[^/]' \| \
1407	 X"$as_myself" : 'X\(//\)$' \| \
1408	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
1410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\/\)[^/].*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  /^X\(\/\/\)$/{
1419	    s//\1/
1420	    q
1421	  }
1422	  /^X\(\/\).*/{
1423	    s//\1/
1424	    q
1425	  }
1426	  s/.*/./; q'`
1427  srcdir=$ac_confdir
1428  if test ! -r "$srcdir/$ac_unique_file"; then
1429    srcdir=..
1430  fi
1431else
1432  ac_srcdir_defaulted=no
1433fi
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437fi
1438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441	pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444  srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_env_${ac_var}_value=\$${ac_var}
1455  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463  # Omit some internal or obsolete options to make the list less imposing.
1464  # This message is too long to be a string in the A/UX 3.1 sh.
1465  cat <<_ACEOF
1466\`configure' configures libXt 1.1.1 to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476  -h, --help              display this help and exit
1477      --help=short        display options specific to this package
1478      --help=recursive    display the short help of all the included packages
1479  -V, --version           display version information and exit
1480  -q, --quiet, --silent   do not print \`checking ...' messages
1481      --cache-file=FILE   cache test results in FILE [disabled]
1482  -C, --config-cache      alias for \`--cache-file=config.cache'
1483  -n, --no-create         do not create output files
1484      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486Installation directories:
1487  --prefix=PREFIX         install architecture-independent files in PREFIX
1488                          [$ac_default_prefix]
1489  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490                          [PREFIX]
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500  --bindir=DIR            user executables [EPREFIX/bin]
1501  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1502  --libexecdir=DIR        program executables [EPREFIX/libexec]
1503  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1504  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1505  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1506  --libdir=DIR            object code libraries [EPREFIX/lib]
1507  --includedir=DIR        C header files [PREFIX/include]
1508  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1509  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1510  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1511  --infodir=DIR           info documentation [DATAROOTDIR/info]
1512  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1513  --mandir=DIR            man documentation [DATAROOTDIR/man]
1514  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXt]
1515  --htmldir=DIR           html documentation [DOCDIR]
1516  --dvidir=DIR            dvi documentation [DOCDIR]
1517  --pdfdir=DIR            pdf documentation [DOCDIR]
1518  --psdir=DIR             ps documentation [DOCDIR]
1519_ACEOF
1520
1521  cat <<\_ACEOF
1522
1523Program names:
1524  --program-prefix=PREFIX            prepend PREFIX to installed program names
1525  --program-suffix=SUFFIX            append SUFFIX to installed program names
1526  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1527
1528System types:
1529  --build=BUILD     configure for building on BUILD [guessed]
1530  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531_ACEOF
1532fi
1533
1534if test -n "$ac_init_help"; then
1535  case $ac_init_help in
1536     short | recursive ) echo "Configuration of libXt 1.1.1:";;
1537   esac
1538  cat <<\_ACEOF
1539
1540Optional Features:
1541  --disable-option-checking  ignore unrecognized --enable/--with options
1542  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1543  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1544  --enable-maintainer-mode  enable make rules and dependencies not useful
1545			  (and sometimes confusing) to the casual installer
1546  --enable-shared[=PKGS]  build shared libraries [default=yes]
1547  --enable-static[=PKGS]  build static libraries [default=yes]
1548  --enable-fast-install[=PKGS]
1549                          optimize for fast installation [default=yes]
1550  --disable-dependency-tracking  speeds up one-time build
1551  --enable-dependency-tracking   do not reject slow dependency extractors
1552  --disable-libtool-lock  avoid locking (might break parallel builds)
1553  --enable-strict-compilation
1554                          Enable all warnings from compiler and make them
1555                          errors (default: disabled)
1556  --enable-silent-rules          less verbose build output (undo: `make V=1')
1557  --disable-silent-rules         verbose build output (undo: `make V=0')
1558  --enable-malloc0returnsnull
1559                          malloc(0) returns NULL (default: auto)
1560  --disable-xkb           Disable XKB support
1561
1562Optional Packages:
1563  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565  --with-pic              try to use only PIC/non-PIC objects [default=use
1566                          both]
1567  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1568  --with-xfile-search-path=<path>
1569                          Set path to search for app-defaults and other files
1570  --with-appdefaultdir=<path>
1571                          Set app-default directory (default:
1572                          ${datadir}/X11/app-defaults)
1573
1574Some influential environment variables:
1575  CC          C compiler command
1576  CFLAGS      C compiler flags
1577  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1578              nonstandard directory <lib dir>
1579  LIBS        libraries to pass to the linker, e.g. -l<library>
1580  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581              you have headers in a nonstandard directory <include dir>
1582  CPP         C preprocessor
1583  PKG_CONFIG  path to pkg-config utility
1584  PKG_CONFIG_PATH
1585              directories to add to pkg-config's search path
1586  PKG_CONFIG_LIBDIR
1587              path overriding pkg-config's built-in search path
1588  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1589  XT_LIBS     linker flags for XT, overriding pkg-config
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1595_ACEOF
1596ac_status=$?
1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600  # If there are subdirs, report their specific --help.
1601  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602    test -d "$ac_dir" ||
1603      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604      continue
1605    ac_builddir=.
1606
1607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611  # A ".." for each directory in $ac_dir_suffix.
1612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613  case $ac_top_builddir_sub in
1614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616  esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
1622
1623case $srcdir in
1624  .)  # We are building in place.
1625    ac_srcdir=.
1626    ac_top_srcdir=$ac_top_builddir_sub
1627    ac_abs_top_srcdir=$ac_pwd ;;
1628  [\\/]* | ?:[\\/]* )  # Absolute name.
1629    ac_srcdir=$srcdir$ac_dir_suffix;
1630    ac_top_srcdir=$srcdir
1631    ac_abs_top_srcdir=$srcdir ;;
1632  *) # Relative name.
1633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636esac
1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639    cd "$ac_dir" || { ac_status=$?; continue; }
1640    # Check for guested configure.
1641    if test -f "$ac_srcdir/configure.gnu"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644    elif test -f "$ac_srcdir/configure"; then
1645      echo &&
1646      $SHELL "$ac_srcdir/configure" --help=recursive
1647    else
1648      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649    fi || ac_status=$?
1650    cd "$ac_pwd" || { ac_status=$?; break; }
1651  done
1652fi
1653
1654test -n "$ac_init_help" && exit $ac_status
1655if $ac_init_version; then
1656  cat <<\_ACEOF
1657libXt configure 1.1.1
1658generated by GNU Autoconf 2.67
1659
1660Copyright (C) 2010 Free Software Foundation, Inc.
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
1664  exit
1665fi
1666
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
1670
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext
1678  if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_compile") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest.$ac_objext; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702	ac_retval=1
1703fi
1704  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_c_try_link LINENO
1710# -----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_link ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  rm -f conftest.$ac_objext conftest$ac_exeext
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && {
1732	 test -z "$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       } && test -s conftest$ac_exeext && {
1735	 test "$cross_compiling" = yes ||
1736	 $as_test_x conftest$ac_exeext
1737       }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747  # interfere with the next link command; also delete a directory that is
1748  # left behind by Apple's compiler.  We do this before executing the actions.
1749  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_link
1754
1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists and can be compiled using the include files in
1758# INCLUDES, setting the cache variable VAR accordingly.
1759ac_fn_c_check_header_compile ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval "test \"\${$3+set}\"" = set; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773  eval "$3=yes"
1774else
1775  eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783
1784} # ac_fn_c_check_header_compile
1785
1786# ac_fn_c_try_cpp LINENO
1787# ----------------------
1788# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_c_try_cpp ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  if { { ac_try="$ac_cpp conftest.$ac_ext"
1793case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800  ac_status=$?
1801  if test -s conftest.err; then
1802    grep -v '^ *+' conftest.err >conftest.er1
1803    cat conftest.er1 >&5
1804    mv -f conftest.er1 conftest.err
1805  fi
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } > conftest.i && {
1808	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1809	 test ! -s conftest.err
1810       }; then :
1811  ac_retval=0
1812else
1813  $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816    ac_retval=1
1817fi
1818  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819  as_fn_set_status $ac_retval
1820
1821} # ac_fn_c_try_cpp
1822
1823# ac_fn_c_try_run LINENO
1824# ----------------------
1825# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826# that executables *can* be run.
1827ac_fn_c_try_run ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  if { { ac_try="$ac_link"
1831case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_link") 2>&5
1838  ac_status=$?
1839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841  { { case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847  (eval "$ac_try") 2>&5
1848  ac_status=$?
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; }; }; then :
1851  ac_retval=0
1852else
1853  $as_echo "$as_me: program exited with status $ac_status" >&5
1854       $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857       ac_retval=$ac_status
1858fi
1859  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_run
1864
1865# ac_fn_c_check_func LINENO FUNC VAR
1866# ----------------------------------
1867# Tests whether FUNC exists, setting the cache variable VAR accordingly
1868ac_fn_c_check_func ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval "test \"\${$3+set}\"" = set; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883    which can conflict with char $2 (); below.
1884    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885    <limits.h> exists even on freestanding compilers.  */
1886
1887#ifdef __STDC__
1888# include <limits.h>
1889#else
1890# include <assert.h>
1891#endif
1892
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896   Use char because int might match the return type of a GCC
1897   builtin and then its argument prototype would still apply.  */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903    to always fail with ENOSYS.  Some functions are actually named
1904    something starting with __ and the normal name is an alias.  */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main ()
1911{
1912return $2 ();
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"; then :
1918  eval "$3=yes"
1919else
1920  eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext \
1923    conftest$ac_exeext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
1930} # ac_fn_c_check_func
1931
1932# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1933# ---------------------------------------------
1934# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1935# accordingly.
1936ac_fn_c_check_decl ()
1937{
1938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939  as_decl_name=`echo $2|sed 's/ *(.*//'`
1940  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1942$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1943if eval "test \"\${$3+set}\"" = set; then :
1944  $as_echo_n "(cached) " >&6
1945else
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952#ifndef $as_decl_name
1953#ifdef __cplusplus
1954  (void) $as_decl_use;
1955#else
1956  (void) $as_decl_name;
1957#endif
1958#endif
1959
1960  ;
1961  return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965  eval "$3=yes"
1966else
1967  eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975
1976} # ac_fn_c_check_decl
1977
1978# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979# -------------------------------------------------------
1980# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981# the include files in INCLUDES and setting the cache variable VAR
1982# accordingly.
1983ac_fn_c_check_header_mongrel ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if eval "test \"\${$3+set}\"" = set; then :
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval "test \"\${$3+set}\"" = set; then :
1990  $as_echo_n "(cached) " >&6
1991fi
1992eval ac_res=\$$3
1993	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995else
1996  # Is the header compilable?
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998$as_echo_n "checking $2 usability... " >&6; }
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005  ac_header_compiler=yes
2006else
2007  ac_header_compiler=no
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011$as_echo "$ac_header_compiler" >&6; }
2012
2013# Is the header present?
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015$as_echo_n "checking $2 presence... " >&6; }
2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018#include <$2>
2019_ACEOF
2020if ac_fn_c_try_cpp "$LINENO"; then :
2021  ac_header_preproc=yes
2022else
2023  ac_header_preproc=no
2024fi
2025rm -f conftest.err conftest.i conftest.$ac_ext
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027$as_echo "$ac_header_preproc" >&6; }
2028
2029# So?  What about this header?
2030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031  yes:no: )
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036    ;;
2037  no:yes:* )
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2041$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2045$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048( $as_echo "## ---------------------------------------------------------------------- ##
2049## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2050## ---------------------------------------------------------------------- ##"
2051     ) | sed "s/^/$as_me: WARNING:     /" >&2
2052    ;;
2053esac
2054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if eval "test \"\${$3+set}\"" = set; then :
2057  $as_echo_n "(cached) " >&6
2058else
2059  eval "$3=\$ac_header_compiler"
2060fi
2061eval ac_res=\$$3
2062	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064fi
2065  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066
2067} # ac_fn_c_check_header_mongrel
2068cat >config.log <<_ACEOF
2069This file contains any messages produced by compilers while
2070running configure, to aid debugging if configure makes a mistake.
2071
2072It was created by libXt $as_me 1.1.1, which was
2073generated by GNU Autoconf 2.67.  Invocation command line was
2074
2075  $ $0 $@
2076
2077_ACEOF
2078exec 5>>config.log
2079{
2080cat <<_ASUNAME
2081## --------- ##
2082## Platform. ##
2083## --------- ##
2084
2085hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2086uname -m = `(uname -m) 2>/dev/null || echo unknown`
2087uname -r = `(uname -r) 2>/dev/null || echo unknown`
2088uname -s = `(uname -s) 2>/dev/null || echo unknown`
2089uname -v = `(uname -v) 2>/dev/null || echo unknown`
2090
2091/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2092/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2093
2094/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2095/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2096/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2097/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2098/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2099/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2100/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2101
2102_ASUNAME
2103
2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105for as_dir in $PATH
2106do
2107  IFS=$as_save_IFS
2108  test -z "$as_dir" && as_dir=.
2109    $as_echo "PATH: $as_dir"
2110  done
2111IFS=$as_save_IFS
2112
2113} >&5
2114
2115cat >&5 <<_ACEOF
2116
2117
2118## ----------- ##
2119## Core tests. ##
2120## ----------- ##
2121
2122_ACEOF
2123
2124
2125# Keep a trace of the command line.
2126# Strip out --no-create and --no-recursion so they do not pile up.
2127# Strip out --silent because we don't want to record it for future runs.
2128# Also quote any args containing shell meta-characters.
2129# Make two passes to allow for proper duplicate-argument suppression.
2130ac_configure_args=
2131ac_configure_args0=
2132ac_configure_args1=
2133ac_must_keep_next=false
2134for ac_pass in 1 2
2135do
2136  for ac_arg
2137  do
2138    case $ac_arg in
2139    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2140    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2141    | -silent | --silent | --silen | --sile | --sil)
2142      continue ;;
2143    *\'*)
2144      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2145    esac
2146    case $ac_pass in
2147    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2148    2)
2149      as_fn_append ac_configure_args1 " '$ac_arg'"
2150      if test $ac_must_keep_next = true; then
2151	ac_must_keep_next=false # Got value, back to normal.
2152      else
2153	case $ac_arg in
2154	  *=* | --config-cache | -C | -disable-* | --disable-* \
2155	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2156	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2157	  | -with-* | --with-* | -without-* | --without-* | --x)
2158	    case "$ac_configure_args0 " in
2159	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2160	    esac
2161	    ;;
2162	  -* ) ac_must_keep_next=true ;;
2163	esac
2164      fi
2165      as_fn_append ac_configure_args " '$ac_arg'"
2166      ;;
2167    esac
2168  done
2169done
2170{ ac_configure_args0=; unset ac_configure_args0;}
2171{ ac_configure_args1=; unset ac_configure_args1;}
2172
2173# When interrupted or exit'd, cleanup temporary files, and complete
2174# config.log.  We remove comments because anyway the quotes in there
2175# would cause problems or look ugly.
2176# WARNING: Use '\'' to represent an apostrophe within the trap.
2177# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2178trap 'exit_status=$?
2179  # Save into config.log some information that might help in debugging.
2180  {
2181    echo
2182
2183    $as_echo "## ---------------- ##
2184## Cache variables. ##
2185## ---------------- ##"
2186    echo
2187    # The following way of writing the cache mishandles newlines in values,
2188(
2189  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2190    eval ac_val=\$$ac_var
2191    case $ac_val in #(
2192    *${as_nl}*)
2193      case $ac_var in #(
2194      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2196      esac
2197      case $ac_var in #(
2198      _ | IFS | as_nl) ;; #(
2199      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2200      *) { eval $ac_var=; unset $ac_var;} ;;
2201      esac ;;
2202    esac
2203  done
2204  (set) 2>&1 |
2205    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2206    *${as_nl}ac_space=\ *)
2207      sed -n \
2208	"s/'\''/'\''\\\\'\'''\''/g;
2209	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2210      ;; #(
2211    *)
2212      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2213      ;;
2214    esac |
2215    sort
2216)
2217    echo
2218
2219    $as_echo "## ----------------- ##
2220## Output variables. ##
2221## ----------------- ##"
2222    echo
2223    for ac_var in $ac_subst_vars
2224    do
2225      eval ac_val=\$$ac_var
2226      case $ac_val in
2227      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228      esac
2229      $as_echo "$ac_var='\''$ac_val'\''"
2230    done | sort
2231    echo
2232
2233    if test -n "$ac_subst_files"; then
2234      $as_echo "## ------------------- ##
2235## File substitutions. ##
2236## ------------------- ##"
2237      echo
2238      for ac_var in $ac_subst_files
2239      do
2240	eval ac_val=\$$ac_var
2241	case $ac_val in
2242	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243	esac
2244	$as_echo "$ac_var='\''$ac_val'\''"
2245      done | sort
2246      echo
2247    fi
2248
2249    if test -s confdefs.h; then
2250      $as_echo "## ----------- ##
2251## confdefs.h. ##
2252## ----------- ##"
2253      echo
2254      cat confdefs.h
2255      echo
2256    fi
2257    test "$ac_signal" != 0 &&
2258      $as_echo "$as_me: caught signal $ac_signal"
2259    $as_echo "$as_me: exit $exit_status"
2260  } >&5
2261  rm -f core *.core core.conftest.* &&
2262    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2263    exit $exit_status
2264' 0
2265for ac_signal in 1 2 13 15; do
2266  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267done
2268ac_signal=0
2269
2270# confdefs.h avoids OS command line length limits that DEFS can exceed.
2271rm -f -r conftest* confdefs.h
2272
2273$as_echo "/* confdefs.h */" > confdefs.h
2274
2275# Predefined preprocessor variables.
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_NAME "$PACKAGE_NAME"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2283_ACEOF
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_VERSION "$PACKAGE_VERSION"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_STRING "$PACKAGE_STRING"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2295_ACEOF
2296
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_URL "$PACKAGE_URL"
2299_ACEOF
2300
2301
2302# Let the site file select an alternate cache file if it wants to.
2303# Prefer an explicitly selected file to automatically selected ones.
2304ac_site_file1=NONE
2305ac_site_file2=NONE
2306if test -n "$CONFIG_SITE"; then
2307  # We do not want a PATH search for config.site.
2308  case $CONFIG_SITE in #((
2309    -*)  ac_site_file1=./$CONFIG_SITE;;
2310    */*) ac_site_file1=$CONFIG_SITE;;
2311    *)   ac_site_file1=./$CONFIG_SITE;;
2312  esac
2313elif test "x$prefix" != xNONE; then
2314  ac_site_file1=$prefix/share/config.site
2315  ac_site_file2=$prefix/etc/config.site
2316else
2317  ac_site_file1=$ac_default_prefix/share/config.site
2318  ac_site_file2=$ac_default_prefix/etc/config.site
2319fi
2320for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2321do
2322  test "x$ac_site_file" = xNONE && continue
2323  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2324    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2325$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2326    sed 's/^/| /' "$ac_site_file" >&5
2327    . "$ac_site_file" \
2328      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330as_fn_error $? "failed to load site script $ac_site_file
2331See \`config.log' for more details" "$LINENO" 5 ; }
2332  fi
2333done
2334
2335if test -r "$cache_file"; then
2336  # Some versions of bash will fail to source /dev/null (special files
2337  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2338  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2339    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2340$as_echo "$as_me: loading cache $cache_file" >&6;}
2341    case $cache_file in
2342      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2343      *)                      . "./$cache_file";;
2344    esac
2345  fi
2346else
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2348$as_echo "$as_me: creating cache $cache_file" >&6;}
2349  >$cache_file
2350fi
2351
2352# Check that the precious variables saved in the cache have kept the same
2353# value.
2354ac_cache_corrupted=false
2355for ac_var in $ac_precious_vars; do
2356  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357  eval ac_new_set=\$ac_env_${ac_var}_set
2358  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359  eval ac_new_val=\$ac_env_${ac_var}_value
2360  case $ac_old_set,$ac_new_set in
2361    set,)
2362      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2363$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2364      ac_cache_corrupted=: ;;
2365    ,set)
2366      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2367$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2368      ac_cache_corrupted=: ;;
2369    ,);;
2370    *)
2371      if test "x$ac_old_val" != "x$ac_new_val"; then
2372	# differences in whitespace do not lead to failure.
2373	ac_old_val_w=`echo x $ac_old_val`
2374	ac_new_val_w=`echo x $ac_new_val`
2375	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2378	  ac_cache_corrupted=:
2379	else
2380	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2381$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382	  eval $ac_var=\$ac_old_val
2383	fi
2384	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2385$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2386	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2387$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2388      fi;;
2389  esac
2390  # Pass precious variables to config.status.
2391  if test "$ac_new_set" = set; then
2392    case $ac_new_val in
2393    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2394    *) ac_arg=$ac_var=$ac_new_val ;;
2395    esac
2396    case " $ac_configure_args " in
2397      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2398      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399    esac
2400  fi
2401done
2402if $ac_cache_corrupted; then
2403  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2407  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2408fi
2409## -------------------- ##
2410## Main body of script. ##
2411## -------------------- ##
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420
2421ac_config_headers="$ac_config_headers config.h"
2422
2423
2424
2425# Initialize Automake
2426am__api_version='1.11'
2427
2428ac_aux_dir=
2429for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2430  if test -f "$ac_dir/install-sh"; then
2431    ac_aux_dir=$ac_dir
2432    ac_install_sh="$ac_aux_dir/install-sh -c"
2433    break
2434  elif test -f "$ac_dir/install.sh"; then
2435    ac_aux_dir=$ac_dir
2436    ac_install_sh="$ac_aux_dir/install.sh -c"
2437    break
2438  elif test -f "$ac_dir/shtool"; then
2439    ac_aux_dir=$ac_dir
2440    ac_install_sh="$ac_aux_dir/shtool install -c"
2441    break
2442  fi
2443done
2444if test -z "$ac_aux_dir"; then
2445  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2446fi
2447
2448# These three variables are undocumented and unsupported,
2449# and are intended to be withdrawn in a future Autoconf release.
2450# They can cause serious problems if a builder's source tree is in a directory
2451# whose full name contains unusual characters.
2452ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2453ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2454ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2455
2456
2457# Find a good install program.  We prefer a C program (faster),
2458# so one script is as good as another.  But avoid the broken or
2459# incompatible versions:
2460# SysV /etc/install, /usr/sbin/install
2461# SunOS /usr/etc/install
2462# IRIX /sbin/install
2463# AIX /bin/install
2464# AmigaOS /C/install, which installs bootblocks on floppy discs
2465# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468# OS/2's system install, which has a completely different semantic
2469# ./install, which can be erroneously created by make from ./install.sh.
2470# Reject install programs that cannot install multiple files.
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2472$as_echo_n "checking for a BSD-compatible install... " >&6; }
2473if test -z "$INSTALL"; then
2474if test "${ac_cv_path_install+set}" = set; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480  IFS=$as_save_IFS
2481  test -z "$as_dir" && as_dir=.
2482    # Account for people who put trailing slashes in PATH elements.
2483case $as_dir/ in #((
2484  ./ | .// | /[cC]/* | \
2485  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2486  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2487  /usr/ucb/* ) ;;
2488  *)
2489    # OSF1 and SCO ODT 3.0 have their own names for install.
2490    # Don't use installbsd from OSF since it installs stuff as root
2491    # by default.
2492    for ac_prog in ginstall scoinst install; do
2493      for ac_exec_ext in '' $ac_executable_extensions; do
2494	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2495	  if test $ac_prog = install &&
2496	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497	    # AIX install.  It has an incompatible calling convention.
2498	    :
2499	  elif test $ac_prog = install &&
2500	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501	    # program-specific install script used by HP pwplus--don't use.
2502	    :
2503	  else
2504	    rm -rf conftest.one conftest.two conftest.dir
2505	    echo one > conftest.one
2506	    echo two > conftest.two
2507	    mkdir conftest.dir
2508	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2509	      test -s conftest.one && test -s conftest.two &&
2510	      test -s conftest.dir/conftest.one &&
2511	      test -s conftest.dir/conftest.two
2512	    then
2513	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2514	      break 3
2515	    fi
2516	  fi
2517	fi
2518      done
2519    done
2520    ;;
2521esac
2522
2523  done
2524IFS=$as_save_IFS
2525
2526rm -rf conftest.one conftest.two conftest.dir
2527
2528fi
2529  if test "${ac_cv_path_install+set}" = set; then
2530    INSTALL=$ac_cv_path_install
2531  else
2532    # As a last resort, use the slow shell script.  Don't cache a
2533    # value for INSTALL within a source directory, because that will
2534    # break other packages using the cache if that directory is
2535    # removed, or if the value is a relative name.
2536    INSTALL=$ac_install_sh
2537  fi
2538fi
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2540$as_echo "$INSTALL" >&6; }
2541
2542# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543# It thinks the first close brace ends the variable substitution.
2544test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545
2546test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547
2548test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2551$as_echo_n "checking whether build environment is sane... " >&6; }
2552# Just in case
2553sleep 1
2554echo timestamp > conftest.file
2555# Reject unsafe characters in $srcdir or the absolute working directory
2556# name.  Accept space and tab only in the latter.
2557am_lf='
2558'
2559case `pwd` in
2560  *[\\\"\#\$\&\'\`$am_lf]*)
2561    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2562esac
2563case $srcdir in
2564  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2565    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2566esac
2567
2568# Do `set' in a subshell so we don't clobber the current shell's
2569# arguments.  Must try -L first in case configure is actually a
2570# symlink; some systems play weird games with the mod time of symlinks
2571# (eg FreeBSD returns the mod time of the symlink's containing
2572# directory).
2573if (
2574   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2575   if test "$*" = "X"; then
2576      # -L didn't work.
2577      set X `ls -t "$srcdir/configure" conftest.file`
2578   fi
2579   rm -f conftest.file
2580   if test "$*" != "X $srcdir/configure conftest.file" \
2581      && test "$*" != "X conftest.file $srcdir/configure"; then
2582
2583      # If neither matched, then we have a broken ls.  This can happen
2584      # if, for instance, CONFIG_SHELL is bash and it inherits a
2585      # broken ls alias from the environment.  This has actually
2586      # happened.  Such a system could not be considered "sane".
2587      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2588alias in your environment" "$LINENO" 5
2589   fi
2590
2591   test "$2" = conftest.file
2592   )
2593then
2594   # Ok.
2595   :
2596else
2597   as_fn_error $? "newly created file is older than distributed files!
2598Check your system clock" "$LINENO" 5
2599fi
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601$as_echo "yes" >&6; }
2602test "$program_prefix" != NONE &&
2603  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2604# Use a double $ so make ignores it.
2605test "$program_suffix" != NONE &&
2606  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2607# Double any \ or $.
2608# By default was `s,x,x', remove it if useless.
2609ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2610program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2611
2612# expand $ac_aux_dir to an absolute path
2613am_aux_dir=`cd $ac_aux_dir && pwd`
2614
2615if test x"${MISSING+set}" != xset; then
2616  case $am_aux_dir in
2617  *\ * | *\	*)
2618    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2619  *)
2620    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2621  esac
2622fi
2623# Use eval to expand $SHELL
2624if eval "$MISSING --run true"; then
2625  am_missing_run="$MISSING --run "
2626else
2627  am_missing_run=
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2629$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2630fi
2631
2632if test x"${install_sh}" != xset; then
2633  case $am_aux_dir in
2634  *\ * | *\	*)
2635    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2636  *)
2637    install_sh="\${SHELL} $am_aux_dir/install-sh"
2638  esac
2639fi
2640
2641# Installed binaries are usually stripped using `strip' when the user
2642# run `make install-strip'.  However `strip' might not be the right
2643# tool to use in cross-compilation environments, therefore Automake
2644# will honor the `STRIP' environment variable to overrule this program.
2645if test "$cross_compiling" != no; then
2646  if test -n "$ac_tool_prefix"; then
2647  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2648set dummy ${ac_tool_prefix}strip; ac_word=$2
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
2651if test "${ac_cv_prog_STRIP+set}" = set; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  if test -n "$STRIP"; then
2655  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660  IFS=$as_save_IFS
2661  test -z "$as_dir" && as_dir=.
2662    for ac_exec_ext in '' $ac_executable_extensions; do
2663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666    break 2
2667  fi
2668done
2669  done
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674STRIP=$ac_cv_prog_STRIP
2675if test -n "$STRIP"; then
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2677$as_echo "$STRIP" >&6; }
2678else
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
2681fi
2682
2683
2684fi
2685if test -z "$ac_cv_prog_STRIP"; then
2686  ac_ct_STRIP=$STRIP
2687  # Extract the first word of "strip", so it can be a program name with args.
2688set dummy strip; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$ac_ct_STRIP"; then
2695  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704    ac_cv_prog_ac_ct_STRIP="strip"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2715if test -n "$ac_ct_STRIP"; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2717$as_echo "$ac_ct_STRIP" >&6; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723  if test "x$ac_ct_STRIP" = x; then
2724    STRIP=":"
2725  else
2726    case $cross_compiling:$ac_tool_warned in
2727yes:)
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730ac_tool_warned=yes ;;
2731esac
2732    STRIP=$ac_ct_STRIP
2733  fi
2734else
2735  STRIP="$ac_cv_prog_STRIP"
2736fi
2737
2738fi
2739INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2742$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2743if test -z "$MKDIR_P"; then
2744  if test "${ac_cv_path_mkdir+set}" = set; then :
2745  $as_echo_n "(cached) " >&6
2746else
2747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752    for ac_prog in mkdir gmkdir; do
2753	 for ac_exec_ext in '' $ac_executable_extensions; do
2754	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2755	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2756	     'mkdir (GNU coreutils) '* | \
2757	     'mkdir (coreutils) '* | \
2758	     'mkdir (fileutils) '4.1*)
2759	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2760	       break 3;;
2761	   esac
2762	 done
2763       done
2764  done
2765IFS=$as_save_IFS
2766
2767fi
2768
2769  test -d ./--version && rmdir ./--version
2770  if test "${ac_cv_path_mkdir+set}" = set; then
2771    MKDIR_P="$ac_cv_path_mkdir -p"
2772  else
2773    # As a last resort, use the slow shell script.  Don't cache a
2774    # value for MKDIR_P within a source directory, because that will
2775    # break other packages using the cache if that directory is
2776    # removed, or if the value is a relative name.
2777    MKDIR_P="$ac_install_sh -d"
2778  fi
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2781$as_echo "$MKDIR_P" >&6; }
2782
2783mkdir_p="$MKDIR_P"
2784case $mkdir_p in
2785  [\\/$]* | ?:[\\/]*) ;;
2786  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2787esac
2788
2789for ac_prog in gawk mawk nawk awk
2790do
2791  # Extract the first word of "$ac_prog", so it can be a program name with args.
2792set dummy $ac_prog; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if test "${ac_cv_prog_AWK+set}" = set; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$AWK"; then
2799  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_AWK="$ac_prog"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818AWK=$ac_cv_prog_AWK
2819if test -n "$AWK"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821$as_echo "$AWK" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828  test -n "$AWK" && break
2829done
2830
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833set x ${MAKE-make}
2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  cat >conftest.make <<\_ACEOF
2839SHELL = /bin/sh
2840all:
2841	@echo '@@@%%%=$(MAKE)=@@@%%%'
2842_ACEOF
2843# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2844case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845  *@@@%%%=?*=@@@%%%*)
2846    eval ac_cv_prog_make_${ac_make}_set=yes;;
2847  *)
2848    eval ac_cv_prog_make_${ac_make}_set=no;;
2849esac
2850rm -f conftest.make
2851fi
2852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854$as_echo "yes" >&6; }
2855  SET_MAKE=
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859  SET_MAKE="MAKE=${MAKE-make}"
2860fi
2861
2862rm -rf .tst 2>/dev/null
2863mkdir .tst 2>/dev/null
2864if test -d .tst; then
2865  am__leading_dot=.
2866else
2867  am__leading_dot=_
2868fi
2869rmdir .tst 2>/dev/null
2870
2871if test "`cd $srcdir && pwd`" != "`pwd`"; then
2872  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2873  # is not polluted with repeated "-I."
2874  am__isrc=' -I$(srcdir)'
2875  # test to see if srcdir already configured
2876  if test -f $srcdir/config.status; then
2877    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2878  fi
2879fi
2880
2881# test whether we have cygpath
2882if test -z "$CYGPATH_W"; then
2883  if (cygpath --version) >/dev/null 2>/dev/null; then
2884    CYGPATH_W='cygpath -w'
2885  else
2886    CYGPATH_W=echo
2887  fi
2888fi
2889
2890
2891# Define the identity of the package.
2892 PACKAGE='libXt'
2893 VERSION='1.1.1'
2894
2895
2896cat >>confdefs.h <<_ACEOF
2897#define PACKAGE "$PACKAGE"
2898_ACEOF
2899
2900
2901cat >>confdefs.h <<_ACEOF
2902#define VERSION "$VERSION"
2903_ACEOF
2904
2905# Some tools Automake needs.
2906
2907ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2908
2909
2910AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2911
2912
2913AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2914
2915
2916AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2917
2918
2919MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920
2921# We need awk for the "check" target.  The system "awk" is bad on
2922# some platforms.
2923# Always define AMTAR for backward compatibility.
2924
2925AMTAR=${AMTAR-"${am_missing_run}tar"}
2926
2927am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2928
2929
2930
2931
2932
2933
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2935$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2936    # Check whether --enable-maintainer-mode was given.
2937if test "${enable_maintainer_mode+set}" = set; then :
2938  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2939else
2940  USE_MAINTAINER_MODE=no
2941fi
2942
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2944$as_echo "$USE_MAINTAINER_MODE" >&6; }
2945   if test $USE_MAINTAINER_MODE = yes; then
2946  MAINTAINER_MODE_TRUE=
2947  MAINTAINER_MODE_FALSE='#'
2948else
2949  MAINTAINER_MODE_TRUE='#'
2950  MAINTAINER_MODE_FALSE=
2951fi
2952
2953  MAINT=$MAINTAINER_MODE_TRUE
2954
2955
2956
2957# Initialize libtool
2958case `pwd` in
2959  *\ * | *\	*)
2960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2961$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2962esac
2963
2964
2965
2966macro_version='2.2.6b'
2967macro_revision='1.3017'
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981ltmain="$ac_aux_dir/ltmain.sh"
2982
2983# Make sure we can run config.sub.
2984$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2985  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2986
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2988$as_echo_n "checking build system type... " >&6; }
2989if test "${ac_cv_build+set}" = set; then :
2990  $as_echo_n "(cached) " >&6
2991else
2992  ac_build_alias=$build_alias
2993test "x$ac_build_alias" = x &&
2994  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2995test "x$ac_build_alias" = x &&
2996  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2997ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2998  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2999
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3002$as_echo "$ac_cv_build" >&6; }
3003case $ac_cv_build in
3004*-*-*) ;;
3005*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3006esac
3007build=$ac_cv_build
3008ac_save_IFS=$IFS; IFS='-'
3009set x $ac_cv_build
3010shift
3011build_cpu=$1
3012build_vendor=$2
3013shift; shift
3014# Remember, the first character of IFS is used to create $*,
3015# except with old shells:
3016build_os=$*
3017IFS=$ac_save_IFS
3018case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3019
3020
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3022$as_echo_n "checking host system type... " >&6; }
3023if test "${ac_cv_host+set}" = set; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test "x$host_alias" = x; then
3027  ac_cv_host=$ac_cv_build
3028else
3029  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3030    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3031fi
3032
3033fi
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3035$as_echo "$ac_cv_host" >&6; }
3036case $ac_cv_host in
3037*-*-*) ;;
3038*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3039esac
3040host=$ac_cv_host
3041ac_save_IFS=$IFS; IFS='-'
3042set x $ac_cv_host
3043shift
3044host_cpu=$1
3045host_vendor=$2
3046shift; shift
3047# Remember, the first character of IFS is used to create $*,
3048# except with old shells:
3049host_os=$*
3050IFS=$ac_save_IFS
3051case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3052
3053
3054DEPDIR="${am__leading_dot}deps"
3055
3056ac_config_commands="$ac_config_commands depfiles"
3057
3058
3059am_make=${MAKE-make}
3060cat > confinc << 'END'
3061am__doit:
3062	@echo this is the am__doit target
3063.PHONY: am__doit
3064END
3065# If we don't find an include directive, just comment out the code.
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3067$as_echo_n "checking for style of include used by $am_make... " >&6; }
3068am__include="#"
3069am__quote=
3070_am_result=none
3071# First try GNU make style include.
3072echo "include confinc" > confmf
3073# Ignore all kinds of additional output from `make'.
3074case `$am_make -s -f confmf 2> /dev/null` in #(
3075*the\ am__doit\ target*)
3076  am__include=include
3077  am__quote=
3078  _am_result=GNU
3079  ;;
3080esac
3081# Now try BSD make style include.
3082if test "$am__include" = "#"; then
3083   echo '.include "confinc"' > confmf
3084   case `$am_make -s -f confmf 2> /dev/null` in #(
3085   *the\ am__doit\ target*)
3086     am__include=.include
3087     am__quote="\""
3088     _am_result=BSD
3089     ;;
3090   esac
3091fi
3092
3093
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3095$as_echo "$_am_result" >&6; }
3096rm -f confinc confmf
3097
3098# Check whether --enable-dependency-tracking was given.
3099if test "${enable_dependency_tracking+set}" = set; then :
3100  enableval=$enable_dependency_tracking;
3101fi
3102
3103if test "x$enable_dependency_tracking" != xno; then
3104  am_depcomp="$ac_aux_dir/depcomp"
3105  AMDEPBACKSLASH='\'
3106fi
3107 if test "x$enable_dependency_tracking" != xno; then
3108  AMDEP_TRUE=
3109  AMDEP_FALSE='#'
3110else
3111  AMDEP_TRUE='#'
3112  AMDEP_FALSE=
3113fi
3114
3115
3116ac_ext=c
3117ac_cpp='$CPP $CPPFLAGS'
3118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121if test -n "$ac_tool_prefix"; then
3122  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3123set dummy ${ac_tool_prefix}gcc; ac_word=$2
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
3126if test "${ac_cv_prog_CC+set}" = set; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  if test -n "$CC"; then
3130  ac_cv_prog_CC="$CC" # Let the user override the test.
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144  done
3145IFS=$as_save_IFS
3146
3147fi
3148fi
3149CC=$ac_cv_prog_CC
3150if test -n "$CC"; then
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152$as_echo "$CC" >&6; }
3153else
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
3156fi
3157
3158
3159fi
3160if test -z "$ac_cv_prog_CC"; then
3161  ac_ct_CC=$CC
3162  # Extract the first word of "gcc", so it can be a program name with args.
3163set dummy gcc; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  if test -n "$ac_ct_CC"; then
3170  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179    ac_cv_prog_ac_ct_CC="gcc"
3180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190if test -n "$ac_ct_CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192$as_echo "$ac_ct_CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198  if test "x$ac_ct_CC" = x; then
3199    CC=""
3200  else
3201    case $cross_compiling:$ac_tool_warned in
3202yes:)
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205ac_tool_warned=yes ;;
3206esac
3207    CC=$ac_ct_CC
3208  fi
3209else
3210  CC="$ac_cv_prog_CC"
3211fi
3212
3213if test -z "$CC"; then
3214          if test -n "$ac_tool_prefix"; then
3215    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3216set dummy ${ac_tool_prefix}cc; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if test "${ac_cv_prog_CC+set}" = set; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  if test -n "$CC"; then
3223  ac_cv_prog_CC="$CC" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232    ac_cv_prog_CC="${ac_tool_prefix}cc"
3233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237  done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242CC=$ac_cv_prog_CC
3243if test -n "$CC"; then
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245$as_echo "$CC" >&6; }
3246else
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251
3252  fi
3253fi
3254if test -z "$CC"; then
3255  # Extract the first word of "cc", so it can be a program name with args.
3256set dummy cc; ac_word=$2
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if test "${ac_cv_prog_CC+set}" = set; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  if test -n "$CC"; then
3263  ac_cv_prog_CC="$CC" # Let the user override the test.
3264else
3265  ac_prog_rejected=no
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271    for ac_exec_ext in '' $ac_executable_extensions; do
3272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3274       ac_prog_rejected=yes
3275       continue
3276     fi
3277    ac_cv_prog_CC="cc"
3278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279    break 2
3280  fi
3281done
3282  done
3283IFS=$as_save_IFS
3284
3285if test $ac_prog_rejected = yes; then
3286  # We found a bogon in the path, so make sure we never use it.
3287  set dummy $ac_cv_prog_CC
3288  shift
3289  if test $# != 0; then
3290    # We chose a different compiler from the bogus one.
3291    # However, it has the same basename, so the bogon will be chosen
3292    # first if we set CC to just the basename; use the full file name.
3293    shift
3294    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3295  fi
3296fi
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309fi
3310if test -z "$CC"; then
3311  if test -n "$ac_tool_prefix"; then
3312  for ac_prog in cl.exe
3313  do
3314    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317$as_echo_n "checking for $ac_word... " >&6; }
3318if test "${ac_cv_prog_CC+set}" = set; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  if test -n "$CC"; then
3322  ac_cv_prog_CC="$CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339fi
3340fi
3341CC=$ac_cv_prog_CC
3342if test -n "$CC"; then
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344$as_echo "$CC" >&6; }
3345else
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348fi
3349
3350
3351    test -n "$CC" && break
3352  done
3353fi
3354if test -z "$CC"; then
3355  ac_ct_CC=$CC
3356  for ac_prog in cl.exe
3357do
3358  # Extract the first word of "$ac_prog", so it can be a program name with args.
3359set dummy $ac_prog; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
3362if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  if test -n "$ac_ct_CC"; then
3366  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373    for ac_exec_ext in '' $ac_executable_extensions; do
3374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375    ac_cv_prog_ac_ct_CC="$ac_prog"
3376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380  done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386if test -n "$ac_ct_CC"; then
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388$as_echo "$ac_ct_CC" >&6; }
3389else
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395  test -n "$ac_ct_CC" && break
3396done
3397
3398  if test "x$ac_ct_CC" = x; then
3399    CC=""
3400  else
3401    case $cross_compiling:$ac_tool_warned in
3402yes:)
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405ac_tool_warned=yes ;;
3406esac
3407    CC=$ac_ct_CC
3408  fi
3409fi
3410
3411fi
3412
3413
3414test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416as_fn_error $? "no acceptable C compiler found in \$PATH
3417See \`config.log' for more details" "$LINENO" 5 ; }
3418
3419# Provide some information about the compiler.
3420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3421set X $ac_compile
3422ac_compiler=$2
3423for ac_option in --version -v -V -qversion; do
3424  { { ac_try="$ac_compiler $ac_option >&5"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432  ac_status=$?
3433  if test -s conftest.err; then
3434    sed '10a\
3435... rest of stderr output deleted ...
3436         10q' conftest.err >conftest.er1
3437    cat conftest.er1 >&5
3438  fi
3439  rm -f conftest.er1 conftest.err
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }
3442done
3443
3444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455ac_clean_files_save=$ac_clean_files
3456ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3457# Try to create an executable without -o first, disregard a.out.
3458# It will help us diagnose broken compilers, and finding out an intuition
3459# of exeext.
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3461$as_echo_n "checking whether the C compiler works... " >&6; }
3462ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3463
3464# The possible output files:
3465ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3466
3467ac_rmfiles=
3468for ac_file in $ac_files
3469do
3470  case $ac_file in
3471    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3472    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3473  esac
3474done
3475rm -f $ac_rmfiles
3476
3477if { { ac_try="$ac_link_default"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_link_default") 2>&5
3485  ac_status=$?
3486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }; then :
3488  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3489# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3490# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3491# so that the user can short-circuit this test for compilers unknown to
3492# Autoconf.
3493for ac_file in $ac_files ''
3494do
3495  test -f "$ac_file" || continue
3496  case $ac_file in
3497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3498	;;
3499    [ab].out )
3500	# We found the default executable, but exeext='' is most
3501	# certainly right.
3502	break;;
3503    *.* )
3504	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3505	then :; else
3506	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507	fi
3508	# We set ac_cv_exeext here because the later test for it is not
3509	# safe: cross compilers may not add the suffix if given an `-o'
3510	# argument, so we may need to know it at that point already.
3511	# Even if this section looks crufty: it has the advantage of
3512	# actually working.
3513	break;;
3514    * )
3515	break;;
3516  esac
3517done
3518test "$ac_cv_exeext" = no && ac_cv_exeext=
3519
3520else
3521  ac_file=''
3522fi
3523if test -z "$ac_file"; then :
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526$as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error 77 "C compiler cannot create executables
3532See \`config.log' for more details" "$LINENO" 5 ; }
3533else
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535$as_echo "yes" >&6; }
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3538$as_echo_n "checking for C compiler default output file name... " >&6; }
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3540$as_echo "$ac_file" >&6; }
3541ac_exeext=$ac_cv_exeext
3542
3543rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3544ac_clean_files=$ac_clean_files_save
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3546$as_echo_n "checking for suffix of executables... " >&6; }
3547if { { ac_try="$ac_link"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554  (eval "$ac_link") 2>&5
3555  ac_status=$?
3556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557  test $ac_status = 0; }; then :
3558  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3559# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3560# work properly (i.e., refer to `conftest.exe'), while it won't with
3561# `rm'.
3562for ac_file in conftest.exe conftest conftest.*; do
3563  test -f "$ac_file" || continue
3564  case $ac_file in
3565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567	  break;;
3568    * ) break;;
3569  esac
3570done
3571else
3572  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3575See \`config.log' for more details" "$LINENO" 5 ; }
3576fi
3577rm -f conftest conftest$ac_cv_exeext
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3579$as_echo "$ac_cv_exeext" >&6; }
3580
3581rm -f conftest.$ac_ext
3582EXEEXT=$ac_cv_exeext
3583ac_exeext=$EXEEXT
3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586#include <stdio.h>
3587int
3588main ()
3589{
3590FILE *f = fopen ("conftest.out", "w");
3591 return ferror (f) || fclose (f) != 0;
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597ac_clean_files="$ac_clean_files conftest.out"
3598# Check that the compiler produces executables we can run.  If not, either
3599# the compiler is broken, or we cross compile.
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601$as_echo_n "checking whether we are cross compiling... " >&6; }
3602if test "$cross_compiling" != yes; then
3603  { { ac_try="$ac_link"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609$as_echo "$ac_try_echo"; } >&5
3610  (eval "$ac_link") 2>&5
3611  ac_status=$?
3612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613  test $ac_status = 0; }
3614  if { ac_try='./conftest$ac_cv_exeext'
3615  { { case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621  (eval "$ac_try") 2>&5
3622  ac_status=$?
3623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624  test $ac_status = 0; }; }; then
3625    cross_compiling=no
3626  else
3627    if test "$cross_compiling" = maybe; then
3628	cross_compiling=yes
3629    else
3630	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632as_fn_error $? "cannot run C compiled programs.
3633If you meant to cross compile, use \`--host'.
3634See \`config.log' for more details" "$LINENO" 5 ; }
3635    fi
3636  fi
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3639$as_echo "$cross_compiling" >&6; }
3640
3641rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3642ac_clean_files=$ac_clean_files_save
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3644$as_echo_n "checking for suffix of object files... " >&6; }
3645if test "${ac_cv_objext+set}" = set; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659rm -f conftest.o conftest.obj
3660if { { ac_try="$ac_compile"
3661case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667  (eval "$ac_compile") 2>&5
3668  ac_status=$?
3669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670  test $ac_status = 0; }; then :
3671  for ac_file in conftest.o conftest.obj conftest.*; do
3672  test -f "$ac_file" || continue;
3673  case $ac_file in
3674    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3675    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3676       break;;
3677  esac
3678done
3679else
3680  $as_echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot compute suffix of object files: cannot compile
3686See \`config.log' for more details" "$LINENO" 5 ; }
3687fi
3688rm -f conftest.$ac_cv_objext conftest.$ac_ext
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3691$as_echo "$ac_cv_objext" >&6; }
3692OBJEXT=$ac_cv_objext
3693ac_objext=$OBJEXT
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3695$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3696if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3697  $as_echo_n "(cached) " >&6
3698else
3699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701
3702int
3703main ()
3704{
3705#ifndef __GNUC__
3706       choke me
3707#endif
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_compiler_gnu=yes
3715else
3716  ac_compiler_gnu=no
3717fi
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719ac_cv_c_compiler_gnu=$ac_compiler_gnu
3720
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3723$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3724if test $ac_compiler_gnu = yes; then
3725  GCC=yes
3726else
3727  GCC=
3728fi
3729ac_test_CFLAGS=${CFLAGS+set}
3730ac_save_CFLAGS=$CFLAGS
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3732$as_echo_n "checking whether $CC accepts -g... " >&6; }
3733if test "${ac_cv_prog_cc_g+set}" = set; then :
3734  $as_echo_n "(cached) " >&6
3735else
3736  ac_save_c_werror_flag=$ac_c_werror_flag
3737   ac_c_werror_flag=yes
3738   ac_cv_prog_cc_g=no
3739   CFLAGS="-g"
3740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h.  */
3742
3743int
3744main ()
3745{
3746
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751if ac_fn_c_try_compile "$LINENO"; then :
3752  ac_cv_prog_cc_g=yes
3753else
3754  CFLAGS=""
3755      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766if ac_fn_c_try_compile "$LINENO"; then :
3767
3768else
3769  ac_c_werror_flag=$ac_save_c_werror_flag
3770	 CFLAGS="-g"
3771	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
3783  ac_cv_prog_cc_g=yes
3784fi
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790   ac_c_werror_flag=$ac_save_c_werror_flag
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3793$as_echo "$ac_cv_prog_cc_g" >&6; }
3794if test "$ac_test_CFLAGS" = set; then
3795  CFLAGS=$ac_save_CFLAGS
3796elif test $ac_cv_prog_cc_g = yes; then
3797  if test "$GCC" = yes; then
3798    CFLAGS="-g -O2"
3799  else
3800    CFLAGS="-g"
3801  fi
3802else
3803  if test "$GCC" = yes; then
3804    CFLAGS="-O2"
3805  else
3806    CFLAGS=
3807  fi
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3810$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3811if test "${ac_cv_prog_cc_c89+set}" = set; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  ac_cv_prog_cc_c89=no
3815ac_save_CC=$CC
3816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818#include <stdarg.h>
3819#include <stdio.h>
3820#include <sys/types.h>
3821#include <sys/stat.h>
3822/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3823struct buf { int x; };
3824FILE * (*rcsopen) (struct buf *, struct stat *, int);
3825static char *e (p, i)
3826     char **p;
3827     int i;
3828{
3829  return p[i];
3830}
3831static char *f (char * (*g) (char **, int), char **p, ...)
3832{
3833  char *s;
3834  va_list v;
3835  va_start (v,p);
3836  s = g (p, va_arg (v,int));
3837  va_end (v);
3838  return s;
3839}
3840
3841/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3842   function prototypes and stuff, but not '\xHH' hex character constants.
3843   These don't provoke an error unfortunately, instead are silently treated
3844   as 'x'.  The following induces an error, until -std is added to get
3845   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3846   array size at least.  It's necessary to write '\x00'==0 to get something
3847   that's true only with -std.  */
3848int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3849
3850/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3851   inside strings and character constants.  */
3852#define FOO(x) 'x'
3853int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3854
3855int test (int i, double x);
3856struct s1 {int (*f) (int a);};
3857struct s2 {int (*f) (double a);};
3858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3859int argc;
3860char **argv;
3861int
3862main ()
3863{
3864return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3870	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871do
3872  CC="$ac_save_CC $ac_arg"
3873  if ac_fn_c_try_compile "$LINENO"; then :
3874  ac_cv_prog_cc_c89=$ac_arg
3875fi
3876rm -f core conftest.err conftest.$ac_objext
3877  test "x$ac_cv_prog_cc_c89" != "xno" && break
3878done
3879rm -f conftest.$ac_ext
3880CC=$ac_save_CC
3881
3882fi
3883# AC_CACHE_VAL
3884case "x$ac_cv_prog_cc_c89" in
3885  x)
3886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3887$as_echo "none needed" >&6; } ;;
3888  xno)
3889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3890$as_echo "unsupported" >&6; } ;;
3891  *)
3892    CC="$CC $ac_cv_prog_cc_c89"
3893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3894$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3895esac
3896if test "x$ac_cv_prog_cc_c89" != xno; then :
3897
3898fi
3899
3900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906depcc="$CC"   am_compiler_list=
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3909$as_echo_n "checking dependency style of $depcc... " >&6; }
3910if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3914  # We make a subdir and do the tests there.  Otherwise we can end up
3915  # making bogus files that we don't know about and never remove.  For
3916  # instance it was reported that on HP-UX the gcc test will end up
3917  # making a dummy file named `D' -- because `-MD' means `put the output
3918  # in D'.
3919  mkdir conftest.dir
3920  # Copy depcomp to subdir because otherwise we won't find it if we're
3921  # using a relative directory.
3922  cp "$am_depcomp" conftest.dir
3923  cd conftest.dir
3924  # We will build objects and dependencies in a subdirectory because
3925  # it helps to detect inapplicable dependency modes.  For instance
3926  # both Tru64's cc and ICC support -MD to output dependencies as a
3927  # side effect of compilation, but ICC will put the dependencies in
3928  # the current directory while Tru64 will put them in the object
3929  # directory.
3930  mkdir sub
3931
3932  am_cv_CC_dependencies_compiler_type=none
3933  if test "$am_compiler_list" = ""; then
3934     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3935  fi
3936  am__universal=false
3937  case " $depcc " in #(
3938     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3939     esac
3940
3941  for depmode in $am_compiler_list; do
3942    # Setup a source with many dependencies, because some compilers
3943    # like to wrap large dependency lists on column 80 (with \), and
3944    # we should not choose a depcomp mode which is confused by this.
3945    #
3946    # We need to recreate these files for each test, as the compiler may
3947    # overwrite some of them when testing with obscure command lines.
3948    # This happens at least with the AIX C compiler.
3949    : > sub/conftest.c
3950    for i in 1 2 3 4 5 6; do
3951      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3952      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3953      # Solaris 8's {/usr,}/bin/sh.
3954      touch sub/conftst$i.h
3955    done
3956    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3957
3958    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3959    # mode.  It turns out that the SunPro C++ compiler does not properly
3960    # handle `-M -o', and we need to detect this.  Also, some Intel
3961    # versions had trouble with output in subdirs
3962    am__obj=sub/conftest.${OBJEXT-o}
3963    am__minus_obj="-o $am__obj"
3964    case $depmode in
3965    gcc)
3966      # This depmode causes a compiler race in universal mode.
3967      test "$am__universal" = false || continue
3968      ;;
3969    nosideeffect)
3970      # after this tag, mechanisms are not by side-effect, so they'll
3971      # only be used when explicitly requested
3972      if test "x$enable_dependency_tracking" = xyes; then
3973	continue
3974      else
3975	break
3976      fi
3977      ;;
3978    msvisualcpp | msvcmsys)
3979      # This compiler won't grok `-c -o', but also, the minuso test has
3980      # not run yet.  These depmodes are late enough in the game, and
3981      # so weak that their functioning should not be impacted.
3982      am__obj=conftest.${OBJEXT-o}
3983      am__minus_obj=
3984      ;;
3985    none) break ;;
3986    esac
3987    if depmode=$depmode \
3988       source=sub/conftest.c object=$am__obj \
3989       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3991         >/dev/null 2>conftest.err &&
3992       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3993       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3994       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3995       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3996      # icc doesn't choke on unknown options, it will just issue warnings
3997      # or remarks (even with -Werror).  So we grep stderr for any message
3998      # that says an option was ignored or not supported.
3999      # When given -MP, icc 7.0 and 7.1 complain thusly:
4000      #   icc: Command line warning: ignoring option '-M'; no argument required
4001      # The diagnosis changed in icc 8.0:
4002      #   icc: Command line remark: option '-MP' not supported
4003      if (grep 'ignoring option' conftest.err ||
4004          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4005        am_cv_CC_dependencies_compiler_type=$depmode
4006        break
4007      fi
4008    fi
4009  done
4010
4011  cd ..
4012  rm -rf conftest.dir
4013else
4014  am_cv_CC_dependencies_compiler_type=none
4015fi
4016
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4019$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4020CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4021
4022 if
4023  test "x$enable_dependency_tracking" != xno \
4024  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4025  am__fastdepCC_TRUE=
4026  am__fastdepCC_FALSE='#'
4027else
4028  am__fastdepCC_TRUE='#'
4029  am__fastdepCC_FALSE=
4030fi
4031
4032
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4034$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4035if test "${ac_cv_path_SED+set}" = set; then :
4036  $as_echo_n "(cached) " >&6
4037else
4038            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4039     for ac_i in 1 2 3 4 5 6 7; do
4040       ac_script="$ac_script$as_nl$ac_script"
4041     done
4042     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4043     { ac_script=; unset ac_script;}
4044     if test -z "$SED"; then
4045  ac_path_SED_found=false
4046  # Loop through the user's path and test for each of PROGNAME-LIST
4047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050  IFS=$as_save_IFS
4051  test -z "$as_dir" && as_dir=.
4052    for ac_prog in sed gsed; do
4053    for ac_exec_ext in '' $ac_executable_extensions; do
4054      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4055      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4056# Check for GNU ac_path_SED and select it if it is found.
4057  # Check for GNU $ac_path_SED
4058case `"$ac_path_SED" --version 2>&1` in
4059*GNU*)
4060  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4061*)
4062  ac_count=0
4063  $as_echo_n 0123456789 >"conftest.in"
4064  while :
4065  do
4066    cat "conftest.in" "conftest.in" >"conftest.tmp"
4067    mv "conftest.tmp" "conftest.in"
4068    cp "conftest.in" "conftest.nl"
4069    $as_echo '' >> "conftest.nl"
4070    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072    as_fn_arith $ac_count + 1 && ac_count=$as_val
4073    if test $ac_count -gt ${ac_path_SED_max-0}; then
4074      # Best one so far, save it but keep looking for a better one
4075      ac_cv_path_SED="$ac_path_SED"
4076      ac_path_SED_max=$ac_count
4077    fi
4078    # 10*(2^10) chars as input seems more than enough
4079    test $ac_count -gt 10 && break
4080  done
4081  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082esac
4083
4084      $ac_path_SED_found && break 3
4085    done
4086  done
4087  done
4088IFS=$as_save_IFS
4089  if test -z "$ac_cv_path_SED"; then
4090    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4091  fi
4092else
4093  ac_cv_path_SED=$SED
4094fi
4095
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4098$as_echo "$ac_cv_path_SED" >&6; }
4099 SED="$ac_cv_path_SED"
4100  rm -f conftest.sed
4101
4102test -z "$SED" && SED=sed
4103Xsed="$SED -e 1s/^X//"
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4116$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4117if test "${ac_cv_path_GREP+set}" = set; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  if test -z "$GREP"; then
4121  ac_path_GREP_found=false
4122  # Loop through the user's path and test for each of PROGNAME-LIST
4123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128    for ac_prog in grep ggrep; do
4129    for ac_exec_ext in '' $ac_executable_extensions; do
4130      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4131      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4132# Check for GNU ac_path_GREP and select it if it is found.
4133  # Check for GNU $ac_path_GREP
4134case `"$ac_path_GREP" --version 2>&1` in
4135*GNU*)
4136  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4137*)
4138  ac_count=0
4139  $as_echo_n 0123456789 >"conftest.in"
4140  while :
4141  do
4142    cat "conftest.in" "conftest.in" >"conftest.tmp"
4143    mv "conftest.tmp" "conftest.in"
4144    cp "conftest.in" "conftest.nl"
4145    $as_echo 'GREP' >> "conftest.nl"
4146    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148    as_fn_arith $ac_count + 1 && ac_count=$as_val
4149    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4150      # Best one so far, save it but keep looking for a better one
4151      ac_cv_path_GREP="$ac_path_GREP"
4152      ac_path_GREP_max=$ac_count
4153    fi
4154    # 10*(2^10) chars as input seems more than enough
4155    test $ac_count -gt 10 && break
4156  done
4157  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158esac
4159
4160      $ac_path_GREP_found && break 3
4161    done
4162  done
4163  done
4164IFS=$as_save_IFS
4165  if test -z "$ac_cv_path_GREP"; then
4166    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4167  fi
4168else
4169  ac_cv_path_GREP=$GREP
4170fi
4171
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4174$as_echo "$ac_cv_path_GREP" >&6; }
4175 GREP="$ac_cv_path_GREP"
4176
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4179$as_echo_n "checking for egrep... " >&6; }
4180if test "${ac_cv_path_EGREP+set}" = set; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4184   then ac_cv_path_EGREP="$GREP -E"
4185   else
4186     if test -z "$EGREP"; then
4187  ac_path_EGREP_found=false
4188  # Loop through the user's path and test for each of PROGNAME-LIST
4189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194    for ac_prog in egrep; do
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4197      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4198# Check for GNU ac_path_EGREP and select it if it is found.
4199  # Check for GNU $ac_path_EGREP
4200case `"$ac_path_EGREP" --version 2>&1` in
4201*GNU*)
4202  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4203*)
4204  ac_count=0
4205  $as_echo_n 0123456789 >"conftest.in"
4206  while :
4207  do
4208    cat "conftest.in" "conftest.in" >"conftest.tmp"
4209    mv "conftest.tmp" "conftest.in"
4210    cp "conftest.in" "conftest.nl"
4211    $as_echo 'EGREP' >> "conftest.nl"
4212    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214    as_fn_arith $ac_count + 1 && ac_count=$as_val
4215    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4216      # Best one so far, save it but keep looking for a better one
4217      ac_cv_path_EGREP="$ac_path_EGREP"
4218      ac_path_EGREP_max=$ac_count
4219    fi
4220    # 10*(2^10) chars as input seems more than enough
4221    test $ac_count -gt 10 && break
4222  done
4223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224esac
4225
4226      $ac_path_EGREP_found && break 3
4227    done
4228  done
4229  done
4230IFS=$as_save_IFS
4231  if test -z "$ac_cv_path_EGREP"; then
4232    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4233  fi
4234else
4235  ac_cv_path_EGREP=$EGREP
4236fi
4237
4238   fi
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4241$as_echo "$ac_cv_path_EGREP" >&6; }
4242 EGREP="$ac_cv_path_EGREP"
4243
4244
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4246$as_echo_n "checking for fgrep... " >&6; }
4247if test "${ac_cv_path_FGREP+set}" = set; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4251   then ac_cv_path_FGREP="$GREP -F"
4252   else
4253     if test -z "$FGREP"; then
4254  ac_path_FGREP_found=false
4255  # Loop through the user's path and test for each of PROGNAME-LIST
4256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258do
4259  IFS=$as_save_IFS
4260  test -z "$as_dir" && as_dir=.
4261    for ac_prog in fgrep; do
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4264      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4265# Check for GNU ac_path_FGREP and select it if it is found.
4266  # Check for GNU $ac_path_FGREP
4267case `"$ac_path_FGREP" --version 2>&1` in
4268*GNU*)
4269  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4270*)
4271  ac_count=0
4272  $as_echo_n 0123456789 >"conftest.in"
4273  while :
4274  do
4275    cat "conftest.in" "conftest.in" >"conftest.tmp"
4276    mv "conftest.tmp" "conftest.in"
4277    cp "conftest.in" "conftest.nl"
4278    $as_echo 'FGREP' >> "conftest.nl"
4279    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281    as_fn_arith $ac_count + 1 && ac_count=$as_val
4282    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4283      # Best one so far, save it but keep looking for a better one
4284      ac_cv_path_FGREP="$ac_path_FGREP"
4285      ac_path_FGREP_max=$ac_count
4286    fi
4287    # 10*(2^10) chars as input seems more than enough
4288    test $ac_count -gt 10 && break
4289  done
4290  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291esac
4292
4293      $ac_path_FGREP_found && break 3
4294    done
4295  done
4296  done
4297IFS=$as_save_IFS
4298  if test -z "$ac_cv_path_FGREP"; then
4299    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300  fi
4301else
4302  ac_cv_path_FGREP=$FGREP
4303fi
4304
4305   fi
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4308$as_echo "$ac_cv_path_FGREP" >&6; }
4309 FGREP="$ac_cv_path_FGREP"
4310
4311
4312test -z "$GREP" && GREP=grep
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332# Check whether --with-gnu-ld was given.
4333if test "${with_gnu_ld+set}" = set; then :
4334  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4335else
4336  with_gnu_ld=no
4337fi
4338
4339ac_prog=ld
4340if test "$GCC" = yes; then
4341  # Check if gcc -print-prog-name=ld gives a path.
4342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4343$as_echo_n "checking for ld used by $CC... " >&6; }
4344  case $host in
4345  *-*-mingw*)
4346    # gcc leaves a trailing carriage return which upsets mingw
4347    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4348  *)
4349    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4350  esac
4351  case $ac_prog in
4352    # Accept absolute paths.
4353    [\\/]* | ?:[\\/]*)
4354      re_direlt='/[^/][^/]*/\.\./'
4355      # Canonicalize the pathname of ld
4356      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4357      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4358	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4359      done
4360      test -z "$LD" && LD="$ac_prog"
4361      ;;
4362  "")
4363    # If it fails, then pretend we aren't using GCC.
4364    ac_prog=ld
4365    ;;
4366  *)
4367    # If it is relative, then search for the first ld in PATH.
4368    with_gnu_ld=unknown
4369    ;;
4370  esac
4371elif test "$with_gnu_ld" = yes; then
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4373$as_echo_n "checking for GNU ld... " >&6; }
4374else
4375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4376$as_echo_n "checking for non-GNU ld... " >&6; }
4377fi
4378if test "${lt_cv_path_LD+set}" = set; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381  if test -z "$LD"; then
4382  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4383  for ac_dir in $PATH; do
4384    IFS="$lt_save_ifs"
4385    test -z "$ac_dir" && ac_dir=.
4386    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4387      lt_cv_path_LD="$ac_dir/$ac_prog"
4388      # Check to see if the program is GNU ld.  I'd rather use --version,
4389      # but apparently some variants of GNU ld only accept -v.
4390      # Break only if it was the GNU/non-GNU ld that we prefer.
4391      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4392      *GNU* | *'with BFD'*)
4393	test "$with_gnu_ld" != no && break
4394	;;
4395      *)
4396	test "$with_gnu_ld" != yes && break
4397	;;
4398      esac
4399    fi
4400  done
4401  IFS="$lt_save_ifs"
4402else
4403  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4404fi
4405fi
4406
4407LD="$lt_cv_path_LD"
4408if test -n "$LD"; then
4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4410$as_echo "$LD" >&6; }
4411else
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
4414fi
4415test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4417$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4418if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4422case `$LD -v 2>&1 </dev/null` in
4423*GNU* | *'with BFD'*)
4424  lt_cv_prog_gnu_ld=yes
4425  ;;
4426*)
4427  lt_cv_prog_gnu_ld=no
4428  ;;
4429esac
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4432$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4433with_gnu_ld=$lt_cv_prog_gnu_ld
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4444$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4445if test "${lt_cv_path_NM+set}" = set; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if test -n "$NM"; then
4449  # Let the user override the test.
4450  lt_cv_path_NM="$NM"
4451else
4452  lt_nm_to_check="${ac_tool_prefix}nm"
4453  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4454    lt_nm_to_check="$lt_nm_to_check nm"
4455  fi
4456  for lt_tmp_nm in $lt_nm_to_check; do
4457    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4459      IFS="$lt_save_ifs"
4460      test -z "$ac_dir" && ac_dir=.
4461      tmp_nm="$ac_dir/$lt_tmp_nm"
4462      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4463	# Check to see if the nm accepts a BSD-compat flag.
4464	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4465	#   nm: unknown option "B" ignored
4466	# Tru64's nm complains that /dev/null is an invalid object file
4467	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4468	*/dev/null* | *'Invalid file or object type'*)
4469	  lt_cv_path_NM="$tmp_nm -B"
4470	  break
4471	  ;;
4472	*)
4473	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4474	  */dev/null*)
4475	    lt_cv_path_NM="$tmp_nm -p"
4476	    break
4477	    ;;
4478	  *)
4479	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4480	    continue # so that we can try to find one that supports BSD flags
4481	    ;;
4482	  esac
4483	  ;;
4484	esac
4485      fi
4486    done
4487    IFS="$lt_save_ifs"
4488  done
4489  : ${lt_cv_path_NM=no}
4490fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4493$as_echo "$lt_cv_path_NM" >&6; }
4494if test "$lt_cv_path_NM" != "no"; then
4495  NM="$lt_cv_path_NM"
4496else
4497  # Didn't find any BSD compatible name lister, look for dumpbin.
4498  if test -n "$ac_tool_prefix"; then
4499  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4500  do
4501    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504$as_echo_n "checking for $ac_word... " >&6; }
4505if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  if test -n "$DUMPBIN"; then
4509  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514  IFS=$as_save_IFS
4515  test -z "$as_dir" && as_dir=.
4516    for ac_exec_ext in '' $ac_executable_extensions; do
4517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520    break 2
4521  fi
4522done
4523  done
4524IFS=$as_save_IFS
4525
4526fi
4527fi
4528DUMPBIN=$ac_cv_prog_DUMPBIN
4529if test -n "$DUMPBIN"; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4531$as_echo "$DUMPBIN" >&6; }
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537
4538    test -n "$DUMPBIN" && break
4539  done
4540fi
4541if test -z "$DUMPBIN"; then
4542  ac_ct_DUMPBIN=$DUMPBIN
4543  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4544do
4545  # Extract the first word of "$ac_prog", so it can be a program name with args.
4546set dummy $ac_prog; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  if test -n "$ac_ct_DUMPBIN"; then
4553  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560    for ac_exec_ext in '' $ac_executable_extensions; do
4561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564    break 2
4565  fi
4566done
4567  done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4573if test -n "$ac_ct_DUMPBIN"; then
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4575$as_echo "$ac_ct_DUMPBIN" >&6; }
4576else
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582  test -n "$ac_ct_DUMPBIN" && break
4583done
4584
4585  if test "x$ac_ct_DUMPBIN" = x; then
4586    DUMPBIN=":"
4587  else
4588    case $cross_compiling:$ac_tool_warned in
4589yes:)
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592ac_tool_warned=yes ;;
4593esac
4594    DUMPBIN=$ac_ct_DUMPBIN
4595  fi
4596fi
4597
4598
4599  if test "$DUMPBIN" != ":"; then
4600    NM="$DUMPBIN"
4601  fi
4602fi
4603test -z "$NM" && NM=nm
4604
4605
4606
4607
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4611$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4612if test "${lt_cv_nm_interface+set}" = set; then :
4613  $as_echo_n "(cached) " >&6
4614else
4615  lt_cv_nm_interface="BSD nm"
4616  echo "int some_variable = 0;" > conftest.$ac_ext
4617  (eval echo "\"\$as_me:4617: $ac_compile\"" >&5)
4618  (eval "$ac_compile" 2>conftest.err)
4619  cat conftest.err >&5
4620  (eval echo "\"\$as_me:4620: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4621  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4622  cat conftest.err >&5
4623  (eval echo "\"\$as_me:4623: output\"" >&5)
4624  cat conftest.out >&5
4625  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4626    lt_cv_nm_interface="MS dumpbin"
4627  fi
4628  rm -f conftest*
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4631$as_echo "$lt_cv_nm_interface" >&6; }
4632
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4634$as_echo_n "checking whether ln -s works... " >&6; }
4635LN_S=$as_ln_s
4636if test "$LN_S" = "ln -s"; then
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638$as_echo "yes" >&6; }
4639else
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4641$as_echo "no, using $LN_S" >&6; }
4642fi
4643
4644# find the maximum length of command line arguments
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4646$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4647if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650    i=0
4651  teststring="ABCD"
4652
4653  case $build_os in
4654  msdosdjgpp*)
4655    # On DJGPP, this test can blow up pretty badly due to problems in libc
4656    # (any single argument exceeding 2000 bytes causes a buffer overrun
4657    # during glob expansion).  Even if it were fixed, the result of this
4658    # check would be larger than it should be.
4659    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4660    ;;
4661
4662  gnu*)
4663    # Under GNU Hurd, this test is not required because there is
4664    # no limit to the length of command line arguments.
4665    # Libtool will interpret -1 as no limit whatsoever
4666    lt_cv_sys_max_cmd_len=-1;
4667    ;;
4668
4669  cygwin* | mingw* | cegcc*)
4670    # On Win9x/ME, this test blows up -- it succeeds, but takes
4671    # about 5 minutes as the teststring grows exponentially.
4672    # Worse, since 9x/ME are not pre-emptively multitasking,
4673    # you end up with a "frozen" computer, even though with patience
4674    # the test eventually succeeds (with a max line length of 256k).
4675    # Instead, let's just punt: use the minimum linelength reported by
4676    # all of the supported platforms: 8192 (on NT/2K/XP).
4677    lt_cv_sys_max_cmd_len=8192;
4678    ;;
4679
4680  amigaos*)
4681    # On AmigaOS with pdksh, this test takes hours, literally.
4682    # So we just punt and use a minimum line length of 8192.
4683    lt_cv_sys_max_cmd_len=8192;
4684    ;;
4685
4686  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4687    # This has been around since 386BSD, at least.  Likely further.
4688    if test -x /sbin/sysctl; then
4689      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4690    elif test -x /usr/sbin/sysctl; then
4691      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4692    else
4693      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4694    fi
4695    # And add a safety zone
4696    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4697    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4698    ;;
4699
4700  interix*)
4701    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4702    lt_cv_sys_max_cmd_len=196608
4703    ;;
4704
4705  osf*)
4706    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4707    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4708    # nice to cause kernel panics so lets avoid the loop below.
4709    # First set a reasonable default.
4710    lt_cv_sys_max_cmd_len=16384
4711    #
4712    if test -x /sbin/sysconfig; then
4713      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4714        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4715      esac
4716    fi
4717    ;;
4718  sco3.2v5*)
4719    lt_cv_sys_max_cmd_len=102400
4720    ;;
4721  sysv5* | sco5v6* | sysv4.2uw2*)
4722    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4723    if test -n "$kargmax"; then
4724      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4725    else
4726      lt_cv_sys_max_cmd_len=32768
4727    fi
4728    ;;
4729  *)
4730    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4731    if test -n "$lt_cv_sys_max_cmd_len"; then
4732      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4733      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4734    else
4735      # Make teststring a little bigger before we do anything with it.
4736      # a 1K string should be a reasonable start.
4737      for i in 1 2 3 4 5 6 7 8 ; do
4738        teststring=$teststring$teststring
4739      done
4740      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4741      # If test is not a shell built-in, we'll probably end up computing a
4742      # maximum length that is only half of the actual maximum length, but
4743      # we can't tell.
4744      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4745	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4746	      test $i != 17 # 1/2 MB should be enough
4747      do
4748        i=`expr $i + 1`
4749        teststring=$teststring$teststring
4750      done
4751      # Only check the string length outside the loop.
4752      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4753      teststring=
4754      # Add a significant safety factor because C++ compilers can tack on
4755      # massive amounts of additional arguments before passing them to the
4756      # linker.  It appears as though 1/2 is a usable value.
4757      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4758    fi
4759    ;;
4760  esac
4761
4762fi
4763
4764if test -n $lt_cv_sys_max_cmd_len ; then
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4766$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4767else
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4769$as_echo "none" >&6; }
4770fi
4771max_cmd_len=$lt_cv_sys_max_cmd_len
4772
4773
4774
4775
4776
4777
4778: ${CP="cp -f"}
4779: ${MV="mv -f"}
4780: ${RM="rm -f"}
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4783$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4784# Try some XSI features
4785xsi_shell=no
4786( _lt_dummy="a/b/c"
4787  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4788      = c,a/b,, \
4789    && eval 'test $(( 1 + 1 )) -eq 2 \
4790    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4791  && xsi_shell=yes
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4793$as_echo "$xsi_shell" >&6; }
4794
4795
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4797$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4798lt_shell_append=no
4799( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4800    >/dev/null 2>&1 \
4801  && lt_shell_append=yes
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4803$as_echo "$lt_shell_append" >&6; }
4804
4805
4806if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4807  lt_unset=unset
4808else
4809  lt_unset=false
4810fi
4811
4812
4813
4814
4815
4816# test EBCDIC or ASCII
4817case `echo X|tr X '\101'` in
4818 A) # ASCII based system
4819    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4820  lt_SP2NL='tr \040 \012'
4821  lt_NL2SP='tr \015\012 \040\040'
4822  ;;
4823 *) # EBCDIC based system
4824  lt_SP2NL='tr \100 \n'
4825  lt_NL2SP='tr \r\n \100\100'
4826  ;;
4827esac
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4838$as_echo_n "checking for $LD option to reload object files... " >&6; }
4839if test "${lt_cv_ld_reload_flag+set}" = set; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  lt_cv_ld_reload_flag='-r'
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4845$as_echo "$lt_cv_ld_reload_flag" >&6; }
4846reload_flag=$lt_cv_ld_reload_flag
4847case $reload_flag in
4848"" | " "*) ;;
4849*) reload_flag=" $reload_flag" ;;
4850esac
4851reload_cmds='$LD$reload_flag -o $output$reload_objs'
4852case $host_os in
4853  darwin*)
4854    if test "$GCC" = yes; then
4855      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4856    else
4857      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4858    fi
4859    ;;
4860esac
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870if test -n "$ac_tool_prefix"; then
4871  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4872set dummy ${ac_tool_prefix}objdump; ac_word=$2
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874$as_echo_n "checking for $ac_word... " >&6; }
4875if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test -n "$OBJDUMP"; then
4879  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884  IFS=$as_save_IFS
4885  test -z "$as_dir" && as_dir=.
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890    break 2
4891  fi
4892done
4893  done
4894IFS=$as_save_IFS
4895
4896fi
4897fi
4898OBJDUMP=$ac_cv_prog_OBJDUMP
4899if test -n "$OBJDUMP"; then
4900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4901$as_echo "$OBJDUMP" >&6; }
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904$as_echo "no" >&6; }
4905fi
4906
4907
4908fi
4909if test -z "$ac_cv_prog_OBJDUMP"; then
4910  ac_ct_OBJDUMP=$OBJDUMP
4911  # Extract the first word of "objdump", so it can be a program name with args.
4912set dummy objdump; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
4915if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  if test -n "$ac_ct_OBJDUMP"; then
4919  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_exec_ext in '' $ac_executable_extensions; do
4927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933  done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4939if test -n "$ac_ct_OBJDUMP"; then
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4941$as_echo "$ac_ct_OBJDUMP" >&6; }
4942else
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947  if test "x$ac_ct_OBJDUMP" = x; then
4948    OBJDUMP="false"
4949  else
4950    case $cross_compiling:$ac_tool_warned in
4951yes:)
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954ac_tool_warned=yes ;;
4955esac
4956    OBJDUMP=$ac_ct_OBJDUMP
4957  fi
4958else
4959  OBJDUMP="$ac_cv_prog_OBJDUMP"
4960fi
4961
4962test -z "$OBJDUMP" && OBJDUMP=objdump
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4973$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4974if test "${lt_cv_deplibs_check_method+set}" = set; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  lt_cv_file_magic_cmd='$MAGIC_CMD'
4978lt_cv_file_magic_test_file=
4979lt_cv_deplibs_check_method='unknown'
4980# Need to set the preceding variable on all platforms that support
4981# interlibrary dependencies.
4982# 'none' -- dependencies not supported.
4983# `unknown' -- same as none, but documents that we really don't know.
4984# 'pass_all' -- all dependencies passed with no checks.
4985# 'test_compile' -- check by making test program.
4986# 'file_magic [[regex]]' -- check by looking for files in library path
4987# which responds to the $file_magic_cmd with a given extended regex.
4988# If you have `file' or equivalent on your system and you're not sure
4989# whether `pass_all' will *always* work, you probably want this one.
4990
4991case $host_os in
4992aix[4-9]*)
4993  lt_cv_deplibs_check_method=pass_all
4994  ;;
4995
4996beos*)
4997  lt_cv_deplibs_check_method=pass_all
4998  ;;
4999
5000bsdi[45]*)
5001  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5002  lt_cv_file_magic_cmd='/usr/bin/file -L'
5003  lt_cv_file_magic_test_file=/shlib/libc.so
5004  ;;
5005
5006cygwin*)
5007  # func_win32_libid is a shell function defined in ltmain.sh
5008  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5009  lt_cv_file_magic_cmd='func_win32_libid'
5010  ;;
5011
5012mingw* | pw32*)
5013  # Base MSYS/MinGW do not provide the 'file' command needed by
5014  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5015  # unless we find 'file', for example because we are cross-compiling.
5016  if ( file / ) >/dev/null 2>&1; then
5017    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5018    lt_cv_file_magic_cmd='func_win32_libid'
5019  else
5020    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5021    lt_cv_file_magic_cmd='$OBJDUMP -f'
5022  fi
5023  ;;
5024
5025cegcc)
5026  # use the weaker test based on 'objdump'. See mingw*.
5027  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5028  lt_cv_file_magic_cmd='$OBJDUMP -f'
5029  ;;
5030
5031darwin* | rhapsody*)
5032  lt_cv_deplibs_check_method=pass_all
5033  ;;
5034
5035freebsd* | dragonfly*)
5036  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5037    case $host_cpu in
5038    i*86 )
5039      # Not sure whether the presence of OpenBSD here was a mistake.
5040      # Let's accept both of them until this is cleared up.
5041      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5042      lt_cv_file_magic_cmd=/usr/bin/file
5043      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5044      ;;
5045    esac
5046  else
5047    lt_cv_deplibs_check_method=pass_all
5048  fi
5049  ;;
5050
5051gnu*)
5052  lt_cv_deplibs_check_method=pass_all
5053  ;;
5054
5055hpux10.20* | hpux11*)
5056  lt_cv_file_magic_cmd=/usr/bin/file
5057  case $host_cpu in
5058  ia64*)
5059    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5060    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5061    ;;
5062  hppa*64*)
5063    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]'
5064    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5065    ;;
5066  *)
5067    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5068    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5069    ;;
5070  esac
5071  ;;
5072
5073interix[3-9]*)
5074  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5075  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5076  ;;
5077
5078irix5* | irix6* | nonstopux*)
5079  case $LD in
5080  *-32|*"-32 ") libmagic=32-bit;;
5081  *-n32|*"-n32 ") libmagic=N32;;
5082  *-64|*"-64 ") libmagic=64-bit;;
5083  *) libmagic=never-match;;
5084  esac
5085  lt_cv_deplibs_check_method=pass_all
5086  ;;
5087
5088# This must be Linux ELF.
5089linux* | k*bsd*-gnu | kopensolaris*-gnu)
5090  lt_cv_deplibs_check_method=pass_all
5091  ;;
5092
5093netbsd* | netbsdelf*-gnu)
5094  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5095    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5096  else
5097    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5098  fi
5099  ;;
5100
5101newos6*)
5102  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5103  lt_cv_file_magic_cmd=/usr/bin/file
5104  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5105  ;;
5106
5107*nto* | *qnx*)
5108  lt_cv_deplibs_check_method=pass_all
5109  ;;
5110
5111openbsd*)
5112  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5113    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5114  else
5115    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116  fi
5117  ;;
5118
5119osf3* | osf4* | osf5*)
5120  lt_cv_deplibs_check_method=pass_all
5121  ;;
5122
5123rdos*)
5124  lt_cv_deplibs_check_method=pass_all
5125  ;;
5126
5127solaris*)
5128  lt_cv_deplibs_check_method=pass_all
5129  ;;
5130
5131sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5132  lt_cv_deplibs_check_method=pass_all
5133  ;;
5134
5135sysv4 | sysv4.3*)
5136  case $host_vendor in
5137  motorola)
5138    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]'
5139    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5140    ;;
5141  ncr)
5142    lt_cv_deplibs_check_method=pass_all
5143    ;;
5144  sequent)
5145    lt_cv_file_magic_cmd='/bin/file'
5146    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5147    ;;
5148  sni)
5149    lt_cv_file_magic_cmd='/bin/file'
5150    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5151    lt_cv_file_magic_test_file=/lib/libc.so
5152    ;;
5153  siemens)
5154    lt_cv_deplibs_check_method=pass_all
5155    ;;
5156  pc)
5157    lt_cv_deplibs_check_method=pass_all
5158    ;;
5159  esac
5160  ;;
5161
5162tpf*)
5163  lt_cv_deplibs_check_method=pass_all
5164  ;;
5165esac
5166
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5169$as_echo "$lt_cv_deplibs_check_method" >&6; }
5170file_magic_cmd=$lt_cv_file_magic_cmd
5171deplibs_check_method=$lt_cv_deplibs_check_method
5172test -z "$deplibs_check_method" && deplibs_check_method=unknown
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185if test -n "$ac_tool_prefix"; then
5186  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5187set dummy ${ac_tool_prefix}ar; ac_word=$2
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_prog_AR+set}" = set; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  if test -n "$AR"; then
5194  ac_cv_prog_AR="$AR" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199  IFS=$as_save_IFS
5200  test -z "$as_dir" && as_dir=.
5201    for ac_exec_ext in '' $ac_executable_extensions; do
5202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203    ac_cv_prog_AR="${ac_tool_prefix}ar"
5204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205    break 2
5206  fi
5207done
5208  done
5209IFS=$as_save_IFS
5210
5211fi
5212fi
5213AR=$ac_cv_prog_AR
5214if test -n "$AR"; then
5215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5216$as_echo "$AR" >&6; }
5217else
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
5220fi
5221
5222
5223fi
5224if test -z "$ac_cv_prog_AR"; then
5225  ac_ct_AR=$AR
5226  # Extract the first word of "ar", so it can be a program name with args.
5227set dummy ar; ac_word=$2
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
5230if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  if test -n "$ac_ct_AR"; then
5234  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239  IFS=$as_save_IFS
5240  test -z "$as_dir" && as_dir=.
5241    for ac_exec_ext in '' $ac_executable_extensions; do
5242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243    ac_cv_prog_ac_ct_AR="ar"
5244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245    break 2
5246  fi
5247done
5248  done
5249IFS=$as_save_IFS
5250
5251fi
5252fi
5253ac_ct_AR=$ac_cv_prog_ac_ct_AR
5254if test -n "$ac_ct_AR"; then
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5256$as_echo "$ac_ct_AR" >&6; }
5257else
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261
5262  if test "x$ac_ct_AR" = x; then
5263    AR="false"
5264  else
5265    case $cross_compiling:$ac_tool_warned in
5266yes:)
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5269ac_tool_warned=yes ;;
5270esac
5271    AR=$ac_ct_AR
5272  fi
5273else
5274  AR="$ac_cv_prog_AR"
5275fi
5276
5277test -z "$AR" && AR=ar
5278test -z "$AR_FLAGS" && AR_FLAGS=cru
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290if test -n "$ac_tool_prefix"; then
5291  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5292set dummy ${ac_tool_prefix}strip; ac_word=$2
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294$as_echo_n "checking for $ac_word... " >&6; }
5295if test "${ac_cv_prog_STRIP+set}" = set; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  if test -n "$STRIP"; then
5299  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304  IFS=$as_save_IFS
5305  test -z "$as_dir" && as_dir=.
5306    for ac_exec_ext in '' $ac_executable_extensions; do
5307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310    break 2
5311  fi
5312done
5313  done
5314IFS=$as_save_IFS
5315
5316fi
5317fi
5318STRIP=$ac_cv_prog_STRIP
5319if test -n "$STRIP"; then
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5321$as_echo "$STRIP" >&6; }
5322else
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327
5328fi
5329if test -z "$ac_cv_prog_STRIP"; then
5330  ac_ct_STRIP=$STRIP
5331  # Extract the first word of "strip", so it can be a program name with args.
5332set dummy strip; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  if test -n "$ac_ct_STRIP"; then
5339  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344  IFS=$as_save_IFS
5345  test -z "$as_dir" && as_dir=.
5346    for ac_exec_ext in '' $ac_executable_extensions; do
5347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348    ac_cv_prog_ac_ct_STRIP="strip"
5349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350    break 2
5351  fi
5352done
5353  done
5354IFS=$as_save_IFS
5355
5356fi
5357fi
5358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5359if test -n "$ac_ct_STRIP"; then
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5361$as_echo "$ac_ct_STRIP" >&6; }
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
5366
5367  if test "x$ac_ct_STRIP" = x; then
5368    STRIP=":"
5369  else
5370    case $cross_compiling:$ac_tool_warned in
5371yes:)
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374ac_tool_warned=yes ;;
5375esac
5376    STRIP=$ac_ct_STRIP
5377  fi
5378else
5379  STRIP="$ac_cv_prog_STRIP"
5380fi
5381
5382test -z "$STRIP" && STRIP=:
5383
5384
5385
5386
5387
5388
5389if test -n "$ac_tool_prefix"; then
5390  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5391set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if test "${ac_cv_prog_RANLIB+set}" = set; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  if test -n "$RANLIB"; then
5398  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405    for ac_exec_ext in '' $ac_executable_extensions; do
5406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412  done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417RANLIB=$ac_cv_prog_RANLIB
5418if test -n "$RANLIB"; then
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5420$as_echo "$RANLIB" >&6; }
5421else
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427fi
5428if test -z "$ac_cv_prog_RANLIB"; then
5429  ac_ct_RANLIB=$RANLIB
5430  # Extract the first word of "ranlib", so it can be a program name with args.
5431set dummy ranlib; ac_word=$2
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433$as_echo_n "checking for $ac_word... " >&6; }
5434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  if test -n "$ac_ct_RANLIB"; then
5438  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443  IFS=$as_save_IFS
5444  test -z "$as_dir" && as_dir=.
5445    for ac_exec_ext in '' $ac_executable_extensions; do
5446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447    ac_cv_prog_ac_ct_RANLIB="ranlib"
5448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449    break 2
5450  fi
5451done
5452  done
5453IFS=$as_save_IFS
5454
5455fi
5456fi
5457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5458if test -n "$ac_ct_RANLIB"; then
5459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5460$as_echo "$ac_ct_RANLIB" >&6; }
5461else
5462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463$as_echo "no" >&6; }
5464fi
5465
5466  if test "x$ac_ct_RANLIB" = x; then
5467    RANLIB=":"
5468  else
5469    case $cross_compiling:$ac_tool_warned in
5470yes:)
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473ac_tool_warned=yes ;;
5474esac
5475    RANLIB=$ac_ct_RANLIB
5476  fi
5477else
5478  RANLIB="$ac_cv_prog_RANLIB"
5479fi
5480
5481test -z "$RANLIB" && RANLIB=:
5482
5483
5484
5485
5486
5487
5488# Determine commands to create old-style static archives.
5489old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5490old_postinstall_cmds='chmod 644 $oldlib'
5491old_postuninstall_cmds=
5492
5493if test -n "$RANLIB"; then
5494  case $host_os in
5495  openbsd*)
5496    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5497    ;;
5498  *)
5499    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5500    ;;
5501  esac
5502  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5503fi
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538# If no C compiler was specified, use CC.
5539LTCC=${LTCC-"$CC"}
5540
5541# If no C compiler flags were specified, use CFLAGS.
5542LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5543
5544# Allow CC to be a program name with arguments.
5545compiler=$CC
5546
5547
5548# Check for command to grab the raw symbol name followed by C symbol from nm.
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5550$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5551if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554
5555# These are sane defaults that work on at least a few old systems.
5556# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5557
5558# Character class describing NM global symbol codes.
5559symcode='[BCDEGRST]'
5560
5561# Regexp to match symbols that can be accessed directly from C.
5562sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5563
5564# Define system-specific variables.
5565case $host_os in
5566aix*)
5567  symcode='[BCDT]'
5568  ;;
5569cygwin* | mingw* | pw32* | cegcc*)
5570  symcode='[ABCDGISTW]'
5571  ;;
5572hpux*)
5573  if test "$host_cpu" = ia64; then
5574    symcode='[ABCDEGRST]'
5575  fi
5576  ;;
5577irix* | nonstopux*)
5578  symcode='[BCDEGRST]'
5579  ;;
5580osf*)
5581  symcode='[BCDEGQRST]'
5582  ;;
5583solaris*)
5584  symcode='[BDRT]'
5585  ;;
5586sco3.2v5*)
5587  symcode='[DT]'
5588  ;;
5589sysv4.2uw2*)
5590  symcode='[DT]'
5591  ;;
5592sysv5* | sco5v6* | unixware* | OpenUNIX*)
5593  symcode='[ABDT]'
5594  ;;
5595sysv4)
5596  symcode='[DFNSTU]'
5597  ;;
5598esac
5599
5600# If we're using GNU nm, then use its standard symbol codes.
5601case `$NM -V 2>&1` in
5602*GNU* | *'with BFD'*)
5603  symcode='[ABCDGIRSTW]' ;;
5604esac
5605
5606# Transform an extracted symbol line into a proper C declaration.
5607# Some systems (esp. on ia64) link data and code symbols differently,
5608# so use this general approach.
5609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5610
5611# Transform an extracted symbol line into symbol name and symbol address
5612lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5613lt_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'"
5614
5615# Handle CRLF in mingw tool chain
5616opt_cr=
5617case $build_os in
5618mingw*)
5619  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5620  ;;
5621esac
5622
5623# Try without a prefix underscore, then with it.
5624for ac_symprfx in "" "_"; do
5625
5626  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5627  symxfrm="\\1 $ac_symprfx\\2 \\2"
5628
5629  # Write the raw and C identifiers.
5630  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5631    # Fake it for dumpbin and say T for any non-static function
5632    # and D for any global variable.
5633    # Also find C++ and __fastcall symbols from MSVC++,
5634    # which start with @ or ?.
5635    lt_cv_sys_global_symbol_pipe="$AWK '"\
5636"     {last_section=section; section=\$ 3};"\
5637"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5638"     \$ 0!~/External *\|/{next};"\
5639"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5640"     {if(hide[section]) next};"\
5641"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5642"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5643"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5644"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5645"     ' prfx=^$ac_symprfx"
5646  else
5647    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5648  fi
5649
5650  # Check to see that the pipe works correctly.
5651  pipe_works=no
5652
5653  rm -f conftest*
5654  cat > conftest.$ac_ext <<_LT_EOF
5655#ifdef __cplusplus
5656extern "C" {
5657#endif
5658char nm_test_var;
5659void nm_test_func(void);
5660void nm_test_func(void){}
5661#ifdef __cplusplus
5662}
5663#endif
5664int main(){nm_test_var='a';nm_test_func();return(0);}
5665_LT_EOF
5666
5667  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5668  (eval $ac_compile) 2>&5
5669  ac_status=$?
5670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671  test $ac_status = 0; }; then
5672    # Now try to grab the symbols.
5673    nlist=conftest.nm
5674    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5675  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5676  ac_status=$?
5677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678  test $ac_status = 0; } && test -s "$nlist"; then
5679      # Try sorting and uniquifying the output.
5680      if sort "$nlist" | uniq > "$nlist"T; then
5681	mv -f "$nlist"T "$nlist"
5682      else
5683	rm -f "$nlist"T
5684      fi
5685
5686      # Make sure that we snagged all the symbols we need.
5687      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5688	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5689	  cat <<_LT_EOF > conftest.$ac_ext
5690#ifdef __cplusplus
5691extern "C" {
5692#endif
5693
5694_LT_EOF
5695	  # Now generate the symbol file.
5696	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5697
5698	  cat <<_LT_EOF >> conftest.$ac_ext
5699
5700/* The mapping between symbol names and symbols.  */
5701const struct {
5702  const char *name;
5703  void       *address;
5704}
5705lt__PROGRAM__LTX_preloaded_symbols[] =
5706{
5707  { "@PROGRAM@", (void *) 0 },
5708_LT_EOF
5709	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5710	  cat <<\_LT_EOF >> conftest.$ac_ext
5711  {0, (void *) 0}
5712};
5713
5714/* This works around a problem in FreeBSD linker */
5715#ifdef FREEBSD_WORKAROUND
5716static const void *lt_preloaded_setup() {
5717  return lt__PROGRAM__LTX_preloaded_symbols;
5718}
5719#endif
5720
5721#ifdef __cplusplus
5722}
5723#endif
5724_LT_EOF
5725	  # Now try linking the two files.
5726	  mv conftest.$ac_objext conftstm.$ac_objext
5727	  lt_save_LIBS="$LIBS"
5728	  lt_save_CFLAGS="$CFLAGS"
5729	  LIBS="conftstm.$ac_objext"
5730	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5731	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5732  (eval $ac_link) 2>&5
5733  ac_status=$?
5734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5736	    pipe_works=yes
5737	  fi
5738	  LIBS="$lt_save_LIBS"
5739	  CFLAGS="$lt_save_CFLAGS"
5740	else
5741	  echo "cannot find nm_test_func in $nlist" >&5
5742	fi
5743      else
5744	echo "cannot find nm_test_var in $nlist" >&5
5745      fi
5746    else
5747      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5748    fi
5749  else
5750    echo "$progname: failed program was:" >&5
5751    cat conftest.$ac_ext >&5
5752  fi
5753  rm -rf conftest* conftst*
5754
5755  # Do not use the global_symbol_pipe unless it works.
5756  if test "$pipe_works" = yes; then
5757    break
5758  else
5759    lt_cv_sys_global_symbol_pipe=
5760  fi
5761done
5762
5763fi
5764
5765if test -z "$lt_cv_sys_global_symbol_pipe"; then
5766  lt_cv_sys_global_symbol_to_cdecl=
5767fi
5768if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5770$as_echo "failed" >&6; }
5771else
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5773$as_echo "ok" >&6; }
5774fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798# Check whether --enable-libtool-lock was given.
5799if test "${enable_libtool_lock+set}" = set; then :
5800  enableval=$enable_libtool_lock;
5801fi
5802
5803test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5804
5805# Some flags need to be propagated to the compiler or linker for good
5806# libtool support.
5807case $host in
5808ia64-*-hpux*)
5809  # Find out which ABI we are using.
5810  echo 'int i;' > conftest.$ac_ext
5811  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5812  (eval $ac_compile) 2>&5
5813  ac_status=$?
5814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5815  test $ac_status = 0; }; then
5816    case `/usr/bin/file conftest.$ac_objext` in
5817      *ELF-32*)
5818	HPUX_IA64_MODE="32"
5819	;;
5820      *ELF-64*)
5821	HPUX_IA64_MODE="64"
5822	;;
5823    esac
5824  fi
5825  rm -rf conftest*
5826  ;;
5827*-*-irix6*)
5828  # Find out which ABI we are using.
5829  echo '#line 5829 "configure"' > conftest.$ac_ext
5830  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5831  (eval $ac_compile) 2>&5
5832  ac_status=$?
5833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834  test $ac_status = 0; }; then
5835    if test "$lt_cv_prog_gnu_ld" = yes; then
5836      case `/usr/bin/file conftest.$ac_objext` in
5837	*32-bit*)
5838	  LD="${LD-ld} -melf32bsmip"
5839	  ;;
5840	*N32*)
5841	  LD="${LD-ld} -melf32bmipn32"
5842	  ;;
5843	*64-bit*)
5844	  LD="${LD-ld} -melf64bmip"
5845	;;
5846      esac
5847    else
5848      case `/usr/bin/file conftest.$ac_objext` in
5849	*32-bit*)
5850	  LD="${LD-ld} -32"
5851	  ;;
5852	*N32*)
5853	  LD="${LD-ld} -n32"
5854	  ;;
5855	*64-bit*)
5856	  LD="${LD-ld} -64"
5857	  ;;
5858      esac
5859    fi
5860  fi
5861  rm -rf conftest*
5862  ;;
5863
5864x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5865s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5866  # Find out which ABI we are using.
5867  echo 'int i;' > conftest.$ac_ext
5868  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5869  (eval $ac_compile) 2>&5
5870  ac_status=$?
5871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872  test $ac_status = 0; }; then
5873    case `/usr/bin/file conftest.o` in
5874      *32-bit*)
5875	case $host in
5876	  x86_64-*kfreebsd*-gnu)
5877	    LD="${LD-ld} -m elf_i386_fbsd"
5878	    ;;
5879	  x86_64-*linux*)
5880	    LD="${LD-ld} -m elf_i386"
5881	    ;;
5882	  ppc64-*linux*|powerpc64-*linux*)
5883	    LD="${LD-ld} -m elf32ppclinux"
5884	    ;;
5885	  s390x-*linux*)
5886	    LD="${LD-ld} -m elf_s390"
5887	    ;;
5888	  sparc64-*linux*)
5889	    LD="${LD-ld} -m elf32_sparc"
5890	    ;;
5891	esac
5892	;;
5893      *64-bit*)
5894	case $host in
5895	  x86_64-*kfreebsd*-gnu)
5896	    LD="${LD-ld} -m elf_x86_64_fbsd"
5897	    ;;
5898	  x86_64-*linux*)
5899	    LD="${LD-ld} -m elf_x86_64"
5900	    ;;
5901	  ppc*-*linux*|powerpc*-*linux*)
5902	    LD="${LD-ld} -m elf64ppc"
5903	    ;;
5904	  s390*-*linux*|s390*-*tpf*)
5905	    LD="${LD-ld} -m elf64_s390"
5906	    ;;
5907	  sparc*-*linux*)
5908	    LD="${LD-ld} -m elf64_sparc"
5909	    ;;
5910	esac
5911	;;
5912    esac
5913  fi
5914  rm -rf conftest*
5915  ;;
5916
5917*-*-sco3.2v5*)
5918  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5919  SAVE_CFLAGS="$CFLAGS"
5920  CFLAGS="$CFLAGS -belf"
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5922$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5923if test "${lt_cv_cc_needs_belf+set}" = set; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  ac_ext=c
5927ac_cpp='$CPP $CPPFLAGS'
5928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930ac_compiler_gnu=$ac_cv_c_compiler_gnu
5931
5932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h.  */
5934
5935int
5936main ()
5937{
5938
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_link "$LINENO"; then :
5944  lt_cv_cc_needs_belf=yes
5945else
5946  lt_cv_cc_needs_belf=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext \
5949    conftest$ac_exeext conftest.$ac_ext
5950     ac_ext=c
5951ac_cpp='$CPP $CPPFLAGS'
5952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5958$as_echo "$lt_cv_cc_needs_belf" >&6; }
5959  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5960    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5961    CFLAGS="$SAVE_CFLAGS"
5962  fi
5963  ;;
5964sparc*-*solaris*)
5965  # Find out which ABI we are using.
5966  echo 'int i;' > conftest.$ac_ext
5967  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5968  (eval $ac_compile) 2>&5
5969  ac_status=$?
5970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971  test $ac_status = 0; }; then
5972    case `/usr/bin/file conftest.o` in
5973    *64-bit*)
5974      case $lt_cv_prog_gnu_ld in
5975      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5976      *)
5977	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5978	  LD="${LD-ld} -64"
5979	fi
5980	;;
5981      esac
5982      ;;
5983    esac
5984  fi
5985  rm -rf conftest*
5986  ;;
5987esac
5988
5989need_locks="$enable_libtool_lock"
5990
5991
5992  case $host_os in
5993    rhapsody* | darwin*)
5994    if test -n "$ac_tool_prefix"; then
5995  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5996set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998$as_echo_n "checking for $ac_word... " >&6; }
5999if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  if test -n "$DSYMUTIL"; then
6003  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010    for ac_exec_ext in '' $ac_executable_extensions; do
6011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014    break 2
6015  fi
6016done
6017  done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022DSYMUTIL=$ac_cv_prog_DSYMUTIL
6023if test -n "$DSYMUTIL"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6025$as_echo "$DSYMUTIL" >&6; }
6026else
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029fi
6030
6031
6032fi
6033if test -z "$ac_cv_prog_DSYMUTIL"; then
6034  ac_ct_DSYMUTIL=$DSYMUTIL
6035  # Extract the first word of "dsymutil", so it can be a program name with args.
6036set dummy dsymutil; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  if test -n "$ac_ct_DSYMUTIL"; then
6043  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057  done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6063if test -n "$ac_ct_DSYMUTIL"; then
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6065$as_echo "$ac_ct_DSYMUTIL" >&6; }
6066else
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071  if test "x$ac_ct_DSYMUTIL" = x; then
6072    DSYMUTIL=":"
6073  else
6074    case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078ac_tool_warned=yes ;;
6079esac
6080    DSYMUTIL=$ac_ct_DSYMUTIL
6081  fi
6082else
6083  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6084fi
6085
6086    if test -n "$ac_tool_prefix"; then
6087  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6088set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test -n "$NMEDIT"; then
6095  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102    for ac_exec_ext in '' $ac_executable_extensions; do
6103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109  done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114NMEDIT=$ac_cv_prog_NMEDIT
6115if test -n "$NMEDIT"; then
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6117$as_echo "$NMEDIT" >&6; }
6118else
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123
6124fi
6125if test -z "$ac_cv_prog_NMEDIT"; then
6126  ac_ct_NMEDIT=$NMEDIT
6127  # Extract the first word of "nmedit", so it can be a program name with args.
6128set dummy nmedit; ac_word=$2
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
6131if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  if test -n "$ac_ct_NMEDIT"; then
6135  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  test -z "$as_dir" && as_dir=.
6142    for ac_exec_ext in '' $ac_executable_extensions; do
6143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149  done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6155if test -n "$ac_ct_NMEDIT"; then
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6157$as_echo "$ac_ct_NMEDIT" >&6; }
6158else
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
6161fi
6162
6163  if test "x$ac_ct_NMEDIT" = x; then
6164    NMEDIT=":"
6165  else
6166    case $cross_compiling:$ac_tool_warned in
6167yes:)
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172    NMEDIT=$ac_ct_NMEDIT
6173  fi
6174else
6175  NMEDIT="$ac_cv_prog_NMEDIT"
6176fi
6177
6178    if test -n "$ac_tool_prefix"; then
6179  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6180set dummy ${ac_tool_prefix}lipo; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if test "${ac_cv_prog_LIPO+set}" = set; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  if test -n "$LIPO"; then
6187  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192  IFS=$as_save_IFS
6193  test -z "$as_dir" && as_dir=.
6194    for ac_exec_ext in '' $ac_executable_extensions; do
6195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198    break 2
6199  fi
6200done
6201  done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206LIPO=$ac_cv_prog_LIPO
6207if test -n "$LIPO"; then
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6209$as_echo "$LIPO" >&6; }
6210else
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_prog_LIPO"; then
6218  ac_ct_LIPO=$LIPO
6219  # Extract the first word of "lipo", so it can be a program name with args.
6220set dummy lipo; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  if test -n "$ac_ct_LIPO"; then
6227  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  test -z "$as_dir" && as_dir=.
6234    for ac_exec_ext in '' $ac_executable_extensions; do
6235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236    ac_cv_prog_ac_ct_LIPO="lipo"
6237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241  done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6247if test -n "$ac_ct_LIPO"; then
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6249$as_echo "$ac_ct_LIPO" >&6; }
6250else
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255  if test "x$ac_ct_LIPO" = x; then
6256    LIPO=":"
6257  else
6258    case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264    LIPO=$ac_ct_LIPO
6265  fi
6266else
6267  LIPO="$ac_cv_prog_LIPO"
6268fi
6269
6270    if test -n "$ac_tool_prefix"; then
6271  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}otool; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if test "${ac_cv_prog_OTOOL+set}" = set; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$OTOOL"; then
6279  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298OTOOL=$ac_cv_prog_OTOOL
6299if test -n "$OTOOL"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6301$as_echo "$OTOOL" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_OTOOL"; then
6310  ac_ct_OTOOL=$OTOOL
6311  # Extract the first word of "otool", so it can be a program name with args.
6312set dummy otool; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  if test -n "$ac_ct_OTOOL"; then
6319  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324  IFS=$as_save_IFS
6325  test -z "$as_dir" && as_dir=.
6326    for ac_exec_ext in '' $ac_executable_extensions; do
6327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328    ac_cv_prog_ac_ct_OTOOL="otool"
6329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330    break 2
6331  fi
6332done
6333  done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6339if test -n "$ac_ct_OTOOL"; then
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6341$as_echo "$ac_ct_OTOOL" >&6; }
6342else
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347  if test "x$ac_ct_OTOOL" = x; then
6348    OTOOL=":"
6349  else
6350    case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356    OTOOL=$ac_ct_OTOOL
6357  fi
6358else
6359  OTOOL="$ac_cv_prog_OTOOL"
6360fi
6361
6362    if test -n "$ac_tool_prefix"; then
6363  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6364set dummy ${ac_tool_prefix}otool64; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  if test -n "$OTOOL64"; then
6371  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378    for ac_exec_ext in '' $ac_executable_extensions; do
6379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390OTOOL64=$ac_cv_prog_OTOOL64
6391if test -n "$OTOOL64"; then
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6393$as_echo "$OTOOL64" >&6; }
6394else
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399
6400fi
6401if test -z "$ac_cv_prog_OTOOL64"; then
6402  ac_ct_OTOOL64=$OTOOL64
6403  # Extract the first word of "otool64", so it can be a program name with args.
6404set dummy otool64; ac_word=$2
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
6407if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6408  $as_echo_n "(cached) " >&6
6409else
6410  if test -n "$ac_ct_OTOOL64"; then
6411  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416  IFS=$as_save_IFS
6417  test -z "$as_dir" && as_dir=.
6418    for ac_exec_ext in '' $ac_executable_extensions; do
6419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420    ac_cv_prog_ac_ct_OTOOL64="otool64"
6421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422    break 2
6423  fi
6424done
6425  done
6426IFS=$as_save_IFS
6427
6428fi
6429fi
6430ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6431if test -n "$ac_ct_OTOOL64"; then
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6433$as_echo "$ac_ct_OTOOL64" >&6; }
6434else
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437fi
6438
6439  if test "x$ac_ct_OTOOL64" = x; then
6440    OTOOL64=":"
6441  else
6442    case $cross_compiling:$ac_tool_warned in
6443yes:)
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6446ac_tool_warned=yes ;;
6447esac
6448    OTOOL64=$ac_ct_OTOOL64
6449  fi
6450else
6451  OTOOL64="$ac_cv_prog_OTOOL64"
6452fi
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6481$as_echo_n "checking for -single_module linker flag... " >&6; }
6482if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  lt_cv_apple_cc_single_mod=no
6486      if test -z "${LT_MULTI_MODULE}"; then
6487	# By default we will add the -single_module flag. You can override
6488	# by either setting the environment variable LT_MULTI_MODULE
6489	# non-empty at configure time, or by adding -multi_module to the
6490	# link flags.
6491	rm -rf libconftest.dylib*
6492	echo "int foo(void){return 1;}" > conftest.c
6493	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6494-dynamiclib -Wl,-single_module conftest.c" >&5
6495	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6496	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6497        _lt_result=$?
6498	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6499	  lt_cv_apple_cc_single_mod=yes
6500	else
6501	  cat conftest.err >&5
6502	fi
6503	rm -rf libconftest.dylib*
6504	rm -f conftest.*
6505      fi
6506fi
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6508$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6510$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6511if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  lt_cv_ld_exported_symbols_list=no
6515      save_LDFLAGS=$LDFLAGS
6516      echo "_main" > conftest.sym
6517      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6518      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h.  */
6520
6521int
6522main ()
6523{
6524
6525  ;
6526  return 0;
6527}
6528_ACEOF
6529if ac_fn_c_try_link "$LINENO"; then :
6530  lt_cv_ld_exported_symbols_list=yes
6531else
6532  lt_cv_ld_exported_symbols_list=no
6533fi
6534rm -f core conftest.err conftest.$ac_objext \
6535    conftest$ac_exeext conftest.$ac_ext
6536	LDFLAGS="$save_LDFLAGS"
6537
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6540$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6541    case $host_os in
6542    rhapsody* | darwin1.[012])
6543      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6544    darwin1.*)
6545      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6546    darwin*) # darwin 5.x on
6547      # if running on 10.5 or later, the deployment target defaults
6548      # to the OS version, if on x86, and 10.4, the deployment
6549      # target defaults to 10.4. Don't you love it?
6550      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6551	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6552	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6553	10.[012]*)
6554	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6555	10.*)
6556	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6557      esac
6558    ;;
6559  esac
6560    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6561      _lt_dar_single_mod='$single_module'
6562    fi
6563    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6564      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6565    else
6566      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6567    fi
6568    if test "$DSYMUTIL" != ":"; then
6569      _lt_dsymutil='~$DSYMUTIL $lib || :'
6570    else
6571      _lt_dsymutil=
6572    fi
6573    ;;
6574  esac
6575
6576ac_ext=c
6577ac_cpp='$CPP $CPPFLAGS'
6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6580ac_compiler_gnu=$ac_cv_c_compiler_gnu
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6582$as_echo_n "checking how to run the C preprocessor... " >&6; }
6583# On Suns, sometimes $CPP names a directory.
6584if test -n "$CPP" && test -d "$CPP"; then
6585  CPP=
6586fi
6587if test -z "$CPP"; then
6588  if test "${ac_cv_prog_CPP+set}" = set; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591      # Double quotes because CPP needs to be expanded
6592    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6593    do
6594      ac_preproc_ok=false
6595for ac_c_preproc_warn_flag in '' yes
6596do
6597  # Use a header file that comes with gcc, so configuring glibc
6598  # with a fresh cross-compiler works.
6599  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6600  # <limits.h> exists even on freestanding compilers.
6601  # On the NeXT, cc -E runs the code through the compiler's parser,
6602  # not just through cpp. "Syntax error" is here to catch this case.
6603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h.  */
6605#ifdef __STDC__
6606# include <limits.h>
6607#else
6608# include <assert.h>
6609#endif
6610		     Syntax error
6611_ACEOF
6612if ac_fn_c_try_cpp "$LINENO"; then :
6613
6614else
6615  # Broken: fails on valid input.
6616continue
6617fi
6618rm -f conftest.err conftest.i conftest.$ac_ext
6619
6620  # OK, works on sane cases.  Now check whether nonexistent headers
6621  # can be detected and how.
6622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h.  */
6624#include <ac_nonexistent.h>
6625_ACEOF
6626if ac_fn_c_try_cpp "$LINENO"; then :
6627  # Broken: success on invalid input.
6628continue
6629else
6630  # Passes both tests.
6631ac_preproc_ok=:
6632break
6633fi
6634rm -f conftest.err conftest.i conftest.$ac_ext
6635
6636done
6637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6638rm -f conftest.i conftest.err conftest.$ac_ext
6639if $ac_preproc_ok; then :
6640  break
6641fi
6642
6643    done
6644    ac_cv_prog_CPP=$CPP
6645
6646fi
6647  CPP=$ac_cv_prog_CPP
6648else
6649  ac_cv_prog_CPP=$CPP
6650fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6652$as_echo "$CPP" >&6; }
6653ac_preproc_ok=false
6654for ac_c_preproc_warn_flag in '' yes
6655do
6656  # Use a header file that comes with gcc, so configuring glibc
6657  # with a fresh cross-compiler works.
6658  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6659  # <limits.h> exists even on freestanding compilers.
6660  # On the NeXT, cc -E runs the code through the compiler's parser,
6661  # not just through cpp. "Syntax error" is here to catch this case.
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664#ifdef __STDC__
6665# include <limits.h>
6666#else
6667# include <assert.h>
6668#endif
6669		     Syntax error
6670_ACEOF
6671if ac_fn_c_try_cpp "$LINENO"; then :
6672
6673else
6674  # Broken: fails on valid input.
6675continue
6676fi
6677rm -f conftest.err conftest.i conftest.$ac_ext
6678
6679  # OK, works on sane cases.  Now check whether nonexistent headers
6680  # can be detected and how.
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683#include <ac_nonexistent.h>
6684_ACEOF
6685if ac_fn_c_try_cpp "$LINENO"; then :
6686  # Broken: success on invalid input.
6687continue
6688else
6689  # Passes both tests.
6690ac_preproc_ok=:
6691break
6692fi
6693rm -f conftest.err conftest.i conftest.$ac_ext
6694
6695done
6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697rm -f conftest.i conftest.err conftest.$ac_ext
6698if $ac_preproc_ok; then :
6699
6700else
6701  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6703as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6704See \`config.log' for more details" "$LINENO" 5 ; }
6705fi
6706
6707ac_ext=c
6708ac_cpp='$CPP $CPPFLAGS'
6709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712
6713
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6715$as_echo_n "checking for ANSI C header files... " >&6; }
6716if test "${ac_cv_header_stdc+set}" = set; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721#include <stdlib.h>
6722#include <stdarg.h>
6723#include <string.h>
6724#include <float.h>
6725
6726int
6727main ()
6728{
6729
6730  ;
6731  return 0;
6732}
6733_ACEOF
6734if ac_fn_c_try_compile "$LINENO"; then :
6735  ac_cv_header_stdc=yes
6736else
6737  ac_cv_header_stdc=no
6738fi
6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740
6741if test $ac_cv_header_stdc = yes; then
6742  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h.  */
6745#include <string.h>
6746
6747_ACEOF
6748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749  $EGREP "memchr" >/dev/null 2>&1; then :
6750
6751else
6752  ac_cv_header_stdc=no
6753fi
6754rm -f conftest*
6755
6756fi
6757
6758if test $ac_cv_header_stdc = yes; then
6759  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762#include <stdlib.h>
6763
6764_ACEOF
6765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766  $EGREP "free" >/dev/null 2>&1; then :
6767
6768else
6769  ac_cv_header_stdc=no
6770fi
6771rm -f conftest*
6772
6773fi
6774
6775if test $ac_cv_header_stdc = yes; then
6776  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6777  if test "$cross_compiling" = yes; then :
6778  :
6779else
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782#include <ctype.h>
6783#include <stdlib.h>
6784#if ((' ' & 0x0FF) == 0x020)
6785# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6786# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6787#else
6788# define ISLOWER(c) \
6789		   (('a' <= (c) && (c) <= 'i') \
6790		     || ('j' <= (c) && (c) <= 'r') \
6791		     || ('s' <= (c) && (c) <= 'z'))
6792# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6793#endif
6794
6795#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6796int
6797main ()
6798{
6799  int i;
6800  for (i = 0; i < 256; i++)
6801    if (XOR (islower (i), ISLOWER (i))
6802	|| toupper (i) != TOUPPER (i))
6803      return 2;
6804  return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_run "$LINENO"; then :
6808
6809else
6810  ac_cv_header_stdc=no
6811fi
6812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6813  conftest.$ac_objext conftest.beam conftest.$ac_ext
6814fi
6815
6816fi
6817fi
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6819$as_echo "$ac_cv_header_stdc" >&6; }
6820if test $ac_cv_header_stdc = yes; then
6821
6822$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6823
6824fi
6825
6826# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6827for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6828		  inttypes.h stdint.h unistd.h
6829do :
6830  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6832"
6833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6834  cat >>confdefs.h <<_ACEOF
6835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836_ACEOF
6837
6838fi
6839
6840done
6841
6842
6843for ac_header in dlfcn.h
6844do :
6845  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6846"
6847if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6848  cat >>confdefs.h <<_ACEOF
6849#define HAVE_DLFCN_H 1
6850_ACEOF
6851
6852fi
6853
6854done
6855
6856
6857
6858# Set options
6859
6860
6861
6862        enable_dlopen=no
6863
6864
6865  enable_win32_dll=no
6866
6867
6868            # Check whether --enable-shared was given.
6869if test "${enable_shared+set}" = set; then :
6870  enableval=$enable_shared; p=${PACKAGE-default}
6871    case $enableval in
6872    yes) enable_shared=yes ;;
6873    no) enable_shared=no ;;
6874    *)
6875      enable_shared=no
6876      # Look at the argument we got.  We use all the common list separators.
6877      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6878      for pkg in $enableval; do
6879	IFS="$lt_save_ifs"
6880	if test "X$pkg" = "X$p"; then
6881	  enable_shared=yes
6882	fi
6883      done
6884      IFS="$lt_save_ifs"
6885      ;;
6886    esac
6887else
6888  enable_shared=yes
6889fi
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899  # Check whether --enable-static was given.
6900if test "${enable_static+set}" = set; then :
6901  enableval=$enable_static; p=${PACKAGE-default}
6902    case $enableval in
6903    yes) enable_static=yes ;;
6904    no) enable_static=no ;;
6905    *)
6906     enable_static=no
6907      # Look at the argument we got.  We use all the common list separators.
6908      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6909      for pkg in $enableval; do
6910	IFS="$lt_save_ifs"
6911	if test "X$pkg" = "X$p"; then
6912	  enable_static=yes
6913	fi
6914      done
6915      IFS="$lt_save_ifs"
6916      ;;
6917    esac
6918else
6919  enable_static=yes
6920fi
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931# Check whether --with-pic was given.
6932if test "${with_pic+set}" = set; then :
6933  withval=$with_pic; pic_mode="$withval"
6934else
6935  pic_mode=default
6936fi
6937
6938
6939test -z "$pic_mode" && pic_mode=default
6940
6941
6942
6943
6944
6945
6946
6947  # Check whether --enable-fast-install was given.
6948if test "${enable_fast_install+set}" = set; then :
6949  enableval=$enable_fast_install; p=${PACKAGE-default}
6950    case $enableval in
6951    yes) enable_fast_install=yes ;;
6952    no) enable_fast_install=no ;;
6953    *)
6954      enable_fast_install=no
6955      # Look at the argument we got.  We use all the common list separators.
6956      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6957      for pkg in $enableval; do
6958	IFS="$lt_save_ifs"
6959	if test "X$pkg" = "X$p"; then
6960	  enable_fast_install=yes
6961	fi
6962      done
6963      IFS="$lt_save_ifs"
6964      ;;
6965    esac
6966else
6967  enable_fast_install=yes
6968fi
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980# This can be used to rebuild libtool when needed
6981LIBTOOL_DEPS="$ltmain"
6982
6983# Always use our own libtool.
6984LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010test -z "$LN_S" && LN_S="ln -s"
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025if test -n "${ZSH_VERSION+set}" ; then
7026   setopt NO_GLOB_SUBST
7027fi
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7030$as_echo_n "checking for objdir... " >&6; }
7031if test "${lt_cv_objdir+set}" = set; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  rm -f .libs 2>/dev/null
7035mkdir .libs 2>/dev/null
7036if test -d .libs; then
7037  lt_cv_objdir=.libs
7038else
7039  # MS-DOS does not allow filenames that begin with a dot.
7040  lt_cv_objdir=_libs
7041fi
7042rmdir .libs 2>/dev/null
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7045$as_echo "$lt_cv_objdir" >&6; }
7046objdir=$lt_cv_objdir
7047
7048
7049
7050
7051
7052cat >>confdefs.h <<_ACEOF
7053#define LT_OBJDIR "$lt_cv_objdir/"
7054_ACEOF
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072case $host_os in
7073aix3*)
7074  # AIX sometimes has problems with the GCC collect2 program.  For some
7075  # reason, if we set the COLLECT_NAMES environment variable, the problems
7076  # vanish in a puff of smoke.
7077  if test "X${COLLECT_NAMES+set}" != Xset; then
7078    COLLECT_NAMES=
7079    export COLLECT_NAMES
7080  fi
7081  ;;
7082esac
7083
7084# Sed substitution that helps us do robust quoting.  It backslashifies
7085# metacharacters that are still active within double-quoted strings.
7086sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7087
7088# Same as above, but do not quote variable references.
7089double_quote_subst='s/\(["`\\]\)/\\\1/g'
7090
7091# Sed substitution to delay expansion of an escaped shell variable in a
7092# double_quote_subst'ed string.
7093delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7094
7095# Sed substitution to delay expansion of an escaped single quote.
7096delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7097
7098# Sed substitution to avoid accidental globbing in evaled expressions
7099no_glob_subst='s/\*/\\\*/g'
7100
7101# Global variables:
7102ofile=libtool
7103can_build_shared=yes
7104
7105# All known linkers require a `.a' archive for static linking (except MSVC,
7106# which needs '.lib').
7107libext=a
7108
7109with_gnu_ld="$lt_cv_prog_gnu_ld"
7110
7111old_CC="$CC"
7112old_CFLAGS="$CFLAGS"
7113
7114# Set sane defaults for various variables
7115test -z "$CC" && CC=cc
7116test -z "$LTCC" && LTCC=$CC
7117test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7118test -z "$LD" && LD=ld
7119test -z "$ac_objext" && ac_objext=o
7120
7121for cc_temp in $compiler""; do
7122  case $cc_temp in
7123    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7124    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7125    \-*) ;;
7126    *) break;;
7127  esac
7128done
7129cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7130
7131
7132# Only perform the check for file, if the check method requires it
7133test -z "$MAGIC_CMD" && MAGIC_CMD=file
7134case $deplibs_check_method in
7135file_magic*)
7136  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7138$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7139if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  case $MAGIC_CMD in
7143[\\/*] |  ?:[\\/]*)
7144  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7145  ;;
7146*)
7147  lt_save_MAGIC_CMD="$MAGIC_CMD"
7148  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150  for ac_dir in $ac_dummy; do
7151    IFS="$lt_save_ifs"
7152    test -z "$ac_dir" && ac_dir=.
7153    if test -f $ac_dir/${ac_tool_prefix}file; then
7154      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7155      if test -n "$file_magic_test_file"; then
7156	case $deplibs_check_method in
7157	"file_magic "*)
7158	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7159	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161	    $EGREP "$file_magic_regex" > /dev/null; then
7162	    :
7163	  else
7164	    cat <<_LT_EOF 1>&2
7165
7166*** Warning: the command libtool uses to detect shared libraries,
7167*** $file_magic_cmd, produces output that libtool cannot recognize.
7168*** The result is that libtool may fail to recognize shared libraries
7169*** as such.  This will affect the creation of libtool libraries that
7170*** depend on shared libraries, but programs linked with such libtool
7171*** libraries will work regardless of this problem.  Nevertheless, you
7172*** may want to report the problem to your system manager and/or to
7173*** bug-libtool@gnu.org
7174
7175_LT_EOF
7176	  fi ;;
7177	esac
7178      fi
7179      break
7180    fi
7181  done
7182  IFS="$lt_save_ifs"
7183  MAGIC_CMD="$lt_save_MAGIC_CMD"
7184  ;;
7185esac
7186fi
7187
7188MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189if test -n "$MAGIC_CMD"; then
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7191$as_echo "$MAGIC_CMD" >&6; }
7192else
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198
7199
7200
7201if test -z "$lt_cv_path_MAGIC_CMD"; then
7202  if test -n "$ac_tool_prefix"; then
7203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7204$as_echo_n "checking for file... " >&6; }
7205if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7206  $as_echo_n "(cached) " >&6
7207else
7208  case $MAGIC_CMD in
7209[\\/*] |  ?:[\\/]*)
7210  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7211  ;;
7212*)
7213  lt_save_MAGIC_CMD="$MAGIC_CMD"
7214  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216  for ac_dir in $ac_dummy; do
7217    IFS="$lt_save_ifs"
7218    test -z "$ac_dir" && ac_dir=.
7219    if test -f $ac_dir/file; then
7220      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7221      if test -n "$file_magic_test_file"; then
7222	case $deplibs_check_method in
7223	"file_magic "*)
7224	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7225	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227	    $EGREP "$file_magic_regex" > /dev/null; then
7228	    :
7229	  else
7230	    cat <<_LT_EOF 1>&2
7231
7232*** Warning: the command libtool uses to detect shared libraries,
7233*** $file_magic_cmd, produces output that libtool cannot recognize.
7234*** The result is that libtool may fail to recognize shared libraries
7235*** as such.  This will affect the creation of libtool libraries that
7236*** depend on shared libraries, but programs linked with such libtool
7237*** libraries will work regardless of this problem.  Nevertheless, you
7238*** may want to report the problem to your system manager and/or to
7239*** bug-libtool@gnu.org
7240
7241_LT_EOF
7242	  fi ;;
7243	esac
7244      fi
7245      break
7246    fi
7247  done
7248  IFS="$lt_save_ifs"
7249  MAGIC_CMD="$lt_save_MAGIC_CMD"
7250  ;;
7251esac
7252fi
7253
7254MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255if test -n "$MAGIC_CMD"; then
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7257$as_echo "$MAGIC_CMD" >&6; }
7258else
7259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260$as_echo "no" >&6; }
7261fi
7262
7263
7264  else
7265    MAGIC_CMD=:
7266  fi
7267fi
7268
7269  fi
7270  ;;
7271esac
7272
7273# Use C for the default configuration in the libtool script
7274
7275lt_save_CC="$CC"
7276ac_ext=c
7277ac_cpp='$CPP $CPPFLAGS'
7278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281
7282
7283# Source file extension for C test sources.
7284ac_ext=c
7285
7286# Object file extension for compiled C test sources.
7287objext=o
7288objext=$objext
7289
7290# Code to be used in simple compile tests
7291lt_simple_compile_test_code="int some_variable = 0;"
7292
7293# Code to be used in simple link tests
7294lt_simple_link_test_code='int main(){return(0);}'
7295
7296
7297
7298
7299
7300
7301
7302# If no C compiler was specified, use CC.
7303LTCC=${LTCC-"$CC"}
7304
7305# If no C compiler flags were specified, use CFLAGS.
7306LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7307
7308# Allow CC to be a program name with arguments.
7309compiler=$CC
7310
7311# Save the default compiler, since it gets overwritten when the other
7312# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7313compiler_DEFAULT=$CC
7314
7315# save warnings/boilerplate of simple test code
7316ac_outfile=conftest.$ac_objext
7317echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7319_lt_compiler_boilerplate=`cat conftest.err`
7320$RM conftest*
7321
7322ac_outfile=conftest.$ac_objext
7323echo "$lt_simple_link_test_code" >conftest.$ac_ext
7324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7325_lt_linker_boilerplate=`cat conftest.err`
7326$RM -r conftest*
7327
7328
7329## CAVEAT EMPTOR:
7330## There is no encapsulation within the following macros, do not change
7331## the running order or otherwise move them around unless you know exactly
7332## what you are doing...
7333if test -n "$compiler"; then
7334
7335lt_prog_compiler_no_builtin_flag=
7336
7337if test "$GCC" = yes; then
7338  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7339
7340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7341$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7342if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  lt_cv_prog_compiler_rtti_exceptions=no
7346   ac_outfile=conftest.$ac_objext
7347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7348   lt_compiler_flag="-fno-rtti -fno-exceptions"
7349   # Insert the option either (1) after the last *FLAGS variable, or
7350   # (2) before a word containing "conftest.", or (3) at the end.
7351   # Note that $ac_compile itself does not contain backslashes and begins
7352   # with a dollar sign (not a hyphen), so the echo should work correctly.
7353   # The option is referenced via a variable to avoid confusing sed.
7354   lt_compile=`echo "$ac_compile" | $SED \
7355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357   -e 's:$: $lt_compiler_flag:'`
7358   (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359   (eval "$lt_compile" 2>conftest.err)
7360   ac_status=$?
7361   cat conftest.err >&5
7362   echo "$as_me:7362: \$? = $ac_status" >&5
7363   if (exit $ac_status) && test -s "$ac_outfile"; then
7364     # The compiler can only warn and ignore the option if not recognized
7365     # So say no if there are warnings other than the usual output.
7366     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369       lt_cv_prog_compiler_rtti_exceptions=yes
7370     fi
7371   fi
7372   $RM conftest*
7373
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7376$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7377
7378if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7379    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7380else
7381    :
7382fi
7383
7384fi
7385
7386
7387
7388
7389
7390
7391  lt_prog_compiler_wl=
7392lt_prog_compiler_pic=
7393lt_prog_compiler_static=
7394
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7396$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7397
7398  if test "$GCC" = yes; then
7399    lt_prog_compiler_wl='-Wl,'
7400    lt_prog_compiler_static='-static'
7401
7402    case $host_os in
7403      aix*)
7404      # All AIX code is PIC.
7405      if test "$host_cpu" = ia64; then
7406	# AIX 5 now supports IA64 processor
7407	lt_prog_compiler_static='-Bstatic'
7408      fi
7409      ;;
7410
7411    amigaos*)
7412      case $host_cpu in
7413      powerpc)
7414            # see comment about AmigaOS4 .so support
7415            lt_prog_compiler_pic='-fPIC'
7416        ;;
7417      m68k)
7418            # FIXME: we need at least 68020 code to build shared libraries, but
7419            # adding the `-m68020' flag to GCC prevents building anything better,
7420            # like `-m68040'.
7421            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7422        ;;
7423      esac
7424      ;;
7425
7426    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7427      # PIC is the default for these OSes.
7428      ;;
7429
7430    mingw* | cygwin* | pw32* | os2* | cegcc*)
7431      # This hack is so that the source file can tell whether it is being
7432      # built for inclusion in a dll (and should export symbols for example).
7433      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7434      # (--disable-auto-import) libraries
7435      lt_prog_compiler_pic='-DDLL_EXPORT'
7436      ;;
7437
7438    darwin* | rhapsody*)
7439      # PIC is the default on this platform
7440      # Common symbols not allowed in MH_DYLIB files
7441      lt_prog_compiler_pic='-fno-common'
7442      ;;
7443
7444    hpux*)
7445      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7446      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7447      # sets the default TLS model and affects inlining.
7448      case $host_cpu in
7449      hppa*64*)
7450	# +Z the default
7451	;;
7452      *)
7453	lt_prog_compiler_pic='-fPIC'
7454	;;
7455      esac
7456      ;;
7457
7458    interix[3-9]*)
7459      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7460      # Instead, we relocate shared libraries at runtime.
7461      ;;
7462
7463    msdosdjgpp*)
7464      # Just because we use GCC doesn't mean we suddenly get shared libraries
7465      # on systems that don't support them.
7466      lt_prog_compiler_can_build_shared=no
7467      enable_shared=no
7468      ;;
7469
7470    *nto* | *qnx*)
7471      # QNX uses GNU C++, but need to define -shared option too, otherwise
7472      # it will coredump.
7473      lt_prog_compiler_pic='-fPIC -shared'
7474      ;;
7475
7476    sysv4*MP*)
7477      if test -d /usr/nec; then
7478	lt_prog_compiler_pic=-Kconform_pic
7479      fi
7480      ;;
7481
7482    *)
7483      lt_prog_compiler_pic='-fPIC'
7484      ;;
7485    esac
7486  else
7487    # PORTME Check for flag to pass linker flags through the system compiler.
7488    case $host_os in
7489    aix*)
7490      lt_prog_compiler_wl='-Wl,'
7491      if test "$host_cpu" = ia64; then
7492	# AIX 5 now supports IA64 processor
7493	lt_prog_compiler_static='-Bstatic'
7494      else
7495	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7496      fi
7497      ;;
7498
7499    mingw* | cygwin* | pw32* | os2* | cegcc*)
7500      # This hack is so that the source file can tell whether it is being
7501      # built for inclusion in a dll (and should export symbols for example).
7502      lt_prog_compiler_pic='-DDLL_EXPORT'
7503      ;;
7504
7505    hpux9* | hpux10* | hpux11*)
7506      lt_prog_compiler_wl='-Wl,'
7507      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7508      # not for PA HP-UX.
7509      case $host_cpu in
7510      hppa*64*|ia64*)
7511	# +Z the default
7512	;;
7513      *)
7514	lt_prog_compiler_pic='+Z'
7515	;;
7516      esac
7517      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7518      lt_prog_compiler_static='${wl}-a ${wl}archive'
7519      ;;
7520
7521    irix5* | irix6* | nonstopux*)
7522      lt_prog_compiler_wl='-Wl,'
7523      # PIC (with -KPIC) is the default.
7524      lt_prog_compiler_static='-non_shared'
7525      ;;
7526
7527    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7528      case $cc_basename in
7529      # old Intel for x86_64 which still supported -KPIC.
7530      ecc*)
7531	lt_prog_compiler_wl='-Wl,'
7532	lt_prog_compiler_pic='-KPIC'
7533	lt_prog_compiler_static='-static'
7534        ;;
7535      # icc used to be incompatible with GCC.
7536      # ICC 10 doesn't accept -KPIC any more.
7537      icc* | ifort*)
7538	lt_prog_compiler_wl='-Wl,'
7539	lt_prog_compiler_pic='-fPIC'
7540	lt_prog_compiler_static='-static'
7541        ;;
7542      # Lahey Fortran 8.1.
7543      lf95*)
7544	lt_prog_compiler_wl='-Wl,'
7545	lt_prog_compiler_pic='--shared'
7546	lt_prog_compiler_static='--static'
7547	;;
7548      pgcc* | pgf77* | pgf90* | pgf95*)
7549        # Portland Group compilers (*not* the Pentium gcc compiler,
7550	# which looks to be a dead project)
7551	lt_prog_compiler_wl='-Wl,'
7552	lt_prog_compiler_pic='-fpic'
7553	lt_prog_compiler_static='-Bstatic'
7554        ;;
7555      ccc*)
7556        lt_prog_compiler_wl='-Wl,'
7557        # All Alpha code is PIC.
7558        lt_prog_compiler_static='-non_shared'
7559        ;;
7560      xl*)
7561	# IBM XL C 8.0/Fortran 10.1 on PPC
7562	lt_prog_compiler_wl='-Wl,'
7563	lt_prog_compiler_pic='-qpic'
7564	lt_prog_compiler_static='-qstaticlink'
7565	;;
7566      *)
7567	case `$CC -V 2>&1 | sed 5q` in
7568	*Sun\ C*)
7569	  # Sun C 5.9
7570	  lt_prog_compiler_pic='-KPIC'
7571	  lt_prog_compiler_static='-Bstatic'
7572	  lt_prog_compiler_wl='-Wl,'
7573	  ;;
7574	*Sun\ F*)
7575	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7576	  lt_prog_compiler_pic='-KPIC'
7577	  lt_prog_compiler_static='-Bstatic'
7578	  lt_prog_compiler_wl=''
7579	  ;;
7580	esac
7581	;;
7582      esac
7583      ;;
7584
7585    newsos6)
7586      lt_prog_compiler_pic='-KPIC'
7587      lt_prog_compiler_static='-Bstatic'
7588      ;;
7589
7590    *nto* | *qnx*)
7591      # QNX uses GNU C++, but need to define -shared option too, otherwise
7592      # it will coredump.
7593      lt_prog_compiler_pic='-fPIC -shared'
7594      ;;
7595
7596    osf3* | osf4* | osf5*)
7597      lt_prog_compiler_wl='-Wl,'
7598      # All OSF/1 code is PIC.
7599      lt_prog_compiler_static='-non_shared'
7600      ;;
7601
7602    rdos*)
7603      lt_prog_compiler_static='-non_shared'
7604      ;;
7605
7606    solaris*)
7607      lt_prog_compiler_pic='-KPIC'
7608      lt_prog_compiler_static='-Bstatic'
7609      case $cc_basename in
7610      f77* | f90* | f95*)
7611	lt_prog_compiler_wl='-Qoption ld ';;
7612      *)
7613	lt_prog_compiler_wl='-Wl,';;
7614      esac
7615      ;;
7616
7617    sunos4*)
7618      lt_prog_compiler_wl='-Qoption ld '
7619      lt_prog_compiler_pic='-PIC'
7620      lt_prog_compiler_static='-Bstatic'
7621      ;;
7622
7623    sysv4 | sysv4.2uw2* | sysv4.3*)
7624      lt_prog_compiler_wl='-Wl,'
7625      lt_prog_compiler_pic='-KPIC'
7626      lt_prog_compiler_static='-Bstatic'
7627      ;;
7628
7629    sysv4*MP*)
7630      if test -d /usr/nec ;then
7631	lt_prog_compiler_pic='-Kconform_pic'
7632	lt_prog_compiler_static='-Bstatic'
7633      fi
7634      ;;
7635
7636    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7637      lt_prog_compiler_wl='-Wl,'
7638      lt_prog_compiler_pic='-KPIC'
7639      lt_prog_compiler_static='-Bstatic'
7640      ;;
7641
7642    unicos*)
7643      lt_prog_compiler_wl='-Wl,'
7644      lt_prog_compiler_can_build_shared=no
7645      ;;
7646
7647    uts4*)
7648      lt_prog_compiler_pic='-pic'
7649      lt_prog_compiler_static='-Bstatic'
7650      ;;
7651
7652    *)
7653      lt_prog_compiler_can_build_shared=no
7654      ;;
7655    esac
7656  fi
7657
7658case $host_os in
7659  # For platforms which do not support PIC, -DPIC is meaningless:
7660  *djgpp*)
7661    lt_prog_compiler_pic=
7662    ;;
7663  *)
7664    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7665    ;;
7666esac
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7668$as_echo "$lt_prog_compiler_pic" >&6; }
7669
7670
7671
7672
7673
7674
7675#
7676# Check to make sure the PIC flag actually works.
7677#
7678if test -n "$lt_prog_compiler_pic"; then
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7680$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7681if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  lt_cv_prog_compiler_pic_works=no
7685   ac_outfile=conftest.$ac_objext
7686   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7687   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7688   # Insert the option either (1) after the last *FLAGS variable, or
7689   # (2) before a word containing "conftest.", or (3) at the end.
7690   # Note that $ac_compile itself does not contain backslashes and begins
7691   # with a dollar sign (not a hyphen), so the echo should work correctly.
7692   # The option is referenced via a variable to avoid confusing sed.
7693   lt_compile=`echo "$ac_compile" | $SED \
7694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696   -e 's:$: $lt_compiler_flag:'`
7697   (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698   (eval "$lt_compile" 2>conftest.err)
7699   ac_status=$?
7700   cat conftest.err >&5
7701   echo "$as_me:7701: \$? = $ac_status" >&5
7702   if (exit $ac_status) && test -s "$ac_outfile"; then
7703     # The compiler can only warn and ignore the option if not recognized
7704     # So say no if there are warnings other than the usual output.
7705     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7706     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7707     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7708       lt_cv_prog_compiler_pic_works=yes
7709     fi
7710   fi
7711   $RM conftest*
7712
7713fi
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7715$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7716
7717if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7718    case $lt_prog_compiler_pic in
7719     "" | " "*) ;;
7720     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7721     esac
7722else
7723    lt_prog_compiler_pic=
7724     lt_prog_compiler_can_build_shared=no
7725fi
7726
7727fi
7728
7729
7730
7731
7732
7733
7734#
7735# Check to make sure the static flag actually works.
7736#
7737wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7739$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7740if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  lt_cv_prog_compiler_static_works=no
7744   save_LDFLAGS="$LDFLAGS"
7745   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7746   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7747   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7748     # The linker can only warn and ignore the option if not recognized
7749     # So say no if there are warnings
7750     if test -s conftest.err; then
7751       # Append any errors to the config.log.
7752       cat conftest.err 1>&5
7753       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7754       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7755       if diff conftest.exp conftest.er2 >/dev/null; then
7756         lt_cv_prog_compiler_static_works=yes
7757       fi
7758     else
7759       lt_cv_prog_compiler_static_works=yes
7760     fi
7761   fi
7762   $RM -r conftest*
7763   LDFLAGS="$save_LDFLAGS"
7764
7765fi
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7767$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7768
7769if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7770    :
7771else
7772    lt_prog_compiler_static=
7773fi
7774
7775
7776
7777
7778
7779
7780
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7782$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7783if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  lt_cv_prog_compiler_c_o=no
7787   $RM -r conftest 2>/dev/null
7788   mkdir conftest
7789   cd conftest
7790   mkdir out
7791   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7792
7793   lt_compiler_flag="-o out/conftest2.$ac_objext"
7794   # Insert the option either (1) after the last *FLAGS variable, or
7795   # (2) before a word containing "conftest.", or (3) at the end.
7796   # Note that $ac_compile itself does not contain backslashes and begins
7797   # with a dollar sign (not a hyphen), so the echo should work correctly.
7798   lt_compile=`echo "$ac_compile" | $SED \
7799   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7800   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7801   -e 's:$: $lt_compiler_flag:'`
7802   (eval echo "\"\$as_me:7802: $lt_compile\"" >&5)
7803   (eval "$lt_compile" 2>out/conftest.err)
7804   ac_status=$?
7805   cat out/conftest.err >&5
7806   echo "$as_me:7806: \$? = $ac_status" >&5
7807   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7808   then
7809     # The compiler can only warn and ignore the option if not recognized
7810     # So say no if there are warnings
7811     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7812     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7813     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7814       lt_cv_prog_compiler_c_o=yes
7815     fi
7816   fi
7817   chmod u+w . 2>&5
7818   $RM conftest*
7819   # SGI C++ compiler will create directory out/ii_files/ for
7820   # template instantiation
7821   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7822   $RM out/* && rmdir out
7823   cd ..
7824   $RM -r conftest
7825   $RM conftest*
7826
7827fi
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7829$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7830
7831
7832
7833
7834
7835
7836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7838if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  lt_cv_prog_compiler_c_o=no
7842   $RM -r conftest 2>/dev/null
7843   mkdir conftest
7844   cd conftest
7845   mkdir out
7846   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847
7848   lt_compiler_flag="-o out/conftest2.$ac_objext"
7849   # Insert the option either (1) after the last *FLAGS variable, or
7850   # (2) before a word containing "conftest.", or (3) at the end.
7851   # Note that $ac_compile itself does not contain backslashes and begins
7852   # with a dollar sign (not a hyphen), so the echo should work correctly.
7853   lt_compile=`echo "$ac_compile" | $SED \
7854   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7855   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7856   -e 's:$: $lt_compiler_flag:'`
7857   (eval echo "\"\$as_me:7857: $lt_compile\"" >&5)
7858   (eval "$lt_compile" 2>out/conftest.err)
7859   ac_status=$?
7860   cat out/conftest.err >&5
7861   echo "$as_me:7861: \$? = $ac_status" >&5
7862   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7863   then
7864     # The compiler can only warn and ignore the option if not recognized
7865     # So say no if there are warnings
7866     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7867     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7868     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7869       lt_cv_prog_compiler_c_o=yes
7870     fi
7871   fi
7872   chmod u+w . 2>&5
7873   $RM conftest*
7874   # SGI C++ compiler will create directory out/ii_files/ for
7875   # template instantiation
7876   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7877   $RM out/* && rmdir out
7878   cd ..
7879   $RM -r conftest
7880   $RM conftest*
7881
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7884$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7885
7886
7887
7888
7889hard_links="nottested"
7890if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7891  # do not overwrite the value of need_locks provided by the user
7892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7893$as_echo_n "checking if we can lock with hard links... " >&6; }
7894  hard_links=yes
7895  $RM conftest*
7896  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7897  touch conftest.a
7898  ln conftest.a conftest.b 2>&5 || hard_links=no
7899  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7901$as_echo "$hard_links" >&6; }
7902  if test "$hard_links" = no; then
7903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7904$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7905    need_locks=warn
7906  fi
7907else
7908  need_locks=no
7909fi
7910
7911
7912
7913
7914
7915
7916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7917$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7918
7919  runpath_var=
7920  allow_undefined_flag=
7921  always_export_symbols=no
7922  archive_cmds=
7923  archive_expsym_cmds=
7924  compiler_needs_object=no
7925  enable_shared_with_static_runtimes=no
7926  export_dynamic_flag_spec=
7927  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7928  hardcode_automatic=no
7929  hardcode_direct=no
7930  hardcode_direct_absolute=no
7931  hardcode_libdir_flag_spec=
7932  hardcode_libdir_flag_spec_ld=
7933  hardcode_libdir_separator=
7934  hardcode_minus_L=no
7935  hardcode_shlibpath_var=unsupported
7936  inherit_rpath=no
7937  link_all_deplibs=unknown
7938  module_cmds=
7939  module_expsym_cmds=
7940  old_archive_from_new_cmds=
7941  old_archive_from_expsyms_cmds=
7942  thread_safe_flag_spec=
7943  whole_archive_flag_spec=
7944  # include_expsyms should be a list of space-separated symbols to be *always*
7945  # included in the symbol list
7946  include_expsyms=
7947  # exclude_expsyms can be an extended regexp of symbols to exclude
7948  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7949  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7950  # as well as any symbol that contains `d'.
7951  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7952  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7953  # platforms (ab)use it in PIC code, but their linkers get confused if
7954  # the symbol is explicitly referenced.  Since portable code cannot
7955  # rely on this symbol name, it's probably fine to never include it in
7956  # preloaded symbol tables.
7957  # Exclude shared library initialization/finalization symbols.
7958  extract_expsyms_cmds=
7959
7960  case $host_os in
7961  cygwin* | mingw* | pw32* | cegcc*)
7962    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7963    # When not using gcc, we currently assume that we are using
7964    # Microsoft Visual C++.
7965    if test "$GCC" != yes; then
7966      with_gnu_ld=no
7967    fi
7968    ;;
7969  interix*)
7970    # we just hope/assume this is gcc and not c89 (= MSVC++)
7971    with_gnu_ld=yes
7972    ;;
7973  openbsd*)
7974    with_gnu_ld=no
7975    ;;
7976  linux* | k*bsd*-gnu)
7977    link_all_deplibs=no
7978    ;;
7979  esac
7980
7981  ld_shlibs=yes
7982  if test "$with_gnu_ld" = yes; then
7983    # If archive_cmds runs LD, not CC, wlarc should be empty
7984    wlarc='${wl}'
7985
7986    # Set some defaults for GNU ld with shared library support. These
7987    # are reset later if shared libraries are not supported. Putting them
7988    # here allows them to be overridden if necessary.
7989    runpath_var=LD_RUN_PATH
7990    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7991    export_dynamic_flag_spec='${wl}--export-dynamic'
7992    # ancient GNU ld didn't support --whole-archive et. al.
7993    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7994      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7995    else
7996      whole_archive_flag_spec=
7997    fi
7998    supports_anon_versioning=no
7999    case `$LD -v 2>&1` in
8000      *GNU\ gold*) supports_anon_versioning=yes ;;
8001      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8002      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8003      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8004      *\ 2.11.*) ;; # other 2.11 versions
8005      *) supports_anon_versioning=yes ;;
8006    esac
8007
8008    # See if GNU ld supports shared libraries.
8009    case $host_os in
8010    aix[3-9]*)
8011      # On AIX/PPC, the GNU linker is very broken
8012      if test "$host_cpu" != ia64; then
8013	ld_shlibs=no
8014	cat <<_LT_EOF 1>&2
8015
8016*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8017*** to be unable to reliably create shared libraries on AIX.
8018*** Therefore, libtool is disabling shared libraries support.  If you
8019*** really care for shared libraries, you may want to modify your PATH
8020*** so that a non-GNU linker is found, and then restart.
8021
8022_LT_EOF
8023      fi
8024      ;;
8025
8026    amigaos*)
8027      case $host_cpu in
8028      powerpc)
8029            # see comment about AmigaOS4 .so support
8030            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8031            archive_expsym_cmds=''
8032        ;;
8033      m68k)
8034            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)'
8035            hardcode_libdir_flag_spec='-L$libdir'
8036            hardcode_minus_L=yes
8037        ;;
8038      esac
8039      ;;
8040
8041    beos*)
8042      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8043	allow_undefined_flag=unsupported
8044	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8045	# support --undefined.  This deserves some investigation.  FIXME
8046	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047      else
8048	ld_shlibs=no
8049      fi
8050      ;;
8051
8052    cygwin* | mingw* | pw32* | cegcc*)
8053      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8054      # as there is no search path for DLLs.
8055      hardcode_libdir_flag_spec='-L$libdir'
8056      allow_undefined_flag=unsupported
8057      always_export_symbols=no
8058      enable_shared_with_static_runtimes=yes
8059      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8060
8061      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8062        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8063	# If the export-symbols file already is a .def file (1st line
8064	# is EXPORTS), use it as is; otherwise, prepend...
8065	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8066	  cp $export_symbols $output_objdir/$soname.def;
8067	else
8068	  echo EXPORTS > $output_objdir/$soname.def;
8069	  cat $export_symbols >> $output_objdir/$soname.def;
8070	fi~
8071	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8072      else
8073	ld_shlibs=no
8074      fi
8075      ;;
8076
8077    interix[3-9]*)
8078      hardcode_direct=no
8079      hardcode_shlibpath_var=no
8080      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8081      export_dynamic_flag_spec='${wl}-E'
8082      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8083      # Instead, shared libraries are loaded at an image base (0x10000000 by
8084      # default) and relocated if they conflict, which is a slow very memory
8085      # consuming and fragmenting process.  To avoid this, we pick a random,
8086      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8087      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8088      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8089      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'
8090      ;;
8091
8092    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8093      tmp_diet=no
8094      if test "$host_os" = linux-dietlibc; then
8095	case $cc_basename in
8096	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8097	esac
8098      fi
8099      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8100	 && test "$tmp_diet" = no
8101      then
8102	tmp_addflag=
8103	tmp_sharedflag='-shared'
8104	case $cc_basename,$host_cpu in
8105        pgcc*)				# Portland Group C compiler
8106	  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'
8107	  tmp_addflag=' $pic_flag'
8108	  ;;
8109	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8110	  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'
8111	  tmp_addflag=' $pic_flag -Mnomain' ;;
8112	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8113	  tmp_addflag=' -i_dynamic' ;;
8114	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8115	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8116	ifc* | ifort*)			# Intel Fortran compiler
8117	  tmp_addflag=' -nofor_main' ;;
8118	lf95*)				# Lahey Fortran 8.1
8119	  whole_archive_flag_spec=
8120	  tmp_sharedflag='--shared' ;;
8121	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8122	  tmp_sharedflag='-qmkshrobj'
8123	  tmp_addflag= ;;
8124	esac
8125	case `$CC -V 2>&1 | sed 5q` in
8126	*Sun\ C*)			# Sun C 5.9
8127	  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'
8128	  compiler_needs_object=yes
8129	  tmp_sharedflag='-G' ;;
8130	*Sun\ F*)			# Sun Fortran 8.3
8131	  tmp_sharedflag='-G' ;;
8132	esac
8133	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8134
8135        if test "x$supports_anon_versioning" = xyes; then
8136          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8137	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8138	    echo "local: *; };" >> $output_objdir/$libname.ver~
8139	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8140        fi
8141
8142	case $cc_basename in
8143	xlf*)
8144	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8145	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8146	  hardcode_libdir_flag_spec=
8147	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8148	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8149	  if test "x$supports_anon_versioning" = xyes; then
8150	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8151	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8152	      echo "local: *; };" >> $output_objdir/$libname.ver~
8153	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8154	  fi
8155	  ;;
8156	esac
8157      else
8158        ld_shlibs=no
8159      fi
8160      ;;
8161
8162    netbsd* | netbsdelf*-gnu)
8163      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8164	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8165	wlarc=
8166      else
8167	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8168	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8169      fi
8170      ;;
8171
8172    solaris*)
8173      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8174	ld_shlibs=no
8175	cat <<_LT_EOF 1>&2
8176
8177*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8178*** create shared libraries on Solaris systems.  Therefore, libtool
8179*** is disabling shared libraries support.  We urge you to upgrade GNU
8180*** binutils to release 2.9.1 or newer.  Another option is to modify
8181*** your PATH or compiler configuration so that the native linker is
8182*** used, and then restart.
8183
8184_LT_EOF
8185      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8186	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8187	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8188      else
8189	ld_shlibs=no
8190      fi
8191      ;;
8192
8193    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8194      case `$LD -v 2>&1` in
8195        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8196	ld_shlibs=no
8197	cat <<_LT_EOF 1>&2
8198
8199*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8200*** reliably create shared libraries on SCO systems.  Therefore, libtool
8201*** is disabling shared libraries support.  We urge you to upgrade GNU
8202*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8203*** your PATH or compiler configuration so that the native linker is
8204*** used, and then restart.
8205
8206_LT_EOF
8207	;;
8208	*)
8209	  # For security reasons, it is highly recommended that you always
8210	  # use absolute paths for naming shared libraries, and exclude the
8211	  # DT_RUNPATH tag from executables and libraries.  But doing so
8212	  # requires that you compile everything twice, which is a pain.
8213	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8214	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8217	  else
8218	    ld_shlibs=no
8219	  fi
8220	;;
8221      esac
8222      ;;
8223
8224    sunos4*)
8225      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8226      wlarc=
8227      hardcode_direct=yes
8228      hardcode_shlibpath_var=no
8229      ;;
8230
8231    *)
8232      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8233	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235      else
8236	ld_shlibs=no
8237      fi
8238      ;;
8239    esac
8240
8241    if test "$ld_shlibs" = no; then
8242      runpath_var=
8243      hardcode_libdir_flag_spec=
8244      export_dynamic_flag_spec=
8245      whole_archive_flag_spec=
8246    fi
8247  else
8248    # PORTME fill in a description of your system's linker (not GNU ld)
8249    case $host_os in
8250    aix3*)
8251      allow_undefined_flag=unsupported
8252      always_export_symbols=yes
8253      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'
8254      # Note: this linker hardcodes the directories in LIBPATH if there
8255      # are no directories specified by -L.
8256      hardcode_minus_L=yes
8257      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8258	# Neither direct hardcoding nor static linking is supported with a
8259	# broken collect2.
8260	hardcode_direct=unsupported
8261      fi
8262      ;;
8263
8264    aix[4-9]*)
8265      if test "$host_cpu" = ia64; then
8266	# On IA64, the linker does run time linking by default, so we don't
8267	# have to do anything special.
8268	aix_use_runtimelinking=no
8269	exp_sym_flag='-Bexport'
8270	no_entry_flag=""
8271      else
8272	# If we're using GNU nm, then we don't want the "-C" option.
8273	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8274	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8275	  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'
8276	else
8277	  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'
8278	fi
8279	aix_use_runtimelinking=no
8280
8281	# Test if we are trying to use run time linking or normal
8282	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8283	# need to do runtime linking.
8284	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8285	  for ld_flag in $LDFLAGS; do
8286	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8287	    aix_use_runtimelinking=yes
8288	    break
8289	  fi
8290	  done
8291	  ;;
8292	esac
8293
8294	exp_sym_flag='-bexport'
8295	no_entry_flag='-bnoentry'
8296      fi
8297
8298      # When large executables or shared objects are built, AIX ld can
8299      # have problems creating the table of contents.  If linking a library
8300      # or program results in "error TOC overflow" add -mminimal-toc to
8301      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8302      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8303
8304      archive_cmds=''
8305      hardcode_direct=yes
8306      hardcode_direct_absolute=yes
8307      hardcode_libdir_separator=':'
8308      link_all_deplibs=yes
8309      file_list_spec='${wl}-f,'
8310
8311      if test "$GCC" = yes; then
8312	case $host_os in aix4.[012]|aix4.[012].*)
8313	# We only want to do this on AIX 4.2 and lower, the check
8314	# below for broken collect2 doesn't work under 4.3+
8315	  collect2name=`${CC} -print-prog-name=collect2`
8316	  if test -f "$collect2name" &&
8317	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8318	  then
8319	  # We have reworked collect2
8320	  :
8321	  else
8322	  # We have old collect2
8323	  hardcode_direct=unsupported
8324	  # It fails to find uninstalled libraries when the uninstalled
8325	  # path is not listed in the libpath.  Setting hardcode_minus_L
8326	  # to unsupported forces relinking
8327	  hardcode_minus_L=yes
8328	  hardcode_libdir_flag_spec='-L$libdir'
8329	  hardcode_libdir_separator=
8330	  fi
8331	  ;;
8332	esac
8333	shared_flag='-shared'
8334	if test "$aix_use_runtimelinking" = yes; then
8335	  shared_flag="$shared_flag "'${wl}-G'
8336	fi
8337	link_all_deplibs=no
8338      else
8339	# not using gcc
8340	if test "$host_cpu" = ia64; then
8341	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8342	# chokes on -Wl,-G. The following line is correct:
8343	  shared_flag='-G'
8344	else
8345	  if test "$aix_use_runtimelinking" = yes; then
8346	    shared_flag='${wl}-G'
8347	  else
8348	    shared_flag='${wl}-bM:SRE'
8349	  fi
8350	fi
8351      fi
8352
8353      export_dynamic_flag_spec='${wl}-bexpall'
8354      # It seems that -bexpall does not export symbols beginning with
8355      # underscore (_), so it is better to generate a list of symbols to export.
8356      always_export_symbols=yes
8357      if test "$aix_use_runtimelinking" = yes; then
8358	# Warning - without using the other runtime loading flags (-brtl),
8359	# -berok will link without error, but may produce a broken library.
8360	allow_undefined_flag='-berok'
8361        # Determine the default libpath from the value encoded in an
8362        # empty executable.
8363        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h.  */
8365
8366int
8367main ()
8368{
8369
8370  ;
8371  return 0;
8372}
8373_ACEOF
8374if ac_fn_c_try_link "$LINENO"; then :
8375
8376lt_aix_libpath_sed='
8377    /Import File Strings/,/^$/ {
8378	/^0/ {
8379	    s/^0  *\(.*\)$/\1/
8380	    p
8381	}
8382    }'
8383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8384# Check for a 64-bit object if we didn't find anything.
8385if test -z "$aix_libpath"; then
8386  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387fi
8388fi
8389rm -f core conftest.err conftest.$ac_objext \
8390    conftest$ac_exeext conftest.$ac_ext
8391if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8392
8393        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8394        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"
8395      else
8396	if test "$host_cpu" = ia64; then
8397	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8398	  allow_undefined_flag="-z nodefs"
8399	  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"
8400	else
8401	 # Determine the default libpath from the value encoded in an
8402	 # empty executable.
8403	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404/* end confdefs.h.  */
8405
8406int
8407main ()
8408{
8409
8410  ;
8411  return 0;
8412}
8413_ACEOF
8414if ac_fn_c_try_link "$LINENO"; then :
8415
8416lt_aix_libpath_sed='
8417    /Import File Strings/,/^$/ {
8418	/^0/ {
8419	    s/^0  *\(.*\)$/\1/
8420	    p
8421	}
8422    }'
8423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424# Check for a 64-bit object if we didn't find anything.
8425if test -z "$aix_libpath"; then
8426  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8427fi
8428fi
8429rm -f core conftest.err conftest.$ac_objext \
8430    conftest$ac_exeext conftest.$ac_ext
8431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8432
8433	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8434	  # Warning - without using the other run time loading flags,
8435	  # -berok will link without error, but may produce a broken library.
8436	  no_undefined_flag=' ${wl}-bernotok'
8437	  allow_undefined_flag=' ${wl}-berok'
8438	  # Exported symbols can be pulled into shared objects from archives
8439	  whole_archive_flag_spec='$convenience'
8440	  archive_cmds_need_lc=yes
8441	  # This is similar to how AIX traditionally builds its shared libraries.
8442	  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'
8443	fi
8444      fi
8445      ;;
8446
8447    amigaos*)
8448      case $host_cpu in
8449      powerpc)
8450            # see comment about AmigaOS4 .so support
8451            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452            archive_expsym_cmds=''
8453        ;;
8454      m68k)
8455            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)'
8456            hardcode_libdir_flag_spec='-L$libdir'
8457            hardcode_minus_L=yes
8458        ;;
8459      esac
8460      ;;
8461
8462    bsdi[45]*)
8463      export_dynamic_flag_spec=-rdynamic
8464      ;;
8465
8466    cygwin* | mingw* | pw32* | cegcc*)
8467      # When not using gcc, we currently assume that we are using
8468      # Microsoft Visual C++.
8469      # hardcode_libdir_flag_spec is actually meaningless, as there is
8470      # no search path for DLLs.
8471      hardcode_libdir_flag_spec=' '
8472      allow_undefined_flag=unsupported
8473      # Tell ltmain to make .lib files, not .a files.
8474      libext=lib
8475      # Tell ltmain to make .dll files, not .so files.
8476      shrext_cmds=".dll"
8477      # FIXME: Setting linknames here is a bad hack.
8478      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8479      # The linker will automatically build a .lib file if we build a DLL.
8480      old_archive_from_new_cmds='true'
8481      # FIXME: Should let the user specify the lib program.
8482      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8483      fix_srcfile_path='`cygpath -w "$srcfile"`'
8484      enable_shared_with_static_runtimes=yes
8485      ;;
8486
8487    darwin* | rhapsody*)
8488
8489
8490  archive_cmds_need_lc=no
8491  hardcode_direct=no
8492  hardcode_automatic=yes
8493  hardcode_shlibpath_var=unsupported
8494  whole_archive_flag_spec=''
8495  link_all_deplibs=yes
8496  allow_undefined_flag="$_lt_dar_allow_undefined"
8497  case $cc_basename in
8498     ifort*) _lt_dar_can_shared=yes ;;
8499     *) _lt_dar_can_shared=$GCC ;;
8500  esac
8501  if test "$_lt_dar_can_shared" = "yes"; then
8502    output_verbose_link_cmd=echo
8503    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8504    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8505    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}"
8506    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}"
8507
8508  else
8509  ld_shlibs=no
8510  fi
8511
8512      ;;
8513
8514    dgux*)
8515      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8516      hardcode_libdir_flag_spec='-L$libdir'
8517      hardcode_shlibpath_var=no
8518      ;;
8519
8520    freebsd1*)
8521      ld_shlibs=no
8522      ;;
8523
8524    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8525    # support.  Future versions do this automatically, but an explicit c++rt0.o
8526    # does not break anything, and helps significantly (at the cost of a little
8527    # extra space).
8528    freebsd2.2*)
8529      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8530      hardcode_libdir_flag_spec='-R$libdir'
8531      hardcode_direct=yes
8532      hardcode_shlibpath_var=no
8533      ;;
8534
8535    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8536    freebsd2*)
8537      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8538      hardcode_direct=yes
8539      hardcode_minus_L=yes
8540      hardcode_shlibpath_var=no
8541      ;;
8542
8543    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8544    freebsd* | dragonfly*)
8545      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8546      hardcode_libdir_flag_spec='-R$libdir'
8547      hardcode_direct=yes
8548      hardcode_shlibpath_var=no
8549      ;;
8550
8551    hpux9*)
8552      if test "$GCC" = yes; then
8553	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'
8554      else
8555	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'
8556      fi
8557      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558      hardcode_libdir_separator=:
8559      hardcode_direct=yes
8560
8561      # hardcode_minus_L: Not really in the search PATH,
8562      # but as the default location of the library.
8563      hardcode_minus_L=yes
8564      export_dynamic_flag_spec='${wl}-E'
8565      ;;
8566
8567    hpux10*)
8568      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8569	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8570      else
8571	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8572      fi
8573      if test "$with_gnu_ld" = no; then
8574	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8575	hardcode_libdir_flag_spec_ld='+b $libdir'
8576	hardcode_libdir_separator=:
8577	hardcode_direct=yes
8578	hardcode_direct_absolute=yes
8579	export_dynamic_flag_spec='${wl}-E'
8580	# hardcode_minus_L: Not really in the search PATH,
8581	# but as the default location of the library.
8582	hardcode_minus_L=yes
8583      fi
8584      ;;
8585
8586    hpux11*)
8587      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8588	case $host_cpu in
8589	hppa*64*)
8590	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591	  ;;
8592	ia64*)
8593	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8594	  ;;
8595	*)
8596	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8597	  ;;
8598	esac
8599      else
8600	case $host_cpu in
8601	hppa*64*)
8602	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8603	  ;;
8604	ia64*)
8605	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8606	  ;;
8607	*)
8608	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8609	  ;;
8610	esac
8611      fi
8612      if test "$with_gnu_ld" = no; then
8613	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8614	hardcode_libdir_separator=:
8615
8616	case $host_cpu in
8617	hppa*64*|ia64*)
8618	  hardcode_direct=no
8619	  hardcode_shlibpath_var=no
8620	  ;;
8621	*)
8622	  hardcode_direct=yes
8623	  hardcode_direct_absolute=yes
8624	  export_dynamic_flag_spec='${wl}-E'
8625
8626	  # hardcode_minus_L: Not really in the search PATH,
8627	  # but as the default location of the library.
8628	  hardcode_minus_L=yes
8629	  ;;
8630	esac
8631      fi
8632      ;;
8633
8634    irix5* | irix6* | nonstopux*)
8635      if test "$GCC" = yes; then
8636	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'
8637	# Try to use the -exported_symbol ld option, if it does not
8638	# work, assume that -exports_file does not work either and
8639	# implicitly export all symbols.
8640        save_LDFLAGS="$LDFLAGS"
8641        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8642        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int foo(void) {}
8645_ACEOF
8646if ac_fn_c_try_link "$LINENO"; then :
8647  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'
8648
8649fi
8650rm -f core conftest.err conftest.$ac_objext \
8651    conftest$ac_exeext conftest.$ac_ext
8652        LDFLAGS="$save_LDFLAGS"
8653      else
8654	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'
8655	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'
8656      fi
8657      archive_cmds_need_lc='no'
8658      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8659      hardcode_libdir_separator=:
8660      inherit_rpath=yes
8661      link_all_deplibs=yes
8662      ;;
8663
8664    netbsd* | netbsdelf*-gnu)
8665      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8666	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8667      else
8668	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8669      fi
8670      hardcode_libdir_flag_spec='-R$libdir'
8671      hardcode_direct=yes
8672      hardcode_shlibpath_var=no
8673      ;;
8674
8675    newsos6)
8676      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677      hardcode_direct=yes
8678      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8679      hardcode_libdir_separator=:
8680      hardcode_shlibpath_var=no
8681      ;;
8682
8683    *nto* | *qnx*)
8684      ;;
8685
8686    openbsd*)
8687      if test -f /usr/libexec/ld.so; then
8688	hardcode_direct=yes
8689	hardcode_shlibpath_var=no
8690	hardcode_direct_absolute=yes
8691	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8692	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8693	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8694	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8695	  export_dynamic_flag_spec='${wl}-E'
8696	else
8697	  case $host_os in
8698	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8699	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8700	     hardcode_libdir_flag_spec='-R$libdir'
8701	     ;;
8702	   *)
8703	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8704	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8705	     ;;
8706	  esac
8707	fi
8708      else
8709	ld_shlibs=no
8710      fi
8711      ;;
8712
8713    os2*)
8714      hardcode_libdir_flag_spec='-L$libdir'
8715      hardcode_minus_L=yes
8716      allow_undefined_flag=unsupported
8717      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'
8718      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8719      ;;
8720
8721    osf3*)
8722      if test "$GCC" = yes; then
8723	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8724	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'
8725      else
8726	allow_undefined_flag=' -expect_unresolved \*'
8727	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'
8728      fi
8729      archive_cmds_need_lc='no'
8730      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731      hardcode_libdir_separator=:
8732      ;;
8733
8734    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8735      if test "$GCC" = yes; then
8736	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8737	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'
8738	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739      else
8740	allow_undefined_flag=' -expect_unresolved \*'
8741	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'
8742	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~
8743	$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'
8744
8745	# Both c and cxx compiler support -rpath directly
8746	hardcode_libdir_flag_spec='-rpath $libdir'
8747      fi
8748      archive_cmds_need_lc='no'
8749      hardcode_libdir_separator=:
8750      ;;
8751
8752    solaris*)
8753      no_undefined_flag=' -z defs'
8754      if test "$GCC" = yes; then
8755	wlarc='${wl}'
8756	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8757	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8758	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8759      else
8760	case `$CC -V 2>&1` in
8761	*"Compilers 5.0"*)
8762	  wlarc=''
8763	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8765	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8766	  ;;
8767	*)
8768	  wlarc='${wl}'
8769	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8770	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8771	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8772	  ;;
8773	esac
8774      fi
8775      hardcode_libdir_flag_spec='-R$libdir'
8776      hardcode_shlibpath_var=no
8777      case $host_os in
8778      solaris2.[0-5] | solaris2.[0-5].*) ;;
8779      *)
8780	# The compiler driver will combine and reorder linker options,
8781	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8782	# but is careful enough not to reorder.
8783	# Supported since Solaris 2.6 (maybe 2.5.1?)
8784	if test "$GCC" = yes; then
8785	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8786	else
8787	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8788	fi
8789	;;
8790      esac
8791      link_all_deplibs=yes
8792      ;;
8793
8794    sunos4*)
8795      if test "x$host_vendor" = xsequent; then
8796	# Use $CC to link under sequent, because it throws in some extra .o
8797	# files that make .init and .fini sections work.
8798	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8799      else
8800	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8801      fi
8802      hardcode_libdir_flag_spec='-L$libdir'
8803      hardcode_direct=yes
8804      hardcode_minus_L=yes
8805      hardcode_shlibpath_var=no
8806      ;;
8807
8808    sysv4)
8809      case $host_vendor in
8810	sni)
8811	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812	  hardcode_direct=yes # is this really true???
8813	;;
8814	siemens)
8815	  ## LD is ld it makes a PLAMLIB
8816	  ## CC just makes a GrossModule.
8817	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8818	  reload_cmds='$CC -r -o $output$reload_objs'
8819	  hardcode_direct=no
8820        ;;
8821	motorola)
8822	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8824	;;
8825      esac
8826      runpath_var='LD_RUN_PATH'
8827      hardcode_shlibpath_var=no
8828      ;;
8829
8830    sysv4.3*)
8831      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832      hardcode_shlibpath_var=no
8833      export_dynamic_flag_spec='-Bexport'
8834      ;;
8835
8836    sysv4*MP*)
8837      if test -d /usr/nec; then
8838	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839	hardcode_shlibpath_var=no
8840	runpath_var=LD_RUN_PATH
8841	hardcode_runpath_var=yes
8842	ld_shlibs=yes
8843      fi
8844      ;;
8845
8846    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8847      no_undefined_flag='${wl}-z,text'
8848      archive_cmds_need_lc=no
8849      hardcode_shlibpath_var=no
8850      runpath_var='LD_RUN_PATH'
8851
8852      if test "$GCC" = yes; then
8853	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8855      else
8856	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8857	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8858      fi
8859      ;;
8860
8861    sysv5* | sco3.2v5* | sco5v6*)
8862      # Note: We can NOT use -z defs as we might desire, because we do not
8863      # link with -lc, and that would cause any symbols used from libc to
8864      # always be unresolved, which means just about no library would
8865      # ever link correctly.  If we're not using GNU ld we use -z text
8866      # though, which does catch some bad symbols but isn't as heavy-handed
8867      # as -z defs.
8868      no_undefined_flag='${wl}-z,text'
8869      allow_undefined_flag='${wl}-z,nodefs'
8870      archive_cmds_need_lc=no
8871      hardcode_shlibpath_var=no
8872      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8873      hardcode_libdir_separator=':'
8874      link_all_deplibs=yes
8875      export_dynamic_flag_spec='${wl}-Bexport'
8876      runpath_var='LD_RUN_PATH'
8877
8878      if test "$GCC" = yes; then
8879	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881      else
8882	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8883	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884      fi
8885      ;;
8886
8887    uts4*)
8888      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889      hardcode_libdir_flag_spec='-L$libdir'
8890      hardcode_shlibpath_var=no
8891      ;;
8892
8893    *)
8894      ld_shlibs=no
8895      ;;
8896    esac
8897
8898    if test x$host_vendor = xsni; then
8899      case $host in
8900      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8901	export_dynamic_flag_spec='${wl}-Blargedynsym'
8902	;;
8903      esac
8904    fi
8905  fi
8906
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8908$as_echo "$ld_shlibs" >&6; }
8909test "$ld_shlibs" = no && can_build_shared=no
8910
8911with_gnu_ld=$with_gnu_ld
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927#
8928# Do we need to explicitly link libc?
8929#
8930case "x$archive_cmds_need_lc" in
8931x|xyes)
8932  # Assume -lc should be added
8933  archive_cmds_need_lc=yes
8934
8935  if test "$enable_shared" = yes && test "$GCC" = yes; then
8936    case $archive_cmds in
8937    *'~'*)
8938      # FIXME: we may have to deal with multi-command sequences.
8939      ;;
8940    '$CC '*)
8941      # Test whether the compiler implicitly links with -lc since on some
8942      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8943      # to ld, don't add -lc before -lgcc.
8944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8945$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8946      $RM conftest*
8947      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8948
8949      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8950  (eval $ac_compile) 2>&5
8951  ac_status=$?
8952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8953  test $ac_status = 0; } 2>conftest.err; then
8954        soname=conftest
8955        lib=conftest
8956        libobjs=conftest.$ac_objext
8957        deplibs=
8958        wl=$lt_prog_compiler_wl
8959	pic_flag=$lt_prog_compiler_pic
8960        compiler_flags=-v
8961        linker_flags=-v
8962        verstring=
8963        output_objdir=.
8964        libname=conftest
8965        lt_save_allow_undefined_flag=$allow_undefined_flag
8966        allow_undefined_flag=
8967        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8968  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8969  ac_status=$?
8970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8971  test $ac_status = 0; }
8972        then
8973	  archive_cmds_need_lc=no
8974        else
8975	  archive_cmds_need_lc=yes
8976        fi
8977        allow_undefined_flag=$lt_save_allow_undefined_flag
8978      else
8979        cat conftest.err 1>&5
8980      fi
8981      $RM conftest*
8982      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8983$as_echo "$archive_cmds_need_lc" >&6; }
8984      ;;
8985    esac
8986  fi
8987  ;;
8988esac
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
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
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9147$as_echo_n "checking dynamic linker characteristics... " >&6; }
9148
9149if test "$GCC" = yes; then
9150  case $host_os in
9151    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9152    *) lt_awk_arg="/^libraries:/" ;;
9153  esac
9154  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9155  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9156    # if the path contains ";" then we assume it to be the separator
9157    # otherwise default to the standard path separator (i.e. ":") - it is
9158    # assumed that no part of a normal pathname contains ";" but that should
9159    # okay in the real world where ";" in dirpaths is itself problematic.
9160    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9161  else
9162    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9163  fi
9164  # Ok, now we have the path, separated by spaces, we can step through it
9165  # and add multilib dir if necessary.
9166  lt_tmp_lt_search_path_spec=
9167  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9168  for lt_sys_path in $lt_search_path_spec; do
9169    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9170      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9171    else
9172      test -d "$lt_sys_path" && \
9173	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9174    fi
9175  done
9176  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9177BEGIN {RS=" "; FS="/|\n";} {
9178  lt_foo="";
9179  lt_count=0;
9180  for (lt_i = NF; lt_i > 0; lt_i--) {
9181    if ($lt_i != "" && $lt_i != ".") {
9182      if ($lt_i == "..") {
9183        lt_count++;
9184      } else {
9185        if (lt_count == 0) {
9186          lt_foo="/" $lt_i lt_foo;
9187        } else {
9188          lt_count--;
9189        }
9190      }
9191    }
9192  }
9193  if (lt_foo != "") { lt_freq[lt_foo]++; }
9194  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9195}'`
9196  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9197else
9198  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9199fi
9200library_names_spec=
9201libname_spec='lib$name'
9202soname_spec=
9203shrext_cmds=".so"
9204postinstall_cmds=
9205postuninstall_cmds=
9206finish_cmds=
9207finish_eval=
9208shlibpath_var=
9209shlibpath_overrides_runpath=unknown
9210version_type=none
9211dynamic_linker="$host_os ld.so"
9212sys_lib_dlsearch_path_spec="/lib /usr/lib"
9213need_lib_prefix=unknown
9214hardcode_into_libs=no
9215
9216# when you set need_version to no, make sure it does not cause -set_version
9217# flags to be left without arguments
9218need_version=unknown
9219
9220case $host_os in
9221aix3*)
9222  version_type=linux
9223  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9224  shlibpath_var=LIBPATH
9225
9226  # AIX 3 has no versioning support, so we append a major version to the name.
9227  soname_spec='${libname}${release}${shared_ext}$major'
9228  ;;
9229
9230aix[4-9]*)
9231  version_type=linux
9232  need_lib_prefix=no
9233  need_version=no
9234  hardcode_into_libs=yes
9235  if test "$host_cpu" = ia64; then
9236    # AIX 5 supports IA64
9237    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9238    shlibpath_var=LD_LIBRARY_PATH
9239  else
9240    # With GCC up to 2.95.x, collect2 would create an import file
9241    # for dependence libraries.  The import file would start with
9242    # the line `#! .'.  This would cause the generated library to
9243    # depend on `.', always an invalid library.  This was fixed in
9244    # development snapshots of GCC prior to 3.0.
9245    case $host_os in
9246      aix4 | aix4.[01] | aix4.[01].*)
9247      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9248	   echo ' yes '
9249	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9250	:
9251      else
9252	can_build_shared=no
9253      fi
9254      ;;
9255    esac
9256    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9257    # soname into executable. Probably we can add versioning support to
9258    # collect2, so additional links can be useful in future.
9259    if test "$aix_use_runtimelinking" = yes; then
9260      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9261      # instead of lib<name>.a to let people know that these are not
9262      # typical AIX shared libraries.
9263      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264    else
9265      # We preserve .a as extension for shared libraries through AIX4.2
9266      # and later when we are not doing run time linking.
9267      library_names_spec='${libname}${release}.a $libname.a'
9268      soname_spec='${libname}${release}${shared_ext}$major'
9269    fi
9270    shlibpath_var=LIBPATH
9271  fi
9272  ;;
9273
9274amigaos*)
9275  case $host_cpu in
9276  powerpc)
9277    # Since July 2007 AmigaOS4 officially supports .so libraries.
9278    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9279    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280    ;;
9281  m68k)
9282    library_names_spec='$libname.ixlibrary $libname.a'
9283    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9284    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'
9285    ;;
9286  esac
9287  ;;
9288
9289beos*)
9290  library_names_spec='${libname}${shared_ext}'
9291  dynamic_linker="$host_os ld.so"
9292  shlibpath_var=LIBRARY_PATH
9293  ;;
9294
9295bsdi[45]*)
9296  version_type=linux
9297  need_version=no
9298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299  soname_spec='${libname}${release}${shared_ext}$major'
9300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9301  shlibpath_var=LD_LIBRARY_PATH
9302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9304  # the default ld.so.conf also contains /usr/contrib/lib and
9305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9306  # libtool to hard-code these into programs
9307  ;;
9308
9309cygwin* | mingw* | pw32* | cegcc*)
9310  version_type=windows
9311  shrext_cmds=".dll"
9312  need_version=no
9313  need_lib_prefix=no
9314
9315  case $GCC,$host_os in
9316  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9317    library_names_spec='$libname.dll.a'
9318    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9319    postinstall_cmds='base_file=`basename \${file}`~
9320      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9321      dldir=$destdir/`dirname \$dlpath`~
9322      test -d \$dldir || mkdir -p \$dldir~
9323      $install_prog $dir/$dlname \$dldir/$dlname~
9324      chmod a+x \$dldir/$dlname~
9325      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9326        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9327      fi'
9328    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9329      dlpath=$dir/\$dldll~
9330       $RM \$dlpath'
9331    shlibpath_overrides_runpath=yes
9332
9333    case $host_os in
9334    cygwin*)
9335      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9336      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9337      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9338      ;;
9339    mingw* | cegcc*)
9340      # MinGW DLLs use traditional 'lib' prefix
9341      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9342      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9343      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9344        # It is most probably a Windows format PATH printed by
9345        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9346        # path with ; separators, and with drive letters. We can handle the
9347        # drive letters (cygwin fileutils understands them), so leave them,
9348        # especially as we might pass files found there to a mingw objdump,
9349        # which wouldn't understand a cygwinified path. Ahh.
9350        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9351      else
9352        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9353      fi
9354      ;;
9355    pw32*)
9356      # pw32 DLLs use 'pw' prefix rather than 'lib'
9357      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358      ;;
9359    esac
9360    ;;
9361
9362  *)
9363    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9364    ;;
9365  esac
9366  dynamic_linker='Win32 ld.exe'
9367  # FIXME: first we should search . and the directory the executable is in
9368  shlibpath_var=PATH
9369  ;;
9370
9371darwin* | rhapsody*)
9372  dynamic_linker="$host_os dyld"
9373  version_type=darwin
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9377  soname_spec='${libname}${release}${major}$shared_ext'
9378  shlibpath_overrides_runpath=yes
9379  shlibpath_var=DYLD_LIBRARY_PATH
9380  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9381
9382  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9383  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9384  ;;
9385
9386dgux*)
9387  version_type=linux
9388  need_lib_prefix=no
9389  need_version=no
9390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9391  soname_spec='${libname}${release}${shared_ext}$major'
9392  shlibpath_var=LD_LIBRARY_PATH
9393  ;;
9394
9395freebsd1*)
9396  dynamic_linker=no
9397  ;;
9398
9399freebsd* | dragonfly*)
9400  # DragonFly does not have aout.  When/if they implement a new
9401  # versioning mechanism, adjust this.
9402  if test -x /usr/bin/objformat; then
9403    objformat=`/usr/bin/objformat`
9404  else
9405    case $host_os in
9406    freebsd[123]*) objformat=aout ;;
9407    *) objformat=elf ;;
9408    esac
9409  fi
9410  version_type=freebsd-$objformat
9411  case $version_type in
9412    freebsd-elf*)
9413      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9414      need_version=no
9415      need_lib_prefix=no
9416      ;;
9417    freebsd-*)
9418      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9419      need_version=yes
9420      ;;
9421  esac
9422  shlibpath_var=LD_LIBRARY_PATH
9423  case $host_os in
9424  freebsd2*)
9425    shlibpath_overrides_runpath=yes
9426    ;;
9427  freebsd3.[01]* | freebsdelf3.[01]*)
9428    shlibpath_overrides_runpath=yes
9429    hardcode_into_libs=yes
9430    ;;
9431  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9432  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9433    shlibpath_overrides_runpath=no
9434    hardcode_into_libs=yes
9435    ;;
9436  *) # from 4.6 on, and DragonFly
9437    shlibpath_overrides_runpath=yes
9438    hardcode_into_libs=yes
9439    ;;
9440  esac
9441  ;;
9442
9443gnu*)
9444  version_type=linux
9445  need_lib_prefix=no
9446  need_version=no
9447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9448  soname_spec='${libname}${release}${shared_ext}$major'
9449  shlibpath_var=LD_LIBRARY_PATH
9450  hardcode_into_libs=yes
9451  ;;
9452
9453hpux9* | hpux10* | hpux11*)
9454  # Give a soname corresponding to the major version so that dld.sl refuses to
9455  # link against other versions.
9456  version_type=sunos
9457  need_lib_prefix=no
9458  need_version=no
9459  case $host_cpu in
9460  ia64*)
9461    shrext_cmds='.so'
9462    hardcode_into_libs=yes
9463    dynamic_linker="$host_os dld.so"
9464    shlibpath_var=LD_LIBRARY_PATH
9465    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9466    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467    soname_spec='${libname}${release}${shared_ext}$major'
9468    if test "X$HPUX_IA64_MODE" = X32; then
9469      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9470    else
9471      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9472    fi
9473    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9474    ;;
9475  hppa*64*)
9476    shrext_cmds='.sl'
9477    hardcode_into_libs=yes
9478    dynamic_linker="$host_os dld.sl"
9479    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9480    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482    soname_spec='${libname}${release}${shared_ext}$major'
9483    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9484    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9485    ;;
9486  *)
9487    shrext_cmds='.sl'
9488    dynamic_linker="$host_os dld.sl"
9489    shlibpath_var=SHLIB_PATH
9490    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492    soname_spec='${libname}${release}${shared_ext}$major'
9493    ;;
9494  esac
9495  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9496  postinstall_cmds='chmod 555 $lib'
9497  ;;
9498
9499interix[3-9]*)
9500  version_type=linux
9501  need_lib_prefix=no
9502  need_version=no
9503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9504  soname_spec='${libname}${release}${shared_ext}$major'
9505  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9506  shlibpath_var=LD_LIBRARY_PATH
9507  shlibpath_overrides_runpath=no
9508  hardcode_into_libs=yes
9509  ;;
9510
9511irix5* | irix6* | nonstopux*)
9512  case $host_os in
9513    nonstopux*) version_type=nonstopux ;;
9514    *)
9515	if test "$lt_cv_prog_gnu_ld" = yes; then
9516		version_type=linux
9517	else
9518		version_type=irix
9519	fi ;;
9520  esac
9521  need_lib_prefix=no
9522  need_version=no
9523  soname_spec='${libname}${release}${shared_ext}$major'
9524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9525  case $host_os in
9526  irix5* | nonstopux*)
9527    libsuff= shlibsuff=
9528    ;;
9529  *)
9530    case $LD in # libtool.m4 will add one of these switches to LD
9531    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9532      libsuff= shlibsuff= libmagic=32-bit;;
9533    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9534      libsuff=32 shlibsuff=N32 libmagic=N32;;
9535    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9536      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9537    *) libsuff= shlibsuff= libmagic=never-match;;
9538    esac
9539    ;;
9540  esac
9541  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9542  shlibpath_overrides_runpath=no
9543  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9544  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9545  hardcode_into_libs=yes
9546  ;;
9547
9548# No shared lib support for Linux oldld, aout, or coff.
9549linux*oldld* | linux*aout* | linux*coff*)
9550  dynamic_linker=no
9551  ;;
9552
9553# This must be Linux ELF.
9554linux* | k*bsd*-gnu | kopensolaris*-gnu)
9555  version_type=linux
9556  need_lib_prefix=no
9557  need_version=no
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559  soname_spec='${libname}${release}${shared_ext}$major'
9560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9561  shlibpath_var=LD_LIBRARY_PATH
9562  shlibpath_overrides_runpath=no
9563  # Some binutils ld are patched to set DT_RUNPATH
9564  save_LDFLAGS=$LDFLAGS
9565  save_libdir=$libdir
9566  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9567       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570
9571int
9572main ()
9573{
9574
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579if ac_fn_c_try_link "$LINENO"; then :
9580  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9581  shlibpath_overrides_runpath=yes
9582fi
9583fi
9584rm -f core conftest.err conftest.$ac_objext \
9585    conftest$ac_exeext conftest.$ac_ext
9586  LDFLAGS=$save_LDFLAGS
9587  libdir=$save_libdir
9588
9589  # This implies no fast_install, which is unacceptable.
9590  # Some rework will be needed to allow for fast_install
9591  # before this can be enabled.
9592  hardcode_into_libs=yes
9593
9594  # Append ld.so.conf contents to the search path
9595  if test -f /etc/ld.so.conf; then
9596    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' ' '`
9597    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9598  fi
9599
9600  # We used to test for /lib/ld.so.1 and disable shared libraries on
9601  # powerpc, because MkLinux only supported shared libraries with the
9602  # GNU dynamic linker.  Since this was broken with cross compilers,
9603  # most powerpc-linux boxes support dynamic linking these days and
9604  # people can always --disable-shared, the test was removed, and we
9605  # assume the GNU/Linux dynamic linker is in use.
9606  dynamic_linker='GNU/Linux ld.so'
9607  ;;
9608
9609netbsdelf*-gnu)
9610  version_type=linux
9611  need_lib_prefix=no
9612  need_version=no
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  shlibpath_overrides_runpath=no
9617  hardcode_into_libs=yes
9618  dynamic_linker='NetBSD ld.elf_so'
9619  ;;
9620
9621netbsd*)
9622  version_type=sunos
9623  need_lib_prefix=no
9624  need_version=no
9625  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9626    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9627    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9628    dynamic_linker='NetBSD (a.out) ld.so'
9629  else
9630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9631    soname_spec='${libname}${release}${shared_ext}$major'
9632    dynamic_linker='NetBSD ld.elf_so'
9633  fi
9634  shlibpath_var=LD_LIBRARY_PATH
9635  shlibpath_overrides_runpath=yes
9636  hardcode_into_libs=yes
9637  ;;
9638
9639newsos6)
9640  version_type=linux
9641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642  shlibpath_var=LD_LIBRARY_PATH
9643  shlibpath_overrides_runpath=yes
9644  ;;
9645
9646*nto* | *qnx*)
9647  version_type=qnx
9648  need_lib_prefix=no
9649  need_version=no
9650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651  soname_spec='${libname}${release}${shared_ext}$major'
9652  shlibpath_var=LD_LIBRARY_PATH
9653  shlibpath_overrides_runpath=no
9654  hardcode_into_libs=yes
9655  dynamic_linker='ldqnx.so'
9656  ;;
9657
9658openbsd*)
9659  version_type=sunos
9660  sys_lib_dlsearch_path_spec="/usr/lib"
9661  need_lib_prefix=no
9662  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9663  case $host_os in
9664    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9665    *)				need_version=no  ;;
9666  esac
9667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9668  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9669  shlibpath_var=LD_LIBRARY_PATH
9670  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9671    case $host_os in
9672      openbsd2.[89] | openbsd2.[89].*)
9673	shlibpath_overrides_runpath=no
9674	;;
9675      *)
9676	shlibpath_overrides_runpath=yes
9677	;;
9678      esac
9679  else
9680    shlibpath_overrides_runpath=yes
9681  fi
9682  ;;
9683
9684os2*)
9685  libname_spec='$name'
9686  shrext_cmds=".dll"
9687  need_lib_prefix=no
9688  library_names_spec='$libname${shared_ext} $libname.a'
9689  dynamic_linker='OS/2 ld.exe'
9690  shlibpath_var=LIBPATH
9691  ;;
9692
9693osf3* | osf4* | osf5*)
9694  version_type=osf
9695  need_lib_prefix=no
9696  need_version=no
9697  soname_spec='${libname}${release}${shared_ext}$major'
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699  shlibpath_var=LD_LIBRARY_PATH
9700  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9701  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9702  ;;
9703
9704rdos*)
9705  dynamic_linker=no
9706  ;;
9707
9708solaris*)
9709  version_type=linux
9710  need_lib_prefix=no
9711  need_version=no
9712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713  soname_spec='${libname}${release}${shared_ext}$major'
9714  shlibpath_var=LD_LIBRARY_PATH
9715  shlibpath_overrides_runpath=yes
9716  hardcode_into_libs=yes
9717  # ldd complains unless libraries are executable
9718  postinstall_cmds='chmod +x $lib'
9719  ;;
9720
9721sunos4*)
9722  version_type=sunos
9723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9724  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9725  shlibpath_var=LD_LIBRARY_PATH
9726  shlibpath_overrides_runpath=yes
9727  if test "$with_gnu_ld" = yes; then
9728    need_lib_prefix=no
9729  fi
9730  need_version=yes
9731  ;;
9732
9733sysv4 | sysv4.3*)
9734  version_type=linux
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736  soname_spec='${libname}${release}${shared_ext}$major'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  case $host_vendor in
9739    sni)
9740      shlibpath_overrides_runpath=no
9741      need_lib_prefix=no
9742      runpath_var=LD_RUN_PATH
9743      ;;
9744    siemens)
9745      need_lib_prefix=no
9746      ;;
9747    motorola)
9748      need_lib_prefix=no
9749      need_version=no
9750      shlibpath_overrides_runpath=no
9751      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9752      ;;
9753  esac
9754  ;;
9755
9756sysv4*MP*)
9757  if test -d /usr/nec ;then
9758    version_type=linux
9759    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9760    soname_spec='$libname${shared_ext}.$major'
9761    shlibpath_var=LD_LIBRARY_PATH
9762  fi
9763  ;;
9764
9765sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9766  version_type=freebsd-elf
9767  need_lib_prefix=no
9768  need_version=no
9769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9770  soname_spec='${libname}${release}${shared_ext}$major'
9771  shlibpath_var=LD_LIBRARY_PATH
9772  shlibpath_overrides_runpath=yes
9773  hardcode_into_libs=yes
9774  if test "$with_gnu_ld" = yes; then
9775    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9776  else
9777    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9778    case $host_os in
9779      sco3.2v5*)
9780        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9781	;;
9782    esac
9783  fi
9784  sys_lib_dlsearch_path_spec='/usr/lib'
9785  ;;
9786
9787tpf*)
9788  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9789  version_type=linux
9790  need_lib_prefix=no
9791  need_version=no
9792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793  shlibpath_var=LD_LIBRARY_PATH
9794  shlibpath_overrides_runpath=no
9795  hardcode_into_libs=yes
9796  ;;
9797
9798uts4*)
9799  version_type=linux
9800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801  soname_spec='${libname}${release}${shared_ext}$major'
9802  shlibpath_var=LD_LIBRARY_PATH
9803  ;;
9804
9805*)
9806  dynamic_linker=no
9807  ;;
9808esac
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9810$as_echo "$dynamic_linker" >&6; }
9811test "$dynamic_linker" = no && can_build_shared=no
9812
9813variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9814if test "$GCC" = yes; then
9815  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816fi
9817
9818if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9819  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9820fi
9821if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9822  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9823fi
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9912$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9913hardcode_action=
9914if test -n "$hardcode_libdir_flag_spec" ||
9915   test -n "$runpath_var" ||
9916   test "X$hardcode_automatic" = "Xyes" ; then
9917
9918  # We can hardcode non-existent directories.
9919  if test "$hardcode_direct" != no &&
9920     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9921     # have to relink, otherwise we might link with an installed library
9922     # when we should be linking with a yet-to-be-installed one
9923     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9924     test "$hardcode_minus_L" != no; then
9925    # Linking always hardcodes the temporary library directory.
9926    hardcode_action=relink
9927  else
9928    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9929    hardcode_action=immediate
9930  fi
9931else
9932  # We cannot hardcode anything, or else we can only hardcode existing
9933  # directories.
9934  hardcode_action=unsupported
9935fi
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9937$as_echo "$hardcode_action" >&6; }
9938
9939if test "$hardcode_action" = relink ||
9940   test "$inherit_rpath" = yes; then
9941  # Fast installation is not supported
9942  enable_fast_install=no
9943elif test "$shlibpath_overrides_runpath" = yes ||
9944     test "$enable_shared" = no; then
9945  # Fast installation is not necessary
9946  enable_fast_install=needless
9947fi
9948
9949
9950
9951
9952
9953
9954  if test "x$enable_dlopen" != xyes; then
9955  enable_dlopen=unknown
9956  enable_dlopen_self=unknown
9957  enable_dlopen_self_static=unknown
9958else
9959  lt_cv_dlopen=no
9960  lt_cv_dlopen_libs=
9961
9962  case $host_os in
9963  beos*)
9964    lt_cv_dlopen="load_add_on"
9965    lt_cv_dlopen_libs=
9966    lt_cv_dlopen_self=yes
9967    ;;
9968
9969  mingw* | pw32* | cegcc*)
9970    lt_cv_dlopen="LoadLibrary"
9971    lt_cv_dlopen_libs=
9972    ;;
9973
9974  cygwin*)
9975    lt_cv_dlopen="dlopen"
9976    lt_cv_dlopen_libs=
9977    ;;
9978
9979  darwin*)
9980  # if libdl is installed we need to link against it
9981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9982$as_echo_n "checking for dlopen in -ldl... " >&6; }
9983if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  ac_check_lib_save_LIBS=$LIBS
9987LIBS="-ldl  $LIBS"
9988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989/* end confdefs.h.  */
9990
9991/* Override any GCC internal prototype to avoid an error.
9992   Use char because int might match the return type of a GCC
9993   builtin and then its argument prototype would still apply.  */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997char dlopen ();
9998int
9999main ()
10000{
10001return dlopen ();
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006if ac_fn_c_try_link "$LINENO"; then :
10007  ac_cv_lib_dl_dlopen=yes
10008else
10009  ac_cv_lib_dl_dlopen=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext \
10012    conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10016$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10017if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10019else
10020
10021    lt_cv_dlopen="dyld"
10022    lt_cv_dlopen_libs=
10023    lt_cv_dlopen_self=yes
10024
10025fi
10026
10027    ;;
10028
10029  *)
10030    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10031if test "x$ac_cv_func_shl_load" = x""yes; then :
10032  lt_cv_dlopen="shl_load"
10033else
10034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10035$as_echo_n "checking for shl_load in -ldld... " >&6; }
10036if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10037  $as_echo_n "(cached) " >&6
10038else
10039  ac_check_lib_save_LIBS=$LIBS
10040LIBS="-ldld  $LIBS"
10041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042/* end confdefs.h.  */
10043
10044/* Override any GCC internal prototype to avoid an error.
10045   Use char because int might match the return type of a GCC
10046   builtin and then its argument prototype would still apply.  */
10047#ifdef __cplusplus
10048extern "C"
10049#endif
10050char shl_load ();
10051int
10052main ()
10053{
10054return shl_load ();
10055  ;
10056  return 0;
10057}
10058_ACEOF
10059if ac_fn_c_try_link "$LINENO"; then :
10060  ac_cv_lib_dld_shl_load=yes
10061else
10062  ac_cv_lib_dld_shl_load=no
10063fi
10064rm -f core conftest.err conftest.$ac_objext \
10065    conftest$ac_exeext conftest.$ac_ext
10066LIBS=$ac_check_lib_save_LIBS
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10069$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10070if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10071  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10072else
10073  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10074if test "x$ac_cv_func_dlopen" = x""yes; then :
10075  lt_cv_dlopen="dlopen"
10076else
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10078$as_echo_n "checking for dlopen in -ldl... " >&6; }
10079if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10080  $as_echo_n "(cached) " >&6
10081else
10082  ac_check_lib_save_LIBS=$LIBS
10083LIBS="-ldl  $LIBS"
10084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086
10087/* Override any GCC internal prototype to avoid an error.
10088   Use char because int might match the return type of a GCC
10089   builtin and then its argument prototype would still apply.  */
10090#ifdef __cplusplus
10091extern "C"
10092#endif
10093char dlopen ();
10094int
10095main ()
10096{
10097return dlopen ();
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102if ac_fn_c_try_link "$LINENO"; then :
10103  ac_cv_lib_dl_dlopen=yes
10104else
10105  ac_cv_lib_dl_dlopen=no
10106fi
10107rm -f core conftest.err conftest.$ac_objext \
10108    conftest$ac_exeext conftest.$ac_ext
10109LIBS=$ac_check_lib_save_LIBS
10110fi
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10112$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10113if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10114  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10115else
10116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10117$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10118if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10119  $as_echo_n "(cached) " >&6
10120else
10121  ac_check_lib_save_LIBS=$LIBS
10122LIBS="-lsvld  $LIBS"
10123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125
10126/* Override any GCC internal prototype to avoid an error.
10127   Use char because int might match the return type of a GCC
10128   builtin and then its argument prototype would still apply.  */
10129#ifdef __cplusplus
10130extern "C"
10131#endif
10132char dlopen ();
10133int
10134main ()
10135{
10136return dlopen ();
10137  ;
10138  return 0;
10139}
10140_ACEOF
10141if ac_fn_c_try_link "$LINENO"; then :
10142  ac_cv_lib_svld_dlopen=yes
10143else
10144  ac_cv_lib_svld_dlopen=no
10145fi
10146rm -f core conftest.err conftest.$ac_objext \
10147    conftest$ac_exeext conftest.$ac_ext
10148LIBS=$ac_check_lib_save_LIBS
10149fi
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10151$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10152if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10153  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10154else
10155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10156$as_echo_n "checking for dld_link in -ldld... " >&6; }
10157if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10158  $as_echo_n "(cached) " >&6
10159else
10160  ac_check_lib_save_LIBS=$LIBS
10161LIBS="-ldld  $LIBS"
10162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h.  */
10164
10165/* Override any GCC internal prototype to avoid an error.
10166   Use char because int might match the return type of a GCC
10167   builtin and then its argument prototype would still apply.  */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char dld_link ();
10172int
10173main ()
10174{
10175return dld_link ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180if ac_fn_c_try_link "$LINENO"; then :
10181  ac_cv_lib_dld_dld_link=yes
10182else
10183  ac_cv_lib_dld_dld_link=no
10184fi
10185rm -f core conftest.err conftest.$ac_objext \
10186    conftest$ac_exeext conftest.$ac_ext
10187LIBS=$ac_check_lib_save_LIBS
10188fi
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10190$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10191if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10192  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10193fi
10194
10195
10196fi
10197
10198
10199fi
10200
10201
10202fi
10203
10204
10205fi
10206
10207
10208fi
10209
10210    ;;
10211  esac
10212
10213  if test "x$lt_cv_dlopen" != xno; then
10214    enable_dlopen=yes
10215  else
10216    enable_dlopen=no
10217  fi
10218
10219  case $lt_cv_dlopen in
10220  dlopen)
10221    save_CPPFLAGS="$CPPFLAGS"
10222    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10223
10224    save_LDFLAGS="$LDFLAGS"
10225    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10226
10227    save_LIBS="$LIBS"
10228    LIBS="$lt_cv_dlopen_libs $LIBS"
10229
10230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10231$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10232if test "${lt_cv_dlopen_self+set}" = set; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  	  if test "$cross_compiling" = yes; then :
10236  lt_cv_dlopen_self=cross
10237else
10238  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239  lt_status=$lt_dlunknown
10240  cat > conftest.$ac_ext <<_LT_EOF
10241#line 10241 "configure"
10242#include "confdefs.h"
10243
10244#if HAVE_DLFCN_H
10245#include <dlfcn.h>
10246#endif
10247
10248#include <stdio.h>
10249
10250#ifdef RTLD_GLOBAL
10251#  define LT_DLGLOBAL		RTLD_GLOBAL
10252#else
10253#  ifdef DL_GLOBAL
10254#    define LT_DLGLOBAL		DL_GLOBAL
10255#  else
10256#    define LT_DLGLOBAL		0
10257#  endif
10258#endif
10259
10260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261   find out it does not work in some platform. */
10262#ifndef LT_DLLAZY_OR_NOW
10263#  ifdef RTLD_LAZY
10264#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10265#  else
10266#    ifdef DL_LAZY
10267#      define LT_DLLAZY_OR_NOW		DL_LAZY
10268#    else
10269#      ifdef RTLD_NOW
10270#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10271#      else
10272#        ifdef DL_NOW
10273#          define LT_DLLAZY_OR_NOW	DL_NOW
10274#        else
10275#          define LT_DLLAZY_OR_NOW	0
10276#        endif
10277#      endif
10278#    endif
10279#  endif
10280#endif
10281
10282void fnord() { int i=42;}
10283int main ()
10284{
10285  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286  int status = $lt_dlunknown;
10287
10288  if (self)
10289    {
10290      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10291      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292      /* dlclose (self); */
10293    }
10294  else
10295    puts (dlerror ());
10296
10297  return status;
10298}
10299_LT_EOF
10300  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10301  (eval $ac_link) 2>&5
10302  ac_status=$?
10303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10304  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10305    (./conftest; exit; ) >&5 2>/dev/null
10306    lt_status=$?
10307    case x$lt_status in
10308      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10309      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10310      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10311    esac
10312  else :
10313    # compilation failed
10314    lt_cv_dlopen_self=no
10315  fi
10316fi
10317rm -fr conftest*
10318
10319
10320fi
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10322$as_echo "$lt_cv_dlopen_self" >&6; }
10323
10324    if test "x$lt_cv_dlopen_self" = xyes; then
10325      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10326      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10327$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10328if test "${lt_cv_dlopen_self_static+set}" = set; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  	  if test "$cross_compiling" = yes; then :
10332  lt_cv_dlopen_self_static=cross
10333else
10334  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10335  lt_status=$lt_dlunknown
10336  cat > conftest.$ac_ext <<_LT_EOF
10337#line 10337 "configure"
10338#include "confdefs.h"
10339
10340#if HAVE_DLFCN_H
10341#include <dlfcn.h>
10342#endif
10343
10344#include <stdio.h>
10345
10346#ifdef RTLD_GLOBAL
10347#  define LT_DLGLOBAL		RTLD_GLOBAL
10348#else
10349#  ifdef DL_GLOBAL
10350#    define LT_DLGLOBAL		DL_GLOBAL
10351#  else
10352#    define LT_DLGLOBAL		0
10353#  endif
10354#endif
10355
10356/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10357   find out it does not work in some platform. */
10358#ifndef LT_DLLAZY_OR_NOW
10359#  ifdef RTLD_LAZY
10360#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10361#  else
10362#    ifdef DL_LAZY
10363#      define LT_DLLAZY_OR_NOW		DL_LAZY
10364#    else
10365#      ifdef RTLD_NOW
10366#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10367#      else
10368#        ifdef DL_NOW
10369#          define LT_DLLAZY_OR_NOW	DL_NOW
10370#        else
10371#          define LT_DLLAZY_OR_NOW	0
10372#        endif
10373#      endif
10374#    endif
10375#  endif
10376#endif
10377
10378void fnord() { int i=42;}
10379int main ()
10380{
10381  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10382  int status = $lt_dlunknown;
10383
10384  if (self)
10385    {
10386      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10387      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10388      /* dlclose (self); */
10389    }
10390  else
10391    puts (dlerror ());
10392
10393  return status;
10394}
10395_LT_EOF
10396  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10397  (eval $ac_link) 2>&5
10398  ac_status=$?
10399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10401    (./conftest; exit; ) >&5 2>/dev/null
10402    lt_status=$?
10403    case x$lt_status in
10404      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10405      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10406      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10407    esac
10408  else :
10409    # compilation failed
10410    lt_cv_dlopen_self_static=no
10411  fi
10412fi
10413rm -fr conftest*
10414
10415
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10418$as_echo "$lt_cv_dlopen_self_static" >&6; }
10419    fi
10420
10421    CPPFLAGS="$save_CPPFLAGS"
10422    LDFLAGS="$save_LDFLAGS"
10423    LIBS="$save_LIBS"
10424    ;;
10425  esac
10426
10427  case $lt_cv_dlopen_self in
10428  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10429  *) enable_dlopen_self=unknown ;;
10430  esac
10431
10432  case $lt_cv_dlopen_self_static in
10433  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10434  *) enable_dlopen_self_static=unknown ;;
10435  esac
10436fi
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454striplib=
10455old_striplib=
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10457$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10458if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10459  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10460  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10462$as_echo "yes" >&6; }
10463else
10464# FIXME - insert some real tests, host_os isn't really good enough
10465  case $host_os in
10466  darwin*)
10467    if test -n "$STRIP" ; then
10468      striplib="$STRIP -x"
10469      old_striplib="$STRIP -S"
10470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471$as_echo "yes" >&6; }
10472    else
10473      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
10475    fi
10476    ;;
10477  *)
10478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
10480    ;;
10481  esac
10482fi
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495  # Report which library types will actually be built
10496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10497$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10499$as_echo "$can_build_shared" >&6; }
10500
10501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10502$as_echo_n "checking whether to build shared libraries... " >&6; }
10503  test "$can_build_shared" = "no" && enable_shared=no
10504
10505  # On AIX, shared libraries and static libraries use the same namespace, and
10506  # are all built from PIC.
10507  case $host_os in
10508  aix3*)
10509    test "$enable_shared" = yes && enable_static=no
10510    if test -n "$RANLIB"; then
10511      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10512      postinstall_cmds='$RANLIB $lib'
10513    fi
10514    ;;
10515
10516  aix[4-9]*)
10517    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10518      test "$enable_shared" = yes && enable_static=no
10519    fi
10520    ;;
10521  esac
10522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10523$as_echo "$enable_shared" >&6; }
10524
10525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10526$as_echo_n "checking whether to build static libraries... " >&6; }
10527  # Make sure either enable_shared or enable_static is yes.
10528  test "$enable_shared" = yes || enable_static=yes
10529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10530$as_echo "$enable_static" >&6; }
10531
10532
10533
10534
10535fi
10536ac_ext=c
10537ac_cpp='$CPP $CPPFLAGS'
10538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10540ac_compiler_gnu=$ac_cv_c_compiler_gnu
10541
10542CC="$lt_save_CC"
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556        ac_config_commands="$ac_config_commands libtool"
10557
10558
10559
10560
10561# Only expand once:
10562
10563
10564
10565# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10578$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10579if test "${ac_cv_prog_cc_c99+set}" = set; then :
10580  $as_echo_n "(cached) " >&6
10581else
10582  ac_cv_prog_cc_c99=no
10583ac_save_CC=$CC
10584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h.  */
10586#include <stdarg.h>
10587#include <stdbool.h>
10588#include <stdlib.h>
10589#include <wchar.h>
10590#include <stdio.h>
10591
10592// Check varargs macros.  These examples are taken from C99 6.10.3.5.
10593#define debug(...) fprintf (stderr, __VA_ARGS__)
10594#define showlist(...) puts (#__VA_ARGS__)
10595#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10596static void
10597test_varargs_macros (void)
10598{
10599  int x = 1234;
10600  int y = 5678;
10601  debug ("Flag");
10602  debug ("X = %d\n", x);
10603  showlist (The first, second, and third items.);
10604  report (x>y, "x is %d but y is %d", x, y);
10605}
10606
10607// Check long long types.
10608#define BIG64 18446744073709551615ull
10609#define BIG32 4294967295ul
10610#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10611#if !BIG_OK
10612  your preprocessor is broken;
10613#endif
10614#if BIG_OK
10615#else
10616  your preprocessor is broken;
10617#endif
10618static long long int bignum = -9223372036854775807LL;
10619static unsigned long long int ubignum = BIG64;
10620
10621struct incomplete_array
10622{
10623  int datasize;
10624  double data[];
10625};
10626
10627struct named_init {
10628  int number;
10629  const wchar_t *name;
10630  double average;
10631};
10632
10633typedef const char *ccp;
10634
10635static inline int
10636test_restrict (ccp restrict text)
10637{
10638  // See if C++-style comments work.
10639  // Iterate through items via the restricted pointer.
10640  // Also check for declarations in for loops.
10641  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10642    continue;
10643  return 0;
10644}
10645
10646// Check varargs and va_copy.
10647static void
10648test_varargs (const char *format, ...)
10649{
10650  va_list args;
10651  va_start (args, format);
10652  va_list args_copy;
10653  va_copy (args_copy, args);
10654
10655  const char *str;
10656  int number;
10657  float fnumber;
10658
10659  while (*format)
10660    {
10661      switch (*format++)
10662	{
10663	case 's': // string
10664	  str = va_arg (args_copy, const char *);
10665	  break;
10666	case 'd': // int
10667	  number = va_arg (args_copy, int);
10668	  break;
10669	case 'f': // float
10670	  fnumber = va_arg (args_copy, double);
10671	  break;
10672	default:
10673	  break;
10674	}
10675    }
10676  va_end (args_copy);
10677  va_end (args);
10678}
10679
10680int
10681main ()
10682{
10683
10684  // Check bool.
10685  _Bool success = false;
10686
10687  // Check restrict.
10688  if (test_restrict ("String literal") == 0)
10689    success = true;
10690  char *restrict newvar = "Another string";
10691
10692  // Check varargs.
10693  test_varargs ("s, d' f .", "string", 65, 34.234);
10694  test_varargs_macros ();
10695
10696  // Check flexible array members.
10697  struct incomplete_array *ia =
10698    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10699  ia->datasize = 10;
10700  for (int i = 0; i < ia->datasize; ++i)
10701    ia->data[i] = i * 1.234;
10702
10703  // Check named initializers.
10704  struct named_init ni = {
10705    .number = 34,
10706    .name = L"Test wide string",
10707    .average = 543.34343,
10708  };
10709
10710  ni.number = 58;
10711
10712  int dynamic_array[ni.number];
10713  dynamic_array[ni.number - 1] = 543;
10714
10715  // work around unused variable warnings
10716  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10717	  || dynamic_array[ni.number - 1] != 543);
10718
10719  ;
10720  return 0;
10721}
10722_ACEOF
10723for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10724do
10725  CC="$ac_save_CC $ac_arg"
10726  if ac_fn_c_try_compile "$LINENO"; then :
10727  ac_cv_prog_cc_c99=$ac_arg
10728fi
10729rm -f core conftest.err conftest.$ac_objext
10730  test "x$ac_cv_prog_cc_c99" != "xno" && break
10731done
10732rm -f conftest.$ac_ext
10733CC=$ac_save_CC
10734
10735fi
10736# AC_CACHE_VAL
10737case "x$ac_cv_prog_cc_c99" in
10738  x)
10739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10740$as_echo "none needed" >&6; } ;;
10741  xno)
10742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10743$as_echo "unsupported" >&6; } ;;
10744  *)
10745    CC="$CC $ac_cv_prog_cc_c99"
10746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10747$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10748esac
10749if test "x$ac_cv_prog_cc_c99" != xno; then :
10750
10751fi
10752
10753
10754
10755
10756
10757
10758
10759
10760if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10761	if test -n "$ac_tool_prefix"; then
10762  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10763set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
10766if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10767  $as_echo_n "(cached) " >&6
10768else
10769  case $PKG_CONFIG in
10770  [\\/]* | ?:[\\/]*)
10771  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10772  ;;
10773  *)
10774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775for as_dir in $PATH
10776do
10777  IFS=$as_save_IFS
10778  test -z "$as_dir" && as_dir=.
10779    for ac_exec_ext in '' $ac_executable_extensions; do
10780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10781    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783    break 2
10784  fi
10785done
10786  done
10787IFS=$as_save_IFS
10788
10789  ;;
10790esac
10791fi
10792PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10793if test -n "$PKG_CONFIG"; then
10794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10795$as_echo "$PKG_CONFIG" >&6; }
10796else
10797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798$as_echo "no" >&6; }
10799fi
10800
10801
10802fi
10803if test -z "$ac_cv_path_PKG_CONFIG"; then
10804  ac_pt_PKG_CONFIG=$PKG_CONFIG
10805  # Extract the first word of "pkg-config", so it can be a program name with args.
10806set dummy pkg-config; ac_word=$2
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808$as_echo_n "checking for $ac_word... " >&6; }
10809if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  case $ac_pt_PKG_CONFIG in
10813  [\\/]* | ?:[\\/]*)
10814  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10815  ;;
10816  *)
10817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818for as_dir in $PATH
10819do
10820  IFS=$as_save_IFS
10821  test -z "$as_dir" && as_dir=.
10822    for ac_exec_ext in '' $ac_executable_extensions; do
10823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826    break 2
10827  fi
10828done
10829  done
10830IFS=$as_save_IFS
10831
10832  ;;
10833esac
10834fi
10835ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10836if test -n "$ac_pt_PKG_CONFIG"; then
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10838$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10839else
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
10842fi
10843
10844  if test "x$ac_pt_PKG_CONFIG" = x; then
10845    PKG_CONFIG=""
10846  else
10847    case $cross_compiling:$ac_tool_warned in
10848yes:)
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10851ac_tool_warned=yes ;;
10852esac
10853    PKG_CONFIG=$ac_pt_PKG_CONFIG
10854  fi
10855else
10856  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10857fi
10858
10859fi
10860if test -n "$PKG_CONFIG"; then
10861	_pkg_min_version=0.9.0
10862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10863$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10864	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10866$as_echo "yes" >&6; }
10867	else
10868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869$as_echo "no" >&6; }
10870		PKG_CONFIG=""
10871	fi
10872fi
10873
10874
10875
10876
10877if  test "x$GCC" = xyes ; then
10878    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10879-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10880-Wbad-function-cast -Wformat=2"
10881    case `$CC -dumpversion` in
10882    3.4.* | 4.*)
10883	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10884	;;
10885    esac
10886else
10887    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10888if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10889  SUNCC="yes"
10890else
10891  SUNCC="no"
10892fi
10893
10894    if test "x$SUNCC" = "xyes"; then
10895	CWARNFLAGS="-v"
10896    fi
10897fi
10898
10899
10900
10901# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10902
10903
10904
10905# Check whether --enable-strict-compilation was given.
10906if test "${enable_strict_compilation+set}" = set; then :
10907  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10908else
10909  STRICT_COMPILE=no
10910fi
10911
10912if test "x$STRICT_COMPILE" = "xyes"; then
10913	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10914if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10915  SUNCC="yes"
10916else
10917  SUNCC="no"
10918fi
10919
10920	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10921if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10922  INTELCC="yes"
10923else
10924  INTELCC="no"
10925fi
10926
10927	if test "x$GCC" = xyes ; then
10928		STRICT_CFLAGS="-pedantic -Werror"
10929	elif test "x$SUNCC" = "xyes"; then
10930		STRICT_CFLAGS="-errwarn"
10931    elif test "x$INTELCC" = "xyes"; then
10932		STRICT_CFLAGS="-Werror"
10933	fi
10934fi
10935CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10936
10937
10938
10939
10940cat >>confdefs.h <<_ACEOF
10941#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10942_ACEOF
10943
10944	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10945	if test "x$PVM" = "x"; then
10946		PVM="0"
10947	fi
10948
10949cat >>confdefs.h <<_ACEOF
10950#define PACKAGE_VERSION_MINOR $PVM
10951_ACEOF
10952
10953	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10954	if test "x$PVP" = "x"; then
10955		PVP="0"
10956	fi
10957
10958cat >>confdefs.h <<_ACEOF
10959#define PACKAGE_VERSION_PATCHLEVEL $PVP
10960_ACEOF
10961
10962
10963
10964CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10965mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10966|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10967echo 'git directory not found: installing possibly empty changelog.' >&2)"
10968
10969
10970
10971
10972macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10973INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10974mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10975|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10976echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10977
10978
10979
10980
10981
10982
10983if test x$APP_MAN_SUFFIX = x    ; then
10984    APP_MAN_SUFFIX=1
10985fi
10986if test x$APP_MAN_DIR = x    ; then
10987    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10988fi
10989
10990if test x$LIB_MAN_SUFFIX = x    ; then
10991    LIB_MAN_SUFFIX=3
10992fi
10993if test x$LIB_MAN_DIR = x    ; then
10994    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10995fi
10996
10997if test x$FILE_MAN_SUFFIX = x    ; then
10998    case $host_os in
10999	solaris*)	FILE_MAN_SUFFIX=4  ;;
11000	*)		FILE_MAN_SUFFIX=5  ;;
11001    esac
11002fi
11003if test x$FILE_MAN_DIR = x    ; then
11004    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11005fi
11006
11007if test x$MISC_MAN_SUFFIX = x    ; then
11008    case $host_os in
11009	solaris*)	MISC_MAN_SUFFIX=5  ;;
11010	*)		MISC_MAN_SUFFIX=7  ;;
11011    esac
11012fi
11013if test x$MISC_MAN_DIR = x    ; then
11014    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11015fi
11016
11017if test x$DRIVER_MAN_SUFFIX = x    ; then
11018    case $host_os in
11019	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11020	*)		DRIVER_MAN_SUFFIX=4  ;;
11021    esac
11022fi
11023if test x$DRIVER_MAN_DIR = x    ; then
11024    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11025fi
11026
11027if test x$ADMIN_MAN_SUFFIX = x    ; then
11028    case $host_os in
11029	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11030	*)		ADMIN_MAN_SUFFIX=8  ;;
11031    esac
11032fi
11033if test x$ADMIN_MAN_DIR = x    ; then
11034    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11035fi
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051XORG_MAN_PAGE="X Version 11"
11052
11053MAN_SUBSTS="\
11054	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11055	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11056	-e 's|__xservername__|Xorg|g' \
11057	-e 's|__xconfigfile__|xorg.conf|g' \
11058	-e 's|__projectroot__|\$(prefix)|g' \
11059	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11060	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11061	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11062	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11063	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11064	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11065
11066
11067
11068# Check whether --enable-silent-rules was given.
11069if test "${enable_silent_rules+set}" = set; then :
11070  enableval=$enable_silent_rules;
11071fi
11072
11073case $enable_silent_rules in
11074yes) AM_DEFAULT_VERBOSITY=0;;
11075no)  AM_DEFAULT_VERBOSITY=1;;
11076*)   AM_DEFAULT_VERBOSITY=0;;
11077esac
11078AM_BACKSLASH='\'
11079
11080
11081
11082# Check whether --enable-malloc0returnsnull was given.
11083if test "${enable_malloc0returnsnull+set}" = set; then :
11084  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11085else
11086  MALLOC_ZERO_RETURNS_NULL=auto
11087fi
11088
11089
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11091$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11092if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11093	if test "$cross_compiling" = yes; then :
11094  MALLOC_ZERO_RETURNS_NULL=yes
11095else
11096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097/* end confdefs.h.  */
11098
11099char *malloc();
11100char *realloc();
11101char *calloc();
11102main() {
11103    char *m0, *r0, *c0, *p;
11104    m0 = malloc(0);
11105    p = malloc(10);
11106    r0 = realloc(p,0);
11107    c0 = calloc(0);
11108    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11109}
11110_ACEOF
11111if ac_fn_c_try_run "$LINENO"; then :
11112  MALLOC_ZERO_RETURNS_NULL=yes
11113else
11114  MALLOC_ZERO_RETURNS_NULL=no
11115fi
11116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11117  conftest.$ac_objext conftest.beam conftest.$ac_ext
11118fi
11119
11120fi
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11122$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11123
11124if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11125	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11126	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11127	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11128else
11129	MALLOC_ZERO_CFLAGS=""
11130	XMALLOC_ZERO_CFLAGS=""
11131	XTMALLOC_ZERO_CFLAGS=""
11132fi
11133
11134
11135
11136
11137
11138
11139# Checks for header files.
11140ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
11141if test "x$ac_cv_header_alloca_h" = x""yes; then :
11142
11143$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h
11144
11145fi
11146
11147
11148
11149# Obtain compiler/linker options for depedencies
11150
11151pkg_failed=no
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
11153$as_echo_n "checking for XT... " >&6; }
11154
11155if test -n "$XT_CFLAGS"; then
11156    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
11157 elif test -n "$PKG_CONFIG"; then
11158    if test -n "$PKG_CONFIG" && \
11159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
11160  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
11161  ac_status=$?
11162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11163  test $ac_status = 0; }; then
11164  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null`
11165else
11166  pkg_failed=yes
11167fi
11168 else
11169    pkg_failed=untried
11170fi
11171if test -n "$XT_LIBS"; then
11172    pkg_cv_XT_LIBS="$XT_LIBS"
11173 elif test -n "$PKG_CONFIG"; then
11174    if test -n "$PKG_CONFIG" && \
11175    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
11176  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
11177  ac_status=$?
11178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11179  test $ac_status = 0; }; then
11180  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null`
11181else
11182  pkg_failed=yes
11183fi
11184 else
11185    pkg_failed=untried
11186fi
11187
11188
11189
11190if test $pkg_failed = yes; then
11191   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192$as_echo "no" >&6; }
11193
11194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11195        _pkg_short_errors_supported=yes
11196else
11197        _pkg_short_errors_supported=no
11198fi
11199        if test $_pkg_short_errors_supported = yes; then
11200	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1`
11201        else
11202	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1`
11203        fi
11204	# Put the nasty error message in config.log where it belongs
11205	echo "$XT_PKG_ERRORS" >&5
11206
11207	as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met:
11208
11209$XT_PKG_ERRORS
11210
11211Consider adjusting the PKG_CONFIG_PATH environment variable if you
11212installed software in a non-standard prefix.
11213
11214Alternatively, you may set the environment variables XT_CFLAGS
11215and XT_LIBS to avoid the need to call pkg-config.
11216See the pkg-config man page for more details." "$LINENO" 5
11217elif test $pkg_failed = untried; then
11218     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219$as_echo "no" >&6; }
11220	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11222as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11223is in your PATH or set the PKG_CONFIG environment variable to the full
11224path to pkg-config.
11225
11226Alternatively, you may set the environment variables XT_CFLAGS
11227and XT_LIBS to avoid the need to call pkg-config.
11228See the pkg-config man page for more details.
11229
11230To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11231See \`config.log' for more details" "$LINENO" 5 ; }
11232else
11233	XT_CFLAGS=$pkg_cv_XT_CFLAGS
11234	XT_LIBS=$pkg_cv_XT_LIBS
11235        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11236$as_echo "yes" >&6; }
11237
11238fi
11239
11240# Set-up variables to use build machine compiler when cross-compiling
11241if test x"$CC_FOR_BUILD" = x; then
11242	if test x"$cross_compiling" = xyes; then
11243		for ac_prog in gcc cc
11244do
11245  # Extract the first word of "$ac_prog", so it can be a program name with args.
11246set dummy $ac_prog; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
11250  $as_echo_n "(cached) " >&6
11251else
11252  if test -n "$CC_FOR_BUILD"; then
11253  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258  IFS=$as_save_IFS
11259  test -z "$as_dir" && as_dir=.
11260    for ac_exec_ext in '' $ac_executable_extensions; do
11261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
11263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264    break 2
11265  fi
11266done
11267  done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
11273if test -n "$CC_FOR_BUILD"; then
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
11275$as_echo "$CC_FOR_BUILD" >&6; }
11276else
11277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282  test -n "$CC_FOR_BUILD" && break
11283done
11284
11285	else
11286	        CC_FOR_BUILD="$CC"
11287	fi
11288fi
11289
11290CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11291
11292LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11293
11294
11295# Map function checks to old Imake #defines
11296case $host_os in
11297	# darwin through Snow Leopard has poll() but can't be used to poll character devices.
11298	darwin[789]*|darwin10*) ;;
11299	darwin*)
11300		_ac_xorg_macosx_version_min=""
11301		if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
11302			_ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
11303		else
11304			_ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
11305		fi
11306		case $_ac_xorg_macosx_version_min in
11307			10.[0123456]|10.[0123456].*) ;;
11308			*)
11309				ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
11310if test "x$ac_cv_func_poll" = x""yes; then :
11311
11312$as_echo "#define USE_POLL 1" >>confdefs.h
11313
11314fi
11315
11316			;;
11317		esac
11318		unset _ac_xorg_macosx_version_min
11319		;;
11320	*)
11321		ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
11322if test "x$ac_cv_func_poll" = x""yes; then :
11323
11324$as_echo "#define USE_POLL 1" >>confdefs.h
11325
11326fi
11327
11328	;;
11329esac
11330
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11332$as_echo_n "checking for main in -lws2_32... " >&6; }
11333if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
11334  $as_echo_n "(cached) " >&6
11335else
11336  ac_check_lib_save_LIBS=$LIBS
11337LIBS="-lws2_32  $LIBS"
11338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339/* end confdefs.h.  */
11340
11341
11342int
11343main ()
11344{
11345return main ();
11346  ;
11347  return 0;
11348}
11349_ACEOF
11350if ac_fn_c_try_link "$LINENO"; then :
11351  ac_cv_lib_ws2_32_main=yes
11352else
11353  ac_cv_lib_ws2_32_main=no
11354fi
11355rm -f core conftest.err conftest.$ac_objext \
11356    conftest$ac_exeext conftest.$ac_ext
11357LIBS=$ac_check_lib_save_LIBS
11358fi
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11360$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11361if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
11362  cat >>confdefs.h <<_ACEOF
11363#define HAVE_LIBWS2_32 1
11364_ACEOF
11365
11366  LIBS="-lws2_32 $LIBS"
11367
11368fi
11369ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
11370
11371
11372# Options
11373# Check whether --enable-xkb was given.
11374if test "${enable_xkb+set}" = set; then :
11375  enableval=$enable_xkb; XKB="$enableval"
11376else
11377  XKB="yes"
11378fi
11379
11380if test "x$XKB" = "xyes" ; then
11381
11382$as_echo "#define XKB 1" >>confdefs.h
11383
11384fi
11385
11386# Replaces XFileSearchPathDefault from Imake configs
11387XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
11388
11389
11390# Check whether --with-xfile-search-path was given.
11391if test "${with_xfile_search_path+set}" = set; then :
11392  withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
11393fi
11394
11395
11396
11397
11398# Check whether --with-appdefaultdir was given.
11399if test "${with_appdefaultdir+set}" = set; then :
11400  withval=$with_appdefaultdir; appdefaultdir="$withval"
11401else
11402  appdefaultdir=${datadir}/X11/app-defaults
11403fi
11404
11405
11406  prefix_NONE=
11407  exec_prefix_NONE=
11408  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11409  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11410  eval ax_define_dir="\"$appdefaultdir\""
11411  eval ax_define_dir="\"$ax_define_dir\""
11412  appdefaultdir="$ax_define_dir"
11413
11414
11415cat >>confdefs.h <<_ACEOF
11416#define appdefaultdir "$ax_define_dir"
11417_ACEOF
11418
11419  test "$prefix_NONE" && prefix=NONE
11420  test "$exec_prefix_NONE" && exec_prefix=NONE
11421
11422
11423# Replacement for Imake ToolkitStringsABIOptions, controls string tables
11424# generated by util/string.list in StringDefs.h & Shell.h
11425case $host_os in
11426	solaris*)
11427		# Solaris uses -intelabi even on SPARC
11428  		STRINGSABIOPTIONS="-intelabi -solarisabinames"
11429		;;
11430	sco* | svr4*)
11431		case $host_cpu in
11432		    i*86) STRINGSABIOPTIONS="-intelabi" ;;
11433		       *) STRINGSABIOPTIONS="" ;;
11434		esac
11435		;;
11436esac
11437
11438
11439case $host_os in
11440    darwin*)
11441        OS_CFLAGS="-Wl,-flat_namespace"
11442	;;
11443    *)
11444        OS_CFLAGS=
11445        ;;
11446esac
11447
11448XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS"
11449
11450ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile xt.pc"
11451
11452cat >confcache <<\_ACEOF
11453# This file is a shell script that caches the results of configure
11454# tests run on this system so they can be shared between configure
11455# scripts and configure runs, see configure's option --config-cache.
11456# It is not useful on other systems.  If it contains results you don't
11457# want to keep, you may remove or edit it.
11458#
11459# config.status only pays attention to the cache file if you give it
11460# the --recheck option to rerun configure.
11461#
11462# `ac_cv_env_foo' variables (set or unset) will be overridden when
11463# loading this file, other *unset* `ac_cv_foo' will be assigned the
11464# following values.
11465
11466_ACEOF
11467
11468# The following way of writing the cache mishandles newlines in values,
11469# but we know of no workaround that is simple, portable, and efficient.
11470# So, we kill variables containing newlines.
11471# Ultrix sh set writes to stderr and can't be redirected directly,
11472# and sets the high bit in the cache file unless we assign to the vars.
11473(
11474  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11475    eval ac_val=\$$ac_var
11476    case $ac_val in #(
11477    *${as_nl}*)
11478      case $ac_var in #(
11479      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11481      esac
11482      case $ac_var in #(
11483      _ | IFS | as_nl) ;; #(
11484      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11485      *) { eval $ac_var=; unset $ac_var;} ;;
11486      esac ;;
11487    esac
11488  done
11489
11490  (set) 2>&1 |
11491    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11492    *${as_nl}ac_space=\ *)
11493      # `set' does not quote correctly, so add quotes: double-quote
11494      # substitution turns \\\\ into \\, and sed turns \\ into \.
11495      sed -n \
11496	"s/'/'\\\\''/g;
11497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11498      ;; #(
11499    *)
11500      # `set' quotes correctly as required by POSIX, so do not add quotes.
11501      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11502      ;;
11503    esac |
11504    sort
11505) |
11506  sed '
11507     /^ac_cv_env_/b end
11508     t clear
11509     :clear
11510     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11511     t end
11512     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11513     :end' >>confcache
11514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11515  if test -w "$cache_file"; then
11516    test "x$cache_file" != "x/dev/null" &&
11517      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11518$as_echo "$as_me: updating cache $cache_file" >&6;}
11519    cat confcache >$cache_file
11520  else
11521    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11523  fi
11524fi
11525rm -f confcache
11526
11527test "x$prefix" = xNONE && prefix=$ac_default_prefix
11528# Let make expand exec_prefix.
11529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11530
11531DEFS=-DHAVE_CONFIG_H
11532
11533ac_libobjs=
11534ac_ltlibobjs=
11535U=
11536for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11537  # 1. Remove the extension, and $U if already installed.
11538  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11539  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11540  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11541  #    will be set to the directory where LIBOBJS objects are built.
11542  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11543  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11544done
11545LIBOBJS=$ac_libobjs
11546
11547LTLIBOBJS=$ac_ltlibobjs
11548
11549
11550 if test -n "$EXEEXT"; then
11551  am__EXEEXT_TRUE=
11552  am__EXEEXT_FALSE='#'
11553else
11554  am__EXEEXT_TRUE='#'
11555  am__EXEEXT_FALSE=
11556fi
11557
11558if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11559  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11560Usually this means the macro was only invoked conditionally." "$LINENO" 5
11561fi
11562if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11563  as_fn_error $? "conditional \"AMDEP\" was never defined.
11564Usually this means the macro was only invoked conditionally." "$LINENO" 5
11565fi
11566if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11567  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11568Usually this means the macro was only invoked conditionally." "$LINENO" 5
11569fi
11570
11571: ${CONFIG_STATUS=./config.status}
11572ac_write_fail=0
11573ac_clean_files_save=$ac_clean_files
11574ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11576$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11577as_write_fail=0
11578cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11579#! $SHELL
11580# Generated by $as_me.
11581# Run this file to recreate the current configuration.
11582# Compiler output produced by configure, useful for debugging
11583# configure, is in config.log if it exists.
11584
11585debug=false
11586ac_cs_recheck=false
11587ac_cs_silent=false
11588
11589SHELL=\${CONFIG_SHELL-$SHELL}
11590export SHELL
11591_ASEOF
11592cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11593## -------------------- ##
11594## M4sh Initialization. ##
11595## -------------------- ##
11596
11597# Be more Bourne compatible
11598DUALCASE=1; export DUALCASE # for MKS sh
11599if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11600  emulate sh
11601  NULLCMD=:
11602  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11603  # is contrary to our usage.  Disable this feature.
11604  alias -g '${1+"$@"}'='"$@"'
11605  setopt NO_GLOB_SUBST
11606else
11607  case `(set -o) 2>/dev/null` in #(
11608  *posix*) :
11609    set -o posix ;; #(
11610  *) :
11611     ;;
11612esac
11613fi
11614
11615
11616as_nl='
11617'
11618export as_nl
11619# Printing a long string crashes Solaris 7 /usr/bin/printf.
11620as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11621as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11622as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11623# Prefer a ksh shell builtin over an external printf program on Solaris,
11624# but without wasting forks for bash or zsh.
11625if test -z "$BASH_VERSION$ZSH_VERSION" \
11626    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11627  as_echo='print -r --'
11628  as_echo_n='print -rn --'
11629elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11630  as_echo='printf %s\n'
11631  as_echo_n='printf %s'
11632else
11633  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11634    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11635    as_echo_n='/usr/ucb/echo -n'
11636  else
11637    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11638    as_echo_n_body='eval
11639      arg=$1;
11640      case $arg in #(
11641      *"$as_nl"*)
11642	expr "X$arg" : "X\\(.*\\)$as_nl";
11643	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11644      esac;
11645      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11646    '
11647    export as_echo_n_body
11648    as_echo_n='sh -c $as_echo_n_body as_echo'
11649  fi
11650  export as_echo_body
11651  as_echo='sh -c $as_echo_body as_echo'
11652fi
11653
11654# The user is always right.
11655if test "${PATH_SEPARATOR+set}" != set; then
11656  PATH_SEPARATOR=:
11657  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11658    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11659      PATH_SEPARATOR=';'
11660  }
11661fi
11662
11663
11664# IFS
11665# We need space, tab and new line, in precisely that order.  Quoting is
11666# there to prevent editors from complaining about space-tab.
11667# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11668# splitting by setting IFS to empty value.)
11669IFS=" ""	$as_nl"
11670
11671# Find who we are.  Look in the path if we contain no directory separator.
11672case $0 in #((
11673  *[\\/]* ) as_myself=$0 ;;
11674  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677  IFS=$as_save_IFS
11678  test -z "$as_dir" && as_dir=.
11679    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11680  done
11681IFS=$as_save_IFS
11682
11683     ;;
11684esac
11685# We did not find ourselves, most probably we were run as `sh COMMAND'
11686# in which case we are not to be found in the path.
11687if test "x$as_myself" = x; then
11688  as_myself=$0
11689fi
11690if test ! -f "$as_myself"; then
11691  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11692  exit 1
11693fi
11694
11695# Unset variables that we do not need and which cause bugs (e.g. in
11696# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11697# suppresses any "Segmentation fault" message there.  '((' could
11698# trigger a bug in pdksh 5.2.14.
11699for as_var in BASH_ENV ENV MAIL MAILPATH
11700do eval test x\${$as_var+set} = xset \
11701  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11702done
11703PS1='$ '
11704PS2='> '
11705PS4='+ '
11706
11707# NLS nuisances.
11708LC_ALL=C
11709export LC_ALL
11710LANGUAGE=C
11711export LANGUAGE
11712
11713# CDPATH.
11714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11715
11716
11717# as_fn_error STATUS ERROR [LINENO LOG_FD]
11718# ----------------------------------------
11719# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11720# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11721# script with STATUS, using 1 if that was 0.
11722as_fn_error ()
11723{
11724  as_status=$1; test $as_status -eq 0 && as_status=1
11725  if test "$4"; then
11726    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11727    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11728  fi
11729  $as_echo "$as_me: error: $2" >&2
11730  as_fn_exit $as_status
11731} # as_fn_error
11732
11733
11734# as_fn_set_status STATUS
11735# -----------------------
11736# Set $? to STATUS, without forking.
11737as_fn_set_status ()
11738{
11739  return $1
11740} # as_fn_set_status
11741
11742# as_fn_exit STATUS
11743# -----------------
11744# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11745as_fn_exit ()
11746{
11747  set +e
11748  as_fn_set_status $1
11749  exit $1
11750} # as_fn_exit
11751
11752# as_fn_unset VAR
11753# ---------------
11754# Portably unset VAR.
11755as_fn_unset ()
11756{
11757  { eval $1=; unset $1;}
11758}
11759as_unset=as_fn_unset
11760# as_fn_append VAR VALUE
11761# ----------------------
11762# Append the text in VALUE to the end of the definition contained in VAR. Take
11763# advantage of any shell optimizations that allow amortized linear growth over
11764# repeated appends, instead of the typical quadratic growth present in naive
11765# implementations.
11766if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11767  eval 'as_fn_append ()
11768  {
11769    eval $1+=\$2
11770  }'
11771else
11772  as_fn_append ()
11773  {
11774    eval $1=\$$1\$2
11775  }
11776fi # as_fn_append
11777
11778# as_fn_arith ARG...
11779# ------------------
11780# Perform arithmetic evaluation on the ARGs, and store the result in the
11781# global $as_val. Take advantage of shells that can avoid forks. The arguments
11782# must be portable across $(()) and expr.
11783if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11784  eval 'as_fn_arith ()
11785  {
11786    as_val=$(( $* ))
11787  }'
11788else
11789  as_fn_arith ()
11790  {
11791    as_val=`expr "$@" || test $? -eq 1`
11792  }
11793fi # as_fn_arith
11794
11795
11796if expr a : '\(a\)' >/dev/null 2>&1 &&
11797   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11798  as_expr=expr
11799else
11800  as_expr=false
11801fi
11802
11803if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11804  as_basename=basename
11805else
11806  as_basename=false
11807fi
11808
11809if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11810  as_dirname=dirname
11811else
11812  as_dirname=false
11813fi
11814
11815as_me=`$as_basename -- "$0" ||
11816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11817	 X"$0" : 'X\(//\)$' \| \
11818	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11819$as_echo X/"$0" |
11820    sed '/^.*\/\([^/][^/]*\)\/*$/{
11821	    s//\1/
11822	    q
11823	  }
11824	  /^X\/\(\/\/\)$/{
11825	    s//\1/
11826	    q
11827	  }
11828	  /^X\/\(\/\).*/{
11829	    s//\1/
11830	    q
11831	  }
11832	  s/.*/./; q'`
11833
11834# Avoid depending upon Character Ranges.
11835as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11836as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11837as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11838as_cr_digits='0123456789'
11839as_cr_alnum=$as_cr_Letters$as_cr_digits
11840
11841ECHO_C= ECHO_N= ECHO_T=
11842case `echo -n x` in #(((((
11843-n*)
11844  case `echo 'xy\c'` in
11845  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11846  xy)  ECHO_C='\c';;
11847  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11848       ECHO_T='	';;
11849  esac;;
11850*)
11851  ECHO_N='-n';;
11852esac
11853
11854rm -f conf$$ conf$$.exe conf$$.file
11855if test -d conf$$.dir; then
11856  rm -f conf$$.dir/conf$$.file
11857else
11858  rm -f conf$$.dir
11859  mkdir conf$$.dir 2>/dev/null
11860fi
11861if (echo >conf$$.file) 2>/dev/null; then
11862  if ln -s conf$$.file conf$$ 2>/dev/null; then
11863    as_ln_s='ln -s'
11864    # ... but there are two gotchas:
11865    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11866    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11867    # In both cases, we have to default to `cp -p'.
11868    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11869      as_ln_s='cp -p'
11870  elif ln conf$$.file conf$$ 2>/dev/null; then
11871    as_ln_s=ln
11872  else
11873    as_ln_s='cp -p'
11874  fi
11875else
11876  as_ln_s='cp -p'
11877fi
11878rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11879rmdir conf$$.dir 2>/dev/null
11880
11881
11882# as_fn_mkdir_p
11883# -------------
11884# Create "$as_dir" as a directory, including parents if necessary.
11885as_fn_mkdir_p ()
11886{
11887
11888  case $as_dir in #(
11889  -*) as_dir=./$as_dir;;
11890  esac
11891  test -d "$as_dir" || eval $as_mkdir_p || {
11892    as_dirs=
11893    while :; do
11894      case $as_dir in #(
11895      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11896      *) as_qdir=$as_dir;;
11897      esac
11898      as_dirs="'$as_qdir' $as_dirs"
11899      as_dir=`$as_dirname -- "$as_dir" ||
11900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11901	 X"$as_dir" : 'X\(//\)[^/]' \| \
11902	 X"$as_dir" : 'X\(//\)$' \| \
11903	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11904$as_echo X"$as_dir" |
11905    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11906	    s//\1/
11907	    q
11908	  }
11909	  /^X\(\/\/\)[^/].*/{
11910	    s//\1/
11911	    q
11912	  }
11913	  /^X\(\/\/\)$/{
11914	    s//\1/
11915	    q
11916	  }
11917	  /^X\(\/\).*/{
11918	    s//\1/
11919	    q
11920	  }
11921	  s/.*/./; q'`
11922      test -d "$as_dir" && break
11923    done
11924    test -z "$as_dirs" || eval "mkdir $as_dirs"
11925  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11926
11927
11928} # as_fn_mkdir_p
11929if mkdir -p . 2>/dev/null; then
11930  as_mkdir_p='mkdir -p "$as_dir"'
11931else
11932  test -d ./-p && rmdir ./-p
11933  as_mkdir_p=false
11934fi
11935
11936if test -x / >/dev/null 2>&1; then
11937  as_test_x='test -x'
11938else
11939  if ls -dL / >/dev/null 2>&1; then
11940    as_ls_L_option=L
11941  else
11942    as_ls_L_option=
11943  fi
11944  as_test_x='
11945    eval sh -c '\''
11946      if test -d "$1"; then
11947	test -d "$1/.";
11948      else
11949	case $1 in #(
11950	-*)set "./$1";;
11951	esac;
11952	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11953	???[sx]*):;;*)false;;esac;fi
11954    '\'' sh
11955  '
11956fi
11957as_executable_p=$as_test_x
11958
11959# Sed expression to map a string onto a valid CPP name.
11960as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11961
11962# Sed expression to map a string onto a valid variable name.
11963as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11964
11965
11966exec 6>&1
11967## ----------------------------------- ##
11968## Main body of $CONFIG_STATUS script. ##
11969## ----------------------------------- ##
11970_ASEOF
11971test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11972
11973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11974# Save the log message, to keep $0 and so on meaningful, and to
11975# report actual input values of CONFIG_FILES etc. instead of their
11976# values after options handling.
11977ac_log="
11978This file was extended by libXt $as_me 1.1.1, which was
11979generated by GNU Autoconf 2.67.  Invocation command line was
11980
11981  CONFIG_FILES    = $CONFIG_FILES
11982  CONFIG_HEADERS  = $CONFIG_HEADERS
11983  CONFIG_LINKS    = $CONFIG_LINKS
11984  CONFIG_COMMANDS = $CONFIG_COMMANDS
11985  $ $0 $@
11986
11987on `(hostname || uname -n) 2>/dev/null | sed 1q`
11988"
11989
11990_ACEOF
11991
11992case $ac_config_files in *"
11993"*) set x $ac_config_files; shift; ac_config_files=$*;;
11994esac
11995
11996case $ac_config_headers in *"
11997"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11998esac
11999
12000
12001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12002# Files that config.status was made for.
12003config_files="$ac_config_files"
12004config_headers="$ac_config_headers"
12005config_commands="$ac_config_commands"
12006
12007_ACEOF
12008
12009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12010ac_cs_usage="\
12011\`$as_me' instantiates files and other configuration actions
12012from templates according to the current configuration.  Unless the files
12013and actions are specified as TAGs, all are instantiated by default.
12014
12015Usage: $0 [OPTION]... [TAG]...
12016
12017  -h, --help       print this help, then exit
12018  -V, --version    print version number and configuration settings, then exit
12019      --config     print configuration, then exit
12020  -q, --quiet, --silent
12021                   do not print progress messages
12022  -d, --debug      don't remove temporary files
12023      --recheck    update $as_me by reconfiguring in the same conditions
12024      --file=FILE[:TEMPLATE]
12025                   instantiate the configuration file FILE
12026      --header=FILE[:TEMPLATE]
12027                   instantiate the configuration header FILE
12028
12029Configuration files:
12030$config_files
12031
12032Configuration headers:
12033$config_headers
12034
12035Configuration commands:
12036$config_commands
12037
12038Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12039
12040_ACEOF
12041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12042ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12043ac_cs_version="\\
12044libXt config.status 1.1.1
12045configured by $0, generated by GNU Autoconf 2.67,
12046  with options \\"\$ac_cs_config\\"
12047
12048Copyright (C) 2010 Free Software Foundation, Inc.
12049This config.status script is free software; the Free Software Foundation
12050gives unlimited permission to copy, distribute and modify it."
12051
12052ac_pwd='$ac_pwd'
12053srcdir='$srcdir'
12054INSTALL='$INSTALL'
12055MKDIR_P='$MKDIR_P'
12056AWK='$AWK'
12057test -n "\$AWK" || AWK=awk
12058_ACEOF
12059
12060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12061# The default lists apply if the user does not specify any file.
12062ac_need_defaults=:
12063while test $# != 0
12064do
12065  case $1 in
12066  --*=?*)
12067    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12068    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12069    ac_shift=:
12070    ;;
12071  --*=)
12072    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12073    ac_optarg=
12074    ac_shift=:
12075    ;;
12076  *)
12077    ac_option=$1
12078    ac_optarg=$2
12079    ac_shift=shift
12080    ;;
12081  esac
12082
12083  case $ac_option in
12084  # Handling of the options.
12085  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12086    ac_cs_recheck=: ;;
12087  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12088    $as_echo "$ac_cs_version"; exit ;;
12089  --config | --confi | --conf | --con | --co | --c )
12090    $as_echo "$ac_cs_config"; exit ;;
12091  --debug | --debu | --deb | --de | --d | -d )
12092    debug=: ;;
12093  --file | --fil | --fi | --f )
12094    $ac_shift
12095    case $ac_optarg in
12096    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12097    '') as_fn_error $? "missing file argument" ;;
12098    esac
12099    as_fn_append CONFIG_FILES " '$ac_optarg'"
12100    ac_need_defaults=false;;
12101  --header | --heade | --head | --hea )
12102    $ac_shift
12103    case $ac_optarg in
12104    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12105    esac
12106    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12107    ac_need_defaults=false;;
12108  --he | --h)
12109    # Conflict between --help and --header
12110    as_fn_error $? "ambiguous option: \`$1'
12111Try \`$0 --help' for more information.";;
12112  --help | --hel | -h )
12113    $as_echo "$ac_cs_usage"; exit ;;
12114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12115  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12116    ac_cs_silent=: ;;
12117
12118  # This is an error.
12119  -*) as_fn_error $? "unrecognized option: \`$1'
12120Try \`$0 --help' for more information." ;;
12121
12122  *) as_fn_append ac_config_targets " $1"
12123     ac_need_defaults=false ;;
12124
12125  esac
12126  shift
12127done
12128
12129ac_configure_extra_args=
12130
12131if $ac_cs_silent; then
12132  exec 6>/dev/null
12133  ac_configure_extra_args="$ac_configure_extra_args --silent"
12134fi
12135
12136_ACEOF
12137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12138if \$ac_cs_recheck; then
12139  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12140  shift
12141  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12142  CONFIG_SHELL='$SHELL'
12143  export CONFIG_SHELL
12144  exec "\$@"
12145fi
12146
12147_ACEOF
12148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12149exec 5>>config.log
12150{
12151  echo
12152  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12153## Running $as_me. ##
12154_ASBOX
12155  $as_echo "$ac_log"
12156} >&5
12157
12158_ACEOF
12159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160#
12161# INIT-COMMANDS
12162#
12163AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12164
12165
12166# The HP-UX ksh and POSIX shell print the target directory to stdout
12167# if CDPATH is set.
12168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12169
12170sed_quote_subst='$sed_quote_subst'
12171double_quote_subst='$double_quote_subst'
12172delay_variable_subst='$delay_variable_subst'
12173macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12174macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12175enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12176enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12177pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12178enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12179host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12180host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12181host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12182build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12183build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12184build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12185SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12186Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12187GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12188EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12189FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12190LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12191NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12192LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12193max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12194ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12195exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12196lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12197lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12198lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12199reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12200reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12201OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12202deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12203file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12204AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12205AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12206STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12207RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12208old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12209old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12210old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12211CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12212CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12213compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12214GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12215lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12216lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12217lt_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"`'
12218lt_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"`'
12219objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12220SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12221ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12222MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12223lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12224lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12225lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12226lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12227lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12228need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12229DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12230NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12231LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12232OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12233OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12234libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12235shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12236extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12237archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12238enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12239export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12240whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12241compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12242old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12243old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12244archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12245archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12246module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12247module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12248with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12249allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12250no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12251hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12252hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12253hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12254hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12255hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12256hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12257hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12258hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12259inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12260link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12261fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12262always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12263export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12264exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12265include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12266prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12267file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12268variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12269need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12270need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12271version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12272runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12273shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12274shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12275libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12276library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12277soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12278postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12279postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12280finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12281finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12282hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12283sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12284sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12285hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12286enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12287enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12288enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12289old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12290striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12291
12292LTCC='$LTCC'
12293LTCFLAGS='$LTCFLAGS'
12294compiler='$compiler_DEFAULT'
12295
12296# Quote evaled strings.
12297for var in SED \
12298GREP \
12299EGREP \
12300FGREP \
12301LD \
12302NM \
12303LN_S \
12304lt_SP2NL \
12305lt_NL2SP \
12306reload_flag \
12307OBJDUMP \
12308deplibs_check_method \
12309file_magic_cmd \
12310AR \
12311AR_FLAGS \
12312STRIP \
12313RANLIB \
12314CC \
12315CFLAGS \
12316compiler \
12317lt_cv_sys_global_symbol_pipe \
12318lt_cv_sys_global_symbol_to_cdecl \
12319lt_cv_sys_global_symbol_to_c_name_address \
12320lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12321SHELL \
12322ECHO \
12323lt_prog_compiler_no_builtin_flag \
12324lt_prog_compiler_wl \
12325lt_prog_compiler_pic \
12326lt_prog_compiler_static \
12327lt_cv_prog_compiler_c_o \
12328need_locks \
12329DSYMUTIL \
12330NMEDIT \
12331LIPO \
12332OTOOL \
12333OTOOL64 \
12334shrext_cmds \
12335export_dynamic_flag_spec \
12336whole_archive_flag_spec \
12337compiler_needs_object \
12338with_gnu_ld \
12339allow_undefined_flag \
12340no_undefined_flag \
12341hardcode_libdir_flag_spec \
12342hardcode_libdir_flag_spec_ld \
12343hardcode_libdir_separator \
12344fix_srcfile_path \
12345exclude_expsyms \
12346include_expsyms \
12347file_list_spec \
12348variables_saved_for_relink \
12349libname_spec \
12350library_names_spec \
12351soname_spec \
12352finish_eval \
12353old_striplib \
12354striplib; do
12355    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12356    *[\\\\\\\`\\"\\\$]*)
12357      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12358      ;;
12359    *)
12360      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12361      ;;
12362    esac
12363done
12364
12365# Double-quote double-evaled strings.
12366for var in reload_cmds \
12367old_postinstall_cmds \
12368old_postuninstall_cmds \
12369old_archive_cmds \
12370extract_expsyms_cmds \
12371old_archive_from_new_cmds \
12372old_archive_from_expsyms_cmds \
12373archive_cmds \
12374archive_expsym_cmds \
12375module_cmds \
12376module_expsym_cmds \
12377export_symbols_cmds \
12378prelink_cmds \
12379postinstall_cmds \
12380postuninstall_cmds \
12381finish_cmds \
12382sys_lib_search_path_spec \
12383sys_lib_dlsearch_path_spec; do
12384    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12385    *[\\\\\\\`\\"\\\$]*)
12386      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12387      ;;
12388    *)
12389      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12390      ;;
12391    esac
12392done
12393
12394# Fix-up fallback echo if it was mangled by the above quoting rules.
12395case \$lt_ECHO in
12396*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12397  ;;
12398esac
12399
12400ac_aux_dir='$ac_aux_dir'
12401xsi_shell='$xsi_shell'
12402lt_shell_append='$lt_shell_append'
12403
12404# See if we are running on zsh, and set the options which allow our
12405# commands through without removal of \ escapes INIT.
12406if test -n "\${ZSH_VERSION+set}" ; then
12407   setopt NO_GLOB_SUBST
12408fi
12409
12410
12411    PACKAGE='$PACKAGE'
12412    VERSION='$VERSION'
12413    TIMESTAMP='$TIMESTAMP'
12414    RM='$RM'
12415    ofile='$ofile'
12416
12417
12418
12419
12420_ACEOF
12421
12422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12423
12424# Handling of arguments.
12425for ac_config_target in $ac_config_targets
12426do
12427  case $ac_config_target in
12428    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12429    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12430    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12431    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12432    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12433    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
12434    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12435    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12436    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
12437    "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
12438
12439  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12440  esac
12441done
12442
12443
12444# If the user did not use the arguments to specify the items to instantiate,
12445# then the envvar interface is used.  Set only those that are not.
12446# We use the long form for the default assignment because of an extremely
12447# bizarre bug on SunOS 4.1.3.
12448if $ac_need_defaults; then
12449  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12450  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12451  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12452fi
12453
12454# Have a temporary directory for convenience.  Make it in the build tree
12455# simply because there is no reason against having it here, and in addition,
12456# creating and moving files from /tmp can sometimes cause problems.
12457# Hook for its removal unless debugging.
12458# Note that there is a small window in which the directory will not be cleaned:
12459# after its creation but before its name has been assigned to `$tmp'.
12460$debug ||
12461{
12462  tmp=
12463  trap 'exit_status=$?
12464  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12465' 0
12466  trap 'as_fn_exit 1' 1 2 13 15
12467}
12468# Create a (secure) tmp directory for tmp files.
12469
12470{
12471  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12472  test -n "$tmp" && test -d "$tmp"
12473}  ||
12474{
12475  tmp=./conf$$-$RANDOM
12476  (umask 077 && mkdir "$tmp")
12477} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12478
12479# Set up the scripts for CONFIG_FILES section.
12480# No need to generate them if there are no CONFIG_FILES.
12481# This happens for instance with `./config.status config.h'.
12482if test -n "$CONFIG_FILES"; then
12483
12484
12485ac_cr=`echo X | tr X '\015'`
12486# On cygwin, bash can eat \r inside `` if the user requested igncr.
12487# But we know of no other shell where ac_cr would be empty at this
12488# point, so we can use a bashism as a fallback.
12489if test "x$ac_cr" = x; then
12490  eval ac_cr=\$\'\\r\'
12491fi
12492ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12493if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12494  ac_cs_awk_cr='\\r'
12495else
12496  ac_cs_awk_cr=$ac_cr
12497fi
12498
12499echo 'BEGIN {' >"$tmp/subs1.awk" &&
12500_ACEOF
12501
12502
12503{
12504  echo "cat >conf$$subs.awk <<_ACEOF" &&
12505  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12506  echo "_ACEOF"
12507} >conf$$subs.sh ||
12508  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12509ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12510ac_delim='%!_!# '
12511for ac_last_try in false false false false false :; do
12512  . ./conf$$subs.sh ||
12513    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12514
12515  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12516  if test $ac_delim_n = $ac_delim_num; then
12517    break
12518  elif $ac_last_try; then
12519    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12520  else
12521    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12522  fi
12523done
12524rm -f conf$$subs.sh
12525
12526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12527cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12528_ACEOF
12529sed -n '
12530h
12531s/^/S["/; s/!.*/"]=/
12532p
12533g
12534s/^[^!]*!//
12535:repl
12536t repl
12537s/'"$ac_delim"'$//
12538t delim
12539:nl
12540h
12541s/\(.\{148\}\)..*/\1/
12542t more1
12543s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12544p
12545n
12546b repl
12547:more1
12548s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12549p
12550g
12551s/.\{148\}//
12552t nl
12553:delim
12554h
12555s/\(.\{148\}\)..*/\1/
12556t more2
12557s/["\\]/\\&/g; s/^/"/; s/$/"/
12558p
12559b
12560:more2
12561s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12562p
12563g
12564s/.\{148\}//
12565t delim
12566' <conf$$subs.awk | sed '
12567/^[^""]/{
12568  N
12569  s/\n//
12570}
12571' >>$CONFIG_STATUS || ac_write_fail=1
12572rm -f conf$$subs.awk
12573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12574_ACAWK
12575cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12576  for (key in S) S_is_set[key] = 1
12577  FS = ""
12578
12579}
12580{
12581  line = $ 0
12582  nfields = split(line, field, "@")
12583  substed = 0
12584  len = length(field[1])
12585  for (i = 2; i < nfields; i++) {
12586    key = field[i]
12587    keylen = length(key)
12588    if (S_is_set[key]) {
12589      value = S[key]
12590      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12591      len += length(value) + length(field[++i])
12592      substed = 1
12593    } else
12594      len += 1 + keylen
12595  }
12596
12597  print line
12598}
12599
12600_ACAWK
12601_ACEOF
12602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12603if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12604  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12605else
12606  cat
12607fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12608  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12609_ACEOF
12610
12611# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12612# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12613# trailing colons and then remove the whole line if VPATH becomes empty
12614# (actually we leave an empty line to preserve line numbers).
12615if test "x$srcdir" = x.; then
12616  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12617h
12618s///
12619s/^/:/
12620s/[	 ]*$/:/
12621s/:\$(srcdir):/:/g
12622s/:\${srcdir}:/:/g
12623s/:@srcdir@:/:/g
12624s/^:*//
12625s/:*$//
12626x
12627s/\(=[	 ]*\).*/\1/
12628G
12629s/\n//
12630s/^[^=]*=[	 ]*$//
12631}'
12632fi
12633
12634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12635fi # test -n "$CONFIG_FILES"
12636
12637# Set up the scripts for CONFIG_HEADERS section.
12638# No need to generate them if there are no CONFIG_HEADERS.
12639# This happens for instance with `./config.status Makefile'.
12640if test -n "$CONFIG_HEADERS"; then
12641cat >"$tmp/defines.awk" <<\_ACAWK ||
12642BEGIN {
12643_ACEOF
12644
12645# Transform confdefs.h into an awk script `defines.awk', embedded as
12646# here-document in config.status, that substitutes the proper values into
12647# config.h.in to produce config.h.
12648
12649# Create a delimiter string that does not exist in confdefs.h, to ease
12650# handling of long lines.
12651ac_delim='%!_!# '
12652for ac_last_try in false false :; do
12653  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12654  if test -z "$ac_t"; then
12655    break
12656  elif $ac_last_try; then
12657    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12658  else
12659    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12660  fi
12661done
12662
12663# For the awk script, D is an array of macro values keyed by name,
12664# likewise P contains macro parameters if any.  Preserve backslash
12665# newline sequences.
12666
12667ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12668sed -n '
12669s/.\{148\}/&'"$ac_delim"'/g
12670t rset
12671:rset
12672s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12673t def
12674d
12675:def
12676s/\\$//
12677t bsnl
12678s/["\\]/\\&/g
12679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12680D["\1"]=" \3"/p
12681s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12682d
12683:bsnl
12684s/["\\]/\\&/g
12685s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12686D["\1"]=" \3\\\\\\n"\\/p
12687t cont
12688s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12689t cont
12690d
12691:cont
12692n
12693s/.\{148\}/&'"$ac_delim"'/g
12694t clear
12695:clear
12696s/\\$//
12697t bsnlc
12698s/["\\]/\\&/g; s/^/"/; s/$/"/p
12699d
12700:bsnlc
12701s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12702b cont
12703' <confdefs.h | sed '
12704s/'"$ac_delim"'/"\\\
12705"/g' >>$CONFIG_STATUS || ac_write_fail=1
12706
12707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12708  for (key in D) D_is_set[key] = 1
12709  FS = ""
12710}
12711/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12712  line = \$ 0
12713  split(line, arg, " ")
12714  if (arg[1] == "#") {
12715    defundef = arg[2]
12716    mac1 = arg[3]
12717  } else {
12718    defundef = substr(arg[1], 2)
12719    mac1 = arg[2]
12720  }
12721  split(mac1, mac2, "(") #)
12722  macro = mac2[1]
12723  prefix = substr(line, 1, index(line, defundef) - 1)
12724  if (D_is_set[macro]) {
12725    # Preserve the white space surrounding the "#".
12726    print prefix "define", macro P[macro] D[macro]
12727    next
12728  } else {
12729    # Replace #undef with comments.  This is necessary, for example,
12730    # in the case of _POSIX_SOURCE, which is predefined and required
12731    # on some systems where configure will not decide to define it.
12732    if (defundef == "undef") {
12733      print "/*", prefix defundef, macro, "*/"
12734      next
12735    }
12736  }
12737}
12738{ print }
12739_ACAWK
12740_ACEOF
12741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12742  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12743fi # test -n "$CONFIG_HEADERS"
12744
12745
12746eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12747shift
12748for ac_tag
12749do
12750  case $ac_tag in
12751  :[FHLC]) ac_mode=$ac_tag; continue;;
12752  esac
12753  case $ac_mode$ac_tag in
12754  :[FHL]*:*);;
12755  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12756  :[FH]-) ac_tag=-:-;;
12757  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12758  esac
12759  ac_save_IFS=$IFS
12760  IFS=:
12761  set x $ac_tag
12762  IFS=$ac_save_IFS
12763  shift
12764  ac_file=$1
12765  shift
12766
12767  case $ac_mode in
12768  :L) ac_source=$1;;
12769  :[FH])
12770    ac_file_inputs=
12771    for ac_f
12772    do
12773      case $ac_f in
12774      -) ac_f="$tmp/stdin";;
12775      *) # Look for the file first in the build tree, then in the source tree
12776	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12777	 # because $ac_f cannot contain `:'.
12778	 test -f "$ac_f" ||
12779	   case $ac_f in
12780	   [\\/$]*) false;;
12781	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12782	   esac ||
12783	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12784      esac
12785      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12786      as_fn_append ac_file_inputs " '$ac_f'"
12787    done
12788
12789    # Let's still pretend it is `configure' which instantiates (i.e., don't
12790    # use $as_me), people would be surprised to read:
12791    #    /* config.h.  Generated by config.status.  */
12792    configure_input='Generated from '`
12793	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12794	`' by configure.'
12795    if test x"$ac_file" != x-; then
12796      configure_input="$ac_file.  $configure_input"
12797      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12798$as_echo "$as_me: creating $ac_file" >&6;}
12799    fi
12800    # Neutralize special characters interpreted by sed in replacement strings.
12801    case $configure_input in #(
12802    *\&* | *\|* | *\\* )
12803       ac_sed_conf_input=`$as_echo "$configure_input" |
12804       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12805    *) ac_sed_conf_input=$configure_input;;
12806    esac
12807
12808    case $ac_tag in
12809    *:-:* | *:-) cat >"$tmp/stdin" \
12810      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
12811    esac
12812    ;;
12813  esac
12814
12815  ac_dir=`$as_dirname -- "$ac_file" ||
12816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12817	 X"$ac_file" : 'X\(//\)[^/]' \| \
12818	 X"$ac_file" : 'X\(//\)$' \| \
12819	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12820$as_echo X"$ac_file" |
12821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12822	    s//\1/
12823	    q
12824	  }
12825	  /^X\(\/\/\)[^/].*/{
12826	    s//\1/
12827	    q
12828	  }
12829	  /^X\(\/\/\)$/{
12830	    s//\1/
12831	    q
12832	  }
12833	  /^X\(\/\).*/{
12834	    s//\1/
12835	    q
12836	  }
12837	  s/.*/./; q'`
12838  as_dir="$ac_dir"; as_fn_mkdir_p
12839  ac_builddir=.
12840
12841case "$ac_dir" in
12842.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12843*)
12844  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12845  # A ".." for each directory in $ac_dir_suffix.
12846  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12847  case $ac_top_builddir_sub in
12848  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12849  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12850  esac ;;
12851esac
12852ac_abs_top_builddir=$ac_pwd
12853ac_abs_builddir=$ac_pwd$ac_dir_suffix
12854# for backward compatibility:
12855ac_top_builddir=$ac_top_build_prefix
12856
12857case $srcdir in
12858  .)  # We are building in place.
12859    ac_srcdir=.
12860    ac_top_srcdir=$ac_top_builddir_sub
12861    ac_abs_top_srcdir=$ac_pwd ;;
12862  [\\/]* | ?:[\\/]* )  # Absolute name.
12863    ac_srcdir=$srcdir$ac_dir_suffix;
12864    ac_top_srcdir=$srcdir
12865    ac_abs_top_srcdir=$srcdir ;;
12866  *) # Relative name.
12867    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12868    ac_top_srcdir=$ac_top_build_prefix$srcdir
12869    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12870esac
12871ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12872
12873
12874  case $ac_mode in
12875  :F)
12876  #
12877  # CONFIG_FILE
12878  #
12879
12880  case $INSTALL in
12881  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12882  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12883  esac
12884  ac_MKDIR_P=$MKDIR_P
12885  case $MKDIR_P in
12886  [\\/$]* | ?:[\\/]* ) ;;
12887  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12888  esac
12889_ACEOF
12890
12891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892# If the template does not know about datarootdir, expand it.
12893# FIXME: This hack should be removed a few years after 2.60.
12894ac_datarootdir_hack=; ac_datarootdir_seen=
12895ac_sed_dataroot='
12896/datarootdir/ {
12897  p
12898  q
12899}
12900/@datadir@/p
12901/@docdir@/p
12902/@infodir@/p
12903/@localedir@/p
12904/@mandir@/p'
12905case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12906*datarootdir*) ac_datarootdir_seen=yes;;
12907*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12908  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12909$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12910_ACEOF
12911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12912  ac_datarootdir_hack='
12913  s&@datadir@&$datadir&g
12914  s&@docdir@&$docdir&g
12915  s&@infodir@&$infodir&g
12916  s&@localedir@&$localedir&g
12917  s&@mandir@&$mandir&g
12918  s&\\\${datarootdir}&$datarootdir&g' ;;
12919esac
12920_ACEOF
12921
12922# Neutralize VPATH when `$srcdir' = `.'.
12923# Shell code in configure.ac might set extrasub.
12924# FIXME: do we really want to maintain this feature?
12925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12926ac_sed_extra="$ac_vpsub
12927$extrasub
12928_ACEOF
12929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12930:t
12931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12932s|@configure_input@|$ac_sed_conf_input|;t t
12933s&@top_builddir@&$ac_top_builddir_sub&;t t
12934s&@top_build_prefix@&$ac_top_build_prefix&;t t
12935s&@srcdir@&$ac_srcdir&;t t
12936s&@abs_srcdir@&$ac_abs_srcdir&;t t
12937s&@top_srcdir@&$ac_top_srcdir&;t t
12938s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12939s&@builddir@&$ac_builddir&;t t
12940s&@abs_builddir@&$ac_abs_builddir&;t t
12941s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12942s&@INSTALL@&$ac_INSTALL&;t t
12943s&@MKDIR_P@&$ac_MKDIR_P&;t t
12944$ac_datarootdir_hack
12945"
12946eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12947  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12948
12949test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12950  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12951  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12952  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12953which seems to be undefined.  Please make sure it is defined" >&5
12954$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12955which seems to be undefined.  Please make sure it is defined" >&2;}
12956
12957  rm -f "$tmp/stdin"
12958  case $ac_file in
12959  -) cat "$tmp/out" && rm -f "$tmp/out";;
12960  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12961  esac \
12962  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12963 ;;
12964  :H)
12965  #
12966  # CONFIG_HEADER
12967  #
12968  if test x"$ac_file" != x-; then
12969    {
12970      $as_echo "/* $configure_input  */" \
12971      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12972    } >"$tmp/config.h" \
12973      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12974    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12975      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12976$as_echo "$as_me: $ac_file is unchanged" >&6;}
12977    else
12978      rm -f "$ac_file"
12979      mv "$tmp/config.h" "$ac_file" \
12980	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12981    fi
12982  else
12983    $as_echo "/* $configure_input  */" \
12984      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12985      || as_fn_error $? "could not create -" "$LINENO" 5
12986  fi
12987# Compute "$ac_file"'s index in $config_headers.
12988_am_arg="$ac_file"
12989_am_stamp_count=1
12990for _am_header in $config_headers :; do
12991  case $_am_header in
12992    $_am_arg | $_am_arg:* )
12993      break ;;
12994    * )
12995      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12996  esac
12997done
12998echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12999$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13000	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13001	 X"$_am_arg" : 'X\(//\)$' \| \
13002	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13003$as_echo X"$_am_arg" |
13004    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13005	    s//\1/
13006	    q
13007	  }
13008	  /^X\(\/\/\)[^/].*/{
13009	    s//\1/
13010	    q
13011	  }
13012	  /^X\(\/\/\)$/{
13013	    s//\1/
13014	    q
13015	  }
13016	  /^X\(\/\).*/{
13017	    s//\1/
13018	    q
13019	  }
13020	  s/.*/./; q'`/stamp-h$_am_stamp_count
13021 ;;
13022
13023  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13024$as_echo "$as_me: executing $ac_file commands" >&6;}
13025 ;;
13026  esac
13027
13028
13029  case $ac_file$ac_mode in
13030    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13031  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13032  # are listed without --file.  Let's play safe and only enable the eval
13033  # if we detect the quoting.
13034  case $CONFIG_FILES in
13035  *\'*) eval set x "$CONFIG_FILES" ;;
13036  *)   set x $CONFIG_FILES ;;
13037  esac
13038  shift
13039  for mf
13040  do
13041    # Strip MF so we end up with the name of the file.
13042    mf=`echo "$mf" | sed -e 's/:.*$//'`
13043    # Check whether this is an Automake generated Makefile or not.
13044    # We used to match only the files named `Makefile.in', but
13045    # some people rename them; so instead we look at the file content.
13046    # Grep'ing the first line is not enough: some people post-process
13047    # each Makefile.in and add a new line on top of each file to say so.
13048    # Grep'ing the whole file is not good either: AIX grep has a line
13049    # limit of 2048, but all sed's we know have understand at least 4000.
13050    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13051      dirpart=`$as_dirname -- "$mf" ||
13052$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13053	 X"$mf" : 'X\(//\)[^/]' \| \
13054	 X"$mf" : 'X\(//\)$' \| \
13055	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13056$as_echo X"$mf" |
13057    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13058	    s//\1/
13059	    q
13060	  }
13061	  /^X\(\/\/\)[^/].*/{
13062	    s//\1/
13063	    q
13064	  }
13065	  /^X\(\/\/\)$/{
13066	    s//\1/
13067	    q
13068	  }
13069	  /^X\(\/\).*/{
13070	    s//\1/
13071	    q
13072	  }
13073	  s/.*/./; q'`
13074    else
13075      continue
13076    fi
13077    # Extract the definition of DEPDIR, am__include, and am__quote
13078    # from the Makefile without running `make'.
13079    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13080    test -z "$DEPDIR" && continue
13081    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13082    test -z "am__include" && continue
13083    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13084    # When using ansi2knr, U may be empty or an underscore; expand it
13085    U=`sed -n 's/^U = //p' < "$mf"`
13086    # Find all dependency output files, they are included files with
13087    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13088    # simplest approach to changing $(DEPDIR) to its actual value in the
13089    # expansion.
13090    for file in `sed -n "
13091      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13092	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13093      # Make sure the directory exists.
13094      test -f "$dirpart/$file" && continue
13095      fdir=`$as_dirname -- "$file" ||
13096$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097	 X"$file" : 'X\(//\)[^/]' \| \
13098	 X"$file" : 'X\(//\)$' \| \
13099	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13100$as_echo X"$file" |
13101    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13102	    s//\1/
13103	    q
13104	  }
13105	  /^X\(\/\/\)[^/].*/{
13106	    s//\1/
13107	    q
13108	  }
13109	  /^X\(\/\/\)$/{
13110	    s//\1/
13111	    q
13112	  }
13113	  /^X\(\/\).*/{
13114	    s//\1/
13115	    q
13116	  }
13117	  s/.*/./; q'`
13118      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13119      # echo "creating $dirpart/$file"
13120      echo '# dummy' > "$dirpart/$file"
13121    done
13122  done
13123}
13124 ;;
13125    "libtool":C)
13126
13127    # See if we are running on zsh, and set the options which allow our
13128    # commands through without removal of \ escapes.
13129    if test -n "${ZSH_VERSION+set}" ; then
13130      setopt NO_GLOB_SUBST
13131    fi
13132
13133    cfgfile="${ofile}T"
13134    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13135    $RM "$cfgfile"
13136
13137    cat <<_LT_EOF >> "$cfgfile"
13138#! $SHELL
13139
13140# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13141# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13142# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13143# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13144#
13145#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13146#                 2006, 2007, 2008 Free Software Foundation, Inc.
13147#   Written by Gordon Matzigkeit, 1996
13148#
13149#   This file is part of GNU Libtool.
13150#
13151# GNU Libtool is free software; you can redistribute it and/or
13152# modify it under the terms of the GNU General Public License as
13153# published by the Free Software Foundation; either version 2 of
13154# the License, or (at your option) any later version.
13155#
13156# As a special exception to the GNU General Public License,
13157# if you distribute this file as part of a program or library that
13158# is built using GNU Libtool, you may include this file under the
13159# same distribution terms that you use for the rest of that program.
13160#
13161# GNU Libtool is distributed in the hope that it will be useful,
13162# but WITHOUT ANY WARRANTY; without even the implied warranty of
13163# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13164# GNU General Public License for more details.
13165#
13166# You should have received a copy of the GNU General Public License
13167# along with GNU Libtool; see the file COPYING.  If not, a copy
13168# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13169# obtained by writing to the Free Software Foundation, Inc.,
13170# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13171
13172
13173# The names of the tagged configurations supported by this script.
13174available_tags=""
13175
13176# ### BEGIN LIBTOOL CONFIG
13177
13178# Which release of libtool.m4 was used?
13179macro_version=$macro_version
13180macro_revision=$macro_revision
13181
13182# Whether or not to build shared libraries.
13183build_libtool_libs=$enable_shared
13184
13185# Whether or not to build static libraries.
13186build_old_libs=$enable_static
13187
13188# What type of objects to build.
13189pic_mode=$pic_mode
13190
13191# Whether or not to optimize for fast installation.
13192fast_install=$enable_fast_install
13193
13194# The host system.
13195host_alias=$host_alias
13196host=$host
13197host_os=$host_os
13198
13199# The build system.
13200build_alias=$build_alias
13201build=$build
13202build_os=$build_os
13203
13204# A sed program that does not truncate output.
13205SED=$lt_SED
13206
13207# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13208Xsed="\$SED -e 1s/^X//"
13209
13210# A grep program that handles long lines.
13211GREP=$lt_GREP
13212
13213# An ERE matcher.
13214EGREP=$lt_EGREP
13215
13216# A literal string matcher.
13217FGREP=$lt_FGREP
13218
13219# A BSD- or MS-compatible name lister.
13220NM=$lt_NM
13221
13222# Whether we need soft or hard links.
13223LN_S=$lt_LN_S
13224
13225# What is the maximum length of a command?
13226max_cmd_len=$max_cmd_len
13227
13228# Object file suffix (normally "o").
13229objext=$ac_objext
13230
13231# Executable file suffix (normally "").
13232exeext=$exeext
13233
13234# whether the shell understands "unset".
13235lt_unset=$lt_unset
13236
13237# turn spaces into newlines.
13238SP2NL=$lt_lt_SP2NL
13239
13240# turn newlines into spaces.
13241NL2SP=$lt_lt_NL2SP
13242
13243# How to create reloadable object files.
13244reload_flag=$lt_reload_flag
13245reload_cmds=$lt_reload_cmds
13246
13247# An object symbol dumper.
13248OBJDUMP=$lt_OBJDUMP
13249
13250# Method to check whether dependent libraries are shared objects.
13251deplibs_check_method=$lt_deplibs_check_method
13252
13253# Command to use when deplibs_check_method == "file_magic".
13254file_magic_cmd=$lt_file_magic_cmd
13255
13256# The archiver.
13257AR=$lt_AR
13258AR_FLAGS=$lt_AR_FLAGS
13259
13260# A symbol stripping program.
13261STRIP=$lt_STRIP
13262
13263# Commands used to install an old-style archive.
13264RANLIB=$lt_RANLIB
13265old_postinstall_cmds=$lt_old_postinstall_cmds
13266old_postuninstall_cmds=$lt_old_postuninstall_cmds
13267
13268# A C compiler.
13269LTCC=$lt_CC
13270
13271# LTCC compiler flags.
13272LTCFLAGS=$lt_CFLAGS
13273
13274# Take the output of nm and produce a listing of raw symbols and C names.
13275global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13276
13277# Transform the output of nm in a proper C declaration.
13278global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13279
13280# Transform the output of nm in a C name address pair.
13281global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13282
13283# Transform the output of nm in a C name address pair when lib prefix is needed.
13284global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13285
13286# The name of the directory that contains temporary libtool files.
13287objdir=$objdir
13288
13289# Shell to use when invoking shell scripts.
13290SHELL=$lt_SHELL
13291
13292# An echo program that does not interpret backslashes.
13293ECHO=$lt_ECHO
13294
13295# Used to examine libraries when file_magic_cmd begins with "file".
13296MAGIC_CMD=$MAGIC_CMD
13297
13298# Must we lock files when doing compilation?
13299need_locks=$lt_need_locks
13300
13301# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13302DSYMUTIL=$lt_DSYMUTIL
13303
13304# Tool to change global to local symbols on Mac OS X.
13305NMEDIT=$lt_NMEDIT
13306
13307# Tool to manipulate fat objects and archives on Mac OS X.
13308LIPO=$lt_LIPO
13309
13310# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13311OTOOL=$lt_OTOOL
13312
13313# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13314OTOOL64=$lt_OTOOL64
13315
13316# Old archive suffix (normally "a").
13317libext=$libext
13318
13319# Shared library suffix (normally ".so").
13320shrext_cmds=$lt_shrext_cmds
13321
13322# The commands to extract the exported symbol list from a shared archive.
13323extract_expsyms_cmds=$lt_extract_expsyms_cmds
13324
13325# Variables whose values should be saved in libtool wrapper scripts and
13326# restored at link time.
13327variables_saved_for_relink=$lt_variables_saved_for_relink
13328
13329# Do we need the "lib" prefix for modules?
13330need_lib_prefix=$need_lib_prefix
13331
13332# Do we need a version for libraries?
13333need_version=$need_version
13334
13335# Library versioning type.
13336version_type=$version_type
13337
13338# Shared library runtime path variable.
13339runpath_var=$runpath_var
13340
13341# Shared library path variable.
13342shlibpath_var=$shlibpath_var
13343
13344# Is shlibpath searched before the hard-coded library search path?
13345shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13346
13347# Format of library name prefix.
13348libname_spec=$lt_libname_spec
13349
13350# List of archive names.  First name is the real one, the rest are links.
13351# The last name is the one that the linker finds with -lNAME
13352library_names_spec=$lt_library_names_spec
13353
13354# The coded name of the library, if different from the real name.
13355soname_spec=$lt_soname_spec
13356
13357# Command to use after installation of a shared archive.
13358postinstall_cmds=$lt_postinstall_cmds
13359
13360# Command to use after uninstallation of a shared archive.
13361postuninstall_cmds=$lt_postuninstall_cmds
13362
13363# Commands used to finish a libtool library installation in a directory.
13364finish_cmds=$lt_finish_cmds
13365
13366# As "finish_cmds", except a single script fragment to be evaled but
13367# not shown.
13368finish_eval=$lt_finish_eval
13369
13370# Whether we should hardcode library paths into libraries.
13371hardcode_into_libs=$hardcode_into_libs
13372
13373# Compile-time system search path for libraries.
13374sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13375
13376# Run-time system search path for libraries.
13377sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13378
13379# Whether dlopen is supported.
13380dlopen_support=$enable_dlopen
13381
13382# Whether dlopen of programs is supported.
13383dlopen_self=$enable_dlopen_self
13384
13385# Whether dlopen of statically linked programs is supported.
13386dlopen_self_static=$enable_dlopen_self_static
13387
13388# Commands to strip libraries.
13389old_striplib=$lt_old_striplib
13390striplib=$lt_striplib
13391
13392
13393# The linker used to build libraries.
13394LD=$lt_LD
13395
13396# Commands used to build an old-style archive.
13397old_archive_cmds=$lt_old_archive_cmds
13398
13399# A language specific compiler.
13400CC=$lt_compiler
13401
13402# Is the compiler the GNU compiler?
13403with_gcc=$GCC
13404
13405# Compiler flag to turn off builtin functions.
13406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13407
13408# How to pass a linker flag through the compiler.
13409wl=$lt_lt_prog_compiler_wl
13410
13411# Additional compiler flags for building library objects.
13412pic_flag=$lt_lt_prog_compiler_pic
13413
13414# Compiler flag to prevent dynamic linking.
13415link_static_flag=$lt_lt_prog_compiler_static
13416
13417# Does compiler simultaneously support -c and -o options?
13418compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13419
13420# Whether or not to add -lc for building shared libraries.
13421build_libtool_need_lc=$archive_cmds_need_lc
13422
13423# Whether or not to disallow shared libs when runtime libs are static.
13424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13425
13426# Compiler flag to allow reflexive dlopens.
13427export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13428
13429# Compiler flag to generate shared objects directly from archives.
13430whole_archive_flag_spec=$lt_whole_archive_flag_spec
13431
13432# Whether the compiler copes with passing no objects directly.
13433compiler_needs_object=$lt_compiler_needs_object
13434
13435# Create an old-style archive from a shared archive.
13436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13437
13438# Create a temporary old-style archive to link instead of a shared archive.
13439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13440
13441# Commands used to build a shared archive.
13442archive_cmds=$lt_archive_cmds
13443archive_expsym_cmds=$lt_archive_expsym_cmds
13444
13445# Commands used to build a loadable module if different from building
13446# a shared archive.
13447module_cmds=$lt_module_cmds
13448module_expsym_cmds=$lt_module_expsym_cmds
13449
13450# Whether we are building with GNU ld or not.
13451with_gnu_ld=$lt_with_gnu_ld
13452
13453# Flag that allows shared libraries with undefined symbols to be built.
13454allow_undefined_flag=$lt_allow_undefined_flag
13455
13456# Flag that enforces no undefined symbols.
13457no_undefined_flag=$lt_no_undefined_flag
13458
13459# Flag to hardcode \$libdir into a binary during linking.
13460# This must work even if \$libdir does not exist
13461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13462
13463# If ld is used when linking, flag to hardcode \$libdir into a binary
13464# during linking.  This must work even if \$libdir does not exist.
13465hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13466
13467# Whether we need a single "-rpath" flag with a separated argument.
13468hardcode_libdir_separator=$lt_hardcode_libdir_separator
13469
13470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13471# DIR into the resulting binary.
13472hardcode_direct=$hardcode_direct
13473
13474# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13475# DIR into the resulting binary and the resulting library dependency is
13476# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13477# library is relocated.
13478hardcode_direct_absolute=$hardcode_direct_absolute
13479
13480# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13481# into the resulting binary.
13482hardcode_minus_L=$hardcode_minus_L
13483
13484# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13485# into the resulting binary.
13486hardcode_shlibpath_var=$hardcode_shlibpath_var
13487
13488# Set to "yes" if building a shared library automatically hardcodes DIR
13489# into the library and all subsequent libraries and executables linked
13490# against it.
13491hardcode_automatic=$hardcode_automatic
13492
13493# Set to yes if linker adds runtime paths of dependent libraries
13494# to runtime path list.
13495inherit_rpath=$inherit_rpath
13496
13497# Whether libtool must link a program against all its dependency libraries.
13498link_all_deplibs=$link_all_deplibs
13499
13500# Fix the shell variable \$srcfile for the compiler.
13501fix_srcfile_path=$lt_fix_srcfile_path
13502
13503# Set to "yes" if exported symbols are required.
13504always_export_symbols=$always_export_symbols
13505
13506# The commands to list exported symbols.
13507export_symbols_cmds=$lt_export_symbols_cmds
13508
13509# Symbols that should not be listed in the preloaded symbols.
13510exclude_expsyms=$lt_exclude_expsyms
13511
13512# Symbols that must always be exported.
13513include_expsyms=$lt_include_expsyms
13514
13515# Commands necessary for linking programs (against libraries) with templates.
13516prelink_cmds=$lt_prelink_cmds
13517
13518# Specify filename containing input files.
13519file_list_spec=$lt_file_list_spec
13520
13521# How to hardcode a shared library path into an executable.
13522hardcode_action=$hardcode_action
13523
13524# ### END LIBTOOL CONFIG
13525
13526_LT_EOF
13527
13528  case $host_os in
13529  aix3*)
13530    cat <<\_LT_EOF >> "$cfgfile"
13531# AIX sometimes has problems with the GCC collect2 program.  For some
13532# reason, if we set the COLLECT_NAMES environment variable, the problems
13533# vanish in a puff of smoke.
13534if test "X${COLLECT_NAMES+set}" != Xset; then
13535  COLLECT_NAMES=
13536  export COLLECT_NAMES
13537fi
13538_LT_EOF
13539    ;;
13540  esac
13541
13542
13543ltmain="$ac_aux_dir/ltmain.sh"
13544
13545
13546  # We use sed instead of cat because bash on DJGPP gets confused if
13547  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13548  # text mode, it properly converts lines to CR/LF.  This bash problem
13549  # is reportedly fixed, but why not run on old versions too?
13550  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13551    || (rm -f "$cfgfile"; exit 1)
13552
13553  case $xsi_shell in
13554  yes)
13555    cat << \_LT_EOF >> "$cfgfile"
13556
13557# func_dirname file append nondir_replacement
13558# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13559# otherwise set result to NONDIR_REPLACEMENT.
13560func_dirname ()
13561{
13562  case ${1} in
13563    */*) func_dirname_result="${1%/*}${2}" ;;
13564    *  ) func_dirname_result="${3}" ;;
13565  esac
13566}
13567
13568# func_basename file
13569func_basename ()
13570{
13571  func_basename_result="${1##*/}"
13572}
13573
13574# func_dirname_and_basename file append nondir_replacement
13575# perform func_basename and func_dirname in a single function
13576# call:
13577#   dirname:  Compute the dirname of FILE.  If nonempty,
13578#             add APPEND to the result, otherwise set result
13579#             to NONDIR_REPLACEMENT.
13580#             value returned in "$func_dirname_result"
13581#   basename: Compute filename of FILE.
13582#             value retuned in "$func_basename_result"
13583# Implementation must be kept synchronized with func_dirname
13584# and func_basename. For efficiency, we do not delegate to
13585# those functions but instead duplicate the functionality here.
13586func_dirname_and_basename ()
13587{
13588  case ${1} in
13589    */*) func_dirname_result="${1%/*}${2}" ;;
13590    *  ) func_dirname_result="${3}" ;;
13591  esac
13592  func_basename_result="${1##*/}"
13593}
13594
13595# func_stripname prefix suffix name
13596# strip PREFIX and SUFFIX off of NAME.
13597# PREFIX and SUFFIX must not contain globbing or regex special
13598# characters, hashes, percent signs, but SUFFIX may contain a leading
13599# dot (in which case that matches only a dot).
13600func_stripname ()
13601{
13602  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13603  # positional parameters, so assign one to ordinary parameter first.
13604  func_stripname_result=${3}
13605  func_stripname_result=${func_stripname_result#"${1}"}
13606  func_stripname_result=${func_stripname_result%"${2}"}
13607}
13608
13609# func_opt_split
13610func_opt_split ()
13611{
13612  func_opt_split_opt=${1%%=*}
13613  func_opt_split_arg=${1#*=}
13614}
13615
13616# func_lo2o object
13617func_lo2o ()
13618{
13619  case ${1} in
13620    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13621    *)    func_lo2o_result=${1} ;;
13622  esac
13623}
13624
13625# func_xform libobj-or-source
13626func_xform ()
13627{
13628  func_xform_result=${1%.*}.lo
13629}
13630
13631# func_arith arithmetic-term...
13632func_arith ()
13633{
13634  func_arith_result=$(( $* ))
13635}
13636
13637# func_len string
13638# STRING may not start with a hyphen.
13639func_len ()
13640{
13641  func_len_result=${#1}
13642}
13643
13644_LT_EOF
13645    ;;
13646  *) # Bourne compatible functions.
13647    cat << \_LT_EOF >> "$cfgfile"
13648
13649# func_dirname file append nondir_replacement
13650# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13651# otherwise set result to NONDIR_REPLACEMENT.
13652func_dirname ()
13653{
13654  # Extract subdirectory from the argument.
13655  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13656  if test "X$func_dirname_result" = "X${1}"; then
13657    func_dirname_result="${3}"
13658  else
13659    func_dirname_result="$func_dirname_result${2}"
13660  fi
13661}
13662
13663# func_basename file
13664func_basename ()
13665{
13666  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13667}
13668
13669
13670# func_stripname prefix suffix name
13671# strip PREFIX and SUFFIX off of NAME.
13672# PREFIX and SUFFIX must not contain globbing or regex special
13673# characters, hashes, percent signs, but SUFFIX may contain a leading
13674# dot (in which case that matches only a dot).
13675# func_strip_suffix prefix name
13676func_stripname ()
13677{
13678  case ${2} in
13679    .*) func_stripname_result=`$ECHO "X${3}" \
13680           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13681    *)  func_stripname_result=`$ECHO "X${3}" \
13682           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13683  esac
13684}
13685
13686# sed scripts:
13687my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13688my_sed_long_arg='1s/^-[^=]*=//'
13689
13690# func_opt_split
13691func_opt_split ()
13692{
13693  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13694  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13695}
13696
13697# func_lo2o object
13698func_lo2o ()
13699{
13700  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13701}
13702
13703# func_xform libobj-or-source
13704func_xform ()
13705{
13706  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13707}
13708
13709# func_arith arithmetic-term...
13710func_arith ()
13711{
13712  func_arith_result=`expr "$@"`
13713}
13714
13715# func_len string
13716# STRING may not start with a hyphen.
13717func_len ()
13718{
13719  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13720}
13721
13722_LT_EOF
13723esac
13724
13725case $lt_shell_append in
13726  yes)
13727    cat << \_LT_EOF >> "$cfgfile"
13728
13729# func_append var value
13730# Append VALUE to the end of shell variable VAR.
13731func_append ()
13732{
13733  eval "$1+=\$2"
13734}
13735_LT_EOF
13736    ;;
13737  *)
13738    cat << \_LT_EOF >> "$cfgfile"
13739
13740# func_append var value
13741# Append VALUE to the end of shell variable VAR.
13742func_append ()
13743{
13744  eval "$1=\$$1\$2"
13745}
13746
13747_LT_EOF
13748    ;;
13749  esac
13750
13751
13752  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13753    || (rm -f "$cfgfile"; exit 1)
13754
13755  mv -f "$cfgfile" "$ofile" ||
13756    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13757  chmod +x "$ofile"
13758
13759 ;;
13760
13761  esac
13762done # for ac_tag
13763
13764
13765as_fn_exit 0
13766_ACEOF
13767ac_clean_files=$ac_clean_files_save
13768
13769test $ac_write_fail = 0 ||
13770  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13771
13772
13773# configure is writing to config.log, and then calls config.status.
13774# config.status does its own redirection, appending to config.log.
13775# Unfortunately, on DOS this fails, as config.log is still kept open
13776# by configure, so config.status won't be able to write to it; its
13777# output is simply discarded.  So we exec the FD to /dev/null,
13778# effectively closing config.log, so it can be properly (re)opened and
13779# appended to by config.status.  When coming back to configure, we
13780# need to make the FD available again.
13781if test "$no_create" != yes; then
13782  ac_cs_success=:
13783  ac_config_status_args=
13784  test "$silent" = yes &&
13785    ac_config_status_args="$ac_config_status_args --quiet"
13786  exec 5>/dev/null
13787  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13788  exec 5>>config.log
13789  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13790  # would make configure fail if this is the last instruction.
13791  $ac_cs_success || as_fn_exit 1
13792fi
13793if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13795$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13796fi
13797
13798