1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pixman 0.40.0.
4#
5# Report bugs to <pixman@lists.freedesktop.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: pixman@lists.freedesktop.org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='pixman'
592PACKAGE_TARNAME='pixman'
593PACKAGE_VERSION='0.40.0'
594PACKAGE_STRING='pixman 0.40.0'
595PACKAGE_BUGREPORT='pixman@lists.freedesktop.org'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638HAVE_LIBPNG
639PNG_LIBS
640PNG_CFLAGS
641TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR
642PTHREAD_CFLAGS
643PTHREAD_LIBS
644PTHREAD_LDFLAGS
645HAVE_PTHREADS
646TOOLCHAIN_SUPPORTS__THREAD
647HAVE_GTK_FALSE
648HAVE_GTK_TRUE
649GTK_LIBS
650GTK_CFLAGS
651PKG_CONFIG_LIBDIR
652PKG_CONFIG_PATH
653PKG_CONFIG
654PIXMAN_GNUPLOT
655PIXMAN_TIMERS
656TESTPROGS_EXTRA_LDFLAGS
657USE_GCC_INLINE_ASM_FALSE
658USE_GCC_INLINE_ASM_TRUE
659USE_MIPS_DSPR2_FALSE
660USE_MIPS_DSPR2_TRUE
661USE_ARM_IWMMXT_FALSE
662USE_ARM_IWMMXT_TRUE
663USE_ARM_NEON_FALSE
664USE_ARM_NEON_TRUE
665USE_ARM_SIMD_FALSE
666USE_ARM_SIMD_TRUE
667USE_VMX_FALSE
668USE_VMX_TRUE
669VMX_CFLAGS
670SSSE3_CFLAGS
671SSE2_LDFLAGS
672SSE2_CFLAGS
673MMX_LDFLAGS
674MMX_CFLAGS
675IWMMXT_CFLAGS
676LS_CFLAGS
677USE_SSSE3_FALSE
678USE_SSSE3_TRUE
679USE_SSE2_FALSE
680USE_SSE2_TRUE
681USE_X86_MMX_FALSE
682USE_X86_MMX_TRUE
683USE_LOONGSON_MMI_FALSE
684USE_LOONGSON_MMI_TRUE
685OPENMP_CFLAGS
686LT_VERSION_INFO
687PIXMAN_VERSION_MICRO
688PIXMAN_VERSION_MINOR
689PIXMAN_VERSION_MAJOR
690CPP
691LT_SYS_LIBRARY_PATH
692OTOOL64
693OTOOL
694LIPO
695NMEDIT
696DSYMUTIL
697MANIFEST_TOOL
698RANLIB
699ac_ct_AR
700AR
701DLLTOOL
702OBJDUMP
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709EGREP
710GREP
711SED
712LIBTOOL
713am__fastdepCCAS_FALSE
714am__fastdepCCAS_TRUE
715CCASDEPMODE
716CCASFLAGS
717CCAS
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721am__nodep
722AMDEPBACKSLASH
723AMDEP_FALSE
724AMDEP_TRUE
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742AM_BACKSLASH
743AM_DEFAULT_VERBOSITY
744AM_DEFAULT_V
745AM_V
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL
807am__quote'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_silent_rules
812enable_dependency_tracking
813enable_shared
814enable_static
815with_pic
816enable_fast_install
817with_aix_soname
818with_gnu_ld
819with_sysroot
820enable_libtool_lock
821enable_openmp
822enable_loongson_mmi
823enable_mmx
824enable_sse2
825enable_ssse3
826enable_vmx
827enable_arm_simd
828enable_arm_neon
829enable_arm_iwmmxt
830enable_arm_iwmmxt2
831enable_mips_dspr2
832enable_gcc_inline_asm
833enable_static_testprogs
834enable_timers
835enable_gnuplot
836enable_gtk
837enable_libpng
838'
839      ac_precious_vars='build_alias
840host_alias
841target_alias
842CC
843CFLAGS
844LDFLAGS
845LIBS
846CPPFLAGS
847CCAS
848CCASFLAGS
849LT_SYS_LIBRARY_PATH
850CPP
851PKG_CONFIG
852PKG_CONFIG_PATH
853PKG_CONFIG_LIBDIR
854GTK_CFLAGS
855GTK_LIBS
856PNG_CFLAGS
857PNG_LIBS'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: $ac_useropt"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures pixman 0.40.0 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/pixman]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455Program names:
1456  --program-prefix=PREFIX            prepend PREFIX to installed program names
1457  --program-suffix=SUFFIX            append SUFFIX to installed program names
1458  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460System types:
1461  --build=BUILD     configure for building on BUILD [guessed]
1462  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467  case $ac_init_help in
1468     short | recursive ) echo "Configuration of pixman 0.40.0:";;
1469   esac
1470  cat <<\_ACEOF
1471
1472Optional Features:
1473  --disable-option-checking  ignore unrecognized --enable/--with options
1474  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476  --enable-silent-rules   less verbose build output (undo: "make V=1")
1477  --disable-silent-rules  verbose build output (undo: "make V=0")
1478  --enable-dependency-tracking
1479                          do not reject slow dependency extractors
1480  --disable-dependency-tracking
1481                          speeds up one-time build
1482  --enable-shared[=PKGS]  build shared libraries [default=yes]
1483  --enable-static[=PKGS]  build static libraries [default=yes]
1484  --enable-fast-install[=PKGS]
1485                          optimize for fast installation [default=yes]
1486  --disable-libtool-lock  avoid locking (might break parallel builds)
1487  --disable-openmp        do not use OpenMP
1488  --disable-loongson-mmi  disable Loongson MMI fast paths
1489  --disable-mmx           disable x86 MMX fast paths
1490  --disable-sse2          disable SSE2 fast paths
1491  --disable-ssse3         disable SSSE3 fast paths
1492  --disable-vmx           disable VMX fast paths
1493  --disable-arm-simd      disable ARM SIMD fast paths
1494  --disable-arm-neon      disable ARM NEON fast paths
1495  --disable-arm-iwmmxt    disable ARM IWMMXT fast paths
1496  --disable-arm-iwmmxt2   build ARM IWMMXT fast paths with -march=iwmmxt
1497                          instead of -march=iwmmxt2
1498  --disable-mips-dspr2    disable MIPS DSPr2 fast paths
1499  --disable-gcc-inline-asm
1500                          disable GNU-style inline assembler
1501  --enable-static-testprogs
1502                          build test programs as static binaries [default=no]
1503  --enable-timers         enable TIMER_BEGIN and TIMER_END macros [default=no]
1504  --enable-gnuplot        enable output of filters that can be piped to
1505                          gnuplot [default=no]
1506  --enable-gtk            enable tests using GTK+ [default=auto]
1507  --enable-libpng         Build support for libpng (default: auto)
1508
1509Optional Packages:
1510  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1513                          both]
1514  --with-aix-soname=aix|svr4|both
1515                          shared library versioning (aka "SONAME") variant to
1516                          provide on AIX, [default=aix].
1517  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1519                          compiler's sysroot if not specified).
1520
1521Some influential environment variables:
1522  CC          C compiler command
1523  CFLAGS      C compiler flags
1524  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525              nonstandard directory <lib dir>
1526  LIBS        libraries to pass to the linker, e.g. -l<library>
1527  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528              you have headers in a nonstandard directory <include dir>
1529  CCAS        assembler compiler command (defaults to CC)
1530  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1531  LT_SYS_LIBRARY_PATH
1532              User-defined run-time library search path.
1533  CPP         C preprocessor
1534  PKG_CONFIG  path to pkg-config utility
1535  PKG_CONFIG_PATH
1536              directories to add to pkg-config's search path
1537  PKG_CONFIG_LIBDIR
1538              path overriding pkg-config's built-in search path
1539  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1540  GTK_LIBS    linker flags for GTK, overriding pkg-config
1541  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1542  PNG_LIBS    linker flags for PNG, overriding pkg-config
1543
1544Use these variables to override the choices made by `configure' or to help
1545it to find libraries and programs with nonstandard names/locations.
1546
1547Report bugs to <pixman@lists.freedesktop.org>.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553  # If there are subdirs, report their specific --help.
1554  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555    test -d "$ac_dir" ||
1556      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557      continue
1558    ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564  # A ".." for each directory in $ac_dir_suffix.
1565  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566  case $ac_top_builddir_sub in
1567  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569  esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577  .)  # We are building in place.
1578    ac_srcdir=.
1579    ac_top_srcdir=$ac_top_builddir_sub
1580    ac_abs_top_srcdir=$ac_pwd ;;
1581  [\\/]* | ?:[\\/]* )  # Absolute name.
1582    ac_srcdir=$srcdir$ac_dir_suffix;
1583    ac_top_srcdir=$srcdir
1584    ac_abs_top_srcdir=$srcdir ;;
1585  *) # Relative name.
1586    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587    ac_top_srcdir=$ac_top_build_prefix$srcdir
1588    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592    cd "$ac_dir" || { ac_status=$?; continue; }
1593    # Check for guested configure.
1594    if test -f "$ac_srcdir/configure.gnu"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597    elif test -f "$ac_srcdir/configure"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure" --help=recursive
1600    else
1601      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602    fi || ac_status=$?
1603    cd "$ac_pwd" || { ac_status=$?; break; }
1604  done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609  cat <<\_ACEOF
1610pixman configure 0.40.0
1611generated by GNU Autoconf 2.69
1612
1613Copyright (C) 2012 Free Software Foundation, Inc.
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616_ACEOF
1617  exit
1618fi
1619
1620## ------------------------ ##
1621## Autoconf initialization. ##
1622## ------------------------ ##
1623
1624# ac_fn_c_try_compile LINENO
1625# --------------------------
1626# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_compile ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  rm -f conftest.$ac_objext
1631  if { { ac_try="$ac_compile"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_compile") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } && {
1647	 test -z "$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       } && test -s conftest.$ac_objext; then :
1650  ac_retval=0
1651else
1652  $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655	ac_retval=1
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_compile
1661
1662# ac_fn_c_try_link LINENO
1663# -----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_link ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  rm -f conftest.$ac_objext conftest$ac_exeext
1669  if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_link") 2>conftest.err
1677  ac_status=$?
1678  if test -s conftest.err; then
1679    grep -v '^ *+' conftest.err >conftest.er1
1680    cat conftest.er1 >&5
1681    mv -f conftest.er1 conftest.err
1682  fi
1683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684  test $ac_status = 0; } && {
1685	 test -z "$ac_c_werror_flag" ||
1686	 test ! -s conftest.err
1687       } && test -s conftest$ac_exeext && {
1688	 test "$cross_compiling" = yes ||
1689	 test -x conftest$ac_exeext
1690       }; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696	ac_retval=1
1697fi
1698  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700  # interfere with the next link command; also delete a directory that is
1701  # left behind by Apple's compiler.  We do this before executing the actions.
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_link
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
1717if eval \${$3+:} false; then :
1718  $as_echo_n "(cached) " >&6
1719else
1720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726  eval "$3=yes"
1727else
1728  eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_try_cpp LINENO
1740# ----------------------
1741# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_cpp ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  if { { ac_try="$ac_cpp conftest.$ac_ext"
1746case "(($ac_try" in
1747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748  *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753  ac_status=$?
1754  if test -s conftest.err; then
1755    grep -v '^ *+' conftest.err >conftest.er1
1756    cat conftest.er1 >&5
1757    mv -f conftest.er1 conftest.err
1758  fi
1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760  test $ac_status = 0; } > conftest.i && {
1761	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762	 test ! -s conftest.err
1763       }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769    ac_retval=1
1770fi
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772  as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_cpp
1775
1776# ac_fn_c_try_run LINENO
1777# ----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779# that executables *can* be run.
1780ac_fn_c_try_run ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786  *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790  (eval "$ac_link") 2>&5
1791  ac_status=$?
1792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794  { { case "(($ac_try" in
1795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796  *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800  (eval "$ac_try") 2>&5
1801  ac_status=$?
1802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803  test $ac_status = 0; }; }; then :
1804  ac_retval=0
1805else
1806  $as_echo "$as_me: program exited with status $ac_status" >&5
1807       $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810       ac_retval=$ac_status
1811fi
1812  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814  as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_run
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836    which can conflict with char $2 (); below.
1837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838    <limits.h> exists even on freestanding compilers.  */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849   Use char because int might match the return type of a GCC
1850   builtin and then its argument prototype would still apply.  */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856    to always fail with ENOSYS.  Some functions are actually named
1857    something starting with __ and the normal name is an alias.  */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866  ;
1867  return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871  eval "$3=yes"
1872else
1873  eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876    conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_func
1884
1885# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1886# --------------------------------------------
1887# Tries to find the compile-time value of EXPR in a program that includes
1888# INCLUDES, setting VAR accordingly. Returns whether the value could be
1889# computed
1890ac_fn_c_compute_int ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if test "$cross_compiling" = yes; then
1894    # Depending upon the size, compute the lo and hi bounds.
1895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898int
1899main ()
1900{
1901static int test_array [1 - 2 * !(($2) >= 0)];
1902test_array [0] = 0;
1903return test_array [0];
1904
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910  ac_lo=0 ac_mid=0
1911  while :; do
1912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1919test_array [0] = 0;
1920return test_array [0];
1921
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927  ac_hi=$ac_mid; break
1928else
1929  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1930			if test $ac_lo -le $ac_mid; then
1931			  ac_lo= ac_hi=
1932			  break
1933			fi
1934			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937  done
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941$4
1942int
1943main ()
1944{
1945static int test_array [1 - 2 * !(($2) < 0)];
1946test_array [0] = 0;
1947return test_array [0];
1948
1949  ;
1950  return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954  ac_hi=-1 ac_mid=-1
1955  while :; do
1956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h.  */
1958$4
1959int
1960main ()
1961{
1962static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1963test_array [0] = 0;
1964return test_array [0];
1965
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971  ac_lo=$ac_mid; break
1972else
1973  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1974			if test $ac_mid -le $ac_hi; then
1975			  ac_lo= ac_hi=
1976			  break
1977			fi
1978			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981  done
1982else
1983  ac_lo= ac_hi=
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988# Binary search between lo and hi bounds.
1989while test "x$ac_lo" != "x$ac_hi"; do
1990  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993$4
1994int
1995main ()
1996{
1997static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1998test_array [0] = 0;
1999return test_array [0];
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006  ac_hi=$ac_mid
2007else
2008  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011done
2012case $ac_lo in #((
2013?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2014'') ac_retval=1 ;;
2015esac
2016  else
2017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020static long int longval () { return $2; }
2021static unsigned long int ulongval () { return $2; }
2022#include <stdio.h>
2023#include <stdlib.h>
2024int
2025main ()
2026{
2027
2028  FILE *f = fopen ("conftest.val", "w");
2029  if (! f)
2030    return 1;
2031  if (($2) < 0)
2032    {
2033      long int i = longval ();
2034      if (i != ($2))
2035	return 1;
2036      fprintf (f, "%ld", i);
2037    }
2038  else
2039    {
2040      unsigned long int i = ulongval ();
2041      if (i != ($2))
2042	return 1;
2043      fprintf (f, "%lu", i);
2044    }
2045  /* Do not output a trailing newline, as this causes \r\n confusion
2046     on some platforms.  */
2047  return ferror (f) || fclose (f) != 0;
2048
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_run "$LINENO"; then :
2054  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2055else
2056  ac_retval=1
2057fi
2058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2059  conftest.$ac_objext conftest.beam conftest.$ac_ext
2060rm -f conftest.val
2061
2062  fi
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064  as_fn_set_status $ac_retval
2065
2066} # ac_fn_c_compute_int
2067
2068# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069# ---------------------------------------------
2070# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2071# accordingly.
2072ac_fn_c_check_decl ()
2073{
2074  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075  as_decl_name=`echo $2|sed 's/ *(.*//'`
2076  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079if eval \${$3+:} false; then :
2080  $as_echo_n "(cached) " >&6
2081else
2082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h.  */
2084$4
2085int
2086main ()
2087{
2088#ifndef $as_decl_name
2089#ifdef __cplusplus
2090  (void) $as_decl_use;
2091#else
2092  (void) $as_decl_name;
2093#endif
2094#endif
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101  eval "$3=yes"
2102else
2103  eval "$3=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107eval ac_res=\$$3
2108	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112} # ac_fn_c_check_decl
2113
2114# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2115# -------------------------------------------------------
2116# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117# the include files in INCLUDES and setting the cache variable VAR
2118# accordingly.
2119ac_fn_c_check_header_mongrel ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  if eval \${$3+:} false; then :
2123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124$as_echo_n "checking for $2... " >&6; }
2125if eval \${$3+:} false; then :
2126  $as_echo_n "(cached) " >&6
2127fi
2128eval ac_res=\$$3
2129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131else
2132  # Is the header compilable?
2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134$as_echo_n "checking $2 usability... " >&6; }
2135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138#include <$2>
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  ac_header_compiler=yes
2142else
2143  ac_header_compiler=no
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147$as_echo "$ac_header_compiler" >&6; }
2148
2149# Is the header present?
2150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151$as_echo_n "checking $2 presence... " >&6; }
2152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154#include <$2>
2155_ACEOF
2156if ac_fn_c_try_cpp "$LINENO"; then :
2157  ac_header_preproc=yes
2158else
2159  ac_header_preproc=no
2160fi
2161rm -f conftest.err conftest.i conftest.$ac_ext
2162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163$as_echo "$ac_header_preproc" >&6; }
2164
2165# So?  What about this header?
2166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2167  yes:no: )
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172    ;;
2173  no:yes:* )
2174    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2177$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2178    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2181$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184( $as_echo "## ------------------------------------------- ##
2185## Report this to pixman@lists.freedesktop.org ##
2186## ------------------------------------------- ##"
2187     ) | sed "s/^/$as_me: WARNING:     /" >&2
2188    ;;
2189esac
2190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191$as_echo_n "checking for $2... " >&6; }
2192if eval \${$3+:} false; then :
2193  $as_echo_n "(cached) " >&6
2194else
2195  eval "$3=\$ac_header_compiler"
2196fi
2197eval ac_res=\$$3
2198	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199$as_echo "$ac_res" >&6; }
2200fi
2201  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203} # ac_fn_c_check_header_mongrel
2204cat >config.log <<_ACEOF
2205This file contains any messages produced by compilers while
2206running configure, to aid debugging if configure makes a mistake.
2207
2208It was created by pixman $as_me 0.40.0, which was
2209generated by GNU Autoconf 2.69.  Invocation command line was
2210
2211  $ $0 $@
2212
2213_ACEOF
2214exec 5>>config.log
2215{
2216cat <<_ASUNAME
2217## --------- ##
2218## Platform. ##
2219## --------- ##
2220
2221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2222uname -m = `(uname -m) 2>/dev/null || echo unknown`
2223uname -r = `(uname -r) 2>/dev/null || echo unknown`
2224uname -s = `(uname -s) 2>/dev/null || echo unknown`
2225uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226
2227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2228/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2229
2230/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2231/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2233/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2234/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2235/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2236/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2237
2238_ASUNAME
2239
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245    $as_echo "PATH: $as_dir"
2246  done
2247IFS=$as_save_IFS
2248
2249} >&5
2250
2251cat >&5 <<_ACEOF
2252
2253
2254## ----------- ##
2255## Core tests. ##
2256## ----------- ##
2257
2258_ACEOF
2259
2260
2261# Keep a trace of the command line.
2262# Strip out --no-create and --no-recursion so they do not pile up.
2263# Strip out --silent because we don't want to record it for future runs.
2264# Also quote any args containing shell meta-characters.
2265# Make two passes to allow for proper duplicate-argument suppression.
2266ac_configure_args=
2267ac_configure_args0=
2268ac_configure_args1=
2269ac_must_keep_next=false
2270for ac_pass in 1 2
2271do
2272  for ac_arg
2273  do
2274    case $ac_arg in
2275    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2276    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2277    | -silent | --silent | --silen | --sile | --sil)
2278      continue ;;
2279    *\'*)
2280      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2281    esac
2282    case $ac_pass in
2283    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284    2)
2285      as_fn_append ac_configure_args1 " '$ac_arg'"
2286      if test $ac_must_keep_next = true; then
2287	ac_must_keep_next=false # Got value, back to normal.
2288      else
2289	case $ac_arg in
2290	  *=* | --config-cache | -C | -disable-* | --disable-* \
2291	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2292	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2293	  | -with-* | --with-* | -without-* | --without-* | --x)
2294	    case "$ac_configure_args0 " in
2295	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2296	    esac
2297	    ;;
2298	  -* ) ac_must_keep_next=true ;;
2299	esac
2300      fi
2301      as_fn_append ac_configure_args " '$ac_arg'"
2302      ;;
2303    esac
2304  done
2305done
2306{ ac_configure_args0=; unset ac_configure_args0;}
2307{ ac_configure_args1=; unset ac_configure_args1;}
2308
2309# When interrupted or exit'd, cleanup temporary files, and complete
2310# config.log.  We remove comments because anyway the quotes in there
2311# would cause problems or look ugly.
2312# WARNING: Use '\'' to represent an apostrophe within the trap.
2313# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2314trap 'exit_status=$?
2315  # Save into config.log some information that might help in debugging.
2316  {
2317    echo
2318
2319    $as_echo "## ---------------- ##
2320## Cache variables. ##
2321## ---------------- ##"
2322    echo
2323    # The following way of writing the cache mishandles newlines in values,
2324(
2325  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2326    eval ac_val=\$$ac_var
2327    case $ac_val in #(
2328    *${as_nl}*)
2329      case $ac_var in #(
2330      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2332      esac
2333      case $ac_var in #(
2334      _ | IFS | as_nl) ;; #(
2335      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2336      *) { eval $ac_var=; unset $ac_var;} ;;
2337      esac ;;
2338    esac
2339  done
2340  (set) 2>&1 |
2341    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2342    *${as_nl}ac_space=\ *)
2343      sed -n \
2344	"s/'\''/'\''\\\\'\'''\''/g;
2345	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2346      ;; #(
2347    *)
2348      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2349      ;;
2350    esac |
2351    sort
2352)
2353    echo
2354
2355    $as_echo "## ----------------- ##
2356## Output variables. ##
2357## ----------------- ##"
2358    echo
2359    for ac_var in $ac_subst_vars
2360    do
2361      eval ac_val=\$$ac_var
2362      case $ac_val in
2363      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364      esac
2365      $as_echo "$ac_var='\''$ac_val'\''"
2366    done | sort
2367    echo
2368
2369    if test -n "$ac_subst_files"; then
2370      $as_echo "## ------------------- ##
2371## File substitutions. ##
2372## ------------------- ##"
2373      echo
2374      for ac_var in $ac_subst_files
2375      do
2376	eval ac_val=\$$ac_var
2377	case $ac_val in
2378	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379	esac
2380	$as_echo "$ac_var='\''$ac_val'\''"
2381      done | sort
2382      echo
2383    fi
2384
2385    if test -s confdefs.h; then
2386      $as_echo "## ----------- ##
2387## confdefs.h. ##
2388## ----------- ##"
2389      echo
2390      cat confdefs.h
2391      echo
2392    fi
2393    test "$ac_signal" != 0 &&
2394      $as_echo "$as_me: caught signal $ac_signal"
2395    $as_echo "$as_me: exit $exit_status"
2396  } >&5
2397  rm -f core *.core core.conftest.* &&
2398    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2399    exit $exit_status
2400' 0
2401for ac_signal in 1 2 13 15; do
2402  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403done
2404ac_signal=0
2405
2406# confdefs.h avoids OS command line length limits that DEFS can exceed.
2407rm -f -r conftest* confdefs.h
2408
2409$as_echo "/* confdefs.h */" > confdefs.h
2410
2411# Predefined preprocessor variables.
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_NAME "$PACKAGE_NAME"
2415_ACEOF
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_VERSION "$PACKAGE_VERSION"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_STRING "$PACKAGE_STRING"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_URL "$PACKAGE_URL"
2435_ACEOF
2436
2437
2438# Let the site file select an alternate cache file if it wants to.
2439# Prefer an explicitly selected file to automatically selected ones.
2440ac_site_file1=NONE
2441ac_site_file2=NONE
2442if test -n "$CONFIG_SITE"; then
2443  # We do not want a PATH search for config.site.
2444  case $CONFIG_SITE in #((
2445    -*)  ac_site_file1=./$CONFIG_SITE;;
2446    */*) ac_site_file1=$CONFIG_SITE;;
2447    *)   ac_site_file1=./$CONFIG_SITE;;
2448  esac
2449elif test "x$prefix" != xNONE; then
2450  ac_site_file1=$prefix/share/config.site
2451  ac_site_file2=$prefix/etc/config.site
2452else
2453  ac_site_file1=$ac_default_prefix/share/config.site
2454  ac_site_file2=$ac_default_prefix/etc/config.site
2455fi
2456for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457do
2458  test "x$ac_site_file" = xNONE && continue
2459  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2460    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2461$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2462    sed 's/^/| /' "$ac_site_file" >&5
2463    . "$ac_site_file" \
2464      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466as_fn_error $? "failed to load site script $ac_site_file
2467See \`config.log' for more details" "$LINENO" 5; }
2468  fi
2469done
2470
2471if test -r "$cache_file"; then
2472  # Some versions of bash will fail to source /dev/null (special files
2473  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2474  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2475    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2476$as_echo "$as_me: loading cache $cache_file" >&6;}
2477    case $cache_file in
2478      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2479      *)                      . "./$cache_file";;
2480    esac
2481  fi
2482else
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2484$as_echo "$as_me: creating cache $cache_file" >&6;}
2485  >$cache_file
2486fi
2487
2488# Check that the precious variables saved in the cache have kept the same
2489# value.
2490ac_cache_corrupted=false
2491for ac_var in $ac_precious_vars; do
2492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2493  eval ac_new_set=\$ac_env_${ac_var}_set
2494  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2495  eval ac_new_val=\$ac_env_${ac_var}_value
2496  case $ac_old_set,$ac_new_set in
2497    set,)
2498      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2499$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2500      ac_cache_corrupted=: ;;
2501    ,set)
2502      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2503$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2504      ac_cache_corrupted=: ;;
2505    ,);;
2506    *)
2507      if test "x$ac_old_val" != "x$ac_new_val"; then
2508	# differences in whitespace do not lead to failure.
2509	ac_old_val_w=`echo x $ac_old_val`
2510	ac_new_val_w=`echo x $ac_new_val`
2511	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2512	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2513$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2514	  ac_cache_corrupted=:
2515	else
2516	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2517$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2518	  eval $ac_var=\$ac_old_val
2519	fi
2520	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2521$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2522	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2523$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2524      fi;;
2525  esac
2526  # Pass precious variables to config.status.
2527  if test "$ac_new_set" = set; then
2528    case $ac_new_val in
2529    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2530    *) ac_arg=$ac_var=$ac_new_val ;;
2531    esac
2532    case " $ac_configure_args " in
2533      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2534      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535    esac
2536  fi
2537done
2538if $ac_cache_corrupted; then
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2542$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2543  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2544fi
2545## -------------------- ##
2546## Main body of script. ##
2547## -------------------- ##
2548
2549ac_ext=c
2550ac_cpp='$CPP $CPPFLAGS'
2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555
2556am__api_version='1.16'
2557
2558ac_aux_dir=
2559for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2560  if test -f "$ac_dir/install-sh"; then
2561    ac_aux_dir=$ac_dir
2562    ac_install_sh="$ac_aux_dir/install-sh -c"
2563    break
2564  elif test -f "$ac_dir/install.sh"; then
2565    ac_aux_dir=$ac_dir
2566    ac_install_sh="$ac_aux_dir/install.sh -c"
2567    break
2568  elif test -f "$ac_dir/shtool"; then
2569    ac_aux_dir=$ac_dir
2570    ac_install_sh="$ac_aux_dir/shtool install -c"
2571    break
2572  fi
2573done
2574if test -z "$ac_aux_dir"; then
2575  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2576fi
2577
2578# These three variables are undocumented and unsupported,
2579# and are intended to be withdrawn in a future Autoconf release.
2580# They can cause serious problems if a builder's source tree is in a directory
2581# whose full name contains unusual characters.
2582ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2583ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2584ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2585
2586
2587# Find a good install program.  We prefer a C program (faster),
2588# so one script is as good as another.  But avoid the broken or
2589# incompatible versions:
2590# SysV /etc/install, /usr/sbin/install
2591# SunOS /usr/etc/install
2592# IRIX /sbin/install
2593# AIX /bin/install
2594# AmigaOS /C/install, which installs bootblocks on floppy discs
2595# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2596# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2597# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2598# OS/2's system install, which has a completely different semantic
2599# ./install, which can be erroneously created by make from ./install.sh.
2600# Reject install programs that cannot install multiple files.
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2602$as_echo_n "checking for a BSD-compatible install... " >&6; }
2603if test -z "$INSTALL"; then
2604if ${ac_cv_path_install+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    # Account for people who put trailing slashes in PATH elements.
2613case $as_dir/ in #((
2614  ./ | .// | /[cC]/* | \
2615  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2616  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2617  /usr/ucb/* ) ;;
2618  *)
2619    # OSF1 and SCO ODT 3.0 have their own names for install.
2620    # Don't use installbsd from OSF since it installs stuff as root
2621    # by default.
2622    for ac_prog in ginstall scoinst install; do
2623      for ac_exec_ext in '' $ac_executable_extensions; do
2624	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2625	  if test $ac_prog = install &&
2626	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627	    # AIX install.  It has an incompatible calling convention.
2628	    :
2629	  elif test $ac_prog = install &&
2630	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631	    # program-specific install script used by HP pwplus--don't use.
2632	    :
2633	  else
2634	    rm -rf conftest.one conftest.two conftest.dir
2635	    echo one > conftest.one
2636	    echo two > conftest.two
2637	    mkdir conftest.dir
2638	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2639	      test -s conftest.one && test -s conftest.two &&
2640	      test -s conftest.dir/conftest.one &&
2641	      test -s conftest.dir/conftest.two
2642	    then
2643	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2644	      break 3
2645	    fi
2646	  fi
2647	fi
2648      done
2649    done
2650    ;;
2651esac
2652
2653  done
2654IFS=$as_save_IFS
2655
2656rm -rf conftest.one conftest.two conftest.dir
2657
2658fi
2659  if test "${ac_cv_path_install+set}" = set; then
2660    INSTALL=$ac_cv_path_install
2661  else
2662    # As a last resort, use the slow shell script.  Don't cache a
2663    # value for INSTALL within a source directory, because that will
2664    # break other packages using the cache if that directory is
2665    # removed, or if the value is a relative name.
2666    INSTALL=$ac_install_sh
2667  fi
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2670$as_echo "$INSTALL" >&6; }
2671
2672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2673# It thinks the first close brace ends the variable substitution.
2674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2675
2676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2677
2678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2679
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2681$as_echo_n "checking whether build environment is sane... " >&6; }
2682# Reject unsafe characters in $srcdir or the absolute working directory
2683# name.  Accept space and tab only in the latter.
2684am_lf='
2685'
2686case `pwd` in
2687  *[\\\"\#\$\&\'\`$am_lf]*)
2688    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2689esac
2690case $srcdir in
2691  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2692    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2693esac
2694
2695# Do 'set' in a subshell so we don't clobber the current shell's
2696# arguments.  Must try -L first in case configure is actually a
2697# symlink; some systems play weird games with the mod time of symlinks
2698# (eg FreeBSD returns the mod time of the symlink's containing
2699# directory).
2700if (
2701   am_has_slept=no
2702   for am_try in 1 2; do
2703     echo "timestamp, slept: $am_has_slept" > conftest.file
2704     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2705     if test "$*" = "X"; then
2706	# -L didn't work.
2707	set X `ls -t "$srcdir/configure" conftest.file`
2708     fi
2709     if test "$*" != "X $srcdir/configure conftest.file" \
2710	&& test "$*" != "X conftest.file $srcdir/configure"; then
2711
2712	# If neither matched, then we have a broken ls.  This can happen
2713	# if, for instance, CONFIG_SHELL is bash and it inherits a
2714	# broken ls alias from the environment.  This has actually
2715	# happened.  Such a system could not be considered "sane".
2716	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2717  alias in your environment" "$LINENO" 5
2718     fi
2719     if test "$2" = conftest.file || test $am_try -eq 2; then
2720       break
2721     fi
2722     # Just in case.
2723     sleep 1
2724     am_has_slept=yes
2725   done
2726   test "$2" = conftest.file
2727   )
2728then
2729   # Ok.
2730   :
2731else
2732   as_fn_error $? "newly created file is older than distributed files!
2733Check your system clock" "$LINENO" 5
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
2737# If we didn't sleep, we still need to ensure time stamps of config.status and
2738# generated files are strictly newer.
2739am_sleep_pid=
2740if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2741  ( sleep 1 ) &
2742  am_sleep_pid=$!
2743fi
2744
2745rm -f conftest.file
2746
2747test "$program_prefix" != NONE &&
2748  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2749# Use a double $ so make ignores it.
2750test "$program_suffix" != NONE &&
2751  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2752# Double any \ or $.
2753# By default was `s,x,x', remove it if useless.
2754ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2755program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2756
2757# Expand $ac_aux_dir to an absolute path.
2758am_aux_dir=`cd "$ac_aux_dir" && pwd`
2759
2760if test x"${MISSING+set}" != xset; then
2761  case $am_aux_dir in
2762  *\ * | *\	*)
2763    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2764  *)
2765    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2766  esac
2767fi
2768# Use eval to expand $SHELL
2769if eval "$MISSING --is-lightweight"; then
2770  am_missing_run="$MISSING "
2771else
2772  am_missing_run=
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2774$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2775fi
2776
2777if test x"${install_sh+set}" != xset; then
2778  case $am_aux_dir in
2779  *\ * | *\	*)
2780    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2781  *)
2782    install_sh="\${SHELL} $am_aux_dir/install-sh"
2783  esac
2784fi
2785
2786# Installed binaries are usually stripped using 'strip' when the user
2787# run "make install-strip".  However 'strip' might not be the right
2788# tool to use in cross-compilation environments, therefore Automake
2789# will honor the 'STRIP' environment variable to overrule this program.
2790if test "$cross_compiling" != no; then
2791  if test -n "$ac_tool_prefix"; then
2792  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2793set dummy ${ac_tool_prefix}strip; ac_word=$2
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795$as_echo_n "checking for $ac_word... " >&6; }
2796if ${ac_cv_prog_STRIP+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if test -n "$STRIP"; then
2800  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819STRIP=$ac_cv_prog_STRIP
2820if test -n "$STRIP"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2822$as_echo "$STRIP" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829fi
2830if test -z "$ac_cv_prog_STRIP"; then
2831  ac_ct_STRIP=$STRIP
2832  # Extract the first word of "strip", so it can be a program name with args.
2833set dummy strip; ac_word=$2
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$ac_ct_STRIP"; then
2840  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847    for ac_exec_ext in '' $ac_executable_extensions; do
2848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849    ac_cv_prog_ac_ct_STRIP="strip"
2850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851    break 2
2852  fi
2853done
2854  done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2860if test -n "$ac_ct_STRIP"; then
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2862$as_echo "$ac_ct_STRIP" >&6; }
2863else
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868  if test "x$ac_ct_STRIP" = x; then
2869    STRIP=":"
2870  else
2871    case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877    STRIP=$ac_ct_STRIP
2878  fi
2879else
2880  STRIP="$ac_cv_prog_STRIP"
2881fi
2882
2883fi
2884INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2885
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2887$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2888if test -z "$MKDIR_P"; then
2889  if ${ac_cv_path_mkdir+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_prog in mkdir gmkdir; do
2898	 for ac_exec_ext in '' $ac_executable_extensions; do
2899	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2900	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2901	     'mkdir (GNU coreutils) '* | \
2902	     'mkdir (coreutils) '* | \
2903	     'mkdir (fileutils) '4.1*)
2904	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2905	       break 3;;
2906	   esac
2907	 done
2908       done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913
2914  test -d ./--version && rmdir ./--version
2915  if test "${ac_cv_path_mkdir+set}" = set; then
2916    MKDIR_P="$ac_cv_path_mkdir -p"
2917  else
2918    # As a last resort, use the slow shell script.  Don't cache a
2919    # value for MKDIR_P within a source directory, because that will
2920    # break other packages using the cache if that directory is
2921    # removed, or if the value is a relative name.
2922    MKDIR_P="$ac_install_sh -d"
2923  fi
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2926$as_echo "$MKDIR_P" >&6; }
2927
2928for ac_prog in gawk mawk nawk awk
2929do
2930  # Extract the first word of "$ac_prog", so it can be a program name with args.
2931set dummy $ac_prog; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if ${ac_cv_prog_AWK+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$AWK"; then
2938  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947    ac_cv_prog_AWK="$ac_prog"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957AWK=$ac_cv_prog_AWK
2958if test -n "$AWK"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2960$as_echo "$AWK" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967  test -n "$AWK" && break
2968done
2969
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2971$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2972set x ${MAKE-make}
2973ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2974if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  cat >conftest.make <<\_ACEOF
2978SHELL = /bin/sh
2979all:
2980	@echo '@@@%%%=$(MAKE)=@@@%%%'
2981_ACEOF
2982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2983case `${MAKE-make} -f conftest.make 2>/dev/null` in
2984  *@@@%%%=?*=@@@%%%*)
2985    eval ac_cv_prog_make_${ac_make}_set=yes;;
2986  *)
2987    eval ac_cv_prog_make_${ac_make}_set=no;;
2988esac
2989rm -f conftest.make
2990fi
2991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993$as_echo "yes" >&6; }
2994  SET_MAKE=
2995else
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997$as_echo "no" >&6; }
2998  SET_MAKE="MAKE=${MAKE-make}"
2999fi
3000
3001rm -rf .tst 2>/dev/null
3002mkdir .tst 2>/dev/null
3003if test -d .tst; then
3004  am__leading_dot=.
3005else
3006  am__leading_dot=_
3007fi
3008rmdir .tst 2>/dev/null
3009
3010# Check whether --enable-silent-rules was given.
3011if test "${enable_silent_rules+set}" = set; then :
3012  enableval=$enable_silent_rules;
3013fi
3014
3015case $enable_silent_rules in # (((
3016  yes) AM_DEFAULT_VERBOSITY=0;;
3017   no) AM_DEFAULT_VERBOSITY=1;;
3018    *) AM_DEFAULT_VERBOSITY=1;;
3019esac
3020am_make=${MAKE-make}
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3022$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3023if ${am_cv_make_support_nested_variables+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if $as_echo 'TRUE=$(BAR$(V))
3027BAR0=false
3028BAR1=true
3029V=1
3030am__doit:
3031	@$(TRUE)
3032.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3033  am_cv_make_support_nested_variables=yes
3034else
3035  am_cv_make_support_nested_variables=no
3036fi
3037fi
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3039$as_echo "$am_cv_make_support_nested_variables" >&6; }
3040if test $am_cv_make_support_nested_variables = yes; then
3041    AM_V='$(V)'
3042  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3043else
3044  AM_V=$AM_DEFAULT_VERBOSITY
3045  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3046fi
3047AM_BACKSLASH='\'
3048
3049if test "`cd $srcdir && pwd`" != "`pwd`"; then
3050  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3051  # is not polluted with repeated "-I."
3052  am__isrc=' -I$(srcdir)'
3053  # test to see if srcdir already configured
3054  if test -f $srcdir/config.status; then
3055    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3056  fi
3057fi
3058
3059# test whether we have cygpath
3060if test -z "$CYGPATH_W"; then
3061  if (cygpath --version) >/dev/null 2>/dev/null; then
3062    CYGPATH_W='cygpath -w'
3063  else
3064    CYGPATH_W=echo
3065  fi
3066fi
3067
3068
3069# Define the identity of the package.
3070 PACKAGE='pixman'
3071 VERSION='0.40.0'
3072
3073
3074cat >>confdefs.h <<_ACEOF
3075#define PACKAGE "$PACKAGE"
3076_ACEOF
3077
3078
3079cat >>confdefs.h <<_ACEOF
3080#define VERSION "$VERSION"
3081_ACEOF
3082
3083# Some tools Automake needs.
3084
3085ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3086
3087
3088AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3089
3090
3091AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3092
3093
3094AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3095
3096
3097MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3098
3099# For better backward compatibility.  To be removed once Automake 1.9.x
3100# dies out for good.  For more background, see:
3101# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3102# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3103mkdir_p='$(MKDIR_P)'
3104
3105# We need awk for the "check" target (and possibly the TAP driver).  The
3106# system "awk" is bad on some platforms.
3107# Always define AMTAR for backward compatibility.  Yes, it's still used
3108# in the wild :-(  We should find a proper way to deprecate it ...
3109AMTAR='$${TAR-tar}'
3110
3111
3112# We'll loop over all known methods to create a tar archive until one works.
3113_am_tools='gnutar  pax cpio none'
3114
3115am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3116
3117
3118
3119
3120
3121
3122# POSIX will say in a future version that running "rm -f" with no argument
3123# is OK; and we want to be able to make that assumption in our Makefile
3124# recipes.  So use an aggressive probe to check that the usage we want is
3125# actually supported "in the wild" to an acceptable degree.
3126# See automake bug#10828.
3127# To make any issue more visible, cause the running configure to be aborted
3128# by default if the 'rm' program in use doesn't match our expectations; the
3129# user can still override this though.
3130if rm -f && rm -fr && rm -rf; then : OK; else
3131  cat >&2 <<'END'
3132Oops!
3133
3134Your 'rm' program seems unable to run without file operands specified
3135on the command line, even when the '-f' option is present.  This is contrary
3136to the behaviour of most rm programs out there, and not conforming with
3137the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3138
3139Please tell bug-automake@gnu.org about your system, including the value
3140of your $PATH and any error possibly output before this message.  This
3141can help us improve future automake versions.
3142
3143END
3144  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3145    echo 'Configuration will proceed anyway, since you have set the' >&2
3146    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3147    echo >&2
3148  else
3149    cat >&2 <<'END'
3150Aborting the configuration process, to ensure you take notice of the issue.
3151
3152You can download and install GNU coreutils to get an 'rm' implementation
3153that behaves properly: <https://www.gnu.org/software/coreutils/>.
3154
3155If you want to complete the configuration process using your problematic
3156'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3157to "yes", and re-run configure.
3158
3159END
3160    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3161  fi
3162fi
3163
3164
3165# Suppress verbose compile lines
3166# Check whether --enable-silent-rules was given.
3167if test "${enable_silent_rules+set}" = set; then :
3168  enableval=$enable_silent_rules;
3169fi
3170
3171case $enable_silent_rules in # (((
3172  yes) AM_DEFAULT_VERBOSITY=0;;
3173   no) AM_DEFAULT_VERBOSITY=1;;
3174    *) AM_DEFAULT_VERBOSITY=0;;
3175esac
3176am_make=${MAKE-make}
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3178$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3179if ${am_cv_make_support_nested_variables+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if $as_echo 'TRUE=$(BAR$(V))
3183BAR0=false
3184BAR1=true
3185V=1
3186am__doit:
3187	@$(TRUE)
3188.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3189  am_cv_make_support_nested_variables=yes
3190else
3191  am_cv_make_support_nested_variables=no
3192fi
3193fi
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3195$as_echo "$am_cv_make_support_nested_variables" >&6; }
3196if test $am_cv_make_support_nested_variables = yes; then
3197    AM_V='$(V)'
3198  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3199else
3200  AM_V=$AM_DEFAULT_VERBOSITY
3201  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3202fi
3203AM_BACKSLASH='\'
3204
3205
3206ac_config_headers="$ac_config_headers config.h"
3207
3208
3209# Make sure we can run config.sub.
3210$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3211  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3212
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3214$as_echo_n "checking build system type... " >&6; }
3215if ${ac_cv_build+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  ac_build_alias=$build_alias
3219test "x$ac_build_alias" = x &&
3220  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3221test "x$ac_build_alias" = x &&
3222  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3223ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3224  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3225
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3228$as_echo "$ac_cv_build" >&6; }
3229case $ac_cv_build in
3230*-*-*) ;;
3231*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3232esac
3233build=$ac_cv_build
3234ac_save_IFS=$IFS; IFS='-'
3235set x $ac_cv_build
3236shift
3237build_cpu=$1
3238build_vendor=$2
3239shift; shift
3240# Remember, the first character of IFS is used to create $*,
3241# except with old shells:
3242build_os=$*
3243IFS=$ac_save_IFS
3244case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3245
3246
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3248$as_echo_n "checking host system type... " >&6; }
3249if ${ac_cv_host+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test "x$host_alias" = x; then
3253  ac_cv_host=$ac_cv_build
3254else
3255  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3256    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257fi
3258
3259fi
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3261$as_echo "$ac_cv_host" >&6; }
3262case $ac_cv_host in
3263*-*-*) ;;
3264*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3265esac
3266host=$ac_cv_host
3267ac_save_IFS=$IFS; IFS='-'
3268set x $ac_cv_host
3269shift
3270host_cpu=$1
3271host_vendor=$2
3272shift; shift
3273# Remember, the first character of IFS is used to create $*,
3274# except with old shells:
3275host_os=$*
3276IFS=$ac_save_IFS
3277case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3278
3279
3280
3281test_CFLAGS=${CFLAGS+set} # We may override autoconf default CFLAGS.
3282
3283ac_ext=c
3284ac_cpp='$CPP $CPPFLAGS'
3285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288if test -n "$ac_tool_prefix"; then
3289  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3290set dummy ${ac_tool_prefix}gcc; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if ${ac_cv_prog_CC+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test -n "$CC"; then
3297  ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310done
3311  done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326fi
3327if test -z "$ac_cv_prog_CC"; then
3328  ac_ct_CC=$CC
3329  # Extract the first word of "gcc", so it can be a program name with args.
3330set dummy gcc; ac_word=$2
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
3333if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  if test -n "$ac_ct_CC"; then
3337  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344    for ac_exec_ext in '' $ac_executable_extensions; do
3345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346    ac_cv_prog_ac_ct_CC="gcc"
3347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348    break 2
3349  fi
3350done
3351  done
3352IFS=$as_save_IFS
3353
3354fi
3355fi
3356ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357if test -n "$ac_ct_CC"; then
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359$as_echo "$ac_ct_CC" >&6; }
3360else
3361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362$as_echo "no" >&6; }
3363fi
3364
3365  if test "x$ac_ct_CC" = x; then
3366    CC=""
3367  else
3368    case $cross_compiling:$ac_tool_warned in
3369yes:)
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372ac_tool_warned=yes ;;
3373esac
3374    CC=$ac_ct_CC
3375  fi
3376else
3377  CC="$ac_cv_prog_CC"
3378fi
3379
3380if test -z "$CC"; then
3381          if test -n "$ac_tool_prefix"; then
3382    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3383set dummy ${ac_tool_prefix}cc; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if ${ac_cv_prog_CC+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  if test -n "$CC"; then
3390  ac_cv_prog_CC="$CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  test -z "$as_dir" && as_dir=.
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399    ac_cv_prog_CC="${ac_tool_prefix}cc"
3400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409CC=$ac_cv_prog_CC
3410if test -n "$CC"; then
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412$as_echo "$CC" >&6; }
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418
3419  fi
3420fi
3421if test -z "$CC"; then
3422  # Extract the first word of "cc", so it can be a program name with args.
3423set dummy cc; ac_word=$2
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425$as_echo_n "checking for $ac_word... " >&6; }
3426if ${ac_cv_prog_CC+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  if test -n "$CC"; then
3430  ac_cv_prog_CC="$CC" # Let the user override the test.
3431else
3432  ac_prog_rejected=no
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436  IFS=$as_save_IFS
3437  test -z "$as_dir" && as_dir=.
3438    for ac_exec_ext in '' $ac_executable_extensions; do
3439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3441       ac_prog_rejected=yes
3442       continue
3443     fi
3444    ac_cv_prog_CC="cc"
3445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446    break 2
3447  fi
3448done
3449  done
3450IFS=$as_save_IFS
3451
3452if test $ac_prog_rejected = yes; then
3453  # We found a bogon in the path, so make sure we never use it.
3454  set dummy $ac_cv_prog_CC
3455  shift
3456  if test $# != 0; then
3457    # We chose a different compiler from the bogus one.
3458    # However, it has the same basename, so the bogon will be chosen
3459    # first if we set CC to just the basename; use the full file name.
3460    shift
3461    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3462  fi
3463fi
3464fi
3465fi
3466CC=$ac_cv_prog_CC
3467if test -n "$CC"; then
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469$as_echo "$CC" >&6; }
3470else
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472$as_echo "no" >&6; }
3473fi
3474
3475
3476fi
3477if test -z "$CC"; then
3478  if test -n "$ac_tool_prefix"; then
3479  for ac_prog in cl.exe
3480  do
3481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if ${ac_cv_prog_CC+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  if test -n "$CC"; then
3489  ac_cv_prog_CC="$CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494  IFS=$as_save_IFS
3495  test -z "$as_dir" && as_dir=.
3496    for ac_exec_ext in '' $ac_executable_extensions; do
3497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503  done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511$as_echo "$CC" >&6; }
3512else
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518    test -n "$CC" && break
3519  done
3520fi
3521if test -z "$CC"; then
3522  ac_ct_CC=$CC
3523  for ac_prog in cl.exe
3524do
3525  # Extract the first word of "$ac_prog", so it can be a program name with args.
3526set dummy $ac_prog; ac_word=$2
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528$as_echo_n "checking for $ac_word... " >&6; }
3529if ${ac_cv_prog_ac_ct_CC+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  if test -n "$ac_ct_CC"; then
3533  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534else
3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538  IFS=$as_save_IFS
3539  test -z "$as_dir" && as_dir=.
3540    for ac_exec_ext in '' $ac_executable_extensions; do
3541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542    ac_cv_prog_ac_ct_CC="$ac_prog"
3543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544    break 2
3545  fi
3546done
3547  done
3548IFS=$as_save_IFS
3549
3550fi
3551fi
3552ac_ct_CC=$ac_cv_prog_ac_ct_CC
3553if test -n "$ac_ct_CC"; then
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3555$as_echo "$ac_ct_CC" >&6; }
3556else
3557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558$as_echo "no" >&6; }
3559fi
3560
3561
3562  test -n "$ac_ct_CC" && break
3563done
3564
3565  if test "x$ac_ct_CC" = x; then
3566    CC=""
3567  else
3568    case $cross_compiling:$ac_tool_warned in
3569yes:)
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572ac_tool_warned=yes ;;
3573esac
3574    CC=$ac_ct_CC
3575  fi
3576fi
3577
3578fi
3579
3580
3581test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583as_fn_error $? "no acceptable C compiler found in \$PATH
3584See \`config.log' for more details" "$LINENO" 5; }
3585
3586# Provide some information about the compiler.
3587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3588set X $ac_compile
3589ac_compiler=$2
3590for ac_option in --version -v -V -qversion; do
3591  { { ac_try="$ac_compiler $ac_option >&5"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3599  ac_status=$?
3600  if test -s conftest.err; then
3601    sed '10a\
3602... rest of stderr output deleted ...
3603         10q' conftest.err >conftest.er1
3604    cat conftest.er1 >&5
3605  fi
3606  rm -f conftest.er1 conftest.err
3607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608  test $ac_status = 0; }
3609done
3610
3611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613
3614int
3615main ()
3616{
3617
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622ac_clean_files_save=$ac_clean_files
3623ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3624# Try to create an executable without -o first, disregard a.out.
3625# It will help us diagnose broken compilers, and finding out an intuition
3626# of exeext.
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3628$as_echo_n "checking whether the C compiler works... " >&6; }
3629ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3630
3631# The possible output files:
3632ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3633
3634ac_rmfiles=
3635for ac_file in $ac_files
3636do
3637  case $ac_file in
3638    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3639    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3640  esac
3641done
3642rm -f $ac_rmfiles
3643
3644if { { ac_try="$ac_link_default"
3645case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651  (eval "$ac_link_default") 2>&5
3652  ac_status=$?
3653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654  test $ac_status = 0; }; then :
3655  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3656# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3657# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3658# so that the user can short-circuit this test for compilers unknown to
3659# Autoconf.
3660for ac_file in $ac_files ''
3661do
3662  test -f "$ac_file" || continue
3663  case $ac_file in
3664    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3665	;;
3666    [ab].out )
3667	# We found the default executable, but exeext='' is most
3668	# certainly right.
3669	break;;
3670    *.* )
3671	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3672	then :; else
3673	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3674	fi
3675	# We set ac_cv_exeext here because the later test for it is not
3676	# safe: cross compilers may not add the suffix if given an `-o'
3677	# argument, so we may need to know it at that point already.
3678	# Even if this section looks crufty: it has the advantage of
3679	# actually working.
3680	break;;
3681    * )
3682	break;;
3683  esac
3684done
3685test "$ac_cv_exeext" = no && ac_cv_exeext=
3686
3687else
3688  ac_file=''
3689fi
3690if test -z "$ac_file"; then :
3691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692$as_echo "no" >&6; }
3693$as_echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698as_fn_error 77 "C compiler cannot create executables
3699See \`config.log' for more details" "$LINENO" 5; }
3700else
3701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702$as_echo "yes" >&6; }
3703fi
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3705$as_echo_n "checking for C compiler default output file name... " >&6; }
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3707$as_echo "$ac_file" >&6; }
3708ac_exeext=$ac_cv_exeext
3709
3710rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3711ac_clean_files=$ac_clean_files_save
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3713$as_echo_n "checking for suffix of executables... " >&6; }
3714if { { ac_try="$ac_link"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721  (eval "$ac_link") 2>&5
3722  ac_status=$?
3723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724  test $ac_status = 0; }; then :
3725  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3726# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3727# work properly (i.e., refer to `conftest.exe'), while it won't with
3728# `rm'.
3729for ac_file in conftest.exe conftest conftest.*; do
3730  test -f "$ac_file" || continue
3731  case $ac_file in
3732    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3733    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3734	  break;;
3735    * ) break;;
3736  esac
3737done
3738else
3739  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3742See \`config.log' for more details" "$LINENO" 5; }
3743fi
3744rm -f conftest conftest$ac_cv_exeext
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3746$as_echo "$ac_cv_exeext" >&6; }
3747
3748rm -f conftest.$ac_ext
3749EXEEXT=$ac_cv_exeext
3750ac_exeext=$EXEEXT
3751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753#include <stdio.h>
3754int
3755main ()
3756{
3757FILE *f = fopen ("conftest.out", "w");
3758 return ferror (f) || fclose (f) != 0;
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764ac_clean_files="$ac_clean_files conftest.out"
3765# Check that the compiler produces executables we can run.  If not, either
3766# the compiler is broken, or we cross compile.
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3768$as_echo_n "checking whether we are cross compiling... " >&6; }
3769if test "$cross_compiling" != yes; then
3770  { { ac_try="$ac_link"
3771case "(($ac_try" in
3772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773  *) ac_try_echo=$ac_try;;
3774esac
3775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776$as_echo "$ac_try_echo"; } >&5
3777  (eval "$ac_link") 2>&5
3778  ac_status=$?
3779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780  test $ac_status = 0; }
3781  if { ac_try='./conftest$ac_cv_exeext'
3782  { { case "(($ac_try" in
3783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784  *) ac_try_echo=$ac_try;;
3785esac
3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787$as_echo "$ac_try_echo"; } >&5
3788  (eval "$ac_try") 2>&5
3789  ac_status=$?
3790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791  test $ac_status = 0; }; }; then
3792    cross_compiling=no
3793  else
3794    if test "$cross_compiling" = maybe; then
3795	cross_compiling=yes
3796    else
3797	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799as_fn_error $? "cannot run C compiled programs.
3800If you meant to cross compile, use \`--host'.
3801See \`config.log' for more details" "$LINENO" 5; }
3802    fi
3803  fi
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3806$as_echo "$cross_compiling" >&6; }
3807
3808rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3809ac_clean_files=$ac_clean_files_save
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3811$as_echo_n "checking for suffix of object files... " >&6; }
3812if ${ac_cv_objext+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817
3818int
3819main ()
3820{
3821
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826rm -f conftest.o conftest.obj
3827if { { ac_try="$ac_compile"
3828case "(($ac_try" in
3829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830  *) ac_try_echo=$ac_try;;
3831esac
3832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833$as_echo "$ac_try_echo"; } >&5
3834  (eval "$ac_compile") 2>&5
3835  ac_status=$?
3836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837  test $ac_status = 0; }; then :
3838  for ac_file in conftest.o conftest.obj conftest.*; do
3839  test -f "$ac_file" || continue;
3840  case $ac_file in
3841    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3842    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3843       break;;
3844  esac
3845done
3846else
3847  $as_echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852as_fn_error $? "cannot compute suffix of object files: cannot compile
3853See \`config.log' for more details" "$LINENO" 5; }
3854fi
3855rm -f conftest.$ac_cv_objext conftest.$ac_ext
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3858$as_echo "$ac_cv_objext" >&6; }
3859OBJEXT=$ac_cv_objext
3860ac_objext=$OBJEXT
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3862$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3863if ${ac_cv_c_compiler_gnu+:} false; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h.  */
3868
3869int
3870main ()
3871{
3872#ifndef __GNUC__
3873       choke me
3874#endif
3875
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880if ac_fn_c_try_compile "$LINENO"; then :
3881  ac_compiler_gnu=yes
3882else
3883  ac_compiler_gnu=no
3884fi
3885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886ac_cv_c_compiler_gnu=$ac_compiler_gnu
3887
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3890$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3891if test $ac_compiler_gnu = yes; then
3892  GCC=yes
3893else
3894  GCC=
3895fi
3896ac_test_CFLAGS=${CFLAGS+set}
3897ac_save_CFLAGS=$CFLAGS
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3899$as_echo_n "checking whether $CC accepts -g... " >&6; }
3900if ${ac_cv_prog_cc_g+:} false; then :
3901  $as_echo_n "(cached) " >&6
3902else
3903  ac_save_c_werror_flag=$ac_c_werror_flag
3904   ac_c_werror_flag=yes
3905   ac_cv_prog_cc_g=no
3906   CFLAGS="-g"
3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918if ac_fn_c_try_compile "$LINENO"; then :
3919  ac_cv_prog_cc_g=yes
3920else
3921  CFLAGS=""
3922      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924
3925int
3926main ()
3927{
3928
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933if ac_fn_c_try_compile "$LINENO"; then :
3934
3935else
3936  ac_c_werror_flag=$ac_save_c_werror_flag
3937	 CFLAGS="-g"
3938	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940
3941int
3942main ()
3943{
3944
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949if ac_fn_c_try_compile "$LINENO"; then :
3950  ac_cv_prog_cc_g=yes
3951fi
3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953fi
3954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955fi
3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957   ac_c_werror_flag=$ac_save_c_werror_flag
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3960$as_echo "$ac_cv_prog_cc_g" >&6; }
3961if test "$ac_test_CFLAGS" = set; then
3962  CFLAGS=$ac_save_CFLAGS
3963elif test $ac_cv_prog_cc_g = yes; then
3964  if test "$GCC" = yes; then
3965    CFLAGS="-g -O2"
3966  else
3967    CFLAGS="-g"
3968  fi
3969else
3970  if test "$GCC" = yes; then
3971    CFLAGS="-O2"
3972  else
3973    CFLAGS=
3974  fi
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3977$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3978if ${ac_cv_prog_cc_c89+:} false; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  ac_cv_prog_cc_c89=no
3982ac_save_CC=$CC
3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985#include <stdarg.h>
3986#include <stdio.h>
3987struct stat;
3988/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3989struct buf { int x; };
3990FILE * (*rcsopen) (struct buf *, struct stat *, int);
3991static char *e (p, i)
3992     char **p;
3993     int i;
3994{
3995  return p[i];
3996}
3997static char *f (char * (*g) (char **, int), char **p, ...)
3998{
3999  char *s;
4000  va_list v;
4001  va_start (v,p);
4002  s = g (p, va_arg (v,int));
4003  va_end (v);
4004  return s;
4005}
4006
4007/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4008   function prototypes and stuff, but not '\xHH' hex character constants.
4009   These don't provoke an error unfortunately, instead are silently treated
4010   as 'x'.  The following induces an error, until -std is added to get
4011   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4012   array size at least.  It's necessary to write '\x00'==0 to get something
4013   that's true only with -std.  */
4014int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4015
4016/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4017   inside strings and character constants.  */
4018#define FOO(x) 'x'
4019int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4020
4021int test (int i, double x);
4022struct s1 {int (*f) (int a);};
4023struct s2 {int (*f) (double a);};
4024int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4025int argc;
4026char **argv;
4027int
4028main ()
4029{
4030return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4031  ;
4032  return 0;
4033}
4034_ACEOF
4035for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4036	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4037do
4038  CC="$ac_save_CC $ac_arg"
4039  if ac_fn_c_try_compile "$LINENO"; then :
4040  ac_cv_prog_cc_c89=$ac_arg
4041fi
4042rm -f core conftest.err conftest.$ac_objext
4043  test "x$ac_cv_prog_cc_c89" != "xno" && break
4044done
4045rm -f conftest.$ac_ext
4046CC=$ac_save_CC
4047
4048fi
4049# AC_CACHE_VAL
4050case "x$ac_cv_prog_cc_c89" in
4051  x)
4052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4053$as_echo "none needed" >&6; } ;;
4054  xno)
4055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4056$as_echo "unsupported" >&6; } ;;
4057  *)
4058    CC="$CC $ac_cv_prog_cc_c89"
4059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4060$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4061esac
4062if test "x$ac_cv_prog_cc_c89" != xno; then :
4063
4064fi
4065
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4078$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4079if ${am_cv_prog_cc_c_o+:} false; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h.  */
4084
4085int
4086main ()
4087{
4088
4089  ;
4090  return 0;
4091}
4092_ACEOF
4093  # Make sure it works both with $CC and with simple cc.
4094  # Following AC_PROG_CC_C_O, we do the test twice because some
4095  # compilers refuse to overwrite an existing .o file with -o,
4096  # though they will create one.
4097  am_cv_prog_cc_c_o=yes
4098  for am_i in 1 2; do
4099    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4100   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } \
4104         && test -f conftest2.$ac_objext; then
4105      : OK
4106    else
4107      am_cv_prog_cc_c_o=no
4108      break
4109    fi
4110  done
4111  rm -f core conftest*
4112  unset am_i
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4115$as_echo "$am_cv_prog_cc_c_o" >&6; }
4116if test "$am_cv_prog_cc_c_o" != yes; then
4117   # Losing compiler, so override with the script.
4118   # FIXME: It is wrong to rewrite CC.
4119   # But if we don't then we get into trouble of one sort or another.
4120   # A longer-term fix would be to have automake use am__CC in this case,
4121   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4122   CC="$am_aux_dir/compile $CC"
4123fi
4124ac_ext=c
4125ac_cpp='$CPP $CPPFLAGS'
4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130DEPDIR="${am__leading_dot}deps"
4131
4132ac_config_commands="$ac_config_commands depfiles"
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4135$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4136cat > confinc.mk << 'END'
4137am__doit:
4138	@echo this is the am__doit target >confinc.out
4139.PHONY: am__doit
4140END
4141am__include="#"
4142am__quote=
4143# BSD make does it like this.
4144echo '.include "confinc.mk" # ignored' > confmf.BSD
4145# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4146echo 'include confinc.mk # ignored' > confmf.GNU
4147_am_result=no
4148for s in GNU BSD; do
4149  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4150   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }
4154  case $?:`cat confinc.out 2>/dev/null` in #(
4155  '0:this is the am__doit target') :
4156    case $s in #(
4157  BSD) :
4158    am__include='.include' am__quote='"' ;; #(
4159  *) :
4160    am__include='include' am__quote='' ;;
4161esac ;; #(
4162  *) :
4163     ;;
4164esac
4165  if test "$am__include" != "#"; then
4166    _am_result="yes ($s style)"
4167    break
4168  fi
4169done
4170rm -f confinc.* confmf.*
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4172$as_echo "${_am_result}" >&6; }
4173
4174# Check whether --enable-dependency-tracking was given.
4175if test "${enable_dependency_tracking+set}" = set; then :
4176  enableval=$enable_dependency_tracking;
4177fi
4178
4179if test "x$enable_dependency_tracking" != xno; then
4180  am_depcomp="$ac_aux_dir/depcomp"
4181  AMDEPBACKSLASH='\'
4182  am__nodep='_no'
4183fi
4184 if test "x$enable_dependency_tracking" != xno; then
4185  AMDEP_TRUE=
4186  AMDEP_FALSE='#'
4187else
4188  AMDEP_TRUE='#'
4189  AMDEP_FALSE=
4190fi
4191
4192
4193
4194depcc="$CC"   am_compiler_list=
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4197$as_echo_n "checking dependency style of $depcc... " >&6; }
4198if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4202  # We make a subdir and do the tests there.  Otherwise we can end up
4203  # making bogus files that we don't know about and never remove.  For
4204  # instance it was reported that on HP-UX the gcc test will end up
4205  # making a dummy file named 'D' -- because '-MD' means "put the output
4206  # in D".
4207  rm -rf conftest.dir
4208  mkdir conftest.dir
4209  # Copy depcomp to subdir because otherwise we won't find it if we're
4210  # using a relative directory.
4211  cp "$am_depcomp" conftest.dir
4212  cd conftest.dir
4213  # We will build objects and dependencies in a subdirectory because
4214  # it helps to detect inapplicable dependency modes.  For instance
4215  # both Tru64's cc and ICC support -MD to output dependencies as a
4216  # side effect of compilation, but ICC will put the dependencies in
4217  # the current directory while Tru64 will put them in the object
4218  # directory.
4219  mkdir sub
4220
4221  am_cv_CC_dependencies_compiler_type=none
4222  if test "$am_compiler_list" = ""; then
4223     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4224  fi
4225  am__universal=false
4226  case " $depcc " in #(
4227     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4228     esac
4229
4230  for depmode in $am_compiler_list; do
4231    # Setup a source with many dependencies, because some compilers
4232    # like to wrap large dependency lists on column 80 (with \), and
4233    # we should not choose a depcomp mode which is confused by this.
4234    #
4235    # We need to recreate these files for each test, as the compiler may
4236    # overwrite some of them when testing with obscure command lines.
4237    # This happens at least with the AIX C compiler.
4238    : > sub/conftest.c
4239    for i in 1 2 3 4 5 6; do
4240      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4241      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4242      # Solaris 10 /bin/sh.
4243      echo '/* dummy */' > sub/conftst$i.h
4244    done
4245    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4246
4247    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4248    # mode.  It turns out that the SunPro C++ compiler does not properly
4249    # handle '-M -o', and we need to detect this.  Also, some Intel
4250    # versions had trouble with output in subdirs.
4251    am__obj=sub/conftest.${OBJEXT-o}
4252    am__minus_obj="-o $am__obj"
4253    case $depmode in
4254    gcc)
4255      # This depmode causes a compiler race in universal mode.
4256      test "$am__universal" = false || continue
4257      ;;
4258    nosideeffect)
4259      # After this tag, mechanisms are not by side-effect, so they'll
4260      # only be used when explicitly requested.
4261      if test "x$enable_dependency_tracking" = xyes; then
4262	continue
4263      else
4264	break
4265      fi
4266      ;;
4267    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4268      # This compiler won't grok '-c -o', but also, the minuso test has
4269      # not run yet.  These depmodes are late enough in the game, and
4270      # so weak that their functioning should not be impacted.
4271      am__obj=conftest.${OBJEXT-o}
4272      am__minus_obj=
4273      ;;
4274    none) break ;;
4275    esac
4276    if depmode=$depmode \
4277       source=sub/conftest.c object=$am__obj \
4278       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4279       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4280         >/dev/null 2>conftest.err &&
4281       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4282       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4283       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4284       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4285      # icc doesn't choke on unknown options, it will just issue warnings
4286      # or remarks (even with -Werror).  So we grep stderr for any message
4287      # that says an option was ignored or not supported.
4288      # When given -MP, icc 7.0 and 7.1 complain thusly:
4289      #   icc: Command line warning: ignoring option '-M'; no argument required
4290      # The diagnosis changed in icc 8.0:
4291      #   icc: Command line remark: option '-MP' not supported
4292      if (grep 'ignoring option' conftest.err ||
4293          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4294        am_cv_CC_dependencies_compiler_type=$depmode
4295        break
4296      fi
4297    fi
4298  done
4299
4300  cd ..
4301  rm -rf conftest.dir
4302else
4303  am_cv_CC_dependencies_compiler_type=none
4304fi
4305
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4308$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4309CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4310
4311 if
4312  test "x$enable_dependency_tracking" != xno \
4313  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4314  am__fastdepCC_TRUE=
4315  am__fastdepCC_FALSE='#'
4316else
4317  am__fastdepCC_TRUE='#'
4318  am__fastdepCC_FALSE=
4319fi
4320
4321
4322# By default we simply use the C compiler to build assembly code.
4323
4324test "${CCAS+set}" = set || CCAS=$CC
4325test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4326
4327
4328
4329depcc="$CCAS"   am_compiler_list=
4330
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4332$as_echo_n "checking dependency style of $depcc... " >&6; }
4333if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4334  $as_echo_n "(cached) " >&6
4335else
4336  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4337  # We make a subdir and do the tests there.  Otherwise we can end up
4338  # making bogus files that we don't know about and never remove.  For
4339  # instance it was reported that on HP-UX the gcc test will end up
4340  # making a dummy file named 'D' -- because '-MD' means "put the output
4341  # in D".
4342  rm -rf conftest.dir
4343  mkdir conftest.dir
4344  # Copy depcomp to subdir because otherwise we won't find it if we're
4345  # using a relative directory.
4346  cp "$am_depcomp" conftest.dir
4347  cd conftest.dir
4348  # We will build objects and dependencies in a subdirectory because
4349  # it helps to detect inapplicable dependency modes.  For instance
4350  # both Tru64's cc and ICC support -MD to output dependencies as a
4351  # side effect of compilation, but ICC will put the dependencies in
4352  # the current directory while Tru64 will put them in the object
4353  # directory.
4354  mkdir sub
4355
4356  am_cv_CCAS_dependencies_compiler_type=none
4357  if test "$am_compiler_list" = ""; then
4358     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4359  fi
4360  am__universal=false
4361
4362
4363  for depmode in $am_compiler_list; do
4364    # Setup a source with many dependencies, because some compilers
4365    # like to wrap large dependency lists on column 80 (with \), and
4366    # we should not choose a depcomp mode which is confused by this.
4367    #
4368    # We need to recreate these files for each test, as the compiler may
4369    # overwrite some of them when testing with obscure command lines.
4370    # This happens at least with the AIX C compiler.
4371    : > sub/conftest.c
4372    for i in 1 2 3 4 5 6; do
4373      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4374      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4375      # Solaris 10 /bin/sh.
4376      echo '/* dummy */' > sub/conftst$i.h
4377    done
4378    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4379
4380    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4381    # mode.  It turns out that the SunPro C++ compiler does not properly
4382    # handle '-M -o', and we need to detect this.  Also, some Intel
4383    # versions had trouble with output in subdirs.
4384    am__obj=sub/conftest.${OBJEXT-o}
4385    am__minus_obj="-o $am__obj"
4386    case $depmode in
4387    gcc)
4388      # This depmode causes a compiler race in universal mode.
4389      test "$am__universal" = false || continue
4390      ;;
4391    nosideeffect)
4392      # After this tag, mechanisms are not by side-effect, so they'll
4393      # only be used when explicitly requested.
4394      if test "x$enable_dependency_tracking" = xyes; then
4395	continue
4396      else
4397	break
4398      fi
4399      ;;
4400    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4401      # This compiler won't grok '-c -o', but also, the minuso test has
4402      # not run yet.  These depmodes are late enough in the game, and
4403      # so weak that their functioning should not be impacted.
4404      am__obj=conftest.${OBJEXT-o}
4405      am__minus_obj=
4406      ;;
4407    none) break ;;
4408    esac
4409    if depmode=$depmode \
4410       source=sub/conftest.c object=$am__obj \
4411       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4413         >/dev/null 2>conftest.err &&
4414       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4415       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4416       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4417       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4418      # icc doesn't choke on unknown options, it will just issue warnings
4419      # or remarks (even with -Werror).  So we grep stderr for any message
4420      # that says an option was ignored or not supported.
4421      # When given -MP, icc 7.0 and 7.1 complain thusly:
4422      #   icc: Command line warning: ignoring option '-M'; no argument required
4423      # The diagnosis changed in icc 8.0:
4424      #   icc: Command line remark: option '-MP' not supported
4425      if (grep 'ignoring option' conftest.err ||
4426          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4427        am_cv_CCAS_dependencies_compiler_type=$depmode
4428        break
4429      fi
4430    fi
4431  done
4432
4433  cd ..
4434  rm -rf conftest.dir
4435else
4436  am_cv_CCAS_dependencies_compiler_type=none
4437fi
4438
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4441$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4442CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4443
4444 if
4445  test "x$enable_dependency_tracking" != xno \
4446  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4447  am__fastdepCCAS_TRUE=
4448  am__fastdepCCAS_FALSE='#'
4449else
4450  am__fastdepCCAS_TRUE='#'
4451  am__fastdepCCAS_FALSE=
4452fi
4453
4454
4455case `pwd` in
4456  *\ * | *\	*)
4457    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4458$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4459esac
4460
4461
4462
4463macro_version='2.4.6'
4464macro_revision='2.4.6'
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478ltmain=$ac_aux_dir/ltmain.sh
4479
4480# Backslashify metacharacters that are still active within
4481# double-quoted strings.
4482sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4483
4484# Same as above, but do not quote variable references.
4485double_quote_subst='s/\(["`\\]\)/\\\1/g'
4486
4487# Sed substitution to delay expansion of an escaped shell variable in a
4488# double_quote_subst'ed string.
4489delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4490
4491# Sed substitution to delay expansion of an escaped single quote.
4492delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4493
4494# Sed substitution to avoid accidental globbing in evaled expressions
4495no_glob_subst='s/\*/\\\*/g'
4496
4497ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4498ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4499ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4502$as_echo_n "checking how to print strings... " >&6; }
4503# Test print first, because it will be a builtin if present.
4504if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4505   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4506  ECHO='print -r --'
4507elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4508  ECHO='printf %s\n'
4509else
4510  # Use this function as a fallback that always works.
4511  func_fallback_echo ()
4512  {
4513    eval 'cat <<_LTECHO_EOF
4514$1
4515_LTECHO_EOF'
4516  }
4517  ECHO='func_fallback_echo'
4518fi
4519
4520# func_echo_all arg...
4521# Invoke $ECHO with all args, space-separated.
4522func_echo_all ()
4523{
4524    $ECHO ""
4525}
4526
4527case $ECHO in
4528  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4529$as_echo "printf" >&6; } ;;
4530  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4531$as_echo "print -r" >&6; } ;;
4532  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4533$as_echo "cat" >&6; } ;;
4534esac
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4550$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4551if ${ac_cv_path_SED+:} false; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4555     for ac_i in 1 2 3 4 5 6 7; do
4556       ac_script="$ac_script$as_nl$ac_script"
4557     done
4558     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4559     { ac_script=; unset ac_script;}
4560     if test -z "$SED"; then
4561  ac_path_SED_found=false
4562  # Loop through the user's path and test for each of PROGNAME-LIST
4563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_prog in sed gsed; do
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4571      as_fn_executable_p "$ac_path_SED" || continue
4572# Check for GNU ac_path_SED and select it if it is found.
4573  # Check for GNU $ac_path_SED
4574case `"$ac_path_SED" --version 2>&1` in
4575*GNU*)
4576  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4577*)
4578  ac_count=0
4579  $as_echo_n 0123456789 >"conftest.in"
4580  while :
4581  do
4582    cat "conftest.in" "conftest.in" >"conftest.tmp"
4583    mv "conftest.tmp" "conftest.in"
4584    cp "conftest.in" "conftest.nl"
4585    $as_echo '' >> "conftest.nl"
4586    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588    as_fn_arith $ac_count + 1 && ac_count=$as_val
4589    if test $ac_count -gt ${ac_path_SED_max-0}; then
4590      # Best one so far, save it but keep looking for a better one
4591      ac_cv_path_SED="$ac_path_SED"
4592      ac_path_SED_max=$ac_count
4593    fi
4594    # 10*(2^10) chars as input seems more than enough
4595    test $ac_count -gt 10 && break
4596  done
4597  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598esac
4599
4600      $ac_path_SED_found && break 3
4601    done
4602  done
4603  done
4604IFS=$as_save_IFS
4605  if test -z "$ac_cv_path_SED"; then
4606    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4607  fi
4608else
4609  ac_cv_path_SED=$SED
4610fi
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4614$as_echo "$ac_cv_path_SED" >&6; }
4615 SED="$ac_cv_path_SED"
4616  rm -f conftest.sed
4617
4618test -z "$SED" && SED=sed
4619Xsed="$SED -e 1s/^X//"
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4632$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4633if ${ac_cv_path_GREP+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  if test -z "$GREP"; then
4637  ac_path_GREP_found=false
4638  # Loop through the user's path and test for each of PROGNAME-LIST
4639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_prog in grep ggrep; do
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4647      as_fn_executable_p "$ac_path_GREP" || continue
4648# Check for GNU ac_path_GREP and select it if it is found.
4649  # Check for GNU $ac_path_GREP
4650case `"$ac_path_GREP" --version 2>&1` in
4651*GNU*)
4652  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4653*)
4654  ac_count=0
4655  $as_echo_n 0123456789 >"conftest.in"
4656  while :
4657  do
4658    cat "conftest.in" "conftest.in" >"conftest.tmp"
4659    mv "conftest.tmp" "conftest.in"
4660    cp "conftest.in" "conftest.nl"
4661    $as_echo 'GREP' >> "conftest.nl"
4662    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664    as_fn_arith $ac_count + 1 && ac_count=$as_val
4665    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4666      # Best one so far, save it but keep looking for a better one
4667      ac_cv_path_GREP="$ac_path_GREP"
4668      ac_path_GREP_max=$ac_count
4669    fi
4670    # 10*(2^10) chars as input seems more than enough
4671    test $ac_count -gt 10 && break
4672  done
4673  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674esac
4675
4676      $ac_path_GREP_found && break 3
4677    done
4678  done
4679  done
4680IFS=$as_save_IFS
4681  if test -z "$ac_cv_path_GREP"; then
4682    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683  fi
4684else
4685  ac_cv_path_GREP=$GREP
4686fi
4687
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4690$as_echo "$ac_cv_path_GREP" >&6; }
4691 GREP="$ac_cv_path_GREP"
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4695$as_echo_n "checking for egrep... " >&6; }
4696if ${ac_cv_path_EGREP+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4700   then ac_cv_path_EGREP="$GREP -E"
4701   else
4702     if test -z "$EGREP"; then
4703  ac_path_EGREP_found=false
4704  # Loop through the user's path and test for each of PROGNAME-LIST
4705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710    for ac_prog in egrep; do
4711    for ac_exec_ext in '' $ac_executable_extensions; do
4712      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4713      as_fn_executable_p "$ac_path_EGREP" || continue
4714# Check for GNU ac_path_EGREP and select it if it is found.
4715  # Check for GNU $ac_path_EGREP
4716case `"$ac_path_EGREP" --version 2>&1` in
4717*GNU*)
4718  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4719*)
4720  ac_count=0
4721  $as_echo_n 0123456789 >"conftest.in"
4722  while :
4723  do
4724    cat "conftest.in" "conftest.in" >"conftest.tmp"
4725    mv "conftest.tmp" "conftest.in"
4726    cp "conftest.in" "conftest.nl"
4727    $as_echo 'EGREP' >> "conftest.nl"
4728    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730    as_fn_arith $ac_count + 1 && ac_count=$as_val
4731    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4732      # Best one so far, save it but keep looking for a better one
4733      ac_cv_path_EGREP="$ac_path_EGREP"
4734      ac_path_EGREP_max=$ac_count
4735    fi
4736    # 10*(2^10) chars as input seems more than enough
4737    test $ac_count -gt 10 && break
4738  done
4739  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740esac
4741
4742      $ac_path_EGREP_found && break 3
4743    done
4744  done
4745  done
4746IFS=$as_save_IFS
4747  if test -z "$ac_cv_path_EGREP"; then
4748    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749  fi
4750else
4751  ac_cv_path_EGREP=$EGREP
4752fi
4753
4754   fi
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4757$as_echo "$ac_cv_path_EGREP" >&6; }
4758 EGREP="$ac_cv_path_EGREP"
4759
4760
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4762$as_echo_n "checking for fgrep... " >&6; }
4763if ${ac_cv_path_FGREP+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4767   then ac_cv_path_FGREP="$GREP -F"
4768   else
4769     if test -z "$FGREP"; then
4770  ac_path_FGREP_found=false
4771  # Loop through the user's path and test for each of PROGNAME-LIST
4772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777    for ac_prog in fgrep; do
4778    for ac_exec_ext in '' $ac_executable_extensions; do
4779      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4780      as_fn_executable_p "$ac_path_FGREP" || continue
4781# Check for GNU ac_path_FGREP and select it if it is found.
4782  # Check for GNU $ac_path_FGREP
4783case `"$ac_path_FGREP" --version 2>&1` in
4784*GNU*)
4785  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4786*)
4787  ac_count=0
4788  $as_echo_n 0123456789 >"conftest.in"
4789  while :
4790  do
4791    cat "conftest.in" "conftest.in" >"conftest.tmp"
4792    mv "conftest.tmp" "conftest.in"
4793    cp "conftest.in" "conftest.nl"
4794    $as_echo 'FGREP' >> "conftest.nl"
4795    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797    as_fn_arith $ac_count + 1 && ac_count=$as_val
4798    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4799      # Best one so far, save it but keep looking for a better one
4800      ac_cv_path_FGREP="$ac_path_FGREP"
4801      ac_path_FGREP_max=$ac_count
4802    fi
4803    # 10*(2^10) chars as input seems more than enough
4804    test $ac_count -gt 10 && break
4805  done
4806  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807esac
4808
4809      $ac_path_FGREP_found && break 3
4810    done
4811  done
4812  done
4813IFS=$as_save_IFS
4814  if test -z "$ac_cv_path_FGREP"; then
4815    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816  fi
4817else
4818  ac_cv_path_FGREP=$FGREP
4819fi
4820
4821   fi
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4824$as_echo "$ac_cv_path_FGREP" >&6; }
4825 FGREP="$ac_cv_path_FGREP"
4826
4827
4828test -z "$GREP" && GREP=grep
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848# Check whether --with-gnu-ld was given.
4849if test "${with_gnu_ld+set}" = set; then :
4850  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4851else
4852  with_gnu_ld=no
4853fi
4854
4855ac_prog=ld
4856if test yes = "$GCC"; then
4857  # Check if gcc -print-prog-name=ld gives a path.
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4859$as_echo_n "checking for ld used by $CC... " >&6; }
4860  case $host in
4861  *-*-mingw*)
4862    # gcc leaves a trailing carriage return, which upsets mingw
4863    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4864  *)
4865    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4866  esac
4867  case $ac_prog in
4868    # Accept absolute paths.
4869    [\\/]* | ?:[\\/]*)
4870      re_direlt='/[^/][^/]*/\.\./'
4871      # Canonicalize the pathname of ld
4872      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4873      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4874	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4875      done
4876      test -z "$LD" && LD=$ac_prog
4877      ;;
4878  "")
4879    # If it fails, then pretend we aren't using GCC.
4880    ac_prog=ld
4881    ;;
4882  *)
4883    # If it is relative, then search for the first ld in PATH.
4884    with_gnu_ld=unknown
4885    ;;
4886  esac
4887elif test yes = "$with_gnu_ld"; then
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4889$as_echo_n "checking for GNU ld... " >&6; }
4890else
4891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4892$as_echo_n "checking for non-GNU ld... " >&6; }
4893fi
4894if ${lt_cv_path_LD+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  if test -z "$LD"; then
4898  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4899  for ac_dir in $PATH; do
4900    IFS=$lt_save_ifs
4901    test -z "$ac_dir" && ac_dir=.
4902    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4903      lt_cv_path_LD=$ac_dir/$ac_prog
4904      # Check to see if the program is GNU ld.  I'd rather use --version,
4905      # but apparently some variants of GNU ld only accept -v.
4906      # Break only if it was the GNU/non-GNU ld that we prefer.
4907      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4908      *GNU* | *'with BFD'*)
4909	test no != "$with_gnu_ld" && break
4910	;;
4911      *)
4912	test yes != "$with_gnu_ld" && break
4913	;;
4914      esac
4915    fi
4916  done
4917  IFS=$lt_save_ifs
4918else
4919  lt_cv_path_LD=$LD # Let the user override the test with a path.
4920fi
4921fi
4922
4923LD=$lt_cv_path_LD
4924if test -n "$LD"; then
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4926$as_echo "$LD" >&6; }
4927else
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4933$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4934if ${lt_cv_prog_gnu_ld+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4938case `$LD -v 2>&1 </dev/null` in
4939*GNU* | *'with BFD'*)
4940  lt_cv_prog_gnu_ld=yes
4941  ;;
4942*)
4943  lt_cv_prog_gnu_ld=no
4944  ;;
4945esac
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4948$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4949with_gnu_ld=$lt_cv_prog_gnu_ld
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4960$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4961if ${lt_cv_path_NM+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  if test -n "$NM"; then
4965  # Let the user override the test.
4966  lt_cv_path_NM=$NM
4967else
4968  lt_nm_to_check=${ac_tool_prefix}nm
4969  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4970    lt_nm_to_check="$lt_nm_to_check nm"
4971  fi
4972  for lt_tmp_nm in $lt_nm_to_check; do
4973    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4974    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4975      IFS=$lt_save_ifs
4976      test -z "$ac_dir" && ac_dir=.
4977      tmp_nm=$ac_dir/$lt_tmp_nm
4978      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4979	# Check to see if the nm accepts a BSD-compat flag.
4980	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4981	#   nm: unknown option "B" ignored
4982	# Tru64's nm complains that /dev/null is an invalid object file
4983	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4984	case $build_os in
4985	mingw*) lt_bad_file=conftest.nm/nofile ;;
4986	*) lt_bad_file=/dev/null ;;
4987	esac
4988	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4989	*$lt_bad_file* | *'Invalid file or object type'*)
4990	  lt_cv_path_NM="$tmp_nm -B"
4991	  break 2
4992	  ;;
4993	*)
4994	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4995	  */dev/null*)
4996	    lt_cv_path_NM="$tmp_nm -p"
4997	    break 2
4998	    ;;
4999	  *)
5000	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5001	    continue # so that we can try to find one that supports BSD flags
5002	    ;;
5003	  esac
5004	  ;;
5005	esac
5006      fi
5007    done
5008    IFS=$lt_save_ifs
5009  done
5010  : ${lt_cv_path_NM=no}
5011fi
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5014$as_echo "$lt_cv_path_NM" >&6; }
5015if test no != "$lt_cv_path_NM"; then
5016  NM=$lt_cv_path_NM
5017else
5018  # Didn't find any BSD compatible name lister, look for dumpbin.
5019  if test -n "$DUMPBIN"; then :
5020    # Let the user override the test.
5021  else
5022    if test -n "$ac_tool_prefix"; then
5023  for ac_prog in dumpbin "link -dump"
5024  do
5025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028$as_echo_n "checking for $ac_word... " >&6; }
5029if ${ac_cv_prog_DUMPBIN+:} false; then :
5030  $as_echo_n "(cached) " >&6
5031else
5032  if test -n "$DUMPBIN"; then
5033  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5034else
5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038  IFS=$as_save_IFS
5039  test -z "$as_dir" && as_dir=.
5040    for ac_exec_ext in '' $ac_executable_extensions; do
5041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044    break 2
5045  fi
5046done
5047  done
5048IFS=$as_save_IFS
5049
5050fi
5051fi
5052DUMPBIN=$ac_cv_prog_DUMPBIN
5053if test -n "$DUMPBIN"; then
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5055$as_echo "$DUMPBIN" >&6; }
5056else
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
5059fi
5060
5061
5062    test -n "$DUMPBIN" && break
5063  done
5064fi
5065if test -z "$DUMPBIN"; then
5066  ac_ct_DUMPBIN=$DUMPBIN
5067  for ac_prog in dumpbin "link -dump"
5068do
5069  # Extract the first word of "$ac_prog", so it can be a program name with args.
5070set dummy $ac_prog; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
5073if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  if test -n "$ac_ct_DUMPBIN"; then
5077  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5078else
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082  IFS=$as_save_IFS
5083  test -z "$as_dir" && as_dir=.
5084    for ac_exec_ext in '' $ac_executable_extensions; do
5085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088    break 2
5089  fi
5090done
5091  done
5092IFS=$as_save_IFS
5093
5094fi
5095fi
5096ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5097if test -n "$ac_ct_DUMPBIN"; then
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5099$as_echo "$ac_ct_DUMPBIN" >&6; }
5100else
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104
5105
5106  test -n "$ac_ct_DUMPBIN" && break
5107done
5108
5109  if test "x$ac_ct_DUMPBIN" = x; then
5110    DUMPBIN=":"
5111  else
5112    case $cross_compiling:$ac_tool_warned in
5113yes:)
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116ac_tool_warned=yes ;;
5117esac
5118    DUMPBIN=$ac_ct_DUMPBIN
5119  fi
5120fi
5121
5122    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5123    *COFF*)
5124      DUMPBIN="$DUMPBIN -symbols -headers"
5125      ;;
5126    *)
5127      DUMPBIN=:
5128      ;;
5129    esac
5130  fi
5131
5132  if test : != "$DUMPBIN"; then
5133    NM=$DUMPBIN
5134  fi
5135fi
5136test -z "$NM" && NM=nm
5137
5138
5139
5140
5141
5142
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5144$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5145if ${lt_cv_nm_interface+:} false; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  lt_cv_nm_interface="BSD nm"
5149  echo "int some_variable = 0;" > conftest.$ac_ext
5150  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5151  (eval "$ac_compile" 2>conftest.err)
5152  cat conftest.err >&5
5153  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5154  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5155  cat conftest.err >&5
5156  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5157  cat conftest.out >&5
5158  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5159    lt_cv_nm_interface="MS dumpbin"
5160  fi
5161  rm -f conftest*
5162fi
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5164$as_echo "$lt_cv_nm_interface" >&6; }
5165
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5167$as_echo_n "checking whether ln -s works... " >&6; }
5168LN_S=$as_ln_s
5169if test "$LN_S" = "ln -s"; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171$as_echo "yes" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5174$as_echo "no, using $LN_S" >&6; }
5175fi
5176
5177# find the maximum length of command line arguments
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5179$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5180if ${lt_cv_sys_max_cmd_len+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183    i=0
5184  teststring=ABCD
5185
5186  case $build_os in
5187  msdosdjgpp*)
5188    # On DJGPP, this test can blow up pretty badly due to problems in libc
5189    # (any single argument exceeding 2000 bytes causes a buffer overrun
5190    # during glob expansion).  Even if it were fixed, the result of this
5191    # check would be larger than it should be.
5192    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5193    ;;
5194
5195  gnu*)
5196    # Under GNU Hurd, this test is not required because there is
5197    # no limit to the length of command line arguments.
5198    # Libtool will interpret -1 as no limit whatsoever
5199    lt_cv_sys_max_cmd_len=-1;
5200    ;;
5201
5202  cygwin* | mingw* | cegcc*)
5203    # On Win9x/ME, this test blows up -- it succeeds, but takes
5204    # about 5 minutes as the teststring grows exponentially.
5205    # Worse, since 9x/ME are not pre-emptively multitasking,
5206    # you end up with a "frozen" computer, even though with patience
5207    # the test eventually succeeds (with a max line length of 256k).
5208    # Instead, let's just punt: use the minimum linelength reported by
5209    # all of the supported platforms: 8192 (on NT/2K/XP).
5210    lt_cv_sys_max_cmd_len=8192;
5211    ;;
5212
5213  mint*)
5214    # On MiNT this can take a long time and run out of memory.
5215    lt_cv_sys_max_cmd_len=8192;
5216    ;;
5217
5218  mint*)
5219    # On MiNT this can take a long time and run out of memory.
5220    lt_cv_sys_max_cmd_len=8192;
5221    ;;
5222
5223  amigaos*)
5224    # On AmigaOS with pdksh, this test takes hours, literally.
5225    # So we just punt and use a minimum line length of 8192.
5226    lt_cv_sys_max_cmd_len=8192;
5227    ;;
5228
5229  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5230    # This has been around since 386BSD, at least.  Likely further.
5231    if test -x /sbin/sysctl; then
5232      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5233    elif test -x /usr/sbin/sysctl; then
5234      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5235    else
5236      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5237    fi
5238    # And add a safety zone
5239    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5240    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5241    ;;
5242
5243  interix*)
5244    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5245    lt_cv_sys_max_cmd_len=196608
5246    ;;
5247
5248  os2*)
5249    # The test takes a long time on OS/2.
5250    lt_cv_sys_max_cmd_len=8192
5251    ;;
5252
5253  osf*)
5254    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5255    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5256    # nice to cause kernel panics so lets avoid the loop below.
5257    # First set a reasonable default.
5258    lt_cv_sys_max_cmd_len=16384
5259    #
5260    if test -x /sbin/sysconfig; then
5261      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5262        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5263      esac
5264    fi
5265    ;;
5266  sco3.2v5*)
5267    lt_cv_sys_max_cmd_len=102400
5268    ;;
5269  sysv5* | sco5v6* | sysv4.2uw2*)
5270    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5271    if test -n "$kargmax"; then
5272      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5273    else
5274      lt_cv_sys_max_cmd_len=32768
5275    fi
5276    ;;
5277  *)
5278    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5279    if test -n "$lt_cv_sys_max_cmd_len" && \
5280       test undefined != "$lt_cv_sys_max_cmd_len"; then
5281      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5282      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5283    else
5284      # Make teststring a little bigger before we do anything with it.
5285      # a 1K string should be a reasonable start.
5286      for i in 1 2 3 4 5 6 7 8; do
5287        teststring=$teststring$teststring
5288      done
5289      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5290      # If test is not a shell built-in, we'll probably end up computing a
5291      # maximum length that is only half of the actual maximum length, but
5292      # we can't tell.
5293      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5294	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5295	      test 17 != "$i" # 1/2 MB should be enough
5296      do
5297        i=`expr $i + 1`
5298        teststring=$teststring$teststring
5299      done
5300      # Only check the string length outside the loop.
5301      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5302      teststring=
5303      # Add a significant safety factor because C++ compilers can tack on
5304      # massive amounts of additional arguments before passing them to the
5305      # linker.  It appears as though 1/2 is a usable value.
5306      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5307    fi
5308    ;;
5309  esac
5310
5311fi
5312
5313if test -n "$lt_cv_sys_max_cmd_len"; then
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5315$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5316else
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5318$as_echo "none" >&6; }
5319fi
5320max_cmd_len=$lt_cv_sys_max_cmd_len
5321
5322
5323
5324
5325
5326
5327: ${CP="cp -f"}
5328: ${MV="mv -f"}
5329: ${RM="rm -f"}
5330
5331if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5332  lt_unset=unset
5333else
5334  lt_unset=false
5335fi
5336
5337
5338
5339
5340
5341# test EBCDIC or ASCII
5342case `echo X|tr X '\101'` in
5343 A) # ASCII based system
5344    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5345  lt_SP2NL='tr \040 \012'
5346  lt_NL2SP='tr \015\012 \040\040'
5347  ;;
5348 *) # EBCDIC based system
5349  lt_SP2NL='tr \100 \n'
5350  lt_NL2SP='tr \r\n \100\100'
5351  ;;
5352esac
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5363$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5364if ${lt_cv_to_host_file_cmd+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  case $host in
5368  *-*-mingw* )
5369    case $build in
5370      *-*-mingw* ) # actually msys
5371        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5372        ;;
5373      *-*-cygwin* )
5374        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5375        ;;
5376      * ) # otherwise, assume *nix
5377        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5378        ;;
5379    esac
5380    ;;
5381  *-*-cygwin* )
5382    case $build in
5383      *-*-mingw* ) # actually msys
5384        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5385        ;;
5386      *-*-cygwin* )
5387        lt_cv_to_host_file_cmd=func_convert_file_noop
5388        ;;
5389      * ) # otherwise, assume *nix
5390        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5391        ;;
5392    esac
5393    ;;
5394  * ) # unhandled hosts (and "normal" native builds)
5395    lt_cv_to_host_file_cmd=func_convert_file_noop
5396    ;;
5397esac
5398
5399fi
5400
5401to_host_file_cmd=$lt_cv_to_host_file_cmd
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5403$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5404
5405
5406
5407
5408
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5410$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5411if ${lt_cv_to_tool_file_cmd+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  #assume ordinary cross tools, or native build.
5415lt_cv_to_tool_file_cmd=func_convert_file_noop
5416case $host in
5417  *-*-mingw* )
5418    case $build in
5419      *-*-mingw* ) # actually msys
5420        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5421        ;;
5422    esac
5423    ;;
5424esac
5425
5426fi
5427
5428to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5430$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5431
5432
5433
5434
5435
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5437$as_echo_n "checking for $LD option to reload object files... " >&6; }
5438if ${lt_cv_ld_reload_flag+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  lt_cv_ld_reload_flag='-r'
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5444$as_echo "$lt_cv_ld_reload_flag" >&6; }
5445reload_flag=$lt_cv_ld_reload_flag
5446case $reload_flag in
5447"" | " "*) ;;
5448*) reload_flag=" $reload_flag" ;;
5449esac
5450reload_cmds='$LD$reload_flag -o $output$reload_objs'
5451case $host_os in
5452  cygwin* | mingw* | pw32* | cegcc*)
5453    if test yes != "$GCC"; then
5454      reload_cmds=false
5455    fi
5456    ;;
5457  darwin*)
5458    if test yes = "$GCC"; then
5459      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5460    else
5461      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5462    fi
5463    ;;
5464esac
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474if test -n "$ac_tool_prefix"; then
5475  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5476set dummy ${ac_tool_prefix}objdump; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if ${ac_cv_prog_OBJDUMP+:} false; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482  if test -n "$OBJDUMP"; then
5483  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488  IFS=$as_save_IFS
5489  test -z "$as_dir" && as_dir=.
5490    for ac_exec_ext in '' $ac_executable_extensions; do
5491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494    break 2
5495  fi
5496done
5497  done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502OBJDUMP=$ac_cv_prog_OBJDUMP
5503if test -n "$OBJDUMP"; then
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5505$as_echo "$OBJDUMP" >&6; }
5506else
5507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512fi
5513if test -z "$ac_cv_prog_OBJDUMP"; then
5514  ac_ct_OBJDUMP=$OBJDUMP
5515  # Extract the first word of "objdump", so it can be a program name with args.
5516set dummy objdump; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  if test -n "$ac_ct_OBJDUMP"; then
5523  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528  IFS=$as_save_IFS
5529  test -z "$as_dir" && as_dir=.
5530    for ac_exec_ext in '' $ac_executable_extensions; do
5531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534    break 2
5535  fi
5536done
5537  done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5543if test -n "$ac_ct_OBJDUMP"; then
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5545$as_echo "$ac_ct_OBJDUMP" >&6; }
5546else
5547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551  if test "x$ac_ct_OBJDUMP" = x; then
5552    OBJDUMP="false"
5553  else
5554    case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560    OBJDUMP=$ac_ct_OBJDUMP
5561  fi
5562else
5563  OBJDUMP="$ac_cv_prog_OBJDUMP"
5564fi
5565
5566test -z "$OBJDUMP" && OBJDUMP=objdump
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5577$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5578if ${lt_cv_deplibs_check_method+:} false; then :
5579  $as_echo_n "(cached) " >&6
5580else
5581  lt_cv_file_magic_cmd='$MAGIC_CMD'
5582lt_cv_file_magic_test_file=
5583lt_cv_deplibs_check_method='unknown'
5584# Need to set the preceding variable on all platforms that support
5585# interlibrary dependencies.
5586# 'none' -- dependencies not supported.
5587# 'unknown' -- same as none, but documents that we really don't know.
5588# 'pass_all' -- all dependencies passed with no checks.
5589# 'test_compile' -- check by making test program.
5590# 'file_magic [[regex]]' -- check by looking for files in library path
5591# that responds to the $file_magic_cmd with a given extended regex.
5592# If you have 'file' or equivalent on your system and you're not sure
5593# whether 'pass_all' will *always* work, you probably want this one.
5594
5595case $host_os in
5596aix[4-9]*)
5597  lt_cv_deplibs_check_method=pass_all
5598  ;;
5599
5600beos*)
5601  lt_cv_deplibs_check_method=pass_all
5602  ;;
5603
5604bsdi[45]*)
5605  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5606  lt_cv_file_magic_cmd='/usr/bin/file -L'
5607  lt_cv_file_magic_test_file=/shlib/libc.so
5608  ;;
5609
5610cygwin*)
5611  # func_win32_libid is a shell function defined in ltmain.sh
5612  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5613  lt_cv_file_magic_cmd='func_win32_libid'
5614  ;;
5615
5616mingw* | pw32*)
5617  # Base MSYS/MinGW do not provide the 'file' command needed by
5618  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5619  # unless we find 'file', for example because we are cross-compiling.
5620  if ( file / ) >/dev/null 2>&1; then
5621    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5622    lt_cv_file_magic_cmd='func_win32_libid'
5623  else
5624    # Keep this pattern in sync with the one in func_win32_libid.
5625    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5626    lt_cv_file_magic_cmd='$OBJDUMP -f'
5627  fi
5628  ;;
5629
5630cegcc*)
5631  # use the weaker test based on 'objdump'. See mingw*.
5632  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5633  lt_cv_file_magic_cmd='$OBJDUMP -f'
5634  ;;
5635
5636darwin* | rhapsody*)
5637  lt_cv_deplibs_check_method=pass_all
5638  ;;
5639
5640freebsd* | dragonfly*)
5641  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5642    case $host_cpu in
5643    i*86 )
5644      # Not sure whether the presence of OpenBSD here was a mistake.
5645      # Let's accept both of them until this is cleared up.
5646      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5647      lt_cv_file_magic_cmd=/usr/bin/file
5648      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5649      ;;
5650    esac
5651  else
5652    lt_cv_deplibs_check_method=pass_all
5653  fi
5654  ;;
5655
5656haiku*)
5657  lt_cv_deplibs_check_method=pass_all
5658  ;;
5659
5660hpux10.20* | hpux11*)
5661  lt_cv_file_magic_cmd=/usr/bin/file
5662  case $host_cpu in
5663  ia64*)
5664    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5666    ;;
5667  hppa*64*)
5668    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5669    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5670    ;;
5671  *)
5672    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5673    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5674    ;;
5675  esac
5676  ;;
5677
5678interix[3-9]*)
5679  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5681  ;;
5682
5683irix5* | irix6* | nonstopux*)
5684  case $LD in
5685  *-32|*"-32 ") libmagic=32-bit;;
5686  *-n32|*"-n32 ") libmagic=N32;;
5687  *-64|*"-64 ") libmagic=64-bit;;
5688  *) libmagic=never-match;;
5689  esac
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692
5693# This must be glibc/ELF.
5694linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5695  lt_cv_deplibs_check_method=pass_all
5696  ;;
5697
5698netbsd*)
5699  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701  else
5702    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703  fi
5704  ;;
5705
5706newos6*)
5707  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708  lt_cv_file_magic_cmd=/usr/bin/file
5709  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5710  ;;
5711
5712*nto* | *qnx*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5716openbsd* | bitrig*)
5717  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5718    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5719  else
5720    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721  fi
5722  ;;
5723
5724osf3* | osf4* | osf5*)
5725  lt_cv_deplibs_check_method=pass_all
5726  ;;
5727
5728rdos*)
5729  lt_cv_deplibs_check_method=pass_all
5730  ;;
5731
5732solaris*)
5733  lt_cv_deplibs_check_method=pass_all
5734  ;;
5735
5736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5737  lt_cv_deplibs_check_method=pass_all
5738  ;;
5739
5740sysv4 | sysv4.3*)
5741  case $host_vendor in
5742  motorola)
5743    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]'
5744    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5745    ;;
5746  ncr)
5747    lt_cv_deplibs_check_method=pass_all
5748    ;;
5749  sequent)
5750    lt_cv_file_magic_cmd='/bin/file'
5751    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5752    ;;
5753  sni)
5754    lt_cv_file_magic_cmd='/bin/file'
5755    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5756    lt_cv_file_magic_test_file=/lib/libc.so
5757    ;;
5758  siemens)
5759    lt_cv_deplibs_check_method=pass_all
5760    ;;
5761  pc)
5762    lt_cv_deplibs_check_method=pass_all
5763    ;;
5764  esac
5765  ;;
5766
5767tpf*)
5768  lt_cv_deplibs_check_method=pass_all
5769  ;;
5770os2*)
5771  lt_cv_deplibs_check_method=pass_all
5772  ;;
5773esac
5774
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5777$as_echo "$lt_cv_deplibs_check_method" >&6; }
5778
5779file_magic_glob=
5780want_nocaseglob=no
5781if test "$build" = "$host"; then
5782  case $host_os in
5783  mingw* | pw32*)
5784    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5785      want_nocaseglob=yes
5786    else
5787      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5788    fi
5789    ;;
5790  esac
5791fi
5792
5793file_magic_cmd=$lt_cv_file_magic_cmd
5794deplibs_check_method=$lt_cv_deplibs_check_method
5795test -z "$deplibs_check_method" && deplibs_check_method=unknown
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818if test -n "$ac_tool_prefix"; then
5819  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if ${ac_cv_prog_DLLTOOL+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$DLLTOOL"; then
5827  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846DLLTOOL=$ac_cv_prog_DLLTOOL
5847if test -n "$DLLTOOL"; then
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5849$as_echo "$DLLTOOL" >&6; }
5850else
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856fi
5857if test -z "$ac_cv_prog_DLLTOOL"; then
5858  ac_ct_DLLTOOL=$DLLTOOL
5859  # Extract the first word of "dlltool", so it can be a program name with args.
5860set dummy dlltool; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  if test -n "$ac_ct_DLLTOOL"; then
5867  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874    for ac_exec_ext in '' $ac_executable_extensions; do
5875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881  done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5887if test -n "$ac_ct_DLLTOOL"; then
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5889$as_echo "$ac_ct_DLLTOOL" >&6; }
5890else
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895  if test "x$ac_ct_DLLTOOL" = x; then
5896    DLLTOOL="false"
5897  else
5898    case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904    DLLTOOL=$ac_ct_DLLTOOL
5905  fi
5906else
5907  DLLTOOL="$ac_cv_prog_DLLTOOL"
5908fi
5909
5910test -z "$DLLTOOL" && DLLTOOL=dlltool
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5922$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5923if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  lt_cv_sharedlib_from_linklib_cmd='unknown'
5927
5928case $host_os in
5929cygwin* | mingw* | pw32* | cegcc*)
5930  # two different shell functions defined in ltmain.sh;
5931  # decide which one to use based on capabilities of $DLLTOOL
5932  case `$DLLTOOL --help 2>&1` in
5933  *--identify-strict*)
5934    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5935    ;;
5936  *)
5937    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5938    ;;
5939  esac
5940  ;;
5941*)
5942  # fallback: assume linklib IS sharedlib
5943  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5944  ;;
5945esac
5946
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5949$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5950sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5951test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5952
5953
5954
5955
5956
5957
5958
5959
5960if test -n "$ac_tool_prefix"; then
5961  for ac_prog in ar
5962  do
5963    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5964set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966$as_echo_n "checking for $ac_word... " >&6; }
5967if ${ac_cv_prog_AR+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  if test -n "$AR"; then
5971  ac_cv_prog_AR="$AR" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976  IFS=$as_save_IFS
5977  test -z "$as_dir" && as_dir=.
5978    for ac_exec_ext in '' $ac_executable_extensions; do
5979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982    break 2
5983  fi
5984done
5985  done
5986IFS=$as_save_IFS
5987
5988fi
5989fi
5990AR=$ac_cv_prog_AR
5991if test -n "$AR"; then
5992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5993$as_echo "$AR" >&6; }
5994else
5995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997fi
5998
5999
6000    test -n "$AR" && break
6001  done
6002fi
6003if test -z "$AR"; then
6004  ac_ct_AR=$AR
6005  for ac_prog in ar
6006do
6007  # Extract the first word of "$ac_prog", so it can be a program name with args.
6008set dummy $ac_prog; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if ${ac_cv_prog_ac_ct_AR+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  if test -n "$ac_ct_AR"; then
6015  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020  IFS=$as_save_IFS
6021  test -z "$as_dir" && as_dir=.
6022    for ac_exec_ext in '' $ac_executable_extensions; do
6023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024    ac_cv_prog_ac_ct_AR="$ac_prog"
6025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026    break 2
6027  fi
6028done
6029  done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034ac_ct_AR=$ac_cv_prog_ac_ct_AR
6035if test -n "$ac_ct_AR"; then
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6037$as_echo "$ac_ct_AR" >&6; }
6038else
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044  test -n "$ac_ct_AR" && break
6045done
6046
6047  if test "x$ac_ct_AR" = x; then
6048    AR="false"
6049  else
6050    case $cross_compiling:$ac_tool_warned in
6051yes:)
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054ac_tool_warned=yes ;;
6055esac
6056    AR=$ac_ct_AR
6057  fi
6058fi
6059
6060: ${AR=ar}
6061: ${AR_FLAGS=cru}
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6074$as_echo_n "checking for archiver @FILE support... " >&6; }
6075if ${lt_cv_ar_at_file+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  lt_cv_ar_at_file=no
6079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081
6082int
6083main ()
6084{
6085
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091  echo conftest.$ac_objext > conftest.lst
6092      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6093      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6094  (eval $lt_ar_try) 2>&5
6095  ac_status=$?
6096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097  test $ac_status = 0; }
6098      if test 0 -eq "$ac_status"; then
6099	# Ensure the archiver fails upon bogus file names.
6100	rm -f conftest.$ac_objext libconftest.a
6101	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6102  (eval $lt_ar_try) 2>&5
6103  ac_status=$?
6104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105  test $ac_status = 0; }
6106	if test 0 -ne "$ac_status"; then
6107          lt_cv_ar_at_file=@
6108        fi
6109      fi
6110      rm -f conftest.* libconftest.a
6111
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6117$as_echo "$lt_cv_ar_at_file" >&6; }
6118
6119if test no = "$lt_cv_ar_at_file"; then
6120  archiver_list_spec=
6121else
6122  archiver_list_spec=$lt_cv_ar_at_file
6123fi
6124
6125
6126
6127
6128
6129
6130
6131if test -n "$ac_tool_prefix"; then
6132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6133set dummy ${ac_tool_prefix}strip; ac_word=$2
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if ${ac_cv_prog_STRIP+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  if test -n "$STRIP"; then
6140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147    for ac_exec_ext in '' $ac_executable_extensions; do
6148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154  done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159STRIP=$ac_cv_prog_STRIP
6160if test -n "$STRIP"; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6162$as_echo "$STRIP" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168
6169fi
6170if test -z "$ac_cv_prog_STRIP"; then
6171  ac_ct_STRIP=$STRIP
6172  # Extract the first word of "strip", so it can be a program name with args.
6173set dummy strip; ac_word=$2
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175$as_echo_n "checking for $ac_word... " >&6; }
6176if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  if test -n "$ac_ct_STRIP"; then
6180  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185  IFS=$as_save_IFS
6186  test -z "$as_dir" && as_dir=.
6187    for ac_exec_ext in '' $ac_executable_extensions; do
6188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189    ac_cv_prog_ac_ct_STRIP="strip"
6190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191    break 2
6192  fi
6193done
6194  done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6200if test -n "$ac_ct_STRIP"; then
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6202$as_echo "$ac_ct_STRIP" >&6; }
6203else
6204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205$as_echo "no" >&6; }
6206fi
6207
6208  if test "x$ac_ct_STRIP" = x; then
6209    STRIP=":"
6210  else
6211    case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215ac_tool_warned=yes ;;
6216esac
6217    STRIP=$ac_ct_STRIP
6218  fi
6219else
6220  STRIP="$ac_cv_prog_STRIP"
6221fi
6222
6223test -z "$STRIP" && STRIP=:
6224
6225
6226
6227
6228
6229
6230if test -n "$ac_tool_prefix"; then
6231  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_RANLIB+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if test -n "$RANLIB"; then
6239  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_exec_ext in '' $ac_executable_extensions; do
6247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253  done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258RANLIB=$ac_cv_prog_RANLIB
6259if test -n "$RANLIB"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6261$as_echo "$RANLIB" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268fi
6269if test -z "$ac_cv_prog_RANLIB"; then
6270  ac_ct_RANLIB=$RANLIB
6271  # Extract the first word of "ranlib", so it can be a program name with args.
6272set dummy ranlib; 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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$ac_ct_RANLIB"; then
6279  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288    ac_cv_prog_ac_ct_RANLIB="ranlib"
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
6298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6299if test -n "$ac_ct_RANLIB"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6301$as_echo "$ac_ct_RANLIB" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307  if test "x$ac_ct_RANLIB" = x; then
6308    RANLIB=":"
6309  else
6310    case $cross_compiling:$ac_tool_warned in
6311yes:)
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314ac_tool_warned=yes ;;
6315esac
6316    RANLIB=$ac_ct_RANLIB
6317  fi
6318else
6319  RANLIB="$ac_cv_prog_RANLIB"
6320fi
6321
6322test -z "$RANLIB" && RANLIB=:
6323
6324
6325
6326
6327
6328
6329# Determine commands to create old-style static archives.
6330old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6331old_postinstall_cmds='chmod 644 $oldlib'
6332old_postuninstall_cmds=
6333
6334if test -n "$RANLIB"; then
6335  case $host_os in
6336  bitrig* | openbsd*)
6337    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6338    ;;
6339  *)
6340    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6341    ;;
6342  esac
6343  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6344fi
6345
6346case $host_os in
6347  darwin*)
6348    lock_old_archive_extraction=yes ;;
6349  *)
6350    lock_old_archive_extraction=no ;;
6351esac
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391# If no C compiler was specified, use CC.
6392LTCC=${LTCC-"$CC"}
6393
6394# If no C compiler flags were specified, use CFLAGS.
6395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6396
6397# Allow CC to be a program name with arguments.
6398compiler=$CC
6399
6400
6401# Check for command to grab the raw symbol name followed by C symbol from nm.
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6403$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6404if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407
6408# These are sane defaults that work on at least a few old systems.
6409# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6410
6411# Character class describing NM global symbol codes.
6412symcode='[BCDEGRST]'
6413
6414# Regexp to match symbols that can be accessed directly from C.
6415sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6416
6417# Define system-specific variables.
6418case $host_os in
6419aix*)
6420  symcode='[BCDT]'
6421  ;;
6422cygwin* | mingw* | pw32* | cegcc*)
6423  symcode='[ABCDGISTW]'
6424  ;;
6425hpux*)
6426  if test ia64 = "$host_cpu"; then
6427    symcode='[ABCDEGRST]'
6428  fi
6429  ;;
6430irix* | nonstopux*)
6431  symcode='[BCDEGRST]'
6432  ;;
6433osf*)
6434  symcode='[BCDEGQRST]'
6435  ;;
6436solaris*)
6437  symcode='[BDRT]'
6438  ;;
6439sco3.2v5*)
6440  symcode='[DT]'
6441  ;;
6442sysv4.2uw2*)
6443  symcode='[DT]'
6444  ;;
6445sysv5* | sco5v6* | unixware* | OpenUNIX*)
6446  symcode='[ABDT]'
6447  ;;
6448sysv4)
6449  symcode='[DFNSTU]'
6450  ;;
6451esac
6452
6453# If we're using GNU nm, then use its standard symbol codes.
6454case `$NM -V 2>&1` in
6455*GNU* | *'with BFD'*)
6456  symcode='[ABCDGIRSTW]' ;;
6457esac
6458
6459if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6460  # Gets list of data symbols to import.
6461  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6462  # Adjust the below global symbol transforms to fixup imported variables.
6463  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6464  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6465  lt_c_name_lib_hook="\
6466  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6467  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6468else
6469  # Disable hooks by default.
6470  lt_cv_sys_global_symbol_to_import=
6471  lt_cdecl_hook=
6472  lt_c_name_hook=
6473  lt_c_name_lib_hook=
6474fi
6475
6476# Transform an extracted symbol line into a proper C declaration.
6477# Some systems (esp. on ia64) link data and code symbols differently,
6478# so use this general approach.
6479lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6480$lt_cdecl_hook\
6481" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6482" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6483
6484# Transform an extracted symbol line into symbol name and symbol address
6485lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6486$lt_c_name_hook\
6487" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6488" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6489
6490# Transform an extracted symbol line into symbol name with lib prefix and
6491# symbol address.
6492lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6493$lt_c_name_lib_hook\
6494" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6495" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6496" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6497
6498# Handle CRLF in mingw tool chain
6499opt_cr=
6500case $build_os in
6501mingw*)
6502  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6503  ;;
6504esac
6505
6506# Try without a prefix underscore, then with it.
6507for ac_symprfx in "" "_"; do
6508
6509  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6510  symxfrm="\\1 $ac_symprfx\\2 \\2"
6511
6512  # Write the raw and C identifiers.
6513  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6514    # Fake it for dumpbin and say T for any non-static function,
6515    # D for any global variable and I for any imported variable.
6516    # Also find C++ and __fastcall symbols from MSVC++,
6517    # which start with @ or ?.
6518    lt_cv_sys_global_symbol_pipe="$AWK '"\
6519"     {last_section=section; section=\$ 3};"\
6520"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6521"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6522"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6523"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6524"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6525"     \$ 0!~/External *\|/{next};"\
6526"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6527"     {if(hide[section]) next};"\
6528"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6529"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6530"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6531"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6532"     ' prfx=^$ac_symprfx"
6533  else
6534    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6535  fi
6536  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6537
6538  # Check to see that the pipe works correctly.
6539  pipe_works=no
6540
6541  rm -f conftest*
6542  cat > conftest.$ac_ext <<_LT_EOF
6543#ifdef __cplusplus
6544extern "C" {
6545#endif
6546char nm_test_var;
6547void nm_test_func(void);
6548void nm_test_func(void){}
6549#ifdef __cplusplus
6550}
6551#endif
6552int main(){nm_test_var='a';nm_test_func();return(0);}
6553_LT_EOF
6554
6555  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6556  (eval $ac_compile) 2>&5
6557  ac_status=$?
6558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559  test $ac_status = 0; }; then
6560    # Now try to grab the symbols.
6561    nlist=conftest.nm
6562    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6563  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6564  ac_status=$?
6565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566  test $ac_status = 0; } && test -s "$nlist"; then
6567      # Try sorting and uniquifying the output.
6568      if sort "$nlist" | uniq > "$nlist"T; then
6569	mv -f "$nlist"T "$nlist"
6570      else
6571	rm -f "$nlist"T
6572      fi
6573
6574      # Make sure that we snagged all the symbols we need.
6575      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6576	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6577	  cat <<_LT_EOF > conftest.$ac_ext
6578/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6579#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6580/* DATA imports from DLLs on WIN32 can't be const, because runtime
6581   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6582# define LT_DLSYM_CONST
6583#elif defined __osf__
6584/* This system does not cope well with relocations in const data.  */
6585# define LT_DLSYM_CONST
6586#else
6587# define LT_DLSYM_CONST const
6588#endif
6589
6590#ifdef __cplusplus
6591extern "C" {
6592#endif
6593
6594_LT_EOF
6595	  # Now generate the symbol file.
6596	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6597
6598	  cat <<_LT_EOF >> conftest.$ac_ext
6599
6600/* The mapping between symbol names and symbols.  */
6601LT_DLSYM_CONST struct {
6602  const char *name;
6603  void       *address;
6604}
6605lt__PROGRAM__LTX_preloaded_symbols[] =
6606{
6607  { "@PROGRAM@", (void *) 0 },
6608_LT_EOF
6609	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6610	  cat <<\_LT_EOF >> conftest.$ac_ext
6611  {0, (void *) 0}
6612};
6613
6614/* This works around a problem in FreeBSD linker */
6615#ifdef FREEBSD_WORKAROUND
6616static const void *lt_preloaded_setup() {
6617  return lt__PROGRAM__LTX_preloaded_symbols;
6618}
6619#endif
6620
6621#ifdef __cplusplus
6622}
6623#endif
6624_LT_EOF
6625	  # Now try linking the two files.
6626	  mv conftest.$ac_objext conftstm.$ac_objext
6627	  lt_globsym_save_LIBS=$LIBS
6628	  lt_globsym_save_CFLAGS=$CFLAGS
6629	  LIBS=conftstm.$ac_objext
6630	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6631	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6632  (eval $ac_link) 2>&5
6633  ac_status=$?
6634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6636	    pipe_works=yes
6637	  fi
6638	  LIBS=$lt_globsym_save_LIBS
6639	  CFLAGS=$lt_globsym_save_CFLAGS
6640	else
6641	  echo "cannot find nm_test_func in $nlist" >&5
6642	fi
6643      else
6644	echo "cannot find nm_test_var in $nlist" >&5
6645      fi
6646    else
6647      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6648    fi
6649  else
6650    echo "$progname: failed program was:" >&5
6651    cat conftest.$ac_ext >&5
6652  fi
6653  rm -rf conftest* conftst*
6654
6655  # Do not use the global_symbol_pipe unless it works.
6656  if test yes = "$pipe_works"; then
6657    break
6658  else
6659    lt_cv_sys_global_symbol_pipe=
6660  fi
6661done
6662
6663fi
6664
6665if test -z "$lt_cv_sys_global_symbol_pipe"; then
6666  lt_cv_sys_global_symbol_to_cdecl=
6667fi
6668if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6670$as_echo "failed" >&6; }
6671else
6672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6673$as_echo "ok" >&6; }
6674fi
6675
6676# Response file support.
6677if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6678  nm_file_list_spec='@'
6679elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6680  nm_file_list_spec='@'
6681fi
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6720$as_echo_n "checking for sysroot... " >&6; }
6721
6722# Check whether --with-sysroot was given.
6723if test "${with_sysroot+set}" = set; then :
6724  withval=$with_sysroot;
6725else
6726  with_sysroot=no
6727fi
6728
6729
6730lt_sysroot=
6731case $with_sysroot in #(
6732 yes)
6733   if test yes = "$GCC"; then
6734     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6735   fi
6736   ;; #(
6737 /*)
6738   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6739   ;; #(
6740 no|'')
6741   ;; #(
6742 *)
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6744$as_echo "$with_sysroot" >&6; }
6745   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6746   ;;
6747esac
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6750$as_echo "${lt_sysroot:-no}" >&6; }
6751
6752
6753
6754
6755
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6757$as_echo_n "checking for a working dd... " >&6; }
6758if ${ac_cv_path_lt_DD+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761  printf 0123456789abcdef0123456789abcdef >conftest.i
6762cat conftest.i conftest.i >conftest2.i
6763: ${lt_DD:=$DD}
6764if test -z "$lt_DD"; then
6765  ac_path_lt_DD_found=false
6766  # Loop through the user's path and test for each of PROGNAME-LIST
6767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  test -z "$as_dir" && as_dir=.
6772    for ac_prog in dd; do
6773    for ac_exec_ext in '' $ac_executable_extensions; do
6774      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6775      as_fn_executable_p "$ac_path_lt_DD" || continue
6776if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6777  cmp -s conftest.i conftest.out \
6778  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6779fi
6780      $ac_path_lt_DD_found && break 3
6781    done
6782  done
6783  done
6784IFS=$as_save_IFS
6785  if test -z "$ac_cv_path_lt_DD"; then
6786    :
6787  fi
6788else
6789  ac_cv_path_lt_DD=$lt_DD
6790fi
6791
6792rm -f conftest.i conftest2.i conftest.out
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6795$as_echo "$ac_cv_path_lt_DD" >&6; }
6796
6797
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6799$as_echo_n "checking how to truncate binary pipes... " >&6; }
6800if ${lt_cv_truncate_bin+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  printf 0123456789abcdef0123456789abcdef >conftest.i
6804cat conftest.i conftest.i >conftest2.i
6805lt_cv_truncate_bin=
6806if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6807  cmp -s conftest.i conftest.out \
6808  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6809fi
6810rm -f conftest.i conftest2.i conftest.out
6811test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6814$as_echo "$lt_cv_truncate_bin" >&6; }
6815
6816
6817
6818
6819
6820
6821
6822# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6823func_cc_basename ()
6824{
6825    for cc_temp in $*""; do
6826      case $cc_temp in
6827        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6828        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6829        \-*) ;;
6830        *) break;;
6831      esac
6832    done
6833    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6834}
6835
6836# Check whether --enable-libtool-lock was given.
6837if test "${enable_libtool_lock+set}" = set; then :
6838  enableval=$enable_libtool_lock;
6839fi
6840
6841test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6842
6843# Some flags need to be propagated to the compiler or linker for good
6844# libtool support.
6845case $host in
6846ia64-*-hpux*)
6847  # Find out what ABI is being produced by ac_compile, and set mode
6848  # options accordingly.
6849  echo 'int i;' > conftest.$ac_ext
6850  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851  (eval $ac_compile) 2>&5
6852  ac_status=$?
6853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854  test $ac_status = 0; }; then
6855    case `/usr/bin/file conftest.$ac_objext` in
6856      *ELF-32*)
6857	HPUX_IA64_MODE=32
6858	;;
6859      *ELF-64*)
6860	HPUX_IA64_MODE=64
6861	;;
6862    esac
6863  fi
6864  rm -rf conftest*
6865  ;;
6866*-*-irix6*)
6867  # Find out what ABI is being produced by ac_compile, and set linker
6868  # options accordingly.
6869  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6870  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6871  (eval $ac_compile) 2>&5
6872  ac_status=$?
6873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874  test $ac_status = 0; }; then
6875    if test yes = "$lt_cv_prog_gnu_ld"; then
6876      case `/usr/bin/file conftest.$ac_objext` in
6877	*32-bit*)
6878	  LD="${LD-ld} -melf32bsmip"
6879	  ;;
6880	*N32*)
6881	  LD="${LD-ld} -melf32bmipn32"
6882	  ;;
6883	*64-bit*)
6884	  LD="${LD-ld} -melf64bmip"
6885	;;
6886      esac
6887    else
6888      case `/usr/bin/file conftest.$ac_objext` in
6889	*32-bit*)
6890	  LD="${LD-ld} -32"
6891	  ;;
6892	*N32*)
6893	  LD="${LD-ld} -n32"
6894	  ;;
6895	*64-bit*)
6896	  LD="${LD-ld} -64"
6897	  ;;
6898      esac
6899    fi
6900  fi
6901  rm -rf conftest*
6902  ;;
6903
6904mips64*-*linux*)
6905  # Find out what ABI is being produced by ac_compile, and set linker
6906  # options accordingly.
6907  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6909  (eval $ac_compile) 2>&5
6910  ac_status=$?
6911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912  test $ac_status = 0; }; then
6913    emul=elf
6914    case `/usr/bin/file conftest.$ac_objext` in
6915      *32-bit*)
6916	emul="${emul}32"
6917	;;
6918      *64-bit*)
6919	emul="${emul}64"
6920	;;
6921    esac
6922    case `/usr/bin/file conftest.$ac_objext` in
6923      *MSB*)
6924	emul="${emul}btsmip"
6925	;;
6926      *LSB*)
6927	emul="${emul}ltsmip"
6928	;;
6929    esac
6930    case `/usr/bin/file conftest.$ac_objext` in
6931      *N32*)
6932	emul="${emul}n32"
6933	;;
6934    esac
6935    LD="${LD-ld} -m $emul"
6936  fi
6937  rm -rf conftest*
6938  ;;
6939
6940x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6941s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6942  # Find out what ABI is being produced by ac_compile, and set linker
6943  # options accordingly.  Note that the listed cases only cover the
6944  # situations where additional linker options are needed (such as when
6945  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6946  # vice versa); the common cases where no linker options are needed do
6947  # not appear in the list.
6948  echo 'int i;' > conftest.$ac_ext
6949  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6950  (eval $ac_compile) 2>&5
6951  ac_status=$?
6952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953  test $ac_status = 0; }; then
6954    case `/usr/bin/file conftest.o` in
6955      *32-bit*)
6956	case $host in
6957	  x86_64-*kfreebsd*-gnu)
6958	    LD="${LD-ld} -m elf_i386_fbsd"
6959	    ;;
6960	  x86_64-*linux*)
6961	    case `/usr/bin/file conftest.o` in
6962	      *x86-64*)
6963		LD="${LD-ld} -m elf32_x86_64"
6964		;;
6965	      *)
6966		LD="${LD-ld} -m elf_i386"
6967		;;
6968	    esac
6969	    ;;
6970	  powerpc64le-*linux*)
6971	    LD="${LD-ld} -m elf32lppclinux"
6972	    ;;
6973	  powerpc64-*linux*)
6974	    LD="${LD-ld} -m elf32ppclinux"
6975	    ;;
6976	  s390x-*linux*)
6977	    LD="${LD-ld} -m elf_s390"
6978	    ;;
6979	  sparc64-*linux*)
6980	    LD="${LD-ld} -m elf32_sparc"
6981	    ;;
6982	esac
6983	;;
6984      *64-bit*)
6985	case $host in
6986	  x86_64-*kfreebsd*-gnu)
6987	    LD="${LD-ld} -m elf_x86_64_fbsd"
6988	    ;;
6989	  x86_64-*linux*)
6990	    LD="${LD-ld} -m elf_x86_64"
6991	    ;;
6992	  powerpcle-*linux*|powerpc64le-*linux*)
6993	    LD="${LD-ld} -m elf64lppc"
6994	    ;;
6995	  powerpc-*linux*|powerpc64-*linux*)
6996	    LD="${LD-ld} -m elf64ppc"
6997	    ;;
6998	  s390*-*linux*|s390*-*tpf*)
6999	    LD="${LD-ld} -m elf64_s390"
7000	    ;;
7001	  sparc*-*linux*)
7002	    LD="${LD-ld} -m elf64_sparc"
7003	    ;;
7004	esac
7005	;;
7006    esac
7007  fi
7008  rm -rf conftest*
7009  ;;
7010
7011*-*-sco3.2v5*)
7012  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7013  SAVE_CFLAGS=$CFLAGS
7014  CFLAGS="$CFLAGS -belf"
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7016$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7017if ${lt_cv_cc_needs_belf+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  ac_ext=c
7021ac_cpp='$CPP $CPPFLAGS'
7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h.  */
7028
7029int
7030main ()
7031{
7032
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037if ac_fn_c_try_link "$LINENO"; then :
7038  lt_cv_cc_needs_belf=yes
7039else
7040  lt_cv_cc_needs_belf=no
7041fi
7042rm -f core conftest.err conftest.$ac_objext \
7043    conftest$ac_exeext conftest.$ac_ext
7044     ac_ext=c
7045ac_cpp='$CPP $CPPFLAGS'
7046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7052$as_echo "$lt_cv_cc_needs_belf" >&6; }
7053  if test yes != "$lt_cv_cc_needs_belf"; then
7054    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7055    CFLAGS=$SAVE_CFLAGS
7056  fi
7057  ;;
7058*-*solaris*)
7059  # Find out what ABI is being produced by ac_compile, and set linker
7060  # options accordingly.
7061  echo 'int i;' > conftest.$ac_ext
7062  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7063  (eval $ac_compile) 2>&5
7064  ac_status=$?
7065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066  test $ac_status = 0; }; then
7067    case `/usr/bin/file conftest.o` in
7068    *64-bit*)
7069      case $lt_cv_prog_gnu_ld in
7070      yes*)
7071        case $host in
7072        i?86-*-solaris*|x86_64-*-solaris*)
7073          LD="${LD-ld} -m elf_x86_64"
7074          ;;
7075        sparc*-*-solaris*)
7076          LD="${LD-ld} -m elf64_sparc"
7077          ;;
7078        esac
7079        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7080        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7081          LD=${LD-ld}_sol2
7082        fi
7083        ;;
7084      *)
7085	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7086	  LD="${LD-ld} -64"
7087	fi
7088	;;
7089      esac
7090      ;;
7091    esac
7092  fi
7093  rm -rf conftest*
7094  ;;
7095esac
7096
7097need_locks=$enable_libtool_lock
7098
7099if test -n "$ac_tool_prefix"; then
7100  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7101set dummy ${ac_tool_prefix}mt; ac_word=$2
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
7104if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  if test -n "$MANIFEST_TOOL"; then
7108  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115    for ac_exec_ext in '' $ac_executable_extensions; do
7116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122  done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7128if test -n "$MANIFEST_TOOL"; then
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7130$as_echo "$MANIFEST_TOOL" >&6; }
7131else
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
7134fi
7135
7136
7137fi
7138if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7139  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7140  # Extract the first word of "mt", so it can be a program name with args.
7141set dummy mt; ac_word=$2
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143$as_echo_n "checking for $ac_word... " >&6; }
7144if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7145  $as_echo_n "(cached) " >&6
7146else
7147  if test -n "$ac_ct_MANIFEST_TOOL"; then
7148  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153  IFS=$as_save_IFS
7154  test -z "$as_dir" && as_dir=.
7155    for ac_exec_ext in '' $ac_executable_extensions; do
7156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159    break 2
7160  fi
7161done
7162  done
7163IFS=$as_save_IFS
7164
7165fi
7166fi
7167ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7168if test -n "$ac_ct_MANIFEST_TOOL"; then
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7170$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7171else
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173$as_echo "no" >&6; }
7174fi
7175
7176  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7177    MANIFEST_TOOL=":"
7178  else
7179    case $cross_compiling:$ac_tool_warned in
7180yes:)
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183ac_tool_warned=yes ;;
7184esac
7185    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7186  fi
7187else
7188  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7189fi
7190
7191test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7193$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7194if ${lt_cv_path_mainfest_tool+:} false; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  lt_cv_path_mainfest_tool=no
7198  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7199  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7200  cat conftest.err >&5
7201  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7202    lt_cv_path_mainfest_tool=yes
7203  fi
7204  rm -f conftest*
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7207$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7208if test yes != "$lt_cv_path_mainfest_tool"; then
7209  MANIFEST_TOOL=:
7210fi
7211
7212
7213
7214
7215
7216
7217  case $host_os in
7218    rhapsody* | darwin*)
7219    if test -n "$ac_tool_prefix"; then
7220  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7221set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
7224if ${ac_cv_prog_DSYMUTIL+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  if test -n "$DSYMUTIL"; then
7228  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233  IFS=$as_save_IFS
7234  test -z "$as_dir" && as_dir=.
7235    for ac_exec_ext in '' $ac_executable_extensions; do
7236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239    break 2
7240  fi
7241done
7242  done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247DSYMUTIL=$ac_cv_prog_DSYMUTIL
7248if test -n "$DSYMUTIL"; then
7249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7250$as_echo "$DSYMUTIL" >&6; }
7251else
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256
7257fi
7258if test -z "$ac_cv_prog_DSYMUTIL"; then
7259  ac_ct_DSYMUTIL=$DSYMUTIL
7260  # Extract the first word of "dsymutil", so it can be a program name with args.
7261set dummy dsymutil; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267  if test -n "$ac_ct_DSYMUTIL"; then
7268  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275    for ac_exec_ext in '' $ac_executable_extensions; do
7276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282  done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7288if test -n "$ac_ct_DSYMUTIL"; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7290$as_echo "$ac_ct_DSYMUTIL" >&6; }
7291else
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296  if test "x$ac_ct_DSYMUTIL" = x; then
7297    DSYMUTIL=":"
7298  else
7299    case $cross_compiling:$ac_tool_warned in
7300yes:)
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303ac_tool_warned=yes ;;
7304esac
7305    DSYMUTIL=$ac_ct_DSYMUTIL
7306  fi
7307else
7308  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7309fi
7310
7311    if test -n "$ac_tool_prefix"; then
7312  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7313set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if ${ac_cv_prog_NMEDIT+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -n "$NMEDIT"; then
7320  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_exec_ext in '' $ac_executable_extensions; do
7328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331    break 2
7332  fi
7333done
7334  done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339NMEDIT=$ac_cv_prog_NMEDIT
7340if test -n "$NMEDIT"; then
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7342$as_echo "$NMEDIT" >&6; }
7343else
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348
7349fi
7350if test -z "$ac_cv_prog_NMEDIT"; then
7351  ac_ct_NMEDIT=$NMEDIT
7352  # Extract the first word of "nmedit", so it can be a program name with args.
7353set dummy nmedit; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  if test -n "$ac_ct_NMEDIT"; then
7360  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_exec_ext in '' $ac_executable_extensions; do
7368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374  done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7380if test -n "$ac_ct_NMEDIT"; then
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7382$as_echo "$ac_ct_NMEDIT" >&6; }
7383else
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388  if test "x$ac_ct_NMEDIT" = x; then
7389    NMEDIT=":"
7390  else
7391    case $cross_compiling:$ac_tool_warned in
7392yes:)
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395ac_tool_warned=yes ;;
7396esac
7397    NMEDIT=$ac_ct_NMEDIT
7398  fi
7399else
7400  NMEDIT="$ac_cv_prog_NMEDIT"
7401fi
7402
7403    if test -n "$ac_tool_prefix"; then
7404  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}lipo; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if ${ac_cv_prog_LIPO+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  if test -n "$LIPO"; then
7412  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419    for ac_exec_ext in '' $ac_executable_extensions; do
7420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426  done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431LIPO=$ac_cv_prog_LIPO
7432if test -n "$LIPO"; then
7433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7434$as_echo "$LIPO" >&6; }
7435else
7436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441fi
7442if test -z "$ac_cv_prog_LIPO"; then
7443  ac_ct_LIPO=$LIPO
7444  # Extract the first word of "lipo", so it can be a program name with args.
7445set dummy lipo; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$ac_ct_LIPO"; then
7452  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461    ac_cv_prog_ac_ct_LIPO="lipo"
7462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7472if test -n "$ac_ct_LIPO"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7474$as_echo "$ac_ct_LIPO" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480  if test "x$ac_ct_LIPO" = x; then
7481    LIPO=":"
7482  else
7483    case $cross_compiling:$ac_tool_warned in
7484yes:)
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487ac_tool_warned=yes ;;
7488esac
7489    LIPO=$ac_ct_LIPO
7490  fi
7491else
7492  LIPO="$ac_cv_prog_LIPO"
7493fi
7494
7495    if test -n "$ac_tool_prefix"; then
7496  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7497set dummy ${ac_tool_prefix}otool; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_OTOOL+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$OTOOL"; then
7504  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523OTOOL=$ac_cv_prog_OTOOL
7524if test -n "$OTOOL"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7526$as_echo "$OTOOL" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532
7533fi
7534if test -z "$ac_cv_prog_OTOOL"; then
7535  ac_ct_OTOOL=$OTOOL
7536  # Extract the first word of "otool", so it can be a program name with args.
7537set dummy otool; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$ac_ct_OTOOL"; then
7544  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553    ac_cv_prog_ac_ct_OTOOL="otool"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7564if test -n "$ac_ct_OTOOL"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7566$as_echo "$ac_ct_OTOOL" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572  if test "x$ac_ct_OTOOL" = x; then
7573    OTOOL=":"
7574  else
7575    case $cross_compiling:$ac_tool_warned in
7576yes:)
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579ac_tool_warned=yes ;;
7580esac
7581    OTOOL=$ac_ct_OTOOL
7582  fi
7583else
7584  OTOOL="$ac_cv_prog_OTOOL"
7585fi
7586
7587    if test -n "$ac_tool_prefix"; then
7588  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7589set dummy ${ac_tool_prefix}otool64; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_OTOOL64+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  if test -n "$OTOOL64"; then
7596  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610  done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615OTOOL64=$ac_cv_prog_OTOOL64
7616if test -n "$OTOOL64"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7618$as_echo "$OTOOL64" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625fi
7626if test -z "$ac_cv_prog_OTOOL64"; then
7627  ac_ct_OTOOL64=$OTOOL64
7628  # Extract the first word of "otool64", so it can be a program name with args.
7629set dummy otool64; ac_word=$2
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  if test -n "$ac_ct_OTOOL64"; then
7636  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643    for ac_exec_ext in '' $ac_executable_extensions; do
7644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645    ac_cv_prog_ac_ct_OTOOL64="otool64"
7646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650  done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7656if test -n "$ac_ct_OTOOL64"; then
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7658$as_echo "$ac_ct_OTOOL64" >&6; }
7659else
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664  if test "x$ac_ct_OTOOL64" = x; then
7665    OTOOL64=":"
7666  else
7667    case $cross_compiling:$ac_tool_warned in
7668yes:)
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671ac_tool_warned=yes ;;
7672esac
7673    OTOOL64=$ac_ct_OTOOL64
7674  fi
7675else
7676  OTOOL64="$ac_cv_prog_OTOOL64"
7677fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7706$as_echo_n "checking for -single_module linker flag... " >&6; }
7707if ${lt_cv_apple_cc_single_mod+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  lt_cv_apple_cc_single_mod=no
7711      if test -z "$LT_MULTI_MODULE"; then
7712	# By default we will add the -single_module flag. You can override
7713	# by either setting the environment variable LT_MULTI_MODULE
7714	# non-empty at configure time, or by adding -multi_module to the
7715	# link flags.
7716	rm -rf libconftest.dylib*
7717	echo "int foo(void){return 1;}" > conftest.c
7718	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7719-dynamiclib -Wl,-single_module conftest.c" >&5
7720	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7721	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7722        _lt_result=$?
7723	# If there is a non-empty error log, and "single_module"
7724	# appears in it, assume the flag caused a linker warning
7725        if test -s conftest.err && $GREP single_module conftest.err; then
7726	  cat conftest.err >&5
7727	# Otherwise, if the output was created with a 0 exit code from
7728	# the compiler, it worked.
7729	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7730	  lt_cv_apple_cc_single_mod=yes
7731	else
7732	  cat conftest.err >&5
7733	fi
7734	rm -rf libconftest.dylib*
7735	rm -f conftest.*
7736      fi
7737fi
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7739$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7740
7741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7742$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7743if ${lt_cv_ld_exported_symbols_list+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  lt_cv_ld_exported_symbols_list=no
7747      save_LDFLAGS=$LDFLAGS
7748      echo "_main" > conftest.sym
7749      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752
7753int
7754main ()
7755{
7756
7757  ;
7758  return 0;
7759}
7760_ACEOF
7761if ac_fn_c_try_link "$LINENO"; then :
7762  lt_cv_ld_exported_symbols_list=yes
7763else
7764  lt_cv_ld_exported_symbols_list=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext \
7767    conftest$ac_exeext conftest.$ac_ext
7768	LDFLAGS=$save_LDFLAGS
7769
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7772$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7773
7774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7775$as_echo_n "checking for -force_load linker flag... " >&6; }
7776if ${lt_cv_ld_force_load+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  lt_cv_ld_force_load=no
7780      cat > conftest.c << _LT_EOF
7781int forced_loaded() { return 2;}
7782_LT_EOF
7783      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7784      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7785      echo "$AR cru libconftest.a conftest.o" >&5
7786      $AR cru libconftest.a conftest.o 2>&5
7787      echo "$RANLIB libconftest.a" >&5
7788      $RANLIB libconftest.a 2>&5
7789      cat > conftest.c << _LT_EOF
7790int main() { return 0;}
7791_LT_EOF
7792      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7793      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7794      _lt_result=$?
7795      if test -s conftest.err && $GREP force_load conftest.err; then
7796	cat conftest.err >&5
7797      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7798	lt_cv_ld_force_load=yes
7799      else
7800	cat conftest.err >&5
7801      fi
7802        rm -f conftest.err libconftest.a conftest conftest.c
7803        rm -rf conftest.dSYM
7804
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7807$as_echo "$lt_cv_ld_force_load" >&6; }
7808    case $host_os in
7809    rhapsody* | darwin1.[012])
7810      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7811    darwin1.*)
7812      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7813    darwin*) # darwin 5.x on
7814      # if running on 10.5 or later, the deployment target defaults
7815      # to the OS version, if on x86, and 10.4, the deployment
7816      # target defaults to 10.4. Don't you love it?
7817      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7818	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7819	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7820	10.[012][,.]*)
7821	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7822	10.*)
7823	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7824      esac
7825    ;;
7826  esac
7827    if test yes = "$lt_cv_apple_cc_single_mod"; then
7828      _lt_dar_single_mod='$single_module'
7829    fi
7830    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7831      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7832    else
7833      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7834    fi
7835    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7836      _lt_dsymutil='~$DSYMUTIL $lib || :'
7837    else
7838      _lt_dsymutil=
7839    fi
7840    ;;
7841  esac
7842
7843# func_munge_path_list VARIABLE PATH
7844# -----------------------------------
7845# VARIABLE is name of variable containing _space_ separated list of
7846# directories to be munged by the contents of PATH, which is string
7847# having a format:
7848# "DIR[:DIR]:"
7849#       string "DIR[ DIR]" will be prepended to VARIABLE
7850# ":DIR[:DIR]"
7851#       string "DIR[ DIR]" will be appended to VARIABLE
7852# "DIRP[:DIRP]::[DIRA:]DIRA"
7853#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7854#       "DIRA[ DIRA]" will be appended to VARIABLE
7855# "DIR[:DIR]"
7856#       VARIABLE will be replaced by "DIR[ DIR]"
7857func_munge_path_list ()
7858{
7859    case x$2 in
7860    x)
7861        ;;
7862    *:)
7863        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7864        ;;
7865    x:*)
7866        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7867        ;;
7868    *::*)
7869        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7870        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7871        ;;
7872    *)
7873        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7874        ;;
7875    esac
7876}
7877
7878ac_ext=c
7879ac_cpp='$CPP $CPPFLAGS'
7880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7884$as_echo_n "checking how to run the C preprocessor... " >&6; }
7885# On Suns, sometimes $CPP names a directory.
7886if test -n "$CPP" && test -d "$CPP"; then
7887  CPP=
7888fi
7889if test -z "$CPP"; then
7890  if ${ac_cv_prog_CPP+:} false; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893      # Double quotes because CPP needs to be expanded
7894    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7895    do
7896      ac_preproc_ok=false
7897for ac_c_preproc_warn_flag in '' yes
7898do
7899  # Use a header file that comes with gcc, so configuring glibc
7900  # with a fresh cross-compiler works.
7901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902  # <limits.h> exists even on freestanding compilers.
7903  # On the NeXT, cc -E runs the code through the compiler's parser,
7904  # not just through cpp. "Syntax error" is here to catch this case.
7905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h.  */
7907#ifdef __STDC__
7908# include <limits.h>
7909#else
7910# include <assert.h>
7911#endif
7912		     Syntax error
7913_ACEOF
7914if ac_fn_c_try_cpp "$LINENO"; then :
7915
7916else
7917  # Broken: fails on valid input.
7918continue
7919fi
7920rm -f conftest.err conftest.i conftest.$ac_ext
7921
7922  # OK, works on sane cases.  Now check whether nonexistent headers
7923  # can be detected and how.
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926#include <ac_nonexistent.h>
7927_ACEOF
7928if ac_fn_c_try_cpp "$LINENO"; then :
7929  # Broken: success on invalid input.
7930continue
7931else
7932  # Passes both tests.
7933ac_preproc_ok=:
7934break
7935fi
7936rm -f conftest.err conftest.i conftest.$ac_ext
7937
7938done
7939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7940rm -f conftest.i conftest.err conftest.$ac_ext
7941if $ac_preproc_ok; then :
7942  break
7943fi
7944
7945    done
7946    ac_cv_prog_CPP=$CPP
7947
7948fi
7949  CPP=$ac_cv_prog_CPP
7950else
7951  ac_cv_prog_CPP=$CPP
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7954$as_echo "$CPP" >&6; }
7955ac_preproc_ok=false
7956for ac_c_preproc_warn_flag in '' yes
7957do
7958  # Use a header file that comes with gcc, so configuring glibc
7959  # with a fresh cross-compiler works.
7960  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7961  # <limits.h> exists even on freestanding compilers.
7962  # On the NeXT, cc -E runs the code through the compiler's parser,
7963  # not just through cpp. "Syntax error" is here to catch this case.
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966#ifdef __STDC__
7967# include <limits.h>
7968#else
7969# include <assert.h>
7970#endif
7971		     Syntax error
7972_ACEOF
7973if ac_fn_c_try_cpp "$LINENO"; then :
7974
7975else
7976  # Broken: fails on valid input.
7977continue
7978fi
7979rm -f conftest.err conftest.i conftest.$ac_ext
7980
7981  # OK, works on sane cases.  Now check whether nonexistent headers
7982  # can be detected and how.
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985#include <ac_nonexistent.h>
7986_ACEOF
7987if ac_fn_c_try_cpp "$LINENO"; then :
7988  # Broken: success on invalid input.
7989continue
7990else
7991  # Passes both tests.
7992ac_preproc_ok=:
7993break
7994fi
7995rm -f conftest.err conftest.i conftest.$ac_ext
7996
7997done
7998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7999rm -f conftest.i conftest.err conftest.$ac_ext
8000if $ac_preproc_ok; then :
8001
8002else
8003  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8005as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8006See \`config.log' for more details" "$LINENO" 5; }
8007fi
8008
8009ac_ext=c
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014
8015
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8017$as_echo_n "checking for ANSI C header files... " >&6; }
8018if ${ac_cv_header_stdc+:} false; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023#include <stdlib.h>
8024#include <stdarg.h>
8025#include <string.h>
8026#include <float.h>
8027
8028int
8029main ()
8030{
8031
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036if ac_fn_c_try_compile "$LINENO"; then :
8037  ac_cv_header_stdc=yes
8038else
8039  ac_cv_header_stdc=no
8040fi
8041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042
8043if test $ac_cv_header_stdc = yes; then
8044  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047#include <string.h>
8048
8049_ACEOF
8050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051  $EGREP "memchr" >/dev/null 2>&1; then :
8052
8053else
8054  ac_cv_header_stdc=no
8055fi
8056rm -f conftest*
8057
8058fi
8059
8060if test $ac_cv_header_stdc = yes; then
8061  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064#include <stdlib.h>
8065
8066_ACEOF
8067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068  $EGREP "free" >/dev/null 2>&1; then :
8069
8070else
8071  ac_cv_header_stdc=no
8072fi
8073rm -f conftest*
8074
8075fi
8076
8077if test $ac_cv_header_stdc = yes; then
8078  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8079  if test "$cross_compiling" = yes; then :
8080  :
8081else
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084#include <ctype.h>
8085#include <stdlib.h>
8086#if ((' ' & 0x0FF) == 0x020)
8087# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8088# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8089#else
8090# define ISLOWER(c) \
8091		   (('a' <= (c) && (c) <= 'i') \
8092		     || ('j' <= (c) && (c) <= 'r') \
8093		     || ('s' <= (c) && (c) <= 'z'))
8094# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095#endif
8096
8097#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8098int
8099main ()
8100{
8101  int i;
8102  for (i = 0; i < 256; i++)
8103    if (XOR (islower (i), ISLOWER (i))
8104	|| toupper (i) != TOUPPER (i))
8105      return 2;
8106  return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_run "$LINENO"; then :
8110
8111else
8112  ac_cv_header_stdc=no
8113fi
8114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8115  conftest.$ac_objext conftest.beam conftest.$ac_ext
8116fi
8117
8118fi
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8121$as_echo "$ac_cv_header_stdc" >&6; }
8122if test $ac_cv_header_stdc = yes; then
8123
8124$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8125
8126fi
8127
8128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8129for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8130		  inttypes.h stdint.h unistd.h
8131do :
8132  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8133ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8134"
8135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8136  cat >>confdefs.h <<_ACEOF
8137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138_ACEOF
8139
8140fi
8141
8142done
8143
8144
8145for ac_header in dlfcn.h
8146do :
8147  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8148"
8149if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8150  cat >>confdefs.h <<_ACEOF
8151#define HAVE_DLFCN_H 1
8152_ACEOF
8153
8154fi
8155
8156done
8157
8158
8159
8160
8161
8162# Set options
8163
8164
8165
8166        enable_dlopen=no
8167
8168
8169  enable_win32_dll=no
8170
8171
8172            # Check whether --enable-shared was given.
8173if test "${enable_shared+set}" = set; then :
8174  enableval=$enable_shared; p=${PACKAGE-default}
8175    case $enableval in
8176    yes) enable_shared=yes ;;
8177    no) enable_shared=no ;;
8178    *)
8179      enable_shared=no
8180      # Look at the argument we got.  We use all the common list separators.
8181      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8182      for pkg in $enableval; do
8183	IFS=$lt_save_ifs
8184	if test "X$pkg" = "X$p"; then
8185	  enable_shared=yes
8186	fi
8187      done
8188      IFS=$lt_save_ifs
8189      ;;
8190    esac
8191else
8192  enable_shared=yes
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203  # Check whether --enable-static was given.
8204if test "${enable_static+set}" = set; then :
8205  enableval=$enable_static; p=${PACKAGE-default}
8206    case $enableval in
8207    yes) enable_static=yes ;;
8208    no) enable_static=no ;;
8209    *)
8210     enable_static=no
8211      # Look at the argument we got.  We use all the common list separators.
8212      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8213      for pkg in $enableval; do
8214	IFS=$lt_save_ifs
8215	if test "X$pkg" = "X$p"; then
8216	  enable_static=yes
8217	fi
8218      done
8219      IFS=$lt_save_ifs
8220      ;;
8221    esac
8222else
8223  enable_static=yes
8224fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235# Check whether --with-pic was given.
8236if test "${with_pic+set}" = set; then :
8237  withval=$with_pic; lt_p=${PACKAGE-default}
8238    case $withval in
8239    yes|no) pic_mode=$withval ;;
8240    *)
8241      pic_mode=default
8242      # Look at the argument we got.  We use all the common list separators.
8243      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8244      for lt_pkg in $withval; do
8245	IFS=$lt_save_ifs
8246	if test "X$lt_pkg" = "X$lt_p"; then
8247	  pic_mode=yes
8248	fi
8249      done
8250      IFS=$lt_save_ifs
8251      ;;
8252    esac
8253else
8254  pic_mode=default
8255fi
8256
8257
8258
8259
8260
8261
8262
8263
8264  # Check whether --enable-fast-install was given.
8265if test "${enable_fast_install+set}" = set; then :
8266  enableval=$enable_fast_install; p=${PACKAGE-default}
8267    case $enableval in
8268    yes) enable_fast_install=yes ;;
8269    no) enable_fast_install=no ;;
8270    *)
8271      enable_fast_install=no
8272      # Look at the argument we got.  We use all the common list separators.
8273      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8274      for pkg in $enableval; do
8275	IFS=$lt_save_ifs
8276	if test "X$pkg" = "X$p"; then
8277	  enable_fast_install=yes
8278	fi
8279      done
8280      IFS=$lt_save_ifs
8281      ;;
8282    esac
8283else
8284  enable_fast_install=yes
8285fi
8286
8287
8288
8289
8290
8291
8292
8293
8294  shared_archive_member_spec=
8295case $host,$enable_shared in
8296power*-*-aix[5-9]*,yes)
8297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8298$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8299
8300# Check whether --with-aix-soname was given.
8301if test "${with_aix_soname+set}" = set; then :
8302  withval=$with_aix_soname; case $withval in
8303    aix|svr4|both)
8304      ;;
8305    *)
8306      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8307      ;;
8308    esac
8309    lt_cv_with_aix_soname=$with_aix_soname
8310else
8311  if ${lt_cv_with_aix_soname+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  lt_cv_with_aix_soname=aix
8315fi
8316
8317    with_aix_soname=$lt_cv_with_aix_soname
8318fi
8319
8320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8321$as_echo "$with_aix_soname" >&6; }
8322  if test aix != "$with_aix_soname"; then
8323    # For the AIX way of multilib, we name the shared archive member
8324    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8325    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8326    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8327    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8328    if test 64 = "${OBJECT_MODE-32}"; then
8329      shared_archive_member_spec=shr_64
8330    else
8331      shared_archive_member_spec=shr
8332    fi
8333  fi
8334  ;;
8335*)
8336  with_aix_soname=aix
8337  ;;
8338esac
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349# This can be used to rebuild libtool when needed
8350LIBTOOL_DEPS=$ltmain
8351
8352# Always use our own libtool.
8353LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384test -z "$LN_S" && LN_S="ln -s"
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399if test -n "${ZSH_VERSION+set}"; then
8400   setopt NO_GLOB_SUBST
8401fi
8402
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8404$as_echo_n "checking for objdir... " >&6; }
8405if ${lt_cv_objdir+:} false; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  rm -f .libs 2>/dev/null
8409mkdir .libs 2>/dev/null
8410if test -d .libs; then
8411  lt_cv_objdir=.libs
8412else
8413  # MS-DOS does not allow filenames that begin with a dot.
8414  lt_cv_objdir=_libs
8415fi
8416rmdir .libs 2>/dev/null
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8419$as_echo "$lt_cv_objdir" >&6; }
8420objdir=$lt_cv_objdir
8421
8422
8423
8424
8425
8426cat >>confdefs.h <<_ACEOF
8427#define LT_OBJDIR "$lt_cv_objdir/"
8428_ACEOF
8429
8430
8431
8432
8433case $host_os in
8434aix3*)
8435  # AIX sometimes has problems with the GCC collect2 program.  For some
8436  # reason, if we set the COLLECT_NAMES environment variable, the problems
8437  # vanish in a puff of smoke.
8438  if test set != "${COLLECT_NAMES+set}"; then
8439    COLLECT_NAMES=
8440    export COLLECT_NAMES
8441  fi
8442  ;;
8443esac
8444
8445# Global variables:
8446ofile=libtool
8447can_build_shared=yes
8448
8449# All known linkers require a '.a' archive for static linking (except MSVC,
8450# which needs '.lib').
8451libext=a
8452
8453with_gnu_ld=$lt_cv_prog_gnu_ld
8454
8455old_CC=$CC
8456old_CFLAGS=$CFLAGS
8457
8458# Set sane defaults for various variables
8459test -z "$CC" && CC=cc
8460test -z "$LTCC" && LTCC=$CC
8461test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8462test -z "$LD" && LD=ld
8463test -z "$ac_objext" && ac_objext=o
8464
8465func_cc_basename $compiler
8466cc_basename=$func_cc_basename_result
8467
8468
8469# Only perform the check for file, if the check method requires it
8470test -z "$MAGIC_CMD" && MAGIC_CMD=file
8471case $deplibs_check_method in
8472file_magic*)
8473  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8475$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8476if ${lt_cv_path_MAGIC_CMD+:} false; then :
8477  $as_echo_n "(cached) " >&6
8478else
8479  case $MAGIC_CMD in
8480[\\/*] |  ?:[\\/]*)
8481  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8482  ;;
8483*)
8484  lt_save_MAGIC_CMD=$MAGIC_CMD
8485  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8486  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8487  for ac_dir in $ac_dummy; do
8488    IFS=$lt_save_ifs
8489    test -z "$ac_dir" && ac_dir=.
8490    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8491      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8492      if test -n "$file_magic_test_file"; then
8493	case $deplibs_check_method in
8494	"file_magic "*)
8495	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8496	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8497	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8498	    $EGREP "$file_magic_regex" > /dev/null; then
8499	    :
8500	  else
8501	    cat <<_LT_EOF 1>&2
8502
8503*** Warning: the command libtool uses to detect shared libraries,
8504*** $file_magic_cmd, produces output that libtool cannot recognize.
8505*** The result is that libtool may fail to recognize shared libraries
8506*** as such.  This will affect the creation of libtool libraries that
8507*** depend on shared libraries, but programs linked with such libtool
8508*** libraries will work regardless of this problem.  Nevertheless, you
8509*** may want to report the problem to your system manager and/or to
8510*** bug-libtool@gnu.org
8511
8512_LT_EOF
8513	  fi ;;
8514	esac
8515      fi
8516      break
8517    fi
8518  done
8519  IFS=$lt_save_ifs
8520  MAGIC_CMD=$lt_save_MAGIC_CMD
8521  ;;
8522esac
8523fi
8524
8525MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8526if test -n "$MAGIC_CMD"; then
8527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8528$as_echo "$MAGIC_CMD" >&6; }
8529else
8530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531$as_echo "no" >&6; }
8532fi
8533
8534
8535
8536
8537
8538if test -z "$lt_cv_path_MAGIC_CMD"; then
8539  if test -n "$ac_tool_prefix"; then
8540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8541$as_echo_n "checking for file... " >&6; }
8542if ${lt_cv_path_MAGIC_CMD+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  case $MAGIC_CMD in
8546[\\/*] |  ?:[\\/]*)
8547  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8548  ;;
8549*)
8550  lt_save_MAGIC_CMD=$MAGIC_CMD
8551  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8552  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8553  for ac_dir in $ac_dummy; do
8554    IFS=$lt_save_ifs
8555    test -z "$ac_dir" && ac_dir=.
8556    if test -f "$ac_dir/file"; then
8557      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8558      if test -n "$file_magic_test_file"; then
8559	case $deplibs_check_method in
8560	"file_magic "*)
8561	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8562	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8563	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8564	    $EGREP "$file_magic_regex" > /dev/null; then
8565	    :
8566	  else
8567	    cat <<_LT_EOF 1>&2
8568
8569*** Warning: the command libtool uses to detect shared libraries,
8570*** $file_magic_cmd, produces output that libtool cannot recognize.
8571*** The result is that libtool may fail to recognize shared libraries
8572*** as such.  This will affect the creation of libtool libraries that
8573*** depend on shared libraries, but programs linked with such libtool
8574*** libraries will work regardless of this problem.  Nevertheless, you
8575*** may want to report the problem to your system manager and/or to
8576*** bug-libtool@gnu.org
8577
8578_LT_EOF
8579	  fi ;;
8580	esac
8581      fi
8582      break
8583    fi
8584  done
8585  IFS=$lt_save_ifs
8586  MAGIC_CMD=$lt_save_MAGIC_CMD
8587  ;;
8588esac
8589fi
8590
8591MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8592if test -n "$MAGIC_CMD"; then
8593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8594$as_echo "$MAGIC_CMD" >&6; }
8595else
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
8598fi
8599
8600
8601  else
8602    MAGIC_CMD=:
8603  fi
8604fi
8605
8606  fi
8607  ;;
8608esac
8609
8610# Use C for the default configuration in the libtool script
8611
8612lt_save_CC=$CC
8613ac_ext=c
8614ac_cpp='$CPP $CPPFLAGS'
8615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8617ac_compiler_gnu=$ac_cv_c_compiler_gnu
8618
8619
8620# Source file extension for C test sources.
8621ac_ext=c
8622
8623# Object file extension for compiled C test sources.
8624objext=o
8625objext=$objext
8626
8627# Code to be used in simple compile tests
8628lt_simple_compile_test_code="int some_variable = 0;"
8629
8630# Code to be used in simple link tests
8631lt_simple_link_test_code='int main(){return(0);}'
8632
8633
8634
8635
8636
8637
8638
8639# If no C compiler was specified, use CC.
8640LTCC=${LTCC-"$CC"}
8641
8642# If no C compiler flags were specified, use CFLAGS.
8643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8644
8645# Allow CC to be a program name with arguments.
8646compiler=$CC
8647
8648# Save the default compiler, since it gets overwritten when the other
8649# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8650compiler_DEFAULT=$CC
8651
8652# save warnings/boilerplate of simple test code
8653ac_outfile=conftest.$ac_objext
8654echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8655eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8656_lt_compiler_boilerplate=`cat conftest.err`
8657$RM conftest*
8658
8659ac_outfile=conftest.$ac_objext
8660echo "$lt_simple_link_test_code" >conftest.$ac_ext
8661eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8662_lt_linker_boilerplate=`cat conftest.err`
8663$RM -r conftest*
8664
8665
8666if test -n "$compiler"; then
8667
8668lt_prog_compiler_no_builtin_flag=
8669
8670if test yes = "$GCC"; then
8671  case $cc_basename in
8672  nvcc*)
8673    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8674  *)
8675    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8676  esac
8677
8678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8679$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8680if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  lt_cv_prog_compiler_rtti_exceptions=no
8684   ac_outfile=conftest.$ac_objext
8685   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8686   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8687   # Insert the option either (1) after the last *FLAGS variable, or
8688   # (2) before a word containing "conftest.", or (3) at the end.
8689   # Note that $ac_compile itself does not contain backslashes and begins
8690   # with a dollar sign (not a hyphen), so the echo should work correctly.
8691   # The option is referenced via a variable to avoid confusing sed.
8692   lt_compile=`echo "$ac_compile" | $SED \
8693   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8694   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8695   -e 's:$: $lt_compiler_flag:'`
8696   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8697   (eval "$lt_compile" 2>conftest.err)
8698   ac_status=$?
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   if (exit $ac_status) && test -s "$ac_outfile"; then
8702     # The compiler can only warn and ignore the option if not recognized
8703     # So say no if there are warnings other than the usual output.
8704     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8705     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8706     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8707       lt_cv_prog_compiler_rtti_exceptions=yes
8708     fi
8709   fi
8710   $RM conftest*
8711
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8714$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8715
8716if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8717    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8718else
8719    :
8720fi
8721
8722fi
8723
8724
8725
8726
8727
8728
8729  lt_prog_compiler_wl=
8730lt_prog_compiler_pic=
8731lt_prog_compiler_static=
8732
8733
8734  if test yes = "$GCC"; then
8735    lt_prog_compiler_wl='-Wl,'
8736    lt_prog_compiler_static='-static'
8737
8738    case $host_os in
8739      aix*)
8740      # All AIX code is PIC.
8741      if test ia64 = "$host_cpu"; then
8742	# AIX 5 now supports IA64 processor
8743	lt_prog_compiler_static='-Bstatic'
8744      fi
8745      lt_prog_compiler_pic='-fPIC'
8746      ;;
8747
8748    amigaos*)
8749      case $host_cpu in
8750      powerpc)
8751            # see comment about AmigaOS4 .so support
8752            lt_prog_compiler_pic='-fPIC'
8753        ;;
8754      m68k)
8755            # FIXME: we need at least 68020 code to build shared libraries, but
8756            # adding the '-m68020' flag to GCC prevents building anything better,
8757            # like '-m68040'.
8758            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8759        ;;
8760      esac
8761      ;;
8762
8763    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8764      # PIC is the default for these OSes.
8765      ;;
8766
8767    mingw* | cygwin* | pw32* | os2* | cegcc*)
8768      # This hack is so that the source file can tell whether it is being
8769      # built for inclusion in a dll (and should export symbols for example).
8770      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8771      # (--disable-auto-import) libraries
8772      lt_prog_compiler_pic='-DDLL_EXPORT'
8773      case $host_os in
8774      os2*)
8775	lt_prog_compiler_static='$wl-static'
8776	;;
8777      esac
8778      ;;
8779
8780    darwin* | rhapsody*)
8781      # PIC is the default on this platform
8782      # Common symbols not allowed in MH_DYLIB files
8783      lt_prog_compiler_pic='-fno-common'
8784      ;;
8785
8786    haiku*)
8787      # PIC is the default for Haiku.
8788      # The "-static" flag exists, but is broken.
8789      lt_prog_compiler_static=
8790      ;;
8791
8792    hpux*)
8793      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8794      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8795      # sets the default TLS model and affects inlining.
8796      case $host_cpu in
8797      hppa*64*)
8798	# +Z the default
8799	;;
8800      *)
8801	lt_prog_compiler_pic='-fPIC'
8802	;;
8803      esac
8804      ;;
8805
8806    interix[3-9]*)
8807      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8808      # Instead, we relocate shared libraries at runtime.
8809      ;;
8810
8811    msdosdjgpp*)
8812      # Just because we use GCC doesn't mean we suddenly get shared libraries
8813      # on systems that don't support them.
8814      lt_prog_compiler_can_build_shared=no
8815      enable_shared=no
8816      ;;
8817
8818    *nto* | *qnx*)
8819      # QNX uses GNU C++, but need to define -shared option too, otherwise
8820      # it will coredump.
8821      lt_prog_compiler_pic='-fPIC -shared'
8822      ;;
8823
8824    sysv4*MP*)
8825      if test -d /usr/nec; then
8826	lt_prog_compiler_pic=-Kconform_pic
8827      fi
8828      ;;
8829
8830    *)
8831      lt_prog_compiler_pic='-fPIC'
8832      ;;
8833    esac
8834
8835    case $cc_basename in
8836    nvcc*) # Cuda Compiler Driver 2.2
8837      lt_prog_compiler_wl='-Xlinker '
8838      if test -n "$lt_prog_compiler_pic"; then
8839        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8840      fi
8841      ;;
8842    esac
8843  else
8844    # PORTME Check for flag to pass linker flags through the system compiler.
8845    case $host_os in
8846    aix*)
8847      lt_prog_compiler_wl='-Wl,'
8848      if test ia64 = "$host_cpu"; then
8849	# AIX 5 now supports IA64 processor
8850	lt_prog_compiler_static='-Bstatic'
8851      else
8852	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8853      fi
8854      ;;
8855
8856    darwin* | rhapsody*)
8857      # PIC is the default on this platform
8858      # Common symbols not allowed in MH_DYLIB files
8859      lt_prog_compiler_pic='-fno-common'
8860      case $cc_basename in
8861      nagfor*)
8862        # NAG Fortran compiler
8863        lt_prog_compiler_wl='-Wl,-Wl,,'
8864        lt_prog_compiler_pic='-PIC'
8865        lt_prog_compiler_static='-Bstatic'
8866        ;;
8867      esac
8868      ;;
8869
8870    mingw* | cygwin* | pw32* | os2* | cegcc*)
8871      # This hack is so that the source file can tell whether it is being
8872      # built for inclusion in a dll (and should export symbols for example).
8873      lt_prog_compiler_pic='-DDLL_EXPORT'
8874      case $host_os in
8875      os2*)
8876	lt_prog_compiler_static='$wl-static'
8877	;;
8878      esac
8879      ;;
8880
8881    hpux9* | hpux10* | hpux11*)
8882      lt_prog_compiler_wl='-Wl,'
8883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8884      # not for PA HP-UX.
8885      case $host_cpu in
8886      hppa*64*|ia64*)
8887	# +Z the default
8888	;;
8889      *)
8890	lt_prog_compiler_pic='+Z'
8891	;;
8892      esac
8893      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8894      lt_prog_compiler_static='$wl-a ${wl}archive'
8895      ;;
8896
8897    irix5* | irix6* | nonstopux*)
8898      lt_prog_compiler_wl='-Wl,'
8899      # PIC (with -KPIC) is the default.
8900      lt_prog_compiler_static='-non_shared'
8901      ;;
8902
8903    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8904      case $cc_basename in
8905      # old Intel for x86_64, which still supported -KPIC.
8906      ecc*)
8907	lt_prog_compiler_wl='-Wl,'
8908	lt_prog_compiler_pic='-KPIC'
8909	lt_prog_compiler_static='-static'
8910        ;;
8911      # icc used to be incompatible with GCC.
8912      # ICC 10 doesn't accept -KPIC any more.
8913      icc* | ifort*)
8914	lt_prog_compiler_wl='-Wl,'
8915	lt_prog_compiler_pic='-fPIC'
8916	lt_prog_compiler_static='-static'
8917        ;;
8918      # Lahey Fortran 8.1.
8919      lf95*)
8920	lt_prog_compiler_wl='-Wl,'
8921	lt_prog_compiler_pic='--shared'
8922	lt_prog_compiler_static='--static'
8923	;;
8924      nagfor*)
8925	# NAG Fortran compiler
8926	lt_prog_compiler_wl='-Wl,-Wl,,'
8927	lt_prog_compiler_pic='-PIC'
8928	lt_prog_compiler_static='-Bstatic'
8929	;;
8930      tcc*)
8931	# Fabrice Bellard et al's Tiny C Compiler
8932	lt_prog_compiler_wl='-Wl,'
8933	lt_prog_compiler_pic='-fPIC'
8934	lt_prog_compiler_static='-static'
8935	;;
8936      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8937        # Portland Group compilers (*not* the Pentium gcc compiler,
8938	# which looks to be a dead project)
8939	lt_prog_compiler_wl='-Wl,'
8940	lt_prog_compiler_pic='-fpic'
8941	lt_prog_compiler_static='-Bstatic'
8942        ;;
8943      ccc*)
8944        lt_prog_compiler_wl='-Wl,'
8945        # All Alpha code is PIC.
8946        lt_prog_compiler_static='-non_shared'
8947        ;;
8948      xl* | bgxl* | bgf* | mpixl*)
8949	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8950	lt_prog_compiler_wl='-Wl,'
8951	lt_prog_compiler_pic='-qpic'
8952	lt_prog_compiler_static='-qstaticlink'
8953	;;
8954      *)
8955	case `$CC -V 2>&1 | sed 5q` in
8956	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8957	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958	  lt_prog_compiler_pic='-KPIC'
8959	  lt_prog_compiler_static='-Bstatic'
8960	  lt_prog_compiler_wl=''
8961	  ;;
8962	*Sun\ F* | *Sun*Fortran*)
8963	  lt_prog_compiler_pic='-KPIC'
8964	  lt_prog_compiler_static='-Bstatic'
8965	  lt_prog_compiler_wl='-Qoption ld '
8966	  ;;
8967	*Sun\ C*)
8968	  # Sun C 5.9
8969	  lt_prog_compiler_pic='-KPIC'
8970	  lt_prog_compiler_static='-Bstatic'
8971	  lt_prog_compiler_wl='-Wl,'
8972	  ;;
8973        *Intel*\ [CF]*Compiler*)
8974	  lt_prog_compiler_wl='-Wl,'
8975	  lt_prog_compiler_pic='-fPIC'
8976	  lt_prog_compiler_static='-static'
8977	  ;;
8978	*Portland\ Group*)
8979	  lt_prog_compiler_wl='-Wl,'
8980	  lt_prog_compiler_pic='-fpic'
8981	  lt_prog_compiler_static='-Bstatic'
8982	  ;;
8983	esac
8984	;;
8985      esac
8986      ;;
8987
8988    newsos6)
8989      lt_prog_compiler_pic='-KPIC'
8990      lt_prog_compiler_static='-Bstatic'
8991      ;;
8992
8993    *nto* | *qnx*)
8994      # QNX uses GNU C++, but need to define -shared option too, otherwise
8995      # it will coredump.
8996      lt_prog_compiler_pic='-fPIC -shared'
8997      ;;
8998
8999    osf3* | osf4* | osf5*)
9000      lt_prog_compiler_wl='-Wl,'
9001      # All OSF/1 code is PIC.
9002      lt_prog_compiler_static='-non_shared'
9003      ;;
9004
9005    rdos*)
9006      lt_prog_compiler_static='-non_shared'
9007      ;;
9008
9009    solaris*)
9010      lt_prog_compiler_pic='-KPIC'
9011      lt_prog_compiler_static='-Bstatic'
9012      case $cc_basename in
9013      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9014	lt_prog_compiler_wl='-Qoption ld ';;
9015      *)
9016	lt_prog_compiler_wl='-Wl,';;
9017      esac
9018      ;;
9019
9020    sunos4*)
9021      lt_prog_compiler_wl='-Qoption ld '
9022      lt_prog_compiler_pic='-PIC'
9023      lt_prog_compiler_static='-Bstatic'
9024      ;;
9025
9026    sysv4 | sysv4.2uw2* | sysv4.3*)
9027      lt_prog_compiler_wl='-Wl,'
9028      lt_prog_compiler_pic='-KPIC'
9029      lt_prog_compiler_static='-Bstatic'
9030      ;;
9031
9032    sysv4*MP*)
9033      if test -d /usr/nec; then
9034	lt_prog_compiler_pic='-Kconform_pic'
9035	lt_prog_compiler_static='-Bstatic'
9036      fi
9037      ;;
9038
9039    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9040      lt_prog_compiler_wl='-Wl,'
9041      lt_prog_compiler_pic='-KPIC'
9042      lt_prog_compiler_static='-Bstatic'
9043      ;;
9044
9045    unicos*)
9046      lt_prog_compiler_wl='-Wl,'
9047      lt_prog_compiler_can_build_shared=no
9048      ;;
9049
9050    uts4*)
9051      lt_prog_compiler_pic='-pic'
9052      lt_prog_compiler_static='-Bstatic'
9053      ;;
9054
9055    *)
9056      lt_prog_compiler_can_build_shared=no
9057      ;;
9058    esac
9059  fi
9060
9061case $host_os in
9062  # For platforms that do not support PIC, -DPIC is meaningless:
9063  *djgpp*)
9064    lt_prog_compiler_pic=
9065    ;;
9066  *)
9067    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9068    ;;
9069esac
9070
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9072$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9073if ${lt_cv_prog_compiler_pic+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9079$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9080lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9081
9082#
9083# Check to make sure the PIC flag actually works.
9084#
9085if test -n "$lt_prog_compiler_pic"; then
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9087$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9088if ${lt_cv_prog_compiler_pic_works+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  lt_cv_prog_compiler_pic_works=no
9092   ac_outfile=conftest.$ac_objext
9093   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9095   # Insert the option either (1) after the last *FLAGS variable, or
9096   # (2) before a word containing "conftest.", or (3) at the end.
9097   # Note that $ac_compile itself does not contain backslashes and begins
9098   # with a dollar sign (not a hyphen), so the echo should work correctly.
9099   # The option is referenced via a variable to avoid confusing sed.
9100   lt_compile=`echo "$ac_compile" | $SED \
9101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103   -e 's:$: $lt_compiler_flag:'`
9104   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105   (eval "$lt_compile" 2>conftest.err)
9106   ac_status=$?
9107   cat conftest.err >&5
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   if (exit $ac_status) && test -s "$ac_outfile"; then
9110     # The compiler can only warn and ignore the option if not recognized
9111     # So say no if there are warnings other than the usual output.
9112     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9113     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9115       lt_cv_prog_compiler_pic_works=yes
9116     fi
9117   fi
9118   $RM conftest*
9119
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9122$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9123
9124if test yes = "$lt_cv_prog_compiler_pic_works"; then
9125    case $lt_prog_compiler_pic in
9126     "" | " "*) ;;
9127     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9128     esac
9129else
9130    lt_prog_compiler_pic=
9131     lt_prog_compiler_can_build_shared=no
9132fi
9133
9134fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146#
9147# Check to make sure the static flag actually works.
9148#
9149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9151$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9152if ${lt_cv_prog_compiler_static_works+:} false; then :
9153  $as_echo_n "(cached) " >&6
9154else
9155  lt_cv_prog_compiler_static_works=no
9156   save_LDFLAGS=$LDFLAGS
9157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9158   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9160     # The linker can only warn and ignore the option if not recognized
9161     # So say no if there are warnings
9162     if test -s conftest.err; then
9163       # Append any errors to the config.log.
9164       cat conftest.err 1>&5
9165       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167       if diff conftest.exp conftest.er2 >/dev/null; then
9168         lt_cv_prog_compiler_static_works=yes
9169       fi
9170     else
9171       lt_cv_prog_compiler_static_works=yes
9172     fi
9173   fi
9174   $RM -r conftest*
9175   LDFLAGS=$save_LDFLAGS
9176
9177fi
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9179$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9180
9181if test yes = "$lt_cv_prog_compiler_static_works"; then
9182    :
9183else
9184    lt_prog_compiler_static=
9185fi
9186
9187
9188
9189
9190
9191
9192
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9194$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9195if ${lt_cv_prog_compiler_c_o+:} false; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  lt_cv_prog_compiler_c_o=no
9199   $RM -r conftest 2>/dev/null
9200   mkdir conftest
9201   cd conftest
9202   mkdir out
9203   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204
9205   lt_compiler_flag="-o out/conftest2.$ac_objext"
9206   # Insert the option either (1) after the last *FLAGS variable, or
9207   # (2) before a word containing "conftest.", or (3) at the end.
9208   # Note that $ac_compile itself does not contain backslashes and begins
9209   # with a dollar sign (not a hyphen), so the echo should work correctly.
9210   lt_compile=`echo "$ac_compile" | $SED \
9211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213   -e 's:$: $lt_compiler_flag:'`
9214   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9215   (eval "$lt_compile" 2>out/conftest.err)
9216   ac_status=$?
9217   cat out/conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9220   then
9221     # The compiler can only warn and ignore the option if not recognized
9222     # So say no if there are warnings
9223     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9224     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9225     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9226       lt_cv_prog_compiler_c_o=yes
9227     fi
9228   fi
9229   chmod u+w . 2>&5
9230   $RM conftest*
9231   # SGI C++ compiler will create directory out/ii_files/ for
9232   # template instantiation
9233   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9234   $RM out/* && rmdir out
9235   cd ..
9236   $RM -r conftest
9237   $RM conftest*
9238
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9241$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9242
9243
9244
9245
9246
9247
9248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9250if ${lt_cv_prog_compiler_c_o+:} false; then :
9251  $as_echo_n "(cached) " >&6
9252else
9253  lt_cv_prog_compiler_c_o=no
9254   $RM -r conftest 2>/dev/null
9255   mkdir conftest
9256   cd conftest
9257   mkdir out
9258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259
9260   lt_compiler_flag="-o out/conftest2.$ac_objext"
9261   # Insert the option either (1) after the last *FLAGS variable, or
9262   # (2) before a word containing "conftest.", or (3) at the end.
9263   # Note that $ac_compile itself does not contain backslashes and begins
9264   # with a dollar sign (not a hyphen), so the echo should work correctly.
9265   lt_compile=`echo "$ac_compile" | $SED \
9266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268   -e 's:$: $lt_compiler_flag:'`
9269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270   (eval "$lt_compile" 2>out/conftest.err)
9271   ac_status=$?
9272   cat out/conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275   then
9276     # The compiler can only warn and ignore the option if not recognized
9277     # So say no if there are warnings
9278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281       lt_cv_prog_compiler_c_o=yes
9282     fi
9283   fi
9284   chmod u+w . 2>&5
9285   $RM conftest*
9286   # SGI C++ compiler will create directory out/ii_files/ for
9287   # template instantiation
9288   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289   $RM out/* && rmdir out
9290   cd ..
9291   $RM -r conftest
9292   $RM conftest*
9293
9294fi
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9296$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9297
9298
9299
9300
9301hard_links=nottested
9302if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9303  # do not overwrite the value of need_locks provided by the user
9304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9305$as_echo_n "checking if we can lock with hard links... " >&6; }
9306  hard_links=yes
9307  $RM conftest*
9308  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9309  touch conftest.a
9310  ln conftest.a conftest.b 2>&5 || hard_links=no
9311  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9313$as_echo "$hard_links" >&6; }
9314  if test no = "$hard_links"; then
9315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9316$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9317    need_locks=warn
9318  fi
9319else
9320  need_locks=no
9321fi
9322
9323
9324
9325
9326
9327
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9329$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9330
9331  runpath_var=
9332  allow_undefined_flag=
9333  always_export_symbols=no
9334  archive_cmds=
9335  archive_expsym_cmds=
9336  compiler_needs_object=no
9337  enable_shared_with_static_runtimes=no
9338  export_dynamic_flag_spec=
9339  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9340  hardcode_automatic=no
9341  hardcode_direct=no
9342  hardcode_direct_absolute=no
9343  hardcode_libdir_flag_spec=
9344  hardcode_libdir_separator=
9345  hardcode_minus_L=no
9346  hardcode_shlibpath_var=unsupported
9347  inherit_rpath=no
9348  link_all_deplibs=no
9349  module_cmds=
9350  module_expsym_cmds=
9351  old_archive_from_new_cmds=
9352  old_archive_from_expsyms_cmds=
9353  thread_safe_flag_spec=
9354  whole_archive_flag_spec=
9355  # include_expsyms should be a list of space-separated symbols to be *always*
9356  # included in the symbol list
9357  include_expsyms=
9358  # exclude_expsyms can be an extended regexp of symbols to exclude
9359  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9360  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9361  # as well as any symbol that contains 'd'.
9362  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9363  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9364  # platforms (ab)use it in PIC code, but their linkers get confused if
9365  # the symbol is explicitly referenced.  Since portable code cannot
9366  # rely on this symbol name, it's probably fine to never include it in
9367  # preloaded symbol tables.
9368  # Exclude shared library initialization/finalization symbols.
9369  extract_expsyms_cmds=
9370
9371  case $host_os in
9372  cygwin* | mingw* | pw32* | cegcc*)
9373    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9374    # When not using gcc, we currently assume that we are using
9375    # Microsoft Visual C++.
9376    if test yes != "$GCC"; then
9377      with_gnu_ld=no
9378    fi
9379    ;;
9380  interix*)
9381    # we just hope/assume this is gcc and not c89 (= MSVC++)
9382    with_gnu_ld=yes
9383    ;;
9384  openbsd* | bitrig*)
9385    with_gnu_ld=no
9386    ;;
9387  esac
9388
9389  ld_shlibs=yes
9390
9391  # On some targets, GNU ld is compatible enough with the native linker
9392  # that we're better off using the native interface for both.
9393  lt_use_gnu_ld_interface=no
9394  if test yes = "$with_gnu_ld"; then
9395    case $host_os in
9396      aix*)
9397	# The AIX port of GNU ld has always aspired to compatibility
9398	# with the native linker.  However, as the warning in the GNU ld
9399	# block says, versions before 2.19.5* couldn't really create working
9400	# shared libraries, regardless of the interface used.
9401	case `$LD -v 2>&1` in
9402	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9403	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9404	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9405	  *)
9406	    lt_use_gnu_ld_interface=yes
9407	    ;;
9408	esac
9409	;;
9410      *)
9411	lt_use_gnu_ld_interface=yes
9412	;;
9413    esac
9414  fi
9415
9416  if test yes = "$lt_use_gnu_ld_interface"; then
9417    # If archive_cmds runs LD, not CC, wlarc should be empty
9418    wlarc='$wl'
9419
9420    # Set some defaults for GNU ld with shared library support. These
9421    # are reset later if shared libraries are not supported. Putting them
9422    # here allows them to be overridden if necessary.
9423    runpath_var=LD_RUN_PATH
9424    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9425    export_dynamic_flag_spec='$wl--export-dynamic'
9426    # ancient GNU ld didn't support --whole-archive et. al.
9427    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9428      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9429    else
9430      whole_archive_flag_spec=
9431    fi
9432    supports_anon_versioning=no
9433    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9434      *GNU\ gold*) supports_anon_versioning=yes ;;
9435      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9436      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9437      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9438      *\ 2.11.*) ;; # other 2.11 versions
9439      *) supports_anon_versioning=yes ;;
9440    esac
9441
9442    # See if GNU ld supports shared libraries.
9443    case $host_os in
9444    aix[3-9]*)
9445      # On AIX/PPC, the GNU linker is very broken
9446      if test ia64 != "$host_cpu"; then
9447	ld_shlibs=no
9448	cat <<_LT_EOF 1>&2
9449
9450*** Warning: the GNU linker, at least up to release 2.19, is reported
9451*** to be unable to reliably create shared libraries on AIX.
9452*** Therefore, libtool is disabling shared libraries support.  If you
9453*** really care for shared libraries, you may want to install binutils
9454*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9455*** You will then need to restart the configuration process.
9456
9457_LT_EOF
9458      fi
9459      ;;
9460
9461    amigaos*)
9462      case $host_cpu in
9463      powerpc)
9464            # see comment about AmigaOS4 .so support
9465            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9466            archive_expsym_cmds=''
9467        ;;
9468      m68k)
9469            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)'
9470            hardcode_libdir_flag_spec='-L$libdir'
9471            hardcode_minus_L=yes
9472        ;;
9473      esac
9474      ;;
9475
9476    beos*)
9477      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9478	allow_undefined_flag=unsupported
9479	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9480	# support --undefined.  This deserves some investigation.  FIXME
9481	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9482      else
9483	ld_shlibs=no
9484      fi
9485      ;;
9486
9487    cygwin* | mingw* | pw32* | cegcc*)
9488      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9489      # as there is no search path for DLLs.
9490      hardcode_libdir_flag_spec='-L$libdir'
9491      export_dynamic_flag_spec='$wl--export-all-symbols'
9492      allow_undefined_flag=unsupported
9493      always_export_symbols=no
9494      enable_shared_with_static_runtimes=yes
9495      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9496      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9497
9498      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9499        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9500	# If the export-symbols file already is a .def file, use it as
9501	# is; otherwise, prepend EXPORTS...
9502	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9503          cp $export_symbols $output_objdir/$soname.def;
9504        else
9505          echo EXPORTS > $output_objdir/$soname.def;
9506          cat $export_symbols >> $output_objdir/$soname.def;
9507        fi~
9508        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9509      else
9510	ld_shlibs=no
9511      fi
9512      ;;
9513
9514    haiku*)
9515      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516      link_all_deplibs=yes
9517      ;;
9518
9519    os2*)
9520      hardcode_libdir_flag_spec='-L$libdir'
9521      hardcode_minus_L=yes
9522      allow_undefined_flag=unsupported
9523      shrext_cmds=.dll
9524      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9525	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9526	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9527	$ECHO EXPORTS >> $output_objdir/$libname.def~
9528	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9529	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9530	emximp -o $lib $output_objdir/$libname.def'
9531      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9532	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9533	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9534	$ECHO EXPORTS >> $output_objdir/$libname.def~
9535	prefix_cmds="$SED"~
9536	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9537	  prefix_cmds="$prefix_cmds -e 1d";
9538	fi~
9539	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9540	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9541	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9542	emximp -o $lib $output_objdir/$libname.def'
9543      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9544      enable_shared_with_static_runtimes=yes
9545      ;;
9546
9547    interix[3-9]*)
9548      hardcode_direct=no
9549      hardcode_shlibpath_var=no
9550      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9551      export_dynamic_flag_spec='$wl-E'
9552      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9553      # Instead, shared libraries are loaded at an image base (0x10000000 by
9554      # default) and relocated if they conflict, which is a slow very memory
9555      # consuming and fragmenting process.  To avoid this, we pick a random,
9556      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9557      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9558      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9559      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'
9560      ;;
9561
9562    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9563      tmp_diet=no
9564      if test linux-dietlibc = "$host_os"; then
9565	case $cc_basename in
9566	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9567	esac
9568      fi
9569      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9570	 && test no = "$tmp_diet"
9571      then
9572	tmp_addflag=' $pic_flag'
9573	tmp_sharedflag='-shared'
9574	case $cc_basename,$host_cpu in
9575        pgcc*)				# Portland Group C compiler
9576	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9577	  tmp_addflag=' $pic_flag'
9578	  ;;
9579	pgf77* | pgf90* | pgf95* | pgfortran*)
9580					# Portland Group f77 and f90 compilers
9581	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9582	  tmp_addflag=' $pic_flag -Mnomain' ;;
9583	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9584	  tmp_addflag=' -i_dynamic' ;;
9585	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9586	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9587	ifc* | ifort*)			# Intel Fortran compiler
9588	  tmp_addflag=' -nofor_main' ;;
9589	lf95*)				# Lahey Fortran 8.1
9590	  whole_archive_flag_spec=
9591	  tmp_sharedflag='--shared' ;;
9592        nagfor*)                        # NAGFOR 5.3
9593          tmp_sharedflag='-Wl,-shared' ;;
9594	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9595	  tmp_sharedflag='-qmkshrobj'
9596	  tmp_addflag= ;;
9597	nvcc*)	# Cuda Compiler Driver 2.2
9598	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9599	  compiler_needs_object=yes
9600	  ;;
9601	esac
9602	case `$CC -V 2>&1 | sed 5q` in
9603	*Sun\ C*)			# Sun C 5.9
9604	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9605	  compiler_needs_object=yes
9606	  tmp_sharedflag='-G' ;;
9607	*Sun\ F*)			# Sun Fortran 8.3
9608	  tmp_sharedflag='-G' ;;
9609	esac
9610	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9611
9612        if test yes = "$supports_anon_versioning"; then
9613          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9614            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9615            echo "local: *; };" >> $output_objdir/$libname.ver~
9616            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9617        fi
9618
9619	case $cc_basename in
9620	tcc*)
9621	  export_dynamic_flag_spec='-rdynamic'
9622	  ;;
9623	xlf* | bgf* | bgxlf* | mpixlf*)
9624	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9625	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9626	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9627	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9628	  if test yes = "$supports_anon_versioning"; then
9629	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9630              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9631              echo "local: *; };" >> $output_objdir/$libname.ver~
9632              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9633	  fi
9634	  ;;
9635	esac
9636      else
9637        ld_shlibs=no
9638      fi
9639      ;;
9640
9641    netbsd*)
9642      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9643	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9644	wlarc=
9645      else
9646	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9647	archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
9648      fi
9649      ;;
9650
9651    solaris*)
9652      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9653	ld_shlibs=no
9654	cat <<_LT_EOF 1>&2
9655
9656*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9657*** create shared libraries on Solaris systems.  Therefore, libtool
9658*** is disabling shared libraries support.  We urge you to upgrade GNU
9659*** binutils to release 2.9.1 or newer.  Another option is to modify
9660*** your PATH or compiler configuration so that the native linker is
9661*** used, and then restart.
9662
9663_LT_EOF
9664      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9666	archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
9667      else
9668	ld_shlibs=no
9669      fi
9670      ;;
9671
9672    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9673      case `$LD -v 2>&1` in
9674        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9675	ld_shlibs=no
9676	cat <<_LT_EOF 1>&2
9677
9678*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9679*** reliably create shared libraries on SCO systems.  Therefore, libtool
9680*** is disabling shared libraries support.  We urge you to upgrade GNU
9681*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9682*** your PATH or compiler configuration so that the native linker is
9683*** used, and then restart.
9684
9685_LT_EOF
9686	;;
9687	*)
9688	  # For security reasons, it is highly recommended that you always
9689	  # use absolute paths for naming shared libraries, and exclude the
9690	  # DT_RUNPATH tag from executables and libraries.  But doing so
9691	  # requires that you compile everything twice, which is a pain.
9692	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9694	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9695	    archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
9696	  else
9697	    ld_shlibs=no
9698	  fi
9699	;;
9700      esac
9701      ;;
9702
9703    sunos4*)
9704      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9705      wlarc=
9706      hardcode_direct=yes
9707      hardcode_shlibpath_var=no
9708      ;;
9709
9710    *)
9711      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9712	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9713	archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
9714      else
9715	ld_shlibs=no
9716      fi
9717      ;;
9718    esac
9719
9720    if test no = "$ld_shlibs"; then
9721      runpath_var=
9722      hardcode_libdir_flag_spec=
9723      export_dynamic_flag_spec=
9724      whole_archive_flag_spec=
9725    fi
9726  else
9727    # PORTME fill in a description of your system's linker (not GNU ld)
9728    case $host_os in
9729    aix3*)
9730      allow_undefined_flag=unsupported
9731      always_export_symbols=yes
9732      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'
9733      # Note: this linker hardcodes the directories in LIBPATH if there
9734      # are no directories specified by -L.
9735      hardcode_minus_L=yes
9736      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9737	# Neither direct hardcoding nor static linking is supported with a
9738	# broken collect2.
9739	hardcode_direct=unsupported
9740      fi
9741      ;;
9742
9743    aix[4-9]*)
9744      if test ia64 = "$host_cpu"; then
9745	# On IA64, the linker does run time linking by default, so we don't
9746	# have to do anything special.
9747	aix_use_runtimelinking=no
9748	exp_sym_flag='-Bexport'
9749	no_entry_flag=
9750      else
9751	# If we're using GNU nm, then we don't want the "-C" option.
9752	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9753	# Without the "-l" option, or with the "-B" option, AIX nm treats
9754	# weak defined symbols like other global defined symbols, whereas
9755	# GNU nm marks them as "W".
9756	# While the 'weak' keyword is ignored in the Export File, we need
9757	# it in the Import File for the 'aix-soname' feature, so we have
9758	# to replace the "-B" option with "-P" for AIX nm.
9759	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9760	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9761	else
9762	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9763	fi
9764	aix_use_runtimelinking=no
9765
9766	# Test if we are trying to use run time linking or normal
9767	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9768	# have runtime linking enabled, and use it for executables.
9769	# For shared libraries, we enable/disable runtime linking
9770	# depending on the kind of the shared library created -
9771	# when "with_aix_soname,aix_use_runtimelinking" is:
9772	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9773	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9774	#            lib.a           static archive
9775	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9776	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9777	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9778	#            lib.a(lib.so.V) shared, rtl:no
9779	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9780	#            lib.a           static archive
9781	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9782	  for ld_flag in $LDFLAGS; do
9783	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9784	    aix_use_runtimelinking=yes
9785	    break
9786	  fi
9787	  done
9788	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9789	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9790	    # so we don't have lib.a shared libs to link our executables.
9791	    # We have to force runtime linking in this case.
9792	    aix_use_runtimelinking=yes
9793	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9794	  fi
9795	  ;;
9796	esac
9797
9798	exp_sym_flag='-bexport'
9799	no_entry_flag='-bnoentry'
9800      fi
9801
9802      # When large executables or shared objects are built, AIX ld can
9803      # have problems creating the table of contents.  If linking a library
9804      # or program results in "error TOC overflow" add -mminimal-toc to
9805      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9806      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9807
9808      archive_cmds=''
9809      hardcode_direct=yes
9810      hardcode_direct_absolute=yes
9811      hardcode_libdir_separator=':'
9812      link_all_deplibs=yes
9813      file_list_spec='$wl-f,'
9814      case $with_aix_soname,$aix_use_runtimelinking in
9815      aix,*) ;; # traditional, no import file
9816      svr4,* | *,yes) # use import file
9817	# The Import File defines what to hardcode.
9818	hardcode_direct=no
9819	hardcode_direct_absolute=no
9820	;;
9821      esac
9822
9823      if test yes = "$GCC"; then
9824	case $host_os in aix4.[012]|aix4.[012].*)
9825	# We only want to do this on AIX 4.2 and lower, the check
9826	# below for broken collect2 doesn't work under 4.3+
9827	  collect2name=`$CC -print-prog-name=collect2`
9828	  if test -f "$collect2name" &&
9829	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9830	  then
9831	  # We have reworked collect2
9832	  :
9833	  else
9834	  # We have old collect2
9835	  hardcode_direct=unsupported
9836	  # It fails to find uninstalled libraries when the uninstalled
9837	  # path is not listed in the libpath.  Setting hardcode_minus_L
9838	  # to unsupported forces relinking
9839	  hardcode_minus_L=yes
9840	  hardcode_libdir_flag_spec='-L$libdir'
9841	  hardcode_libdir_separator=
9842	  fi
9843	  ;;
9844	esac
9845	shared_flag='-shared'
9846	if test yes = "$aix_use_runtimelinking"; then
9847	  shared_flag="$shared_flag "'$wl-G'
9848	fi
9849	# Need to ensure runtime linking is disabled for the traditional
9850	# shared library, or the linker may eventually find shared libraries
9851	# /with/ Import File - we do not want to mix them.
9852	shared_flag_aix='-shared'
9853	shared_flag_svr4='-shared $wl-G'
9854      else
9855	# not using gcc
9856	if test ia64 = "$host_cpu"; then
9857	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9858	# chokes on -Wl,-G. The following line is correct:
9859	  shared_flag='-G'
9860	else
9861	  if test yes = "$aix_use_runtimelinking"; then
9862	    shared_flag='$wl-G'
9863	  else
9864	    shared_flag='$wl-bM:SRE'
9865	  fi
9866	  shared_flag_aix='$wl-bM:SRE'
9867	  shared_flag_svr4='$wl-G'
9868	fi
9869      fi
9870
9871      export_dynamic_flag_spec='$wl-bexpall'
9872      # It seems that -bexpall does not export symbols beginning with
9873      # underscore (_), so it is better to generate a list of symbols to export.
9874      always_export_symbols=yes
9875      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9876	# Warning - without using the other runtime loading flags (-brtl),
9877	# -berok will link without error, but may produce a broken library.
9878	allow_undefined_flag='-berok'
9879        # Determine the default libpath from the value encoded in an
9880        # empty executable.
9881        if test set = "${lt_cv_aix_libpath+set}"; then
9882  aix_libpath=$lt_cv_aix_libpath
9883else
9884  if ${lt_cv_aix_libpath_+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889
9890int
9891main ()
9892{
9893
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899
9900  lt_aix_libpath_sed='
9901      /Import File Strings/,/^$/ {
9902	  /^0/ {
9903	      s/^0  *\([^ ]*\) *$/\1/
9904	      p
9905	  }
9906      }'
9907  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908  # Check for a 64-bit object if we didn't find anything.
9909  if test -z "$lt_cv_aix_libpath_"; then
9910    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911  fi
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914    conftest$ac_exeext conftest.$ac_ext
9915  if test -z "$lt_cv_aix_libpath_"; then
9916    lt_cv_aix_libpath_=/usr/lib:/lib
9917  fi
9918
9919fi
9920
9921  aix_libpath=$lt_cv_aix_libpath_
9922fi
9923
9924        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9925        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9926      else
9927	if test ia64 = "$host_cpu"; then
9928	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9929	  allow_undefined_flag="-z nodefs"
9930	  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"
9931	else
9932	 # Determine the default libpath from the value encoded in an
9933	 # empty executable.
9934	 if test set = "${lt_cv_aix_libpath+set}"; then
9935  aix_libpath=$lt_cv_aix_libpath
9936else
9937  if ${lt_cv_aix_libpath_+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942
9943int
9944main ()
9945{
9946
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952
9953  lt_aix_libpath_sed='
9954      /Import File Strings/,/^$/ {
9955	  /^0/ {
9956	      s/^0  *\([^ ]*\) *$/\1/
9957	      p
9958	  }
9959      }'
9960  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961  # Check for a 64-bit object if we didn't find anything.
9962  if test -z "$lt_cv_aix_libpath_"; then
9963    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964  fi
9965fi
9966rm -f core conftest.err conftest.$ac_objext \
9967    conftest$ac_exeext conftest.$ac_ext
9968  if test -z "$lt_cv_aix_libpath_"; then
9969    lt_cv_aix_libpath_=/usr/lib:/lib
9970  fi
9971
9972fi
9973
9974  aix_libpath=$lt_cv_aix_libpath_
9975fi
9976
9977	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9978	  # Warning - without using the other run time loading flags,
9979	  # -berok will link without error, but may produce a broken library.
9980	  no_undefined_flag=' $wl-bernotok'
9981	  allow_undefined_flag=' $wl-berok'
9982	  if test yes = "$with_gnu_ld"; then
9983	    # We only use this code for GNU lds that support --whole-archive.
9984	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9985	  else
9986	    # Exported symbols can be pulled into shared objects from archives
9987	    whole_archive_flag_spec='$convenience'
9988	  fi
9989	  archive_cmds_need_lc=yes
9990	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9991	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9992	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9993	  if test svr4 != "$with_aix_soname"; then
9994	    # This is similar to how AIX traditionally builds its shared libraries.
9995	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9996	  fi
9997	  if test aix != "$with_aix_soname"; then
9998	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9999	  else
10000	    # used by -dlpreopen to get the symbols
10001	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10002	  fi
10003	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10004	fi
10005      fi
10006      ;;
10007
10008    amigaos*)
10009      case $host_cpu in
10010      powerpc)
10011            # see comment about AmigaOS4 .so support
10012            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10013            archive_expsym_cmds=''
10014        ;;
10015      m68k)
10016            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)'
10017            hardcode_libdir_flag_spec='-L$libdir'
10018            hardcode_minus_L=yes
10019        ;;
10020      esac
10021      ;;
10022
10023    bsdi[45]*)
10024      export_dynamic_flag_spec=-rdynamic
10025      ;;
10026
10027    cygwin* | mingw* | pw32* | cegcc*)
10028      # When not using gcc, we currently assume that we are using
10029      # Microsoft Visual C++.
10030      # hardcode_libdir_flag_spec is actually meaningless, as there is
10031      # no search path for DLLs.
10032      case $cc_basename in
10033      cl*)
10034	# Native MSVC
10035	hardcode_libdir_flag_spec=' '
10036	allow_undefined_flag=unsupported
10037	always_export_symbols=yes
10038	file_list_spec='@'
10039	# Tell ltmain to make .lib files, not .a files.
10040	libext=lib
10041	# Tell ltmain to make .dll files, not .so files.
10042	shrext_cmds=.dll
10043	# FIXME: Setting linknames here is a bad hack.
10044	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10045	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10046            cp "$export_symbols" "$output_objdir/$soname.def";
10047            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10048          else
10049            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10050          fi~
10051          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10052          linknames='
10053	# The linker will not automatically build a static lib if we build a DLL.
10054	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10055	enable_shared_with_static_runtimes=yes
10056	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10057	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10058	# Don't use ranlib
10059	old_postinstall_cmds='chmod 644 $oldlib'
10060	postlink_cmds='lt_outputfile="@OUTPUT@"~
10061          lt_tool_outputfile="@TOOL_OUTPUT@"~
10062          case $lt_outputfile in
10063            *.exe|*.EXE) ;;
10064            *)
10065              lt_outputfile=$lt_outputfile.exe
10066              lt_tool_outputfile=$lt_tool_outputfile.exe
10067              ;;
10068          esac~
10069          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10070            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10071            $RM "$lt_outputfile.manifest";
10072          fi'
10073	;;
10074      *)
10075	# Assume MSVC wrapper
10076	hardcode_libdir_flag_spec=' '
10077	allow_undefined_flag=unsupported
10078	# Tell ltmain to make .lib files, not .a files.
10079	libext=lib
10080	# Tell ltmain to make .dll files, not .so files.
10081	shrext_cmds=.dll
10082	# FIXME: Setting linknames here is a bad hack.
10083	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10084	# The linker will automatically build a .lib file if we build a DLL.
10085	old_archive_from_new_cmds='true'
10086	# FIXME: Should let the user specify the lib program.
10087	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10088	enable_shared_with_static_runtimes=yes
10089	;;
10090      esac
10091      ;;
10092
10093    darwin* | rhapsody*)
10094
10095
10096  archive_cmds_need_lc=no
10097  hardcode_direct=no
10098  hardcode_automatic=yes
10099  hardcode_shlibpath_var=unsupported
10100  if test yes = "$lt_cv_ld_force_load"; then
10101    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10102
10103  else
10104    whole_archive_flag_spec=''
10105  fi
10106  link_all_deplibs=yes
10107  allow_undefined_flag=$_lt_dar_allow_undefined
10108  case $cc_basename in
10109     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10110     *) _lt_dar_can_shared=$GCC ;;
10111  esac
10112  if test yes = "$_lt_dar_can_shared"; then
10113    output_verbose_link_cmd=func_echo_all
10114    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10115    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10116    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"
10117    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"
10118
10119  else
10120  ld_shlibs=no
10121  fi
10122
10123      ;;
10124
10125    dgux*)
10126      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127      hardcode_libdir_flag_spec='-L$libdir'
10128      hardcode_shlibpath_var=no
10129      ;;
10130
10131    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10132    # support.  Future versions do this automatically, but an explicit c++rt0.o
10133    # does not break anything, and helps significantly (at the cost of a little
10134    # extra space).
10135    freebsd2.2*)
10136      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10137      hardcode_libdir_flag_spec='-R$libdir'
10138      hardcode_direct=yes
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10143    freebsd2.*)
10144      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10145      hardcode_direct=yes
10146      hardcode_minus_L=yes
10147      hardcode_shlibpath_var=no
10148      ;;
10149
10150    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10151    freebsd* | dragonfly*)
10152      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10153      hardcode_libdir_flag_spec='-R$libdir'
10154      hardcode_direct=yes
10155      hardcode_shlibpath_var=no
10156      ;;
10157
10158    hpux9*)
10159      if test yes = "$GCC"; then
10160	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10161      else
10162	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10163      fi
10164      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10165      hardcode_libdir_separator=:
10166      hardcode_direct=yes
10167
10168      # hardcode_minus_L: Not really in the search PATH,
10169      # but as the default location of the library.
10170      hardcode_minus_L=yes
10171      export_dynamic_flag_spec='$wl-E'
10172      ;;
10173
10174    hpux10*)
10175      if test yes,no = "$GCC,$with_gnu_ld"; then
10176	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10177      else
10178	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10179      fi
10180      if test no = "$with_gnu_ld"; then
10181	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10182	hardcode_libdir_separator=:
10183	hardcode_direct=yes
10184	hardcode_direct_absolute=yes
10185	export_dynamic_flag_spec='$wl-E'
10186	# hardcode_minus_L: Not really in the search PATH,
10187	# but as the default location of the library.
10188	hardcode_minus_L=yes
10189      fi
10190      ;;
10191
10192    hpux11*)
10193      if test yes,no = "$GCC,$with_gnu_ld"; then
10194	case $host_cpu in
10195	hppa*64*)
10196	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10197	  ;;
10198	ia64*)
10199	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10200	  ;;
10201	*)
10202	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10203	  ;;
10204	esac
10205      else
10206	case $host_cpu in
10207	hppa*64*)
10208	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10209	  ;;
10210	ia64*)
10211	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10212	  ;;
10213	*)
10214
10215	  # Older versions of the 11.00 compiler do not understand -b yet
10216	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10217	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10218$as_echo_n "checking if $CC understands -b... " >&6; }
10219if ${lt_cv_prog_compiler__b+:} false; then :
10220  $as_echo_n "(cached) " >&6
10221else
10222  lt_cv_prog_compiler__b=no
10223   save_LDFLAGS=$LDFLAGS
10224   LDFLAGS="$LDFLAGS -b"
10225   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10226   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10227     # The linker can only warn and ignore the option if not recognized
10228     # So say no if there are warnings
10229     if test -s conftest.err; then
10230       # Append any errors to the config.log.
10231       cat conftest.err 1>&5
10232       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10233       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234       if diff conftest.exp conftest.er2 >/dev/null; then
10235         lt_cv_prog_compiler__b=yes
10236       fi
10237     else
10238       lt_cv_prog_compiler__b=yes
10239     fi
10240   fi
10241   $RM -r conftest*
10242   LDFLAGS=$save_LDFLAGS
10243
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10246$as_echo "$lt_cv_prog_compiler__b" >&6; }
10247
10248if test yes = "$lt_cv_prog_compiler__b"; then
10249    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250else
10251    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10252fi
10253
10254	  ;;
10255	esac
10256      fi
10257      if test no = "$with_gnu_ld"; then
10258	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10259	hardcode_libdir_separator=:
10260
10261	case $host_cpu in
10262	hppa*64*|ia64*)
10263	  hardcode_direct=no
10264	  hardcode_shlibpath_var=no
10265	  ;;
10266	*)
10267	  hardcode_direct=yes
10268	  hardcode_direct_absolute=yes
10269	  export_dynamic_flag_spec='$wl-E'
10270
10271	  # hardcode_minus_L: Not really in the search PATH,
10272	  # but as the default location of the library.
10273	  hardcode_minus_L=yes
10274	  ;;
10275	esac
10276      fi
10277      ;;
10278
10279    irix5* | irix6* | nonstopux*)
10280      if test yes = "$GCC"; then
10281	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10282	# Try to use the -exported_symbol ld option, if it does not
10283	# work, assume that -exports_file does not work either and
10284	# implicitly export all symbols.
10285	# This should be the same for all languages, so no per-tag cache variable.
10286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10287$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10288if ${lt_cv_irix_exported_symbol+:} false; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  save_LDFLAGS=$LDFLAGS
10292	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10293	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294/* end confdefs.h.  */
10295int foo (void) { return 0; }
10296_ACEOF
10297if ac_fn_c_try_link "$LINENO"; then :
10298  lt_cv_irix_exported_symbol=yes
10299else
10300  lt_cv_irix_exported_symbol=no
10301fi
10302rm -f core conftest.err conftest.$ac_objext \
10303    conftest$ac_exeext conftest.$ac_ext
10304           LDFLAGS=$save_LDFLAGS
10305fi
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10307$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10308	if test yes = "$lt_cv_irix_exported_symbol"; then
10309          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10310	fi
10311      else
10312	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10313	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10314      fi
10315      archive_cmds_need_lc='no'
10316      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10317      hardcode_libdir_separator=:
10318      inherit_rpath=yes
10319      link_all_deplibs=yes
10320      ;;
10321
10322    linux*)
10323      case $cc_basename in
10324      tcc*)
10325	# Fabrice Bellard et al's Tiny C Compiler
10326	ld_shlibs=yes
10327	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10328	;;
10329      esac
10330      ;;
10331
10332    netbsd*)
10333      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10334	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10335      else
10336	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10337      fi
10338      hardcode_libdir_flag_spec='-R$libdir'
10339      hardcode_direct=yes
10340      hardcode_shlibpath_var=no
10341      ;;
10342
10343    newsos6)
10344      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345      hardcode_direct=yes
10346      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10347      hardcode_libdir_separator=:
10348      hardcode_shlibpath_var=no
10349      ;;
10350
10351    *nto* | *qnx*)
10352      ;;
10353
10354    openbsd* | bitrig*)
10355      if test -f /usr/libexec/ld.so; then
10356	hardcode_direct=yes
10357	hardcode_shlibpath_var=no
10358	hardcode_direct_absolute=yes
10359	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10360	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10361	  archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-version-script,$lib-ver'
10362	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10363	  export_dynamic_flag_spec='$wl-E'
10364	else
10365	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10366	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10367	fi
10368      else
10369	ld_shlibs=no
10370      fi
10371      ;;
10372
10373    os2*)
10374      hardcode_libdir_flag_spec='-L$libdir'
10375      hardcode_minus_L=yes
10376      allow_undefined_flag=unsupported
10377      shrext_cmds=.dll
10378      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10379	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10380	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10381	$ECHO EXPORTS >> $output_objdir/$libname.def~
10382	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10383	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10384	emximp -o $lib $output_objdir/$libname.def'
10385      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10386	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10387	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10388	$ECHO EXPORTS >> $output_objdir/$libname.def~
10389	prefix_cmds="$SED"~
10390	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10391	  prefix_cmds="$prefix_cmds -e 1d";
10392	fi~
10393	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10394	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10395	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10396	emximp -o $lib $output_objdir/$libname.def'
10397      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10398      enable_shared_with_static_runtimes=yes
10399      ;;
10400
10401    osf3*)
10402      if test yes = "$GCC"; then
10403	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10404	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10405      else
10406	allow_undefined_flag=' -expect_unresolved \*'
10407	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10408      fi
10409      archive_cmds_need_lc='no'
10410      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10411      hardcode_libdir_separator=:
10412      ;;
10413
10414    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10415      if test yes = "$GCC"; then
10416	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10417	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10418	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10419      else
10420	allow_undefined_flag=' -expect_unresolved \*'
10421	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10422	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~
10423          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10424
10425	# Both c and cxx compiler support -rpath directly
10426	hardcode_libdir_flag_spec='-rpath $libdir'
10427      fi
10428      archive_cmds_need_lc='no'
10429      hardcode_libdir_separator=:
10430      ;;
10431
10432    solaris*)
10433      no_undefined_flag=' -z defs'
10434      if test yes = "$GCC"; then
10435	wlarc='$wl'
10436	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10437	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10438          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10439      else
10440	case `$CC -V 2>&1` in
10441	*"Compilers 5.0"*)
10442	  wlarc=''
10443	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10446	  ;;
10447	*)
10448	  wlarc='$wl'
10449	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10450	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10451            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10452	  ;;
10453	esac
10454      fi
10455      hardcode_libdir_flag_spec='-R$libdir'
10456      hardcode_shlibpath_var=no
10457      case $host_os in
10458      solaris2.[0-5] | solaris2.[0-5].*) ;;
10459      *)
10460	# The compiler driver will combine and reorder linker options,
10461	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10462	# but is careful enough not to reorder.
10463	# Supported since Solaris 2.6 (maybe 2.5.1?)
10464	if test yes = "$GCC"; then
10465	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10466	else
10467	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10468	fi
10469	;;
10470      esac
10471      link_all_deplibs=yes
10472      ;;
10473
10474    sunos4*)
10475      if test sequent = "$host_vendor"; then
10476	# Use $CC to link under sequent, because it throws in some extra .o
10477	# files that make .init and .fini sections work.
10478	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10479      else
10480	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10481      fi
10482      hardcode_libdir_flag_spec='-L$libdir'
10483      hardcode_direct=yes
10484      hardcode_minus_L=yes
10485      hardcode_shlibpath_var=no
10486      ;;
10487
10488    sysv4)
10489      case $host_vendor in
10490	sni)
10491	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492	  hardcode_direct=yes # is this really true???
10493	;;
10494	siemens)
10495	  ## LD is ld it makes a PLAMLIB
10496	  ## CC just makes a GrossModule.
10497	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10498	  reload_cmds='$CC -r -o $output$reload_objs'
10499	  hardcode_direct=no
10500        ;;
10501	motorola)
10502	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10503	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10504	;;
10505      esac
10506      runpath_var='LD_RUN_PATH'
10507      hardcode_shlibpath_var=no
10508      ;;
10509
10510    sysv4.3*)
10511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10512      hardcode_shlibpath_var=no
10513      export_dynamic_flag_spec='-Bexport'
10514      ;;
10515
10516    sysv4*MP*)
10517      if test -d /usr/nec; then
10518	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519	hardcode_shlibpath_var=no
10520	runpath_var=LD_RUN_PATH
10521	hardcode_runpath_var=yes
10522	ld_shlibs=yes
10523      fi
10524      ;;
10525
10526    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10527      no_undefined_flag='$wl-z,text'
10528      archive_cmds_need_lc=no
10529      hardcode_shlibpath_var=no
10530      runpath_var='LD_RUN_PATH'
10531
10532      if test yes = "$GCC"; then
10533	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10534	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535      else
10536	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10537	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538      fi
10539      ;;
10540
10541    sysv5* | sco3.2v5* | sco5v6*)
10542      # Note: We CANNOT use -z defs as we might desire, because we do not
10543      # link with -lc, and that would cause any symbols used from libc to
10544      # always be unresolved, which means just about no library would
10545      # ever link correctly.  If we're not using GNU ld we use -z text
10546      # though, which does catch some bad symbols but isn't as heavy-handed
10547      # as -z defs.
10548      no_undefined_flag='$wl-z,text'
10549      allow_undefined_flag='$wl-z,nodefs'
10550      archive_cmds_need_lc=no
10551      hardcode_shlibpath_var=no
10552      hardcode_libdir_flag_spec='$wl-R,$libdir'
10553      hardcode_libdir_separator=':'
10554      link_all_deplibs=yes
10555      export_dynamic_flag_spec='$wl-Bexport'
10556      runpath_var='LD_RUN_PATH'
10557
10558      if test yes = "$GCC"; then
10559	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561      else
10562	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564      fi
10565      ;;
10566
10567    uts4*)
10568      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569      hardcode_libdir_flag_spec='-L$libdir'
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    *)
10574      ld_shlibs=no
10575      ;;
10576    esac
10577
10578    if test sni = "$host_vendor"; then
10579      case $host in
10580      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10581	export_dynamic_flag_spec='$wl-Blargedynsym'
10582	;;
10583      esac
10584    fi
10585  fi
10586
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10588$as_echo "$ld_shlibs" >&6; }
10589test no = "$ld_shlibs" && can_build_shared=no
10590
10591with_gnu_ld=$with_gnu_ld
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607#
10608# Do we need to explicitly link libc?
10609#
10610case "x$archive_cmds_need_lc" in
10611x|xyes)
10612  # Assume -lc should be added
10613  archive_cmds_need_lc=yes
10614
10615  if test yes,yes = "$GCC,$enable_shared"; then
10616    case $archive_cmds in
10617    *'~'*)
10618      # FIXME: we may have to deal with multi-command sequences.
10619      ;;
10620    '$CC '*)
10621      # Test whether the compiler implicitly links with -lc since on some
10622      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10623      # to ld, don't add -lc before -lgcc.
10624      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10625$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10626if ${lt_cv_archive_cmds_need_lc+:} false; then :
10627  $as_echo_n "(cached) " >&6
10628else
10629  $RM conftest*
10630	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10631
10632	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10633  (eval $ac_compile) 2>&5
10634  ac_status=$?
10635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636  test $ac_status = 0; } 2>conftest.err; then
10637	  soname=conftest
10638	  lib=conftest
10639	  libobjs=conftest.$ac_objext
10640	  deplibs=
10641	  wl=$lt_prog_compiler_wl
10642	  pic_flag=$lt_prog_compiler_pic
10643	  compiler_flags=-v
10644	  linker_flags=-v
10645	  verstring=
10646	  output_objdir=.
10647	  libname=conftest
10648	  lt_save_allow_undefined_flag=$allow_undefined_flag
10649	  allow_undefined_flag=
10650	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10651  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10652  ac_status=$?
10653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654  test $ac_status = 0; }
10655	  then
10656	    lt_cv_archive_cmds_need_lc=no
10657	  else
10658	    lt_cv_archive_cmds_need_lc=yes
10659	  fi
10660	  allow_undefined_flag=$lt_save_allow_undefined_flag
10661	else
10662	  cat conftest.err 1>&5
10663	fi
10664	$RM conftest*
10665
10666fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10668$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10669      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10670      ;;
10671    esac
10672  fi
10673  ;;
10674esac
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10828$as_echo_n "checking dynamic linker characteristics... " >&6; }
10829
10830if test yes = "$GCC"; then
10831  case $host_os in
10832    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10833    *) lt_awk_arg='/^libraries:/' ;;
10834  esac
10835  case $host_os in
10836    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10837    *) lt_sed_strip_eq='s|=/|/|g' ;;
10838  esac
10839  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10840  case $lt_search_path_spec in
10841  *\;*)
10842    # if the path contains ";" then we assume it to be the separator
10843    # otherwise default to the standard path separator (i.e. ":") - it is
10844    # assumed that no part of a normal pathname contains ";" but that should
10845    # okay in the real world where ";" in dirpaths is itself problematic.
10846    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10847    ;;
10848  *)
10849    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10850    ;;
10851  esac
10852  # Ok, now we have the path, separated by spaces, we can step through it
10853  # and add multilib dir if necessary...
10854  lt_tmp_lt_search_path_spec=
10855  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10856  # ...but if some path component already ends with the multilib dir we assume
10857  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10858  case "$lt_multi_os_dir; $lt_search_path_spec " in
10859  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10860    lt_multi_os_dir=
10861    ;;
10862  esac
10863  for lt_sys_path in $lt_search_path_spec; do
10864    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10865      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10866    elif test -n "$lt_multi_os_dir"; then
10867      test -d "$lt_sys_path" && \
10868	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10869    fi
10870  done
10871  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10872BEGIN {RS = " "; FS = "/|\n";} {
10873  lt_foo = "";
10874  lt_count = 0;
10875  for (lt_i = NF; lt_i > 0; lt_i--) {
10876    if ($lt_i != "" && $lt_i != ".") {
10877      if ($lt_i == "..") {
10878        lt_count++;
10879      } else {
10880        if (lt_count == 0) {
10881          lt_foo = "/" $lt_i lt_foo;
10882        } else {
10883          lt_count--;
10884        }
10885      }
10886    }
10887  }
10888  if (lt_foo != "") { lt_freq[lt_foo]++; }
10889  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10890}'`
10891  # AWK program above erroneously prepends '/' to C:/dos/paths
10892  # for these hosts.
10893  case $host_os in
10894    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10895      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10896  esac
10897  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10898else
10899  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10900fi
10901library_names_spec=
10902libname_spec='lib$name'
10903soname_spec=
10904shrext_cmds=.so
10905postinstall_cmds=
10906postuninstall_cmds=
10907finish_cmds=
10908finish_eval=
10909shlibpath_var=
10910shlibpath_overrides_runpath=unknown
10911version_type=none
10912dynamic_linker="$host_os ld.so"
10913sys_lib_dlsearch_path_spec="/lib /usr/lib"
10914need_lib_prefix=unknown
10915hardcode_into_libs=no
10916
10917# when you set need_version to no, make sure it does not cause -set_version
10918# flags to be left without arguments
10919need_version=unknown
10920
10921
10922
10923case $host_os in
10924aix3*)
10925  version_type=linux # correct to gnu/linux during the next big refactor
10926  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10927  shlibpath_var=LIBPATH
10928
10929  # AIX 3 has no versioning support, so we append a major version to the name.
10930  soname_spec='$libname$release$shared_ext$major'
10931  ;;
10932
10933aix[4-9]*)
10934  version_type=linux # correct to gnu/linux during the next big refactor
10935  need_lib_prefix=no
10936  need_version=no
10937  hardcode_into_libs=yes
10938  if test ia64 = "$host_cpu"; then
10939    # AIX 5 supports IA64
10940    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10941    shlibpath_var=LD_LIBRARY_PATH
10942  else
10943    # With GCC up to 2.95.x, collect2 would create an import file
10944    # for dependence libraries.  The import file would start with
10945    # the line '#! .'.  This would cause the generated library to
10946    # depend on '.', always an invalid library.  This was fixed in
10947    # development snapshots of GCC prior to 3.0.
10948    case $host_os in
10949      aix4 | aix4.[01] | aix4.[01].*)
10950      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10951	   echo ' yes '
10952	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10953	:
10954      else
10955	can_build_shared=no
10956      fi
10957      ;;
10958    esac
10959    # Using Import Files as archive members, it is possible to support
10960    # filename-based versioning of shared library archives on AIX. While
10961    # this would work for both with and without runtime linking, it will
10962    # prevent static linking of such archives. So we do filename-based
10963    # shared library versioning with .so extension only, which is used
10964    # when both runtime linking and shared linking is enabled.
10965    # Unfortunately, runtime linking may impact performance, so we do
10966    # not want this to be the default eventually. Also, we use the
10967    # versioned .so libs for executables only if there is the -brtl
10968    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10969    # To allow for filename-based versioning support, we need to create
10970    # libNAME.so.V as an archive file, containing:
10971    # *) an Import File, referring to the versioned filename of the
10972    #    archive as well as the shared archive member, telling the
10973    #    bitwidth (32 or 64) of that shared object, and providing the
10974    #    list of exported symbols of that shared object, eventually
10975    #    decorated with the 'weak' keyword
10976    # *) the shared object with the F_LOADONLY flag set, to really avoid
10977    #    it being seen by the linker.
10978    # At run time we better use the real file rather than another symlink,
10979    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10980
10981    case $with_aix_soname,$aix_use_runtimelinking in
10982    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10983    # soname into executable. Probably we can add versioning support to
10984    # collect2, so additional links can be useful in future.
10985    aix,yes) # traditional libtool
10986      dynamic_linker='AIX unversionable lib.so'
10987      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10988      # instead of lib<name>.a to let people know that these are not
10989      # typical AIX shared libraries.
10990      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10991      ;;
10992    aix,no) # traditional AIX only
10993      dynamic_linker='AIX lib.a(lib.so.V)'
10994      # We preserve .a as extension for shared libraries through AIX4.2
10995      # and later when we are not doing run time linking.
10996      library_names_spec='$libname$release.a $libname.a'
10997      soname_spec='$libname$release$shared_ext$major'
10998      ;;
10999    svr4,*) # full svr4 only
11000      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11001      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11002      # We do not specify a path in Import Files, so LIBPATH fires.
11003      shlibpath_overrides_runpath=yes
11004      ;;
11005    *,yes) # both, prefer svr4
11006      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11007      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11008      # unpreferred sharedlib libNAME.a needs extra handling
11009      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11010      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11011      # We do not specify a path in Import Files, so LIBPATH fires.
11012      shlibpath_overrides_runpath=yes
11013      ;;
11014    *,no) # both, prefer aix
11015      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11016      library_names_spec='$libname$release.a $libname.a'
11017      soname_spec='$libname$release$shared_ext$major'
11018      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11019      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11020      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11021      ;;
11022    esac
11023    shlibpath_var=LIBPATH
11024  fi
11025  ;;
11026
11027amigaos*)
11028  case $host_cpu in
11029  powerpc)
11030    # Since July 2007 AmigaOS4 officially supports .so libraries.
11031    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11032    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033    ;;
11034  m68k)
11035    library_names_spec='$libname.ixlibrary $libname.a'
11036    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11037    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11038    ;;
11039  esac
11040  ;;
11041
11042beos*)
11043  library_names_spec='$libname$shared_ext'
11044  dynamic_linker="$host_os ld.so"
11045  shlibpath_var=LIBRARY_PATH
11046  ;;
11047
11048bsdi[45]*)
11049  version_type=linux # correct to gnu/linux during the next big refactor
11050  need_version=no
11051  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052  soname_spec='$libname$release$shared_ext$major'
11053  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11054  shlibpath_var=LD_LIBRARY_PATH
11055  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11056  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11057  # the default ld.so.conf also contains /usr/contrib/lib and
11058  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11059  # libtool to hard-code these into programs
11060  ;;
11061
11062cygwin* | mingw* | pw32* | cegcc*)
11063  version_type=windows
11064  shrext_cmds=.dll
11065  need_version=no
11066  need_lib_prefix=no
11067
11068  case $GCC,$cc_basename in
11069  yes,*)
11070    # gcc
11071    library_names_spec='$libname.dll.a'
11072    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11073    postinstall_cmds='base_file=`basename \$file`~
11074      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11075      dldir=$destdir/`dirname \$dlpath`~
11076      test -d \$dldir || mkdir -p \$dldir~
11077      $install_prog $dir/$dlname \$dldir/$dlname~
11078      chmod a+x \$dldir/$dlname~
11079      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11080        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11081      fi'
11082    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11083      dlpath=$dir/\$dldll~
11084       $RM \$dlpath'
11085    shlibpath_overrides_runpath=yes
11086
11087    case $host_os in
11088    cygwin*)
11089      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11090      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11091
11092      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11093      ;;
11094    mingw* | cegcc*)
11095      # MinGW DLLs use traditional 'lib' prefix
11096      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11097      ;;
11098    pw32*)
11099      # pw32 DLLs use 'pw' prefix rather than 'lib'
11100      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11101      ;;
11102    esac
11103    dynamic_linker='Win32 ld.exe'
11104    ;;
11105
11106  *,cl*)
11107    # Native MSVC
11108    libname_spec='$name'
11109    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11110    library_names_spec='$libname.dll.lib'
11111
11112    case $build_os in
11113    mingw*)
11114      sys_lib_search_path_spec=
11115      lt_save_ifs=$IFS
11116      IFS=';'
11117      for lt_path in $LIB
11118      do
11119        IFS=$lt_save_ifs
11120        # Let DOS variable expansion print the short 8.3 style file name.
11121        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11122        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11123      done
11124      IFS=$lt_save_ifs
11125      # Convert to MSYS style.
11126      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11127      ;;
11128    cygwin*)
11129      # Convert to unix form, then to dos form, then back to unix form
11130      # but this time dos style (no spaces!) so that the unix form looks
11131      # like /cygdrive/c/PROGRA~1:/cygdr...
11132      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11133      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11134      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11135      ;;
11136    *)
11137      sys_lib_search_path_spec=$LIB
11138      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11139        # It is most probably a Windows format PATH.
11140        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11141      else
11142        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11143      fi
11144      # FIXME: find the short name or the path components, as spaces are
11145      # common. (e.g. "Program Files" -> "PROGRA~1")
11146      ;;
11147    esac
11148
11149    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11150    postinstall_cmds='base_file=`basename \$file`~
11151      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11152      dldir=$destdir/`dirname \$dlpath`~
11153      test -d \$dldir || mkdir -p \$dldir~
11154      $install_prog $dir/$dlname \$dldir/$dlname'
11155    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11156      dlpath=$dir/\$dldll~
11157       $RM \$dlpath'
11158    shlibpath_overrides_runpath=yes
11159    dynamic_linker='Win32 link.exe'
11160    ;;
11161
11162  *)
11163    # Assume MSVC wrapper
11164    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11165    dynamic_linker='Win32 ld.exe'
11166    ;;
11167  esac
11168  # FIXME: first we should search . and the directory the executable is in
11169  shlibpath_var=PATH
11170  ;;
11171
11172darwin* | rhapsody*)
11173  dynamic_linker="$host_os dyld"
11174  version_type=darwin
11175  need_lib_prefix=no
11176  need_version=no
11177  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11178  soname_spec='$libname$release$major$shared_ext'
11179  shlibpath_overrides_runpath=yes
11180  shlibpath_var=DYLD_LIBRARY_PATH
11181  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11182
11183  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11184  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11185  ;;
11186
11187dgux*)
11188  version_type=linux # correct to gnu/linux during the next big refactor
11189  need_lib_prefix=no
11190  need_version=no
11191  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192  soname_spec='$libname$release$shared_ext$major'
11193  shlibpath_var=LD_LIBRARY_PATH
11194  ;;
11195
11196freebsd* | dragonfly*)
11197  # DragonFly does not have aout.  When/if they implement a new
11198  # versioning mechanism, adjust this.
11199  if test -x /usr/bin/objformat; then
11200    objformat=`/usr/bin/objformat`
11201  else
11202    case $host_os in
11203    freebsd[23].*) objformat=aout ;;
11204    *) objformat=elf ;;
11205    esac
11206  fi
11207  # Handle Gentoo/FreeBSD as it was Linux
11208  case $host_vendor in
11209    gentoo)
11210      version_type=linux ;;
11211    *)
11212      version_type=freebsd-$objformat ;;
11213  esac
11214
11215  case $version_type in
11216    freebsd-elf*)
11217      library_names_spec='$libname$release$shared_ext$versuffix  $libname$release$shared_ext$major	 $libname$shared_ext'			 soname_spec='$libname$release$shared_ext$major'
11218      soname_spec='$libname$release$shared_ext$major'
11219      need_version=no
11220      need_lib_prefix=no
11221      ;;
11222    freebsd-*)
11223      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11224      need_version=yes
11225      ;;
11226    linux)
11227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11228      soname_spec='${libname}${release}${shared_ext}$major'
11229      need_lib_prefix=no
11230      need_version=no
11231      ;;
11232  esac
11233  shlibpath_var=LD_LIBRARY_PATH
11234  case $host_os in
11235  freebsd2.*)
11236    shlibpath_overrides_runpath=yes
11237    ;;
11238  freebsd3.[01]* | freebsdelf3.[01]*)
11239    shlibpath_overrides_runpath=yes
11240    hardcode_into_libs=yes
11241    ;;
11242  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11243  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11244    shlibpath_overrides_runpath=no
11245    hardcode_into_libs=yes
11246    ;;
11247  *) # from 4.6 on, and DragonFly
11248    shlibpath_overrides_runpath=yes
11249    hardcode_into_libs=yes
11250    ;;
11251  esac
11252  ;;
11253
11254haiku*)
11255  version_type=linux # correct to gnu/linux during the next big refactor
11256  need_lib_prefix=no
11257  need_version=no
11258  dynamic_linker="$host_os runtime_loader"
11259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260  soname_spec='$libname$release$shared_ext$major'
11261  shlibpath_var=LIBRARY_PATH
11262  shlibpath_overrides_runpath=no
11263  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11264  hardcode_into_libs=yes
11265  ;;
11266
11267hpux9* | hpux10* | hpux11*)
11268  # Give a soname corresponding to the major version so that dld.sl refuses to
11269  # link against other versions.
11270  version_type=sunos
11271  need_lib_prefix=no
11272  need_version=no
11273  case $host_cpu in
11274  ia64*)
11275    shrext_cmds='.so'
11276    hardcode_into_libs=yes
11277    dynamic_linker="$host_os dld.so"
11278    shlibpath_var=LD_LIBRARY_PATH
11279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11280    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281    soname_spec='$libname$release$shared_ext$major'
11282    if test 32 = "$HPUX_IA64_MODE"; then
11283      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11284      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11285    else
11286      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11287      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11288    fi
11289    ;;
11290  hppa*64*)
11291    shrext_cmds='.sl'
11292    hardcode_into_libs=yes
11293    dynamic_linker="$host_os dld.sl"
11294    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11295    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11296    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11297    soname_spec='$libname$release$shared_ext$major'
11298    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11299    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11300    ;;
11301  *)
11302    shrext_cmds='.sl'
11303    dynamic_linker="$host_os dld.sl"
11304    shlibpath_var=SHLIB_PATH
11305    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11306    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307    soname_spec='$libname$release$shared_ext$major'
11308    ;;
11309  esac
11310  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11311  postinstall_cmds='chmod 555 $lib'
11312  # or fails outright, so override atomically:
11313  install_override_mode=555
11314  ;;
11315
11316interix[3-9]*)
11317  version_type=linux # correct to gnu/linux during the next big refactor
11318  need_lib_prefix=no
11319  need_version=no
11320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321  soname_spec='$libname$release$shared_ext$major'
11322  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11323  shlibpath_var=LD_LIBRARY_PATH
11324  shlibpath_overrides_runpath=no
11325  hardcode_into_libs=yes
11326  ;;
11327
11328irix5* | irix6* | nonstopux*)
11329  case $host_os in
11330    nonstopux*) version_type=nonstopux ;;
11331    *)
11332	if test yes = "$lt_cv_prog_gnu_ld"; then
11333		version_type=linux # correct to gnu/linux during the next big refactor
11334	else
11335		version_type=irix
11336	fi ;;
11337  esac
11338  need_lib_prefix=no
11339  need_version=no
11340  soname_spec='$libname$release$shared_ext$major'
11341  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11342  case $host_os in
11343  irix5* | nonstopux*)
11344    libsuff= shlibsuff=
11345    ;;
11346  *)
11347    case $LD in # libtool.m4 will add one of these switches to LD
11348    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11349      libsuff= shlibsuff= libmagic=32-bit;;
11350    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11351      libsuff=32 shlibsuff=N32 libmagic=N32;;
11352    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11353      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11354    *) libsuff= shlibsuff= libmagic=never-match;;
11355    esac
11356    ;;
11357  esac
11358  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11359  shlibpath_overrides_runpath=no
11360  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11361  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11362  hardcode_into_libs=yes
11363  ;;
11364
11365# No shared lib support for Linux oldld, aout, or coff.
11366linux*oldld* | linux*aout* | linux*coff*)
11367  dynamic_linker=no
11368  ;;
11369
11370linux*android*)
11371  version_type=none # Android doesn't support versioned libraries.
11372  need_lib_prefix=no
11373  need_version=no
11374  library_names_spec='$libname$release$shared_ext'
11375  soname_spec='$libname$release$shared_ext'
11376  finish_cmds=
11377  shlibpath_var=LD_LIBRARY_PATH
11378  shlibpath_overrides_runpath=yes
11379
11380  # This implies no fast_install, which is unacceptable.
11381  # Some rework will be needed to allow for fast_install
11382  # before this can be enabled.
11383  hardcode_into_libs=yes
11384
11385  dynamic_linker='Android linker'
11386  # Don't embed -rpath directories since the linker doesn't support them.
11387  hardcode_libdir_flag_spec='-L$libdir'
11388  ;;
11389
11390# This must be glibc/ELF.
11391linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11392  version_type=linux # correct to gnu/linux during the next big refactor
11393  need_lib_prefix=no
11394  need_version=no
11395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396  soname_spec='$libname$release$shared_ext$major'
11397  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11398  shlibpath_var=LD_LIBRARY_PATH
11399  shlibpath_overrides_runpath=no
11400
11401  # Some binutils ld are patched to set DT_RUNPATH
11402  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11403  $as_echo_n "(cached) " >&6
11404else
11405  lt_cv_shlibpath_overrides_runpath=no
11406    save_LDFLAGS=$LDFLAGS
11407    save_libdir=$libdir
11408    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11409	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411/* end confdefs.h.  */
11412
11413int
11414main ()
11415{
11416
11417  ;
11418  return 0;
11419}
11420_ACEOF
11421if ac_fn_c_try_link "$LINENO"; then :
11422  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11423  lt_cv_shlibpath_overrides_runpath=yes
11424fi
11425fi
11426rm -f core conftest.err conftest.$ac_objext \
11427    conftest$ac_exeext conftest.$ac_ext
11428    LDFLAGS=$save_LDFLAGS
11429    libdir=$save_libdir
11430
11431fi
11432
11433  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11434
11435  # This implies no fast_install, which is unacceptable.
11436  # Some rework will be needed to allow for fast_install
11437  # before this can be enabled.
11438  hardcode_into_libs=yes
11439
11440  # Ideally, we could use ldconfig to report *all* directores which are
11441  # searched for libraries, however this is still not possible.  Aside from not
11442  # being certain /sbin/ldconfig is available, command
11443  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11444  # even though it is searched at run-time.  Try to do the best guess by
11445  # appending ld.so.conf contents (and includes) to the search path.
11446  if test -f /etc/ld.so.conf; then
11447    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;s/"//g;/^$/d' | tr '\n' ' '`
11448    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11449  fi
11450
11451  # We used to test for /lib/ld.so.1 and disable shared libraries on
11452  # powerpc, because MkLinux only supported shared libraries with the
11453  # GNU dynamic linker.  Since this was broken with cross compilers,
11454  # most powerpc-linux boxes support dynamic linking these days and
11455  # people can always --disable-shared, the test was removed, and we
11456  # assume the GNU/Linux dynamic linker is in use.
11457  dynamic_linker='GNU/Linux ld.so'
11458  ;;
11459
11460netbsd*)
11461  version_type=sunos
11462  need_lib_prefix=no
11463  need_version=no
11464  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11465    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11466    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11467    dynamic_linker='NetBSD (a.out) ld.so'
11468  else
11469    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470    soname_spec='$libname$release$shared_ext$major'
11471    dynamic_linker='NetBSD ld.elf_so'
11472  fi
11473  shlibpath_var=LD_LIBRARY_PATH
11474  shlibpath_overrides_runpath=yes
11475  hardcode_into_libs=yes
11476  ;;
11477
11478newsos6)
11479  version_type=linux # correct to gnu/linux during the next big refactor
11480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11481  shlibpath_var=LD_LIBRARY_PATH
11482  shlibpath_overrides_runpath=yes
11483  ;;
11484
11485*nto* | *qnx*)
11486  version_type=qnx
11487  need_lib_prefix=no
11488  need_version=no
11489  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490  soname_spec='$libname$release$shared_ext$major'
11491  shlibpath_var=LD_LIBRARY_PATH
11492  shlibpath_overrides_runpath=no
11493  hardcode_into_libs=yes
11494  dynamic_linker='ldqnx.so'
11495  ;;
11496
11497openbsd* | bitrig*)
11498  version_type=sunos
11499  sys_lib_dlsearch_path_spec=/usr/lib
11500  need_lib_prefix=no
11501  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11502    need_version=no
11503  else
11504    need_version=yes
11505  fi
11506  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11507  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11508  shlibpath_var=LD_LIBRARY_PATH
11509  shlibpath_overrides_runpath=yes
11510  ;;
11511
11512os2*)
11513  libname_spec='$name'
11514  version_type=windows
11515  shrext_cmds=.dll
11516  need_version=no
11517  need_lib_prefix=no
11518  # OS/2 can only load a DLL with a base name of 8 characters or less.
11519  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11520    v=$($ECHO $release$versuffix | tr -d .-);
11521    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11522    $ECHO $n$v`$shared_ext'
11523  library_names_spec='${libname}_dll.$libext'
11524  dynamic_linker='OS/2 ld.exe'
11525  shlibpath_var=BEGINLIBPATH
11526  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11527  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11528  postinstall_cmds='base_file=`basename \$file`~
11529    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11530    dldir=$destdir/`dirname \$dlpath`~
11531    test -d \$dldir || mkdir -p \$dldir~
11532    $install_prog $dir/$dlname \$dldir/$dlname~
11533    chmod a+x \$dldir/$dlname~
11534    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11535      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11536    fi'
11537  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11538    dlpath=$dir/\$dldll~
11539    $RM \$dlpath'
11540  ;;
11541
11542osf3* | osf4* | osf5*)
11543  version_type=osf
11544  need_lib_prefix=no
11545  need_version=no
11546  soname_spec='$libname$release$shared_ext$major'
11547  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548  shlibpath_var=LD_LIBRARY_PATH
11549  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11550  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11551  ;;
11552
11553rdos*)
11554  dynamic_linker=no
11555  ;;
11556
11557solaris*)
11558  version_type=linux # correct to gnu/linux during the next big refactor
11559  need_lib_prefix=no
11560  need_version=no
11561  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562  soname_spec='$libname$release$shared_ext$major'
11563  shlibpath_var=LD_LIBRARY_PATH
11564  shlibpath_overrides_runpath=yes
11565  hardcode_into_libs=yes
11566  # ldd complains unless libraries are executable
11567  postinstall_cmds='chmod +x $lib'
11568  ;;
11569
11570sunos4*)
11571  version_type=sunos
11572  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11573  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11574  shlibpath_var=LD_LIBRARY_PATH
11575  shlibpath_overrides_runpath=yes
11576  if test yes = "$with_gnu_ld"; then
11577    need_lib_prefix=no
11578  fi
11579  need_version=yes
11580  ;;
11581
11582sysv4 | sysv4.3*)
11583  version_type=linux # correct to gnu/linux during the next big refactor
11584  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585  soname_spec='$libname$release$shared_ext$major'
11586  shlibpath_var=LD_LIBRARY_PATH
11587  case $host_vendor in
11588    sni)
11589      shlibpath_overrides_runpath=no
11590      need_lib_prefix=no
11591      runpath_var=LD_RUN_PATH
11592      ;;
11593    siemens)
11594      need_lib_prefix=no
11595      ;;
11596    motorola)
11597      need_lib_prefix=no
11598      need_version=no
11599      shlibpath_overrides_runpath=no
11600      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11601      ;;
11602  esac
11603  ;;
11604
11605sysv4*MP*)
11606  if test -d /usr/nec; then
11607    version_type=linux # correct to gnu/linux during the next big refactor
11608    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11609    soname_spec='$libname$shared_ext.$major'
11610    shlibpath_var=LD_LIBRARY_PATH
11611  fi
11612  ;;
11613
11614sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11615  version_type=sco
11616  need_lib_prefix=no
11617  need_version=no
11618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11619  soname_spec='$libname$release$shared_ext$major'
11620  shlibpath_var=LD_LIBRARY_PATH
11621  shlibpath_overrides_runpath=yes
11622  hardcode_into_libs=yes
11623  if test yes = "$with_gnu_ld"; then
11624    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11625  else
11626    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11627    case $host_os in
11628      sco3.2v5*)
11629        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11630	;;
11631    esac
11632  fi
11633  sys_lib_dlsearch_path_spec='/usr/lib'
11634  ;;
11635
11636tpf*)
11637  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11638  version_type=linux # correct to gnu/linux during the next big refactor
11639  need_lib_prefix=no
11640  need_version=no
11641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642  shlibpath_var=LD_LIBRARY_PATH
11643  shlibpath_overrides_runpath=no
11644  hardcode_into_libs=yes
11645  ;;
11646
11647uts4*)
11648  version_type=linux # correct to gnu/linux during the next big refactor
11649  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11650  soname_spec='$libname$release$shared_ext$major'
11651  shlibpath_var=LD_LIBRARY_PATH
11652  ;;
11653
11654*)
11655  dynamic_linker=no
11656  ;;
11657esac
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11659$as_echo "$dynamic_linker" >&6; }
11660test no = "$dynamic_linker" && can_build_shared=no
11661
11662variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11663if test yes = "$GCC"; then
11664  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11665fi
11666
11667if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11668  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11669fi
11670
11671if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11672  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11673fi
11674
11675# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11676configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11677
11678# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11679func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11680
11681# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11682configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11781$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11782hardcode_action=
11783if test -n "$hardcode_libdir_flag_spec" ||
11784   test -n "$runpath_var" ||
11785   test yes = "$hardcode_automatic"; then
11786
11787  # We can hardcode non-existent directories.
11788  if test no != "$hardcode_direct" &&
11789     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11790     # have to relink, otherwise we might link with an installed library
11791     # when we should be linking with a yet-to-be-installed one
11792     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11793     test no != "$hardcode_minus_L"; then
11794    # Linking always hardcodes the temporary library directory.
11795    hardcode_action=relink
11796  else
11797    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11798    hardcode_action=immediate
11799  fi
11800else
11801  # We cannot hardcode anything, or else we can only hardcode existing
11802  # directories.
11803  hardcode_action=unsupported
11804fi
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11806$as_echo "$hardcode_action" >&6; }
11807
11808if test relink = "$hardcode_action" ||
11809   test yes = "$inherit_rpath"; then
11810  # Fast installation is not supported
11811  enable_fast_install=no
11812elif test yes = "$shlibpath_overrides_runpath" ||
11813     test no = "$enable_shared"; then
11814  # Fast installation is not necessary
11815  enable_fast_install=needless
11816fi
11817
11818
11819
11820
11821
11822
11823  if test yes != "$enable_dlopen"; then
11824  enable_dlopen=unknown
11825  enable_dlopen_self=unknown
11826  enable_dlopen_self_static=unknown
11827else
11828  lt_cv_dlopen=no
11829  lt_cv_dlopen_libs=
11830
11831  case $host_os in
11832  beos*)
11833    lt_cv_dlopen=load_add_on
11834    lt_cv_dlopen_libs=
11835    lt_cv_dlopen_self=yes
11836    ;;
11837
11838  mingw* | pw32* | cegcc*)
11839    lt_cv_dlopen=LoadLibrary
11840    lt_cv_dlopen_libs=
11841    ;;
11842
11843  cygwin*)
11844    lt_cv_dlopen=dlopen
11845    lt_cv_dlopen_libs=
11846    ;;
11847
11848  darwin*)
11849    # if libdl is installed we need to link against it
11850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11851$as_echo_n "checking for dlopen in -ldl... " >&6; }
11852if ${ac_cv_lib_dl_dlopen+:} false; then :
11853  $as_echo_n "(cached) " >&6
11854else
11855  ac_check_lib_save_LIBS=$LIBS
11856LIBS="-ldl  $LIBS"
11857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858/* end confdefs.h.  */
11859
11860/* Override any GCC internal prototype to avoid an error.
11861   Use char because int might match the return type of a GCC
11862   builtin and then its argument prototype would still apply.  */
11863#ifdef __cplusplus
11864extern "C"
11865#endif
11866char dlopen ();
11867int
11868main ()
11869{
11870return dlopen ();
11871  ;
11872  return 0;
11873}
11874_ACEOF
11875if ac_fn_c_try_link "$LINENO"; then :
11876  ac_cv_lib_dl_dlopen=yes
11877else
11878  ac_cv_lib_dl_dlopen=no
11879fi
11880rm -f core conftest.err conftest.$ac_objext \
11881    conftest$ac_exeext conftest.$ac_ext
11882LIBS=$ac_check_lib_save_LIBS
11883fi
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11885$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11886if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11887  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11888else
11889
11890    lt_cv_dlopen=dyld
11891    lt_cv_dlopen_libs=
11892    lt_cv_dlopen_self=yes
11893
11894fi
11895
11896    ;;
11897
11898  tpf*)
11899    # Don't try to run any link tests for TPF.  We know it's impossible
11900    # because TPF is a cross-compiler, and we know how we open DSOs.
11901    lt_cv_dlopen=dlopen
11902    lt_cv_dlopen_libs=
11903    lt_cv_dlopen_self=no
11904    ;;
11905
11906  *)
11907    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11908if test "x$ac_cv_func_shl_load" = xyes; then :
11909  lt_cv_dlopen=shl_load
11910else
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11912$as_echo_n "checking for shl_load in -ldld... " >&6; }
11913if ${ac_cv_lib_dld_shl_load+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  ac_check_lib_save_LIBS=$LIBS
11917LIBS="-ldld  $LIBS"
11918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919/* end confdefs.h.  */
11920
11921/* Override any GCC internal prototype to avoid an error.
11922   Use char because int might match the return type of a GCC
11923   builtin and then its argument prototype would still apply.  */
11924#ifdef __cplusplus
11925extern "C"
11926#endif
11927char shl_load ();
11928int
11929main ()
11930{
11931return shl_load ();
11932  ;
11933  return 0;
11934}
11935_ACEOF
11936if ac_fn_c_try_link "$LINENO"; then :
11937  ac_cv_lib_dld_shl_load=yes
11938else
11939  ac_cv_lib_dld_shl_load=no
11940fi
11941rm -f core conftest.err conftest.$ac_objext \
11942    conftest$ac_exeext conftest.$ac_ext
11943LIBS=$ac_check_lib_save_LIBS
11944fi
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11946$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11947if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11948  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11949else
11950  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11951if test "x$ac_cv_func_dlopen" = xyes; then :
11952  lt_cv_dlopen=dlopen
11953else
11954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11955$as_echo_n "checking for dlopen in -ldl... " >&6; }
11956if ${ac_cv_lib_dl_dlopen+:} false; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  ac_check_lib_save_LIBS=$LIBS
11960LIBS="-ldl  $LIBS"
11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h.  */
11963
11964/* Override any GCC internal prototype to avoid an error.
11965   Use char because int might match the return type of a GCC
11966   builtin and then its argument prototype would still apply.  */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970char dlopen ();
11971int
11972main ()
11973{
11974return dlopen ();
11975  ;
11976  return 0;
11977}
11978_ACEOF
11979if ac_fn_c_try_link "$LINENO"; then :
11980  ac_cv_lib_dl_dlopen=yes
11981else
11982  ac_cv_lib_dl_dlopen=no
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985    conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11989$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11990if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11991  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11994$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11995if ${ac_cv_lib_svld_dlopen+:} false; then :
11996  $as_echo_n "(cached) " >&6
11997else
11998  ac_check_lib_save_LIBS=$LIBS
11999LIBS="-lsvld  $LIBS"
12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002
12003/* Override any GCC internal prototype to avoid an error.
12004   Use char because int might match the return type of a GCC
12005   builtin and then its argument prototype would still apply.  */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char dlopen ();
12010int
12011main ()
12012{
12013return dlopen ();
12014  ;
12015  return 0;
12016}
12017_ACEOF
12018if ac_fn_c_try_link "$LINENO"; then :
12019  ac_cv_lib_svld_dlopen=yes
12020else
12021  ac_cv_lib_svld_dlopen=no
12022fi
12023rm -f core conftest.err conftest.$ac_objext \
12024    conftest$ac_exeext conftest.$ac_ext
12025LIBS=$ac_check_lib_save_LIBS
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12028$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12029if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12030  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12031else
12032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12033$as_echo_n "checking for dld_link in -ldld... " >&6; }
12034if ${ac_cv_lib_dld_dld_link+:} false; then :
12035  $as_echo_n "(cached) " >&6
12036else
12037  ac_check_lib_save_LIBS=$LIBS
12038LIBS="-ldld  $LIBS"
12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040/* end confdefs.h.  */
12041
12042/* Override any GCC internal prototype to avoid an error.
12043   Use char because int might match the return type of a GCC
12044   builtin and then its argument prototype would still apply.  */
12045#ifdef __cplusplus
12046extern "C"
12047#endif
12048char dld_link ();
12049int
12050main ()
12051{
12052return dld_link ();
12053  ;
12054  return 0;
12055}
12056_ACEOF
12057if ac_fn_c_try_link "$LINENO"; then :
12058  ac_cv_lib_dld_dld_link=yes
12059else
12060  ac_cv_lib_dld_dld_link=no
12061fi
12062rm -f core conftest.err conftest.$ac_objext \
12063    conftest$ac_exeext conftest.$ac_ext
12064LIBS=$ac_check_lib_save_LIBS
12065fi
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12067$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12068if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12069  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12070fi
12071
12072
12073fi
12074
12075
12076fi
12077
12078
12079fi
12080
12081
12082fi
12083
12084
12085fi
12086
12087    ;;
12088  esac
12089
12090  if test no = "$lt_cv_dlopen"; then
12091    enable_dlopen=no
12092  else
12093    enable_dlopen=yes
12094  fi
12095
12096  case $lt_cv_dlopen in
12097  dlopen)
12098    save_CPPFLAGS=$CPPFLAGS
12099    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12100
12101    save_LDFLAGS=$LDFLAGS
12102    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12103
12104    save_LIBS=$LIBS
12105    LIBS="$lt_cv_dlopen_libs $LIBS"
12106
12107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12108$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12109if ${lt_cv_dlopen_self+:} false; then :
12110  $as_echo_n "(cached) " >&6
12111else
12112  	  if test yes = "$cross_compiling"; then :
12113  lt_cv_dlopen_self=cross
12114else
12115  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116  lt_status=$lt_dlunknown
12117  cat > conftest.$ac_ext <<_LT_EOF
12118#line $LINENO "configure"
12119#include "confdefs.h"
12120
12121#if HAVE_DLFCN_H
12122#include <dlfcn.h>
12123#endif
12124
12125#include <stdio.h>
12126
12127#ifdef RTLD_GLOBAL
12128#  define LT_DLGLOBAL		RTLD_GLOBAL
12129#else
12130#  ifdef DL_GLOBAL
12131#    define LT_DLGLOBAL		DL_GLOBAL
12132#  else
12133#    define LT_DLGLOBAL		0
12134#  endif
12135#endif
12136
12137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138   find out it does not work in some platform. */
12139#ifndef LT_DLLAZY_OR_NOW
12140#  ifdef RTLD_LAZY
12141#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12142#  else
12143#    ifdef DL_LAZY
12144#      define LT_DLLAZY_OR_NOW		DL_LAZY
12145#    else
12146#      ifdef RTLD_NOW
12147#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12148#      else
12149#        ifdef DL_NOW
12150#          define LT_DLLAZY_OR_NOW	DL_NOW
12151#        else
12152#          define LT_DLLAZY_OR_NOW	0
12153#        endif
12154#      endif
12155#    endif
12156#  endif
12157#endif
12158
12159/* When -fvisibility=hidden is used, assume the code has been annotated
12160   correspondingly for the symbols needed.  */
12161#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12162int fnord () __attribute__((visibility("default")));
12163#endif
12164
12165int fnord () { return 42; }
12166int main ()
12167{
12168  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12169  int status = $lt_dlunknown;
12170
12171  if (self)
12172    {
12173      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12174      else
12175        {
12176	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12177          else puts (dlerror ());
12178	}
12179      /* dlclose (self); */
12180    }
12181  else
12182    puts (dlerror ());
12183
12184  return status;
12185}
12186_LT_EOF
12187  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12188  (eval $ac_link) 2>&5
12189  ac_status=$?
12190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12192    (./conftest; exit; ) >&5 2>/dev/null
12193    lt_status=$?
12194    case x$lt_status in
12195      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12196      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12197      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12198    esac
12199  else :
12200    # compilation failed
12201    lt_cv_dlopen_self=no
12202  fi
12203fi
12204rm -fr conftest*
12205
12206
12207fi
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12209$as_echo "$lt_cv_dlopen_self" >&6; }
12210
12211    if test yes = "$lt_cv_dlopen_self"; then
12212      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12213      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12214$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12215if ${lt_cv_dlopen_self_static+:} false; then :
12216  $as_echo_n "(cached) " >&6
12217else
12218  	  if test yes = "$cross_compiling"; then :
12219  lt_cv_dlopen_self_static=cross
12220else
12221  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12222  lt_status=$lt_dlunknown
12223  cat > conftest.$ac_ext <<_LT_EOF
12224#line $LINENO "configure"
12225#include "confdefs.h"
12226
12227#if HAVE_DLFCN_H
12228#include <dlfcn.h>
12229#endif
12230
12231#include <stdio.h>
12232
12233#ifdef RTLD_GLOBAL
12234#  define LT_DLGLOBAL		RTLD_GLOBAL
12235#else
12236#  ifdef DL_GLOBAL
12237#    define LT_DLGLOBAL		DL_GLOBAL
12238#  else
12239#    define LT_DLGLOBAL		0
12240#  endif
12241#endif
12242
12243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12244   find out it does not work in some platform. */
12245#ifndef LT_DLLAZY_OR_NOW
12246#  ifdef RTLD_LAZY
12247#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12248#  else
12249#    ifdef DL_LAZY
12250#      define LT_DLLAZY_OR_NOW		DL_LAZY
12251#    else
12252#      ifdef RTLD_NOW
12253#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12254#      else
12255#        ifdef DL_NOW
12256#          define LT_DLLAZY_OR_NOW	DL_NOW
12257#        else
12258#          define LT_DLLAZY_OR_NOW	0
12259#        endif
12260#      endif
12261#    endif
12262#  endif
12263#endif
12264
12265/* When -fvisibility=hidden is used, assume the code has been annotated
12266   correspondingly for the symbols needed.  */
12267#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12268int fnord () __attribute__((visibility("default")));
12269#endif
12270
12271int fnord () { return 42; }
12272int main ()
12273{
12274  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12275  int status = $lt_dlunknown;
12276
12277  if (self)
12278    {
12279      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12280      else
12281        {
12282	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12283          else puts (dlerror ());
12284	}
12285      /* dlclose (self); */
12286    }
12287  else
12288    puts (dlerror ());
12289
12290  return status;
12291}
12292_LT_EOF
12293  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12294  (eval $ac_link) 2>&5
12295  ac_status=$?
12296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12298    (./conftest; exit; ) >&5 2>/dev/null
12299    lt_status=$?
12300    case x$lt_status in
12301      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12302      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12303      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12304    esac
12305  else :
12306    # compilation failed
12307    lt_cv_dlopen_self_static=no
12308  fi
12309fi
12310rm -fr conftest*
12311
12312
12313fi
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12315$as_echo "$lt_cv_dlopen_self_static" >&6; }
12316    fi
12317
12318    CPPFLAGS=$save_CPPFLAGS
12319    LDFLAGS=$save_LDFLAGS
12320    LIBS=$save_LIBS
12321    ;;
12322  esac
12323
12324  case $lt_cv_dlopen_self in
12325  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12326  *) enable_dlopen_self=unknown ;;
12327  esac
12328
12329  case $lt_cv_dlopen_self_static in
12330  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12331  *) enable_dlopen_self_static=unknown ;;
12332  esac
12333fi
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351striplib=
12352old_striplib=
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12354$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12355if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "strip" >/dev/null; then
12356  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12357  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359$as_echo "yes" >&6; }
12360else
12361# FIXME - insert some real tests, host_os isn't really good enough
12362  case $host_os in
12363  darwin*)
12364    if test -n "$STRIP"; then
12365      striplib="$STRIP -x"
12366      old_striplib="$STRIP -S"
12367      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12368$as_echo "yes" >&6; }
12369    else
12370      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372    fi
12373    ;;
12374  *)
12375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377    ;;
12378  esac
12379fi
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392  # Report what library types will actually be built
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12394$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12396$as_echo "$can_build_shared" >&6; }
12397
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12399$as_echo_n "checking whether to build shared libraries... " >&6; }
12400  test no = "$can_build_shared" && enable_shared=no
12401
12402  # On AIX, shared libraries and static libraries use the same namespace, and
12403  # are all built from PIC.
12404  case $host_os in
12405  aix3*)
12406    test yes = "$enable_shared" && enable_static=no
12407    if test -n "$RANLIB"; then
12408      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12409      postinstall_cmds='$RANLIB $lib'
12410    fi
12411    ;;
12412
12413  aix[4-9]*)
12414    if test ia64 != "$host_cpu"; then
12415      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12416      yes,aix,yes) ;;			# shared object as lib.so file only
12417      yes,svr4,*) ;;			# shared object as lib.so archive member only
12418      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12419      esac
12420    fi
12421    ;;
12422  esac
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12424$as_echo "$enable_shared" >&6; }
12425
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12427$as_echo_n "checking whether to build static libraries... " >&6; }
12428  # Make sure either enable_shared or enable_static is yes.
12429  test yes = "$enable_shared" || enable_static=yes
12430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12431$as_echo "$enable_static" >&6; }
12432
12433
12434
12435
12436fi
12437ac_ext=c
12438ac_cpp='$CPP $CPPFLAGS'
12439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12441ac_compiler_gnu=$ac_cv_c_compiler_gnu
12442
12443CC=$lt_save_CC
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459        ac_config_commands="$ac_config_commands libtool"
12460
12461
12462
12463
12464# Only expand once:
12465
12466
12467for ac_func in getisax
12468do :
12469  ac_fn_c_check_func "$LINENO" "getisax" "ac_cv_func_getisax"
12470if test "x$ac_cv_func_getisax" = xyes; then :
12471  cat >>confdefs.h <<_ACEOF
12472#define HAVE_GETISAX 1
12473_ACEOF
12474
12475fi
12476done
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12479$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12480if ${ac_cv_c_bigendian+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  ac_cv_c_bigendian=unknown
12484    # See if we're dealing with a universal compiler.
12485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h.  */
12487#ifndef __APPLE_CC__
12488	       not a universal capable compiler
12489	     #endif
12490	     typedef int dummy;
12491
12492_ACEOF
12493if ac_fn_c_try_compile "$LINENO"; then :
12494
12495	# Check for potential -arch flags.  It is not universal unless
12496	# there are at least two -arch flags with different values.
12497	ac_arch=
12498	ac_prev=
12499	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12500	 if test -n "$ac_prev"; then
12501	   case $ac_word in
12502	     i?86 | x86_64 | ppc | ppc64)
12503	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12504		 ac_arch=$ac_word
12505	       else
12506		 ac_cv_c_bigendian=universal
12507		 break
12508	       fi
12509	       ;;
12510	   esac
12511	   ac_prev=
12512	 elif test "x$ac_word" = "x-arch"; then
12513	   ac_prev=arch
12514	 fi
12515       done
12516fi
12517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518    if test $ac_cv_c_bigendian = unknown; then
12519      # See if sys/param.h defines the BYTE_ORDER macro.
12520      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h.  */
12522#include <sys/types.h>
12523	     #include <sys/param.h>
12524
12525int
12526main ()
12527{
12528#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12529		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12530		     && LITTLE_ENDIAN)
12531	      bogus endian macros
12532	     #endif
12533
12534  ;
12535  return 0;
12536}
12537_ACEOF
12538if ac_fn_c_try_compile "$LINENO"; then :
12539  # It does; now see whether it defined to BIG_ENDIAN or not.
12540	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541/* end confdefs.h.  */
12542#include <sys/types.h>
12543		#include <sys/param.h>
12544
12545int
12546main ()
12547{
12548#if BYTE_ORDER != BIG_ENDIAN
12549		 not big endian
12550		#endif
12551
12552  ;
12553  return 0;
12554}
12555_ACEOF
12556if ac_fn_c_try_compile "$LINENO"; then :
12557  ac_cv_c_bigendian=yes
12558else
12559  ac_cv_c_bigendian=no
12560fi
12561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562fi
12563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564    fi
12565    if test $ac_cv_c_bigendian = unknown; then
12566      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12567      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568/* end confdefs.h.  */
12569#include <limits.h>
12570
12571int
12572main ()
12573{
12574#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12575	      bogus endian macros
12576	     #endif
12577
12578  ;
12579  return 0;
12580}
12581_ACEOF
12582if ac_fn_c_try_compile "$LINENO"; then :
12583  # It does; now see whether it defined to _BIG_ENDIAN or not.
12584	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585/* end confdefs.h.  */
12586#include <limits.h>
12587
12588int
12589main ()
12590{
12591#ifndef _BIG_ENDIAN
12592		 not big endian
12593		#endif
12594
12595  ;
12596  return 0;
12597}
12598_ACEOF
12599if ac_fn_c_try_compile "$LINENO"; then :
12600  ac_cv_c_bigendian=yes
12601else
12602  ac_cv_c_bigendian=no
12603fi
12604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607    fi
12608    if test $ac_cv_c_bigendian = unknown; then
12609      # Compile a test program.
12610      if test "$cross_compiling" = yes; then :
12611  # Try to guess by grepping values from an object file.
12612	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613/* end confdefs.h.  */
12614short int ascii_mm[] =
12615		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12616		short int ascii_ii[] =
12617		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12618		int use_ascii (int i) {
12619		  return ascii_mm[i] + ascii_ii[i];
12620		}
12621		short int ebcdic_ii[] =
12622		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12623		short int ebcdic_mm[] =
12624		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12625		int use_ebcdic (int i) {
12626		  return ebcdic_mm[i] + ebcdic_ii[i];
12627		}
12628		extern int foo;
12629
12630int
12631main ()
12632{
12633return use_ascii (foo) == use_ebcdic (foo);
12634  ;
12635  return 0;
12636}
12637_ACEOF
12638if ac_fn_c_try_compile "$LINENO"; then :
12639  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12640	      ac_cv_c_bigendian=yes
12641	    fi
12642	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12643	      if test "$ac_cv_c_bigendian" = unknown; then
12644		ac_cv_c_bigendian=no
12645	      else
12646		# finding both strings is unlikely to happen, but who knows?
12647		ac_cv_c_bigendian=unknown
12648	      fi
12649	    fi
12650fi
12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652else
12653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654/* end confdefs.h.  */
12655$ac_includes_default
12656int
12657main ()
12658{
12659
12660	     /* Are we little or big endian?  From Harbison&Steele.  */
12661	     union
12662	     {
12663	       long int l;
12664	       char c[sizeof (long int)];
12665	     } u;
12666	     u.l = 1;
12667	     return u.c[sizeof (long int) - 1] == 1;
12668
12669  ;
12670  return 0;
12671}
12672_ACEOF
12673if ac_fn_c_try_run "$LINENO"; then :
12674  ac_cv_c_bigendian=no
12675else
12676  ac_cv_c_bigendian=yes
12677fi
12678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12679  conftest.$ac_objext conftest.beam conftest.$ac_ext
12680fi
12681
12682    fi
12683fi
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12685$as_echo "$ac_cv_c_bigendian" >&6; }
12686 case $ac_cv_c_bigendian in #(
12687   yes)
12688     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12689;; #(
12690   no)
12691      ;; #(
12692   universal)
12693
12694$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12695
12696     ;; #(
12697   *)
12698     as_fn_error $? "unknown endianness
12699 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12700 esac
12701
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12703$as_echo_n "checking for inline... " >&6; }
12704if ${ac_cv_c_inline+:} false; then :
12705  $as_echo_n "(cached) " >&6
12706else
12707  ac_cv_c_inline=no
12708for ac_kw in inline __inline__ __inline; do
12709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710/* end confdefs.h.  */
12711#ifndef __cplusplus
12712typedef int foo_t;
12713static $ac_kw foo_t static_foo () {return 0; }
12714$ac_kw foo_t foo () {return 0; }
12715#endif
12716
12717_ACEOF
12718if ac_fn_c_try_compile "$LINENO"; then :
12719  ac_cv_c_inline=$ac_kw
12720fi
12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722  test "$ac_cv_c_inline" != no && break
12723done
12724
12725fi
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12727$as_echo "$ac_cv_c_inline" >&6; }
12728
12729case $ac_cv_c_inline in
12730  inline | yes) ;;
12731  *)
12732    case $ac_cv_c_inline in
12733      no) ac_val=;;
12734      *) ac_val=$ac_cv_c_inline;;
12735    esac
12736    cat >>confdefs.h <<_ACEOF
12737#ifndef __cplusplus
12738#define inline $ac_val
12739#endif
12740_ACEOF
12741    ;;
12742esac
12743
12744
12745
12746
12747WERROR=
12748for w in -Werror -errwarn; do
12749    if test "z$WERROR" = "z"; then
12750        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $w" >&5
12751$as_echo_n "checking whether the compiler supports $w... " >&6; }
12752        	save_CFLAGS="$CFLAGS"
12753	save_LDFLAGS="$LDFLAGS"
12754	save_LIBS="$LIBS"
12755	CFLAGS=""
12756	LDFLAGS=""
12757	LIBS=""
12758	CFLAGS=$w
12759	CFLAGS="$save_CFLAGS $CFLAGS"
12760	LDFLAGS="$save_LDFLAGS $LDFLAGS"
12761	LIBS="$save_LIBS $LIBS"
12762	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763/* end confdefs.h.  */
12764int main(int c, char **v) { (void)c; (void)v; return 0; }
12765_ACEOF
12766if ac_fn_c_try_link "$LINENO"; then :
12767  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12768		 pixman_cc_flag=yes
12769else
12770  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12771		 pixman_cc_flag=no
12772fi
12773rm -f core conftest.err conftest.$ac_objext \
12774    conftest$ac_exeext conftest.$ac_ext
12775
12776	if test "x$pixman_cc_stderr" != "x"; then
12777		pixman_cc_flag=no
12778	fi
12779
12780	if test "x$pixman_cc_flag" = "xyes"; then
12781		WERROR=$w; yesno=yes
12782	else
12783		yesno=no
12784	fi
12785	CFLAGS="$save_CFLAGS"
12786	LDFLAGS="$save_LDFLAGS"
12787	LIBS="$save_LIBS"
12788
12789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $yesno" >&5
12790$as_echo "$yesno" >&6; }
12791    fi
12792done
12793
12794
12795
12796# The cast to long int works around a bug in the HP C Compiler
12797# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12798# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12799# This bug is HP SR number 8606223364.
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12801$as_echo_n "checking size of long... " >&6; }
12802if ${ac_cv_sizeof_long+:} false; then :
12803  $as_echo_n "(cached) " >&6
12804else
12805  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12806
12807else
12808  if test "$ac_cv_type_long" = yes; then
12809     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12811as_fn_error 77 "cannot compute sizeof (long)
12812See \`config.log' for more details" "$LINENO" 5; }
12813   else
12814     ac_cv_sizeof_long=0
12815   fi
12816fi
12817
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12820$as_echo "$ac_cv_sizeof_long" >&6; }
12821
12822
12823
12824cat >>confdefs.h <<_ACEOF
12825#define SIZEOF_LONG $ac_cv_sizeof_long
12826_ACEOF
12827
12828
12829
12830# Checks for Sun Studio compilers
12831ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12832if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12833  SUNCC="yes"
12834else
12835  SUNCC="no"
12836fi
12837
12838ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default"
12839if test "x$ac_cv_have_decl___amd64" = xyes; then :
12840  AMD64_ABI="yes"
12841else
12842  AMD64_ABI="no"
12843fi
12844
12845
12846# Default CFLAGS to -O -g rather than just the -g from AC_PROG_CC
12847# if we're using Sun Studio and neither the user nor a config.site
12848# has set CFLAGS.
12849if test $SUNCC = yes &&			\
12850   test "x$test_CFLAGS" = "x" &&	\
12851   test "$CFLAGS" = "-g"
12852then
12853  CFLAGS="-O -g"
12854fi
12855
12856#
12857# We ignore pixman_major in the version here because the major version should
12858# always be encoded in the actual library name. Ie., the soname is:
12859#
12860#      pixman-$(pixman_major).0.minor.micro
12861#
12862
12863
12864
12865
12866LT_VERSION_INFO="40:0:40"
12867
12868PIXMAN_VERSION_MAJOR=0
12869
12870PIXMAN_VERSION_MINOR=40
12871
12872PIXMAN_VERSION_MICRO=0
12873
12874
12875
12876
12877# Check for dependencies
12878
12879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wall" >&5
12880$as_echo_n "checking whether the compiler supports -Wall... " >&6; }
12881		save_CFLAGS="$CFLAGS"
12882	save_LDFLAGS="$LDFLAGS"
12883	save_LIBS="$LIBS"
12884	CFLAGS=""
12885	LDFLAGS=""
12886	LIBS=""
12887	CFLAGS="$WERROR -Wall"
12888	CFLAGS="$save_CFLAGS $CFLAGS"
12889	LDFLAGS="$save_LDFLAGS $LDFLAGS"
12890	LIBS="$save_LIBS $LIBS"
12891	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892/* end confdefs.h.  */
12893
12894		 int main(int c, char **v) { (void)c; (void)v; return 0; }
12895
12896_ACEOF
12897if ac_fn_c_try_link "$LINENO"; then :
12898  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12899		 pixman_cc_flag=yes
12900else
12901  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12902		 pixman_cc_flag=no
12903fi
12904rm -f core conftest.err conftest.$ac_objext \
12905    conftest$ac_exeext conftest.$ac_ext
12906
12907	if test "x$pixman_cc_stderr" != "x"; then
12908		pixman_cc_flag=no
12909	fi
12910
12911	if test "x$pixman_cc_flag" = "xyes"; then
12912		_yesno=yes
12913	else
12914		_yesno=no
12915	fi
12916	CFLAGS="$save_CFLAGS"
12917	LDFLAGS="$save_LDFLAGS"
12918	LIBS="$save_LIBS"
12919
12920	if test "x$_yesno" = xyes; then
12921	   CFLAGS="$CFLAGS -Wall"
12922	fi
12923	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5
12924$as_echo "$_yesno" >&6; }
12925
12926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12927$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12928		save_CFLAGS="$CFLAGS"
12929	save_LDFLAGS="$LDFLAGS"
12930	save_LIBS="$LIBS"
12931	CFLAGS=""
12932	LDFLAGS=""
12933	LIBS=""
12934	CFLAGS="$WERROR -Wdeclaration-after-statement"
12935	CFLAGS="$save_CFLAGS $CFLAGS"
12936	LDFLAGS="$save_LDFLAGS $LDFLAGS"
12937	LIBS="$save_LIBS $LIBS"
12938	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939/* end confdefs.h.  */
12940
12941		 int main(int c, char **v) { (void)c; (void)v; return 0; }
12942
12943_ACEOF
12944if ac_fn_c_try_link "$LINENO"; then :
12945  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12946		 pixman_cc_flag=yes
12947else
12948  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12949		 pixman_cc_flag=no
12950fi
12951rm -f core conftest.err conftest.$ac_objext \
12952    conftest$ac_exeext conftest.$ac_ext
12953
12954	if test "x$pixman_cc_stderr" != "x"; then
12955		pixman_cc_flag=no
12956	fi
12957
12958	if test "x$pixman_cc_flag" = "xyes"; then
12959		_yesno=yes
12960	else
12961		_yesno=no
12962	fi
12963	CFLAGS="$save_CFLAGS"
12964	LDFLAGS="$save_LDFLAGS"
12965	LIBS="$save_LIBS"
12966
12967	if test "x$_yesno" = xyes; then
12968	   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12969	fi
12970	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5
12971$as_echo "$_yesno" >&6; }
12972
12973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-local-typedefs" >&5
12974$as_echo_n "checking whether the compiler supports -Wno-unused-local-typedefs... " >&6; }
12975		save_CFLAGS="$CFLAGS"
12976	save_LDFLAGS="$LDFLAGS"
12977	save_LIBS="$LIBS"
12978	CFLAGS=""
12979	LDFLAGS=""
12980	LIBS=""
12981	CFLAGS="$WERROR -Wno-unused-local-typedefs"
12982	CFLAGS="$save_CFLAGS $CFLAGS"
12983	LDFLAGS="$save_LDFLAGS $LDFLAGS"
12984	LIBS="$save_LIBS $LIBS"
12985	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986/* end confdefs.h.  */
12987
12988		 int main(int c, char **v) { (void)c; (void)v; return 0; }
12989
12990_ACEOF
12991if ac_fn_c_try_link "$LINENO"; then :
12992  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12993		 pixman_cc_flag=yes
12994else
12995  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
12996		 pixman_cc_flag=no
12997fi
12998rm -f core conftest.err conftest.$ac_objext \
12999    conftest$ac_exeext conftest.$ac_ext
13000
13001	if test "x$pixman_cc_stderr" != "x"; then
13002		pixman_cc_flag=no
13003	fi
13004
13005	if test "x$pixman_cc_flag" = "xyes"; then
13006		_yesno=yes
13007	else
13008		_yesno=no
13009	fi
13010	CFLAGS="$save_CFLAGS"
13011	LDFLAGS="$save_LDFLAGS"
13012	LIBS="$save_LIBS"
13013
13014	if test "x$_yesno" = xyes; then
13015	   CFLAGS="$CFLAGS -Wno-unused-local-typedefs"
13016	fi
13017	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5
13018$as_echo "$_yesno" >&6; }
13019
13020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13021$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13022		save_CFLAGS="$CFLAGS"
13023	save_LDFLAGS="$LDFLAGS"
13024	save_LIBS="$LIBS"
13025	CFLAGS=""
13026	LDFLAGS=""
13027	LIBS=""
13028	CFLAGS="$WERROR -fno-strict-aliasing"
13029	CFLAGS="$save_CFLAGS $CFLAGS"
13030	LDFLAGS="$save_LDFLAGS $LDFLAGS"
13031	LIBS="$save_LIBS $LIBS"
13032	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h.  */
13034
13035		 int main(int c, char **v) { (void)c; (void)v; return 0; }
13036
13037_ACEOF
13038if ac_fn_c_try_link "$LINENO"; then :
13039  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13040		 pixman_cc_flag=yes
13041else
13042  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13043		 pixman_cc_flag=no
13044fi
13045rm -f core conftest.err conftest.$ac_objext \
13046    conftest$ac_exeext conftest.$ac_ext
13047
13048	if test "x$pixman_cc_stderr" != "x"; then
13049		pixman_cc_flag=no
13050	fi
13051
13052	if test "x$pixman_cc_flag" = "xyes"; then
13053		_yesno=yes
13054	else
13055		_yesno=no
13056	fi
13057	CFLAGS="$save_CFLAGS"
13058	LDFLAGS="$save_LDFLAGS"
13059	LIBS="$save_LIBS"
13060
13061	if test "x$_yesno" = xyes; then
13062	   CFLAGS="$CFLAGS -fno-strict-aliasing"
13063	fi
13064	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5
13065$as_echo "$_yesno" >&6; }
13066
13067
13068
13069# Check for OpenMP support only when autoconf support that (require autoconf >=2.62)
13070OPENMP_CFLAGS=
13071
13072  OPENMP_CFLAGS=
13073  # Check whether --enable-openmp was given.
13074if test "${enable_openmp+set}" = set; then :
13075  enableval=$enable_openmp;
13076fi
13077
13078  if test "$enable_openmp" != no; then
13079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
13080$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
13081if ${ac_cv_prog_c_openmp+:} false; then :
13082  $as_echo_n "(cached) " >&6
13083else
13084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085/* end confdefs.h.  */
13086
13087#ifndef _OPENMP
13088 choke me
13089#endif
13090#include <omp.h>
13091int main () { return omp_get_num_threads (); }
13092
13093_ACEOF
13094if ac_fn_c_try_link "$LINENO"; then :
13095  ac_cv_prog_c_openmp='none needed'
13096else
13097  ac_cv_prog_c_openmp='unsupported'
13098	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
13099                           -Popenmp --openmp; do
13100	    ac_save_CFLAGS=$CFLAGS
13101	    CFLAGS="$CFLAGS $ac_option"
13102	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103/* end confdefs.h.  */
13104
13105#ifndef _OPENMP
13106 choke me
13107#endif
13108#include <omp.h>
13109int main () { return omp_get_num_threads (); }
13110
13111_ACEOF
13112if ac_fn_c_try_link "$LINENO"; then :
13113  ac_cv_prog_c_openmp=$ac_option
13114fi
13115rm -f core conftest.err conftest.$ac_objext \
13116    conftest$ac_exeext conftest.$ac_ext
13117	    CFLAGS=$ac_save_CFLAGS
13118	    if test "$ac_cv_prog_c_openmp" != unsupported; then
13119	      break
13120	    fi
13121	  done
13122fi
13123rm -f core conftest.err conftest.$ac_objext \
13124    conftest$ac_exeext conftest.$ac_ext
13125fi
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
13127$as_echo "$ac_cv_prog_c_openmp" >&6; }
13128    case $ac_cv_prog_c_openmp in #(
13129      "none needed" | unsupported)
13130	;; #(
13131      *)
13132	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
13133    esac
13134  fi
13135
13136
13137
13138if test "x$enable_openmp" = "xyes" && test "x$ac_cv_prog_c_openmp" = "xunsupported" ; then
13139  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP support requested but found unsupported" >&5
13140$as_echo "$as_me: WARNING: OpenMP support requested but found unsupported" >&2;}
13141fi
13142
13143if test "x$ac_cv_prog_c_openmp" != "xunsupported" && test "x$ac_cv_prog_c_openmp" != "x"; then
13144
13145
13146  	save_CFLAGS="$CFLAGS"
13147	save_LDFLAGS="$LDFLAGS"
13148	save_LIBS="$LIBS"
13149	CFLAGS=""
13150	LDFLAGS=""
13151	LIBS=""
13152	CFLAGS="$OPENMP_CFLAGS" LDFLAGS="$OPENMP_CFLAGS"
13153	CFLAGS="$save_CFLAGS $CFLAGS"
13154	LDFLAGS="$save_LDFLAGS $LDFLAGS"
13155	LIBS="$save_LIBS $LIBS"
13156	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157/* end confdefs.h.  */
13158  #include <stdio.h>
13159
13160  extern unsigned int lcg_seed;
13161  #pragma omp threadprivate(lcg_seed)
13162  unsigned int lcg_seed;
13163
13164  unsigned function(unsigned a, unsigned b)
13165  {
13166	lcg_seed ^= b;
13167	return ((a + b) ^ a ) + lcg_seed;
13168  }
13169
13170  int main(int argc, char **argv)
13171  {
13172	int i;
13173	int n1 = 0, n2 = argc;
13174	unsigned checksum = 0;
13175	int verbose = argv != NULL;
13176	unsigned (*test_function)(unsigned, unsigned);
13177	test_function = function;
13178	#pragma omp parallel for reduction(+:checksum) default(none) \
13179					shared(n1, n2, test_function, verbose)
13180	for (i = n1; i < n2; i++)
13181	{
13182		unsigned crc = test_function (i, 0);
13183		if (verbose)
13184			printf ("%d: %08X\n", i, crc);
13185		checksum += crc;
13186	}
13187	printf("%u\n", checksum);
13188	return 0;
13189  }
13190
13191_ACEOF
13192if ac_fn_c_try_link "$LINENO"; then :
13193  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13194		 pixman_cc_flag=yes
13195else
13196  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13197		 pixman_cc_flag=no
13198fi
13199rm -f core conftest.err conftest.$ac_objext \
13200    conftest$ac_exeext conftest.$ac_ext
13201
13202	if test "x$pixman_cc_stderr" != "x"; then
13203		pixman_cc_flag=no
13204	fi
13205
13206	if test "x$pixman_cc_flag" = "xyes"; then
13207		have_openmp=yes
13208	else
13209		have_openmp=no
13210	fi
13211	CFLAGS="$save_CFLAGS"
13212	LDFLAGS="$save_LDFLAGS"
13213	LIBS="$save_LIBS"
13214
13215  if test "x$have_openmp" = "xyes" ; then
13216
13217$as_echo "#define USE_OPENMP 1" >>confdefs.h
13218
13219  fi
13220fi
13221
13222
13223
13224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fvisibility=hidden" >&5
13225$as_echo_n "checking whether the compiler supports -fvisibility=hidden... " >&6; }
13226		save_CFLAGS="$CFLAGS"
13227	save_LDFLAGS="$LDFLAGS"
13228	save_LIBS="$LIBS"
13229	CFLAGS=""
13230	LDFLAGS=""
13231	LIBS=""
13232	CFLAGS="$WERROR -fvisibility=hidden"
13233	CFLAGS="$save_CFLAGS $CFLAGS"
13234	LDFLAGS="$save_LDFLAGS $LDFLAGS"
13235	LIBS="$save_LIBS $LIBS"
13236	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238#if defined(__GNUC__) && (__GNUC__ >= 4)
13239#ifdef _WIN32
13240#error Have -fvisibility but it is ignored and generates a warning
13241#endif
13242#else
13243#error Need GCC 4.0 for visibility
13244#endif
13245
13246		 int main(int c, char **v) { (void)c; (void)v; return 0; }
13247
13248_ACEOF
13249if ac_fn_c_try_link "$LINENO"; then :
13250  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13251		 pixman_cc_flag=yes
13252else
13253  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13254		 pixman_cc_flag=no
13255fi
13256rm -f core conftest.err conftest.$ac_objext \
13257    conftest$ac_exeext conftest.$ac_ext
13258
13259	if test "x$pixman_cc_stderr" != "x"; then
13260		pixman_cc_flag=no
13261	fi
13262
13263	if test "x$pixman_cc_flag" = "xyes"; then
13264		_yesno=yes
13265	else
13266		_yesno=no
13267	fi
13268	CFLAGS="$save_CFLAGS"
13269	LDFLAGS="$save_LDFLAGS"
13270	LIBS="$save_LIBS"
13271
13272	if test "x$_yesno" = xyes; then
13273	   CFLAGS="$CFLAGS -fvisibility=hidden"
13274	fi
13275	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5
13276$as_echo "$_yesno" >&6; }
13277
13278
13279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -xldscope=hidden" >&5
13280$as_echo_n "checking whether the compiler supports -xldscope=hidden... " >&6; }
13281		save_CFLAGS="$CFLAGS"
13282	save_LDFLAGS="$LDFLAGS"
13283	save_LIBS="$LIBS"
13284	CFLAGS=""
13285	LDFLAGS=""
13286	LIBS=""
13287	CFLAGS="$WERROR -xldscope=hidden"
13288	CFLAGS="$save_CFLAGS $CFLAGS"
13289	LDFLAGS="$save_LDFLAGS $LDFLAGS"
13290	LIBS="$save_LIBS $LIBS"
13291	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h.  */
13293#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
13294#else
13295#error Need Sun Studio 8 for visibility
13296#endif
13297
13298		 int main(int c, char **v) { (void)c; (void)v; return 0; }
13299
13300_ACEOF
13301if ac_fn_c_try_link "$LINENO"; then :
13302  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13303		 pixman_cc_flag=yes
13304else
13305  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
13306		 pixman_cc_flag=no
13307fi
13308rm -f core conftest.err conftest.$ac_objext \
13309    conftest$ac_exeext conftest.$ac_ext
13310
13311	if test "x$pixman_cc_stderr" != "x"; then
13312		pixman_cc_flag=no
13313	fi
13314
13315	if test "x$pixman_cc_flag" = "xyes"; then
13316		_yesno=yes
13317	else
13318		_yesno=no
13319	fi
13320	CFLAGS="$save_CFLAGS"
13321	LDFLAGS="$save_LDFLAGS"
13322	LIBS="$save_LIBS"
13323
13324	if test "x$_yesno" = xyes; then
13325	   CFLAGS="$CFLAGS -xldscope=hidden"
13326	fi
13327	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5
13328$as_echo "$_yesno" >&6; }
13329
13330
13331
13332if test "x$LS_CFLAGS" = "x" ; then
13333    LS_CFLAGS="-mloongson-mmi"
13334fi
13335
13336have_loongson_mmi=no
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Loongson MMI assembler" >&5
13338$as_echo_n "checking whether to use Loongson MMI assembler... " >&6; }
13339
13340xserver_save_CFLAGS=$CFLAGS
13341CFLAGS=" $LS_CFLAGS $CFLAGS -I$srcdir"
13342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h.  */
13344
13345#ifndef __mips_loongson_vector_rev
13346#error "Loongson Multimedia Instructions are only available on Loongson"
13347#endif
13348#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
13349#error "Need GCC >= 4.4 for Loongson MMI compilation"
13350#endif
13351#include "pixman/loongson-mmintrin.h"
13352int main () {
13353    union {
13354        __m64 v;
13355        char c[8];
13356    } a = { .c = {1, 2, 3, 4, 5, 6, 7, 8} };
13357    int b = 4;
13358    __m64 c = _mm_srli_pi16 (a.v, b);
13359    return 0;
13360}
13361_ACEOF
13362if ac_fn_c_try_link "$LINENO"; then :
13363  have_loongson_mmi=yes
13364fi
13365rm -f core conftest.err conftest.$ac_objext \
13366    conftest$ac_exeext conftest.$ac_ext
13367CFLAGS=$xserver_save_CFLAGS
13368
13369# Check whether --enable-loongson-mmi was given.
13370if test "${enable_loongson_mmi+set}" = set; then :
13371  enableval=$enable_loongson_mmi; enable_loongson_mmi=$enableval
13372else
13373  enable_loongson_mmi=auto
13374fi
13375
13376
13377if test $enable_loongson_mmi = no ; then
13378   have_loongson_mmi=disabled
13379fi
13380
13381if test $have_loongson_mmi = yes ; then
13382
13383$as_echo "#define USE_LOONGSON_MMI 1" >>confdefs.h
13384
13385else
13386   LS_CFLAGS=
13387fi
13388
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_loongson_mmi" >&5
13390$as_echo "$have_loongson_mmi" >&6; }
13391if test $enable_loongson_mmi = yes && test $have_loongson_mmi = no ; then
13392   as_fn_error $? "Loongson MMI not detected" "$LINENO" 5
13393fi
13394
13395 if test $have_loongson_mmi = yes; then
13396  USE_LOONGSON_MMI_TRUE=
13397  USE_LOONGSON_MMI_FALSE='#'
13398else
13399  USE_LOONGSON_MMI_TRUE='#'
13400  USE_LOONGSON_MMI_FALSE=
13401fi
13402
13403
13404
13405if test "x$MMX_CFLAGS" = "x" ; then
13406   if test "x$SUNCC" = "xyes"; then
13407      # Sun Studio doesn't have an -xarch=mmx flag, so we have to use sse
13408      # but if we're building 64-bit, mmx & sse support is on by default and
13409      # -xarch=sse throws an error instead
13410      if test "$AMD64_ABI" = "no" ; then
13411         MMX_CFLAGS="-xarch=sse"
13412      fi
13413   else
13414      MMX_CFLAGS="-mmmx -Winline"
13415   fi
13416fi
13417
13418have_mmx_intrinsics=no
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MMX intrinsics" >&5
13420$as_echo_n "checking whether to use MMX intrinsics... " >&6; }
13421xserver_save_CFLAGS=$CFLAGS
13422CFLAGS="$MMX_CFLAGS $CFLAGS"
13423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424/* end confdefs.h.  */
13425
13426#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4))
13427#error "Need GCC >= 3.4 for MMX intrinsics"
13428#endif
13429#include <mmintrin.h>
13430#include <stdint.h>
13431
13432/* Check support for block expressions */
13433#define _mm_shuffle_pi16(A, N)						\
13434    ({									\
13435	__m64 ret;							\
13436									\
13437	/* Some versions of clang will choke on K */ 			\
13438	asm ("pshufw %2, %1, %0\n\t"					\
13439	     : "=y" (ret)						\
13440	     : "y" (A), "K" ((const int8_t)N)				\
13441	);								\
13442									\
13443	ret;								\
13444    })
13445
13446int main () {
13447    __m64 v = _mm_cvtsi32_si64 (1);
13448    __m64 w;
13449
13450    w = _mm_shuffle_pi16(v, 5);
13451
13452    /* Some versions of clang will choke on this */
13453    asm ("pmulhuw %1, %0\n\t"
13454	: "+y" (w)
13455	: "y" (v)
13456    );
13457
13458    return _mm_cvtsi64_si32 (v);
13459}
13460_ACEOF
13461if ac_fn_c_try_compile "$LINENO"; then :
13462  have_mmx_intrinsics=yes
13463fi
13464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465CFLAGS=$xserver_save_CFLAGS
13466
13467# Check whether --enable-mmx was given.
13468if test "${enable_mmx+set}" = set; then :
13469  enableval=$enable_mmx; enable_mmx=$enableval
13470else
13471  enable_mmx=auto
13472fi
13473
13474
13475if test $enable_mmx = no ; then
13476   have_mmx_intrinsics=disabled
13477fi
13478
13479if test $have_mmx_intrinsics = yes ; then
13480
13481$as_echo "#define USE_X86_MMX 1" >>confdefs.h
13482
13483else
13484   MMX_CFLAGS=
13485fi
13486
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mmx_intrinsics" >&5
13488$as_echo "$have_mmx_intrinsics" >&6; }
13489if test $enable_mmx = yes && test $have_mmx_intrinsics = no ; then
13490   as_fn_error $? "x86 MMX intrinsics not detected" "$LINENO" 5
13491fi
13492
13493 if test $have_mmx_intrinsics = yes; then
13494  USE_X86_MMX_TRUE=
13495  USE_X86_MMX_FALSE='#'
13496else
13497  USE_X86_MMX_TRUE='#'
13498  USE_X86_MMX_FALSE=
13499fi
13500
13501
13502
13503if test "x$SSE2_CFLAGS" = "x" ; then
13504   if test "x$SUNCC" = "xyes"; then
13505      # SSE2 is enabled by default in the Sun Studio 64-bit environment
13506      if test "$AMD64_ABI" = "no" ; then
13507         SSE2_CFLAGS="-xarch=sse2"
13508      fi
13509   else
13510      SSE2_CFLAGS="-msse2 -Winline"
13511   fi
13512fi
13513
13514have_sse2_intrinsics=no
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSE2 intrinsics" >&5
13516$as_echo_n "checking whether to use SSE2 intrinsics... " >&6; }
13517xserver_save_CFLAGS=$CFLAGS
13518CFLAGS="$SSE2_CFLAGS $CFLAGS"
13519
13520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h.  */
13522
13523#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
13524#   if !defined(__amd64__) && !defined(__x86_64__)
13525#      error "Need GCC >= 4.2 for SSE2 intrinsics on x86"
13526#   endif
13527#endif
13528#include <mmintrin.h>
13529#include <xmmintrin.h>
13530#include <emmintrin.h>
13531int param;
13532int main () {
13533    __m128i a = _mm_set1_epi32 (param), b = _mm_set1_epi32 (param + 1), c;
13534	c = _mm_xor_si128 (a, b);
13535    return _mm_cvtsi128_si32(c);
13536}
13537_ACEOF
13538if ac_fn_c_try_compile "$LINENO"; then :
13539  have_sse2_intrinsics=yes
13540fi
13541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542CFLAGS=$xserver_save_CFLAGS
13543
13544# Check whether --enable-sse2 was given.
13545if test "${enable_sse2+set}" = set; then :
13546  enableval=$enable_sse2; enable_sse2=$enableval
13547else
13548  enable_sse2=auto
13549fi
13550
13551
13552if test $enable_sse2 = no ; then
13553   have_sse2_intrinsics=disabled
13554fi
13555
13556if test $have_sse2_intrinsics = yes ; then
13557
13558$as_echo "#define USE_SSE2 1" >>confdefs.h
13559
13560fi
13561
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sse2_intrinsics" >&5
13563$as_echo "$have_sse2_intrinsics" >&6; }
13564if test $enable_sse2 = yes && test $have_sse2_intrinsics = no ; then
13565   as_fn_error $? "SSE2 intrinsics not detected" "$LINENO" 5
13566fi
13567
13568 if test $have_sse2_intrinsics = yes; then
13569  USE_SSE2_TRUE=
13570  USE_SSE2_FALSE='#'
13571else
13572  USE_SSE2_TRUE='#'
13573  USE_SSE2_FALSE=
13574fi
13575
13576
13577
13578if test "x$SSSE3_CFLAGS" = "x" ; then
13579    SSSE3_CFLAGS="-mssse3 -Winline"
13580fi
13581
13582have_ssse3_intrinsics=no
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3 intrinsics" >&5
13584$as_echo_n "checking whether to use SSSE3 intrinsics... " >&6; }
13585xserver_save_CFLAGS=$CFLAGS
13586CFLAGS="$SSSE3_CFLAGS $CFLAGS"
13587
13588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589/* end confdefs.h.  */
13590
13591#include <mmintrin.h>
13592#include <xmmintrin.h>
13593#include <emmintrin.h>
13594#include <tmmintrin.h>
13595int param;
13596int main () {
13597    __m128i a = _mm_set1_epi32 (param), b = _mm_set1_epi32 (param + 1), c;
13598    c = _mm_maddubs_epi16 (a, b);
13599    return _mm_cvtsi128_si32(c);
13600}
13601_ACEOF
13602if ac_fn_c_try_compile "$LINENO"; then :
13603  have_ssse3_intrinsics=yes
13604fi
13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606CFLAGS=$xserver_save_CFLAGS
13607
13608# Check whether --enable-ssse3 was given.
13609if test "${enable_ssse3+set}" = set; then :
13610  enableval=$enable_ssse3; enable_ssse3=$enableval
13611else
13612  enable_ssse3=auto
13613fi
13614
13615
13616if test $enable_ssse3 = no ; then
13617   have_ssse3_intrinsics=disabled
13618fi
13619
13620if test $have_ssse3_intrinsics = yes ; then
13621
13622$as_echo "#define USE_SSSE3 1" >>confdefs.h
13623
13624fi
13625
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ssse3_intrinsics" >&5
13627$as_echo "$have_ssse3_intrinsics" >&6; }
13628if test $enable_ssse3 = yes && test $have_ssse3_intrinsics = no ; then
13629   as_fn_error $? "SSSE3 intrinsics not detected" "$LINENO" 5
13630fi
13631
13632 if test $have_ssse3_intrinsics = yes; then
13633  USE_SSSE3_TRUE=
13634  USE_SSSE3_FALSE='#'
13635else
13636  USE_SSSE3_TRUE='#'
13637  USE_SSSE3_FALSE=
13638fi
13639
13640
13641case $host_os in
13642   solaris*)
13643      # When building 32-bit binaries, apply a mapfile to ensure that the
13644      # binaries aren't flagged as only able to run on MMX+SSE capable CPUs
13645      # since they check at runtime before using those instructions.
13646      # Not all linkers grok the mapfile format so we check for that first.
13647      if test "$AMD64_ABI" = "no" ; then
13648	 use_hwcap_mapfile=no
13649	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a hardware capability map file" >&5
13650$as_echo_n "checking whether to use a hardware capability map file... " >&6; }
13651	 hwcap_save_LDFLAGS="$LDFLAGS"
13652	 HWCAP_LDFLAGS='-Wl,-M,$(srcdir)/solaris-hwcap.mapfile'
13653	 LDFLAGS="$LDFLAGS -Wl,-M,pixman/solaris-hwcap.mapfile"
13654	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655/* end confdefs.h.  */
13656int main() { return 0; }
13657_ACEOF
13658if ac_fn_c_try_link "$LINENO"; then :
13659  use_hwcap_mapfile=yes
13660else
13661  HWCAP_LDFLAGS=""
13662fi
13663rm -f core conftest.err conftest.$ac_objext \
13664    conftest$ac_exeext conftest.$ac_ext
13665	 LDFLAGS="$hwcap_save_LDFLAGS"
13666	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hwcap_mapfile" >&5
13667$as_echo "$use_hwcap_mapfile" >&6; }
13668      fi
13669      if test "x$MMX_LDFLAGS" = "x" ; then
13670         MMX_LDFLAGS="$HWCAP_LDFLAGS"
13671      fi
13672      if test "x$SSE2_LDFLAGS" = "x" ; then
13673	 SSE2_LDFLAGS="$HWCAP_LDFLAGS"
13674      fi
13675      ;;
13676esac
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686if test -n "`$CC -v 2>&1 | grep version | grep Apple`"; then
13687    VMX_CFLAGS="-faltivec"
13688else
13689    VMX_CFLAGS="-maltivec -mabi=altivec"
13690fi
13691
13692have_vmx_intrinsics=no
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use VMX/Altivec intrinsics" >&5
13694$as_echo_n "checking whether to use VMX/Altivec intrinsics... " >&6; }
13695xserver_save_CFLAGS=$CFLAGS
13696CFLAGS="$VMX_CFLAGS $CFLAGS"
13697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699
13700#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4))
13701#error "Need GCC >= 3.4 for sane altivec support"
13702#endif
13703#include <altivec.h>
13704int main () {
13705    vector unsigned int v = vec_splat_u32 (1);
13706    v = vec_sub (v, v);
13707    return 0;
13708}
13709_ACEOF
13710if ac_fn_c_try_compile "$LINENO"; then :
13711  have_vmx_intrinsics=yes
13712fi
13713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714CFLAGS=$xserver_save_CFLAGS
13715
13716# Check whether --enable-vmx was given.
13717if test "${enable_vmx+set}" = set; then :
13718  enableval=$enable_vmx; enable_vmx=$enableval
13719else
13720  enable_vmx=auto
13721fi
13722
13723
13724if test $enable_vmx = no ; then
13725   have_vmx_intrinsics=disabled
13726fi
13727
13728if test $have_vmx_intrinsics = yes ; then
13729
13730$as_echo "#define USE_VMX 1" >>confdefs.h
13731
13732else
13733   VMX_CFLAGS=
13734fi
13735
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vmx_intrinsics" >&5
13737$as_echo "$have_vmx_intrinsics" >&6; }
13738if test $enable_vmx = yes && test $have_vmx_intrinsics = no ; then
13739   as_fn_error $? "VMX intrinsics not detected" "$LINENO" 5
13740fi
13741
13742
13743
13744 if test $have_vmx_intrinsics = yes; then
13745  USE_VMX_TRUE=
13746  USE_VMX_FALSE='#'
13747else
13748  USE_VMX_TRUE='#'
13749  USE_VMX_FALSE=
13750fi
13751
13752
13753have_arm_simd=no
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ARM SIMD assembler" >&5
13755$as_echo_n "checking whether to use ARM SIMD assembler... " >&6; }
13756xserver_save_CFLAGS=$CFLAGS
13757CFLAGS="-x assembler-with-cpp $CFLAGS"
13758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760
13761.text
13762.arch armv6
13763.object_arch armv4
13764.arm
13765.altmacro
13766#ifndef __ARM_EABI__
13767#error EABI is required (to be sure that calling conventions are compatible)
13768#endif
13769pld [r0]
13770uqadd8 r0, r0, r0
13771_ACEOF
13772if ac_fn_c_try_compile "$LINENO"; then :
13773  have_arm_simd=yes
13774fi
13775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776CFLAGS=$xserver_save_CFLAGS
13777
13778# Check whether --enable-arm-simd was given.
13779if test "${enable_arm_simd+set}" = set; then :
13780  enableval=$enable_arm_simd; enable_arm_simd=$enableval
13781else
13782  enable_arm_simd=auto
13783fi
13784
13785
13786if test $enable_arm_simd = no ; then
13787   have_arm_simd=disabled
13788fi
13789
13790if test $have_arm_simd = yes ; then
13791
13792$as_echo "#define USE_ARM_SIMD 1" >>confdefs.h
13793
13794fi
13795
13796 if test $have_arm_simd = yes; then
13797  USE_ARM_SIMD_TRUE=
13798  USE_ARM_SIMD_FALSE='#'
13799else
13800  USE_ARM_SIMD_TRUE='#'
13801  USE_ARM_SIMD_FALSE=
13802fi
13803
13804
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
13806$as_echo "$have_arm_simd" >&6; }
13807if test $enable_arm_simd = yes && test $have_arm_simd = no ; then
13808   as_fn_error $? "ARM SIMD intrinsics not detected" "$LINENO" 5
13809fi
13810
13811have_arm_neon=no
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ARM NEON assembler" >&5
13813$as_echo_n "checking whether to use ARM NEON assembler... " >&6; }
13814xserver_save_CFLAGS=$CFLAGS
13815CFLAGS="-x assembler-with-cpp $CFLAGS"
13816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818
13819.text
13820.fpu neon
13821.arch armv7a
13822.object_arch armv4
13823.eabi_attribute 10, 0
13824.arm
13825.altmacro
13826#ifndef __ARM_EABI__
13827#error EABI is required (to be sure that calling conventions are compatible)
13828#endif
13829pld [r0]
13830vmovn.u16 d0, q0
13831_ACEOF
13832if ac_fn_c_try_compile "$LINENO"; then :
13833  have_arm_neon=yes
13834fi
13835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836CFLAGS=$xserver_save_CFLAGS
13837
13838# Check whether --enable-arm-neon was given.
13839if test "${enable_arm_neon+set}" = set; then :
13840  enableval=$enable_arm_neon; enable_arm_neon=$enableval
13841else
13842  enable_arm_neon=auto
13843fi
13844
13845
13846if test $enable_arm_neon = no ; then
13847   have_arm_neon=disabled
13848fi
13849
13850if test $have_arm_neon = yes ; then
13851
13852$as_echo "#define USE_ARM_NEON 1" >>confdefs.h
13853
13854fi
13855
13856 if test $have_arm_neon = yes; then
13857  USE_ARM_NEON_TRUE=
13858  USE_ARM_NEON_FALSE='#'
13859else
13860  USE_ARM_NEON_TRUE='#'
13861  USE_ARM_NEON_FALSE=
13862fi
13863
13864
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
13866$as_echo "$have_arm_neon" >&6; }
13867if test $enable_arm_neon = yes && test $have_arm_neon = no ; then
13868   as_fn_error $? "ARM NEON intrinsics not detected" "$LINENO" 5
13869fi
13870
13871
13872# Check whether --enable-arm-iwmmxt was given.
13873if test "${enable_arm_iwmmxt+set}" = set; then :
13874  enableval=$enable_arm_iwmmxt; enable_iwmmxt=$enableval
13875else
13876  enable_iwmmxt=auto
13877fi
13878
13879
13880# Check whether --enable-arm-iwmmxt2 was given.
13881if test "${enable_arm_iwmmxt2+set}" = set; then :
13882  enableval=$enable_arm_iwmmxt2; enable_iwmmxt2=$enableval
13883else
13884  enable_iwmmxt2=auto
13885fi
13886
13887
13888if test "x$IWMMXT_CFLAGS" = "x" ; then
13889   IWMMXT_CFLAGS="-flax-vector-conversions -Winline -march=iwmmxt"
13890   if test $enable_iwmmxt2 != no ; then
13891      IWMMXT_CFLAGS="${IWMMXT_CFLAGS}2"
13892   fi
13893fi
13894
13895have_iwmmxt_intrinsics=no
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ARM IWMMXT intrinsics" >&5
13897$as_echo_n "checking whether to use ARM IWMMXT intrinsics... " >&6; }
13898xserver_save_CFLAGS=$CFLAGS
13899CFLAGS="$CFLAGS $IWMMXT_CFLAGS"
13900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901/* end confdefs.h.  */
13902
13903#ifndef __arm__
13904#error "IWMMXT is only available on ARM"
13905#endif
13906#ifndef __IWMMXT__
13907#error "IWMMXT not enabled (with -march=iwmmxt)"
13908#endif
13909#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
13910#error "Need GCC >= 4.8 for IWMMXT intrinsics"
13911#endif
13912#include <mmintrin.h>
13913int main () {
13914	union {
13915		__m64 v;
13916		char c[8];
13917	} a = { .c = {1, 2, 3, 4, 5, 6, 7, 8} };
13918	int b = 4;
13919	__m64 c = _mm_srli_si64 (a.v, b);
13920}
13921_ACEOF
13922if ac_fn_c_try_compile "$LINENO"; then :
13923  have_iwmmxt_intrinsics=yes
13924fi
13925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926CFLAGS=$xserver_save_CFLAGS
13927
13928if test $enable_iwmmxt = no ; then
13929   have_iwmmxt_intrinsics=disabled
13930fi
13931
13932if test $have_iwmmxt_intrinsics = yes ; then
13933
13934$as_echo "#define USE_ARM_IWMMXT 1" >>confdefs.h
13935
13936else
13937   IWMMXT_CFLAGS=
13938fi
13939
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iwmmxt_intrinsics" >&5
13941$as_echo "$have_iwmmxt_intrinsics" >&6; }
13942if test $enable_iwmmxt = yes && test $have_iwmmxt_intrinsics = no ; then
13943   as_fn_error $? "IWMMXT intrinsics not detected" "$LINENO" 5
13944fi
13945
13946 if test $have_iwmmxt_intrinsics = yes; then
13947  USE_ARM_IWMMXT_TRUE=
13948  USE_ARM_IWMMXT_FALSE='#'
13949else
13950  USE_ARM_IWMMXT_TRUE='#'
13951  USE_ARM_IWMMXT_FALSE=
13952fi
13953
13954
13955
13956have_mips_dspr2=no
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MIPS DSPr2 assembler" >&5
13958$as_echo_n "checking whether to use MIPS DSPr2 assembler... " >&6; }
13959xserver_save_CFLAGS=$CFLAGS
13960CFLAGS="-mdspr2 $CFLAGS"
13961
13962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h.  */
13964
13965#if !(defined(__mips__) &&  __mips_isa_rev >= 2)
13966#error MIPS DSPr2 is currently only available on MIPS32r2 platforms.
13967#endif
13968int
13969main ()
13970{
13971    int c = 0, a = 0, b = 0;
13972    __asm__ __volatile__ (
13973        "precr.qb.ph %[c], %[a], %[b]          \n\t"
13974        : [c] "=r" (c)
13975        : [a] "r" (a), [b] "r" (b)
13976    );
13977    return c;
13978}
13979_ACEOF
13980if ac_fn_c_try_compile "$LINENO"; then :
13981  have_mips_dspr2=yes
13982fi
13983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984CFLAGS=$xserver_save_CFLAGS
13985
13986# Check whether --enable-mips-dspr2 was given.
13987if test "${enable_mips_dspr2+set}" = set; then :
13988  enableval=$enable_mips_dspr2; enable_mips_dspr2=$enableval
13989else
13990  enable_mips_dspr2=auto
13991fi
13992
13993
13994if test $enable_mips_dspr2 = no ; then
13995   have_mips_dspr2=disabled
13996fi
13997
13998if test $have_mips_dspr2 = yes ; then
13999
14000$as_echo "#define USE_MIPS_DSPR2 1" >>confdefs.h
14001
14002fi
14003
14004 if test $have_mips_dspr2 = yes; then
14005  USE_MIPS_DSPR2_TRUE=
14006  USE_MIPS_DSPR2_FALSE='#'
14007else
14008  USE_MIPS_DSPR2_TRUE='#'
14009  USE_MIPS_DSPR2_FALSE=
14010fi
14011
14012
14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mips_dspr2" >&5
14014$as_echo "$have_mips_dspr2" >&6; }
14015if test $enable_mips_dspr2 = yes && test $have_mips_dspr2 = no ; then
14016   as_fn_error $? "MIPS DSPr2 instructions not detected" "$LINENO" 5
14017fi
14018
14019
14020have_gcc_inline_asm=no
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU-style inline assembler" >&5
14022$as_echo_n "checking whether to use GNU-style inline assembler... " >&6; }
14023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025
14026int main () {
14027    /* Most modern architectures have a NOP instruction, so this is a fairly generic test. */
14028	asm volatile ( "\tnop\n" : : : "cc", "memory" );
14029    return 0;
14030}
14031_ACEOF
14032if ac_fn_c_try_compile "$LINENO"; then :
14033  have_gcc_inline_asm=yes
14034fi
14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036
14037# Check whether --enable-gcc-inline-asm was given.
14038if test "${enable_gcc_inline_asm+set}" = set; then :
14039  enableval=$enable_gcc_inline_asm; enable_gcc_inline_asm=$enableval
14040else
14041  enable_gcc_inline_asm=auto
14042fi
14043
14044
14045if test $enable_gcc_inline_asm = no ; then
14046   have_gcc_inline_asm=disabled
14047fi
14048
14049if test $have_gcc_inline_asm = yes ; then
14050
14051$as_echo "#define USE_GCC_INLINE_ASM 1" >>confdefs.h
14052
14053fi
14054
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_inline_asm" >&5
14056$as_echo "$have_gcc_inline_asm" >&6; }
14057if test $enable_gcc_inline_asm = yes && test $have_gcc_inline_asm = no ; then
14058   as_fn_error $? "GNU-style inline assembler not detected" "$LINENO" 5
14059fi
14060
14061 if test $have_gcc_inline_asm = yes; then
14062  USE_GCC_INLINE_ASM_TRUE=
14063  USE_GCC_INLINE_ASM_FALSE='#'
14064else
14065  USE_GCC_INLINE_ASM_TRUE='#'
14066  USE_GCC_INLINE_ASM_FALSE=
14067fi
14068
14069
14070
14071# Check whether --enable-static-testprogs was given.
14072if test "${enable_static_testprogs+set}" = set; then :
14073  enableval=$enable_static_testprogs; enable_static_testprogs=$enableval
14074else
14075  enable_static_testprogs=no
14076fi
14077
14078
14079TESTPROGS_EXTRA_LDFLAGS=
14080if test "x$enable_static_testprogs" = "xyes" ; then
14081   TESTPROGS_EXTRA_LDFLAGS="-all-static"
14082fi
14083
14084
14085
14086# Check whether --enable-timers was given.
14087if test "${enable_timers+set}" = set; then :
14088  enableval=$enable_timers; enable_timers=$enableval
14089else
14090  enable_timers=no
14091fi
14092
14093
14094if test $enable_timers = yes ; then
14095
14096$as_echo "#define PIXMAN_TIMERS 1" >>confdefs.h
14097
14098fi
14099
14100
14101
14102# Check whether --enable-gnuplot was given.
14103if test "${enable_gnuplot+set}" = set; then :
14104  enableval=$enable_gnuplot; enable_gnuplot=$enableval
14105else
14106  enable_gnuplot=no
14107fi
14108
14109
14110if test $enable_gnuplot = yes ; then
14111
14112$as_echo "#define PIXMAN_GNUPLOT 1" >>confdefs.h
14113
14114fi
14115
14116
14117
14118# Check whether --enable-gtk was given.
14119if test "${enable_gtk+set}" = set; then :
14120  enableval=$enable_gtk; enable_gtk=$enableval
14121else
14122  enable_gtk=auto
14123fi
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14134	if test -n "$ac_tool_prefix"; then
14135  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14136set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14138$as_echo_n "checking for $ac_word... " >&6; }
14139if ${ac_cv_path_PKG_CONFIG+:} false; then :
14140  $as_echo_n "(cached) " >&6
14141else
14142  case $PKG_CONFIG in
14143  [\\/]* | ?:[\\/]*)
14144  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14145  ;;
14146  *)
14147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14148for as_dir in $PATH
14149do
14150  IFS=$as_save_IFS
14151  test -z "$as_dir" && as_dir=.
14152    for ac_exec_ext in '' $ac_executable_extensions; do
14153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14154    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14156    break 2
14157  fi
14158done
14159  done
14160IFS=$as_save_IFS
14161
14162  ;;
14163esac
14164fi
14165PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14166if test -n "$PKG_CONFIG"; then
14167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14168$as_echo "$PKG_CONFIG" >&6; }
14169else
14170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171$as_echo "no" >&6; }
14172fi
14173
14174
14175fi
14176if test -z "$ac_cv_path_PKG_CONFIG"; then
14177  ac_pt_PKG_CONFIG=$PKG_CONFIG
14178  # Extract the first word of "pkg-config", so it can be a program name with args.
14179set dummy pkg-config; ac_word=$2
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14181$as_echo_n "checking for $ac_word... " >&6; }
14182if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14183  $as_echo_n "(cached) " >&6
14184else
14185  case $ac_pt_PKG_CONFIG in
14186  [\\/]* | ?:[\\/]*)
14187  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14188  ;;
14189  *)
14190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191for as_dir in $PATH
14192do
14193  IFS=$as_save_IFS
14194  test -z "$as_dir" && as_dir=.
14195    for ac_exec_ext in '' $ac_executable_extensions; do
14196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199    break 2
14200  fi
14201done
14202  done
14203IFS=$as_save_IFS
14204
14205  ;;
14206esac
14207fi
14208ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14209if test -n "$ac_pt_PKG_CONFIG"; then
14210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14211$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14212else
14213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214$as_echo "no" >&6; }
14215fi
14216
14217  if test "x$ac_pt_PKG_CONFIG" = x; then
14218    PKG_CONFIG=""
14219  else
14220    case $cross_compiling:$ac_tool_warned in
14221yes:)
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14224ac_tool_warned=yes ;;
14225esac
14226    PKG_CONFIG=$ac_pt_PKG_CONFIG
14227  fi
14228else
14229  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14230fi
14231
14232fi
14233if test -n "$PKG_CONFIG"; then
14234	_pkg_min_version=0.9.0
14235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14236$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14237	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14239$as_echo "yes" >&6; }
14240	else
14241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
14243		PKG_CONFIG=""
14244	fi
14245fi
14246
14247if test $enable_gtk = yes ; then
14248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman_version_string in -lpixman-1" >&5
14249$as_echo_n "checking for pixman_version_string in -lpixman-1... " >&6; }
14250if ${ac_cv_lib_pixman_1_pixman_version_string+:} false; then :
14251  $as_echo_n "(cached) " >&6
14252else
14253  ac_check_lib_save_LIBS=$LIBS
14254LIBS="-lpixman-1  $LIBS"
14255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256/* end confdefs.h.  */
14257
14258/* Override any GCC internal prototype to avoid an error.
14259   Use char because int might match the return type of a GCC
14260   builtin and then its argument prototype would still apply.  */
14261#ifdef __cplusplus
14262extern "C"
14263#endif
14264char pixman_version_string ();
14265int
14266main ()
14267{
14268return pixman_version_string ();
14269  ;
14270  return 0;
14271}
14272_ACEOF
14273if ac_fn_c_try_link "$LINENO"; then :
14274  ac_cv_lib_pixman_1_pixman_version_string=yes
14275else
14276  ac_cv_lib_pixman_1_pixman_version_string=no
14277fi
14278rm -f core conftest.err conftest.$ac_objext \
14279    conftest$ac_exeext conftest.$ac_ext
14280LIBS=$ac_check_lib_save_LIBS
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pixman_1_pixman_version_string" >&5
14283$as_echo "$ac_cv_lib_pixman_1_pixman_version_string" >&6; }
14284if test "x$ac_cv_lib_pixman_1_pixman_version_string" = xyes; then :
14285  cat >>confdefs.h <<_ACEOF
14286#define HAVE_LIBPIXMAN_1 1
14287_ACEOF
14288
14289  LIBS="-lpixman-1 $LIBS"
14290
14291fi
14292
14293
14294pkg_failed=no
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14296$as_echo_n "checking for GTK... " >&6; }
14297
14298if test -n "$GTK_CFLAGS"; then
14299    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14300 elif test -n "$PKG_CONFIG"; then
14301    if test -n "$PKG_CONFIG" && \
14302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.16 pixman-1\""; } >&5
14303  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.16 pixman-1") 2>&5
14304  ac_status=$?
14305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306  test $ac_status = 0; }; then
14307  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.16 pixman-1" 2>/dev/null`
14308		      test "x$?" != "x0" && pkg_failed=yes
14309else
14310  pkg_failed=yes
14311fi
14312 else
14313    pkg_failed=untried
14314fi
14315if test -n "$GTK_LIBS"; then
14316    pkg_cv_GTK_LIBS="$GTK_LIBS"
14317 elif test -n "$PKG_CONFIG"; then
14318    if test -n "$PKG_CONFIG" && \
14319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.16 pixman-1\""; } >&5
14320  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.16 pixman-1") 2>&5
14321  ac_status=$?
14322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14323  test $ac_status = 0; }; then
14324  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.16 pixman-1" 2>/dev/null`
14325		      test "x$?" != "x0" && pkg_failed=yes
14326else
14327  pkg_failed=yes
14328fi
14329 else
14330    pkg_failed=untried
14331fi
14332
14333
14334
14335if test $pkg_failed = yes; then
14336   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337$as_echo "no" >&6; }
14338
14339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14340        _pkg_short_errors_supported=yes
14341else
14342        _pkg_short_errors_supported=no
14343fi
14344        if test $_pkg_short_errors_supported = yes; then
14345	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.16 pixman-1" 2>&1`
14346        else
14347	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.16 pixman-1" 2>&1`
14348        fi
14349	# Put the nasty error message in config.log where it belongs
14350	echo "$GTK_PKG_ERRORS" >&5
14351
14352	as_fn_error $? "Package requirements (gtk+-2.0 >= 2.16 pixman-1) were not met:
14353
14354$GTK_PKG_ERRORS
14355
14356Consider adjusting the PKG_CONFIG_PATH environment variable if you
14357installed software in a non-standard prefix.
14358
14359Alternatively, you may set the environment variables GTK_CFLAGS
14360and GTK_LIBS to avoid the need to call pkg-config.
14361See the pkg-config man page for more details." "$LINENO" 5
14362elif test $pkg_failed = untried; then
14363     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364$as_echo "no" >&6; }
14365	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14367as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14368is in your PATH or set the PKG_CONFIG environment variable to the full
14369path to pkg-config.
14370
14371Alternatively, you may set the environment variables GTK_CFLAGS
14372and GTK_LIBS to avoid the need to call pkg-config.
14373See the pkg-config man page for more details.
14374
14375To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14376See \`config.log' for more details" "$LINENO" 5; }
14377else
14378	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
14379	GTK_LIBS=$pkg_cv_GTK_LIBS
14380        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14381$as_echo "yes" >&6; }
14382
14383fi
14384fi
14385
14386if test $enable_gtk = auto ; then
14387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman_version_string in -lpixman-1" >&5
14388$as_echo_n "checking for pixman_version_string in -lpixman-1... " >&6; }
14389if ${ac_cv_lib_pixman_1_pixman_version_string+:} false; then :
14390  $as_echo_n "(cached) " >&6
14391else
14392  ac_check_lib_save_LIBS=$LIBS
14393LIBS="-lpixman-1  $LIBS"
14394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395/* end confdefs.h.  */
14396
14397/* Override any GCC internal prototype to avoid an error.
14398   Use char because int might match the return type of a GCC
14399   builtin and then its argument prototype would still apply.  */
14400#ifdef __cplusplus
14401extern "C"
14402#endif
14403char pixman_version_string ();
14404int
14405main ()
14406{
14407return pixman_version_string ();
14408  ;
14409  return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_link "$LINENO"; then :
14413  ac_cv_lib_pixman_1_pixman_version_string=yes
14414else
14415  ac_cv_lib_pixman_1_pixman_version_string=no
14416fi
14417rm -f core conftest.err conftest.$ac_objext \
14418    conftest$ac_exeext conftest.$ac_ext
14419LIBS=$ac_check_lib_save_LIBS
14420fi
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pixman_1_pixman_version_string" >&5
14422$as_echo "$ac_cv_lib_pixman_1_pixman_version_string" >&6; }
14423if test "x$ac_cv_lib_pixman_1_pixman_version_string" = xyes; then :
14424  enable_gtk=auto
14425else
14426  enable_gtk=no
14427fi
14428
14429fi
14430
14431if test $enable_gtk = auto ; then
14432
14433pkg_failed=no
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14435$as_echo_n "checking for GTK... " >&6; }
14436
14437if test -n "$GTK_CFLAGS"; then
14438    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14439 elif test -n "$PKG_CONFIG"; then
14440    if test -n "$PKG_CONFIG" && \
14441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.16 pixman-1\""; } >&5
14442  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.16 pixman-1") 2>&5
14443  ac_status=$?
14444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14445  test $ac_status = 0; }; then
14446  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.16 pixman-1" 2>/dev/null`
14447		      test "x$?" != "x0" && pkg_failed=yes
14448else
14449  pkg_failed=yes
14450fi
14451 else
14452    pkg_failed=untried
14453fi
14454if test -n "$GTK_LIBS"; then
14455    pkg_cv_GTK_LIBS="$GTK_LIBS"
14456 elif test -n "$PKG_CONFIG"; then
14457    if test -n "$PKG_CONFIG" && \
14458    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.16 pixman-1\""; } >&5
14459  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.16 pixman-1") 2>&5
14460  ac_status=$?
14461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14462  test $ac_status = 0; }; then
14463  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.16 pixman-1" 2>/dev/null`
14464		      test "x$?" != "x0" && pkg_failed=yes
14465else
14466  pkg_failed=yes
14467fi
14468 else
14469    pkg_failed=untried
14470fi
14471
14472
14473
14474if test $pkg_failed = yes; then
14475   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476$as_echo "no" >&6; }
14477
14478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14479        _pkg_short_errors_supported=yes
14480else
14481        _pkg_short_errors_supported=no
14482fi
14483        if test $_pkg_short_errors_supported = yes; then
14484	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.16 pixman-1" 2>&1`
14485        else
14486	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.16 pixman-1" 2>&1`
14487        fi
14488	# Put the nasty error message in config.log where it belongs
14489	echo "$GTK_PKG_ERRORS" >&5
14490
14491	enable_gtk=no
14492elif test $pkg_failed = untried; then
14493     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494$as_echo "no" >&6; }
14495	enable_gtk=no
14496else
14497	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
14498	GTK_LIBS=$pkg_cv_GTK_LIBS
14499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14500$as_echo "yes" >&6; }
14501	enable_gtk=yes
14502fi
14503fi
14504
14505 if test "x$enable_gtk" = xyes; then
14506  HAVE_GTK_TRUE=
14507  HAVE_GTK_FALSE='#'
14508else
14509  HAVE_GTK_TRUE='#'
14510  HAVE_GTK_FALSE=
14511fi
14512
14513
14514
14515
14516
14517
14518ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
14519if test "x$ac_cv_func_posix_memalign" = xyes; then :
14520  have_posix_memalign=yes
14521else
14522  have_posix_memalign=no
14523fi
14524
14525if test x$have_posix_memalign = xyes; then
14526
14527$as_echo "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
14528
14529fi
14530
14531ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
14532if test "x$ac_cv_func_sigaction" = xyes; then :
14533  have_sigaction=yes
14534else
14535  have_sigaction=no
14536fi
14537
14538if test x$have_sigaction = xyes; then
14539
14540$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
14541
14542fi
14543
14544ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
14545if test "x$ac_cv_func_alarm" = xyes; then :
14546  have_alarm=yes
14547else
14548  have_alarm=no
14549fi
14550
14551if test x$have_alarm = xyes; then
14552
14553$as_echo "#define HAVE_ALARM 1" >>confdefs.h
14554
14555fi
14556
14557ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14558if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14559
14560$as_echo "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
14561
14562fi
14563
14564
14565
14566ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14567if test "x$ac_cv_func_mmap" = xyes; then :
14568  have_mmap=yes
14569else
14570  have_mmap=no
14571fi
14572
14573if test x$have_mmap = xyes; then
14574
14575$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14576
14577fi
14578
14579ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
14580if test "x$ac_cv_func_mprotect" = xyes; then :
14581  have_mprotect=yes
14582else
14583  have_mprotect=no
14584fi
14585
14586if test x$have_mprotect = xyes; then
14587
14588$as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
14589
14590fi
14591
14592ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14593if test "x$ac_cv_func_getpagesize" = xyes; then :
14594  have_getpagesize=yes
14595else
14596  have_getpagesize=no
14597fi
14598
14599if test x$have_getpagesize = xyes; then
14600
14601$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
14602
14603fi
14604
14605ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
14606if test "x$ac_cv_header_fenv_h" = xyes; then :
14607
14608$as_echo "#define HAVE_FENV_H 1" >>confdefs.h
14609
14610fi
14611
14612
14613
14614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
14615$as_echo_n "checking for feenableexcept in -lm... " >&6; }
14616if ${ac_cv_lib_m_feenableexcept+:} false; then :
14617  $as_echo_n "(cached) " >&6
14618else
14619  ac_check_lib_save_LIBS=$LIBS
14620LIBS="-lm  $LIBS"
14621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* end confdefs.h.  */
14623
14624/* Override any GCC internal prototype to avoid an error.
14625   Use char because int might match the return type of a GCC
14626   builtin and then its argument prototype would still apply.  */
14627#ifdef __cplusplus
14628extern "C"
14629#endif
14630char feenableexcept ();
14631int
14632main ()
14633{
14634return feenableexcept ();
14635  ;
14636  return 0;
14637}
14638_ACEOF
14639if ac_fn_c_try_link "$LINENO"; then :
14640  ac_cv_lib_m_feenableexcept=yes
14641else
14642  ac_cv_lib_m_feenableexcept=no
14643fi
14644rm -f core conftest.err conftest.$ac_objext \
14645    conftest$ac_exeext conftest.$ac_ext
14646LIBS=$ac_check_lib_save_LIBS
14647fi
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
14649$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
14650if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
14651  have_feenableexcept=yes
14652else
14653  have_feenableexcept=no
14654fi
14655
14656if test x$have_feenableexcept = xyes; then
14657
14658$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
14659
14660fi
14661
14662ac_fn_c_check_decl "$LINENO" "FE_DIVBYZERO" "ac_cv_have_decl_FE_DIVBYZERO" "#include <fenv.h>
14663"
14664if test "x$ac_cv_have_decl_FE_DIVBYZERO" = xyes; then :
14665
14666$as_echo "#define HAVE_FEDIVBYZERO 1" >>confdefs.h
14667
14668fi
14669
14670
14671ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14672if test "x$ac_cv_func_gettimeofday" = xyes; then :
14673  have_gettimeofday=yes
14674else
14675  have_gettimeofday=no
14676fi
14677
14678ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14679if test "x$ac_cv_header_sys_time_h" = xyes; then :
14680  have_sys_time_h=yes
14681else
14682  have_sys_time_h=no
14683fi
14684
14685
14686if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then
14687
14688$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
14689
14690fi
14691
14692
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5
14694$as_echo_n "checking for library containing sqrtf... " >&6; }
14695if ${ac_cv_search_sqrtf+:} false; then :
14696  $as_echo_n "(cached) " >&6
14697else
14698  ac_func_search_save_LIBS=$LIBS
14699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701
14702/* Override any GCC internal prototype to avoid an error.
14703   Use char because int might match the return type of a GCC
14704   builtin and then its argument prototype would still apply.  */
14705#ifdef __cplusplus
14706extern "C"
14707#endif
14708char sqrtf ();
14709int
14710main ()
14711{
14712return sqrtf ();
14713  ;
14714  return 0;
14715}
14716_ACEOF
14717for ac_lib in '' m; do
14718  if test -z "$ac_lib"; then
14719    ac_res="none required"
14720  else
14721    ac_res=-l$ac_lib
14722    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14723  fi
14724  if ac_fn_c_try_link "$LINENO"; then :
14725  ac_cv_search_sqrtf=$ac_res
14726fi
14727rm -f core conftest.err conftest.$ac_objext \
14728    conftest$ac_exeext
14729  if ${ac_cv_search_sqrtf+:} false; then :
14730  break
14731fi
14732done
14733if ${ac_cv_search_sqrtf+:} false; then :
14734
14735else
14736  ac_cv_search_sqrtf=no
14737fi
14738rm conftest.$ac_ext
14739LIBS=$ac_func_search_save_LIBS
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5
14742$as_echo "$ac_cv_search_sqrtf" >&6; }
14743ac_res=$ac_cv_search_sqrtf
14744if test "$ac_res" != no; then :
14745  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14746
14747else
14748
14749$as_echo "#define sqrtf sqrt" >>confdefs.h
14750
14751fi
14752
14753
14754
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) support" >&5
14756$as_echo_n "checking for thread local storage (TLS) support... " >&6; }
14757if ${ac_cv_tls+:} false; then :
14758  $as_echo_n "(cached) " >&6
14759else
14760
14761    ac_cv_tls=none
14762    keywords="__thread __declspec(thread)"
14763    for kw in $keywords ; do
14764        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h.  */
14766
14767#if defined(__MINGW32__) && !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
14768#error This MinGW version has broken __thread support
14769#endif
14770#ifdef __OpenBSD__
14771#error OpenBSD has broken __thread support
14772#endif
14773
14774int $kw test;
14775int
14776main ()
14777{
14778
14779  ;
14780  return 0;
14781}
14782_ACEOF
14783if ac_fn_c_try_compile "$LINENO"; then :
14784  ac_cv_tls=$kw; break
14785fi
14786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787    done
14788
14789fi
14790
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
14792$as_echo "$ac_cv_tls" >&6; }
14793
14794if test "$ac_cv_tls" != "none"; then
14795
14796cat >>confdefs.h <<_ACEOF
14797#define TLS $ac_cv_tls
14798_ACEOF
14799
14800fi
14801
14802
14803
14804
14805
14806
14807support_for_pthreads=no
14808
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
14810$as_echo_n "checking for pthreads... " >&6; }
14811
14812    if test "z$support_for_pthreads" != "zyes"; then
14813		save_CFLAGS="$CFLAGS"
14814	save_LDFLAGS="$LDFLAGS"
14815	save_LIBS="$LIBS"
14816	CFLAGS=""
14817	LDFLAGS=""
14818	LIBS=""
14819	CFLAGS="-pthread"; LDFLAGS="-pthread"
14820	CFLAGS="$save_CFLAGS $CFLAGS"
14821	LDFLAGS="$save_LDFLAGS $LDFLAGS"
14822	LIBS="$save_LIBS $LIBS"
14823	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825#include <stdlib.h>
14826#include <pthread.h>
14827
14828static pthread_once_t once_control = PTHREAD_ONCE_INIT;
14829static pthread_key_t key;
14830
14831static void
14832make_key (void)
14833{
14834    pthread_key_create (&key, NULL);
14835}
14836
14837int
14838main ()
14839{
14840    void *value = NULL;
14841
14842    if (pthread_once (&once_control, make_key) != 0)
14843    {
14844	value = NULL;
14845    }
14846    else
14847    {
14848	value = pthread_getspecific (key);
14849	if (!value)
14850	{
14851	    value = malloc (100);
14852	    pthread_setspecific (key, value);
14853	}
14854    }
14855    return 0;
14856}
14857
14858_ACEOF
14859if ac_fn_c_try_link "$LINENO"; then :
14860  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
14861		 pixman_cc_flag=yes
14862else
14863  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
14864		 pixman_cc_flag=no
14865fi
14866rm -f core conftest.err conftest.$ac_objext \
14867    conftest$ac_exeext conftest.$ac_ext
14868
14869	if test "x$pixman_cc_stderr" != "x"; then
14870		pixman_cc_flag=no
14871	fi
14872
14873	if test "x$pixman_cc_flag" = "xyes"; then
14874		PTHREAD_CFLAGS="$CFLAGS"
14875		 PTHREAD_LIBS="$LIBS"
14876		 PTHREAD_LDFLAGS="$LDFLAGS"
14877		 support_for_pthreads=yes
14878	else
14879		:
14880	fi
14881	CFLAGS="$save_CFLAGS"
14882	LDFLAGS="$save_LDFLAGS"
14883	LIBS="$save_LIBS"
14884
14885    fi
14886
14887    if test "z$support_for_pthreads" != "zyes"; then
14888		save_CFLAGS="$CFLAGS"
14889	save_LDFLAGS="$LDFLAGS"
14890	save_LIBS="$LIBS"
14891	CFLAGS=""
14892	LDFLAGS=""
14893	LIBS=""
14894	CFLAGS="-D_REENTRANT"; LIBS="-lpthread"
14895	CFLAGS="$save_CFLAGS $CFLAGS"
14896	LDFLAGS="$save_LDFLAGS $LDFLAGS"
14897	LIBS="$save_LIBS $LIBS"
14898	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899/* end confdefs.h.  */
14900#include <stdlib.h>
14901#include <pthread.h>
14902
14903static pthread_once_t once_control = PTHREAD_ONCE_INIT;
14904static pthread_key_t key;
14905
14906static void
14907make_key (void)
14908{
14909    pthread_key_create (&key, NULL);
14910}
14911
14912int
14913main ()
14914{
14915    void *value = NULL;
14916
14917    if (pthread_once (&once_control, make_key) != 0)
14918    {
14919	value = NULL;
14920    }
14921    else
14922    {
14923	value = pthread_getspecific (key);
14924	if (!value)
14925	{
14926	    value = malloc (100);
14927	    pthread_setspecific (key, value);
14928	}
14929    }
14930    return 0;
14931}
14932
14933_ACEOF
14934if ac_fn_c_try_link "$LINENO"; then :
14935  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
14936		 pixman_cc_flag=yes
14937else
14938  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
14939		 pixman_cc_flag=no
14940fi
14941rm -f core conftest.err conftest.$ac_objext \
14942    conftest$ac_exeext conftest.$ac_ext
14943
14944	if test "x$pixman_cc_stderr" != "x"; then
14945		pixman_cc_flag=no
14946	fi
14947
14948	if test "x$pixman_cc_flag" = "xyes"; then
14949		PTHREAD_CFLAGS="$CFLAGS"
14950		 PTHREAD_LIBS="$LIBS"
14951		 PTHREAD_LDFLAGS="$LDFLAGS"
14952		 support_for_pthreads=yes
14953	else
14954		:
14955	fi
14956	CFLAGS="$save_CFLAGS"
14957	LDFLAGS="$save_LDFLAGS"
14958	LIBS="$save_LIBS"
14959
14960    fi
14961
14962    if test "z$support_for_pthreads" != "zyes"; then
14963		save_CFLAGS="$CFLAGS"
14964	save_LDFLAGS="$LDFLAGS"
14965	save_LIBS="$LIBS"
14966	CFLAGS=""
14967	LDFLAGS=""
14968	LIBS=""
14969	CFLAGS="-D_REENTRANT"; LDFLAGS="-lroot"
14970	CFLAGS="$save_CFLAGS $CFLAGS"
14971	LDFLAGS="$save_LDFLAGS $LDFLAGS"
14972	LIBS="$save_LIBS $LIBS"
14973	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974/* end confdefs.h.  */
14975#include <stdlib.h>
14976#include <pthread.h>
14977
14978static pthread_once_t once_control = PTHREAD_ONCE_INIT;
14979static pthread_key_t key;
14980
14981static void
14982make_key (void)
14983{
14984    pthread_key_create (&key, NULL);
14985}
14986
14987int
14988main ()
14989{
14990    void *value = NULL;
14991
14992    if (pthread_once (&once_control, make_key) != 0)
14993    {
14994	value = NULL;
14995    }
14996    else
14997    {
14998	value = pthread_getspecific (key);
14999	if (!value)
15000	{
15001	    value = malloc (100);
15002	    pthread_setspecific (key, value);
15003	}
15004    }
15005    return 0;
15006}
15007
15008_ACEOF
15009if ac_fn_c_try_link "$LINENO"; then :
15010  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
15011		 pixman_cc_flag=yes
15012else
15013  pixman_cc_stderr=`test -f conftest.err && cat conftest.err`
15014		 pixman_cc_flag=no
15015fi
15016rm -f core conftest.err conftest.$ac_objext \
15017    conftest$ac_exeext conftest.$ac_ext
15018
15019	if test "x$pixman_cc_stderr" != "x"; then
15020		pixman_cc_flag=no
15021	fi
15022
15023	if test "x$pixman_cc_flag" = "xyes"; then
15024		PTHREAD_CFLAGS="$CFLAGS"
15025		 PTHREAD_LIBS="$LIBS"
15026		 PTHREAD_LDFLAGS="$LDFLAGS"
15027		 support_for_pthreads=yes
15028	else
15029		:
15030	fi
15031	CFLAGS="$save_CFLAGS"
15032	LDFLAGS="$save_LDFLAGS"
15033	LIBS="$save_LIBS"
15034
15035    fi
15036
15037
15038if test $support_for_pthreads = yes; then
15039
15040$as_echo "#define HAVE_PTHREADS /**/" >>confdefs.h
15041
15042    if test $ac_cv_tls = none ; then
15043        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15044    fi
15045fi
15046
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_pthreads" >&5
15048$as_echo "$support_for_pthreads" >&6; }
15049
15050
15051
15052
15053
15054
15055
15056
15057support_for_attribute_constructor=no
15058
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
15060$as_echo_n "checking for __attribute__((constructor))... " >&6; }
15061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062/* end confdefs.h.  */
15063
15064#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
15065/* attribute 'constructor' is supported since gcc 2.7, but some compilers
15066 * may only pretend to be gcc, so let's try to actually use it
15067 */
15068static int x = 1;
15069static void __attribute__((constructor)) constructor_function () { x = 0; }
15070int main (void) { return x; }
15071#else
15072#error not gcc or gcc version is older than 2.7
15073#endif
15074
15075_ACEOF
15076if ac_fn_c_try_link "$LINENO"; then :
15077  support_for_attribute_constructor=yes
15078fi
15079rm -f core conftest.err conftest.$ac_objext \
15080    conftest$ac_exeext conftest.$ac_ext
15081
15082if test x$support_for_attribute_constructor = xyes; then
15083
15084$as_echo "#define TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR /**/" >>confdefs.h
15085
15086fi
15087
15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_attribute_constructor" >&5
15089$as_echo "$support_for_attribute_constructor" >&6; }
15090
15091
15092
15093support_for_float128=no
15094
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __float128" >&5
15096$as_echo_n "checking for __float128... " >&6; }
15097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098/* end confdefs.h.  */
15099
15100__float128 a = 1.0Q, b = 2.0Q; int main (void) { return a + b; }
15101
15102_ACEOF
15103if ac_fn_c_try_link "$LINENO"; then :
15104  support_for_float128=yes
15105fi
15106rm -f core conftest.err conftest.$ac_objext \
15107    conftest$ac_exeext conftest.$ac_ext
15108
15109if test x$support_for_float128 = xyes; then
15110
15111$as_echo "#define HAVE_FLOAT128 /**/" >>confdefs.h
15112
15113fi
15114
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_float128" >&5
15116$as_echo "$support_for_float128" >&6; }
15117
15118
15119support_for_builtin_clz=no
15120
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15122$as_echo_n "checking for __builtin_clz... " >&6; }
15123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124/* end confdefs.h.  */
15125
15126unsigned int x = 11; int main (void) { return __builtin_clz(x); }
15127
15128_ACEOF
15129if ac_fn_c_try_link "$LINENO"; then :
15130  support_for_builtin_clz=yes
15131fi
15132rm -f core conftest.err conftest.$ac_objext \
15133    conftest$ac_exeext conftest.$ac_ext
15134
15135if test x$support_for_builtin_clz = xyes; then
15136
15137$as_echo "#define HAVE_BUILTIN_CLZ /**/" >>confdefs.h
15138
15139fi
15140
15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_builtin_clz" >&5
15142$as_echo "$support_for_builtin_clz" >&6; }
15143
15144
15145support_for_gcc_vector_extensions=no
15146
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC vector extensions" >&5
15148$as_echo_n "checking for GCC vector extensions... " >&6; }
15149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150/* end confdefs.h.  */
15151
15152unsigned int __attribute__ ((vector_size(16))) e, a, b;
15153int main (void) { e = a - ((b << 27) + (b >> (32 - 27))) + 1; return e[0]; }
15154
15155_ACEOF
15156if ac_fn_c_try_link "$LINENO"; then :
15157  support_for_gcc_vector_extensions=yes
15158fi
15159rm -f core conftest.err conftest.$ac_objext \
15160    conftest$ac_exeext conftest.$ac_ext
15161
15162if test x$support_for_gcc_vector_extensions = xyes; then
15163
15164$as_echo "#define HAVE_GCC_VECTOR_EXTENSIONS /**/" >>confdefs.h
15165
15166fi
15167
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_gcc_vector_extensions" >&5
15169$as_echo "$support_for_gcc_vector_extensions" >&6; }
15170
15171
15172# Check whether --enable-libpng was given.
15173if test "${enable_libpng+set}" = set; then :
15174  enableval=$enable_libpng; have_libpng=$enableval
15175else
15176  have_libpng=auto
15177fi
15178
15179
15180case x$have_libpng in
15181	xyes)
15182pkg_failed=no
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
15184$as_echo_n "checking for PNG... " >&6; }
15185
15186if test -n "$PNG_CFLAGS"; then
15187    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
15188 elif test -n "$PKG_CONFIG"; then
15189    if test -n "$PKG_CONFIG" && \
15190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15191  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15192  ac_status=$?
15193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15194  test $ac_status = 0; }; then
15195  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
15196		      test "x$?" != "x0" && pkg_failed=yes
15197else
15198  pkg_failed=yes
15199fi
15200 else
15201    pkg_failed=untried
15202fi
15203if test -n "$PNG_LIBS"; then
15204    pkg_cv_PNG_LIBS="$PNG_LIBS"
15205 elif test -n "$PKG_CONFIG"; then
15206    if test -n "$PKG_CONFIG" && \
15207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15208  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15209  ac_status=$?
15210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15211  test $ac_status = 0; }; then
15212  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
15213		      test "x$?" != "x0" && pkg_failed=yes
15214else
15215  pkg_failed=yes
15216fi
15217 else
15218    pkg_failed=untried
15219fi
15220
15221
15222
15223if test $pkg_failed = yes; then
15224   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225$as_echo "no" >&6; }
15226
15227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15228        _pkg_short_errors_supported=yes
15229else
15230        _pkg_short_errors_supported=no
15231fi
15232        if test $_pkg_short_errors_supported = yes; then
15233	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
15234        else
15235	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
15236        fi
15237	# Put the nasty error message in config.log where it belongs
15238	echo "$PNG_PKG_ERRORS" >&5
15239
15240	as_fn_error $? "Package requirements (libpng) were not met:
15241
15242$PNG_PKG_ERRORS
15243
15244Consider adjusting the PKG_CONFIG_PATH environment variable if you
15245installed software in a non-standard prefix.
15246
15247Alternatively, you may set the environment variables PNG_CFLAGS
15248and PNG_LIBS to avoid the need to call pkg-config.
15249See the pkg-config man page for more details." "$LINENO" 5
15250elif test $pkg_failed = untried; then
15251     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252$as_echo "no" >&6; }
15253	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15255as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15256is in your PATH or set the PKG_CONFIG environment variable to the full
15257path to pkg-config.
15258
15259Alternatively, you may set the environment variables PNG_CFLAGS
15260and PNG_LIBS to avoid the need to call pkg-config.
15261See the pkg-config man page for more details.
15262
15263To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15264See \`config.log' for more details" "$LINENO" 5; }
15265else
15266	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
15267	PNG_LIBS=$pkg_cv_PNG_LIBS
15268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15269$as_echo "yes" >&6; }
15270
15271fi ;;
15272	xno) ;;
15273	*)
15274pkg_failed=no
15275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
15276$as_echo_n "checking for PNG... " >&6; }
15277
15278if test -n "$PNG_CFLAGS"; then
15279    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
15280 elif test -n "$PKG_CONFIG"; then
15281    if test -n "$PKG_CONFIG" && \
15282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15283  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15284  ac_status=$?
15285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15286  test $ac_status = 0; }; then
15287  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
15288		      test "x$?" != "x0" && pkg_failed=yes
15289else
15290  pkg_failed=yes
15291fi
15292 else
15293    pkg_failed=untried
15294fi
15295if test -n "$PNG_LIBS"; then
15296    pkg_cv_PNG_LIBS="$PNG_LIBS"
15297 elif test -n "$PKG_CONFIG"; then
15298    if test -n "$PKG_CONFIG" && \
15299    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
15300  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
15301  ac_status=$?
15302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15303  test $ac_status = 0; }; then
15304  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
15305		      test "x$?" != "x0" && pkg_failed=yes
15306else
15307  pkg_failed=yes
15308fi
15309 else
15310    pkg_failed=untried
15311fi
15312
15313
15314
15315if test $pkg_failed = yes; then
15316   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317$as_echo "no" >&6; }
15318
15319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15320        _pkg_short_errors_supported=yes
15321else
15322        _pkg_short_errors_supported=no
15323fi
15324        if test $_pkg_short_errors_supported = yes; then
15325	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
15326        else
15327	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
15328        fi
15329	# Put the nasty error message in config.log where it belongs
15330	echo "$PNG_PKG_ERRORS" >&5
15331
15332	have_libpng=no
15333elif test $pkg_failed = untried; then
15334     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335$as_echo "no" >&6; }
15336	have_libpng=no
15337else
15338	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
15339	PNG_LIBS=$pkg_cv_PNG_LIBS
15340        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15341$as_echo "yes" >&6; }
15342	have_libpng=yes
15343fi ;;
15344esac
15345
15346if test x$have_libpng = xyes; then
15347
15348$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15349
15350fi
15351
15352
15353
15354ac_config_files="$ac_config_files pixman-1.pc pixman-1-uninstalled.pc Makefile pixman/Makefile pixman/pixman-version.h demos/Makefile test/Makefile"
15355
15356cat >confcache <<\_ACEOF
15357# This file is a shell script that caches the results of configure
15358# tests run on this system so they can be shared between configure
15359# scripts and configure runs, see configure's option --config-cache.
15360# It is not useful on other systems.  If it contains results you don't
15361# want to keep, you may remove or edit it.
15362#
15363# config.status only pays attention to the cache file if you give it
15364# the --recheck option to rerun configure.
15365#
15366# `ac_cv_env_foo' variables (set or unset) will be overridden when
15367# loading this file, other *unset* `ac_cv_foo' will be assigned the
15368# following values.
15369
15370_ACEOF
15371
15372# The following way of writing the cache mishandles newlines in values,
15373# but we know of no workaround that is simple, portable, and efficient.
15374# So, we kill variables containing newlines.
15375# Ultrix sh set writes to stderr and can't be redirected directly,
15376# and sets the high bit in the cache file unless we assign to the vars.
15377(
15378  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15379    eval ac_val=\$$ac_var
15380    case $ac_val in #(
15381    *${as_nl}*)
15382      case $ac_var in #(
15383      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15385      esac
15386      case $ac_var in #(
15387      _ | IFS | as_nl) ;; #(
15388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15389      *) { eval $ac_var=; unset $ac_var;} ;;
15390      esac ;;
15391    esac
15392  done
15393
15394  (set) 2>&1 |
15395    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15396    *${as_nl}ac_space=\ *)
15397      # `set' does not quote correctly, so add quotes: double-quote
15398      # substitution turns \\\\ into \\, and sed turns \\ into \.
15399      sed -n \
15400	"s/'/'\\\\''/g;
15401	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15402      ;; #(
15403    *)
15404      # `set' quotes correctly as required by POSIX, so do not add quotes.
15405      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15406      ;;
15407    esac |
15408    sort
15409) |
15410  sed '
15411     /^ac_cv_env_/b end
15412     t clear
15413     :clear
15414     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15415     t end
15416     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15417     :end' >>confcache
15418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15419  if test -w "$cache_file"; then
15420    if test "x$cache_file" != "x/dev/null"; then
15421      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15422$as_echo "$as_me: updating cache $cache_file" >&6;}
15423      if test ! -f "$cache_file" || test -h "$cache_file"; then
15424	cat confcache >"$cache_file"
15425      else
15426        case $cache_file in #(
15427        */* | ?:*)
15428	  mv -f confcache "$cache_file"$$ &&
15429	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15430        *)
15431	  mv -f confcache "$cache_file" ;;
15432	esac
15433      fi
15434    fi
15435  else
15436    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15438  fi
15439fi
15440rm -f confcache
15441
15442test "x$prefix" = xNONE && prefix=$ac_default_prefix
15443# Let make expand exec_prefix.
15444test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15445
15446DEFS=-DHAVE_CONFIG_H
15447
15448ac_libobjs=
15449ac_ltlibobjs=
15450U=
15451for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15452  # 1. Remove the extension, and $U if already installed.
15453  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15454  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15455  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15456  #    will be set to the directory where LIBOBJS objects are built.
15457  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15458  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15459done
15460LIBOBJS=$ac_libobjs
15461
15462LTLIBOBJS=$ac_ltlibobjs
15463
15464
15465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15466$as_echo_n "checking that generated files are newer than configure... " >&6; }
15467   if test -n "$am_sleep_pid"; then
15468     # Hide warnings about reused PIDs.
15469     wait $am_sleep_pid 2>/dev/null
15470   fi
15471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15472$as_echo "done" >&6; }
15473 if test -n "$EXEEXT"; then
15474  am__EXEEXT_TRUE=
15475  am__EXEEXT_FALSE='#'
15476else
15477  am__EXEEXT_TRUE='#'
15478  am__EXEEXT_FALSE=
15479fi
15480
15481if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15482  as_fn_error $? "conditional \"AMDEP\" was never defined.
15483Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484fi
15485if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15486  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15487Usually this means the macro was only invoked conditionally." "$LINENO" 5
15488fi
15489if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15490  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15491Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492fi
15493
15494if test -z "${USE_LOONGSON_MMI_TRUE}" && test -z "${USE_LOONGSON_MMI_FALSE}"; then
15495  as_fn_error $? "conditional \"USE_LOONGSON_MMI\" was never defined.
15496Usually this means the macro was only invoked conditionally." "$LINENO" 5
15497fi
15498if test -z "${USE_X86_MMX_TRUE}" && test -z "${USE_X86_MMX_FALSE}"; then
15499  as_fn_error $? "conditional \"USE_X86_MMX\" was never defined.
15500Usually this means the macro was only invoked conditionally." "$LINENO" 5
15501fi
15502if test -z "${USE_SSE2_TRUE}" && test -z "${USE_SSE2_FALSE}"; then
15503  as_fn_error $? "conditional \"USE_SSE2\" was never defined.
15504Usually this means the macro was only invoked conditionally." "$LINENO" 5
15505fi
15506if test -z "${USE_SSSE3_TRUE}" && test -z "${USE_SSSE3_FALSE}"; then
15507  as_fn_error $? "conditional \"USE_SSSE3\" was never defined.
15508Usually this means the macro was only invoked conditionally." "$LINENO" 5
15509fi
15510if test -z "${USE_VMX_TRUE}" && test -z "${USE_VMX_FALSE}"; then
15511  as_fn_error $? "conditional \"USE_VMX\" was never defined.
15512Usually this means the macro was only invoked conditionally." "$LINENO" 5
15513fi
15514if test -z "${USE_ARM_SIMD_TRUE}" && test -z "${USE_ARM_SIMD_FALSE}"; then
15515  as_fn_error $? "conditional \"USE_ARM_SIMD\" was never defined.
15516Usually this means the macro was only invoked conditionally." "$LINENO" 5
15517fi
15518if test -z "${USE_ARM_NEON_TRUE}" && test -z "${USE_ARM_NEON_FALSE}"; then
15519  as_fn_error $? "conditional \"USE_ARM_NEON\" was never defined.
15520Usually this means the macro was only invoked conditionally." "$LINENO" 5
15521fi
15522if test -z "${USE_ARM_IWMMXT_TRUE}" && test -z "${USE_ARM_IWMMXT_FALSE}"; then
15523  as_fn_error $? "conditional \"USE_ARM_IWMMXT\" was never defined.
15524Usually this means the macro was only invoked conditionally." "$LINENO" 5
15525fi
15526if test -z "${USE_MIPS_DSPR2_TRUE}" && test -z "${USE_MIPS_DSPR2_FALSE}"; then
15527  as_fn_error $? "conditional \"USE_MIPS_DSPR2\" was never defined.
15528Usually this means the macro was only invoked conditionally." "$LINENO" 5
15529fi
15530if test -z "${USE_GCC_INLINE_ASM_TRUE}" && test -z "${USE_GCC_INLINE_ASM_FALSE}"; then
15531  as_fn_error $? "conditional \"USE_GCC_INLINE_ASM\" was never defined.
15532Usually this means the macro was only invoked conditionally." "$LINENO" 5
15533fi
15534if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
15535  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
15536Usually this means the macro was only invoked conditionally." "$LINENO" 5
15537fi
15538
15539: "${CONFIG_STATUS=./config.status}"
15540ac_write_fail=0
15541ac_clean_files_save=$ac_clean_files
15542ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15544$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15545as_write_fail=0
15546cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15547#! $SHELL
15548# Generated by $as_me.
15549# Run this file to recreate the current configuration.
15550# Compiler output produced by configure, useful for debugging
15551# configure, is in config.log if it exists.
15552
15553debug=false
15554ac_cs_recheck=false
15555ac_cs_silent=false
15556
15557SHELL=\${CONFIG_SHELL-$SHELL}
15558export SHELL
15559_ASEOF
15560cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15561## -------------------- ##
15562## M4sh Initialization. ##
15563## -------------------- ##
15564
15565# Be more Bourne compatible
15566DUALCASE=1; export DUALCASE # for MKS sh
15567if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15568  emulate sh
15569  NULLCMD=:
15570  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15571  # is contrary to our usage.  Disable this feature.
15572  alias -g '${1+"$@"}'='"$@"'
15573  setopt NO_GLOB_SUBST
15574else
15575  case `(set -o) 2>/dev/null` in #(
15576  *posix*) :
15577    set -o posix ;; #(
15578  *) :
15579     ;;
15580esac
15581fi
15582
15583
15584as_nl='
15585'
15586export as_nl
15587# Printing a long string crashes Solaris 7 /usr/bin/printf.
15588as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15590as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15591# Prefer a ksh shell builtin over an external printf program on Solaris,
15592# but without wasting forks for bash or zsh.
15593if test -z "$BASH_VERSION$ZSH_VERSION" \
15594    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15595  as_echo='print -r --'
15596  as_echo_n='print -rn --'
15597elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15598  as_echo='printf %s\n'
15599  as_echo_n='printf %s'
15600else
15601  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15602    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15603    as_echo_n='/usr/ucb/echo -n'
15604  else
15605    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15606    as_echo_n_body='eval
15607      arg=$1;
15608      case $arg in #(
15609      *"$as_nl"*)
15610	expr "X$arg" : "X\\(.*\\)$as_nl";
15611	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15612      esac;
15613      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15614    '
15615    export as_echo_n_body
15616    as_echo_n='sh -c $as_echo_n_body as_echo'
15617  fi
15618  export as_echo_body
15619  as_echo='sh -c $as_echo_body as_echo'
15620fi
15621
15622# The user is always right.
15623if test "${PATH_SEPARATOR+set}" != set; then
15624  PATH_SEPARATOR=:
15625  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15626    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15627      PATH_SEPARATOR=';'
15628  }
15629fi
15630
15631
15632# IFS
15633# We need space, tab and new line, in precisely that order.  Quoting is
15634# there to prevent editors from complaining about space-tab.
15635# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15636# splitting by setting IFS to empty value.)
15637IFS=" ""	$as_nl"
15638
15639# Find who we are.  Look in the path if we contain no directory separator.
15640as_myself=
15641case $0 in #((
15642  *[\\/]* ) as_myself=$0 ;;
15643  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15644for as_dir in $PATH
15645do
15646  IFS=$as_save_IFS
15647  test -z "$as_dir" && as_dir=.
15648    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15649  done
15650IFS=$as_save_IFS
15651
15652     ;;
15653esac
15654# We did not find ourselves, most probably we were run as `sh COMMAND'
15655# in which case we are not to be found in the path.
15656if test "x$as_myself" = x; then
15657  as_myself=$0
15658fi
15659if test ! -f "$as_myself"; then
15660  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15661  exit 1
15662fi
15663
15664# Unset variables that we do not need and which cause bugs (e.g. in
15665# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15666# suppresses any "Segmentation fault" message there.  '((' could
15667# trigger a bug in pdksh 5.2.14.
15668for as_var in BASH_ENV ENV MAIL MAILPATH
15669do eval test x\${$as_var+set} = xset \
15670  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15671done
15672PS1='$ '
15673PS2='> '
15674PS4='+ '
15675
15676# NLS nuisances.
15677LC_ALL=C
15678export LC_ALL
15679LANGUAGE=C
15680export LANGUAGE
15681
15682# CDPATH.
15683(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15684
15685
15686# as_fn_error STATUS ERROR [LINENO LOG_FD]
15687# ----------------------------------------
15688# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15689# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15690# script with STATUS, using 1 if that was 0.
15691as_fn_error ()
15692{
15693  as_status=$1; test $as_status -eq 0 && as_status=1
15694  if test "$4"; then
15695    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15696    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15697  fi
15698  $as_echo "$as_me: error: $2" >&2
15699  as_fn_exit $as_status
15700} # as_fn_error
15701
15702
15703# as_fn_set_status STATUS
15704# -----------------------
15705# Set $? to STATUS, without forking.
15706as_fn_set_status ()
15707{
15708  return $1
15709} # as_fn_set_status
15710
15711# as_fn_exit STATUS
15712# -----------------
15713# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15714as_fn_exit ()
15715{
15716  set +e
15717  as_fn_set_status $1
15718  exit $1
15719} # as_fn_exit
15720
15721# as_fn_unset VAR
15722# ---------------
15723# Portably unset VAR.
15724as_fn_unset ()
15725{
15726  { eval $1=; unset $1;}
15727}
15728as_unset=as_fn_unset
15729# as_fn_append VAR VALUE
15730# ----------------------
15731# Append the text in VALUE to the end of the definition contained in VAR. Take
15732# advantage of any shell optimizations that allow amortized linear growth over
15733# repeated appends, instead of the typical quadratic growth present in naive
15734# implementations.
15735if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15736  eval 'as_fn_append ()
15737  {
15738    eval $1+=\$2
15739  }'
15740else
15741  as_fn_append ()
15742  {
15743    eval $1=\$$1\$2
15744  }
15745fi # as_fn_append
15746
15747# as_fn_arith ARG...
15748# ------------------
15749# Perform arithmetic evaluation on the ARGs, and store the result in the
15750# global $as_val. Take advantage of shells that can avoid forks. The arguments
15751# must be portable across $(()) and expr.
15752if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15753  eval 'as_fn_arith ()
15754  {
15755    as_val=$(( $* ))
15756  }'
15757else
15758  as_fn_arith ()
15759  {
15760    as_val=`expr "$@" || test $? -eq 1`
15761  }
15762fi # as_fn_arith
15763
15764
15765if expr a : '\(a\)' >/dev/null 2>&1 &&
15766   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15767  as_expr=expr
15768else
15769  as_expr=false
15770fi
15771
15772if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15773  as_basename=basename
15774else
15775  as_basename=false
15776fi
15777
15778if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15779  as_dirname=dirname
15780else
15781  as_dirname=false
15782fi
15783
15784as_me=`$as_basename -- "$0" ||
15785$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15786	 X"$0" : 'X\(//\)$' \| \
15787	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15788$as_echo X/"$0" |
15789    sed '/^.*\/\([^/][^/]*\)\/*$/{
15790	    s//\1/
15791	    q
15792	  }
15793	  /^X\/\(\/\/\)$/{
15794	    s//\1/
15795	    q
15796	  }
15797	  /^X\/\(\/\).*/{
15798	    s//\1/
15799	    q
15800	  }
15801	  s/.*/./; q'`
15802
15803# Avoid depending upon Character Ranges.
15804as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15806as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15807as_cr_digits='0123456789'
15808as_cr_alnum=$as_cr_Letters$as_cr_digits
15809
15810ECHO_C= ECHO_N= ECHO_T=
15811case `echo -n x` in #(((((
15812-n*)
15813  case `echo 'xy\c'` in
15814  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15815  xy)  ECHO_C='\c';;
15816  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15817       ECHO_T='	';;
15818  esac;;
15819*)
15820  ECHO_N='-n';;
15821esac
15822
15823rm -f conf$$ conf$$.exe conf$$.file
15824if test -d conf$$.dir; then
15825  rm -f conf$$.dir/conf$$.file
15826else
15827  rm -f conf$$.dir
15828  mkdir conf$$.dir 2>/dev/null
15829fi
15830if (echo >conf$$.file) 2>/dev/null; then
15831  if ln -s conf$$.file conf$$ 2>/dev/null; then
15832    as_ln_s='ln -s'
15833    # ... but there are two gotchas:
15834    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15835    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15836    # In both cases, we have to default to `cp -pR'.
15837    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15838      as_ln_s='cp -pR'
15839  elif ln conf$$.file conf$$ 2>/dev/null; then
15840    as_ln_s=ln
15841  else
15842    as_ln_s='cp -pR'
15843  fi
15844else
15845  as_ln_s='cp -pR'
15846fi
15847rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15848rmdir conf$$.dir 2>/dev/null
15849
15850
15851# as_fn_mkdir_p
15852# -------------
15853# Create "$as_dir" as a directory, including parents if necessary.
15854as_fn_mkdir_p ()
15855{
15856
15857  case $as_dir in #(
15858  -*) as_dir=./$as_dir;;
15859  esac
15860  test -d "$as_dir" || eval $as_mkdir_p || {
15861    as_dirs=
15862    while :; do
15863      case $as_dir in #(
15864      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15865      *) as_qdir=$as_dir;;
15866      esac
15867      as_dirs="'$as_qdir' $as_dirs"
15868      as_dir=`$as_dirname -- "$as_dir" ||
15869$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15870	 X"$as_dir" : 'X\(//\)[^/]' \| \
15871	 X"$as_dir" : 'X\(//\)$' \| \
15872	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15873$as_echo X"$as_dir" |
15874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15875	    s//\1/
15876	    q
15877	  }
15878	  /^X\(\/\/\)[^/].*/{
15879	    s//\1/
15880	    q
15881	  }
15882	  /^X\(\/\/\)$/{
15883	    s//\1/
15884	    q
15885	  }
15886	  /^X\(\/\).*/{
15887	    s//\1/
15888	    q
15889	  }
15890	  s/.*/./; q'`
15891      test -d "$as_dir" && break
15892    done
15893    test -z "$as_dirs" || eval "mkdir $as_dirs"
15894  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15895
15896
15897} # as_fn_mkdir_p
15898if mkdir -p . 2>/dev/null; then
15899  as_mkdir_p='mkdir -p "$as_dir"'
15900else
15901  test -d ./-p && rmdir ./-p
15902  as_mkdir_p=false
15903fi
15904
15905
15906# as_fn_executable_p FILE
15907# -----------------------
15908# Test if FILE is an executable regular file.
15909as_fn_executable_p ()
15910{
15911  test -f "$1" && test -x "$1"
15912} # as_fn_executable_p
15913as_test_x='test -x'
15914as_executable_p=as_fn_executable_p
15915
15916# Sed expression to map a string onto a valid CPP name.
15917as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15918
15919# Sed expression to map a string onto a valid variable name.
15920as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15921
15922
15923exec 6>&1
15924## ----------------------------------- ##
15925## Main body of $CONFIG_STATUS script. ##
15926## ----------------------------------- ##
15927_ASEOF
15928test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15929
15930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15931# Save the log message, to keep $0 and so on meaningful, and to
15932# report actual input values of CONFIG_FILES etc. instead of their
15933# values after options handling.
15934ac_log="
15935This file was extended by pixman $as_me 0.40.0, which was
15936generated by GNU Autoconf 2.69.  Invocation command line was
15937
15938  CONFIG_FILES    = $CONFIG_FILES
15939  CONFIG_HEADERS  = $CONFIG_HEADERS
15940  CONFIG_LINKS    = $CONFIG_LINKS
15941  CONFIG_COMMANDS = $CONFIG_COMMANDS
15942  $ $0 $@
15943
15944on `(hostname || uname -n) 2>/dev/null | sed 1q`
15945"
15946
15947_ACEOF
15948
15949case $ac_config_files in *"
15950"*) set x $ac_config_files; shift; ac_config_files=$*;;
15951esac
15952
15953case $ac_config_headers in *"
15954"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15955esac
15956
15957
15958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15959# Files that config.status was made for.
15960config_files="$ac_config_files"
15961config_headers="$ac_config_headers"
15962config_commands="$ac_config_commands"
15963
15964_ACEOF
15965
15966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15967ac_cs_usage="\
15968\`$as_me' instantiates files and other configuration actions
15969from templates according to the current configuration.  Unless the files
15970and actions are specified as TAGs, all are instantiated by default.
15971
15972Usage: $0 [OPTION]... [TAG]...
15973
15974  -h, --help       print this help, then exit
15975  -V, --version    print version number and configuration settings, then exit
15976      --config     print configuration, then exit
15977  -q, --quiet, --silent
15978                   do not print progress messages
15979  -d, --debug      don't remove temporary files
15980      --recheck    update $as_me by reconfiguring in the same conditions
15981      --file=FILE[:TEMPLATE]
15982                   instantiate the configuration file FILE
15983      --header=FILE[:TEMPLATE]
15984                   instantiate the configuration header FILE
15985
15986Configuration files:
15987$config_files
15988
15989Configuration headers:
15990$config_headers
15991
15992Configuration commands:
15993$config_commands
15994
15995Report bugs to <pixman@lists.freedesktop.org>."
15996
15997_ACEOF
15998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16000ac_cs_version="\\
16001pixman config.status 0.40.0
16002configured by $0, generated by GNU Autoconf 2.69,
16003  with options \\"\$ac_cs_config\\"
16004
16005Copyright (C) 2012 Free Software Foundation, Inc.
16006This config.status script is free software; the Free Software Foundation
16007gives unlimited permission to copy, distribute and modify it."
16008
16009ac_pwd='$ac_pwd'
16010srcdir='$srcdir'
16011INSTALL='$INSTALL'
16012MKDIR_P='$MKDIR_P'
16013AWK='$AWK'
16014test -n "\$AWK" || AWK=awk
16015_ACEOF
16016
16017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018# The default lists apply if the user does not specify any file.
16019ac_need_defaults=:
16020while test $# != 0
16021do
16022  case $1 in
16023  --*=?*)
16024    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16025    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16026    ac_shift=:
16027    ;;
16028  --*=)
16029    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16030    ac_optarg=
16031    ac_shift=:
16032    ;;
16033  *)
16034    ac_option=$1
16035    ac_optarg=$2
16036    ac_shift=shift
16037    ;;
16038  esac
16039
16040  case $ac_option in
16041  # Handling of the options.
16042  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16043    ac_cs_recheck=: ;;
16044  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16045    $as_echo "$ac_cs_version"; exit ;;
16046  --config | --confi | --conf | --con | --co | --c )
16047    $as_echo "$ac_cs_config"; exit ;;
16048  --debug | --debu | --deb | --de | --d | -d )
16049    debug=: ;;
16050  --file | --fil | --fi | --f )
16051    $ac_shift
16052    case $ac_optarg in
16053    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16054    '') as_fn_error $? "missing file argument" ;;
16055    esac
16056    as_fn_append CONFIG_FILES " '$ac_optarg'"
16057    ac_need_defaults=false;;
16058  --header | --heade | --head | --hea )
16059    $ac_shift
16060    case $ac_optarg in
16061    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16062    esac
16063    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16064    ac_need_defaults=false;;
16065  --he | --h)
16066    # Conflict between --help and --header
16067    as_fn_error $? "ambiguous option: \`$1'
16068Try \`$0 --help' for more information.";;
16069  --help | --hel | -h )
16070    $as_echo "$ac_cs_usage"; exit ;;
16071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16072  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16073    ac_cs_silent=: ;;
16074
16075  # This is an error.
16076  -*) as_fn_error $? "unrecognized option: \`$1'
16077Try \`$0 --help' for more information." ;;
16078
16079  *) as_fn_append ac_config_targets " $1"
16080     ac_need_defaults=false ;;
16081
16082  esac
16083  shift
16084done
16085
16086ac_configure_extra_args=
16087
16088if $ac_cs_silent; then
16089  exec 6>/dev/null
16090  ac_configure_extra_args="$ac_configure_extra_args --silent"
16091fi
16092
16093_ACEOF
16094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16095if \$ac_cs_recheck; then
16096  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16097  shift
16098  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16099  CONFIG_SHELL='$SHELL'
16100  export CONFIG_SHELL
16101  exec "\$@"
16102fi
16103
16104_ACEOF
16105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106exec 5>>config.log
16107{
16108  echo
16109  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16110## Running $as_me. ##
16111_ASBOX
16112  $as_echo "$ac_log"
16113} >&5
16114
16115_ACEOF
16116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16117#
16118# INIT-COMMANDS
16119#
16120AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16121
16122
16123# The HP-UX ksh and POSIX shell print the target directory to stdout
16124# if CDPATH is set.
16125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16126
16127sed_quote_subst='$sed_quote_subst'
16128double_quote_subst='$double_quote_subst'
16129delay_variable_subst='$delay_variable_subst'
16130macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16131macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16132enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16133enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16134pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16135enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16136shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16137SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16138ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16139PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16140host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16141host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16142host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16143build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16144build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16145build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16146SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16147Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16148GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16149EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16150FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16151LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16152NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16153LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16154max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16155ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16156exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16157lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16158lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16159lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16160lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16161lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16162reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16163reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16164OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16165deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16166file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16167file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16168want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16169DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16170sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16171AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16172AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16173archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16174STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16175RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16176old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16177old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16178old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16179lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16180CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16181CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16182compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16183GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16184lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16185lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16186lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16187lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16188lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16189lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16190nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16191lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16192lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16193objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16194MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16195lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16196lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16197lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16198lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16199lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16200need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16201MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16202DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16203NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16204LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16205OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16206OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16207libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16208shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16209extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16210archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16211enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16212export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16213whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16214compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16215old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16216old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16217archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16218archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16219module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16220module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16221with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16222allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16223no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16224hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16225hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16226hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16227hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16228hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16229hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16230hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16231inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16232link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16233always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16234export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16235exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16236include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16237prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16238postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16239file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16240variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16241need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16242need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16243version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16244runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16245shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16246shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16247libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16248library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16249soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16250install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16251postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16252postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16253finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16254finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16255hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16256sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16257configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16258configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16259hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16260enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16261enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16262enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16263old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16264striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16265
16266LTCC='$LTCC'
16267LTCFLAGS='$LTCFLAGS'
16268compiler='$compiler_DEFAULT'
16269
16270# A function that is used when there is no print builtin or printf.
16271func_fallback_echo ()
16272{
16273  eval 'cat <<_LTECHO_EOF
16274\$1
16275_LTECHO_EOF'
16276}
16277
16278# Quote evaled strings.
16279for var in SHELL \
16280ECHO \
16281PATH_SEPARATOR \
16282SED \
16283GREP \
16284EGREP \
16285FGREP \
16286LD \
16287NM \
16288LN_S \
16289lt_SP2NL \
16290lt_NL2SP \
16291reload_flag \
16292OBJDUMP \
16293deplibs_check_method \
16294file_magic_cmd \
16295file_magic_glob \
16296want_nocaseglob \
16297DLLTOOL \
16298sharedlib_from_linklib_cmd \
16299AR \
16300AR_FLAGS \
16301archiver_list_spec \
16302STRIP \
16303RANLIB \
16304CC \
16305CFLAGS \
16306compiler \
16307lt_cv_sys_global_symbol_pipe \
16308lt_cv_sys_global_symbol_to_cdecl \
16309lt_cv_sys_global_symbol_to_import \
16310lt_cv_sys_global_symbol_to_c_name_address \
16311lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16312lt_cv_nm_interface \
16313nm_file_list_spec \
16314lt_cv_truncate_bin \
16315lt_prog_compiler_no_builtin_flag \
16316lt_prog_compiler_pic \
16317lt_prog_compiler_wl \
16318lt_prog_compiler_static \
16319lt_cv_prog_compiler_c_o \
16320need_locks \
16321MANIFEST_TOOL \
16322DSYMUTIL \
16323NMEDIT \
16324LIPO \
16325OTOOL \
16326OTOOL64 \
16327shrext_cmds \
16328export_dynamic_flag_spec \
16329whole_archive_flag_spec \
16330compiler_needs_object \
16331with_gnu_ld \
16332allow_undefined_flag \
16333no_undefined_flag \
16334hardcode_libdir_flag_spec \
16335hardcode_libdir_separator \
16336exclude_expsyms \
16337include_expsyms \
16338file_list_spec \
16339variables_saved_for_relink \
16340libname_spec \
16341library_names_spec \
16342soname_spec \
16343install_override_mode \
16344finish_eval \
16345old_striplib \
16346striplib; do
16347    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16348    *[\\\\\\\`\\"\\\$]*)
16349      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16350      ;;
16351    *)
16352      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16353      ;;
16354    esac
16355done
16356
16357# Double-quote double-evaled strings.
16358for var in reload_cmds \
16359old_postinstall_cmds \
16360old_postuninstall_cmds \
16361old_archive_cmds \
16362extract_expsyms_cmds \
16363old_archive_from_new_cmds \
16364old_archive_from_expsyms_cmds \
16365archive_cmds \
16366archive_expsym_cmds \
16367module_cmds \
16368module_expsym_cmds \
16369export_symbols_cmds \
16370prelink_cmds \
16371postlink_cmds \
16372postinstall_cmds \
16373postuninstall_cmds \
16374finish_cmds \
16375sys_lib_search_path_spec \
16376configure_time_dlsearch_path \
16377configure_time_lt_sys_library_path; do
16378    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16379    *[\\\\\\\`\\"\\\$]*)
16380      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16381      ;;
16382    *)
16383      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16384      ;;
16385    esac
16386done
16387
16388ac_aux_dir='$ac_aux_dir'
16389
16390# See if we are running on zsh, and set the options that allow our
16391# commands through without removal of \ escapes INIT.
16392if test -n "\${ZSH_VERSION+set}"; then
16393   setopt NO_GLOB_SUBST
16394fi
16395
16396
16397    PACKAGE='$PACKAGE'
16398    VERSION='$VERSION'
16399    RM='$RM'
16400    ofile='$ofile'
16401
16402
16403
16404
16405_ACEOF
16406
16407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16408
16409# Handling of arguments.
16410for ac_config_target in $ac_config_targets
16411do
16412  case $ac_config_target in
16413    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16414    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16415    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16416    "pixman-1.pc") CONFIG_FILES="$CONFIG_FILES pixman-1.pc" ;;
16417    "pixman-1-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pixman-1-uninstalled.pc" ;;
16418    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16419    "pixman/Makefile") CONFIG_FILES="$CONFIG_FILES pixman/Makefile" ;;
16420    "pixman/pixman-version.h") CONFIG_FILES="$CONFIG_FILES pixman/pixman-version.h" ;;
16421    "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
16422    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16423
16424  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16425  esac
16426done
16427
16428
16429# If the user did not use the arguments to specify the items to instantiate,
16430# then the envvar interface is used.  Set only those that are not.
16431# We use the long form for the default assignment because of an extremely
16432# bizarre bug on SunOS 4.1.3.
16433if $ac_need_defaults; then
16434  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16435  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16436  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16437fi
16438
16439# Have a temporary directory for convenience.  Make it in the build tree
16440# simply because there is no reason against having it here, and in addition,
16441# creating and moving files from /tmp can sometimes cause problems.
16442# Hook for its removal unless debugging.
16443# Note that there is a small window in which the directory will not be cleaned:
16444# after its creation but before its name has been assigned to `$tmp'.
16445$debug ||
16446{
16447  tmp= ac_tmp=
16448  trap 'exit_status=$?
16449  : "${ac_tmp:=$tmp}"
16450  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16451' 0
16452  trap 'as_fn_exit 1' 1 2 13 15
16453}
16454# Create a (secure) tmp directory for tmp files.
16455
16456{
16457  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16458  test -d "$tmp"
16459}  ||
16460{
16461  tmp=./conf$$-$RANDOM
16462  (umask 077 && mkdir "$tmp")
16463} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16464ac_tmp=$tmp
16465
16466# Set up the scripts for CONFIG_FILES section.
16467# No need to generate them if there are no CONFIG_FILES.
16468# This happens for instance with `./config.status config.h'.
16469if test -n "$CONFIG_FILES"; then
16470
16471
16472ac_cr=`echo X | tr X '\015'`
16473# On cygwin, bash can eat \r inside `` if the user requested igncr.
16474# But we know of no other shell where ac_cr would be empty at this
16475# point, so we can use a bashism as a fallback.
16476if test "x$ac_cr" = x; then
16477  eval ac_cr=\$\'\\r\'
16478fi
16479ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16480if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16481  ac_cs_awk_cr='\\r'
16482else
16483  ac_cs_awk_cr=$ac_cr
16484fi
16485
16486echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16487_ACEOF
16488
16489
16490{
16491  echo "cat >conf$$subs.awk <<_ACEOF" &&
16492  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16493  echo "_ACEOF"
16494} >conf$$subs.sh ||
16495  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16496ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16497ac_delim='%!_!# '
16498for ac_last_try in false false false false false :; do
16499  . ./conf$$subs.sh ||
16500    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16501
16502  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16503  if test $ac_delim_n = $ac_delim_num; then
16504    break
16505  elif $ac_last_try; then
16506    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16507  else
16508    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16509  fi
16510done
16511rm -f conf$$subs.sh
16512
16513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16515_ACEOF
16516sed -n '
16517h
16518s/^/S["/; s/!.*/"]=/
16519p
16520g
16521s/^[^!]*!//
16522:repl
16523t repl
16524s/'"$ac_delim"'$//
16525t delim
16526:nl
16527h
16528s/\(.\{148\}\)..*/\1/
16529t more1
16530s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16531p
16532n
16533b repl
16534:more1
16535s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16536p
16537g
16538s/.\{148\}//
16539t nl
16540:delim
16541h
16542s/\(.\{148\}\)..*/\1/
16543t more2
16544s/["\\]/\\&/g; s/^/"/; s/$/"/
16545p
16546b
16547:more2
16548s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16549p
16550g
16551s/.\{148\}//
16552t delim
16553' <conf$$subs.awk | sed '
16554/^[^""]/{
16555  N
16556  s/\n//
16557}
16558' >>$CONFIG_STATUS || ac_write_fail=1
16559rm -f conf$$subs.awk
16560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16561_ACAWK
16562cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16563  for (key in S) S_is_set[key] = 1
16564  FS = ""
16565
16566}
16567{
16568  line = $ 0
16569  nfields = split(line, field, "@")
16570  substed = 0
16571  len = length(field[1])
16572  for (i = 2; i < nfields; i++) {
16573    key = field[i]
16574    keylen = length(key)
16575    if (S_is_set[key]) {
16576      value = S[key]
16577      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16578      len += length(value) + length(field[++i])
16579      substed = 1
16580    } else
16581      len += 1 + keylen
16582  }
16583
16584  print line
16585}
16586
16587_ACAWK
16588_ACEOF
16589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16590if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16591  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16592else
16593  cat
16594fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16595  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16596_ACEOF
16597
16598# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16599# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16600# trailing colons and then remove the whole line if VPATH becomes empty
16601# (actually we leave an empty line to preserve line numbers).
16602if test "x$srcdir" = x.; then
16603  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16604h
16605s///
16606s/^/:/
16607s/[	 ]*$/:/
16608s/:\$(srcdir):/:/g
16609s/:\${srcdir}:/:/g
16610s/:@srcdir@:/:/g
16611s/^:*//
16612s/:*$//
16613x
16614s/\(=[	 ]*\).*/\1/
16615G
16616s/\n//
16617s/^[^=]*=[	 ]*$//
16618}'
16619fi
16620
16621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16622fi # test -n "$CONFIG_FILES"
16623
16624# Set up the scripts for CONFIG_HEADERS section.
16625# No need to generate them if there are no CONFIG_HEADERS.
16626# This happens for instance with `./config.status Makefile'.
16627if test -n "$CONFIG_HEADERS"; then
16628cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16629BEGIN {
16630_ACEOF
16631
16632# Transform confdefs.h into an awk script `defines.awk', embedded as
16633# here-document in config.status, that substitutes the proper values into
16634# config.h.in to produce config.h.
16635
16636# Create a delimiter string that does not exist in confdefs.h, to ease
16637# handling of long lines.
16638ac_delim='%!_!# '
16639for ac_last_try in false false :; do
16640  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16641  if test -z "$ac_tt"; then
16642    break
16643  elif $ac_last_try; then
16644    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16645  else
16646    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16647  fi
16648done
16649
16650# For the awk script, D is an array of macro values keyed by name,
16651# likewise P contains macro parameters if any.  Preserve backslash
16652# newline sequences.
16653
16654ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16655sed -n '
16656s/.\{148\}/&'"$ac_delim"'/g
16657t rset
16658:rset
16659s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16660t def
16661d
16662:def
16663s/\\$//
16664t bsnl
16665s/["\\]/\\&/g
16666s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16667D["\1"]=" \3"/p
16668s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16669d
16670:bsnl
16671s/["\\]/\\&/g
16672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16673D["\1"]=" \3\\\\\\n"\\/p
16674t cont
16675s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16676t cont
16677d
16678:cont
16679n
16680s/.\{148\}/&'"$ac_delim"'/g
16681t clear
16682:clear
16683s/\\$//
16684t bsnlc
16685s/["\\]/\\&/g; s/^/"/; s/$/"/p
16686d
16687:bsnlc
16688s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16689b cont
16690' <confdefs.h | sed '
16691s/'"$ac_delim"'/"\\\
16692"/g' >>$CONFIG_STATUS || ac_write_fail=1
16693
16694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16695  for (key in D) D_is_set[key] = 1
16696  FS = ""
16697}
16698/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16699  line = \$ 0
16700  split(line, arg, " ")
16701  if (arg[1] == "#") {
16702    defundef = arg[2]
16703    mac1 = arg[3]
16704  } else {
16705    defundef = substr(arg[1], 2)
16706    mac1 = arg[2]
16707  }
16708  split(mac1, mac2, "(") #)
16709  macro = mac2[1]
16710  prefix = substr(line, 1, index(line, defundef) - 1)
16711  if (D_is_set[macro]) {
16712    # Preserve the white space surrounding the "#".
16713    print prefix "define", macro P[macro] D[macro]
16714    next
16715  } else {
16716    # Replace #undef with comments.  This is necessary, for example,
16717    # in the case of _POSIX_SOURCE, which is predefined and required
16718    # on some systems where configure will not decide to define it.
16719    if (defundef == "undef") {
16720      print "/*", prefix defundef, macro, "*/"
16721      next
16722    }
16723  }
16724}
16725{ print }
16726_ACAWK
16727_ACEOF
16728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16729  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16730fi # test -n "$CONFIG_HEADERS"
16731
16732
16733eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16734shift
16735for ac_tag
16736do
16737  case $ac_tag in
16738  :[FHLC]) ac_mode=$ac_tag; continue;;
16739  esac
16740  case $ac_mode$ac_tag in
16741  :[FHL]*:*);;
16742  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16743  :[FH]-) ac_tag=-:-;;
16744  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16745  esac
16746  ac_save_IFS=$IFS
16747  IFS=:
16748  set x $ac_tag
16749  IFS=$ac_save_IFS
16750  shift
16751  ac_file=$1
16752  shift
16753
16754  case $ac_mode in
16755  :L) ac_source=$1;;
16756  :[FH])
16757    ac_file_inputs=
16758    for ac_f
16759    do
16760      case $ac_f in
16761      -) ac_f="$ac_tmp/stdin";;
16762      *) # Look for the file first in the build tree, then in the source tree
16763	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16764	 # because $ac_f cannot contain `:'.
16765	 test -f "$ac_f" ||
16766	   case $ac_f in
16767	   [\\/$]*) false;;
16768	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16769	   esac ||
16770	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16771      esac
16772      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16773      as_fn_append ac_file_inputs " '$ac_f'"
16774    done
16775
16776    # Let's still pretend it is `configure' which instantiates (i.e., don't
16777    # use $as_me), people would be surprised to read:
16778    #    /* config.h.  Generated by config.status.  */
16779    configure_input='Generated from '`
16780	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16781	`' by configure.'
16782    if test x"$ac_file" != x-; then
16783      configure_input="$ac_file.  $configure_input"
16784      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16785$as_echo "$as_me: creating $ac_file" >&6;}
16786    fi
16787    # Neutralize special characters interpreted by sed in replacement strings.
16788    case $configure_input in #(
16789    *\&* | *\|* | *\\* )
16790       ac_sed_conf_input=`$as_echo "$configure_input" |
16791       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16792    *) ac_sed_conf_input=$configure_input;;
16793    esac
16794
16795    case $ac_tag in
16796    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16797      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16798    esac
16799    ;;
16800  esac
16801
16802  ac_dir=`$as_dirname -- "$ac_file" ||
16803$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16804	 X"$ac_file" : 'X\(//\)[^/]' \| \
16805	 X"$ac_file" : 'X\(//\)$' \| \
16806	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16807$as_echo X"$ac_file" |
16808    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16809	    s//\1/
16810	    q
16811	  }
16812	  /^X\(\/\/\)[^/].*/{
16813	    s//\1/
16814	    q
16815	  }
16816	  /^X\(\/\/\)$/{
16817	    s//\1/
16818	    q
16819	  }
16820	  /^X\(\/\).*/{
16821	    s//\1/
16822	    q
16823	  }
16824	  s/.*/./; q'`
16825  as_dir="$ac_dir"; as_fn_mkdir_p
16826  ac_builddir=.
16827
16828case "$ac_dir" in
16829.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16830*)
16831  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16832  # A ".." for each directory in $ac_dir_suffix.
16833  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16834  case $ac_top_builddir_sub in
16835  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16836  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16837  esac ;;
16838esac
16839ac_abs_top_builddir=$ac_pwd
16840ac_abs_builddir=$ac_pwd$ac_dir_suffix
16841# for backward compatibility:
16842ac_top_builddir=$ac_top_build_prefix
16843
16844case $srcdir in
16845  .)  # We are building in place.
16846    ac_srcdir=.
16847    ac_top_srcdir=$ac_top_builddir_sub
16848    ac_abs_top_srcdir=$ac_pwd ;;
16849  [\\/]* | ?:[\\/]* )  # Absolute name.
16850    ac_srcdir=$srcdir$ac_dir_suffix;
16851    ac_top_srcdir=$srcdir
16852    ac_abs_top_srcdir=$srcdir ;;
16853  *) # Relative name.
16854    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16855    ac_top_srcdir=$ac_top_build_prefix$srcdir
16856    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16857esac
16858ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16859
16860
16861  case $ac_mode in
16862  :F)
16863  #
16864  # CONFIG_FILE
16865  #
16866
16867  case $INSTALL in
16868  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16869  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16870  esac
16871  ac_MKDIR_P=$MKDIR_P
16872  case $MKDIR_P in
16873  [\\/$]* | ?:[\\/]* ) ;;
16874  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16875  esac
16876_ACEOF
16877
16878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16879# If the template does not know about datarootdir, expand it.
16880# FIXME: This hack should be removed a few years after 2.60.
16881ac_datarootdir_hack=; ac_datarootdir_seen=
16882ac_sed_dataroot='
16883/datarootdir/ {
16884  p
16885  q
16886}
16887/@datadir@/p
16888/@docdir@/p
16889/@infodir@/p
16890/@localedir@/p
16891/@mandir@/p'
16892case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16893*datarootdir*) ac_datarootdir_seen=yes;;
16894*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16896$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16897_ACEOF
16898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899  ac_datarootdir_hack='
16900  s&@datadir@&$datadir&g
16901  s&@docdir@&$docdir&g
16902  s&@infodir@&$infodir&g
16903  s&@localedir@&$localedir&g
16904  s&@mandir@&$mandir&g
16905  s&\\\${datarootdir}&$datarootdir&g' ;;
16906esac
16907_ACEOF
16908
16909# Neutralize VPATH when `$srcdir' = `.'.
16910# Shell code in configure.ac might set extrasub.
16911# FIXME: do we really want to maintain this feature?
16912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16913ac_sed_extra="$ac_vpsub
16914$extrasub
16915_ACEOF
16916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917:t
16918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16919s|@configure_input@|$ac_sed_conf_input|;t t
16920s&@top_builddir@&$ac_top_builddir_sub&;t t
16921s&@top_build_prefix@&$ac_top_build_prefix&;t t
16922s&@srcdir@&$ac_srcdir&;t t
16923s&@abs_srcdir@&$ac_abs_srcdir&;t t
16924s&@top_srcdir@&$ac_top_srcdir&;t t
16925s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16926s&@builddir@&$ac_builddir&;t t
16927s&@abs_builddir@&$ac_abs_builddir&;t t
16928s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16929s&@INSTALL@&$ac_INSTALL&;t t
16930s&@MKDIR_P@&$ac_MKDIR_P&;t t
16931$ac_datarootdir_hack
16932"
16933eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16934  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16935
16936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16937  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16938  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16939      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16940  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16941which seems to be undefined.  Please make sure it is defined" >&5
16942$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16943which seems to be undefined.  Please make sure it is defined" >&2;}
16944
16945  rm -f "$ac_tmp/stdin"
16946  case $ac_file in
16947  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16948  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16949  esac \
16950  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16951 ;;
16952  :H)
16953  #
16954  # CONFIG_HEADER
16955  #
16956  if test x"$ac_file" != x-; then
16957    {
16958      $as_echo "/* $configure_input  */" \
16959      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16960    } >"$ac_tmp/config.h" \
16961      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16962    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16963      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16964$as_echo "$as_me: $ac_file is unchanged" >&6;}
16965    else
16966      rm -f "$ac_file"
16967      mv "$ac_tmp/config.h" "$ac_file" \
16968	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16969    fi
16970  else
16971    $as_echo "/* $configure_input  */" \
16972      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16973      || as_fn_error $? "could not create -" "$LINENO" 5
16974  fi
16975# Compute "$ac_file"'s index in $config_headers.
16976_am_arg="$ac_file"
16977_am_stamp_count=1
16978for _am_header in $config_headers :; do
16979  case $_am_header in
16980    $_am_arg | $_am_arg:* )
16981      break ;;
16982    * )
16983      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16984  esac
16985done
16986echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16987$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16989	 X"$_am_arg" : 'X\(//\)$' \| \
16990	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16991$as_echo X"$_am_arg" |
16992    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16993	    s//\1/
16994	    q
16995	  }
16996	  /^X\(\/\/\)[^/].*/{
16997	    s//\1/
16998	    q
16999	  }
17000	  /^X\(\/\/\)$/{
17001	    s//\1/
17002	    q
17003	  }
17004	  /^X\(\/\).*/{
17005	    s//\1/
17006	    q
17007	  }
17008	  s/.*/./; q'`/stamp-h$_am_stamp_count
17009 ;;
17010
17011  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17012$as_echo "$as_me: executing $ac_file commands" >&6;}
17013 ;;
17014  esac
17015
17016
17017  case $ac_file$ac_mode in
17018    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17019  # Older Autoconf quotes --file arguments for eval, but not when files
17020  # are listed without --file.  Let's play safe and only enable the eval
17021  # if we detect the quoting.
17022  # TODO: see whether this extra hack can be removed once we start
17023  # requiring Autoconf 2.70 or later.
17024  case $CONFIG_FILES in #(
17025  *\'*) :
17026    eval set x "$CONFIG_FILES" ;; #(
17027  *) :
17028    set x $CONFIG_FILES ;; #(
17029  *) :
17030     ;;
17031esac
17032  shift
17033  # Used to flag and report bootstrapping failures.
17034  am_rc=0
17035  for am_mf
17036  do
17037    # Strip MF so we end up with the name of the file.
17038    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17039    # Check whether this is an Automake generated Makefile which includes
17040    # dependency-tracking related rules and includes.
17041    # Grep'ing the whole file directly is not great: AIX grep has a line
17042    # limit of 2048, but all sed's we know have understand at least 4000.
17043    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17044      || continue
17045    am_dirpart=`$as_dirname -- "$am_mf" ||
17046$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17047	 X"$am_mf" : 'X\(//\)[^/]' \| \
17048	 X"$am_mf" : 'X\(//\)$' \| \
17049	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17050$as_echo X"$am_mf" |
17051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17052	    s//\1/
17053	    q
17054	  }
17055	  /^X\(\/\/\)[^/].*/{
17056	    s//\1/
17057	    q
17058	  }
17059	  /^X\(\/\/\)$/{
17060	    s//\1/
17061	    q
17062	  }
17063	  /^X\(\/\).*/{
17064	    s//\1/
17065	    q
17066	  }
17067	  s/.*/./; q'`
17068    am_filepart=`$as_basename -- "$am_mf" ||
17069$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17070	 X"$am_mf" : 'X\(//\)$' \| \
17071	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17072$as_echo X/"$am_mf" |
17073    sed '/^.*\/\([^/][^/]*\)\/*$/{
17074	    s//\1/
17075	    q
17076	  }
17077	  /^X\/\(\/\/\)$/{
17078	    s//\1/
17079	    q
17080	  }
17081	  /^X\/\(\/\).*/{
17082	    s//\1/
17083	    q
17084	  }
17085	  s/.*/./; q'`
17086    { echo "$as_me:$LINENO: cd "$am_dirpart" \
17087      && sed -e '/# am--include-marker/d' "$am_filepart" \
17088        | $MAKE -f - am--depfiles" >&5
17089   (cd "$am_dirpart" \
17090      && sed -e '/# am--include-marker/d' "$am_filepart" \
17091        | $MAKE -f - am--depfiles) >&5 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } || am_rc=$?
17095  done
17096  if test $am_rc -ne 0; then
17097    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17099as_fn_error $? "Something went wrong bootstrapping makefile fragments
17100    for automatic dependency tracking.  Try re-running configure with the
17101    '--disable-dependency-tracking' option to at least be able to build
17102    the package (albeit without support for automatic dependency tracking).
17103See \`config.log' for more details" "$LINENO" 5; }
17104  fi
17105  { am_dirpart=; unset am_dirpart;}
17106  { am_filepart=; unset am_filepart;}
17107  { am_mf=; unset am_mf;}
17108  { am_rc=; unset am_rc;}
17109  rm -f conftest-deps.mk
17110}
17111 ;;
17112    "libtool":C)
17113
17114    # See if we are running on zsh, and set the options that allow our
17115    # commands through without removal of \ escapes.
17116    if test -n "${ZSH_VERSION+set}"; then
17117      setopt NO_GLOB_SUBST
17118    fi
17119
17120    cfgfile=${ofile}T
17121    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17122    $RM "$cfgfile"
17123
17124    cat <<_LT_EOF >> "$cfgfile"
17125#! $SHELL
17126# Generated automatically by $as_me ($PACKAGE) $VERSION
17127# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17128# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17129
17130# Provide generalized library-building support services.
17131# Written by Gordon Matzigkeit, 1996
17132
17133# Copyright (C) 2014 Free Software Foundation, Inc.
17134# This is free software; see the source for copying conditions.  There is NO
17135# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17136
17137# GNU Libtool is free software; you can redistribute it and/or modify
17138# it under the terms of the GNU General Public License as published by
17139# the Free Software Foundation; either version 2 of of the License, or
17140# (at your option) any later version.
17141#
17142# As a special exception to the GNU General Public License, if you
17143# distribute this file as part of a program or library that is built
17144# using GNU Libtool, you may include this file under the  same
17145# distribution terms that you use for the rest of that program.
17146#
17147# GNU Libtool is distributed in the hope that it will be useful, but
17148# WITHOUT ANY WARRANTY; without even the implied warranty of
17149# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17150# GNU General Public License for more details.
17151#
17152# You should have received a copy of the GNU General Public License
17153# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17154
17155
17156# The names of the tagged configurations supported by this script.
17157available_tags=''
17158
17159# Configured defaults for sys_lib_dlsearch_path munging.
17160: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17161
17162# ### BEGIN LIBTOOL CONFIG
17163
17164# Which release of libtool.m4 was used?
17165macro_version=$macro_version
17166macro_revision=$macro_revision
17167
17168# Whether or not to build shared libraries.
17169build_libtool_libs=$enable_shared
17170
17171# Whether or not to build static libraries.
17172build_old_libs=$enable_static
17173
17174# What type of objects to build.
17175pic_mode=$pic_mode
17176
17177# Whether or not to optimize for fast installation.
17178fast_install=$enable_fast_install
17179
17180# Shared archive member basename,for filename based shared library versioning on AIX.
17181shared_archive_member_spec=$shared_archive_member_spec
17182
17183# Shell to use when invoking shell scripts.
17184SHELL=$lt_SHELL
17185
17186# An echo program that protects backslashes.
17187ECHO=$lt_ECHO
17188
17189# The PATH separator for the build system.
17190PATH_SEPARATOR=$lt_PATH_SEPARATOR
17191
17192# The host system.
17193host_alias=$host_alias
17194host=$host
17195host_os=$host_os
17196
17197# The build system.
17198build_alias=$build_alias
17199build=$build
17200build_os=$build_os
17201
17202# A sed program that does not truncate output.
17203SED=$lt_SED
17204
17205# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17206Xsed="\$SED -e 1s/^X//"
17207
17208# A grep program that handles long lines.
17209GREP=$lt_GREP
17210
17211# An ERE matcher.
17212EGREP=$lt_EGREP
17213
17214# A literal string matcher.
17215FGREP=$lt_FGREP
17216
17217# A BSD- or MS-compatible name lister.
17218NM=$lt_NM
17219
17220# Whether we need soft or hard links.
17221LN_S=$lt_LN_S
17222
17223# What is the maximum length of a command?
17224max_cmd_len=$max_cmd_len
17225
17226# Object file suffix (normally "o").
17227objext=$ac_objext
17228
17229# Executable file suffix (normally "").
17230exeext=$exeext
17231
17232# whether the shell understands "unset".
17233lt_unset=$lt_unset
17234
17235# turn spaces into newlines.
17236SP2NL=$lt_lt_SP2NL
17237
17238# turn newlines into spaces.
17239NL2SP=$lt_lt_NL2SP
17240
17241# convert \$build file names to \$host format.
17242to_host_file_cmd=$lt_cv_to_host_file_cmd
17243
17244# convert \$build files to toolchain format.
17245to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17246
17247# An object symbol dumper.
17248OBJDUMP=$lt_OBJDUMP
17249
17250# Method to check whether dependent libraries are shared objects.
17251deplibs_check_method=$lt_deplibs_check_method
17252
17253# Command to use when deplibs_check_method = "file_magic".
17254file_magic_cmd=$lt_file_magic_cmd
17255
17256# How to find potential files when deplibs_check_method = "file_magic".
17257file_magic_glob=$lt_file_magic_glob
17258
17259# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17260want_nocaseglob=$lt_want_nocaseglob
17261
17262# DLL creation program.
17263DLLTOOL=$lt_DLLTOOL
17264
17265# Command to associate shared and link libraries.
17266sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17267
17268# The archiver.
17269AR=$lt_AR
17270
17271# Flags to create an archive.
17272AR_FLAGS=$lt_AR_FLAGS
17273
17274# How to feed a file listing to the archiver.
17275archiver_list_spec=$lt_archiver_list_spec
17276
17277# A symbol stripping program.
17278STRIP=$lt_STRIP
17279
17280# Commands used to install an old-style archive.
17281RANLIB=$lt_RANLIB
17282old_postinstall_cmds=$lt_old_postinstall_cmds
17283old_postuninstall_cmds=$lt_old_postuninstall_cmds
17284
17285# Whether to use a lock for old archive extraction.
17286lock_old_archive_extraction=$lock_old_archive_extraction
17287
17288# A C compiler.
17289LTCC=$lt_CC
17290
17291# LTCC compiler flags.
17292LTCFLAGS=$lt_CFLAGS
17293
17294# Take the output of nm and produce a listing of raw symbols and C names.
17295global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17296
17297# Transform the output of nm in a proper C declaration.
17298global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17299
17300# Transform the output of nm into a list of symbols to manually relocate.
17301global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17302
17303# Transform the output of nm in a C name address pair.
17304global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17305
17306# Transform the output of nm in a C name address pair when lib prefix is needed.
17307global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17308
17309# The name lister interface.
17310nm_interface=$lt_lt_cv_nm_interface
17311
17312# Specify filename containing input files for \$NM.
17313nm_file_list_spec=$lt_nm_file_list_spec
17314
17315# The root where to search for dependent libraries,and where our libraries should be installed.
17316lt_sysroot=$lt_sysroot
17317
17318# Command to truncate a binary pipe.
17319lt_truncate_bin=$lt_lt_cv_truncate_bin
17320
17321# The name of the directory that contains temporary libtool files.
17322objdir=$objdir
17323
17324# Used to examine libraries when file_magic_cmd begins with "file".
17325MAGIC_CMD=$MAGIC_CMD
17326
17327# Must we lock files when doing compilation?
17328need_locks=$lt_need_locks
17329
17330# Manifest tool.
17331MANIFEST_TOOL=$lt_MANIFEST_TOOL
17332
17333# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17334DSYMUTIL=$lt_DSYMUTIL
17335
17336# Tool to change global to local symbols on Mac OS X.
17337NMEDIT=$lt_NMEDIT
17338
17339# Tool to manipulate fat objects and archives on Mac OS X.
17340LIPO=$lt_LIPO
17341
17342# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17343OTOOL=$lt_OTOOL
17344
17345# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17346OTOOL64=$lt_OTOOL64
17347
17348# Old archive suffix (normally "a").
17349libext=$libext
17350
17351# Shared library suffix (normally ".so").
17352shrext_cmds=$lt_shrext_cmds
17353
17354# The commands to extract the exported symbol list from a shared archive.
17355extract_expsyms_cmds=$lt_extract_expsyms_cmds
17356
17357# Variables whose values should be saved in libtool wrapper scripts and
17358# restored at link time.
17359variables_saved_for_relink=$lt_variables_saved_for_relink
17360
17361# Do we need the "lib" prefix for modules?
17362need_lib_prefix=$need_lib_prefix
17363
17364# Do we need a version for libraries?
17365need_version=$need_version
17366
17367# Library versioning type.
17368version_type=$version_type
17369
17370# Shared library runtime path variable.
17371runpath_var=$runpath_var
17372
17373# Shared library path variable.
17374shlibpath_var=$shlibpath_var
17375
17376# Is shlibpath searched before the hard-coded library search path?
17377shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17378
17379# Format of library name prefix.
17380libname_spec=$lt_libname_spec
17381
17382# List of archive names.  First name is the real one, the rest are links.
17383# The last name is the one that the linker finds with -lNAME
17384library_names_spec=$lt_library_names_spec
17385
17386# The coded name of the library, if different from the real name.
17387soname_spec=$lt_soname_spec
17388
17389# Permission mode override for installation of shared libraries.
17390install_override_mode=$lt_install_override_mode
17391
17392# Command to use after installation of a shared archive.
17393postinstall_cmds=$lt_postinstall_cmds
17394
17395# Command to use after uninstallation of a shared archive.
17396postuninstall_cmds=$lt_postuninstall_cmds
17397
17398# Commands used to finish a libtool library installation in a directory.
17399finish_cmds=$lt_finish_cmds
17400
17401# As "finish_cmds", except a single script fragment to be evaled but
17402# not shown.
17403finish_eval=$lt_finish_eval
17404
17405# Whether we should hardcode library paths into libraries.
17406hardcode_into_libs=$hardcode_into_libs
17407
17408# Compile-time system search path for libraries.
17409sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17410
17411# Detected run-time system search path for libraries.
17412sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17413
17414# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17415configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17416
17417# Whether dlopen is supported.
17418dlopen_support=$enable_dlopen
17419
17420# Whether dlopen of programs is supported.
17421dlopen_self=$enable_dlopen_self
17422
17423# Whether dlopen of statically linked programs is supported.
17424dlopen_self_static=$enable_dlopen_self_static
17425
17426# Commands to strip libraries.
17427old_striplib=$lt_old_striplib
17428striplib=$lt_striplib
17429
17430
17431# The linker used to build libraries.
17432LD=$lt_LD
17433
17434# How to create reloadable object files.
17435reload_flag=$lt_reload_flag
17436reload_cmds=$lt_reload_cmds
17437
17438# Commands used to build an old-style archive.
17439old_archive_cmds=$lt_old_archive_cmds
17440
17441# A language specific compiler.
17442CC=$lt_compiler
17443
17444# Is the compiler the GNU compiler?
17445with_gcc=$GCC
17446
17447# Compiler flag to turn off builtin functions.
17448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17449
17450# Additional compiler flags for building library objects.
17451pic_flag=$lt_lt_prog_compiler_pic
17452
17453# How to pass a linker flag through the compiler.
17454wl=$lt_lt_prog_compiler_wl
17455
17456# Compiler flag to prevent dynamic linking.
17457link_static_flag=$lt_lt_prog_compiler_static
17458
17459# Does compiler simultaneously support -c and -o options?
17460compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17461
17462# Whether or not to add -lc for building shared libraries.
17463build_libtool_need_lc=$archive_cmds_need_lc
17464
17465# Whether or not to disallow shared libs when runtime libs are static.
17466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17467
17468# Compiler flag to allow reflexive dlopens.
17469export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17470
17471# Compiler flag to generate shared objects directly from archives.
17472whole_archive_flag_spec=$lt_whole_archive_flag_spec
17473
17474# Whether the compiler copes with passing no objects directly.
17475compiler_needs_object=$lt_compiler_needs_object
17476
17477# Create an old-style archive from a shared archive.
17478old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17479
17480# Create a temporary old-style archive to link instead of a shared archive.
17481old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17482
17483# Commands used to build a shared archive.
17484archive_cmds=$lt_archive_cmds
17485archive_expsym_cmds=$lt_archive_expsym_cmds
17486
17487# Commands used to build a loadable module if different from building
17488# a shared archive.
17489module_cmds=$lt_module_cmds
17490module_expsym_cmds=$lt_module_expsym_cmds
17491
17492# Whether we are building with GNU ld or not.
17493with_gnu_ld=$lt_with_gnu_ld
17494
17495# Flag that allows shared libraries with undefined symbols to be built.
17496allow_undefined_flag=$lt_allow_undefined_flag
17497
17498# Flag that enforces no undefined symbols.
17499no_undefined_flag=$lt_no_undefined_flag
17500
17501# Flag to hardcode \$libdir into a binary during linking.
17502# This must work even if \$libdir does not exist
17503hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17504
17505# Whether we need a single "-rpath" flag with a separated argument.
17506hardcode_libdir_separator=$lt_hardcode_libdir_separator
17507
17508# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17509# DIR into the resulting binary.
17510hardcode_direct=$hardcode_direct
17511
17512# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17513# DIR into the resulting binary and the resulting library dependency is
17514# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17515# library is relocated.
17516hardcode_direct_absolute=$hardcode_direct_absolute
17517
17518# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17519# into the resulting binary.
17520hardcode_minus_L=$hardcode_minus_L
17521
17522# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17523# into the resulting binary.
17524hardcode_shlibpath_var=$hardcode_shlibpath_var
17525
17526# Set to "yes" if building a shared library automatically hardcodes DIR
17527# into the library and all subsequent libraries and executables linked
17528# against it.
17529hardcode_automatic=$hardcode_automatic
17530
17531# Set to yes if linker adds runtime paths of dependent libraries
17532# to runtime path list.
17533inherit_rpath=$inherit_rpath
17534
17535# Whether libtool must link a program against all its dependency libraries.
17536link_all_deplibs=$link_all_deplibs
17537
17538# Set to "yes" if exported symbols are required.
17539always_export_symbols=$always_export_symbols
17540
17541# The commands to list exported symbols.
17542export_symbols_cmds=$lt_export_symbols_cmds
17543
17544# Symbols that should not be listed in the preloaded symbols.
17545exclude_expsyms=$lt_exclude_expsyms
17546
17547# Symbols that must always be exported.
17548include_expsyms=$lt_include_expsyms
17549
17550# Commands necessary for linking programs (against libraries) with templates.
17551prelink_cmds=$lt_prelink_cmds
17552
17553# Commands necessary for finishing linking programs.
17554postlink_cmds=$lt_postlink_cmds
17555
17556# Specify filename containing input files.
17557file_list_spec=$lt_file_list_spec
17558
17559# How to hardcode a shared library path into an executable.
17560hardcode_action=$hardcode_action
17561
17562# ### END LIBTOOL CONFIG
17563
17564_LT_EOF
17565
17566    cat <<'_LT_EOF' >> "$cfgfile"
17567
17568# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17569
17570# func_munge_path_list VARIABLE PATH
17571# -----------------------------------
17572# VARIABLE is name of variable containing _space_ separated list of
17573# directories to be munged by the contents of PATH, which is string
17574# having a format:
17575# "DIR[:DIR]:"
17576#       string "DIR[ DIR]" will be prepended to VARIABLE
17577# ":DIR[:DIR]"
17578#       string "DIR[ DIR]" will be appended to VARIABLE
17579# "DIRP[:DIRP]::[DIRA:]DIRA"
17580#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17581#       "DIRA[ DIRA]" will be appended to VARIABLE
17582# "DIR[:DIR]"
17583#       VARIABLE will be replaced by "DIR[ DIR]"
17584func_munge_path_list ()
17585{
17586    case x$2 in
17587    x)
17588        ;;
17589    *:)
17590        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17591        ;;
17592    x:*)
17593        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17594        ;;
17595    *::*)
17596        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17597        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17598        ;;
17599    *)
17600        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17601        ;;
17602    esac
17603}
17604
17605
17606# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17607func_cc_basename ()
17608{
17609    for cc_temp in $*""; do
17610      case $cc_temp in
17611        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17612        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17613        \-*) ;;
17614        *) break;;
17615      esac
17616    done
17617    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17618}
17619
17620
17621# ### END FUNCTIONS SHARED WITH CONFIGURE
17622
17623_LT_EOF
17624
17625  case $host_os in
17626  aix3*)
17627    cat <<\_LT_EOF >> "$cfgfile"
17628# AIX sometimes has problems with the GCC collect2 program.  For some
17629# reason, if we set the COLLECT_NAMES environment variable, the problems
17630# vanish in a puff of smoke.
17631if test set != "${COLLECT_NAMES+set}"; then
17632  COLLECT_NAMES=
17633  export COLLECT_NAMES
17634fi
17635_LT_EOF
17636    ;;
17637  esac
17638
17639
17640ltmain=$ac_aux_dir/ltmain.sh
17641
17642
17643  # We use sed instead of cat because bash on DJGPP gets confused if
17644  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17645  # text mode, it properly converts lines to CR/LF.  This bash problem
17646  # is reportedly fixed, but why not run on old versions too?
17647  sed '$q' "$ltmain" >> "$cfgfile" \
17648     || (rm -f "$cfgfile"; exit 1)
17649
17650   mv -f "$cfgfile" "$ofile" ||
17651    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17652  chmod +x "$ofile"
17653
17654 ;;
17655
17656  esac
17657done # for ac_tag
17658
17659
17660as_fn_exit 0
17661_ACEOF
17662ac_clean_files=$ac_clean_files_save
17663
17664test $ac_write_fail = 0 ||
17665  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17666
17667
17668# configure is writing to config.log, and then calls config.status.
17669# config.status does its own redirection, appending to config.log.
17670# Unfortunately, on DOS this fails, as config.log is still kept open
17671# by configure, so config.status won't be able to write to it; its
17672# output is simply discarded.  So we exec the FD to /dev/null,
17673# effectively closing config.log, so it can be properly (re)opened and
17674# appended to by config.status.  When coming back to configure, we
17675# need to make the FD available again.
17676if test "$no_create" != yes; then
17677  ac_cs_success=:
17678  ac_config_status_args=
17679  test "$silent" = yes &&
17680    ac_config_status_args="$ac_config_status_args --quiet"
17681  exec 5>/dev/null
17682  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17683  exec 5>>config.log
17684  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17685  # would make configure fail if this is the last instruction.
17686  $ac_cs_success || as_fn_exit 1
17687fi
17688if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17689  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17690$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17691fi
17692
17693
17694
17695