xref: /libtiff-4.0.7/configure (revision 429b3fdc)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.3.
4#
5# Report bugs to <[email protected]>.
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 [email protected] and
278$0: [email protected] about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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='LibTIFF Software'
592PACKAGE_TARNAME='tiff'
593PACKAGE_VERSION='4.0.3'
594PACKAGE_STRING='LibTIFF Software 4.0.3'
595PACKAGE_BUGREPORT='[email protected]'
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
637LIBDIR
638WIN32_IO_FALSE
639WIN32_IO_TRUE
640HAVE_OPENGL_FALSE
641HAVE_OPENGL_TRUE
642GLUT_LIBS
643GLUT_CFLAGS
644GLU_LIBS
645GLU_CFLAGS
646GL_LIBS
647GL_CFLAGS
648PTHREAD_CFLAGS
649PTHREAD_LIBS
650PTHREAD_CC
651ax_pthread_config
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657HAVE_CXX_FALSE
658HAVE_CXX_TRUE
659LIBTIFF_DOCDIR
660HAVE_RPATH_FALSE
661HAVE_RPATH_TRUE
662LIBOBJS
663tiff_libs_private
664CXXCPP
665am__fastdepCXX_FALSE
666am__fastdepCXX_TRUE
667CXXDEPMODE
668ac_ct_CXX
669CXXFLAGS
670CXX
671CPP
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678RANLIB
679ac_ct_AR
680AR
681NM
682ac_ct_DUMPBIN
683DUMPBIN
684LD
685FGREP
686EGREP
687GREP
688SED
689LIBTOOL
690OBJDUMP
691DLLTOOL
692AS
693HAVE_LD_VERSION_SCRIPT_FALSE
694HAVE_LD_VERSION_SCRIPT_TRUE
695LN_S
696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
699am__nodep
700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__quote
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713LIBTIFF_RELEASE_DATE
714LIBTIFF_VERSION_INFO
715LIBTIFF_VERSION
716LIBTIFF_ALPHA_VERSION
717LIBTIFF_MICRO_VERSION
718LIBTIFF_MINOR_VERSION
719LIBTIFF_MAJOR_VERSION
720MAINT
721MAINTAINER_MODE_FALSE
722MAINTAINER_MODE_TRUE
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
796ac_subst_files=''
797ac_user_opts='
798enable_option_checking
799enable_silent_rules
800enable_maintainer_mode
801enable_dependency_tracking
802enable_ld_version_script
803enable_shared
804enable_static
805with_pic
806enable_fast_install
807with_aix_soname
808with_gnu_ld
809with_sysroot
810enable_libtool_lock
811enable_rpath
812enable_largefile
813with_docdir
814enable_ccitt
815enable_packbits
816enable_lzw
817enable_thunder
818enable_next
819enable_logluv
820enable_mdi
821enable_zlib
822with_zlib_include_dir
823with_zlib_lib_dir
824enable_pixarlog
825enable_jpeg
826with_jpeg_include_dir
827with_jpeg_lib_dir
828enable_old_jpeg
829enable_jbig
830with_jbig_include_dir
831with_jbig_lib_dir
832enable_lzma
833with_lzma_include_dir
834with_lzma_lib_dir
835enable_jpeg12
836with_jpeg12_include_dir
837with_jpeg12_lib
838enable_cxx
839with_x
840enable_strip_chopping
841with_default_strip_size
842enable_defer_strile_load
843enable_chunky_strip_read
844enable_extrasample_as_alpha
845enable_check_ycbcr_subsampling
846'
847      ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CPP
856CXX
857CXXFLAGS
858CCC
859CXXCPP
860XMKMF'
861
862
863# Initialize some variables set by options.
864ac_init_help=
865ac_init_version=false
866ac_unrecognized_opts=
867ac_unrecognized_sep=
868# The variables have the same names as the options, with
869# dashes changed to underlines.
870cache_file=/dev/null
871exec_prefix=NONE
872no_create=
873no_recursion=
874prefix=NONE
875program_prefix=NONE
876program_suffix=NONE
877program_transform_name=s,x,x,
878silent=
879site=
880srcdir=
881verbose=
882x_includes=NONE
883x_libraries=NONE
884
885# Installation directory options.
886# These are left unexpanded so users can "make install exec_prefix=/foo"
887# and all the variables that are supposed to be based on exec_prefix
888# by default will actually change.
889# Use braces instead of parens because sh, perl, etc. also accept them.
890# (The list follows the same order as the GNU Coding Standards.)
891bindir='${exec_prefix}/bin'
892sbindir='${exec_prefix}/sbin'
893libexecdir='${exec_prefix}/libexec'
894datarootdir='${prefix}/share'
895datadir='${datarootdir}'
896sysconfdir='${prefix}/etc'
897sharedstatedir='${prefix}/com'
898localstatedir='${prefix}/var'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  # Accept the important Cygnus configure options, so we can diagnose typos.
929
930  case $ac_dashdash$ac_option in
931  --)
932    ac_dashdash=yes ;;
933
934  -bindir | --bindir | --bindi | --bind | --bin | --bi)
935    ac_prev=bindir ;;
936  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937    bindir=$ac_optarg ;;
938
939  -build | --build | --buil | --bui | --bu)
940    ac_prev=build_alias ;;
941  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942    build_alias=$ac_optarg ;;
943
944  -cache-file | --cache-file | --cache-fil | --cache-fi \
945  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946    ac_prev=cache_file ;;
947  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949    cache_file=$ac_optarg ;;
950
951  --config-cache | -C)
952    cache_file=config.cache ;;
953
954  -datadir | --datadir | --datadi | --datad)
955    ac_prev=datadir ;;
956  -datadir=* | --datadir=* | --datadi=* | --datad=*)
957    datadir=$ac_optarg ;;
958
959  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960  | --dataroo | --dataro | --datar)
961    ac_prev=datarootdir ;;
962  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964    datarootdir=$ac_optarg ;;
965
966  -disable-* | --disable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=no ;;
981
982  -docdir | --docdir | --docdi | --doc | --do)
983    ac_prev=docdir ;;
984  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985    docdir=$ac_optarg ;;
986
987  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988    ac_prev=dvidir ;;
989  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990    dvidir=$ac_optarg ;;
991
992  -enable-* | --enable-*)
993    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994    # Reject names that are not valid shell variable names.
995    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996      as_fn_error $? "invalid feature name: $ac_useropt"
997    ac_useropt_orig=$ac_useropt
998    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999    case $ac_user_opts in
1000      *"
1001"enable_$ac_useropt"
1002"*) ;;
1003      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004	 ac_unrecognized_sep=', ';;
1005    esac
1006    eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010  | --exec | --exe | --ex)
1011    ac_prev=exec_prefix ;;
1012  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014  | --exec=* | --exe=* | --ex=*)
1015    exec_prefix=$ac_optarg ;;
1016
1017  -gas | --gas | --ga | --g)
1018    # Obsolete; use --with-gas.
1019    with_gas=yes ;;
1020
1021  -help | --help | --hel | --he | -h)
1022    ac_init_help=long ;;
1023  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024    ac_init_help=recursive ;;
1025  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026    ac_init_help=short ;;
1027
1028  -host | --host | --hos | --ho)
1029    ac_prev=host_alias ;;
1030  -host=* | --host=* | --hos=* | --ho=*)
1031    host_alias=$ac_optarg ;;
1032
1033  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034    ac_prev=htmldir ;;
1035  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036  | --ht=*)
1037    htmldir=$ac_optarg ;;
1038
1039  -includedir | --includedir | --includedi | --included | --include \
1040  | --includ | --inclu | --incl | --inc)
1041    ac_prev=includedir ;;
1042  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043  | --includ=* | --inclu=* | --incl=* | --inc=*)
1044    includedir=$ac_optarg ;;
1045
1046  -infodir | --infodir | --infodi | --infod | --info | --inf)
1047    ac_prev=infodir ;;
1048  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049    infodir=$ac_optarg ;;
1050
1051  -libdir | --libdir | --libdi | --libd)
1052    ac_prev=libdir ;;
1053  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054    libdir=$ac_optarg ;;
1055
1056  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057  | --libexe | --libex | --libe)
1058    ac_prev=libexecdir ;;
1059  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060  | --libexe=* | --libex=* | --libe=*)
1061    libexecdir=$ac_optarg ;;
1062
1063  -localedir | --localedir | --localedi | --localed | --locale)
1064    ac_prev=localedir ;;
1065  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066    localedir=$ac_optarg ;;
1067
1068  -localstatedir | --localstatedir | --localstatedi | --localstated \
1069  | --localstate | --localstat | --localsta | --localst | --locals)
1070    ac_prev=localstatedir ;;
1071  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073    localstatedir=$ac_optarg ;;
1074
1075  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076    ac_prev=mandir ;;
1077  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078    mandir=$ac_optarg ;;
1079
1080  -nfp | --nfp | --nf)
1081    # Obsolete; use --without-fp.
1082    with_fp=no ;;
1083
1084  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085  | --no-cr | --no-c | -n)
1086    no_create=yes ;;
1087
1088  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090    no_recursion=yes ;;
1091
1092  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094  | --oldin | --oldi | --old | --ol | --o)
1095    ac_prev=oldincludedir ;;
1096  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099    oldincludedir=$ac_optarg ;;
1100
1101  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102    ac_prev=prefix ;;
1103  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104    prefix=$ac_optarg ;;
1105
1106  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107  | --program-pre | --program-pr | --program-p)
1108    ac_prev=program_prefix ;;
1109  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111    program_prefix=$ac_optarg ;;
1112
1113  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114  | --program-suf | --program-su | --program-s)
1115    ac_prev=program_suffix ;;
1116  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118    program_suffix=$ac_optarg ;;
1119
1120  -program-transform-name | --program-transform-name \
1121  | --program-transform-nam | --program-transform-na \
1122  | --program-transform-n | --program-transform- \
1123  | --program-transform | --program-transfor \
1124  | --program-transfo | --program-transf \
1125  | --program-trans | --program-tran \
1126  | --progr-tra | --program-tr | --program-t)
1127    ac_prev=program_transform_name ;;
1128  -program-transform-name=* | --program-transform-name=* \
1129  | --program-transform-nam=* | --program-transform-na=* \
1130  | --program-transform-n=* | --program-transform-=* \
1131  | --program-transform=* | --program-transfor=* \
1132  | --program-transfo=* | --program-transf=* \
1133  | --program-trans=* | --program-tran=* \
1134  | --progr-tra=* | --program-tr=* | --program-t=*)
1135    program_transform_name=$ac_optarg ;;
1136
1137  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138    ac_prev=pdfdir ;;
1139  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140    pdfdir=$ac_optarg ;;
1141
1142  -psdir | --psdir | --psdi | --psd | --ps)
1143    ac_prev=psdir ;;
1144  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145    psdir=$ac_optarg ;;
1146
1147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148  | -silent | --silent | --silen | --sile | --sil)
1149    silent=yes ;;
1150
1151  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152    ac_prev=sbindir ;;
1153  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154  | --sbi=* | --sb=*)
1155    sbindir=$ac_optarg ;;
1156
1157  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159  | --sharedst | --shareds | --shared | --share | --shar \
1160  | --sha | --sh)
1161    ac_prev=sharedstatedir ;;
1162  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165  | --sha=* | --sh=*)
1166    sharedstatedir=$ac_optarg ;;
1167
1168  -site | --site | --sit)
1169    ac_prev=site ;;
1170  -site=* | --site=* | --sit=*)
1171    site=$ac_optarg ;;
1172
1173  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174    ac_prev=srcdir ;;
1175  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176    srcdir=$ac_optarg ;;
1177
1178  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179  | --syscon | --sysco | --sysc | --sys | --sy)
1180    ac_prev=sysconfdir ;;
1181  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183    sysconfdir=$ac_optarg ;;
1184
1185  -target | --target | --targe | --targ | --tar | --ta | --t)
1186    ac_prev=target_alias ;;
1187  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188    target_alias=$ac_optarg ;;
1189
1190  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191    verbose=yes ;;
1192
1193  -version | --version | --versio | --versi | --vers | -V)
1194    ac_init_version=: ;;
1195
1196  -with-* | --with-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: $ac_useropt"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=\$ac_optarg ;;
1211
1212  -without-* | --without-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=no ;;
1227
1228  --x)
1229    # Obsolete; use --with-x.
1230    with_x=yes ;;
1231
1232  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233  | --x-incl | --x-inc | --x-in | --x-i)
1234    ac_prev=x_includes ;;
1235  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237    x_includes=$ac_optarg ;;
1238
1239  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241    ac_prev=x_libraries ;;
1242  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244    x_libraries=$ac_optarg ;;
1245
1246  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247Try \`$0 --help' for more information"
1248    ;;
1249
1250  *=*)
1251    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252    # Reject names that are not valid shell variable names.
1253    case $ac_envvar in #(
1254      '' | [0-9]* | *[!_$as_cr_alnum]* )
1255      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256    esac
1257    eval $ac_envvar=\$ac_optarg
1258    export $ac_envvar ;;
1259
1260  *)
1261    # FIXME: should be removed in autoconf 3.0.
1262    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266    ;;
1267
1268  esac
1269done
1270
1271if test -n "$ac_prev"; then
1272  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273  as_fn_error $? "missing argument to $ac_option"
1274fi
1275
1276if test -n "$ac_unrecognized_opts"; then
1277  case $enable_option_checking in
1278    no) ;;
1279    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281  esac
1282fi
1283
1284# Check all directory arguments for consistency.
1285for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286		datadir sysconfdir sharedstatedir localstatedir includedir \
1287		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288		libdir localedir mandir
1289do
1290  eval ac_val=\$$ac_var
1291  # Remove trailing slashes.
1292  case $ac_val in
1293    */ )
1294      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295      eval $ac_var=\$ac_val;;
1296  esac
1297  # Be sure to have absolute directory names.
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303done
1304
1305# There might be people who depend on the old broken behavior: `$host'
1306# used to hold the argument of --host etc.
1307# FIXME: To remove some day.
1308build=$build_alias
1309host=$host_alias
1310target=$target_alias
1311
1312# FIXME: To remove some day.
1313if test "x$host_alias" != x; then
1314  if test "x$build_alias" = x; then
1315    cross_compiling=maybe
1316  elif test "x$build_alias" != "x$host_alias"; then
1317    cross_compiling=yes
1318  fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
1325
1326
1327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330  as_fn_error $? "working directory cannot be determined"
1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332  as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335# Find the source files, if location was not specified.
1336if test -z "$srcdir"; then
1337  ac_srcdir_defaulted=yes
1338  # Try the directory containing this script, then the parent directory.
1339  ac_confdir=`$as_dirname -- "$as_myself" ||
1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341	 X"$as_myself" : 'X\(//\)[^/]' \| \
1342	 X"$as_myself" : 'X\(//\)$' \| \
1343	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344$as_echo X"$as_myself" |
1345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)[^/].*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\/\)$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\).*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  s/.*/./; q'`
1362  srcdir=$ac_confdir
1363  if test ! -r "$srcdir/$ac_unique_file"; then
1364    srcdir=..
1365  fi
1366else
1367  ac_srcdir_defaulted=no
1368fi
1369if test ! -r "$srcdir/$ac_unique_file"; then
1370  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376	pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379  srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_env_${ac_var}_value=\$${ac_var}
1390  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
1393
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398  # Omit some internal or obsolete options to make the list less imposing.
1399  # This message is too long to be a string in the A/UX 3.1 sh.
1400  cat <<_ACEOF
1401\`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems.
1402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411  -h, --help              display this help and exit
1412      --help=short        display options specific to this package
1413      --help=recursive    display the short help of all the included packages
1414  -V, --version           display version information and exit
1415  -q, --quiet, --silent   do not print \`checking ...' messages
1416      --cache-file=FILE   cache test results in FILE [disabled]
1417  -C, --config-cache      alias for \`--cache-file=config.cache'
1418  -n, --no-create         do not create output files
1419      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421Installation directories:
1422  --prefix=PREFIX         install architecture-independent files in PREFIX
1423                          [$ac_default_prefix]
1424  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                          [PREFIX]
1426
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
1435  --bindir=DIR            user executables [EPREFIX/bin]
1436  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437  --libexecdir=DIR        program executables [EPREFIX/libexec]
1438  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441  --libdir=DIR            object code libraries [EPREFIX/lib]
1442  --includedir=DIR        C header files [PREFIX/include]
1443  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446  --infodir=DIR           info documentation [DATAROOTDIR/info]
1447  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448  --mandir=DIR            man documentation [DATAROOTDIR/man]
1449  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1450  --htmldir=DIR           html documentation [DOCDIR]
1451  --dvidir=DIR            dvi documentation [DOCDIR]
1452  --pdfdir=DIR            pdf documentation [DOCDIR]
1453  --psdir=DIR             ps documentation [DOCDIR]
1454_ACEOF
1455
1456  cat <<\_ACEOF
1457
1458Program names:
1459  --program-prefix=PREFIX            prepend PREFIX to installed program names
1460  --program-suffix=SUFFIX            append SUFFIX to installed program names
1461  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463X features:
1464  --x-includes=DIR    X include files are in DIR
1465  --x-libraries=DIR   X library files are in DIR
1466
1467System types:
1468  --build=BUILD     configure for building on BUILD [guessed]
1469  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474  case $ac_init_help in
1475     short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";;
1476   esac
1477  cat <<\_ACEOF
1478
1479Optional Features:
1480  --disable-option-checking  ignore unrecognized --enable/--with options
1481  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483  --enable-silent-rules   less verbose build output (undo: "make V=1")
1484  --disable-silent-rules  verbose build output (undo: "make V=0")
1485  --enable-maintainer-mode
1486                          enable make rules and dependencies not useful (and
1487                          sometimes confusing) to the casual installer
1488  --enable-dependency-tracking
1489                          do not reject slow dependency extractors
1490  --disable-dependency-tracking
1491                          speeds up one-time build
1492  --enable-ld-version-script
1493                          enable linker version script (default is disabled)
1494  --enable-shared[=PKGS]  build shared libraries [default=yes]
1495  --enable-static[=PKGS]  build static libraries [default=yes]
1496  --enable-fast-install[=PKGS]
1497                          optimize for fast installation [default=yes]
1498  --disable-libtool-lock  avoid locking (might break parallel builds)
1499  --enable-rpath          Enable runtime linker paths (-R libtool option)
1500  --disable-largefile     omit support for large files
1501  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1502  --disable-packbits      disable support for Macintosh PackBits algorithm
1503  --disable-lzw           disable support for LZW algorithm
1504  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1505  --disable-next          disable support for NeXT 2-bit RLE algorithm
1506  --disable-logluv        disable support for LogLuv high dynamic range
1507                          encoding
1508  --disable-mdi           disable support for Microsoft Document Imaging
1509  --disable-zlib          disable Zlib usage (required for Deflate
1510                          compression, enabled by default)
1511  --disable-pixarlog      disable support for Pixar log-format algorithm
1512                          (requires Zlib)
1513  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1514                          compression, enabled by default)
1515  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1516                          enabled by default)
1517  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1518                          compression, enabled by default)
1519  --disable-lzma          disable liblzma usage (required for LZMA2
1520                          compression, enabled by default)
1521  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1522  --enable-cxx            enable C++ stream API building (requires C++
1523                          compiler)
1524  --disable-strip-chopping
1525                          disable support for strip chopping (whether or not
1526                          to convert single-strip uncompressed images to
1527                          mutiple strips of specified size to reduce memory
1528                          usage)
1529  --enable-defer-strile-load
1530                          enable deferred strip/tile offset/size loading
1531                          (experimental)
1532  --enable-chunky-strip-read
1533                          enable reading large strips in chunks for
1534                          TIFFReadScanline() (experimental)
1535  --disable-extrasample-as-alpha
1536                          the RGBA interface will treat a fourth sample with
1537                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1538                          packages produce RGBA files but don't mark the alpha
1539                          properly
1540  --disable-check-ycbcr-subsampling
1541                          disable picking up YCbCr subsampling info from the
1542                          JPEG data stream to support files lacking the tag
1543
1544Optional Packages:
1545  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1546  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1547  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1548                          both]
1549  --with-aix-soname=aix|svr4|both
1550                          shared library versioning (aka "SONAME") variant to
1551                          provide on AIX, [default=aix].
1552  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1554                          compiler's sysroot if not specified).
1555  --with-docdir=DIR       directory where documentation should be installed
1556  --with-zlib-include-dir=DIR
1557                          location of Zlib headers
1558  --with-zlib-lib-dir=DIR location of Zlib library binary
1559  --with-jpeg-include-dir=DIR
1560                          location of IJG JPEG library headers
1561  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1562  --with-jbig-include-dir=DIR
1563                          location of JBIG-KIT headers
1564  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1565  --with-lzma-include-dir=DIR
1566                          location of liblzma headers
1567  --with-lzma-lib-dir=DIR location of liblzma library binary
1568  --with-jpeg12-include-dir=DIR
1569                          location of libjpeg 12bit headers
1570  --with-jpeg12-lib=LIBRARY
1571                          path to libjpeg 12bit library
1572  --with-x                use the X Window System
1573  --with-default-strip-size=SIZE
1574                          default size of the strip in bytes (when strip
1575                          chopping enabled) [[default=8192]]
1576
1577Some influential environment variables:
1578  CC          C compiler command
1579  CFLAGS      C compiler flags
1580  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1581              nonstandard directory <lib dir>
1582  LIBS        libraries to pass to the linker, e.g. -l<library>
1583  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1584              you have headers in a nonstandard directory <include dir>
1585  CPP         C preprocessor
1586  CXX         C++ compiler command
1587  CXXFLAGS    C++ compiler flags
1588  CXXCPP      C++ preprocessor
1589  XMKMF       Path to xmkmf, Makefile generator for X Window System
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to <[email protected]>.
1595_ACEOF
1596ac_status=$?
1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600  # If there are subdirs, report their specific --help.
1601  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602    test -d "$ac_dir" ||
1603      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604      continue
1605    ac_builddir=.
1606
1607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611  # A ".." for each directory in $ac_dir_suffix.
1612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613  case $ac_top_builddir_sub in
1614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616  esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
1622
1623case $srcdir in
1624  .)  # We are building in place.
1625    ac_srcdir=.
1626    ac_top_srcdir=$ac_top_builddir_sub
1627    ac_abs_top_srcdir=$ac_pwd ;;
1628  [\\/]* | ?:[\\/]* )  # Absolute name.
1629    ac_srcdir=$srcdir$ac_dir_suffix;
1630    ac_top_srcdir=$srcdir
1631    ac_abs_top_srcdir=$srcdir ;;
1632  *) # Relative name.
1633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636esac
1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639    cd "$ac_dir" || { ac_status=$?; continue; }
1640    # Check for guested configure.
1641    if test -f "$ac_srcdir/configure.gnu"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644    elif test -f "$ac_srcdir/configure"; then
1645      echo &&
1646      $SHELL "$ac_srcdir/configure" --help=recursive
1647    else
1648      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649    fi || ac_status=$?
1650    cd "$ac_pwd" || { ac_status=$?; break; }
1651  done
1652fi
1653
1654test -n "$ac_init_help" && exit $ac_status
1655if $ac_init_version; then
1656  cat <<\_ACEOF
1657LibTIFF Software configure 4.0.3
1658generated by GNU Autoconf 2.69
1659
1660Copyright (C) 2012 Free Software Foundation, Inc.
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
1664  exit
1665fi
1666
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
1670
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext
1678  if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_compile") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest.$ac_objext; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702	ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_c_try_link LINENO
1710# -----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_link ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  rm -f conftest.$ac_objext conftest$ac_exeext
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && {
1732	 test -z "$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       } && test -s conftest$ac_exeext && {
1735	 test "$cross_compiling" = yes ||
1736	 test -x conftest$ac_exeext
1737       }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747  # interfere with the next link command; also delete a directory that is
1748  # left behind by Apple's compiler.  We do this before executing the actions.
1749  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_link
1754
1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists and can be compiled using the include files in
1758# INCLUDES, setting the cache variable VAR accordingly.
1759ac_fn_c_check_header_compile ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773  eval "$3=yes"
1774else
1775  eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_header_compile
1785
1786# ac_fn_c_try_cpp LINENO
1787# ----------------------
1788# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_c_try_cpp ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  if { { ac_try="$ac_cpp conftest.$ac_ext"
1793case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800  ac_status=$?
1801  if test -s conftest.err; then
1802    grep -v '^ *+' conftest.err >conftest.er1
1803    cat conftest.er1 >&5
1804    mv -f conftest.er1 conftest.err
1805  fi
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } > conftest.i && {
1808	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1809	 test ! -s conftest.err
1810       }; then :
1811  ac_retval=0
1812else
1813  $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816    ac_retval=1
1817fi
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819  as_fn_set_status $ac_retval
1820
1821} # ac_fn_c_try_cpp
1822
1823# ac_fn_c_try_run LINENO
1824# ----------------------
1825# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826# that executables *can* be run.
1827ac_fn_c_try_run ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  if { { ac_try="$ac_link"
1831case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_link") 2>&5
1838  ac_status=$?
1839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841  { { case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847  (eval "$ac_try") 2>&5
1848  ac_status=$?
1849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850  test $ac_status = 0; }; }; then :
1851  ac_retval=0
1852else
1853  $as_echo "$as_me: program exited with status $ac_status" >&5
1854       $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857       ac_retval=$ac_status
1858fi
1859  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_run
1864
1865# ac_fn_c_check_func LINENO FUNC VAR
1866# ----------------------------------
1867# Tests whether FUNC exists, setting the cache variable VAR accordingly
1868ac_fn_c_check_func ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883    which can conflict with char $2 (); below.
1884    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885    <limits.h> exists even on freestanding compilers.  */
1886
1887#ifdef __STDC__
1888# include <limits.h>
1889#else
1890# include <assert.h>
1891#endif
1892
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896   Use char because int might match the return type of a GCC
1897   builtin and then its argument prototype would still apply.  */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903    to always fail with ENOSYS.  Some functions are actually named
1904    something starting with __ and the normal name is an alias.  */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main ()
1911{
1912return $2 ();
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"; then :
1918  eval "$3=yes"
1919else
1920  eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext \
1923    conftest$ac_exeext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_func
1931
1932# ac_fn_cxx_try_compile LINENO
1933# ----------------------------
1934# Try to compile conftest.$ac_ext, and return whether this succeeded.
1935ac_fn_cxx_try_compile ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  rm -f conftest.$ac_objext
1939  if { { ac_try="$ac_compile"
1940case "(($ac_try" in
1941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942  *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
1946  (eval "$ac_compile") 2>conftest.err
1947  ac_status=$?
1948  if test -s conftest.err; then
1949    grep -v '^ *+' conftest.err >conftest.er1
1950    cat conftest.er1 >&5
1951    mv -f conftest.er1 conftest.err
1952  fi
1953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954  test $ac_status = 0; } && {
1955	 test -z "$ac_cxx_werror_flag" ||
1956	 test ! -s conftest.err
1957       } && test -s conftest.$ac_objext; then :
1958  ac_retval=0
1959else
1960  $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963	ac_retval=1
1964fi
1965  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966  as_fn_set_status $ac_retval
1967
1968} # ac_fn_cxx_try_compile
1969
1970# ac_fn_cxx_try_cpp LINENO
1971# ------------------------
1972# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1973ac_fn_cxx_try_cpp ()
1974{
1975  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976  if { { ac_try="$ac_cpp conftest.$ac_ext"
1977case "(($ac_try" in
1978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979  *) ac_try_echo=$ac_try;;
1980esac
1981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982$as_echo "$ac_try_echo"; } >&5
1983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1984  ac_status=$?
1985  if test -s conftest.err; then
1986    grep -v '^ *+' conftest.err >conftest.er1
1987    cat conftest.er1 >&5
1988    mv -f conftest.er1 conftest.err
1989  fi
1990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991  test $ac_status = 0; } > conftest.i && {
1992	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1993	 test ! -s conftest.err
1994       }; then :
1995  ac_retval=0
1996else
1997  $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000    ac_retval=1
2001fi
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003  as_fn_set_status $ac_retval
2004
2005} # ac_fn_cxx_try_cpp
2006
2007# ac_fn_cxx_try_link LINENO
2008# -------------------------
2009# Try to link conftest.$ac_ext, and return whether this succeeded.
2010ac_fn_cxx_try_link ()
2011{
2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013  rm -f conftest.$ac_objext conftest$ac_exeext
2014  if { { ac_try="$ac_link"
2015case "(($ac_try" in
2016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017  *) ac_try_echo=$ac_try;;
2018esac
2019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020$as_echo "$ac_try_echo"; } >&5
2021  (eval "$ac_link") 2>conftest.err
2022  ac_status=$?
2023  if test -s conftest.err; then
2024    grep -v '^ *+' conftest.err >conftest.er1
2025    cat conftest.er1 >&5
2026    mv -f conftest.er1 conftest.err
2027  fi
2028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029  test $ac_status = 0; } && {
2030	 test -z "$ac_cxx_werror_flag" ||
2031	 test ! -s conftest.err
2032       } && test -s conftest$ac_exeext && {
2033	 test "$cross_compiling" = yes ||
2034	 test -x conftest$ac_exeext
2035       }; then :
2036  ac_retval=0
2037else
2038  $as_echo "$as_me: failed program was:" >&5
2039sed 's/^/| /' conftest.$ac_ext >&5
2040
2041	ac_retval=1
2042fi
2043  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2044  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2045  # interfere with the next link command; also delete a directory that is
2046  # left behind by Apple's compiler.  We do this before executing the actions.
2047  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049  as_fn_set_status $ac_retval
2050
2051} # ac_fn_cxx_try_link
2052
2053# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2054# -------------------------------------------------------
2055# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2056# the include files in INCLUDES and setting the cache variable VAR
2057# accordingly.
2058ac_fn_c_check_header_mongrel ()
2059{
2060  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061  if eval \${$3+:} false; then :
2062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if eval \${$3+:} false; then :
2065  $as_echo_n "(cached) " >&6
2066fi
2067eval ac_res=\$$3
2068	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069$as_echo "$ac_res" >&6; }
2070else
2071  # Is the header compilable?
2072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2073$as_echo_n "checking $2 usability... " >&6; }
2074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076$4
2077#include <$2>
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_header_compiler=yes
2081else
2082  ac_header_compiler=no
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2086$as_echo "$ac_header_compiler" >&6; }
2087
2088# Is the header present?
2089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2090$as_echo_n "checking $2 presence... " >&6; }
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093#include <$2>
2094_ACEOF
2095if ac_fn_c_try_cpp "$LINENO"; then :
2096  ac_header_preproc=yes
2097else
2098  ac_header_preproc=no
2099fi
2100rm -f conftest.err conftest.i conftest.$ac_ext
2101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2102$as_echo "$ac_header_preproc" >&6; }
2103
2104# So?  What about this header?
2105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2106  yes:no: )
2107    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2108$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2110$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2111    ;;
2112  no:yes:* )
2113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2114$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2116$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2118$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2119    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2120$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2121    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2122$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2123( $as_echo "## -------------------------------------- ##
2124## Report this to [email protected] ##
2125## -------------------------------------- ##"
2126     ) | sed "s/^/$as_me: WARNING:     /" >&2
2127    ;;
2128esac
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132  $as_echo_n "(cached) " >&6
2133else
2134  eval "$3=\$ac_header_compiler"
2135fi
2136eval ac_res=\$$3
2137	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139fi
2140  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142} # ac_fn_c_check_header_mongrel
2143
2144# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2145# -------------------------------------------
2146# Tests whether TYPE exists after having included INCLUDES, setting cache
2147# variable VAR accordingly.
2148ac_fn_c_check_type ()
2149{
2150  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152$as_echo_n "checking for $2... " >&6; }
2153if eval \${$3+:} false; then :
2154  $as_echo_n "(cached) " >&6
2155else
2156  eval "$3=no"
2157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h.  */
2159$4
2160int
2161main ()
2162{
2163if (sizeof ($2))
2164	 return 0;
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main ()
2175{
2176if (sizeof (($2)))
2177	    return 0;
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"; then :
2183
2184else
2185  eval "$3=yes"
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190fi
2191eval ac_res=\$$3
2192	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195
2196} # ac_fn_c_check_type
2197
2198# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2199# --------------------------------------------
2200# Tries to find the compile-time value of EXPR in a program that includes
2201# INCLUDES, setting VAR accordingly. Returns whether the value could be
2202# computed
2203ac_fn_c_compute_int ()
2204{
2205  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206  if test "$cross_compiling" = yes; then
2207    # Depending upon the size, compute the lo and hi bounds.
2208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h.  */
2210$4
2211int
2212main ()
2213{
2214static int test_array [1 - 2 * !(($2) >= 0)];
2215test_array [0] = 0;
2216return test_array [0];
2217
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223  ac_lo=0 ac_mid=0
2224  while :; do
2225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$4
2228int
2229main ()
2230{
2231static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2232test_array [0] = 0;
2233return test_array [0];
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240  ac_hi=$ac_mid; break
2241else
2242  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2243			if test $ac_lo -le $ac_mid; then
2244			  ac_lo= ac_hi=
2245			  break
2246			fi
2247			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250  done
2251else
2252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h.  */
2254$4
2255int
2256main ()
2257{
2258static int test_array [1 - 2 * !(($2) < 0)];
2259test_array [0] = 0;
2260return test_array [0];
2261
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_compile "$LINENO"; then :
2267  ac_hi=-1 ac_mid=-1
2268  while :; do
2269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2276test_array [0] = 0;
2277return test_array [0];
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  ac_lo=$ac_mid; break
2285else
2286  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2287			if test $ac_mid -le $ac_hi; then
2288			  ac_lo= ac_hi=
2289			  break
2290			fi
2291			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2292fi
2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294  done
2295else
2296  ac_lo= ac_hi=
2297fi
2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299fi
2300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301# Binary search between lo and hi bounds.
2302while test "x$ac_lo" != "x$ac_hi"; do
2303  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$4
2307int
2308main ()
2309{
2310static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2311test_array [0] = 0;
2312return test_array [0];
2313
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318if ac_fn_c_try_compile "$LINENO"; then :
2319  ac_hi=$ac_mid
2320else
2321  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2322fi
2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324done
2325case $ac_lo in #((
2326?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2327'') ac_retval=1 ;;
2328esac
2329  else
2330    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h.  */
2332$4
2333static long int longval () { return $2; }
2334static unsigned long int ulongval () { return $2; }
2335#include <stdio.h>
2336#include <stdlib.h>
2337int
2338main ()
2339{
2340
2341  FILE *f = fopen ("conftest.val", "w");
2342  if (! f)
2343    return 1;
2344  if (($2) < 0)
2345    {
2346      long int i = longval ();
2347      if (i != ($2))
2348	return 1;
2349      fprintf (f, "%ld", i);
2350    }
2351  else
2352    {
2353      unsigned long int i = ulongval ();
2354      if (i != ($2))
2355	return 1;
2356      fprintf (f, "%lu", i);
2357    }
2358  /* Do not output a trailing newline, as this causes \r\n confusion
2359     on some platforms.  */
2360  return ferror (f) || fclose (f) != 0;
2361
2362  ;
2363  return 0;
2364}
2365_ACEOF
2366if ac_fn_c_try_run "$LINENO"; then :
2367  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2368else
2369  ac_retval=1
2370fi
2371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2372  conftest.$ac_objext conftest.beam conftest.$ac_ext
2373rm -f conftest.val
2374
2375  fi
2376  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377  as_fn_set_status $ac_retval
2378
2379} # ac_fn_c_compute_int
2380cat >config.log <<_ACEOF
2381This file contains any messages produced by compilers while
2382running configure, to aid debugging if configure makes a mistake.
2383
2384It was created by LibTIFF Software $as_me 4.0.3, which was
2385generated by GNU Autoconf 2.69.  Invocation command line was
2386
2387  $ $0 $@
2388
2389_ACEOF
2390exec 5>>config.log
2391{
2392cat <<_ASUNAME
2393## --------- ##
2394## Platform. ##
2395## --------- ##
2396
2397hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2398uname -m = `(uname -m) 2>/dev/null || echo unknown`
2399uname -r = `(uname -r) 2>/dev/null || echo unknown`
2400uname -s = `(uname -s) 2>/dev/null || echo unknown`
2401uname -v = `(uname -v) 2>/dev/null || echo unknown`
2402
2403/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2404/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2405
2406/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2407/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2408/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2409/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2410/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2411/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2412/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2413
2414_ASUNAME
2415
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419  IFS=$as_save_IFS
2420  test -z "$as_dir" && as_dir=.
2421    $as_echo "PATH: $as_dir"
2422  done
2423IFS=$as_save_IFS
2424
2425} >&5
2426
2427cat >&5 <<_ACEOF
2428
2429
2430## ----------- ##
2431## Core tests. ##
2432## ----------- ##
2433
2434_ACEOF
2435
2436
2437# Keep a trace of the command line.
2438# Strip out --no-create and --no-recursion so they do not pile up.
2439# Strip out --silent because we don't want to record it for future runs.
2440# Also quote any args containing shell meta-characters.
2441# Make two passes to allow for proper duplicate-argument suppression.
2442ac_configure_args=
2443ac_configure_args0=
2444ac_configure_args1=
2445ac_must_keep_next=false
2446for ac_pass in 1 2
2447do
2448  for ac_arg
2449  do
2450    case $ac_arg in
2451    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2452    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2453    | -silent | --silent | --silen | --sile | --sil)
2454      continue ;;
2455    *\'*)
2456      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2457    esac
2458    case $ac_pass in
2459    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2460    2)
2461      as_fn_append ac_configure_args1 " '$ac_arg'"
2462      if test $ac_must_keep_next = true; then
2463	ac_must_keep_next=false # Got value, back to normal.
2464      else
2465	case $ac_arg in
2466	  *=* | --config-cache | -C | -disable-* | --disable-* \
2467	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2468	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2469	  | -with-* | --with-* | -without-* | --without-* | --x)
2470	    case "$ac_configure_args0 " in
2471	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2472	    esac
2473	    ;;
2474	  -* ) ac_must_keep_next=true ;;
2475	esac
2476      fi
2477      as_fn_append ac_configure_args " '$ac_arg'"
2478      ;;
2479    esac
2480  done
2481done
2482{ ac_configure_args0=; unset ac_configure_args0;}
2483{ ac_configure_args1=; unset ac_configure_args1;}
2484
2485# When interrupted or exit'd, cleanup temporary files, and complete
2486# config.log.  We remove comments because anyway the quotes in there
2487# would cause problems or look ugly.
2488# WARNING: Use '\'' to represent an apostrophe within the trap.
2489# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2490trap 'exit_status=$?
2491  # Save into config.log some information that might help in debugging.
2492  {
2493    echo
2494
2495    $as_echo "## ---------------- ##
2496## Cache variables. ##
2497## ---------------- ##"
2498    echo
2499    # The following way of writing the cache mishandles newlines in values,
2500(
2501  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2502    eval ac_val=\$$ac_var
2503    case $ac_val in #(
2504    *${as_nl}*)
2505      case $ac_var in #(
2506      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2507$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2508      esac
2509      case $ac_var in #(
2510      _ | IFS | as_nl) ;; #(
2511      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2512      *) { eval $ac_var=; unset $ac_var;} ;;
2513      esac ;;
2514    esac
2515  done
2516  (set) 2>&1 |
2517    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2518    *${as_nl}ac_space=\ *)
2519      sed -n \
2520	"s/'\''/'\''\\\\'\'''\''/g;
2521	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2522      ;; #(
2523    *)
2524      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2525      ;;
2526    esac |
2527    sort
2528)
2529    echo
2530
2531    $as_echo "## ----------------- ##
2532## Output variables. ##
2533## ----------------- ##"
2534    echo
2535    for ac_var in $ac_subst_vars
2536    do
2537      eval ac_val=\$$ac_var
2538      case $ac_val in
2539      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540      esac
2541      $as_echo "$ac_var='\''$ac_val'\''"
2542    done | sort
2543    echo
2544
2545    if test -n "$ac_subst_files"; then
2546      $as_echo "## ------------------- ##
2547## File substitutions. ##
2548## ------------------- ##"
2549      echo
2550      for ac_var in $ac_subst_files
2551      do
2552	eval ac_val=\$$ac_var
2553	case $ac_val in
2554	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555	esac
2556	$as_echo "$ac_var='\''$ac_val'\''"
2557      done | sort
2558      echo
2559    fi
2560
2561    if test -s confdefs.h; then
2562      $as_echo "## ----------- ##
2563## confdefs.h. ##
2564## ----------- ##"
2565      echo
2566      cat confdefs.h
2567      echo
2568    fi
2569    test "$ac_signal" != 0 &&
2570      $as_echo "$as_me: caught signal $ac_signal"
2571    $as_echo "$as_me: exit $exit_status"
2572  } >&5
2573  rm -f core *.core core.conftest.* &&
2574    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2575    exit $exit_status
2576' 0
2577for ac_signal in 1 2 13 15; do
2578  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2579done
2580ac_signal=0
2581
2582# confdefs.h avoids OS command line length limits that DEFS can exceed.
2583rm -f -r conftest* confdefs.h
2584
2585$as_echo "/* confdefs.h */" > confdefs.h
2586
2587# Predefined preprocessor variables.
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_NAME "$PACKAGE_NAME"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_VERSION "$PACKAGE_VERSION"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_STRING "$PACKAGE_STRING"
2603_ACEOF
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2607_ACEOF
2608
2609cat >>confdefs.h <<_ACEOF
2610#define PACKAGE_URL "$PACKAGE_URL"
2611_ACEOF
2612
2613
2614# Let the site file select an alternate cache file if it wants to.
2615# Prefer an explicitly selected file to automatically selected ones.
2616ac_site_file1=NONE
2617ac_site_file2=NONE
2618if test -n "$CONFIG_SITE"; then
2619  # We do not want a PATH search for config.site.
2620  case $CONFIG_SITE in #((
2621    -*)  ac_site_file1=./$CONFIG_SITE;;
2622    */*) ac_site_file1=$CONFIG_SITE;;
2623    *)   ac_site_file1=./$CONFIG_SITE;;
2624  esac
2625elif test "x$prefix" != xNONE; then
2626  ac_site_file1=$prefix/share/config.site
2627  ac_site_file2=$prefix/etc/config.site
2628else
2629  ac_site_file1=$ac_default_prefix/share/config.site
2630  ac_site_file2=$ac_default_prefix/etc/config.site
2631fi
2632for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2633do
2634  test "x$ac_site_file" = xNONE && continue
2635  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2636    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2637$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2638    sed 's/^/| /' "$ac_site_file" >&5
2639    . "$ac_site_file" \
2640      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642as_fn_error $? "failed to load site script $ac_site_file
2643See \`config.log' for more details" "$LINENO" 5; }
2644  fi
2645done
2646
2647if test -r "$cache_file"; then
2648  # Some versions of bash will fail to source /dev/null (special files
2649  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2650  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2651    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2652$as_echo "$as_me: loading cache $cache_file" >&6;}
2653    case $cache_file in
2654      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2655      *)                      . "./$cache_file";;
2656    esac
2657  fi
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2660$as_echo "$as_me: creating cache $cache_file" >&6;}
2661  >$cache_file
2662fi
2663
2664# Check that the precious variables saved in the cache have kept the same
2665# value.
2666ac_cache_corrupted=false
2667for ac_var in $ac_precious_vars; do
2668  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669  eval ac_new_set=\$ac_env_${ac_var}_set
2670  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671  eval ac_new_val=\$ac_env_${ac_var}_value
2672  case $ac_old_set,$ac_new_set in
2673    set,)
2674      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676      ac_cache_corrupted=: ;;
2677    ,set)
2678      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680      ac_cache_corrupted=: ;;
2681    ,);;
2682    *)
2683      if test "x$ac_old_val" != "x$ac_new_val"; then
2684	# differences in whitespace do not lead to failure.
2685	ac_old_val_w=`echo x $ac_old_val`
2686	ac_new_val_w=`echo x $ac_new_val`
2687	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690	  ac_cache_corrupted=:
2691	else
2692	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694	  eval $ac_var=\$ac_old_val
2695	fi
2696	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2697$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2698	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2699$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2700      fi;;
2701  esac
2702  # Pass precious variables to config.status.
2703  if test "$ac_new_set" = set; then
2704    case $ac_new_val in
2705    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706    *) ac_arg=$ac_var=$ac_new_val ;;
2707    esac
2708    case " $ac_configure_args " in
2709      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2710      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2711    esac
2712  fi
2713done
2714if $ac_cache_corrupted; then
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2719  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2720fi
2721## -------------------- ##
2722## Main body of script. ##
2723## -------------------- ##
2724
2725ac_ext=c
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731
2732ac_aux_dir=
2733for ac_dir in config "$srcdir"/config; do
2734  if test -f "$ac_dir/install-sh"; then
2735    ac_aux_dir=$ac_dir
2736    ac_install_sh="$ac_aux_dir/install-sh -c"
2737    break
2738  elif test -f "$ac_dir/install.sh"; then
2739    ac_aux_dir=$ac_dir
2740    ac_install_sh="$ac_aux_dir/install.sh -c"
2741    break
2742  elif test -f "$ac_dir/shtool"; then
2743    ac_aux_dir=$ac_dir
2744    ac_install_sh="$ac_aux_dir/shtool install -c"
2745    break
2746  fi
2747done
2748if test -z "$ac_aux_dir"; then
2749  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2750fi
2751
2752# These three variables are undocumented and unsupported,
2753# and are intended to be withdrawn in a future Autoconf release.
2754# They can cause serious problems if a builder's source tree is in a directory
2755# whose full name contains unusual characters.
2756ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2757ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2758ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2759
2760
2761
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768
2769# Make sure we can run config.sub.
2770$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2771  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2772
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2774$as_echo_n "checking build system type... " >&6; }
2775if ${ac_cv_build+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  ac_build_alias=$build_alias
2779test "x$ac_build_alias" = x &&
2780  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2781test "x$ac_build_alias" = x &&
2782  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2783ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2785
2786fi
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2788$as_echo "$ac_cv_build" >&6; }
2789case $ac_cv_build in
2790*-*-*) ;;
2791*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2792esac
2793build=$ac_cv_build
2794ac_save_IFS=$IFS; IFS='-'
2795set x $ac_cv_build
2796shift
2797build_cpu=$1
2798build_vendor=$2
2799shift; shift
2800# Remember, the first character of IFS is used to create $*,
2801# except with old shells:
2802build_os=$*
2803IFS=$ac_save_IFS
2804case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2805
2806
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2808$as_echo_n "checking host system type... " >&6; }
2809if ${ac_cv_host+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  if test "x$host_alias" = x; then
2813  ac_cv_host=$ac_cv_build
2814else
2815  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2816    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2817fi
2818
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2821$as_echo "$ac_cv_host" >&6; }
2822case $ac_cv_host in
2823*-*-*) ;;
2824*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2825esac
2826host=$ac_cv_host
2827ac_save_IFS=$IFS; IFS='-'
2828set x $ac_cv_host
2829shift
2830host_cpu=$1
2831host_vendor=$2
2832shift; shift
2833# Remember, the first character of IFS is used to create $*,
2834# except with old shells:
2835host_os=$*
2836IFS=$ac_save_IFS
2837case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2838
2839
2840
2841am__api_version='1.14'
2842
2843# Find a good install program.  We prefer a C program (faster),
2844# so one script is as good as another.  But avoid the broken or
2845# incompatible versions:
2846# SysV /etc/install, /usr/sbin/install
2847# SunOS /usr/etc/install
2848# IRIX /sbin/install
2849# AIX /bin/install
2850# AmigaOS /C/install, which installs bootblocks on floppy discs
2851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2852# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854# OS/2's system install, which has a completely different semantic
2855# ./install, which can be erroneously created by make from ./install.sh.
2856# Reject install programs that cannot install multiple files.
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2858$as_echo_n "checking for a BSD-compatible install... " >&6; }
2859if test -z "$INSTALL"; then
2860if ${ac_cv_path_install+:} false; then :
2861  $as_echo_n "(cached) " >&6
2862else
2863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868    # Account for people who put trailing slashes in PATH elements.
2869case $as_dir/ in #((
2870  ./ | .// | /[cC]/* | \
2871  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2872  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2873  /usr/ucb/* ) ;;
2874  *)
2875    # OSF1 and SCO ODT 3.0 have their own names for install.
2876    # Don't use installbsd from OSF since it installs stuff as root
2877    # by default.
2878    for ac_prog in ginstall scoinst install; do
2879      for ac_exec_ext in '' $ac_executable_extensions; do
2880	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2881	  if test $ac_prog = install &&
2882	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883	    # AIX install.  It has an incompatible calling convention.
2884	    :
2885	  elif test $ac_prog = install &&
2886	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2887	    # program-specific install script used by HP pwplus--don't use.
2888	    :
2889	  else
2890	    rm -rf conftest.one conftest.two conftest.dir
2891	    echo one > conftest.one
2892	    echo two > conftest.two
2893	    mkdir conftest.dir
2894	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2895	      test -s conftest.one && test -s conftest.two &&
2896	      test -s conftest.dir/conftest.one &&
2897	      test -s conftest.dir/conftest.two
2898	    then
2899	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2900	      break 3
2901	    fi
2902	  fi
2903	fi
2904      done
2905    done
2906    ;;
2907esac
2908
2909  done
2910IFS=$as_save_IFS
2911
2912rm -rf conftest.one conftest.two conftest.dir
2913
2914fi
2915  if test "${ac_cv_path_install+set}" = set; then
2916    INSTALL=$ac_cv_path_install
2917  else
2918    # As a last resort, use the slow shell script.  Don't cache a
2919    # value for INSTALL 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    INSTALL=$ac_install_sh
2923  fi
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2926$as_echo "$INSTALL" >&6; }
2927
2928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929# It thinks the first close brace ends the variable substitution.
2930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931
2932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933
2934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2937$as_echo_n "checking whether build environment is sane... " >&6; }
2938# Reject unsafe characters in $srcdir or the absolute working directory
2939# name.  Accept space and tab only in the latter.
2940am_lf='
2941'
2942case `pwd` in
2943  *[\\\"\#\$\&\'\`$am_lf]*)
2944    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2945esac
2946case $srcdir in
2947  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2948    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2949esac
2950
2951# Do 'set' in a subshell so we don't clobber the current shell's
2952# arguments.  Must try -L first in case configure is actually a
2953# symlink; some systems play weird games with the mod time of symlinks
2954# (eg FreeBSD returns the mod time of the symlink's containing
2955# directory).
2956if (
2957   am_has_slept=no
2958   for am_try in 1 2; do
2959     echo "timestamp, slept: $am_has_slept" > conftest.file
2960     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2961     if test "$*" = "X"; then
2962	# -L didn't work.
2963	set X `ls -t "$srcdir/configure" conftest.file`
2964     fi
2965     if test "$*" != "X $srcdir/configure conftest.file" \
2966	&& test "$*" != "X conftest.file $srcdir/configure"; then
2967
2968	# If neither matched, then we have a broken ls.  This can happen
2969	# if, for instance, CONFIG_SHELL is bash and it inherits a
2970	# broken ls alias from the environment.  This has actually
2971	# happened.  Such a system could not be considered "sane".
2972	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2973  alias in your environment" "$LINENO" 5
2974     fi
2975     if test "$2" = conftest.file || test $am_try -eq 2; then
2976       break
2977     fi
2978     # Just in case.
2979     sleep 1
2980     am_has_slept=yes
2981   done
2982   test "$2" = conftest.file
2983   )
2984then
2985   # Ok.
2986   :
2987else
2988   as_fn_error $? "newly created file is older than distributed files!
2989Check your system clock" "$LINENO" 5
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992$as_echo "yes" >&6; }
2993# If we didn't sleep, we still need to ensure time stamps of config.status and
2994# generated files are strictly newer.
2995am_sleep_pid=
2996if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2997  ( sleep 1 ) &
2998  am_sleep_pid=$!
2999fi
3000
3001rm -f conftest.file
3002
3003test "$program_prefix" != NONE &&
3004  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005# Use a double $ so make ignores it.
3006test "$program_suffix" != NONE &&
3007  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008# Double any \ or $.
3009# By default was `s,x,x', remove it if useless.
3010ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3012
3013# expand $ac_aux_dir to an absolute path
3014am_aux_dir=`cd $ac_aux_dir && pwd`
3015
3016if test x"${MISSING+set}" != xset; then
3017  case $am_aux_dir in
3018  *\ * | *\	*)
3019    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3020  *)
3021    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3022  esac
3023fi
3024# Use eval to expand $SHELL
3025if eval "$MISSING --is-lightweight"; then
3026  am_missing_run="$MISSING "
3027else
3028  am_missing_run=
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3030$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3031fi
3032
3033if test x"${install_sh}" != xset; then
3034  case $am_aux_dir in
3035  *\ * | *\	*)
3036    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3037  *)
3038    install_sh="\${SHELL} $am_aux_dir/install-sh"
3039  esac
3040fi
3041
3042# Installed binaries are usually stripped using 'strip' when the user
3043# run "make install-strip".  However 'strip' might not be the right
3044# tool to use in cross-compilation environments, therefore Automake
3045# will honor the 'STRIP' environment variable to overrule this program.
3046if test "$cross_compiling" != no; then
3047  if test -n "$ac_tool_prefix"; then
3048  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}strip; ac_word=$2
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if ${ac_cv_prog_STRIP+:} false; then :
3053  $as_echo_n "(cached) " >&6
3054else
3055  if test -n "$STRIP"; then
3056  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063    for ac_exec_ext in '' $ac_executable_extensions; do
3064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067    break 2
3068  fi
3069done
3070  done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075STRIP=$ac_cv_prog_STRIP
3076if test -n "$STRIP"; then
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078$as_echo "$STRIP" >&6; }
3079else
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081$as_echo "no" >&6; }
3082fi
3083
3084
3085fi
3086if test -z "$ac_cv_prog_STRIP"; then
3087  ac_ct_STRIP=$STRIP
3088  # Extract the first word of "strip", so it can be a program name with args.
3089set dummy strip; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  if test -n "$ac_ct_STRIP"; then
3096  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  test -z "$as_dir" && as_dir=.
3103    for ac_exec_ext in '' $ac_executable_extensions; do
3104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105    ac_cv_prog_ac_ct_STRIP="strip"
3106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107    break 2
3108  fi
3109done
3110  done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116if test -n "$ac_ct_STRIP"; then
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118$as_echo "$ac_ct_STRIP" >&6; }
3119else
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124  if test "x$ac_ct_STRIP" = x; then
3125    STRIP=":"
3126  else
3127    case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131ac_tool_warned=yes ;;
3132esac
3133    STRIP=$ac_ct_STRIP
3134  fi
3135else
3136  STRIP="$ac_cv_prog_STRIP"
3137fi
3138
3139fi
3140INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3143$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3144if test -z "$MKDIR_P"; then
3145  if ${ac_cv_path_mkdir+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153    for ac_prog in mkdir gmkdir; do
3154	 for ac_exec_ext in '' $ac_executable_extensions; do
3155	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3156	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3157	     'mkdir (GNU coreutils) '* | \
3158	     'mkdir (coreutils) '* | \
3159	     'mkdir (fileutils) '4.1*)
3160	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3161	       break 3;;
3162	   esac
3163	 done
3164       done
3165  done
3166IFS=$as_save_IFS
3167
3168fi
3169
3170  test -d ./--version && rmdir ./--version
3171  if test "${ac_cv_path_mkdir+set}" = set; then
3172    MKDIR_P="$ac_cv_path_mkdir -p"
3173  else
3174    # As a last resort, use the slow shell script.  Don't cache a
3175    # value for MKDIR_P within a source directory, because that will
3176    # break other packages using the cache if that directory is
3177    # removed, or if the value is a relative name.
3178    MKDIR_P="$ac_install_sh -d"
3179  fi
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3182$as_echo "$MKDIR_P" >&6; }
3183
3184for ac_prog in gawk mawk nawk awk
3185do
3186  # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_AWK+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  if test -n "$AWK"; then
3194  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201    for ac_exec_ext in '' $ac_executable_extensions; do
3202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_AWK="$ac_prog"
3204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208  done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213AWK=$ac_cv_prog_AWK
3214if test -n "$AWK"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3216$as_echo "$AWK" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223  test -n "$AWK" && break
3224done
3225
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3227$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228set x ${MAKE-make}
3229ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3230if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  cat >conftest.make <<\_ACEOF
3234SHELL = /bin/sh
3235all:
3236	@echo '@@@%%%=$(MAKE)=@@@%%%'
3237_ACEOF
3238# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3239case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240  *@@@%%%=?*=@@@%%%*)
3241    eval ac_cv_prog_make_${ac_make}_set=yes;;
3242  *)
3243    eval ac_cv_prog_make_${ac_make}_set=no;;
3244esac
3245rm -f conftest.make
3246fi
3247if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250  SET_MAKE=
3251else
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254  SET_MAKE="MAKE=${MAKE-make}"
3255fi
3256
3257rm -rf .tst 2>/dev/null
3258mkdir .tst 2>/dev/null
3259if test -d .tst; then
3260  am__leading_dot=.
3261else
3262  am__leading_dot=_
3263fi
3264rmdir .tst 2>/dev/null
3265
3266# Check whether --enable-silent-rules was given.
3267if test "${enable_silent_rules+set}" = set; then :
3268  enableval=$enable_silent_rules;
3269fi
3270
3271case $enable_silent_rules in # (((
3272  yes) AM_DEFAULT_VERBOSITY=0;;
3273   no) AM_DEFAULT_VERBOSITY=1;;
3274    *) AM_DEFAULT_VERBOSITY=1;;
3275esac
3276am_make=${MAKE-make}
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3278$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3279if ${am_cv_make_support_nested_variables+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  if $as_echo 'TRUE=$(BAR$(V))
3283BAR0=false
3284BAR1=true
3285V=1
3286am__doit:
3287	@$(TRUE)
3288.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3289  am_cv_make_support_nested_variables=yes
3290else
3291  am_cv_make_support_nested_variables=no
3292fi
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3295$as_echo "$am_cv_make_support_nested_variables" >&6; }
3296if test $am_cv_make_support_nested_variables = yes; then
3297    AM_V='$(V)'
3298  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3299else
3300  AM_V=$AM_DEFAULT_VERBOSITY
3301  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3302fi
3303AM_BACKSLASH='\'
3304
3305if test "`cd $srcdir && pwd`" != "`pwd`"; then
3306  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3307  # is not polluted with repeated "-I."
3308  am__isrc=' -I$(srcdir)'
3309  # test to see if srcdir already configured
3310  if test -f $srcdir/config.status; then
3311    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3312  fi
3313fi
3314
3315# test whether we have cygpath
3316if test -z "$CYGPATH_W"; then
3317  if (cygpath --version) >/dev/null 2>/dev/null; then
3318    CYGPATH_W='cygpath -w'
3319  else
3320    CYGPATH_W=echo
3321  fi
3322fi
3323
3324
3325# Define the identity of the package.
3326 PACKAGE='tiff'
3327 VERSION='4.0.3'
3328
3329
3330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE "$PACKAGE"
3332_ACEOF
3333
3334
3335cat >>confdefs.h <<_ACEOF
3336#define VERSION "$VERSION"
3337_ACEOF
3338
3339# Some tools Automake needs.
3340
3341ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3342
3343
3344AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3345
3346
3347AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3348
3349
3350AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3351
3352
3353MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3354
3355# For better backward compatibility.  To be removed once Automake 1.9.x
3356# dies out for good.  For more background, see:
3357# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3358# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3359mkdir_p='$(MKDIR_P)'
3360
3361# We need awk for the "check" target.  The system "awk" is bad on
3362# some platforms.
3363# Always define AMTAR for backward compatibility.  Yes, it's still used
3364# in the wild :-(  We should find a proper way to deprecate it ...
3365AMTAR='$${TAR-tar}'
3366
3367
3368# We'll loop over all known methods to create a tar archive until one works.
3369_am_tools='gnutar  pax cpio none'
3370
3371am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3372
3373
3374
3375
3376
3377
3378# POSIX will say in a future version that running "rm -f" with no argument
3379# is OK; and we want to be able to make that assumption in our Makefile
3380# recipes.  So use an aggressive probe to check that the usage we want is
3381# actually supported "in the wild" to an acceptable degree.
3382# See automake bug#10828.
3383# To make any issue more visible, cause the running configure to be aborted
3384# by default if the 'rm' program in use doesn't match our expectations; the
3385# user can still override this though.
3386if rm -f && rm -fr && rm -rf; then : OK; else
3387  cat >&2 <<'END'
3388Oops!
3389
3390Your 'rm' program seems unable to run without file operands specified
3391on the command line, even when the '-f' option is present.  This is contrary
3392to the behaviour of most rm programs out there, and not conforming with
3393the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3394
3395Please tell bug-automake@gnu.org about your system, including the value
3396of your $PATH and any error possibly output before this message.  This
3397can help us improve future automake versions.
3398
3399END
3400  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3401    echo 'Configuration will proceed anyway, since you have set the' >&2
3402    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3403    echo >&2
3404  else
3405    cat >&2 <<'END'
3406Aborting the configuration process, to ensure you take notice of the issue.
3407
3408You can download and install GNU coreutils to get an 'rm' implementation
3409that behaves properly: <http://www.gnu.org/software/coreutils/>.
3410
3411If you want to complete the configuration process using your problematic
3412'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3413to "yes", and re-run configure.
3414
3415END
3416    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3417  fi
3418fi
3419
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3421$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3422    # Check whether --enable-maintainer-mode was given.
3423if test "${enable_maintainer_mode+set}" = set; then :
3424  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3425else
3426  USE_MAINTAINER_MODE=no
3427fi
3428
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3430$as_echo "$USE_MAINTAINER_MODE" >&6; }
3431   if test $USE_MAINTAINER_MODE = yes; then
3432  MAINTAINER_MODE_TRUE=
3433  MAINTAINER_MODE_FALSE='#'
3434else
3435  MAINTAINER_MODE_TRUE='#'
3436  MAINTAINER_MODE_FALSE=
3437fi
3438
3439  MAINT=$MAINTAINER_MODE_TRUE
3440
3441
3442
3443LIBTIFF_MAJOR_VERSION=4
3444LIBTIFF_MINOR_VERSION=0
3445LIBTIFF_MICRO_VERSION=3
3446LIBTIFF_ALPHA_VERSION=
3447LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3448LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3449
3450LIBTIFF_CURRENT=7
3451LIBTIFF_REVISION=0
3452LIBTIFF_AGE=2
3453LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3454
3455# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3456# in OpenBSD uses some special semantics for shared libraries. Their soname
3457# contains only two numbers, major and minor.
3458# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3459#case "$host_os" in
3460#    openbsd* | mirbsd*)
3461#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3462#	;;
3463#    *)
3464#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3465#	;;
3466#esac
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481if test -n "$ac_tool_prefix"; then
3482  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483set dummy ${ac_tool_prefix}gcc; ac_word=$2
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485$as_echo_n "checking for $ac_word... " >&6; }
3486if ${ac_cv_prog_CC+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  if test -n "$CC"; then
3490  ac_cv_prog_CC="$CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  test -z "$as_dir" && as_dir=.
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512$as_echo "$CC" >&6; }
3513else
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516fi
3517
3518
3519fi
3520if test -z "$ac_cv_prog_CC"; then
3521  ac_ct_CC=$CC
3522  # Extract the first word of "gcc", so it can be a program name with args.
3523set dummy gcc; ac_word=$2
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525$as_echo_n "checking for $ac_word... " >&6; }
3526if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  if test -n "$ac_ct_CC"; then
3530  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_ac_ct_CC="gcc"
3540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550if test -n "$ac_ct_CC"; then
3551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552$as_echo "$ac_ct_CC" >&6; }
3553else
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556fi
3557
3558  if test "x$ac_ct_CC" = x; then
3559    CC=""
3560  else
3561    case $cross_compiling:$ac_tool_warned in
3562yes:)
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567    CC=$ac_ct_CC
3568  fi
3569else
3570  CC="$ac_cv_prog_CC"
3571fi
3572
3573if test -z "$CC"; then
3574          if test -n "$ac_tool_prefix"; then
3575    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3576set dummy ${ac_tool_prefix}cc; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if ${ac_cv_prog_CC+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  if test -n "$CC"; then
3583  ac_cv_prog_CC="$CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  test -z "$as_dir" && as_dir=.
3590    for ac_exec_ext in '' $ac_executable_extensions; do
3591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592    ac_cv_prog_CC="${ac_tool_prefix}cc"
3593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597  done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605$as_echo "$CC" >&6; }
3606else
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611
3612  fi
3613fi
3614if test -z "$CC"; then
3615  # Extract the first word of "cc", so it can be a program name with args.
3616set dummy cc; ac_word=$2
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618$as_echo_n "checking for $ac_word... " >&6; }
3619if ${ac_cv_prog_CC+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if test -n "$CC"; then
3623  ac_cv_prog_CC="$CC" # Let the user override the test.
3624else
3625  ac_prog_rejected=no
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629  IFS=$as_save_IFS
3630  test -z "$as_dir" && as_dir=.
3631    for ac_exec_ext in '' $ac_executable_extensions; do
3632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634       ac_prog_rejected=yes
3635       continue
3636     fi
3637    ac_cv_prog_CC="cc"
3638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639    break 2
3640  fi
3641done
3642  done
3643IFS=$as_save_IFS
3644
3645if test $ac_prog_rejected = yes; then
3646  # We found a bogon in the path, so make sure we never use it.
3647  set dummy $ac_cv_prog_CC
3648  shift
3649  if test $# != 0; then
3650    # We chose a different compiler from the bogus one.
3651    # However, it has the same basename, so the bogon will be chosen
3652    # first if we set CC to just the basename; use the full file name.
3653    shift
3654    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3655  fi
3656fi
3657fi
3658fi
3659CC=$ac_cv_prog_CC
3660if test -n "$CC"; then
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662$as_echo "$CC" >&6; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
3667
3668
3669fi
3670if test -z "$CC"; then
3671  if test -n "$ac_tool_prefix"; then
3672  for ac_prog in cl.exe
3673  do
3674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677$as_echo_n "checking for $ac_word... " >&6; }
3678if ${ac_cv_prog_CC+:} false; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  if test -n "$CC"; then
3682  ac_cv_prog_CC="$CC" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696  done
3697IFS=$as_save_IFS
3698
3699fi
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704$as_echo "$CC" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711    test -n "$CC" && break
3712  done
3713fi
3714if test -z "$CC"; then
3715  ac_ct_CC=$CC
3716  for ac_prog in cl.exe
3717do
3718  # Extract the first word of "$ac_prog", so it can be a program name with args.
3719set dummy $ac_prog; ac_word=$2
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721$as_echo_n "checking for $ac_word... " >&6; }
3722if ${ac_cv_prog_ac_ct_CC+:} false; then :
3723  $as_echo_n "(cached) " >&6
3724else
3725  if test -n "$ac_ct_CC"; then
3726  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731  IFS=$as_save_IFS
3732  test -z "$as_dir" && as_dir=.
3733    for ac_exec_ext in '' $ac_executable_extensions; do
3734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735    ac_cv_prog_ac_ct_CC="$ac_prog"
3736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740  done
3741IFS=$as_save_IFS
3742
3743fi
3744fi
3745ac_ct_CC=$ac_cv_prog_ac_ct_CC
3746if test -n "$ac_ct_CC"; then
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3748$as_echo "$ac_ct_CC" >&6; }
3749else
3750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751$as_echo "no" >&6; }
3752fi
3753
3754
3755  test -n "$ac_ct_CC" && break
3756done
3757
3758  if test "x$ac_ct_CC" = x; then
3759    CC=""
3760  else
3761    case $cross_compiling:$ac_tool_warned in
3762yes:)
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765ac_tool_warned=yes ;;
3766esac
3767    CC=$ac_ct_CC
3768  fi
3769fi
3770
3771fi
3772
3773
3774test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776as_fn_error $? "no acceptable C compiler found in \$PATH
3777See \`config.log' for more details" "$LINENO" 5; }
3778
3779# Provide some information about the compiler.
3780$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3781set X $ac_compile
3782ac_compiler=$2
3783for ac_option in --version -v -V -qversion; do
3784  { { ac_try="$ac_compiler $ac_option >&5"
3785case "(($ac_try" in
3786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787  *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790$as_echo "$ac_try_echo"; } >&5
3791  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3792  ac_status=$?
3793  if test -s conftest.err; then
3794    sed '10a\
3795... rest of stderr output deleted ...
3796         10q' conftest.err >conftest.er1
3797    cat conftest.er1 >&5
3798  fi
3799  rm -f conftest.er1 conftest.err
3800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801  test $ac_status = 0; }
3802done
3803
3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806
3807int
3808main ()
3809{
3810
3811  ;
3812  return 0;
3813}
3814_ACEOF
3815ac_clean_files_save=$ac_clean_files
3816ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3817# Try to create an executable without -o first, disregard a.out.
3818# It will help us diagnose broken compilers, and finding out an intuition
3819# of exeext.
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821$as_echo_n "checking whether the C compiler works... " >&6; }
3822ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3823
3824# The possible output files:
3825ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3826
3827ac_rmfiles=
3828for ac_file in $ac_files
3829do
3830  case $ac_file in
3831    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3833  esac
3834done
3835rm -f $ac_rmfiles
3836
3837if { { ac_try="$ac_link_default"
3838case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843$as_echo "$ac_try_echo"; } >&5
3844  (eval "$ac_link_default") 2>&5
3845  ac_status=$?
3846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847  test $ac_status = 0; }; then :
3848  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3849# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3850# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3851# so that the user can short-circuit this test for compilers unknown to
3852# Autoconf.
3853for ac_file in $ac_files ''
3854do
3855  test -f "$ac_file" || continue
3856  case $ac_file in
3857    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3858	;;
3859    [ab].out )
3860	# We found the default executable, but exeext='' is most
3861	# certainly right.
3862	break;;
3863    *.* )
3864	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3865	then :; else
3866	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867	fi
3868	# We set ac_cv_exeext here because the later test for it is not
3869	# safe: cross compilers may not add the suffix if given an `-o'
3870	# argument, so we may need to know it at that point already.
3871	# Even if this section looks crufty: it has the advantage of
3872	# actually working.
3873	break;;
3874    * )
3875	break;;
3876  esac
3877done
3878test "$ac_cv_exeext" = no && ac_cv_exeext=
3879
3880else
3881  ac_file=''
3882fi
3883if test -z "$ac_file"; then :
3884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886$as_echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891as_fn_error 77 "C compiler cannot create executables
3892See \`config.log' for more details" "$LINENO" 5; }
3893else
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3895$as_echo "yes" >&6; }
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3898$as_echo_n "checking for C compiler default output file name... " >&6; }
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900$as_echo "$ac_file" >&6; }
3901ac_exeext=$ac_cv_exeext
3902
3903rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3904ac_clean_files=$ac_clean_files_save
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3906$as_echo_n "checking for suffix of executables... " >&6; }
3907if { { ac_try="$ac_link"
3908case "(($ac_try" in
3909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910  *) ac_try_echo=$ac_try;;
3911esac
3912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913$as_echo "$ac_try_echo"; } >&5
3914  (eval "$ac_link") 2>&5
3915  ac_status=$?
3916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917  test $ac_status = 0; }; then :
3918  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3919# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3920# work properly (i.e., refer to `conftest.exe'), while it won't with
3921# `rm'.
3922for ac_file in conftest.exe conftest conftest.*; do
3923  test -f "$ac_file" || continue
3924  case $ac_file in
3925    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3926    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927	  break;;
3928    * ) break;;
3929  esac
3930done
3931else
3932  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937rm -f conftest conftest$ac_cv_exeext
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3939$as_echo "$ac_cv_exeext" >&6; }
3940
3941rm -f conftest.$ac_ext
3942EXEEXT=$ac_cv_exeext
3943ac_exeext=$EXEEXT
3944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945/* end confdefs.h.  */
3946#include <stdio.h>
3947int
3948main ()
3949{
3950FILE *f = fopen ("conftest.out", "w");
3951 return ferror (f) || fclose (f) != 0;
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957ac_clean_files="$ac_clean_files conftest.out"
3958# Check that the compiler produces executables we can run.  If not, either
3959# the compiler is broken, or we cross compile.
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3961$as_echo_n "checking whether we are cross compiling... " >&6; }
3962if test "$cross_compiling" != yes; then
3963  { { ac_try="$ac_link"
3964case "(($ac_try" in
3965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966  *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970  (eval "$ac_link") 2>&5
3971  ac_status=$?
3972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973  test $ac_status = 0; }
3974  if { ac_try='./conftest$ac_cv_exeext'
3975  { { case "(($ac_try" in
3976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977  *) ac_try_echo=$ac_try;;
3978esac
3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980$as_echo "$ac_try_echo"; } >&5
3981  (eval "$ac_try") 2>&5
3982  ac_status=$?
3983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984  test $ac_status = 0; }; }; then
3985    cross_compiling=no
3986  else
3987    if test "$cross_compiling" = maybe; then
3988	cross_compiling=yes
3989    else
3990	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992as_fn_error $? "cannot run C compiled programs.
3993If you meant to cross compile, use \`--host'.
3994See \`config.log' for more details" "$LINENO" 5; }
3995    fi
3996  fi
3997fi
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999$as_echo "$cross_compiling" >&6; }
4000
4001rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4002ac_clean_files=$ac_clean_files_save
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4004$as_echo_n "checking for suffix of object files... " >&6; }
4005if ${ac_cv_objext+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010
4011int
4012main ()
4013{
4014
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019rm -f conftest.o conftest.obj
4020if { { ac_try="$ac_compile"
4021case "(($ac_try" in
4022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023  *) ac_try_echo=$ac_try;;
4024esac
4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026$as_echo "$ac_try_echo"; } >&5
4027  (eval "$ac_compile") 2>&5
4028  ac_status=$?
4029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030  test $ac_status = 0; }; then :
4031  for ac_file in conftest.o conftest.obj conftest.*; do
4032  test -f "$ac_file" || continue;
4033  case $ac_file in
4034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4035    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036       break;;
4037  esac
4038done
4039else
4040  $as_echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045as_fn_error $? "cannot compute suffix of object files: cannot compile
4046See \`config.log' for more details" "$LINENO" 5; }
4047fi
4048rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4051$as_echo "$ac_cv_objext" >&6; }
4052OBJEXT=$ac_cv_objext
4053ac_objext=$OBJEXT
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4055$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4056if ${ac_cv_c_compiler_gnu+:} false; then :
4057  $as_echo_n "(cached) " >&6
4058else
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061
4062int
4063main ()
4064{
4065#ifndef __GNUC__
4066       choke me
4067#endif
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then :
4074  ac_compiler_gnu=yes
4075else
4076  ac_compiler_gnu=no
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079ac_cv_c_compiler_gnu=$ac_compiler_gnu
4080
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4083$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084if test $ac_compiler_gnu = yes; then
4085  GCC=yes
4086else
4087  GCC=
4088fi
4089ac_test_CFLAGS=${CFLAGS+set}
4090ac_save_CFLAGS=$CFLAGS
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4092$as_echo_n "checking whether $CC accepts -g... " >&6; }
4093if ${ac_cv_prog_cc_g+:} false; then :
4094  $as_echo_n "(cached) " >&6
4095else
4096  ac_save_c_werror_flag=$ac_c_werror_flag
4097   ac_c_werror_flag=yes
4098   ac_cv_prog_cc_g=no
4099   CFLAGS="-g"
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112  ac_cv_prog_cc_g=yes
4113else
4114  CFLAGS=""
4115      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127
4128else
4129  ac_c_werror_flag=$ac_save_c_werror_flag
4130	 CFLAGS="-g"
4131	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133
4134int
4135main ()
4136{
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"; then :
4143  ac_cv_prog_cc_g=yes
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146fi
4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148fi
4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150   ac_c_werror_flag=$ac_save_c_werror_flag
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4153$as_echo "$ac_cv_prog_cc_g" >&6; }
4154if test "$ac_test_CFLAGS" = set; then
4155  CFLAGS=$ac_save_CFLAGS
4156elif test $ac_cv_prog_cc_g = yes; then
4157  if test "$GCC" = yes; then
4158    CFLAGS="-g -O2"
4159  else
4160    CFLAGS="-g"
4161  fi
4162else
4163  if test "$GCC" = yes; then
4164    CFLAGS="-O2"
4165  else
4166    CFLAGS=
4167  fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4170$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4171if ${ac_cv_prog_cc_c89+:} false; then :
4172  $as_echo_n "(cached) " >&6
4173else
4174  ac_cv_prog_cc_c89=no
4175ac_save_CC=$CC
4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178#include <stdarg.h>
4179#include <stdio.h>
4180struct stat;
4181/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4182struct buf { int x; };
4183FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184static char *e (p, i)
4185     char **p;
4186     int i;
4187{
4188  return p[i];
4189}
4190static char *f (char * (*g) (char **, int), char **p, ...)
4191{
4192  char *s;
4193  va_list v;
4194  va_start (v,p);
4195  s = g (p, va_arg (v,int));
4196  va_end (v);
4197  return s;
4198}
4199
4200/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4201   function prototypes and stuff, but not '\xHH' hex character constants.
4202   These don't provoke an error unfortunately, instead are silently treated
4203   as 'x'.  The following induces an error, until -std is added to get
4204   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4205   array size at least.  It's necessary to write '\x00'==0 to get something
4206   that's true only with -std.  */
4207int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4208
4209/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210   inside strings and character constants.  */
4211#define FOO(x) 'x'
4212int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4213
4214int test (int i, double x);
4215struct s1 {int (*f) (int a);};
4216struct s2 {int (*f) (double a);};
4217int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218int argc;
4219char **argv;
4220int
4221main ()
4222{
4223return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4230do
4231  CC="$ac_save_CC $ac_arg"
4232  if ac_fn_c_try_compile "$LINENO"; then :
4233  ac_cv_prog_cc_c89=$ac_arg
4234fi
4235rm -f core conftest.err conftest.$ac_objext
4236  test "x$ac_cv_prog_cc_c89" != "xno" && break
4237done
4238rm -f conftest.$ac_ext
4239CC=$ac_save_CC
4240
4241fi
4242# AC_CACHE_VAL
4243case "x$ac_cv_prog_cc_c89" in
4244  x)
4245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246$as_echo "none needed" >&6; } ;;
4247  xno)
4248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249$as_echo "unsupported" >&6; } ;;
4250  *)
4251    CC="$CC $ac_cv_prog_cc_c89"
4252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4254esac
4255if test "x$ac_cv_prog_cc_c89" != xno; then :
4256
4257fi
4258
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264
4265ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4271$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4272if ${am_cv_prog_cc_c_o+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277
4278int
4279main ()
4280{
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286  # Make sure it works both with $CC and with simple cc.
4287  # Following AC_PROG_CC_C_O, we do the test twice because some
4288  # compilers refuse to overwrite an existing .o file with -o,
4289  # though they will create one.
4290  am_cv_prog_cc_c_o=yes
4291  for am_i in 1 2; do
4292    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } \
4297         && test -f conftest2.$ac_objext; then
4298      : OK
4299    else
4300      am_cv_prog_cc_c_o=no
4301      break
4302    fi
4303  done
4304  rm -f core conftest*
4305  unset am_i
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308$as_echo "$am_cv_prog_cc_c_o" >&6; }
4309if test "$am_cv_prog_cc_c_o" != yes; then
4310   # Losing compiler, so override with the script.
4311   # FIXME: It is wrong to rewrite CC.
4312   # But if we don't then we get into trouble of one sort or another.
4313   # A longer-term fix would be to have automake use am__CC in this case,
4314   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315   CC="$am_aux_dir/compile $CC"
4316fi
4317ac_ext=c
4318ac_cpp='$CPP $CPPFLAGS'
4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323DEPDIR="${am__leading_dot}deps"
4324
4325ac_config_commands="$ac_config_commands depfiles"
4326
4327
4328am_make=${MAKE-make}
4329cat > confinc << 'END'
4330am__doit:
4331	@echo this is the am__doit target
4332.PHONY: am__doit
4333END
4334# If we don't find an include directive, just comment out the code.
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4336$as_echo_n "checking for style of include used by $am_make... " >&6; }
4337am__include="#"
4338am__quote=
4339_am_result=none
4340# First try GNU make style include.
4341echo "include confinc" > confmf
4342# Ignore all kinds of additional output from 'make'.
4343case `$am_make -s -f confmf 2> /dev/null` in #(
4344*the\ am__doit\ target*)
4345  am__include=include
4346  am__quote=
4347  _am_result=GNU
4348  ;;
4349esac
4350# Now try BSD make style include.
4351if test "$am__include" = "#"; then
4352   echo '.include "confinc"' > confmf
4353   case `$am_make -s -f confmf 2> /dev/null` in #(
4354   *the\ am__doit\ target*)
4355     am__include=.include
4356     am__quote="\""
4357     _am_result=BSD
4358     ;;
4359   esac
4360fi
4361
4362
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4364$as_echo "$_am_result" >&6; }
4365rm -f confinc confmf
4366
4367# Check whether --enable-dependency-tracking was given.
4368if test "${enable_dependency_tracking+set}" = set; then :
4369  enableval=$enable_dependency_tracking;
4370fi
4371
4372if test "x$enable_dependency_tracking" != xno; then
4373  am_depcomp="$ac_aux_dir/depcomp"
4374  AMDEPBACKSLASH='\'
4375  am__nodep='_no'
4376fi
4377 if test "x$enable_dependency_tracking" != xno; then
4378  AMDEP_TRUE=
4379  AMDEP_FALSE='#'
4380else
4381  AMDEP_TRUE='#'
4382  AMDEP_FALSE=
4383fi
4384
4385
4386
4387depcc="$CC"   am_compiler_list=
4388
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4390$as_echo_n "checking dependency style of $depcc... " >&6; }
4391if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4395  # We make a subdir and do the tests there.  Otherwise we can end up
4396  # making bogus files that we don't know about and never remove.  For
4397  # instance it was reported that on HP-UX the gcc test will end up
4398  # making a dummy file named 'D' -- because '-MD' means "put the output
4399  # in D".
4400  rm -rf conftest.dir
4401  mkdir conftest.dir
4402  # Copy depcomp to subdir because otherwise we won't find it if we're
4403  # using a relative directory.
4404  cp "$am_depcomp" conftest.dir
4405  cd conftest.dir
4406  # We will build objects and dependencies in a subdirectory because
4407  # it helps to detect inapplicable dependency modes.  For instance
4408  # both Tru64's cc and ICC support -MD to output dependencies as a
4409  # side effect of compilation, but ICC will put the dependencies in
4410  # the current directory while Tru64 will put them in the object
4411  # directory.
4412  mkdir sub
4413
4414  am_cv_CC_dependencies_compiler_type=none
4415  if test "$am_compiler_list" = ""; then
4416     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4417  fi
4418  am__universal=false
4419  case " $depcc " in #(
4420     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4421     esac
4422
4423  for depmode in $am_compiler_list; do
4424    # Setup a source with many dependencies, because some compilers
4425    # like to wrap large dependency lists on column 80 (with \), and
4426    # we should not choose a depcomp mode which is confused by this.
4427    #
4428    # We need to recreate these files for each test, as the compiler may
4429    # overwrite some of them when testing with obscure command lines.
4430    # This happens at least with the AIX C compiler.
4431    : > sub/conftest.c
4432    for i in 1 2 3 4 5 6; do
4433      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4434      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4435      # Solaris 10 /bin/sh.
4436      echo '/* dummy */' > sub/conftst$i.h
4437    done
4438    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4439
4440    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4441    # mode.  It turns out that the SunPro C++ compiler does not properly
4442    # handle '-M -o', and we need to detect this.  Also, some Intel
4443    # versions had trouble with output in subdirs.
4444    am__obj=sub/conftest.${OBJEXT-o}
4445    am__minus_obj="-o $am__obj"
4446    case $depmode in
4447    gcc)
4448      # This depmode causes a compiler race in universal mode.
4449      test "$am__universal" = false || continue
4450      ;;
4451    nosideeffect)
4452      # After this tag, mechanisms are not by side-effect, so they'll
4453      # only be used when explicitly requested.
4454      if test "x$enable_dependency_tracking" = xyes; then
4455	continue
4456      else
4457	break
4458      fi
4459      ;;
4460    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4461      # This compiler won't grok '-c -o', but also, the minuso test has
4462      # not run yet.  These depmodes are late enough in the game, and
4463      # so weak that their functioning should not be impacted.
4464      am__obj=conftest.${OBJEXT-o}
4465      am__minus_obj=
4466      ;;
4467    none) break ;;
4468    esac
4469    if depmode=$depmode \
4470       source=sub/conftest.c object=$am__obj \
4471       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4472       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4473         >/dev/null 2>conftest.err &&
4474       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4475       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4476       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4477       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4478      # icc doesn't choke on unknown options, it will just issue warnings
4479      # or remarks (even with -Werror).  So we grep stderr for any message
4480      # that says an option was ignored or not supported.
4481      # When given -MP, icc 7.0 and 7.1 complain thusly:
4482      #   icc: Command line warning: ignoring option '-M'; no argument required
4483      # The diagnosis changed in icc 8.0:
4484      #   icc: Command line remark: option '-MP' not supported
4485      if (grep 'ignoring option' conftest.err ||
4486          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4487        am_cv_CC_dependencies_compiler_type=$depmode
4488        break
4489      fi
4490    fi
4491  done
4492
4493  cd ..
4494  rm -rf conftest.dir
4495else
4496  am_cv_CC_dependencies_compiler_type=none
4497fi
4498
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4501$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4503
4504 if
4505  test "x$enable_dependency_tracking" != xno \
4506  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4507  am__fastdepCC_TRUE=
4508  am__fastdepCC_FALSE='#'
4509else
4510  am__fastdepCC_TRUE='#'
4511  am__fastdepCC_FALSE=
4512fi
4513
4514
4515
4516
4517
4518  ansi=
4519  if test -z "$ansi"; then
4520    msg="for C compiler warning flags"
4521  else
4522    msg="for C compiler warning and ANSI conformance flags"
4523  fi
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4525$as_echo_n "checking $msg... " >&6; }
4526if ${vl_cv_prog_cc_warnings+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529
4530    if test -n "$CC"; then
4531      cat > conftest.c <<EOF
4532int main(int argc, char **argv) { return 0; }
4533EOF
4534
4535            if test "$GCC" = "yes"; then
4536        if test -z "$ansi"; then
4537          vl_cv_prog_cc_warnings="-Wall -W"
4538        else
4539          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4540        fi
4541
4542
4543            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4544           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4545           test -f conftest.o; then
4546        if test -z "$ansi"; then
4547          vl_cv_prog_cc_warnings="-v"
4548        else
4549          vl_cv_prog_cc_warnings="-v -Xc"
4550        fi
4551
4552            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4553           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4554           test -f conftest.o; then
4555        if test -z "$ansi"; then
4556          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4557        else
4558          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4559        fi
4560
4561            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4562           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4563           test -f conftest.o; then
4564        if test -z "$ansi"; then
4565          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4566        else
4567          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4568        fi
4569
4570            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4571           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4572           test -f conftest.o; then
4573        if test -z "$ansi"; then
4574          vl_cv_prog_cc_warnings="-fullwarn"
4575        else
4576          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4577        fi
4578
4579            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4580           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4581           test -f conftest.o; then
4582        if test -z "$ansi"; then
4583          vl_cv_prog_cc_warnings="+w1"
4584        else
4585          vl_cv_prog_cc_warnings="+w1 -Aa"
4586        fi
4587
4588            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4589           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4590           test -f conftest.o; then
4591        if test -z "$ansi"; then
4592          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4593        else
4594          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4595        fi
4596
4597            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4598           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4599           test -f conftest.o; then
4600        if test -z "$ansi"; then
4601          vl_cv_prog_cc_warnings="-h msglevel 2"
4602        else
4603          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4604        fi
4605
4606      fi
4607      rm -f conftest.*
4608    fi
4609    if test -n "$vl_cv_prog_cc_warnings"; then
4610      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4611    else
4612      vl_cv_prog_cc_warnings="unknown"
4613    fi
4614
4615fi
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4617$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4618
4619
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4622$as_echo_n "checking whether ln -s works... " >&6; }
4623LN_S=$as_ln_s
4624if test "$LN_S" = "ln -s"; then
4625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4626$as_echo "yes" >&6; }
4627else
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4629$as_echo "no, using $LN_S" >&6; }
4630fi
4631
4632
4633
4634# Check if LD supports linker scripts, and define automake conditional
4635# HAVE_LD_VERSION_SCRIPT if so.  This functionality is currently
4636# constrained to compilers using GNU ld on ELF systems or systems
4637# which provide an adequate emulation thereof.
4638# Check whether --enable-ld-version-script was given.
4639if test "${enable_ld_version_script+set}" = set; then :
4640  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4641else
4642  have_ld_version_script=no
4643fi
4644
4645if test "$have_ld_version_script" != no; then
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4647$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4648  save_LDFLAGS="$LDFLAGS"
4649  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4650  cat > conftest.map <<EOF
4651VERS_1 {
4652        global: sym;
4653};
4654
4655VERS_2 {
4656        global: sym;
4657} VERS_1;
4658EOF
4659
4660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h.  */
4662
4663int
4664main ()
4665{
4666
4667  ;
4668  return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_link "$LINENO"; then :
4672  have_ld_version_script=yes
4673else
4674  have_ld_version_script=no
4675fi
4676rm -f core conftest.err conftest.$ac_objext \
4677    conftest$ac_exeext conftest.$ac_ext
4678  rm -f conftest.map
4679  LDFLAGS="$save_LDFLAGS"
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4681$as_echo "$have_ld_version_script" >&6; }
4682fi
4683 if test "$have_ld_version_script" = "yes"; then
4684  HAVE_LD_VERSION_SCRIPT_TRUE=
4685  HAVE_LD_VERSION_SCRIPT_FALSE='#'
4686else
4687  HAVE_LD_VERSION_SCRIPT_TRUE='#'
4688  HAVE_LD_VERSION_SCRIPT_FALSE=
4689fi
4690
4691
4692
4693
4694
4695
4696case `pwd` in
4697  *\ * | *\	*)
4698    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4699$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4700esac
4701
4702
4703
4704macro_version='2.4.4'
4705macro_revision='2.4.4'
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719ltmain=$ac_aux_dir/ltmain.sh
4720
4721# Backslashify metacharacters that are still active within
4722# double-quoted strings.
4723sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4724
4725# Same as above, but do not quote variable references.
4726double_quote_subst='s/\(["`\\]\)/\\\1/g'
4727
4728# Sed substitution to delay expansion of an escaped shell variable in a
4729# double_quote_subst'ed string.
4730delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4731
4732# Sed substitution to delay expansion of an escaped single quote.
4733delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4734
4735# Sed substitution to avoid accidental globbing in evaled expressions
4736no_glob_subst='s/\*/\\\*/g'
4737
4738ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4739ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4740ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4743$as_echo_n "checking how to print strings... " >&6; }
4744# Test print first, because it will be a builtin if present.
4745if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4746   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4747  ECHO='print -r --'
4748elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4749  ECHO='printf %s\n'
4750else
4751  # Use this function as a fallback that always works.
4752  func_fallback_echo ()
4753  {
4754    eval 'cat <<_LTECHO_EOF
4755$1
4756_LTECHO_EOF'
4757  }
4758  ECHO='func_fallback_echo'
4759fi
4760
4761# func_echo_all arg...
4762# Invoke $ECHO with all args, space-separated.
4763func_echo_all ()
4764{
4765    $ECHO ""
4766}
4767
4768case $ECHO in
4769  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4770$as_echo "printf" >&6; } ;;
4771  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4772$as_echo "print -r" >&6; } ;;
4773  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4774$as_echo "cat" >&6; } ;;
4775esac
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792if ${ac_cv_path_SED+:} false; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796     for ac_i in 1 2 3 4 5 6 7; do
4797       ac_script="$ac_script$as_nl$ac_script"
4798     done
4799     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800     { ac_script=; unset ac_script;}
4801     if test -z "$SED"; then
4802  ac_path_SED_found=false
4803  # Loop through the user's path and test for each of PROGNAME-LIST
4804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807  IFS=$as_save_IFS
4808  test -z "$as_dir" && as_dir=.
4809    for ac_prog in sed gsed; do
4810    for ac_exec_ext in '' $ac_executable_extensions; do
4811      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812      as_fn_executable_p "$ac_path_SED" || continue
4813# Check for GNU ac_path_SED and select it if it is found.
4814  # Check for GNU $ac_path_SED
4815case `"$ac_path_SED" --version 2>&1` in
4816*GNU*)
4817  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818*)
4819  ac_count=0
4820  $as_echo_n 0123456789 >"conftest.in"
4821  while :
4822  do
4823    cat "conftest.in" "conftest.in" >"conftest.tmp"
4824    mv "conftest.tmp" "conftest.in"
4825    cp "conftest.in" "conftest.nl"
4826    $as_echo '' >> "conftest.nl"
4827    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829    as_fn_arith $ac_count + 1 && ac_count=$as_val
4830    if test $ac_count -gt ${ac_path_SED_max-0}; then
4831      # Best one so far, save it but keep looking for a better one
4832      ac_cv_path_SED="$ac_path_SED"
4833      ac_path_SED_max=$ac_count
4834    fi
4835    # 10*(2^10) chars as input seems more than enough
4836    test $ac_count -gt 10 && break
4837  done
4838  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839esac
4840
4841      $ac_path_SED_found && break 3
4842    done
4843  done
4844  done
4845IFS=$as_save_IFS
4846  if test -z "$ac_cv_path_SED"; then
4847    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4848  fi
4849else
4850  ac_cv_path_SED=$SED
4851fi
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855$as_echo "$ac_cv_path_SED" >&6; }
4856 SED="$ac_cv_path_SED"
4857  rm -f conftest.sed
4858
4859test -z "$SED" && SED=sed
4860Xsed="$SED -e 1s/^X//"
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4873$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4874if ${ac_cv_path_GREP+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  if test -z "$GREP"; then
4878  ac_path_GREP_found=false
4879  # Loop through the user's path and test for each of PROGNAME-LIST
4880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882do
4883  IFS=$as_save_IFS
4884  test -z "$as_dir" && as_dir=.
4885    for ac_prog in grep ggrep; do
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4888      as_fn_executable_p "$ac_path_GREP" || continue
4889# Check for GNU ac_path_GREP and select it if it is found.
4890  # Check for GNU $ac_path_GREP
4891case `"$ac_path_GREP" --version 2>&1` in
4892*GNU*)
4893  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4894*)
4895  ac_count=0
4896  $as_echo_n 0123456789 >"conftest.in"
4897  while :
4898  do
4899    cat "conftest.in" "conftest.in" >"conftest.tmp"
4900    mv "conftest.tmp" "conftest.in"
4901    cp "conftest.in" "conftest.nl"
4902    $as_echo 'GREP' >> "conftest.nl"
4903    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905    as_fn_arith $ac_count + 1 && ac_count=$as_val
4906    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4907      # Best one so far, save it but keep looking for a better one
4908      ac_cv_path_GREP="$ac_path_GREP"
4909      ac_path_GREP_max=$ac_count
4910    fi
4911    # 10*(2^10) chars as input seems more than enough
4912    test $ac_count -gt 10 && break
4913  done
4914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915esac
4916
4917      $ac_path_GREP_found && break 3
4918    done
4919  done
4920  done
4921IFS=$as_save_IFS
4922  if test -z "$ac_cv_path_GREP"; then
4923    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924  fi
4925else
4926  ac_cv_path_GREP=$GREP
4927fi
4928
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4931$as_echo "$ac_cv_path_GREP" >&6; }
4932 GREP="$ac_cv_path_GREP"
4933
4934
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4936$as_echo_n "checking for egrep... " >&6; }
4937if ${ac_cv_path_EGREP+:} false; then :
4938  $as_echo_n "(cached) " >&6
4939else
4940  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4941   then ac_cv_path_EGREP="$GREP -E"
4942   else
4943     if test -z "$EGREP"; then
4944  ac_path_EGREP_found=false
4945  # Loop through the user's path and test for each of PROGNAME-LIST
4946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948do
4949  IFS=$as_save_IFS
4950  test -z "$as_dir" && as_dir=.
4951    for ac_prog in egrep; do
4952    for ac_exec_ext in '' $ac_executable_extensions; do
4953      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4954      as_fn_executable_p "$ac_path_EGREP" || continue
4955# Check for GNU ac_path_EGREP and select it if it is found.
4956  # Check for GNU $ac_path_EGREP
4957case `"$ac_path_EGREP" --version 2>&1` in
4958*GNU*)
4959  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4960*)
4961  ac_count=0
4962  $as_echo_n 0123456789 >"conftest.in"
4963  while :
4964  do
4965    cat "conftest.in" "conftest.in" >"conftest.tmp"
4966    mv "conftest.tmp" "conftest.in"
4967    cp "conftest.in" "conftest.nl"
4968    $as_echo 'EGREP' >> "conftest.nl"
4969    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971    as_fn_arith $ac_count + 1 && ac_count=$as_val
4972    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4973      # Best one so far, save it but keep looking for a better one
4974      ac_cv_path_EGREP="$ac_path_EGREP"
4975      ac_path_EGREP_max=$ac_count
4976    fi
4977    # 10*(2^10) chars as input seems more than enough
4978    test $ac_count -gt 10 && break
4979  done
4980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981esac
4982
4983      $ac_path_EGREP_found && break 3
4984    done
4985  done
4986  done
4987IFS=$as_save_IFS
4988  if test -z "$ac_cv_path_EGREP"; then
4989    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990  fi
4991else
4992  ac_cv_path_EGREP=$EGREP
4993fi
4994
4995   fi
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4998$as_echo "$ac_cv_path_EGREP" >&6; }
4999 EGREP="$ac_cv_path_EGREP"
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003$as_echo_n "checking for fgrep... " >&6; }
5004if ${ac_cv_path_FGREP+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5008   then ac_cv_path_FGREP="$GREP -F"
5009   else
5010     if test -z "$FGREP"; then
5011  ac_path_FGREP_found=false
5012  # Loop through the user's path and test for each of PROGNAME-LIST
5013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018    for ac_prog in fgrep; do
5019    for ac_exec_ext in '' $ac_executable_extensions; do
5020      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5021      as_fn_executable_p "$ac_path_FGREP" || continue
5022# Check for GNU ac_path_FGREP and select it if it is found.
5023  # Check for GNU $ac_path_FGREP
5024case `"$ac_path_FGREP" --version 2>&1` in
5025*GNU*)
5026  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027*)
5028  ac_count=0
5029  $as_echo_n 0123456789 >"conftest.in"
5030  while :
5031  do
5032    cat "conftest.in" "conftest.in" >"conftest.tmp"
5033    mv "conftest.tmp" "conftest.in"
5034    cp "conftest.in" "conftest.nl"
5035    $as_echo 'FGREP' >> "conftest.nl"
5036    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038    as_fn_arith $ac_count + 1 && ac_count=$as_val
5039    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040      # Best one so far, save it but keep looking for a better one
5041      ac_cv_path_FGREP="$ac_path_FGREP"
5042      ac_path_FGREP_max=$ac_count
5043    fi
5044    # 10*(2^10) chars as input seems more than enough
5045    test $ac_count -gt 10 && break
5046  done
5047  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048esac
5049
5050      $ac_path_FGREP_found && break 3
5051    done
5052  done
5053  done
5054IFS=$as_save_IFS
5055  if test -z "$ac_cv_path_FGREP"; then
5056    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057  fi
5058else
5059  ac_cv_path_FGREP=$FGREP
5060fi
5061
5062   fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5065$as_echo "$ac_cv_path_FGREP" >&6; }
5066 FGREP="$ac_cv_path_FGREP"
5067
5068
5069test -z "$GREP" && GREP=grep
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089# Check whether --with-gnu-ld was given.
5090if test "${with_gnu_ld+set}" = set; then :
5091  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5092else
5093  with_gnu_ld=no
5094fi
5095
5096ac_prog=ld
5097if test yes = "$GCC"; then
5098  # Check if gcc -print-prog-name=ld gives a path.
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100$as_echo_n "checking for ld used by $CC... " >&6; }
5101  case $host in
5102  *-*-mingw*)
5103    # gcc leaves a trailing carriage return, which upsets mingw
5104    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105  *)
5106    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107  esac
5108  case $ac_prog in
5109    # Accept absolute paths.
5110    [\\/]* | ?:[\\/]*)
5111      re_direlt='/[^/][^/]*/\.\./'
5112      # Canonicalize the pathname of ld
5113      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5116      done
5117      test -z "$LD" && LD=$ac_prog
5118      ;;
5119  "")
5120    # If it fails, then pretend we aren't using GCC.
5121    ac_prog=ld
5122    ;;
5123  *)
5124    # If it is relative, then search for the first ld in PATH.
5125    with_gnu_ld=unknown
5126    ;;
5127  esac
5128elif test yes = "$with_gnu_ld"; then
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130$as_echo_n "checking for GNU ld... " >&6; }
5131else
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133$as_echo_n "checking for non-GNU ld... " >&6; }
5134fi
5135if ${lt_cv_path_LD+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -z "$LD"; then
5139  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140  for ac_dir in $PATH; do
5141    IFS=$lt_save_ifs
5142    test -z "$ac_dir" && ac_dir=.
5143    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144      lt_cv_path_LD=$ac_dir/$ac_prog
5145      # Check to see if the program is GNU ld.  I'd rather use --version,
5146      # but apparently some variants of GNU ld only accept -v.
5147      # Break only if it was the GNU/non-GNU ld that we prefer.
5148      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149      *GNU* | *'with BFD'*)
5150	test no != "$with_gnu_ld" && break
5151	;;
5152      *)
5153	test yes != "$with_gnu_ld" && break
5154	;;
5155      esac
5156    fi
5157  done
5158  IFS=$lt_save_ifs
5159else
5160  lt_cv_path_LD=$LD # Let the user override the test with a path.
5161fi
5162fi
5163
5164LD=$lt_cv_path_LD
5165if test -n "$LD"; then
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167$as_echo "$LD" >&6; }
5168else
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5175if ${lt_cv_prog_gnu_ld+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5179case `$LD -v 2>&1 </dev/null` in
5180*GNU* | *'with BFD'*)
5181  lt_cv_prog_gnu_ld=yes
5182  ;;
5183*)
5184  lt_cv_prog_gnu_ld=no
5185  ;;
5186esac
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5189$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5190with_gnu_ld=$lt_cv_prog_gnu_ld
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5201$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5202if ${lt_cv_path_NM+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  if test -n "$NM"; then
5206  # Let the user override the test.
5207  lt_cv_path_NM=$NM
5208else
5209  lt_nm_to_check=${ac_tool_prefix}nm
5210  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5211    lt_nm_to_check="$lt_nm_to_check nm"
5212  fi
5213  for lt_tmp_nm in $lt_nm_to_check; do
5214    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5215    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5216      IFS=$lt_save_ifs
5217      test -z "$ac_dir" && ac_dir=.
5218      tmp_nm=$ac_dir/$lt_tmp_nm
5219      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5220	# Check to see if the nm accepts a BSD-compat flag.
5221	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5222	#   nm: unknown option "B" ignored
5223	# Tru64's nm complains that /dev/null is an invalid object file
5224	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5225	case $build_os in
5226	mingw*) lt_bad_file=conftest.nm/nofile ;;
5227	*) lt_bad_file=/dev/null ;;
5228	esac
5229	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5230	*$lt_bad_file* | *'Invalid file or object type'*)
5231	  lt_cv_path_NM="$tmp_nm -B"
5232	  break 2
5233	  ;;
5234	*)
5235	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5236	  */dev/null*)
5237	    lt_cv_path_NM="$tmp_nm -p"
5238	    break 2
5239	    ;;
5240	  *)
5241	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5242	    continue # so that we can try to find one that supports BSD flags
5243	    ;;
5244	  esac
5245	  ;;
5246	esac
5247      fi
5248    done
5249    IFS=$lt_save_ifs
5250  done
5251  : ${lt_cv_path_NM=no}
5252fi
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5255$as_echo "$lt_cv_path_NM" >&6; }
5256if test no != "$lt_cv_path_NM"; then
5257  NM=$lt_cv_path_NM
5258else
5259  # Didn't find any BSD compatible name lister, look for dumpbin.
5260  if test -n "$DUMPBIN"; then :
5261    # Let the user override the test.
5262  else
5263    if test -n "$ac_tool_prefix"; then
5264  for ac_prog in dumpbin "link -dump"
5265  do
5266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_DUMPBIN+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  if test -n "$DUMPBIN"; then
5274  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288  done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293DUMPBIN=$ac_cv_prog_DUMPBIN
5294if test -n "$DUMPBIN"; then
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5296$as_echo "$DUMPBIN" >&6; }
5297else
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300fi
5301
5302
5303    test -n "$DUMPBIN" && break
5304  done
5305fi
5306if test -z "$DUMPBIN"; then
5307  ac_ct_DUMPBIN=$DUMPBIN
5308  for ac_prog in dumpbin "link -dump"
5309do
5310  # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -n "$ac_ct_DUMPBIN"; then
5318  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_exec_ext in '' $ac_executable_extensions; do
5326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332  done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5338if test -n "$ac_ct_DUMPBIN"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5340$as_echo "$ac_ct_DUMPBIN" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347  test -n "$ac_ct_DUMPBIN" && break
5348done
5349
5350  if test "x$ac_ct_DUMPBIN" = x; then
5351    DUMPBIN=":"
5352  else
5353    case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357ac_tool_warned=yes ;;
5358esac
5359    DUMPBIN=$ac_ct_DUMPBIN
5360  fi
5361fi
5362
5363    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5364    *COFF*)
5365      DUMPBIN="$DUMPBIN -symbols -headers"
5366      ;;
5367    *)
5368      DUMPBIN=:
5369      ;;
5370    esac
5371  fi
5372
5373  if test : != "$DUMPBIN"; then
5374    NM=$DUMPBIN
5375  fi
5376fi
5377test -z "$NM" && NM=nm
5378
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5385$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5386if ${lt_cv_nm_interface+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  lt_cv_nm_interface="BSD nm"
5390  echo "int some_variable = 0;" > conftest.$ac_ext
5391  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5392  (eval "$ac_compile" 2>conftest.err)
5393  cat conftest.err >&5
5394  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5395  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5396  cat conftest.err >&5
5397  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5398  cat conftest.out >&5
5399  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5400    lt_cv_nm_interface="MS dumpbin"
5401  fi
5402  rm -f conftest*
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5405$as_echo "$lt_cv_nm_interface" >&6; }
5406
5407# find the maximum length of command line arguments
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5409$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5410if ${lt_cv_sys_max_cmd_len+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413    i=0
5414  teststring=ABCD
5415
5416  case $build_os in
5417  msdosdjgpp*)
5418    # On DJGPP, this test can blow up pretty badly due to problems in libc
5419    # (any single argument exceeding 2000 bytes causes a buffer overrun
5420    # during glob expansion).  Even if it were fixed, the result of this
5421    # check would be larger than it should be.
5422    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5423    ;;
5424
5425  gnu*)
5426    # Under GNU Hurd, this test is not required because there is
5427    # no limit to the length of command line arguments.
5428    # Libtool will interpret -1 as no limit whatsoever
5429    lt_cv_sys_max_cmd_len=-1;
5430    ;;
5431
5432  cygwin* | mingw* | cegcc*)
5433    # On Win9x/ME, this test blows up -- it succeeds, but takes
5434    # about 5 minutes as the teststring grows exponentially.
5435    # Worse, since 9x/ME are not pre-emptively multitasking,
5436    # you end up with a "frozen" computer, even though with patience
5437    # the test eventually succeeds (with a max line length of 256k).
5438    # Instead, let's just punt: use the minimum linelength reported by
5439    # all of the supported platforms: 8192 (on NT/2K/XP).
5440    lt_cv_sys_max_cmd_len=8192;
5441    ;;
5442
5443  mint*)
5444    # On MiNT this can take a long time and run out of memory.
5445    lt_cv_sys_max_cmd_len=8192;
5446    ;;
5447
5448  amigaos*)
5449    # On AmigaOS with pdksh, this test takes hours, literally.
5450    # So we just punt and use a minimum line length of 8192.
5451    lt_cv_sys_max_cmd_len=8192;
5452    ;;
5453
5454  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5455    # This has been around since 386BSD, at least.  Likely further.
5456    if test -x /sbin/sysctl; then
5457      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5458    elif test -x /usr/sbin/sysctl; then
5459      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5460    else
5461      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5462    fi
5463    # And add a safety zone
5464    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5465    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5466    ;;
5467
5468  interix*)
5469    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5470    lt_cv_sys_max_cmd_len=196608
5471    ;;
5472
5473  os2*)
5474    # The test takes a long time on OS/2.
5475    lt_cv_sys_max_cmd_len=8192
5476    ;;
5477
5478  osf*)
5479    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5480    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5481    # nice to cause kernel panics so lets avoid the loop below.
5482    # First set a reasonable default.
5483    lt_cv_sys_max_cmd_len=16384
5484    #
5485    if test -x /sbin/sysconfig; then
5486      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5487        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5488      esac
5489    fi
5490    ;;
5491  sco3.2v5*)
5492    lt_cv_sys_max_cmd_len=102400
5493    ;;
5494  sysv5* | sco5v6* | sysv4.2uw2*)
5495    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5496    if test -n "$kargmax"; then
5497      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5498    else
5499      lt_cv_sys_max_cmd_len=32768
5500    fi
5501    ;;
5502  *)
5503    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5504    if test -n "$lt_cv_sys_max_cmd_len" && \
5505       test undefined != "$lt_cv_sys_max_cmd_len"; then
5506      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5507      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5508    else
5509      # Make teststring a little bigger before we do anything with it.
5510      # a 1K string should be a reasonable start.
5511      for i in 1 2 3 4 5 6 7 8; do
5512        teststring=$teststring$teststring
5513      done
5514      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5515      # If test is not a shell built-in, we'll probably end up computing a
5516      # maximum length that is only half of the actual maximum length, but
5517      # we can't tell.
5518      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5519	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5520	      test 17 != "$i" # 1/2 MB should be enough
5521      do
5522        i=`expr $i + 1`
5523        teststring=$teststring$teststring
5524      done
5525      # Only check the string length outside the loop.
5526      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5527      teststring=
5528      # Add a significant safety factor because C++ compilers can tack on
5529      # massive amounts of additional arguments before passing them to the
5530      # linker.  It appears as though 1/2 is a usable value.
5531      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5532    fi
5533    ;;
5534  esac
5535
5536fi
5537
5538if test -n "$lt_cv_sys_max_cmd_len"; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5540$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5543$as_echo "none" >&6; }
5544fi
5545max_cmd_len=$lt_cv_sys_max_cmd_len
5546
5547
5548
5549
5550
5551
5552: ${CP="cp -f"}
5553: ${MV="mv -f"}
5554: ${RM="rm -f"}
5555
5556if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5557  lt_unset=unset
5558else
5559  lt_unset=false
5560fi
5561
5562
5563
5564
5565
5566# test EBCDIC or ASCII
5567case `echo X|tr X '\101'` in
5568 A) # ASCII based system
5569    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5570  lt_SP2NL='tr \040 \012'
5571  lt_NL2SP='tr \015\012 \040\040'
5572  ;;
5573 *) # EBCDIC based system
5574  lt_SP2NL='tr \100 \n'
5575  lt_NL2SP='tr \r\n \100\100'
5576  ;;
5577esac
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5588$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5589if ${lt_cv_to_host_file_cmd+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  case $host in
5593  *-*-mingw* )
5594    case $build in
5595      *-*-mingw* ) # actually msys
5596        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5597        ;;
5598      *-*-cygwin* )
5599        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5600        ;;
5601      * ) # otherwise, assume *nix
5602        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5603        ;;
5604    esac
5605    ;;
5606  *-*-cygwin* )
5607    case $build in
5608      *-*-mingw* ) # actually msys
5609        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5610        ;;
5611      *-*-cygwin* )
5612        lt_cv_to_host_file_cmd=func_convert_file_noop
5613        ;;
5614      * ) # otherwise, assume *nix
5615        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5616        ;;
5617    esac
5618    ;;
5619  * ) # unhandled hosts (and "normal" native builds)
5620    lt_cv_to_host_file_cmd=func_convert_file_noop
5621    ;;
5622esac
5623
5624fi
5625
5626to_host_file_cmd=$lt_cv_to_host_file_cmd
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5628$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5629
5630
5631
5632
5633
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5635$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5636if ${lt_cv_to_tool_file_cmd+:} false; then :
5637  $as_echo_n "(cached) " >&6
5638else
5639  #assume ordinary cross tools, or native build.
5640lt_cv_to_tool_file_cmd=func_convert_file_noop
5641case $host in
5642  *-*-mingw* )
5643    case $build in
5644      *-*-mingw* ) # actually msys
5645        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5646        ;;
5647    esac
5648    ;;
5649esac
5650
5651fi
5652
5653to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5655$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5656
5657
5658
5659
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5662$as_echo_n "checking for $LD option to reload object files... " >&6; }
5663if ${lt_cv_ld_reload_flag+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  lt_cv_ld_reload_flag='-r'
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5669$as_echo "$lt_cv_ld_reload_flag" >&6; }
5670reload_flag=$lt_cv_ld_reload_flag
5671case $reload_flag in
5672"" | " "*) ;;
5673*) reload_flag=" $reload_flag" ;;
5674esac
5675reload_cmds='$LD$reload_flag -o $output$reload_objs'
5676case $host_os in
5677  cygwin* | mingw* | pw32* | cegcc*)
5678    if test yes != "$GCC"; then
5679      reload_cmds=false
5680    fi
5681    ;;
5682  darwin*)
5683    if test yes = "$GCC"; then
5684      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5685    else
5686      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687    fi
5688    ;;
5689esac
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699if test -n "$ac_tool_prefix"; then
5700  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5701set dummy ${ac_tool_prefix}objdump; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_OBJDUMP+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$OBJDUMP"; then
5708  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722  done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727OBJDUMP=$ac_cv_prog_OBJDUMP
5728if test -n "$OBJDUMP"; then
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5730$as_echo "$OBJDUMP" >&6; }
5731else
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737fi
5738if test -z "$ac_cv_prog_OBJDUMP"; then
5739  ac_ct_OBJDUMP=$OBJDUMP
5740  # Extract the first word of "objdump", so it can be a program name with args.
5741set dummy objdump; ac_word=$2
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743$as_echo_n "checking for $ac_word... " >&6; }
5744if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  if test -n "$ac_ct_OBJDUMP"; then
5748  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755    for ac_exec_ext in '' $ac_executable_extensions; do
5756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5768if test -n "$ac_ct_OBJDUMP"; then
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5770$as_echo "$ac_ct_OBJDUMP" >&6; }
5771else
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773$as_echo "no" >&6; }
5774fi
5775
5776  if test "x$ac_ct_OBJDUMP" = x; then
5777    OBJDUMP="false"
5778  else
5779    case $cross_compiling:$ac_tool_warned in
5780yes:)
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783ac_tool_warned=yes ;;
5784esac
5785    OBJDUMP=$ac_ct_OBJDUMP
5786  fi
5787else
5788  OBJDUMP="$ac_cv_prog_OBJDUMP"
5789fi
5790
5791test -z "$OBJDUMP" && OBJDUMP=objdump
5792
5793
5794
5795
5796
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5799$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5800if ${lt_cv_deplibs_check_method+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  lt_cv_file_magic_cmd='$MAGIC_CMD'
5804lt_cv_file_magic_test_file=
5805lt_cv_deplibs_check_method='unknown'
5806# Need to set the preceding variable on all platforms that support
5807# interlibrary dependencies.
5808# 'none' -- dependencies not supported.
5809# 'unknown' -- same as none, but documents that we really don't know.
5810# 'pass_all' -- all dependencies passed with no checks.
5811# 'test_compile' -- check by making test program.
5812# 'file_magic [[regex]]' -- check by looking for files in library path
5813# that responds to the $file_magic_cmd with a given extended regex.
5814# If you have 'file' or equivalent on your system and you're not sure
5815# whether 'pass_all' will *always* work, you probably want this one.
5816
5817case $host_os in
5818aix[4-9]*)
5819  lt_cv_deplibs_check_method=pass_all
5820  ;;
5821
5822beos*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826bsdi[45]*)
5827  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5828  lt_cv_file_magic_cmd='/usr/bin/file -L'
5829  lt_cv_file_magic_test_file=/shlib/libc.so
5830  ;;
5831
5832cygwin*)
5833  # func_win32_libid is a shell function defined in ltmain.sh
5834  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5835  lt_cv_file_magic_cmd='func_win32_libid'
5836  ;;
5837
5838mingw* | pw32*)
5839  # Base MSYS/MinGW do not provide the 'file' command needed by
5840  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5841  # unless we find 'file', for example because we are cross-compiling.
5842  if ( file / ) >/dev/null 2>&1; then
5843    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5844    lt_cv_file_magic_cmd='func_win32_libid'
5845  else
5846    # Keep this pattern in sync with the one in func_win32_libid.
5847    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5848    lt_cv_file_magic_cmd='$OBJDUMP -f'
5849  fi
5850  ;;
5851
5852cegcc*)
5853  # use the weaker test based on 'objdump'. See mingw*.
5854  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5855  lt_cv_file_magic_cmd='$OBJDUMP -f'
5856  ;;
5857
5858darwin* | rhapsody*)
5859  lt_cv_deplibs_check_method=pass_all
5860  ;;
5861
5862freebsd* | dragonfly*)
5863  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5864    case $host_cpu in
5865    i*86 )
5866      # Not sure whether the presence of OpenBSD here was a mistake.
5867      # Let's accept both of them until this is cleared up.
5868      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5869      lt_cv_file_magic_cmd=/usr/bin/file
5870      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5871      ;;
5872    esac
5873  else
5874    lt_cv_deplibs_check_method=pass_all
5875  fi
5876  ;;
5877
5878haiku*)
5879  lt_cv_deplibs_check_method=pass_all
5880  ;;
5881
5882hpux10.20* | hpux11*)
5883  lt_cv_file_magic_cmd=/usr/bin/file
5884  case $host_cpu in
5885  ia64*)
5886    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5888    ;;
5889  hppa*64*)
5890    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]'
5891    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5892    ;;
5893  *)
5894    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5896    ;;
5897  esac
5898  ;;
5899
5900interix[3-9]*)
5901  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5903  ;;
5904
5905irix5* | irix6* | nonstopux*)
5906  case $LD in
5907  *-32|*"-32 ") libmagic=32-bit;;
5908  *-n32|*"-n32 ") libmagic=N32;;
5909  *-64|*"-64 ") libmagic=64-bit;;
5910  *) libmagic=never-match;;
5911  esac
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915# This must be glibc/ELF.
5916linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5917  lt_cv_deplibs_check_method=pass_all
5918  ;;
5919
5920netbsd*)
5921  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5923  else
5924    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5925  fi
5926  ;;
5927
5928newos6*)
5929  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930  lt_cv_file_magic_cmd=/usr/bin/file
5931  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5932  ;;
5933
5934*nto* | *qnx*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938openbsd* | bitrig*)
5939  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5940    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5941  else
5942    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5943  fi
5944  ;;
5945
5946osf3* | osf4* | osf5*)
5947  lt_cv_deplibs_check_method=pass_all
5948  ;;
5949
5950rdos*)
5951  lt_cv_deplibs_check_method=pass_all
5952  ;;
5953
5954solaris*)
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959  lt_cv_deplibs_check_method=pass_all
5960  ;;
5961
5962sysv4 | sysv4.3*)
5963  case $host_vendor in
5964  motorola)
5965    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]'
5966    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5967    ;;
5968  ncr)
5969    lt_cv_deplibs_check_method=pass_all
5970    ;;
5971  sequent)
5972    lt_cv_file_magic_cmd='/bin/file'
5973    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5974    ;;
5975  sni)
5976    lt_cv_file_magic_cmd='/bin/file'
5977    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978    lt_cv_file_magic_test_file=/lib/libc.so
5979    ;;
5980  siemens)
5981    lt_cv_deplibs_check_method=pass_all
5982    ;;
5983  pc)
5984    lt_cv_deplibs_check_method=pass_all
5985    ;;
5986  esac
5987  ;;
5988
5989tpf*)
5990  lt_cv_deplibs_check_method=pass_all
5991  ;;
5992os2*)
5993  lt_cv_deplibs_check_method=pass_all
5994  ;;
5995esac
5996
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5999$as_echo "$lt_cv_deplibs_check_method" >&6; }
6000
6001file_magic_glob=
6002want_nocaseglob=no
6003if test "$build" = "$host"; then
6004  case $host_os in
6005  mingw* | pw32*)
6006    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6007      want_nocaseglob=yes
6008    else
6009      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6010    fi
6011    ;;
6012  esac
6013fi
6014
6015file_magic_cmd=$lt_cv_file_magic_cmd
6016deplibs_check_method=$lt_cv_deplibs_check_method
6017test -z "$deplibs_check_method" && deplibs_check_method=unknown
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040if test -n "$ac_tool_prefix"; then
6041  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_DLLTOOL+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  if test -n "$DLLTOOL"; then
6049  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056    for ac_exec_ext in '' $ac_executable_extensions; do
6057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063  done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068DLLTOOL=$ac_cv_prog_DLLTOOL
6069if test -n "$DLLTOOL"; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6071$as_echo "$DLLTOOL" >&6; }
6072else
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078fi
6079if test -z "$ac_cv_prog_DLLTOOL"; then
6080  ac_ct_DLLTOOL=$DLLTOOL
6081  # Extract the first word of "dlltool", so it can be a program name with args.
6082set dummy dlltool; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  if test -n "$ac_ct_DLLTOOL"; then
6089  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094  IFS=$as_save_IFS
6095  test -z "$as_dir" && as_dir=.
6096    for ac_exec_ext in '' $ac_executable_extensions; do
6097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100    break 2
6101  fi
6102done
6103  done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6109if test -n "$ac_ct_DLLTOOL"; then
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6111$as_echo "$ac_ct_DLLTOOL" >&6; }
6112else
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117  if test "x$ac_ct_DLLTOOL" = x; then
6118    DLLTOOL="false"
6119  else
6120    case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126    DLLTOOL=$ac_ct_DLLTOOL
6127  fi
6128else
6129  DLLTOOL="$ac_cv_prog_DLLTOOL"
6130fi
6131
6132test -z "$DLLTOOL" && DLLTOOL=dlltool
6133
6134
6135
6136
6137
6138
6139
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6141$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6142if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  lt_cv_sharedlib_from_linklib_cmd='unknown'
6146
6147case $host_os in
6148cygwin* | mingw* | pw32* | cegcc*)
6149  # two different shell functions defined in ltmain.sh;
6150  # decide which one to use based on capabilities of $DLLTOOL
6151  case `$DLLTOOL --help 2>&1` in
6152  *--identify-strict*)
6153    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6154    ;;
6155  *)
6156    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6157    ;;
6158  esac
6159  ;;
6160*)
6161  # fallback: assume linklib IS sharedlib
6162  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6163  ;;
6164esac
6165
6166fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6168$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6169sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6170test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6171
6172
6173
6174
6175
6176
6177
6178if test -n "$ac_tool_prefix"; then
6179  for ac_prog in ar
6180  do
6181    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184$as_echo_n "checking for $ac_word... " >&6; }
6185if ${ac_cv_prog_AR+:} false; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  if test -n "$AR"; then
6189  ac_cv_prog_AR="$AR" # Let the user override the test.
6190else
6191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194  IFS=$as_save_IFS
6195  test -z "$as_dir" && as_dir=.
6196    for ac_exec_ext in '' $ac_executable_extensions; do
6197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200    break 2
6201  fi
6202done
6203  done
6204IFS=$as_save_IFS
6205
6206fi
6207fi
6208AR=$ac_cv_prog_AR
6209if test -n "$AR"; then
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6211$as_echo "$AR" >&6; }
6212else
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
6215fi
6216
6217
6218    test -n "$AR" && break
6219  done
6220fi
6221if test -z "$AR"; then
6222  ac_ct_AR=$AR
6223  for ac_prog in ar
6224do
6225  # Extract the first word of "$ac_prog", so it can be a program name with args.
6226set dummy $ac_prog; ac_word=$2
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228$as_echo_n "checking for $ac_word... " >&6; }
6229if ${ac_cv_prog_ac_ct_AR+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  if test -n "$ac_ct_AR"; then
6233  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238  IFS=$as_save_IFS
6239  test -z "$as_dir" && as_dir=.
6240    for ac_exec_ext in '' $ac_executable_extensions; do
6241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242    ac_cv_prog_ac_ct_AR="$ac_prog"
6243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244    break 2
6245  fi
6246done
6247  done
6248IFS=$as_save_IFS
6249
6250fi
6251fi
6252ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253if test -n "$ac_ct_AR"; then
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6255$as_echo "$ac_ct_AR" >&6; }
6256else
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258$as_echo "no" >&6; }
6259fi
6260
6261
6262  test -n "$ac_ct_AR" && break
6263done
6264
6265  if test "x$ac_ct_AR" = x; then
6266    AR="false"
6267  else
6268    case $cross_compiling:$ac_tool_warned in
6269yes:)
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272ac_tool_warned=yes ;;
6273esac
6274    AR=$ac_ct_AR
6275  fi
6276fi
6277
6278: ${AR=ar}
6279: ${AR_FLAGS=cru}
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6292$as_echo_n "checking for archiver @FILE support... " >&6; }
6293if ${lt_cv_ar_at_file+:} false; then :
6294  $as_echo_n "(cached) " >&6
6295else
6296  lt_cv_ar_at_file=no
6297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299
6300int
6301main ()
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_compile "$LINENO"; then :
6309  echo conftest.$ac_objext > conftest.lst
6310      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6311      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6312  (eval $lt_ar_try) 2>&5
6313  ac_status=$?
6314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315  test $ac_status = 0; }
6316      if test 0 -eq "$ac_status"; then
6317	# Ensure the archiver fails upon bogus file names.
6318	rm -f conftest.$ac_objext libconftest.a
6319	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6320  (eval $lt_ar_try) 2>&5
6321  ac_status=$?
6322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323  test $ac_status = 0; }
6324	if test 0 -ne "$ac_status"; then
6325          lt_cv_ar_at_file=@
6326        fi
6327      fi
6328      rm -f conftest.* libconftest.a
6329
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6335$as_echo "$lt_cv_ar_at_file" >&6; }
6336
6337if test no = "$lt_cv_ar_at_file"; then
6338  archiver_list_spec=
6339else
6340  archiver_list_spec=$lt_cv_ar_at_file
6341fi
6342
6343
6344
6345
6346
6347
6348
6349if test -n "$ac_tool_prefix"; then
6350  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351set dummy ${ac_tool_prefix}strip; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_prog_STRIP+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$STRIP"; then
6358  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_exec_ext in '' $ac_executable_extensions; do
6366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372  done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377STRIP=$ac_cv_prog_STRIP
6378if test -n "$STRIP"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6380$as_echo "$STRIP" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386
6387fi
6388if test -z "$ac_cv_prog_STRIP"; then
6389  ac_ct_STRIP=$STRIP
6390  # Extract the first word of "strip", so it can be a program name with args.
6391set dummy strip; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  if test -n "$ac_ct_STRIP"; then
6398  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405    for ac_exec_ext in '' $ac_executable_extensions; do
6406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407    ac_cv_prog_ac_ct_STRIP="strip"
6408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412  done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418if test -n "$ac_ct_STRIP"; then
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6420$as_echo "$ac_ct_STRIP" >&6; }
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426  if test "x$ac_ct_STRIP" = x; then
6427    STRIP=":"
6428  else
6429    case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433ac_tool_warned=yes ;;
6434esac
6435    STRIP=$ac_ct_STRIP
6436  fi
6437else
6438  STRIP="$ac_cv_prog_STRIP"
6439fi
6440
6441test -z "$STRIP" && STRIP=:
6442
6443
6444
6445
6446
6447
6448if test -n "$ac_tool_prefix"; then
6449  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
6453if ${ac_cv_prog_RANLIB+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  if test -n "$RANLIB"; then
6457  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  test -z "$as_dir" && as_dir=.
6464    for ac_exec_ext in '' $ac_executable_extensions; do
6465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468    break 2
6469  fi
6470done
6471  done
6472IFS=$as_save_IFS
6473
6474fi
6475fi
6476RANLIB=$ac_cv_prog_RANLIB
6477if test -n "$RANLIB"; then
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479$as_echo "$RANLIB" >&6; }
6480else
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
6483fi
6484
6485
6486fi
6487if test -z "$ac_cv_prog_RANLIB"; then
6488  ac_ct_RANLIB=$RANLIB
6489  # Extract the first word of "ranlib", so it can be a program name with args.
6490set dummy ranlib; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  if test -n "$ac_ct_RANLIB"; then
6497  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502  IFS=$as_save_IFS
6503  test -z "$as_dir" && as_dir=.
6504    for ac_exec_ext in '' $ac_executable_extensions; do
6505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506    ac_cv_prog_ac_ct_RANLIB="ranlib"
6507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508    break 2
6509  fi
6510done
6511  done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517if test -n "$ac_ct_RANLIB"; then
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519$as_echo "$ac_ct_RANLIB" >&6; }
6520else
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525  if test "x$ac_ct_RANLIB" = x; then
6526    RANLIB=":"
6527  else
6528    case $cross_compiling:$ac_tool_warned in
6529yes:)
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532ac_tool_warned=yes ;;
6533esac
6534    RANLIB=$ac_ct_RANLIB
6535  fi
6536else
6537  RANLIB="$ac_cv_prog_RANLIB"
6538fi
6539
6540test -z "$RANLIB" && RANLIB=:
6541
6542
6543
6544
6545
6546
6547# Determine commands to create old-style static archives.
6548old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6549old_postinstall_cmds='chmod 644 $oldlib'
6550old_postuninstall_cmds=
6551
6552if test -n "$RANLIB"; then
6553  case $host_os in
6554  bitrig* | openbsd*)
6555    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6556    ;;
6557  *)
6558    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6559    ;;
6560  esac
6561  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6562fi
6563
6564case $host_os in
6565  darwin*)
6566    lock_old_archive_extraction=yes ;;
6567  *)
6568    lock_old_archive_extraction=no ;;
6569esac
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609# If no C compiler was specified, use CC.
6610LTCC=${LTCC-"$CC"}
6611
6612# If no C compiler flags were specified, use CFLAGS.
6613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6614
6615# Allow CC to be a program name with arguments.
6616compiler=$CC
6617
6618
6619# Check for command to grab the raw symbol name followed by C symbol from nm.
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6621$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6622if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625
6626# These are sane defaults that work on at least a few old systems.
6627# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6628
6629# Character class describing NM global symbol codes.
6630symcode='[BCDEGRST]'
6631
6632# Regexp to match symbols that can be accessed directly from C.
6633sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6634
6635# Define system-specific variables.
6636case $host_os in
6637aix*)
6638  symcode='[BCDT]'
6639  ;;
6640cygwin* | mingw* | pw32* | cegcc*)
6641  symcode='[ABCDGISTW]'
6642  ;;
6643hpux*)
6644  if test ia64 = "$host_cpu"; then
6645    symcode='[ABCDEGRST]'
6646  fi
6647  ;;
6648irix* | nonstopux*)
6649  symcode='[BCDEGRST]'
6650  ;;
6651osf*)
6652  symcode='[BCDEGQRST]'
6653  ;;
6654solaris*)
6655  symcode='[BDRT]'
6656  ;;
6657sco3.2v5*)
6658  symcode='[DT]'
6659  ;;
6660sysv4.2uw2*)
6661  symcode='[DT]'
6662  ;;
6663sysv5* | sco5v6* | unixware* | OpenUNIX*)
6664  symcode='[ABDT]'
6665  ;;
6666sysv4)
6667  symcode='[DFNSTU]'
6668  ;;
6669esac
6670
6671# If we're using GNU nm, then use its standard symbol codes.
6672case `$NM -V 2>&1` in
6673*GNU* | *'with BFD'*)
6674  symcode='[ABCDGIRSTW]' ;;
6675esac
6676
6677if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6678  # Gets list of data symbols to import.
6679  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6680  # Adjust the below global symbol transforms to fixup imported variables.
6681  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6682  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6683  lt_c_name_lib_hook="\
6684  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6685  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6686else
6687  # Disable hooks by default.
6688  lt_cv_sys_global_symbol_to_import=
6689  lt_cdecl_hook=
6690  lt_c_name_hook=
6691  lt_c_name_lib_hook=
6692fi
6693
6694# Transform an extracted symbol line into a proper C declaration.
6695# Some systems (esp. on ia64) link data and code symbols differently,
6696# so use this general approach.
6697lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6698$lt_cdecl_hook\
6699" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6700" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6701
6702# Transform an extracted symbol line into symbol name and symbol address
6703lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6704$lt_c_name_hook\
6705" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6706" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6707
6708# Transform an extracted symbol line into symbol name with lib prefix and
6709# symbol address.
6710lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6711$lt_c_name_lib_hook\
6712" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6713" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6714" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6715
6716# Handle CRLF in mingw tool chain
6717opt_cr=
6718case $build_os in
6719mingw*)
6720  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6721  ;;
6722esac
6723
6724# Try without a prefix underscore, then with it.
6725for ac_symprfx in "" "_"; do
6726
6727  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6728  symxfrm="\\1 $ac_symprfx\\2 \\2"
6729
6730  # Write the raw and C identifiers.
6731  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6732    # Fake it for dumpbin and say T for any non-static function,
6733    # D for any global variable and I for any imported variable.
6734    # Also find C++ and __fastcall symbols from MSVC++,
6735    # which start with @ or ?.
6736    lt_cv_sys_global_symbol_pipe="$AWK '"\
6737"     {last_section=section; section=\$ 3};"\
6738"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6739"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6740"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6741"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6742"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6743"     \$ 0!~/External *\|/{next};"\
6744"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6745"     {if(hide[section]) next};"\
6746"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6747"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6748"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6749"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6750"     ' prfx=^$ac_symprfx"
6751  else
6752    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6753  fi
6754  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6755
6756  # Check to see that the pipe works correctly.
6757  pipe_works=no
6758
6759  rm -f conftest*
6760  cat > conftest.$ac_ext <<_LT_EOF
6761#ifdef __cplusplus
6762extern "C" {
6763#endif
6764char nm_test_var;
6765void nm_test_func(void);
6766void nm_test_func(void){}
6767#ifdef __cplusplus
6768}
6769#endif
6770int main(){nm_test_var='a';nm_test_func();return(0);}
6771_LT_EOF
6772
6773  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774  (eval $ac_compile) 2>&5
6775  ac_status=$?
6776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777  test $ac_status = 0; }; then
6778    # Now try to grab the symbols.
6779    nlist=conftest.nm
6780    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6781  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6782  ac_status=$?
6783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784  test $ac_status = 0; } && test -s "$nlist"; then
6785      # Try sorting and uniquifying the output.
6786      if sort "$nlist" | uniq > "$nlist"T; then
6787	mv -f "$nlist"T "$nlist"
6788      else
6789	rm -f "$nlist"T
6790      fi
6791
6792      # Make sure that we snagged all the symbols we need.
6793      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6794	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6795	  cat <<_LT_EOF > conftest.$ac_ext
6796/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6797#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6798/* DATA imports from DLLs on WIN32 can't be const, because runtime
6799   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6800# define LT_DLSYM_CONST
6801#elif defined __osf__
6802/* This system does not cope well with relocations in const data.  */
6803# define LT_DLSYM_CONST
6804#else
6805# define LT_DLSYM_CONST const
6806#endif
6807
6808#ifdef __cplusplus
6809extern "C" {
6810#endif
6811
6812_LT_EOF
6813	  # Now generate the symbol file.
6814	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6815
6816	  cat <<_LT_EOF >> conftest.$ac_ext
6817
6818/* The mapping between symbol names and symbols.  */
6819LT_DLSYM_CONST struct {
6820  const char *name;
6821  void       *address;
6822}
6823lt__PROGRAM__LTX_preloaded_symbols[] =
6824{
6825  { "@PROGRAM@", (void *) 0 },
6826_LT_EOF
6827	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6828	  cat <<\_LT_EOF >> conftest.$ac_ext
6829  {0, (void *) 0}
6830};
6831
6832/* This works around a problem in FreeBSD linker */
6833#ifdef FREEBSD_WORKAROUND
6834static const void *lt_preloaded_setup() {
6835  return lt__PROGRAM__LTX_preloaded_symbols;
6836}
6837#endif
6838
6839#ifdef __cplusplus
6840}
6841#endif
6842_LT_EOF
6843	  # Now try linking the two files.
6844	  mv conftest.$ac_objext conftstm.$ac_objext
6845	  lt_globsym_save_LIBS=$LIBS
6846	  lt_globsym_save_CFLAGS=$CFLAGS
6847	  LIBS=conftstm.$ac_objext
6848	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6849	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6850  (eval $ac_link) 2>&5
6851  ac_status=$?
6852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6854	    pipe_works=yes
6855	  fi
6856	  LIBS=$lt_globsym_save_LIBS
6857	  CFLAGS=$lt_globsym_save_CFLAGS
6858	else
6859	  echo "cannot find nm_test_func in $nlist" >&5
6860	fi
6861      else
6862	echo "cannot find nm_test_var in $nlist" >&5
6863      fi
6864    else
6865      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6866    fi
6867  else
6868    echo "$progname: failed program was:" >&5
6869    cat conftest.$ac_ext >&5
6870  fi
6871  rm -rf conftest* conftst*
6872
6873  # Do not use the global_symbol_pipe unless it works.
6874  if test yes = "$pipe_works"; then
6875    break
6876  else
6877    lt_cv_sys_global_symbol_pipe=
6878  fi
6879done
6880
6881fi
6882
6883if test -z "$lt_cv_sys_global_symbol_pipe"; then
6884  lt_cv_sys_global_symbol_to_cdecl=
6885fi
6886if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6888$as_echo "failed" >&6; }
6889else
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6891$as_echo "ok" >&6; }
6892fi
6893
6894# Response file support.
6895if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6896  nm_file_list_spec='@'
6897elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6898  nm_file_list_spec='@'
6899fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6938$as_echo_n "checking for sysroot... " >&6; }
6939
6940# Check whether --with-sysroot was given.
6941if test "${with_sysroot+set}" = set; then :
6942  withval=$with_sysroot;
6943else
6944  with_sysroot=no
6945fi
6946
6947
6948lt_sysroot=
6949case $with_sysroot in #(
6950 yes)
6951   if test yes = "$GCC"; then
6952     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6953   fi
6954   ;; #(
6955 /*)
6956   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6957   ;; #(
6958 no|'')
6959   ;; #(
6960 *)
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6962$as_echo "$with_sysroot" >&6; }
6963   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6964   ;;
6965esac
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6968$as_echo "${lt_sysroot:-no}" >&6; }
6969
6970
6971
6972
6973
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6975$as_echo_n "checking for a working dd... " >&6; }
6976if ${ac_cv_path_lt_DD+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  printf 0123456789abcdef0123456789abcdef >conftest.i
6980cat conftest.i conftest.i >conftest2.i
6981: ${lt_DD:=$DD}
6982if test -z "$lt_DD"; then
6983  ac_path_lt_DD_found=false
6984  # Loop through the user's path and test for each of PROGNAME-LIST
6985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990    for ac_prog in dd; do
6991    for ac_exec_ext in '' $ac_executable_extensions; do
6992      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6993      as_fn_executable_p "$ac_path_lt_DD" || continue
6994if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6995  cmp -s conftest.i conftest.out \
6996  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6997fi
6998      $ac_path_lt_DD_found && break 3
6999    done
7000  done
7001  done
7002IFS=$as_save_IFS
7003  if test -z "$ac_cv_path_lt_DD"; then
7004    :
7005  fi
7006else
7007  ac_cv_path_lt_DD=$lt_DD
7008fi
7009
7010rm -f conftest.i conftest2.i conftest.out
7011fi
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7013$as_echo "$ac_cv_path_lt_DD" >&6; }
7014
7015
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7017$as_echo_n "checking how to truncate binary pipes... " >&6; }
7018if ${lt_cv_truncate_bin+:} false; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  printf 0123456789abcdef0123456789abcdef >conftest.i
7022cat conftest.i conftest.i >conftest2.i
7023lt_cv_truncate_bin=
7024if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7025  cmp -s conftest.i conftest.out \
7026  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7027fi
7028rm -f conftest.i conftest2.i conftest.out
7029test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7032$as_echo "$lt_cv_truncate_bin" >&6; }
7033
7034
7035
7036
7037
7038
7039# Check whether --enable-libtool-lock was given.
7040if test "${enable_libtool_lock+set}" = set; then :
7041  enableval=$enable_libtool_lock;
7042fi
7043
7044test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7045
7046# Some flags need to be propagated to the compiler or linker for good
7047# libtool support.
7048case $host in
7049ia64-*-hpux*)
7050  # Find out what ABI is being produced by ac_compile, and set mode
7051  # options accordingly.
7052  echo 'int i;' > conftest.$ac_ext
7053  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054  (eval $ac_compile) 2>&5
7055  ac_status=$?
7056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057  test $ac_status = 0; }; then
7058    case `/usr/bin/file conftest.$ac_objext` in
7059      *ELF-32*)
7060	HPUX_IA64_MODE=32
7061	;;
7062      *ELF-64*)
7063	HPUX_IA64_MODE=64
7064	;;
7065    esac
7066  fi
7067  rm -rf conftest*
7068  ;;
7069*-*-irix6*)
7070  # Find out what ABI is being produced by ac_compile, and set linker
7071  # options accordingly.
7072  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7073  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074  (eval $ac_compile) 2>&5
7075  ac_status=$?
7076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077  test $ac_status = 0; }; then
7078    if test yes = "$lt_cv_prog_gnu_ld"; then
7079      case `/usr/bin/file conftest.$ac_objext` in
7080	*32-bit*)
7081	  LD="${LD-ld} -melf32bsmip"
7082	  ;;
7083	*N32*)
7084	  LD="${LD-ld} -melf32bmipn32"
7085	  ;;
7086	*64-bit*)
7087	  LD="${LD-ld} -melf64bmip"
7088	;;
7089      esac
7090    else
7091      case `/usr/bin/file conftest.$ac_objext` in
7092	*32-bit*)
7093	  LD="${LD-ld} -32"
7094	  ;;
7095	*N32*)
7096	  LD="${LD-ld} -n32"
7097	  ;;
7098	*64-bit*)
7099	  LD="${LD-ld} -64"
7100	  ;;
7101      esac
7102    fi
7103  fi
7104  rm -rf conftest*
7105  ;;
7106
7107mips64*-*linux*)
7108  # Find out what ABI is being produced by ac_compile, and set linker
7109  # options accordingly.
7110  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7111  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7112  (eval $ac_compile) 2>&5
7113  ac_status=$?
7114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7115  test $ac_status = 0; }; then
7116    emul=elf
7117    case `/usr/bin/file conftest.$ac_objext` in
7118      *32-bit*)
7119	emul="${emul}32"
7120	;;
7121      *64-bit*)
7122	emul="${emul}64"
7123	;;
7124    esac
7125    case `/usr/bin/file conftest.$ac_objext` in
7126      *MSB*)
7127	emul="${emul}btsmip"
7128	;;
7129      *LSB*)
7130	emul="${emul}ltsmip"
7131	;;
7132    esac
7133    case `/usr/bin/file conftest.$ac_objext` in
7134      *N32*)
7135	emul="${emul}n32"
7136	;;
7137    esac
7138    LD="${LD-ld} -m $emul"
7139  fi
7140  rm -rf conftest*
7141  ;;
7142
7143x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7144s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7145  # Find out what ABI is being produced by ac_compile, and set linker
7146  # options accordingly.  Note that the listed cases only cover the
7147  # situations where additional linker options are needed (such as when
7148  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7149  # vice versa); the common cases where no linker options are needed do
7150  # not appear in the list.
7151  echo 'int i;' > conftest.$ac_ext
7152  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7153  (eval $ac_compile) 2>&5
7154  ac_status=$?
7155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156  test $ac_status = 0; }; then
7157    case `/usr/bin/file conftest.o` in
7158      *32-bit*)
7159	case $host in
7160	  x86_64-*kfreebsd*-gnu)
7161	    LD="${LD-ld} -m elf_i386_fbsd"
7162	    ;;
7163	  x86_64-*linux*)
7164	    case `/usr/bin/file conftest.o` in
7165	      *x86-64*)
7166		LD="${LD-ld} -m elf32_x86_64"
7167		;;
7168	      *)
7169		LD="${LD-ld} -m elf_i386"
7170		;;
7171	    esac
7172	    ;;
7173	  powerpc64le-*linux*)
7174	    LD="${LD-ld} -m elf32lppclinux"
7175	    ;;
7176	  powerpc64-*linux*)
7177	    LD="${LD-ld} -m elf32ppclinux"
7178	    ;;
7179	  s390x-*linux*)
7180	    LD="${LD-ld} -m elf_s390"
7181	    ;;
7182	  sparc64-*linux*)
7183	    LD="${LD-ld} -m elf32_sparc"
7184	    ;;
7185	esac
7186	;;
7187      *64-bit*)
7188	case $host in
7189	  x86_64-*kfreebsd*-gnu)
7190	    LD="${LD-ld} -m elf_x86_64_fbsd"
7191	    ;;
7192	  x86_64-*linux*)
7193	    LD="${LD-ld} -m elf_x86_64"
7194	    ;;
7195	  powerpcle-*linux*)
7196	    LD="${LD-ld} -m elf64lppc"
7197	    ;;
7198	  powerpc-*linux*)
7199	    LD="${LD-ld} -m elf64ppc"
7200	    ;;
7201	  s390*-*linux*|s390*-*tpf*)
7202	    LD="${LD-ld} -m elf64_s390"
7203	    ;;
7204	  sparc*-*linux*)
7205	    LD="${LD-ld} -m elf64_sparc"
7206	    ;;
7207	esac
7208	;;
7209    esac
7210  fi
7211  rm -rf conftest*
7212  ;;
7213
7214*-*-sco3.2v5*)
7215  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7216  SAVE_CFLAGS=$CFLAGS
7217  CFLAGS="$CFLAGS -belf"
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7219$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7220if ${lt_cv_cc_needs_belf+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  ac_ext=c
7224ac_cpp='$CPP $CPPFLAGS'
7225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
7229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h.  */
7231
7232int
7233main ()
7234{
7235
7236  ;
7237  return 0;
7238}
7239_ACEOF
7240if ac_fn_c_try_link "$LINENO"; then :
7241  lt_cv_cc_needs_belf=yes
7242else
7243  lt_cv_cc_needs_belf=no
7244fi
7245rm -f core conftest.err conftest.$ac_objext \
7246    conftest$ac_exeext conftest.$ac_ext
7247     ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253fi
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7255$as_echo "$lt_cv_cc_needs_belf" >&6; }
7256  if test yes != "$lt_cv_cc_needs_belf"; then
7257    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7258    CFLAGS=$SAVE_CFLAGS
7259  fi
7260  ;;
7261*-*solaris*)
7262  # Find out what ABI is being produced by ac_compile, and set linker
7263  # options accordingly.
7264  echo 'int i;' > conftest.$ac_ext
7265  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7266  (eval $ac_compile) 2>&5
7267  ac_status=$?
7268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269  test $ac_status = 0; }; then
7270    case `/usr/bin/file conftest.o` in
7271    *64-bit*)
7272      case $lt_cv_prog_gnu_ld in
7273      yes*)
7274        case $host in
7275        i?86-*-solaris*|x86_64-*-solaris*)
7276          LD="${LD-ld} -m elf_x86_64"
7277          ;;
7278        sparc*-*-solaris*)
7279          LD="${LD-ld} -m elf64_sparc"
7280          ;;
7281        esac
7282        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7283        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7284          LD=${LD-ld}_sol2
7285        fi
7286        ;;
7287      *)
7288	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7289	  LD="${LD-ld} -64"
7290	fi
7291	;;
7292      esac
7293      ;;
7294    esac
7295  fi
7296  rm -rf conftest*
7297  ;;
7298esac
7299
7300need_locks=$enable_libtool_lock
7301
7302if test -n "$ac_tool_prefix"; then
7303  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7304set dummy ${ac_tool_prefix}mt; ac_word=$2
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306$as_echo_n "checking for $ac_word... " >&6; }
7307if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7308  $as_echo_n "(cached) " >&6
7309else
7310  if test -n "$MANIFEST_TOOL"; then
7311  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316  IFS=$as_save_IFS
7317  test -z "$as_dir" && as_dir=.
7318    for ac_exec_ext in '' $ac_executable_extensions; do
7319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322    break 2
7323  fi
7324done
7325  done
7326IFS=$as_save_IFS
7327
7328fi
7329fi
7330MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7331if test -n "$MANIFEST_TOOL"; then
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7333$as_echo "$MANIFEST_TOOL" >&6; }
7334else
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336$as_echo "no" >&6; }
7337fi
7338
7339
7340fi
7341if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7342  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7343  # Extract the first word of "mt", so it can be a program name with args.
7344set dummy mt; ac_word=$2
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346$as_echo_n "checking for $ac_word... " >&6; }
7347if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  if test -n "$ac_ct_MANIFEST_TOOL"; then
7351  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356  IFS=$as_save_IFS
7357  test -z "$as_dir" && as_dir=.
7358    for ac_exec_ext in '' $ac_executable_extensions; do
7359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362    break 2
7363  fi
7364done
7365  done
7366IFS=$as_save_IFS
7367
7368fi
7369fi
7370ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7371if test -n "$ac_ct_MANIFEST_TOOL"; then
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7373$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7374else
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376$as_echo "no" >&6; }
7377fi
7378
7379  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7380    MANIFEST_TOOL=":"
7381  else
7382    case $cross_compiling:$ac_tool_warned in
7383yes:)
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386ac_tool_warned=yes ;;
7387esac
7388    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7389  fi
7390else
7391  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7392fi
7393
7394test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7396$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7397if ${lt_cv_path_mainfest_tool+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  lt_cv_path_mainfest_tool=no
7401  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7402  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7403  cat conftest.err >&5
7404  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7405    lt_cv_path_mainfest_tool=yes
7406  fi
7407  rm -f conftest*
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7410$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7411if test yes != "$lt_cv_path_mainfest_tool"; then
7412  MANIFEST_TOOL=:
7413fi
7414
7415
7416
7417
7418
7419
7420  case $host_os in
7421    rhapsody* | darwin*)
7422    if test -n "$ac_tool_prefix"; then
7423  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7424set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426$as_echo_n "checking for $ac_word... " >&6; }
7427if ${ac_cv_prog_DSYMUTIL+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  if test -n "$DSYMUTIL"; then
7431  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436  IFS=$as_save_IFS
7437  test -z "$as_dir" && as_dir=.
7438    for ac_exec_ext in '' $ac_executable_extensions; do
7439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442    break 2
7443  fi
7444done
7445  done
7446IFS=$as_save_IFS
7447
7448fi
7449fi
7450DSYMUTIL=$ac_cv_prog_DSYMUTIL
7451if test -n "$DSYMUTIL"; then
7452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7453$as_echo "$DSYMUTIL" >&6; }
7454else
7455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
7457fi
7458
7459
7460fi
7461if test -z "$ac_cv_prog_DSYMUTIL"; then
7462  ac_ct_DSYMUTIL=$DSYMUTIL
7463  # Extract the first word of "dsymutil", so it can be a program name with args.
7464set dummy dsymutil; ac_word=$2
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466$as_echo_n "checking for $ac_word... " >&6; }
7467if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  if test -n "$ac_ct_DSYMUTIL"; then
7471  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476  IFS=$as_save_IFS
7477  test -z "$as_dir" && as_dir=.
7478    for ac_exec_ext in '' $ac_executable_extensions; do
7479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482    break 2
7483  fi
7484done
7485  done
7486IFS=$as_save_IFS
7487
7488fi
7489fi
7490ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7491if test -n "$ac_ct_DSYMUTIL"; then
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7493$as_echo "$ac_ct_DSYMUTIL" >&6; }
7494else
7495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496$as_echo "no" >&6; }
7497fi
7498
7499  if test "x$ac_ct_DSYMUTIL" = x; then
7500    DSYMUTIL=":"
7501  else
7502    case $cross_compiling:$ac_tool_warned in
7503yes:)
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506ac_tool_warned=yes ;;
7507esac
7508    DSYMUTIL=$ac_ct_DSYMUTIL
7509  fi
7510else
7511  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7512fi
7513
7514    if test -n "$ac_tool_prefix"; then
7515  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7516set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518$as_echo_n "checking for $ac_word... " >&6; }
7519if ${ac_cv_prog_NMEDIT+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  if test -n "$NMEDIT"; then
7523  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7524else
7525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528  IFS=$as_save_IFS
7529  test -z "$as_dir" && as_dir=.
7530    for ac_exec_ext in '' $ac_executable_extensions; do
7531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534    break 2
7535  fi
7536done
7537  done
7538IFS=$as_save_IFS
7539
7540fi
7541fi
7542NMEDIT=$ac_cv_prog_NMEDIT
7543if test -n "$NMEDIT"; then
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7545$as_echo "$NMEDIT" >&6; }
7546else
7547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548$as_echo "no" >&6; }
7549fi
7550
7551
7552fi
7553if test -z "$ac_cv_prog_NMEDIT"; then
7554  ac_ct_NMEDIT=$NMEDIT
7555  # Extract the first word of "nmedit", so it can be a program name with args.
7556set dummy nmedit; ac_word=$2
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558$as_echo_n "checking for $ac_word... " >&6; }
7559if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  if test -n "$ac_ct_NMEDIT"; then
7563  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568  IFS=$as_save_IFS
7569  test -z "$as_dir" && as_dir=.
7570    for ac_exec_ext in '' $ac_executable_extensions; do
7571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574    break 2
7575  fi
7576done
7577  done
7578IFS=$as_save_IFS
7579
7580fi
7581fi
7582ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7583if test -n "$ac_ct_NMEDIT"; then
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7585$as_echo "$ac_ct_NMEDIT" >&6; }
7586else
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
7590
7591  if test "x$ac_ct_NMEDIT" = x; then
7592    NMEDIT=":"
7593  else
7594    case $cross_compiling:$ac_tool_warned in
7595yes:)
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598ac_tool_warned=yes ;;
7599esac
7600    NMEDIT=$ac_ct_NMEDIT
7601  fi
7602else
7603  NMEDIT="$ac_cv_prog_NMEDIT"
7604fi
7605
7606    if test -n "$ac_tool_prefix"; then
7607  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7608set dummy ${ac_tool_prefix}lipo; ac_word=$2
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610$as_echo_n "checking for $ac_word... " >&6; }
7611if ${ac_cv_prog_LIPO+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  if test -n "$LIPO"; then
7615  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  test -z "$as_dir" && as_dir=.
7622    for ac_exec_ext in '' $ac_executable_extensions; do
7623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629  done
7630IFS=$as_save_IFS
7631
7632fi
7633fi
7634LIPO=$ac_cv_prog_LIPO
7635if test -n "$LIPO"; then
7636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7637$as_echo "$LIPO" >&6; }
7638else
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640$as_echo "no" >&6; }
7641fi
7642
7643
7644fi
7645if test -z "$ac_cv_prog_LIPO"; then
7646  ac_ct_LIPO=$LIPO
7647  # Extract the first word of "lipo", so it can be a program name with args.
7648set dummy lipo; ac_word=$2
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650$as_echo_n "checking for $ac_word... " >&6; }
7651if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  if test -n "$ac_ct_LIPO"; then
7655  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660  IFS=$as_save_IFS
7661  test -z "$as_dir" && as_dir=.
7662    for ac_exec_ext in '' $ac_executable_extensions; do
7663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664    ac_cv_prog_ac_ct_LIPO="lipo"
7665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666    break 2
7667  fi
7668done
7669  done
7670IFS=$as_save_IFS
7671
7672fi
7673fi
7674ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7675if test -n "$ac_ct_LIPO"; then
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7677$as_echo "$ac_ct_LIPO" >&6; }
7678else
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
7681fi
7682
7683  if test "x$ac_ct_LIPO" = x; then
7684    LIPO=":"
7685  else
7686    case $cross_compiling:$ac_tool_warned in
7687yes:)
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7690ac_tool_warned=yes ;;
7691esac
7692    LIPO=$ac_ct_LIPO
7693  fi
7694else
7695  LIPO="$ac_cv_prog_LIPO"
7696fi
7697
7698    if test -n "$ac_tool_prefix"; then
7699  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7700set dummy ${ac_tool_prefix}otool; ac_word=$2
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702$as_echo_n "checking for $ac_word... " >&6; }
7703if ${ac_cv_prog_OTOOL+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  if test -n "$OTOOL"; then
7707  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714    for ac_exec_ext in '' $ac_executable_extensions; do
7715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721  done
7722IFS=$as_save_IFS
7723
7724fi
7725fi
7726OTOOL=$ac_cv_prog_OTOOL
7727if test -n "$OTOOL"; then
7728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7729$as_echo "$OTOOL" >&6; }
7730else
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735
7736fi
7737if test -z "$ac_cv_prog_OTOOL"; then
7738  ac_ct_OTOOL=$OTOOL
7739  # Extract the first word of "otool", so it can be a program name with args.
7740set dummy otool; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  if test -n "$ac_ct_OTOOL"; then
7747  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754    for ac_exec_ext in '' $ac_executable_extensions; do
7755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756    ac_cv_prog_ac_ct_OTOOL="otool"
7757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761  done
7762IFS=$as_save_IFS
7763
7764fi
7765fi
7766ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7767if test -n "$ac_ct_OTOOL"; then
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7769$as_echo "$ac_ct_OTOOL" >&6; }
7770else
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
7773fi
7774
7775  if test "x$ac_ct_OTOOL" = x; then
7776    OTOOL=":"
7777  else
7778    case $cross_compiling:$ac_tool_warned in
7779yes:)
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7782ac_tool_warned=yes ;;
7783esac
7784    OTOOL=$ac_ct_OTOOL
7785  fi
7786else
7787  OTOOL="$ac_cv_prog_OTOOL"
7788fi
7789
7790    if test -n "$ac_tool_prefix"; then
7791  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7792set dummy ${ac_tool_prefix}otool64; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_OTOOL64+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  if test -n "$OTOOL64"; then
7799  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806    for ac_exec_ext in '' $ac_executable_extensions; do
7807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813  done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818OTOOL64=$ac_cv_prog_OTOOL64
7819if test -n "$OTOOL64"; then
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7821$as_echo "$OTOOL64" >&6; }
7822else
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827
7828fi
7829if test -z "$ac_cv_prog_OTOOL64"; then
7830  ac_ct_OTOOL64=$OTOOL64
7831  # Extract the first word of "otool64", so it can be a program name with args.
7832set dummy otool64; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  if test -n "$ac_ct_OTOOL64"; then
7839  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_ac_ct_OTOOL64="otool64"
7849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7859if test -n "$ac_ct_OTOOL64"; then
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7861$as_echo "$ac_ct_OTOOL64" >&6; }
7862else
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867  if test "x$ac_ct_OTOOL64" = x; then
7868    OTOOL64=":"
7869  else
7870    case $cross_compiling:$ac_tool_warned in
7871yes:)
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874ac_tool_warned=yes ;;
7875esac
7876    OTOOL64=$ac_ct_OTOOL64
7877  fi
7878else
7879  OTOOL64="$ac_cv_prog_OTOOL64"
7880fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7909$as_echo_n "checking for -single_module linker flag... " >&6; }
7910if ${lt_cv_apple_cc_single_mod+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  lt_cv_apple_cc_single_mod=no
7914      if test -z "$LT_MULTI_MODULE"; then
7915	# By default we will add the -single_module flag. You can override
7916	# by either setting the environment variable LT_MULTI_MODULE
7917	# non-empty at configure time, or by adding -multi_module to the
7918	# link flags.
7919	rm -rf libconftest.dylib*
7920	echo "int foo(void){return 1;}" > conftest.c
7921	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7922-dynamiclib -Wl,-single_module conftest.c" >&5
7923	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7924	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7925        _lt_result=$?
7926	# If there is a non-empty error log, and "single_module"
7927	# appears in it, assume the flag caused a linker warning
7928        if test -s conftest.err && $GREP single_module conftest.err; then
7929	  cat conftest.err >&5
7930	# Otherwise, if the output was created with a 0 exit code from
7931	# the compiler, it worked.
7932	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7933	  lt_cv_apple_cc_single_mod=yes
7934	else
7935	  cat conftest.err >&5
7936	fi
7937	rm -rf libconftest.dylib*
7938	rm -f conftest.*
7939      fi
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7942$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7943
7944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7945$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7946if ${lt_cv_ld_exported_symbols_list+:} false; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  lt_cv_ld_exported_symbols_list=no
7950      save_LDFLAGS=$LDFLAGS
7951      echo "_main" > conftest.sym
7952      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h.  */
7955
7956int
7957main ()
7958{
7959
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964if ac_fn_c_try_link "$LINENO"; then :
7965  lt_cv_ld_exported_symbols_list=yes
7966else
7967  lt_cv_ld_exported_symbols_list=no
7968fi
7969rm -f core conftest.err conftest.$ac_objext \
7970    conftest$ac_exeext conftest.$ac_ext
7971	LDFLAGS=$save_LDFLAGS
7972
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7975$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7976
7977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7978$as_echo_n "checking for -force_load linker flag... " >&6; }
7979if ${lt_cv_ld_force_load+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  lt_cv_ld_force_load=no
7983      cat > conftest.c << _LT_EOF
7984int forced_loaded() { return 2;}
7985_LT_EOF
7986      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7987      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7988      echo "$AR cru libconftest.a conftest.o" >&5
7989      $AR cru libconftest.a conftest.o 2>&5
7990      echo "$RANLIB libconftest.a" >&5
7991      $RANLIB libconftest.a 2>&5
7992      cat > conftest.c << _LT_EOF
7993int main() { return 0;}
7994_LT_EOF
7995      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7996      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7997      _lt_result=$?
7998      if test -s conftest.err && $GREP force_load conftest.err; then
7999	cat conftest.err >&5
8000      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8001	lt_cv_ld_force_load=yes
8002      else
8003	cat conftest.err >&5
8004      fi
8005        rm -f conftest.err libconftest.a conftest conftest.c
8006        rm -rf conftest.dSYM
8007
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8010$as_echo "$lt_cv_ld_force_load" >&6; }
8011    case $host_os in
8012    rhapsody* | darwin1.[012])
8013      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8014    darwin1.*)
8015      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8016    darwin*) # darwin 5.x on
8017      # if running on 10.5 or later, the deployment target defaults
8018      # to the OS version, if on x86, and 10.4, the deployment
8019      # target defaults to 10.4. Don't you love it?
8020      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8021	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8022	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8023	10.[012][,.]*)
8024	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8025	10.*)
8026	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8027      esac
8028    ;;
8029  esac
8030    if test yes = "$lt_cv_apple_cc_single_mod"; then
8031      _lt_dar_single_mod='$single_module'
8032    fi
8033    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8034      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8035    else
8036      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8037    fi
8038    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8039      _lt_dsymutil='~$DSYMUTIL $lib || :'
8040    else
8041      _lt_dsymutil=
8042    fi
8043    ;;
8044  esac
8045
8046ac_ext=c
8047ac_cpp='$CPP $CPPFLAGS'
8048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050ac_compiler_gnu=$ac_cv_c_compiler_gnu
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8052$as_echo_n "checking how to run the C preprocessor... " >&6; }
8053# On Suns, sometimes $CPP names a directory.
8054if test -n "$CPP" && test -d "$CPP"; then
8055  CPP=
8056fi
8057if test -z "$CPP"; then
8058  if ${ac_cv_prog_CPP+:} false; then :
8059  $as_echo_n "(cached) " >&6
8060else
8061      # Double quotes because CPP needs to be expanded
8062    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8063    do
8064      ac_preproc_ok=false
8065for ac_c_preproc_warn_flag in '' yes
8066do
8067  # Use a header file that comes with gcc, so configuring glibc
8068  # with a fresh cross-compiler works.
8069  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070  # <limits.h> exists even on freestanding compilers.
8071  # On the NeXT, cc -E runs the code through the compiler's parser,
8072  # not just through cpp. "Syntax error" is here to catch this case.
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075#ifdef __STDC__
8076# include <limits.h>
8077#else
8078# include <assert.h>
8079#endif
8080		     Syntax error
8081_ACEOF
8082if ac_fn_c_try_cpp "$LINENO"; then :
8083
8084else
8085  # Broken: fails on valid input.
8086continue
8087fi
8088rm -f conftest.err conftest.i conftest.$ac_ext
8089
8090  # OK, works on sane cases.  Now check whether nonexistent headers
8091  # can be detected and how.
8092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093/* end confdefs.h.  */
8094#include <ac_nonexistent.h>
8095_ACEOF
8096if ac_fn_c_try_cpp "$LINENO"; then :
8097  # Broken: success on invalid input.
8098continue
8099else
8100  # Passes both tests.
8101ac_preproc_ok=:
8102break
8103fi
8104rm -f conftest.err conftest.i conftest.$ac_ext
8105
8106done
8107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8108rm -f conftest.i conftest.err conftest.$ac_ext
8109if $ac_preproc_ok; then :
8110  break
8111fi
8112
8113    done
8114    ac_cv_prog_CPP=$CPP
8115
8116fi
8117  CPP=$ac_cv_prog_CPP
8118else
8119  ac_cv_prog_CPP=$CPP
8120fi
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8122$as_echo "$CPP" >&6; }
8123ac_preproc_ok=false
8124for ac_c_preproc_warn_flag in '' yes
8125do
8126  # Use a header file that comes with gcc, so configuring glibc
8127  # with a fresh cross-compiler works.
8128  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129  # <limits.h> exists even on freestanding compilers.
8130  # On the NeXT, cc -E runs the code through the compiler's parser,
8131  # not just through cpp. "Syntax error" is here to catch this case.
8132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h.  */
8134#ifdef __STDC__
8135# include <limits.h>
8136#else
8137# include <assert.h>
8138#endif
8139		     Syntax error
8140_ACEOF
8141if ac_fn_c_try_cpp "$LINENO"; then :
8142
8143else
8144  # Broken: fails on valid input.
8145continue
8146fi
8147rm -f conftest.err conftest.i conftest.$ac_ext
8148
8149  # OK, works on sane cases.  Now check whether nonexistent headers
8150  # can be detected and how.
8151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153#include <ac_nonexistent.h>
8154_ACEOF
8155if ac_fn_c_try_cpp "$LINENO"; then :
8156  # Broken: success on invalid input.
8157continue
8158else
8159  # Passes both tests.
8160ac_preproc_ok=:
8161break
8162fi
8163rm -f conftest.err conftest.i conftest.$ac_ext
8164
8165done
8166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8167rm -f conftest.i conftest.err conftest.$ac_ext
8168if $ac_preproc_ok; then :
8169
8170else
8171  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8173as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8174See \`config.log' for more details" "$LINENO" 5; }
8175fi
8176
8177ac_ext=c
8178ac_cpp='$CPP $CPPFLAGS'
8179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8185$as_echo_n "checking for ANSI C header files... " >&6; }
8186if ${ac_cv_header_stdc+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191#include <stdlib.h>
8192#include <stdarg.h>
8193#include <string.h>
8194#include <float.h>
8195
8196int
8197main ()
8198{
8199
8200  ;
8201  return 0;
8202}
8203_ACEOF
8204if ac_fn_c_try_compile "$LINENO"; then :
8205  ac_cv_header_stdc=yes
8206else
8207  ac_cv_header_stdc=no
8208fi
8209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210
8211if test $ac_cv_header_stdc = yes; then
8212  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215#include <string.h>
8216
8217_ACEOF
8218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219  $EGREP "memchr" >/dev/null 2>&1; then :
8220
8221else
8222  ac_cv_header_stdc=no
8223fi
8224rm -f conftest*
8225
8226fi
8227
8228if test $ac_cv_header_stdc = yes; then
8229  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h.  */
8232#include <stdlib.h>
8233
8234_ACEOF
8235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236  $EGREP "free" >/dev/null 2>&1; then :
8237
8238else
8239  ac_cv_header_stdc=no
8240fi
8241rm -f conftest*
8242
8243fi
8244
8245if test $ac_cv_header_stdc = yes; then
8246  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8247  if test "$cross_compiling" = yes; then :
8248  :
8249else
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252#include <ctype.h>
8253#include <stdlib.h>
8254#if ((' ' & 0x0FF) == 0x020)
8255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8257#else
8258# define ISLOWER(c) \
8259		   (('a' <= (c) && (c) <= 'i') \
8260		     || ('j' <= (c) && (c) <= 'r') \
8261		     || ('s' <= (c) && (c) <= 'z'))
8262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8263#endif
8264
8265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8266int
8267main ()
8268{
8269  int i;
8270  for (i = 0; i < 256; i++)
8271    if (XOR (islower (i), ISLOWER (i))
8272	|| toupper (i) != TOUPPER (i))
8273      return 2;
8274  return 0;
8275}
8276_ACEOF
8277if ac_fn_c_try_run "$LINENO"; then :
8278
8279else
8280  ac_cv_header_stdc=no
8281fi
8282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8283  conftest.$ac_objext conftest.beam conftest.$ac_ext
8284fi
8285
8286fi
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8289$as_echo "$ac_cv_header_stdc" >&6; }
8290if test $ac_cv_header_stdc = yes; then
8291
8292$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8293
8294fi
8295
8296# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8297for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8298		  inttypes.h stdint.h unistd.h
8299do :
8300  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8301ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8302"
8303if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8304  cat >>confdefs.h <<_ACEOF
8305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306_ACEOF
8307
8308fi
8309
8310done
8311
8312
8313for ac_header in dlfcn.h
8314do :
8315  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8316"
8317if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8318  cat >>confdefs.h <<_ACEOF
8319#define HAVE_DLFCN_H 1
8320_ACEOF
8321
8322fi
8323
8324done
8325
8326
8327
8328
8329
8330# Set options
8331enable_win32_dll=yes
8332
8333case $host in
8334*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8335  if test -n "$ac_tool_prefix"; then
8336  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8337set dummy ${ac_tool_prefix}as; ac_word=$2
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339$as_echo_n "checking for $ac_word... " >&6; }
8340if ${ac_cv_prog_AS+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343  if test -n "$AS"; then
8344  ac_cv_prog_AS="$AS" # Let the user override the test.
8345else
8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349  IFS=$as_save_IFS
8350  test -z "$as_dir" && as_dir=.
8351    for ac_exec_ext in '' $ac_executable_extensions; do
8352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353    ac_cv_prog_AS="${ac_tool_prefix}as"
8354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355    break 2
8356  fi
8357done
8358  done
8359IFS=$as_save_IFS
8360
8361fi
8362fi
8363AS=$ac_cv_prog_AS
8364if test -n "$AS"; then
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8366$as_echo "$AS" >&6; }
8367else
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
8370fi
8371
8372
8373fi
8374if test -z "$ac_cv_prog_AS"; then
8375  ac_ct_AS=$AS
8376  # Extract the first word of "as", so it can be a program name with args.
8377set dummy as; ac_word=$2
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
8380if ${ac_cv_prog_ac_ct_AS+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  if test -n "$ac_ct_AS"; then
8384  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8385else
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389  IFS=$as_save_IFS
8390  test -z "$as_dir" && as_dir=.
8391    for ac_exec_ext in '' $ac_executable_extensions; do
8392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393    ac_cv_prog_ac_ct_AS="as"
8394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395    break 2
8396  fi
8397done
8398  done
8399IFS=$as_save_IFS
8400
8401fi
8402fi
8403ac_ct_AS=$ac_cv_prog_ac_ct_AS
8404if test -n "$ac_ct_AS"; then
8405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8406$as_echo "$ac_ct_AS" >&6; }
8407else
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410fi
8411
8412  if test "x$ac_ct_AS" = x; then
8413    AS="false"
8414  else
8415    case $cross_compiling:$ac_tool_warned in
8416yes:)
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8419ac_tool_warned=yes ;;
8420esac
8421    AS=$ac_ct_AS
8422  fi
8423else
8424  AS="$ac_cv_prog_AS"
8425fi
8426
8427  if test -n "$ac_tool_prefix"; then
8428  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8429set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431$as_echo_n "checking for $ac_word... " >&6; }
8432if ${ac_cv_prog_DLLTOOL+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  if test -n "$DLLTOOL"; then
8436  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441  IFS=$as_save_IFS
8442  test -z "$as_dir" && as_dir=.
8443    for ac_exec_ext in '' $ac_executable_extensions; do
8444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447    break 2
8448  fi
8449done
8450  done
8451IFS=$as_save_IFS
8452
8453fi
8454fi
8455DLLTOOL=$ac_cv_prog_DLLTOOL
8456if test -n "$DLLTOOL"; then
8457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8458$as_echo "$DLLTOOL" >&6; }
8459else
8460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461$as_echo "no" >&6; }
8462fi
8463
8464
8465fi
8466if test -z "$ac_cv_prog_DLLTOOL"; then
8467  ac_ct_DLLTOOL=$DLLTOOL
8468  # Extract the first word of "dlltool", so it can be a program name with args.
8469set dummy dlltool; ac_word=$2
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  if test -n "$ac_ct_DLLTOOL"; then
8476  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481  IFS=$as_save_IFS
8482  test -z "$as_dir" && as_dir=.
8483    for ac_exec_ext in '' $ac_executable_extensions; do
8484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487    break 2
8488  fi
8489done
8490  done
8491IFS=$as_save_IFS
8492
8493fi
8494fi
8495ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8496if test -n "$ac_ct_DLLTOOL"; then
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8498$as_echo "$ac_ct_DLLTOOL" >&6; }
8499else
8500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501$as_echo "no" >&6; }
8502fi
8503
8504  if test "x$ac_ct_DLLTOOL" = x; then
8505    DLLTOOL="false"
8506  else
8507    case $cross_compiling:$ac_tool_warned in
8508yes:)
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511ac_tool_warned=yes ;;
8512esac
8513    DLLTOOL=$ac_ct_DLLTOOL
8514  fi
8515else
8516  DLLTOOL="$ac_cv_prog_DLLTOOL"
8517fi
8518
8519  if test -n "$ac_tool_prefix"; then
8520  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8521set dummy ${ac_tool_prefix}objdump; ac_word=$2
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523$as_echo_n "checking for $ac_word... " >&6; }
8524if ${ac_cv_prog_OBJDUMP+:} false; then :
8525  $as_echo_n "(cached) " >&6
8526else
8527  if test -n "$OBJDUMP"; then
8528  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8529else
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533  IFS=$as_save_IFS
8534  test -z "$as_dir" && as_dir=.
8535    for ac_exec_ext in '' $ac_executable_extensions; do
8536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539    break 2
8540  fi
8541done
8542  done
8543IFS=$as_save_IFS
8544
8545fi
8546fi
8547OBJDUMP=$ac_cv_prog_OBJDUMP
8548if test -n "$OBJDUMP"; then
8549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8550$as_echo "$OBJDUMP" >&6; }
8551else
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
8554fi
8555
8556
8557fi
8558if test -z "$ac_cv_prog_OBJDUMP"; then
8559  ac_ct_OBJDUMP=$OBJDUMP
8560  # Extract the first word of "objdump", so it can be a program name with args.
8561set dummy objdump; ac_word=$2
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563$as_echo_n "checking for $ac_word... " >&6; }
8564if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  if test -n "$ac_ct_OBJDUMP"; then
8568  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573  IFS=$as_save_IFS
8574  test -z "$as_dir" && as_dir=.
8575    for ac_exec_ext in '' $ac_executable_extensions; do
8576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579    break 2
8580  fi
8581done
8582  done
8583IFS=$as_save_IFS
8584
8585fi
8586fi
8587ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8588if test -n "$ac_ct_OBJDUMP"; then
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8590$as_echo "$ac_ct_OBJDUMP" >&6; }
8591else
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593$as_echo "no" >&6; }
8594fi
8595
8596  if test "x$ac_ct_OBJDUMP" = x; then
8597    OBJDUMP="false"
8598  else
8599    case $cross_compiling:$ac_tool_warned in
8600yes:)
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603ac_tool_warned=yes ;;
8604esac
8605    OBJDUMP=$ac_ct_OBJDUMP
8606  fi
8607else
8608  OBJDUMP="$ac_cv_prog_OBJDUMP"
8609fi
8610
8611  ;;
8612esac
8613
8614test -z "$AS" && AS=as
8615
8616
8617
8618
8619
8620test -z "$DLLTOOL" && DLLTOOL=dlltool
8621
8622
8623
8624
8625
8626test -z "$OBJDUMP" && OBJDUMP=objdump
8627
8628
8629
8630
8631
8632
8633
8634        enable_dlopen=no
8635
8636
8637
8638            # Check whether --enable-shared was given.
8639if test "${enable_shared+set}" = set; then :
8640  enableval=$enable_shared; p=${PACKAGE-default}
8641    case $enableval in
8642    yes) enable_shared=yes ;;
8643    no) enable_shared=no ;;
8644    *)
8645      enable_shared=no
8646      # Look at the argument we got.  We use all the common list separators.
8647      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8648      for pkg in $enableval; do
8649	IFS=$lt_save_ifs
8650	if test "X$pkg" = "X$p"; then
8651	  enable_shared=yes
8652	fi
8653      done
8654      IFS=$lt_save_ifs
8655      ;;
8656    esac
8657else
8658  enable_shared=yes
8659fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669  # Check whether --enable-static was given.
8670if test "${enable_static+set}" = set; then :
8671  enableval=$enable_static; p=${PACKAGE-default}
8672    case $enableval in
8673    yes) enable_static=yes ;;
8674    no) enable_static=no ;;
8675    *)
8676     enable_static=no
8677      # Look at the argument we got.  We use all the common list separators.
8678      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8679      for pkg in $enableval; do
8680	IFS=$lt_save_ifs
8681	if test "X$pkg" = "X$p"; then
8682	  enable_static=yes
8683	fi
8684      done
8685      IFS=$lt_save_ifs
8686      ;;
8687    esac
8688else
8689  enable_static=yes
8690fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701# Check whether --with-pic was given.
8702if test "${with_pic+set}" = set; then :
8703  withval=$with_pic; lt_p=${PACKAGE-default}
8704    case $withval in
8705    yes|no) pic_mode=$withval ;;
8706    *)
8707      pic_mode=default
8708      # Look at the argument we got.  We use all the common list separators.
8709      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8710      for lt_pkg in $withval; do
8711	IFS=$lt_save_ifs
8712	if test "X$lt_pkg" = "X$lt_p"; then
8713	  pic_mode=yes
8714	fi
8715      done
8716      IFS=$lt_save_ifs
8717      ;;
8718    esac
8719else
8720  pic_mode=default
8721fi
8722
8723
8724
8725
8726
8727
8728
8729
8730  # Check whether --enable-fast-install was given.
8731if test "${enable_fast_install+set}" = set; then :
8732  enableval=$enable_fast_install; p=${PACKAGE-default}
8733    case $enableval in
8734    yes) enable_fast_install=yes ;;
8735    no) enable_fast_install=no ;;
8736    *)
8737      enable_fast_install=no
8738      # Look at the argument we got.  We use all the common list separators.
8739      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8740      for pkg in $enableval; do
8741	IFS=$lt_save_ifs
8742	if test "X$pkg" = "X$p"; then
8743	  enable_fast_install=yes
8744	fi
8745      done
8746      IFS=$lt_save_ifs
8747      ;;
8748    esac
8749else
8750  enable_fast_install=yes
8751fi
8752
8753
8754
8755
8756
8757
8758
8759
8760  shared_archive_member_spec=
8761case $host,$enable_shared in
8762power*-*-aix[5-9]*,yes)
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8764$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8765
8766# Check whether --with-aix-soname was given.
8767if test "${with_aix_soname+set}" = set; then :
8768  withval=$with_aix_soname; case $withval in
8769    aix|svr4|both)
8770      ;;
8771    *)
8772      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8773      ;;
8774    esac
8775    lt_cv_with_aix_soname=$with_aix_soname
8776else
8777  if ${lt_cv_with_aix_soname+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  lt_cv_with_aix_soname=aix
8781fi
8782
8783    with_aix_soname=$lt_cv_with_aix_soname
8784fi
8785
8786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8787$as_echo "$with_aix_soname" >&6; }
8788  if test aix != "$with_aix_soname"; then
8789    # For the AIX way of multilib, we name the shared archive member
8790    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8791    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8792    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8793    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8794    if test 64 = "${OBJECT_MODE-32}"; then
8795      shared_archive_member_spec=shr_64
8796    else
8797      shared_archive_member_spec=shr
8798    fi
8799  fi
8800  ;;
8801*)
8802  with_aix_soname=aix
8803  ;;
8804esac
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815# This can be used to rebuild libtool when needed
8816LIBTOOL_DEPS=$ltmain
8817
8818# Always use our own libtool.
8819LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850test -z "$LN_S" && LN_S="ln -s"
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865if test -n "${ZSH_VERSION+set}"; then
8866   setopt NO_GLOB_SUBST
8867fi
8868
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8870$as_echo_n "checking for objdir... " >&6; }
8871if ${lt_cv_objdir+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  rm -f .libs 2>/dev/null
8875mkdir .libs 2>/dev/null
8876if test -d .libs; then
8877  lt_cv_objdir=.libs
8878else
8879  # MS-DOS does not allow filenames that begin with a dot.
8880  lt_cv_objdir=_libs
8881fi
8882rmdir .libs 2>/dev/null
8883fi
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8885$as_echo "$lt_cv_objdir" >&6; }
8886objdir=$lt_cv_objdir
8887
8888
8889
8890
8891
8892cat >>confdefs.h <<_ACEOF
8893#define LT_OBJDIR "$lt_cv_objdir/"
8894_ACEOF
8895
8896
8897
8898
8899case $host_os in
8900aix3*)
8901  # AIX sometimes has problems with the GCC collect2 program.  For some
8902  # reason, if we set the COLLECT_NAMES environment variable, the problems
8903  # vanish in a puff of smoke.
8904  if test set != "${COLLECT_NAMES+set}"; then
8905    COLLECT_NAMES=
8906    export COLLECT_NAMES
8907  fi
8908  ;;
8909esac
8910
8911# Global variables:
8912ofile=libtool
8913can_build_shared=yes
8914
8915# All known linkers require a '.a' archive for static linking (except MSVC,
8916# which needs '.lib').
8917libext=a
8918
8919with_gnu_ld=$lt_cv_prog_gnu_ld
8920
8921old_CC=$CC
8922old_CFLAGS=$CFLAGS
8923
8924# Set sane defaults for various variables
8925test -z "$CC" && CC=cc
8926test -z "$LTCC" && LTCC=$CC
8927test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8928test -z "$LD" && LD=ld
8929test -z "$ac_objext" && ac_objext=o
8930
8931for cc_temp in $compiler""; do
8932  case $cc_temp in
8933    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8934    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8935    \-*) ;;
8936    *) break;;
8937  esac
8938done
8939cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8940
8941
8942# Only perform the check for file, if the check method requires it
8943test -z "$MAGIC_CMD" && MAGIC_CMD=file
8944case $deplibs_check_method in
8945file_magic*)
8946  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8948$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8949if ${lt_cv_path_MAGIC_CMD+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  case $MAGIC_CMD in
8953[\\/*] |  ?:[\\/]*)
8954  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8955  ;;
8956*)
8957  lt_save_MAGIC_CMD=$MAGIC_CMD
8958  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8959  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8960  for ac_dir in $ac_dummy; do
8961    IFS=$lt_save_ifs
8962    test -z "$ac_dir" && ac_dir=.
8963    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8964      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8965      if test -n "$file_magic_test_file"; then
8966	case $deplibs_check_method in
8967	"file_magic "*)
8968	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8969	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8970	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8971	    $EGREP "$file_magic_regex" > /dev/null; then
8972	    :
8973	  else
8974	    cat <<_LT_EOF 1>&2
8975
8976*** Warning: the command libtool uses to detect shared libraries,
8977*** $file_magic_cmd, produces output that libtool cannot recognize.
8978*** The result is that libtool may fail to recognize shared libraries
8979*** as such.  This will affect the creation of libtool libraries that
8980*** depend on shared libraries, but programs linked with such libtool
8981*** libraries will work regardless of this problem.  Nevertheless, you
8982*** may want to report the problem to your system manager and/or to
8983*** [email protected]
8984
8985_LT_EOF
8986	  fi ;;
8987	esac
8988      fi
8989      break
8990    fi
8991  done
8992  IFS=$lt_save_ifs
8993  MAGIC_CMD=$lt_save_MAGIC_CMD
8994  ;;
8995esac
8996fi
8997
8998MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8999if test -n "$MAGIC_CMD"; then
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9001$as_echo "$MAGIC_CMD" >&6; }
9002else
9003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004$as_echo "no" >&6; }
9005fi
9006
9007
9008
9009
9010
9011if test -z "$lt_cv_path_MAGIC_CMD"; then
9012  if test -n "$ac_tool_prefix"; then
9013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9014$as_echo_n "checking for file... " >&6; }
9015if ${lt_cv_path_MAGIC_CMD+:} false; then :
9016  $as_echo_n "(cached) " >&6
9017else
9018  case $MAGIC_CMD in
9019[\\/*] |  ?:[\\/]*)
9020  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9021  ;;
9022*)
9023  lt_save_MAGIC_CMD=$MAGIC_CMD
9024  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9025  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9026  for ac_dir in $ac_dummy; do
9027    IFS=$lt_save_ifs
9028    test -z "$ac_dir" && ac_dir=.
9029    if test -f "$ac_dir/file"; then
9030      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9031      if test -n "$file_magic_test_file"; then
9032	case $deplibs_check_method in
9033	"file_magic "*)
9034	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9035	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9036	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9037	    $EGREP "$file_magic_regex" > /dev/null; then
9038	    :
9039	  else
9040	    cat <<_LT_EOF 1>&2
9041
9042*** Warning: the command libtool uses to detect shared libraries,
9043*** $file_magic_cmd, produces output that libtool cannot recognize.
9044*** The result is that libtool may fail to recognize shared libraries
9045*** as such.  This will affect the creation of libtool libraries that
9046*** depend on shared libraries, but programs linked with such libtool
9047*** libraries will work regardless of this problem.  Nevertheless, you
9048*** may want to report the problem to your system manager and/or to
9049*** [email protected]
9050
9051_LT_EOF
9052	  fi ;;
9053	esac
9054      fi
9055      break
9056    fi
9057  done
9058  IFS=$lt_save_ifs
9059  MAGIC_CMD=$lt_save_MAGIC_CMD
9060  ;;
9061esac
9062fi
9063
9064MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9065if test -n "$MAGIC_CMD"; then
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9067$as_echo "$MAGIC_CMD" >&6; }
9068else
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
9071fi
9072
9073
9074  else
9075    MAGIC_CMD=:
9076  fi
9077fi
9078
9079  fi
9080  ;;
9081esac
9082
9083# Use C for the default configuration in the libtool script
9084
9085lt_save_CC=$CC
9086ac_ext=c
9087ac_cpp='$CPP $CPPFLAGS'
9088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9090ac_compiler_gnu=$ac_cv_c_compiler_gnu
9091
9092
9093# Source file extension for C test sources.
9094ac_ext=c
9095
9096# Object file extension for compiled C test sources.
9097objext=o
9098objext=$objext
9099
9100# Code to be used in simple compile tests
9101lt_simple_compile_test_code="int some_variable = 0;"
9102
9103# Code to be used in simple link tests
9104lt_simple_link_test_code='int main(){return(0);}'
9105
9106
9107
9108
9109
9110
9111
9112# If no C compiler was specified, use CC.
9113LTCC=${LTCC-"$CC"}
9114
9115# If no C compiler flags were specified, use CFLAGS.
9116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9117
9118# Allow CC to be a program name with arguments.
9119compiler=$CC
9120
9121# Save the default compiler, since it gets overwritten when the other
9122# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9123compiler_DEFAULT=$CC
9124
9125# save warnings/boilerplate of simple test code
9126ac_outfile=conftest.$ac_objext
9127echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9128eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9129_lt_compiler_boilerplate=`cat conftest.err`
9130$RM conftest*
9131
9132ac_outfile=conftest.$ac_objext
9133echo "$lt_simple_link_test_code" >conftest.$ac_ext
9134eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9135_lt_linker_boilerplate=`cat conftest.err`
9136$RM -r conftest*
9137
9138
9139## CAVEAT EMPTOR:
9140## There is no encapsulation within the following macros, do not change
9141## the running order or otherwise move them around unless you know exactly
9142## what you are doing...
9143if test -n "$compiler"; then
9144
9145lt_prog_compiler_no_builtin_flag=
9146
9147if test yes = "$GCC"; then
9148  case $cc_basename in
9149  nvcc*)
9150    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9151  *)
9152    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9153  esac
9154
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9156$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9157if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  lt_cv_prog_compiler_rtti_exceptions=no
9161   ac_outfile=conftest.$ac_objext
9162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9163   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9164   # Insert the option either (1) after the last *FLAGS variable, or
9165   # (2) before a word containing "conftest.", or (3) at the end.
9166   # Note that $ac_compile itself does not contain backslashes and begins
9167   # with a dollar sign (not a hyphen), so the echo should work correctly.
9168   # The option is referenced via a variable to avoid confusing sed.
9169   lt_compile=`echo "$ac_compile" | $SED \
9170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9172   -e 's:$: $lt_compiler_flag:'`
9173   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9174   (eval "$lt_compile" 2>conftest.err)
9175   ac_status=$?
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   if (exit $ac_status) && test -s "$ac_outfile"; then
9179     # The compiler can only warn and ignore the option if not recognized
9180     # So say no if there are warnings other than the usual output.
9181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9182     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9183     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9184       lt_cv_prog_compiler_rtti_exceptions=yes
9185     fi
9186   fi
9187   $RM conftest*
9188
9189fi
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9191$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9192
9193if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9194    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9195else
9196    :
9197fi
9198
9199fi
9200
9201
9202
9203
9204
9205
9206  lt_prog_compiler_wl=
9207lt_prog_compiler_pic=
9208lt_prog_compiler_static=
9209
9210
9211  if test yes = "$GCC"; then
9212    lt_prog_compiler_wl='-Wl,'
9213    lt_prog_compiler_static='-static'
9214
9215    case $host_os in
9216      aix*)
9217      # All AIX code is PIC.
9218      if test ia64 = "$host_cpu"; then
9219	# AIX 5 now supports IA64 processor
9220	lt_prog_compiler_static='-Bstatic'
9221      fi
9222      lt_prog_compiler_pic='-fPIC'
9223      ;;
9224
9225    amigaos*)
9226      case $host_cpu in
9227      powerpc)
9228            # see comment about AmigaOS4 .so support
9229            lt_prog_compiler_pic='-fPIC'
9230        ;;
9231      m68k)
9232            # FIXME: we need at least 68020 code to build shared libraries, but
9233            # adding the '-m68020' flag to GCC prevents building anything better,
9234            # like '-m68040'.
9235            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9236        ;;
9237      esac
9238      ;;
9239
9240    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9241      # PIC is the default for these OSes.
9242      ;;
9243
9244    mingw* | cygwin* | pw32* | os2* | cegcc*)
9245      # This hack is so that the source file can tell whether it is being
9246      # built for inclusion in a dll (and should export symbols for example).
9247      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9248      # (--disable-auto-import) libraries
9249      lt_prog_compiler_pic='-DDLL_EXPORT'
9250      case $host_os in
9251      os2*)
9252	lt_prog_compiler_static='$wl-static'
9253	;;
9254      esac
9255      ;;
9256
9257    darwin* | rhapsody*)
9258      # PIC is the default on this platform
9259      # Common symbols not allowed in MH_DYLIB files
9260      lt_prog_compiler_pic='-fno-common'
9261      ;;
9262
9263    haiku*)
9264      # PIC is the default for Haiku.
9265      # The "-static" flag exists, but is broken.
9266      lt_prog_compiler_static=
9267      ;;
9268
9269    hpux*)
9270      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9271      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9272      # sets the default TLS model and affects inlining.
9273      case $host_cpu in
9274      hppa*64*)
9275	# +Z the default
9276	;;
9277      *)
9278	lt_prog_compiler_pic='-fPIC'
9279	;;
9280      esac
9281      ;;
9282
9283    interix[3-9]*)
9284      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9285      # Instead, we relocate shared libraries at runtime.
9286      ;;
9287
9288    msdosdjgpp*)
9289      # Just because we use GCC doesn't mean we suddenly get shared libraries
9290      # on systems that don't support them.
9291      lt_prog_compiler_can_build_shared=no
9292      enable_shared=no
9293      ;;
9294
9295    *nto* | *qnx*)
9296      # QNX uses GNU C++, but need to define -shared option too, otherwise
9297      # it will coredump.
9298      lt_prog_compiler_pic='-fPIC -shared'
9299      ;;
9300
9301    sysv4*MP*)
9302      if test -d /usr/nec; then
9303	lt_prog_compiler_pic=-Kconform_pic
9304      fi
9305      ;;
9306
9307    *)
9308      lt_prog_compiler_pic='-fPIC'
9309      ;;
9310    esac
9311
9312    case $cc_basename in
9313    nvcc*) # Cuda Compiler Driver 2.2
9314      lt_prog_compiler_wl='-Xlinker '
9315      if test -n "$lt_prog_compiler_pic"; then
9316        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9317      fi
9318      ;;
9319    esac
9320  else
9321    # PORTME Check for flag to pass linker flags through the system compiler.
9322    case $host_os in
9323    aix*)
9324      lt_prog_compiler_wl='-Wl,'
9325      if test ia64 = "$host_cpu"; then
9326	# AIX 5 now supports IA64 processor
9327	lt_prog_compiler_static='-Bstatic'
9328      else
9329	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9330      fi
9331      ;;
9332
9333    darwin* | rhapsody*)
9334      # PIC is the default on this platform
9335      # Common symbols not allowed in MH_DYLIB files
9336      lt_prog_compiler_pic='-fno-common'
9337      case $cc_basename in
9338      nagfor*)
9339        # NAG Fortran compiler
9340        lt_prog_compiler_wl='-Wl,-Wl,,'
9341        lt_prog_compiler_pic='-PIC'
9342        lt_prog_compiler_static='-Bstatic'
9343        ;;
9344      esac
9345      ;;
9346
9347    mingw* | cygwin* | pw32* | os2* | cegcc*)
9348      # This hack is so that the source file can tell whether it is being
9349      # built for inclusion in a dll (and should export symbols for example).
9350      lt_prog_compiler_pic='-DDLL_EXPORT'
9351      case $host_os in
9352      os2*)
9353	lt_prog_compiler_static='$wl-static'
9354	;;
9355      esac
9356      ;;
9357
9358    hpux9* | hpux10* | hpux11*)
9359      lt_prog_compiler_wl='-Wl,'
9360      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9361      # not for PA HP-UX.
9362      case $host_cpu in
9363      hppa*64*|ia64*)
9364	# +Z the default
9365	;;
9366      *)
9367	lt_prog_compiler_pic='+Z'
9368	;;
9369      esac
9370      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9371      lt_prog_compiler_static='$wl-a ${wl}archive'
9372      ;;
9373
9374    irix5* | irix6* | nonstopux*)
9375      lt_prog_compiler_wl='-Wl,'
9376      # PIC (with -KPIC) is the default.
9377      lt_prog_compiler_static='-non_shared'
9378      ;;
9379
9380    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9381      case $cc_basename in
9382      # old Intel for x86_64, which still supported -KPIC.
9383      ecc*)
9384	lt_prog_compiler_wl='-Wl,'
9385	lt_prog_compiler_pic='-KPIC'
9386	lt_prog_compiler_static='-static'
9387        ;;
9388      # icc used to be incompatible with GCC.
9389      # ICC 10 doesn't accept -KPIC any more.
9390      icc* | ifort*)
9391	lt_prog_compiler_wl='-Wl,'
9392	lt_prog_compiler_pic='-fPIC'
9393	lt_prog_compiler_static='-static'
9394        ;;
9395      # Lahey Fortran 8.1.
9396      lf95*)
9397	lt_prog_compiler_wl='-Wl,'
9398	lt_prog_compiler_pic='--shared'
9399	lt_prog_compiler_static='--static'
9400	;;
9401      nagfor*)
9402	# NAG Fortran compiler
9403	lt_prog_compiler_wl='-Wl,-Wl,,'
9404	lt_prog_compiler_pic='-PIC'
9405	lt_prog_compiler_static='-Bstatic'
9406	;;
9407      tcc*)
9408	# Fabrice Bellard et al's Tiny C Compiler
9409	lt_prog_compiler_wl='-Wl,'
9410	lt_prog_compiler_pic='-fPIC'
9411	lt_prog_compiler_static='-static'
9412	;;
9413      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9414        # Portland Group compilers (*not* the Pentium gcc compiler,
9415	# which looks to be a dead project)
9416	lt_prog_compiler_wl='-Wl,'
9417	lt_prog_compiler_pic='-fpic'
9418	lt_prog_compiler_static='-Bstatic'
9419        ;;
9420      ccc*)
9421        lt_prog_compiler_wl='-Wl,'
9422        # All Alpha code is PIC.
9423        lt_prog_compiler_static='-non_shared'
9424        ;;
9425      xl* | bgxl* | bgf* | mpixl*)
9426	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9427	lt_prog_compiler_wl='-Wl,'
9428	lt_prog_compiler_pic='-qpic'
9429	lt_prog_compiler_static='-qstaticlink'
9430	;;
9431      *)
9432	case `$CC -V 2>&1 | sed 5q` in
9433	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9434	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9435	  lt_prog_compiler_pic='-KPIC'
9436	  lt_prog_compiler_static='-Bstatic'
9437	  lt_prog_compiler_wl=''
9438	  ;;
9439	*Sun\ F* | *Sun*Fortran*)
9440	  lt_prog_compiler_pic='-KPIC'
9441	  lt_prog_compiler_static='-Bstatic'
9442	  lt_prog_compiler_wl='-Qoption ld '
9443	  ;;
9444	*Sun\ C*)
9445	  # Sun C 5.9
9446	  lt_prog_compiler_pic='-KPIC'
9447	  lt_prog_compiler_static='-Bstatic'
9448	  lt_prog_compiler_wl='-Wl,'
9449	  ;;
9450        *Intel*\ [CF]*Compiler*)
9451	  lt_prog_compiler_wl='-Wl,'
9452	  lt_prog_compiler_pic='-fPIC'
9453	  lt_prog_compiler_static='-static'
9454	  ;;
9455	*Portland\ Group*)
9456	  lt_prog_compiler_wl='-Wl,'
9457	  lt_prog_compiler_pic='-fpic'
9458	  lt_prog_compiler_static='-Bstatic'
9459	  ;;
9460	esac
9461	;;
9462      esac
9463      ;;
9464
9465    newsos6)
9466      lt_prog_compiler_pic='-KPIC'
9467      lt_prog_compiler_static='-Bstatic'
9468      ;;
9469
9470    *nto* | *qnx*)
9471      # QNX uses GNU C++, but need to define -shared option too, otherwise
9472      # it will coredump.
9473      lt_prog_compiler_pic='-fPIC -shared'
9474      ;;
9475
9476    osf3* | osf4* | osf5*)
9477      lt_prog_compiler_wl='-Wl,'
9478      # All OSF/1 code is PIC.
9479      lt_prog_compiler_static='-non_shared'
9480      ;;
9481
9482    rdos*)
9483      lt_prog_compiler_static='-non_shared'
9484      ;;
9485
9486    solaris*)
9487      lt_prog_compiler_pic='-KPIC'
9488      lt_prog_compiler_static='-Bstatic'
9489      case $cc_basename in
9490      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9491	lt_prog_compiler_wl='-Qoption ld ';;
9492      *)
9493	lt_prog_compiler_wl='-Wl,';;
9494      esac
9495      ;;
9496
9497    sunos4*)
9498      lt_prog_compiler_wl='-Qoption ld '
9499      lt_prog_compiler_pic='-PIC'
9500      lt_prog_compiler_static='-Bstatic'
9501      ;;
9502
9503    sysv4 | sysv4.2uw2* | sysv4.3*)
9504      lt_prog_compiler_wl='-Wl,'
9505      lt_prog_compiler_pic='-KPIC'
9506      lt_prog_compiler_static='-Bstatic'
9507      ;;
9508
9509    sysv4*MP*)
9510      if test -d /usr/nec; then
9511	lt_prog_compiler_pic='-Kconform_pic'
9512	lt_prog_compiler_static='-Bstatic'
9513      fi
9514      ;;
9515
9516    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9517      lt_prog_compiler_wl='-Wl,'
9518      lt_prog_compiler_pic='-KPIC'
9519      lt_prog_compiler_static='-Bstatic'
9520      ;;
9521
9522    unicos*)
9523      lt_prog_compiler_wl='-Wl,'
9524      lt_prog_compiler_can_build_shared=no
9525      ;;
9526
9527    uts4*)
9528      lt_prog_compiler_pic='-pic'
9529      lt_prog_compiler_static='-Bstatic'
9530      ;;
9531
9532    *)
9533      lt_prog_compiler_can_build_shared=no
9534      ;;
9535    esac
9536  fi
9537
9538case $host_os in
9539  # For platforms that do not support PIC, -DPIC is meaningless:
9540  *djgpp*)
9541    lt_prog_compiler_pic=
9542    ;;
9543  *)
9544    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9545    ;;
9546esac
9547
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9549$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9550if ${lt_cv_prog_compiler_pic+:} false; then :
9551  $as_echo_n "(cached) " >&6
9552else
9553  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9556$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9557lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9558
9559#
9560# Check to make sure the PIC flag actually works.
9561#
9562if test -n "$lt_prog_compiler_pic"; then
9563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9564$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9565if ${lt_cv_prog_compiler_pic_works+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  lt_cv_prog_compiler_pic_works=no
9569   ac_outfile=conftest.$ac_objext
9570   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9571   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9572   # Insert the option either (1) after the last *FLAGS variable, or
9573   # (2) before a word containing "conftest.", or (3) at the end.
9574   # Note that $ac_compile itself does not contain backslashes and begins
9575   # with a dollar sign (not a hyphen), so the echo should work correctly.
9576   # The option is referenced via a variable to avoid confusing sed.
9577   lt_compile=`echo "$ac_compile" | $SED \
9578   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9580   -e 's:$: $lt_compiler_flag:'`
9581   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9582   (eval "$lt_compile" 2>conftest.err)
9583   ac_status=$?
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   if (exit $ac_status) && test -s "$ac_outfile"; then
9587     # The compiler can only warn and ignore the option if not recognized
9588     # So say no if there are warnings other than the usual output.
9589     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9590     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9591     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9592       lt_cv_prog_compiler_pic_works=yes
9593     fi
9594   fi
9595   $RM conftest*
9596
9597fi
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9599$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9600
9601if test yes = "$lt_cv_prog_compiler_pic_works"; then
9602    case $lt_prog_compiler_pic in
9603     "" | " "*) ;;
9604     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9605     esac
9606else
9607    lt_prog_compiler_pic=
9608     lt_prog_compiler_can_build_shared=no
9609fi
9610
9611fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623#
9624# Check to make sure the static flag actually works.
9625#
9626wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9628$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9629if ${lt_cv_prog_compiler_static_works+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  lt_cv_prog_compiler_static_works=no
9633   save_LDFLAGS=$LDFLAGS
9634   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9635   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9636   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9637     # The linker can only warn and ignore the option if not recognized
9638     # So say no if there are warnings
9639     if test -s conftest.err; then
9640       # Append any errors to the config.log.
9641       cat conftest.err 1>&5
9642       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9643       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9644       if diff conftest.exp conftest.er2 >/dev/null; then
9645         lt_cv_prog_compiler_static_works=yes
9646       fi
9647     else
9648       lt_cv_prog_compiler_static_works=yes
9649     fi
9650   fi
9651   $RM -r conftest*
9652   LDFLAGS=$save_LDFLAGS
9653
9654fi
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9656$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9657
9658if test yes = "$lt_cv_prog_compiler_static_works"; then
9659    :
9660else
9661    lt_prog_compiler_static=
9662fi
9663
9664
9665
9666
9667
9668
9669
9670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9671$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9672if ${lt_cv_prog_compiler_c_o+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  lt_cv_prog_compiler_c_o=no
9676   $RM -r conftest 2>/dev/null
9677   mkdir conftest
9678   cd conftest
9679   mkdir out
9680   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9681
9682   lt_compiler_flag="-o out/conftest2.$ac_objext"
9683   # Insert the option either (1) after the last *FLAGS variable, or
9684   # (2) before a word containing "conftest.", or (3) at the end.
9685   # Note that $ac_compile itself does not contain backslashes and begins
9686   # with a dollar sign (not a hyphen), so the echo should work correctly.
9687   lt_compile=`echo "$ac_compile" | $SED \
9688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9690   -e 's:$: $lt_compiler_flag:'`
9691   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9692   (eval "$lt_compile" 2>out/conftest.err)
9693   ac_status=$?
9694   cat out/conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9697   then
9698     # The compiler can only warn and ignore the option if not recognized
9699     # So say no if there are warnings
9700     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9701     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9702     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9703       lt_cv_prog_compiler_c_o=yes
9704     fi
9705   fi
9706   chmod u+w . 2>&5
9707   $RM conftest*
9708   # SGI C++ compiler will create directory out/ii_files/ for
9709   # template instantiation
9710   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9711   $RM out/* && rmdir out
9712   cd ..
9713   $RM -r conftest
9714   $RM conftest*
9715
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9718$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9719
9720
9721
9722
9723
9724
9725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9726$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9727if ${lt_cv_prog_compiler_c_o+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  lt_cv_prog_compiler_c_o=no
9731   $RM -r conftest 2>/dev/null
9732   mkdir conftest
9733   cd conftest
9734   mkdir out
9735   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9736
9737   lt_compiler_flag="-o out/conftest2.$ac_objext"
9738   # Insert the option either (1) after the last *FLAGS variable, or
9739   # (2) before a word containing "conftest.", or (3) at the end.
9740   # Note that $ac_compile itself does not contain backslashes and begins
9741   # with a dollar sign (not a hyphen), so the echo should work correctly.
9742   lt_compile=`echo "$ac_compile" | $SED \
9743   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9744   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9745   -e 's:$: $lt_compiler_flag:'`
9746   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9747   (eval "$lt_compile" 2>out/conftest.err)
9748   ac_status=$?
9749   cat out/conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9752   then
9753     # The compiler can only warn and ignore the option if not recognized
9754     # So say no if there are warnings
9755     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9756     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9757     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9758       lt_cv_prog_compiler_c_o=yes
9759     fi
9760   fi
9761   chmod u+w . 2>&5
9762   $RM conftest*
9763   # SGI C++ compiler will create directory out/ii_files/ for
9764   # template instantiation
9765   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9766   $RM out/* && rmdir out
9767   cd ..
9768   $RM -r conftest
9769   $RM conftest*
9770
9771fi
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9773$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9774
9775
9776
9777
9778hard_links=nottested
9779if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9780  # do not overwrite the value of need_locks provided by the user
9781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9782$as_echo_n "checking if we can lock with hard links... " >&6; }
9783  hard_links=yes
9784  $RM conftest*
9785  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9786  touch conftest.a
9787  ln conftest.a conftest.b 2>&5 || hard_links=no
9788  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9790$as_echo "$hard_links" >&6; }
9791  if test no = "$hard_links"; then
9792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9793$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9794    need_locks=warn
9795  fi
9796else
9797  need_locks=no
9798fi
9799
9800
9801
9802
9803
9804
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9806$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9807
9808  runpath_var=
9809  allow_undefined_flag=
9810  always_export_symbols=no
9811  archive_cmds=
9812  archive_expsym_cmds=
9813  compiler_needs_object=no
9814  enable_shared_with_static_runtimes=no
9815  export_dynamic_flag_spec=
9816  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9817  hardcode_automatic=no
9818  hardcode_direct=no
9819  hardcode_direct_absolute=no
9820  hardcode_libdir_flag_spec=
9821  hardcode_libdir_separator=
9822  hardcode_minus_L=no
9823  hardcode_shlibpath_var=unsupported
9824  inherit_rpath=no
9825  link_all_deplibs=unknown
9826  module_cmds=
9827  module_expsym_cmds=
9828  old_archive_from_new_cmds=
9829  old_archive_from_expsyms_cmds=
9830  thread_safe_flag_spec=
9831  whole_archive_flag_spec=
9832  # include_expsyms should be a list of space-separated symbols to be *always*
9833  # included in the symbol list
9834  include_expsyms=
9835  # exclude_expsyms can be an extended regexp of symbols to exclude
9836  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9837  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9838  # as well as any symbol that contains 'd'.
9839  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9840  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9841  # platforms (ab)use it in PIC code, but their linkers get confused if
9842  # the symbol is explicitly referenced.  Since portable code cannot
9843  # rely on this symbol name, it's probably fine to never include it in
9844  # preloaded symbol tables.
9845  # Exclude shared library initialization/finalization symbols.
9846  extract_expsyms_cmds=
9847
9848  case $host_os in
9849  cygwin* | mingw* | pw32* | cegcc*)
9850    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9851    # When not using gcc, we currently assume that we are using
9852    # Microsoft Visual C++.
9853    if test yes != "$GCC"; then
9854      with_gnu_ld=no
9855    fi
9856    ;;
9857  interix*)
9858    # we just hope/assume this is gcc and not c89 (= MSVC++)
9859    with_gnu_ld=yes
9860    ;;
9861  openbsd* | bitrig*)
9862    with_gnu_ld=no
9863    ;;
9864  esac
9865
9866  ld_shlibs=yes
9867
9868  # On some targets, GNU ld is compatible enough with the native linker
9869  # that we're better off using the native interface for both.
9870  lt_use_gnu_ld_interface=no
9871  if test yes = "$with_gnu_ld"; then
9872    case $host_os in
9873      aix*)
9874	# The AIX port of GNU ld has always aspired to compatibility
9875	# with the native linker.  However, as the warning in the GNU ld
9876	# block says, versions before 2.19.5* couldn't really create working
9877	# shared libraries, regardless of the interface used.
9878	case `$LD -v 2>&1` in
9879	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9880	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9881	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9882	  *)
9883	    lt_use_gnu_ld_interface=yes
9884	    ;;
9885	esac
9886	;;
9887      *)
9888	lt_use_gnu_ld_interface=yes
9889	;;
9890    esac
9891  fi
9892
9893  if test yes = "$lt_use_gnu_ld_interface"; then
9894    # If archive_cmds runs LD, not CC, wlarc should be empty
9895    wlarc='$wl'
9896
9897    # Set some defaults for GNU ld with shared library support. These
9898    # are reset later if shared libraries are not supported. Putting them
9899    # here allows them to be overridden if necessary.
9900    runpath_var=LD_RUN_PATH
9901    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9902    export_dynamic_flag_spec='$wl--export-dynamic'
9903    # ancient GNU ld didn't support --whole-archive et. al.
9904    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9905      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9906    else
9907      whole_archive_flag_spec=
9908    fi
9909    supports_anon_versioning=no
9910    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9911      *GNU\ gold*) supports_anon_versioning=yes ;;
9912      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9913      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9914      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9915      *\ 2.11.*) ;; # other 2.11 versions
9916      *) supports_anon_versioning=yes ;;
9917    esac
9918
9919    # See if GNU ld supports shared libraries.
9920    case $host_os in
9921    aix[3-9]*)
9922      # On AIX/PPC, the GNU linker is very broken
9923      if test ia64 != "$host_cpu"; then
9924	ld_shlibs=no
9925	cat <<_LT_EOF 1>&2
9926
9927*** Warning: the GNU linker, at least up to release 2.19, is reported
9928*** to be unable to reliably create shared libraries on AIX.
9929*** Therefore, libtool is disabling shared libraries support.  If you
9930*** really care for shared libraries, you may want to install binutils
9931*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9932*** You will then need to restart the configuration process.
9933
9934_LT_EOF
9935      fi
9936      ;;
9937
9938    amigaos*)
9939      case $host_cpu in
9940      powerpc)
9941            # see comment about AmigaOS4 .so support
9942            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9943            archive_expsym_cmds=''
9944        ;;
9945      m68k)
9946            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)'
9947            hardcode_libdir_flag_spec='-L$libdir'
9948            hardcode_minus_L=yes
9949        ;;
9950      esac
9951      ;;
9952
9953    beos*)
9954      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9955	allow_undefined_flag=unsupported
9956	# Joseph Beckenbach <[email protected]> says some releases of gcc
9957	# support --undefined.  This deserves some investigation.  FIXME
9958	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9959      else
9960	ld_shlibs=no
9961      fi
9962      ;;
9963
9964    cygwin* | mingw* | pw32* | cegcc*)
9965      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9966      # as there is no search path for DLLs.
9967      hardcode_libdir_flag_spec='-L$libdir'
9968      export_dynamic_flag_spec='$wl--export-all-symbols'
9969      allow_undefined_flag=unsupported
9970      always_export_symbols=no
9971      enable_shared_with_static_runtimes=yes
9972      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'
9973      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9974
9975      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9976        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9977	# If the export-symbols file already is a .def file, use it as
9978	# is; otherwise, prepend EXPORTS...
9979	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9980          cp $export_symbols $output_objdir/$soname.def;
9981        else
9982          echo EXPORTS > $output_objdir/$soname.def;
9983          cat $export_symbols >> $output_objdir/$soname.def;
9984        fi~
9985        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9986      else
9987	ld_shlibs=no
9988      fi
9989      ;;
9990
9991    haiku*)
9992      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9993      link_all_deplibs=yes
9994      ;;
9995
9996    os2*)
9997      hardcode_libdir_flag_spec='-L$libdir'
9998      hardcode_minus_L=yes
9999      allow_undefined_flag=unsupported
10000      shrext_cmds=.dll
10001      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10002	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10003	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10004	$ECHO EXPORTS >> $output_objdir/$libname.def~
10005	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10006	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10007	emximp -o $lib $output_objdir/$libname.def'
10008      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10009	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10010	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10011	$ECHO EXPORTS >> $output_objdir/$libname.def~
10012	prefix_cmds="$SED"~
10013	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10014	  prefix_cmds="$prefix_cmds -e 1d";
10015	fi~
10016	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10017	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10018	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10019	emximp -o $lib $output_objdir/$libname.def'
10020      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10021      enable_shared_with_static_runtimes=yes
10022      ;;
10023
10024    interix[3-9]*)
10025      hardcode_direct=no
10026      hardcode_shlibpath_var=no
10027      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10028      export_dynamic_flag_spec='$wl-E'
10029      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10030      # Instead, shared libraries are loaded at an image base (0x10000000 by
10031      # default) and relocated if they conflict, which is a slow very memory
10032      # consuming and fragmenting process.  To avoid this, we pick a random,
10033      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10034      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10035      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10036      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'
10037      ;;
10038
10039    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10040      tmp_diet=no
10041      if test linux-dietlibc = "$host_os"; then
10042	case $cc_basename in
10043	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10044	esac
10045      fi
10046      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10047	 && test no = "$tmp_diet"
10048      then
10049	tmp_addflag=' $pic_flag'
10050	tmp_sharedflag='-shared'
10051	case $cc_basename,$host_cpu in
10052        pgcc*)				# Portland Group C compiler
10053	  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'
10054	  tmp_addflag=' $pic_flag'
10055	  ;;
10056	pgf77* | pgf90* | pgf95* | pgfortran*)
10057					# Portland Group f77 and f90 compilers
10058	  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'
10059	  tmp_addflag=' $pic_flag -Mnomain' ;;
10060	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10061	  tmp_addflag=' -i_dynamic' ;;
10062	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10063	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10064	ifc* | ifort*)			# Intel Fortran compiler
10065	  tmp_addflag=' -nofor_main' ;;
10066	lf95*)				# Lahey Fortran 8.1
10067	  whole_archive_flag_spec=
10068	  tmp_sharedflag='--shared' ;;
10069        nagfor*)                        # NAGFOR 5.3
10070          tmp_sharedflag='-Wl,-shared' ;;
10071	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10072	  tmp_sharedflag='-qmkshrobj'
10073	  tmp_addflag= ;;
10074	nvcc*)	# Cuda Compiler Driver 2.2
10075	  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'
10076	  compiler_needs_object=yes
10077	  ;;
10078	esac
10079	case `$CC -V 2>&1 | sed 5q` in
10080	*Sun\ C*)			# Sun C 5.9
10081	  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'
10082	  compiler_needs_object=yes
10083	  tmp_sharedflag='-G' ;;
10084	*Sun\ F*)			# Sun Fortran 8.3
10085	  tmp_sharedflag='-G' ;;
10086	esac
10087	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088
10089        if test yes = "$supports_anon_versioning"; then
10090          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092            echo "local: *; };" >> $output_objdir/$libname.ver~
10093            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10094        fi
10095
10096	case $cc_basename in
10097	tcc*)
10098	  export_dynamic_flag_spec='-rdynamic'
10099	  ;;
10100	xlf* | bgf* | bgxlf* | mpixlf*)
10101	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10102	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10103	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10104	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10105	  if test yes = "$supports_anon_versioning"; then
10106	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10107              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10108              echo "local: *; };" >> $output_objdir/$libname.ver~
10109              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10110	  fi
10111	  ;;
10112	esac
10113      else
10114        ld_shlibs=no
10115      fi
10116      ;;
10117
10118    netbsd*)
10119      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10120	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10121	wlarc=
10122      else
10123	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10124	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10125      fi
10126      ;;
10127
10128    solaris*)
10129      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10130	ld_shlibs=no
10131	cat <<_LT_EOF 1>&2
10132
10133*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10134*** create shared libraries on Solaris systems.  Therefore, libtool
10135*** is disabling shared libraries support.  We urge you to upgrade GNU
10136*** binutils to release 2.9.1 or newer.  Another option is to modify
10137*** your PATH or compiler configuration so that the native linker is
10138*** used, and then restart.
10139
10140_LT_EOF
10141      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10142	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10143	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10144      else
10145	ld_shlibs=no
10146      fi
10147      ;;
10148
10149    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10150      case `$LD -v 2>&1` in
10151        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10152	ld_shlibs=no
10153	cat <<_LT_EOF 1>&2
10154
10155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10156*** reliably create shared libraries on SCO systems.  Therefore, libtool
10157*** is disabling shared libraries support.  We urge you to upgrade GNU
10158*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10159*** your PATH or compiler configuration so that the native linker is
10160*** used, and then restart.
10161
10162_LT_EOF
10163	;;
10164	*)
10165	  # For security reasons, it is highly recommended that you always
10166	  # use absolute paths for naming shared libraries, and exclude the
10167	  # DT_RUNPATH tag from executables and libraries.  But doing so
10168	  # requires that you compile everything twice, which is a pain.
10169	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10170	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10171	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10172	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10173	  else
10174	    ld_shlibs=no
10175	  fi
10176	;;
10177      esac
10178      ;;
10179
10180    sunos4*)
10181      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10182      wlarc=
10183      hardcode_direct=yes
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    *)
10188      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10190	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10191      else
10192	ld_shlibs=no
10193      fi
10194      ;;
10195    esac
10196
10197    if test no = "$ld_shlibs"; then
10198      runpath_var=
10199      hardcode_libdir_flag_spec=
10200      export_dynamic_flag_spec=
10201      whole_archive_flag_spec=
10202    fi
10203  else
10204    # PORTME fill in a description of your system's linker (not GNU ld)
10205    case $host_os in
10206    aix3*)
10207      allow_undefined_flag=unsupported
10208      always_export_symbols=yes
10209      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'
10210      # Note: this linker hardcodes the directories in LIBPATH if there
10211      # are no directories specified by -L.
10212      hardcode_minus_L=yes
10213      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10214	# Neither direct hardcoding nor static linking is supported with a
10215	# broken collect2.
10216	hardcode_direct=unsupported
10217      fi
10218      ;;
10219
10220    aix[4-9]*)
10221      if test ia64 = "$host_cpu"; then
10222	# On IA64, the linker does run time linking by default, so we don't
10223	# have to do anything special.
10224	aix_use_runtimelinking=no
10225	exp_sym_flag='-Bexport'
10226	no_entry_flag=
10227      else
10228	# If we're using GNU nm, then we don't want the "-C" option.
10229	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10230	# Without the "-l" option, or with the "-B" option, AIX nm treats
10231	# weak defined symbols like other global defined symbols, whereas
10232	# GNU nm marks them as "W".
10233	# While the 'weak' keyword is ignored in the Export File, we need
10234	# it in the Import File for the 'aix-soname' feature, so we have
10235	# to replace the "-B" option with "-P" for AIX nm.
10236	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10237	  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'
10238	else
10239	  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'
10240	fi
10241	aix_use_runtimelinking=no
10242
10243	# Test if we are trying to use run time linking or normal
10244	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245	# have runtime linking enabled, and use it for executables.
10246	# For shared libraries, we enable/disable runtime linking
10247	# depending on the kind of the shared library created -
10248	# when "with_aix_soname,aix_use_runtimelinking" is:
10249	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10250	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10251	#            lib.a           static archive
10252	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10253	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10254	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10255	#            lib.a(lib.so.V) shared, rtl:no
10256	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10257	#            lib.a           static archive
10258	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259	  for ld_flag in $LDFLAGS; do
10260	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10261	    aix_use_runtimelinking=yes
10262	    break
10263	  fi
10264	  done
10265	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10266	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10267	    # so we don't have lib.a shared libs to link our executables.
10268	    # We have to force runtime linking in this case.
10269	    aix_use_runtimelinking=yes
10270	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10271	  fi
10272	  ;;
10273	esac
10274
10275	exp_sym_flag='-bexport'
10276	no_entry_flag='-bnoentry'
10277      fi
10278
10279      # When large executables or shared objects are built, AIX ld can
10280      # have problems creating the table of contents.  If linking a library
10281      # or program results in "error TOC overflow" add -mminimal-toc to
10282      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10283      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10284
10285      archive_cmds=''
10286      hardcode_direct=yes
10287      hardcode_direct_absolute=yes
10288      hardcode_libdir_separator=':'
10289      link_all_deplibs=yes
10290      file_list_spec='$wl-f,'
10291      case $with_aix_soname,$aix_use_runtimelinking in
10292      aix,*) ;; # traditional, no import file
10293      svr4,* | *,yes) # use import file
10294	# The Import File defines what to hardcode.
10295	hardcode_direct=no
10296	hardcode_direct_absolute=no
10297	;;
10298      esac
10299
10300      if test yes = "$GCC"; then
10301	case $host_os in aix4.[012]|aix4.[012].*)
10302	# We only want to do this on AIX 4.2 and lower, the check
10303	# below for broken collect2 doesn't work under 4.3+
10304	  collect2name=`$CC -print-prog-name=collect2`
10305	  if test -f "$collect2name" &&
10306	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10307	  then
10308	  # We have reworked collect2
10309	  :
10310	  else
10311	  # We have old collect2
10312	  hardcode_direct=unsupported
10313	  # It fails to find uninstalled libraries when the uninstalled
10314	  # path is not listed in the libpath.  Setting hardcode_minus_L
10315	  # to unsupported forces relinking
10316	  hardcode_minus_L=yes
10317	  hardcode_libdir_flag_spec='-L$libdir'
10318	  hardcode_libdir_separator=
10319	  fi
10320	  ;;
10321	esac
10322	shared_flag='-shared'
10323	if test yes = "$aix_use_runtimelinking"; then
10324	  shared_flag="$shared_flag "'$wl-G'
10325	fi
10326	# Need to ensure runtime linking is disabled for the traditional
10327	# shared library, or the linker may eventually find shared libraries
10328	# /with/ Import File - we do not want to mix them.
10329	shared_flag_aix='-shared'
10330	shared_flag_svr4='-shared $wl-G'
10331      else
10332	# not using gcc
10333	if test ia64 = "$host_cpu"; then
10334	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10335	# chokes on -Wl,-G. The following line is correct:
10336	  shared_flag='-G'
10337	else
10338	  if test yes = "$aix_use_runtimelinking"; then
10339	    shared_flag='$wl-G'
10340	  else
10341	    shared_flag='$wl-bM:SRE'
10342	  fi
10343	  shared_flag_aix='$wl-bM:SRE'
10344	  shared_flag_svr4='$wl-G'
10345	fi
10346      fi
10347
10348      export_dynamic_flag_spec='$wl-bexpall'
10349      # It seems that -bexpall does not export symbols beginning with
10350      # underscore (_), so it is better to generate a list of symbols to export.
10351      always_export_symbols=yes
10352      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10353	# Warning - without using the other runtime loading flags (-brtl),
10354	# -berok will link without error, but may produce a broken library.
10355	allow_undefined_flag='-berok'
10356        # Determine the default libpath from the value encoded in an
10357        # empty executable.
10358        if test set = "${lt_cv_aix_libpath+set}"; then
10359  aix_libpath=$lt_cv_aix_libpath
10360else
10361  if ${lt_cv_aix_libpath_+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366
10367int
10368main ()
10369{
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
10376
10377  lt_aix_libpath_sed='
10378      /Import File Strings/,/^$/ {
10379	  /^0/ {
10380	      s/^0  *\([^ ]*\) *$/\1/
10381	      p
10382	  }
10383      }'
10384  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10385  # Check for a 64-bit object if we didn't find anything.
10386  if test -z "$lt_cv_aix_libpath_"; then
10387    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10388  fi
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391    conftest$ac_exeext conftest.$ac_ext
10392  if test -z "$lt_cv_aix_libpath_"; then
10393    lt_cv_aix_libpath_=/usr/lib:/lib
10394  fi
10395
10396fi
10397
10398  aix_libpath=$lt_cv_aix_libpath_
10399fi
10400
10401        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10402        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
10403      else
10404	if test ia64 = "$host_cpu"; then
10405	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10406	  allow_undefined_flag="-z nodefs"
10407	  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"
10408	else
10409	 # Determine the default libpath from the value encoded in an
10410	 # empty executable.
10411	 if test set = "${lt_cv_aix_libpath+set}"; then
10412  aix_libpath=$lt_cv_aix_libpath
10413else
10414  if ${lt_cv_aix_libpath_+:} false; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419
10420int
10421main ()
10422{
10423
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_link "$LINENO"; then :
10429
10430  lt_aix_libpath_sed='
10431      /Import File Strings/,/^$/ {
10432	  /^0/ {
10433	      s/^0  *\([^ ]*\) *$/\1/
10434	      p
10435	  }
10436      }'
10437  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10438  # Check for a 64-bit object if we didn't find anything.
10439  if test -z "$lt_cv_aix_libpath_"; then
10440    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10441  fi
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444    conftest$ac_exeext conftest.$ac_ext
10445  if test -z "$lt_cv_aix_libpath_"; then
10446    lt_cv_aix_libpath_=/usr/lib:/lib
10447  fi
10448
10449fi
10450
10451  aix_libpath=$lt_cv_aix_libpath_
10452fi
10453
10454	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10455	  # Warning - without using the other run time loading flags,
10456	  # -berok will link without error, but may produce a broken library.
10457	  no_undefined_flag=' $wl-bernotok'
10458	  allow_undefined_flag=' $wl-berok'
10459	  if test yes = "$with_gnu_ld"; then
10460	    # We only use this code for GNU lds that support --whole-archive.
10461	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10462	  else
10463	    # Exported symbols can be pulled into shared objects from archives
10464	    whole_archive_flag_spec='$convenience'
10465	  fi
10466	  archive_cmds_need_lc=yes
10467	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10468	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10469	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10470	  if test svr4 != "$with_aix_soname"; then
10471	    # This is similar to how AIX traditionally builds its shared libraries.
10472	    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'
10473	  fi
10474	  if test aix != "$with_aix_soname"; then
10475	    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'
10476	  else
10477	    # used by -dlpreopen to get the symbols
10478	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10479	  fi
10480	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10481	fi
10482      fi
10483      ;;
10484
10485    amigaos*)
10486      case $host_cpu in
10487      powerpc)
10488            # see comment about AmigaOS4 .so support
10489            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10490            archive_expsym_cmds=''
10491        ;;
10492      m68k)
10493            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)'
10494            hardcode_libdir_flag_spec='-L$libdir'
10495            hardcode_minus_L=yes
10496        ;;
10497      esac
10498      ;;
10499
10500    bsdi[45]*)
10501      export_dynamic_flag_spec=-rdynamic
10502      ;;
10503
10504    cygwin* | mingw* | pw32* | cegcc*)
10505      # When not using gcc, we currently assume that we are using
10506      # Microsoft Visual C++.
10507      # hardcode_libdir_flag_spec is actually meaningless, as there is
10508      # no search path for DLLs.
10509      case $cc_basename in
10510      cl*)
10511	# Native MSVC
10512	hardcode_libdir_flag_spec=' '
10513	allow_undefined_flag=unsupported
10514	always_export_symbols=yes
10515	file_list_spec='@'
10516	# Tell ltmain to make .lib files, not .a files.
10517	libext=lib
10518	# Tell ltmain to make .dll files, not .so files.
10519	shrext_cmds=.dll
10520	# FIXME: Setting linknames here is a bad hack.
10521	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10522	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10523            cp "$export_symbols" "$output_objdir/$soname.def";
10524            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10525          else
10526            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10527          fi~
10528          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10529          linknames='
10530	# The linker will not automatically build a static lib if we build a DLL.
10531	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10532	enable_shared_with_static_runtimes=yes
10533	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10534	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10535	# Don't use ranlib
10536	old_postinstall_cmds='chmod 644 $oldlib'
10537	postlink_cmds='lt_outputfile="@OUTPUT@"~
10538          lt_tool_outputfile="@TOOL_OUTPUT@"~
10539          case $lt_outputfile in
10540            *.exe|*.EXE) ;;
10541            *)
10542              lt_outputfile=$lt_outputfile.exe
10543              lt_tool_outputfile=$lt_tool_outputfile.exe
10544              ;;
10545          esac~
10546          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10547            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10548            $RM "$lt_outputfile.manifest";
10549          fi'
10550	;;
10551      *)
10552	# Assume MSVC wrapper
10553	hardcode_libdir_flag_spec=' '
10554	allow_undefined_flag=unsupported
10555	# Tell ltmain to make .lib files, not .a files.
10556	libext=lib
10557	# Tell ltmain to make .dll files, not .so files.
10558	shrext_cmds=.dll
10559	# FIXME: Setting linknames here is a bad hack.
10560	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10561	# The linker will automatically build a .lib file if we build a DLL.
10562	old_archive_from_new_cmds='true'
10563	# FIXME: Should let the user specify the lib program.
10564	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10565	enable_shared_with_static_runtimes=yes
10566	;;
10567      esac
10568      ;;
10569
10570    darwin* | rhapsody*)
10571
10572
10573  archive_cmds_need_lc=no
10574  hardcode_direct=no
10575  hardcode_automatic=yes
10576  hardcode_shlibpath_var=unsupported
10577  if test yes = "$lt_cv_ld_force_load"; then
10578    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\"`'
10579
10580  else
10581    whole_archive_flag_spec=''
10582  fi
10583  link_all_deplibs=yes
10584  allow_undefined_flag=$_lt_dar_allow_undefined
10585  case $cc_basename in
10586     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10587     *) _lt_dar_can_shared=$GCC ;;
10588  esac
10589  if test yes = "$_lt_dar_can_shared"; then
10590    output_verbose_link_cmd=func_echo_all
10591    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10592    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10593    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"
10594    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"
10595
10596  else
10597  ld_shlibs=no
10598  fi
10599
10600      ;;
10601
10602    dgux*)
10603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604      hardcode_libdir_flag_spec='-L$libdir'
10605      hardcode_shlibpath_var=no
10606      ;;
10607
10608    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10609    # support.  Future versions do this automatically, but an explicit c++rt0.o
10610    # does not break anything, and helps significantly (at the cost of a little
10611    # extra space).
10612    freebsd2.2*)
10613      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10614      hardcode_libdir_flag_spec='-R$libdir'
10615      hardcode_direct=yes
10616      hardcode_shlibpath_var=no
10617      ;;
10618
10619    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10620    freebsd2.*)
10621      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10622      hardcode_direct=yes
10623      hardcode_minus_L=yes
10624      hardcode_shlibpath_var=no
10625      ;;
10626
10627    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10628    freebsd* | dragonfly*)
10629      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10630      hardcode_libdir_flag_spec='-R$libdir'
10631      hardcode_direct=yes
10632      hardcode_shlibpath_var=no
10633      ;;
10634
10635    hpux9*)
10636      if test yes = "$GCC"; then
10637	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'
10638      else
10639	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'
10640      fi
10641      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10642      hardcode_libdir_separator=:
10643      hardcode_direct=yes
10644
10645      # hardcode_minus_L: Not really in the search PATH,
10646      # but as the default location of the library.
10647      hardcode_minus_L=yes
10648      export_dynamic_flag_spec='$wl-E'
10649      ;;
10650
10651    hpux10*)
10652      if test yes,no = "$GCC,$with_gnu_ld"; then
10653	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10654      else
10655	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10656      fi
10657      if test no = "$with_gnu_ld"; then
10658	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10659	hardcode_libdir_separator=:
10660	hardcode_direct=yes
10661	hardcode_direct_absolute=yes
10662	export_dynamic_flag_spec='$wl-E'
10663	# hardcode_minus_L: Not really in the search PATH,
10664	# but as the default location of the library.
10665	hardcode_minus_L=yes
10666      fi
10667      ;;
10668
10669    hpux11*)
10670      if test yes,no = "$GCC,$with_gnu_ld"; then
10671	case $host_cpu in
10672	hppa*64*)
10673	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10674	  ;;
10675	ia64*)
10676	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677	  ;;
10678	*)
10679	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680	  ;;
10681	esac
10682      else
10683	case $host_cpu in
10684	hppa*64*)
10685	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10686	  ;;
10687	ia64*)
10688	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10689	  ;;
10690	*)
10691
10692	  # Older versions of the 11.00 compiler do not understand -b yet
10693	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10694	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10695$as_echo_n "checking if $CC understands -b... " >&6; }
10696if ${lt_cv_prog_compiler__b+:} false; then :
10697  $as_echo_n "(cached) " >&6
10698else
10699  lt_cv_prog_compiler__b=no
10700   save_LDFLAGS=$LDFLAGS
10701   LDFLAGS="$LDFLAGS -b"
10702   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10704     # The linker can only warn and ignore the option if not recognized
10705     # So say no if there are warnings
10706     if test -s conftest.err; then
10707       # Append any errors to the config.log.
10708       cat conftest.err 1>&5
10709       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10711       if diff conftest.exp conftest.er2 >/dev/null; then
10712         lt_cv_prog_compiler__b=yes
10713       fi
10714     else
10715       lt_cv_prog_compiler__b=yes
10716     fi
10717   fi
10718   $RM -r conftest*
10719   LDFLAGS=$save_LDFLAGS
10720
10721fi
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10723$as_echo "$lt_cv_prog_compiler__b" >&6; }
10724
10725if test yes = "$lt_cv_prog_compiler__b"; then
10726    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10727else
10728    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10729fi
10730
10731	  ;;
10732	esac
10733      fi
10734      if test no = "$with_gnu_ld"; then
10735	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10736	hardcode_libdir_separator=:
10737
10738	case $host_cpu in
10739	hppa*64*|ia64*)
10740	  hardcode_direct=no
10741	  hardcode_shlibpath_var=no
10742	  ;;
10743	*)
10744	  hardcode_direct=yes
10745	  hardcode_direct_absolute=yes
10746	  export_dynamic_flag_spec='$wl-E'
10747
10748	  # hardcode_minus_L: Not really in the search PATH,
10749	  # but as the default location of the library.
10750	  hardcode_minus_L=yes
10751	  ;;
10752	esac
10753      fi
10754      ;;
10755
10756    irix5* | irix6* | nonstopux*)
10757      if test yes = "$GCC"; then
10758	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'
10759	# Try to use the -exported_symbol ld option, if it does not
10760	# work, assume that -exports_file does not work either and
10761	# implicitly export all symbols.
10762	# This should be the same for all languages, so no per-tag cache variable.
10763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10764$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10765if ${lt_cv_irix_exported_symbol+:} false; then :
10766  $as_echo_n "(cached) " >&6
10767else
10768  save_LDFLAGS=$LDFLAGS
10769	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10770	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int foo (void) { return 0; }
10773_ACEOF
10774if ac_fn_c_try_link "$LINENO"; then :
10775  lt_cv_irix_exported_symbol=yes
10776else
10777  lt_cv_irix_exported_symbol=no
10778fi
10779rm -f core conftest.err conftest.$ac_objext \
10780    conftest$ac_exeext conftest.$ac_ext
10781           LDFLAGS=$save_LDFLAGS
10782fi
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10784$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10785	if test yes = "$lt_cv_irix_exported_symbol"; then
10786          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'
10787	fi
10788      else
10789	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'
10790	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'
10791      fi
10792      archive_cmds_need_lc='no'
10793      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794      hardcode_libdir_separator=:
10795      inherit_rpath=yes
10796      link_all_deplibs=yes
10797      ;;
10798
10799    linux*)
10800      case $cc_basename in
10801      tcc*)
10802	# Fabrice Bellard et al's Tiny C Compiler
10803	ld_shlibs=yes
10804	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805	;;
10806      esac
10807      ;;
10808
10809    netbsd*)
10810      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10812      else
10813	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10814      fi
10815      hardcode_libdir_flag_spec='-R$libdir'
10816      hardcode_direct=yes
10817      hardcode_shlibpath_var=no
10818      ;;
10819
10820    newsos6)
10821      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822      hardcode_direct=yes
10823      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10824      hardcode_libdir_separator=:
10825      hardcode_shlibpath_var=no
10826      ;;
10827
10828    *nto* | *qnx*)
10829      ;;
10830
10831    openbsd* | bitrig*)
10832      if test -f /usr/libexec/ld.so; then
10833	hardcode_direct=yes
10834	hardcode_shlibpath_var=no
10835	hardcode_direct_absolute=yes
10836	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10837	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10838	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10839	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10840	  export_dynamic_flag_spec='$wl-E'
10841	else
10842	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10844	fi
10845      else
10846	ld_shlibs=no
10847      fi
10848      ;;
10849
10850    os2*)
10851      hardcode_libdir_flag_spec='-L$libdir'
10852      hardcode_minus_L=yes
10853      allow_undefined_flag=unsupported
10854      shrext_cmds=.dll
10855      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10856	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10857	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10858	$ECHO EXPORTS >> $output_objdir/$libname.def~
10859	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10860	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10861	emximp -o $lib $output_objdir/$libname.def'
10862      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10863	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10864	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10865	$ECHO EXPORTS >> $output_objdir/$libname.def~
10866	prefix_cmds="$SED"~
10867	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10868	  prefix_cmds="$prefix_cmds -e 1d";
10869	fi~
10870	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10871	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10872	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10873	emximp -o $lib $output_objdir/$libname.def'
10874      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10875      enable_shared_with_static_runtimes=yes
10876      ;;
10877
10878    osf3*)
10879      if test yes = "$GCC"; then
10880	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10881	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'
10882      else
10883	allow_undefined_flag=' -expect_unresolved \*'
10884	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'
10885      fi
10886      archive_cmds_need_lc='no'
10887      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10888      hardcode_libdir_separator=:
10889      ;;
10890
10891    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10892      if test yes = "$GCC"; then
10893	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10894	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'
10895	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10896      else
10897	allow_undefined_flag=' -expect_unresolved \*'
10898	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'
10899	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~
10900          $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'
10901
10902	# Both c and cxx compiler support -rpath directly
10903	hardcode_libdir_flag_spec='-rpath $libdir'
10904      fi
10905      archive_cmds_need_lc='no'
10906      hardcode_libdir_separator=:
10907      ;;
10908
10909    solaris*)
10910      no_undefined_flag=' -z defs'
10911      if test yes = "$GCC"; then
10912	wlarc='$wl'
10913	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10914	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915          $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'
10916      else
10917	case `$CC -V 2>&1` in
10918	*"Compilers 5.0"*)
10919	  wlarc=''
10920	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10922            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10923	  ;;
10924	*)
10925	  wlarc='$wl'
10926	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10927	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10929	  ;;
10930	esac
10931      fi
10932      hardcode_libdir_flag_spec='-R$libdir'
10933      hardcode_shlibpath_var=no
10934      case $host_os in
10935      solaris2.[0-5] | solaris2.[0-5].*) ;;
10936      *)
10937	# The compiler driver will combine and reorder linker options,
10938	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10939	# but is careful enough not to reorder.
10940	# Supported since Solaris 2.6 (maybe 2.5.1?)
10941	if test yes = "$GCC"; then
10942	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10943	else
10944	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10945	fi
10946	;;
10947      esac
10948      link_all_deplibs=yes
10949      ;;
10950
10951    sunos4*)
10952      if test sequent = "$host_vendor"; then
10953	# Use $CC to link under sequent, because it throws in some extra .o
10954	# files that make .init and .fini sections work.
10955	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10956      else
10957	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10958      fi
10959      hardcode_libdir_flag_spec='-L$libdir'
10960      hardcode_direct=yes
10961      hardcode_minus_L=yes
10962      hardcode_shlibpath_var=no
10963      ;;
10964
10965    sysv4)
10966      case $host_vendor in
10967	sni)
10968	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969	  hardcode_direct=yes # is this really true???
10970	;;
10971	siemens)
10972	  ## LD is ld it makes a PLAMLIB
10973	  ## CC just makes a GrossModule.
10974	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10975	  reload_cmds='$CC -r -o $output$reload_objs'
10976	  hardcode_direct=no
10977        ;;
10978	motorola)
10979	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10981	;;
10982      esac
10983      runpath_var='LD_RUN_PATH'
10984      hardcode_shlibpath_var=no
10985      ;;
10986
10987    sysv4.3*)
10988      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989      hardcode_shlibpath_var=no
10990      export_dynamic_flag_spec='-Bexport'
10991      ;;
10992
10993    sysv4*MP*)
10994      if test -d /usr/nec; then
10995	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996	hardcode_shlibpath_var=no
10997	runpath_var=LD_RUN_PATH
10998	hardcode_runpath_var=yes
10999	ld_shlibs=yes
11000      fi
11001      ;;
11002
11003    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11004      no_undefined_flag='$wl-z,text'
11005      archive_cmds_need_lc=no
11006      hardcode_shlibpath_var=no
11007      runpath_var='LD_RUN_PATH'
11008
11009      if test yes = "$GCC"; then
11010	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012      else
11013	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015      fi
11016      ;;
11017
11018    sysv5* | sco3.2v5* | sco5v6*)
11019      # Note: We CANNOT use -z defs as we might desire, because we do not
11020      # link with -lc, and that would cause any symbols used from libc to
11021      # always be unresolved, which means just about no library would
11022      # ever link correctly.  If we're not using GNU ld we use -z text
11023      # though, which does catch some bad symbols but isn't as heavy-handed
11024      # as -z defs.
11025      no_undefined_flag='$wl-z,text'
11026      allow_undefined_flag='$wl-z,nodefs'
11027      archive_cmds_need_lc=no
11028      hardcode_shlibpath_var=no
11029      hardcode_libdir_flag_spec='$wl-R,$libdir'
11030      hardcode_libdir_separator=':'
11031      link_all_deplibs=yes
11032      export_dynamic_flag_spec='$wl-Bexport'
11033      runpath_var='LD_RUN_PATH'
11034
11035      if test yes = "$GCC"; then
11036	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038      else
11039	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041      fi
11042      ;;
11043
11044    uts4*)
11045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11046      hardcode_libdir_flag_spec='-L$libdir'
11047      hardcode_shlibpath_var=no
11048      ;;
11049
11050    *)
11051      ld_shlibs=no
11052      ;;
11053    esac
11054
11055    if test sni = "$host_vendor"; then
11056      case $host in
11057      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11058	export_dynamic_flag_spec='$wl-Blargedynsym'
11059	;;
11060      esac
11061    fi
11062  fi
11063
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11065$as_echo "$ld_shlibs" >&6; }
11066test no = "$ld_shlibs" && can_build_shared=no
11067
11068with_gnu_ld=$with_gnu_ld
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084#
11085# Do we need to explicitly link libc?
11086#
11087case "x$archive_cmds_need_lc" in
11088x|xyes)
11089  # Assume -lc should be added
11090  archive_cmds_need_lc=yes
11091
11092  if test yes,yes = "$GCC,$enable_shared"; then
11093    case $archive_cmds in
11094    *'~'*)
11095      # FIXME: we may have to deal with multi-command sequences.
11096      ;;
11097    '$CC '*)
11098      # Test whether the compiler implicitly links with -lc since on some
11099      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11100      # to ld, don't add -lc before -lgcc.
11101      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11102$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11103if ${lt_cv_archive_cmds_need_lc+:} false; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  $RM conftest*
11107	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11108
11109	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11110  (eval $ac_compile) 2>&5
11111  ac_status=$?
11112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113  test $ac_status = 0; } 2>conftest.err; then
11114	  soname=conftest
11115	  lib=conftest
11116	  libobjs=conftest.$ac_objext
11117	  deplibs=
11118	  wl=$lt_prog_compiler_wl
11119	  pic_flag=$lt_prog_compiler_pic
11120	  compiler_flags=-v
11121	  linker_flags=-v
11122	  verstring=
11123	  output_objdir=.
11124	  libname=conftest
11125	  lt_save_allow_undefined_flag=$allow_undefined_flag
11126	  allow_undefined_flag=
11127	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11128  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11129  ac_status=$?
11130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; }
11132	  then
11133	    lt_cv_archive_cmds_need_lc=no
11134	  else
11135	    lt_cv_archive_cmds_need_lc=yes
11136	  fi
11137	  allow_undefined_flag=$lt_save_allow_undefined_flag
11138	else
11139	  cat conftest.err 1>&5
11140	fi
11141	$RM conftest*
11142
11143fi
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11145$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11146      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11147      ;;
11148    esac
11149  fi
11150  ;;
11151esac
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11305$as_echo_n "checking dynamic linker characteristics... " >&6; }
11306
11307if test yes = "$GCC"; then
11308  case $host_os in
11309    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11310    *) lt_awk_arg='/^libraries:/' ;;
11311  esac
11312  case $host_os in
11313    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11314    *) lt_sed_strip_eq='s|=/|/|g' ;;
11315  esac
11316  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11317  case $lt_search_path_spec in
11318  *\;*)
11319    # if the path contains ";" then we assume it to be the separator
11320    # otherwise default to the standard path separator (i.e. ":") - it is
11321    # assumed that no part of a normal pathname contains ";" but that should
11322    # okay in the real world where ";" in dirpaths is itself problematic.
11323    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11324    ;;
11325  *)
11326    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11327    ;;
11328  esac
11329  # Ok, now we have the path, separated by spaces, we can step through it
11330  # and add multilib dir if necessary...
11331  lt_tmp_lt_search_path_spec=
11332  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11333  # ...but if some path component already ends with the multilib dir we assume
11334  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11335  case "$lt_multi_os_dir; $lt_search_path_spec " in
11336  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11337    lt_multi_os_dir=
11338    ;;
11339  esac
11340  for lt_sys_path in $lt_search_path_spec; do
11341    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11342      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11343    elif test -n "$lt_multi_os_dir"; then
11344      test -d "$lt_sys_path" && \
11345	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11346    fi
11347  done
11348  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11349BEGIN {RS = " "; FS = "/|\n";} {
11350  lt_foo = "";
11351  lt_count = 0;
11352  for (lt_i = NF; lt_i > 0; lt_i--) {
11353    if ($lt_i != "" && $lt_i != ".") {
11354      if ($lt_i == "..") {
11355        lt_count++;
11356      } else {
11357        if (lt_count == 0) {
11358          lt_foo = "/" $lt_i lt_foo;
11359        } else {
11360          lt_count--;
11361        }
11362      }
11363    }
11364  }
11365  if (lt_foo != "") { lt_freq[lt_foo]++; }
11366  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11367}'`
11368  # AWK program above erroneously prepends '/' to C:/dos/paths
11369  # for these hosts.
11370  case $host_os in
11371    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11372      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11373  esac
11374  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11375else
11376  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11377fi
11378library_names_spec=
11379libname_spec='lib$name'
11380soname_spec=
11381shrext_cmds=.so
11382postinstall_cmds=
11383postuninstall_cmds=
11384finish_cmds=
11385finish_eval=
11386shlibpath_var=
11387shlibpath_overrides_runpath=unknown
11388version_type=none
11389dynamic_linker="$host_os ld.so"
11390sys_lib_dlsearch_path_spec="/lib /usr/lib"
11391need_lib_prefix=unknown
11392hardcode_into_libs=no
11393
11394# when you set need_version to no, make sure it does not cause -set_version
11395# flags to be left without arguments
11396need_version=unknown
11397
11398case $host_os in
11399aix3*)
11400  version_type=linux # correct to gnu/linux during the next big refactor
11401  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11402  shlibpath_var=LIBPATH
11403
11404  # AIX 3 has no versioning support, so we append a major version to the name.
11405  soname_spec='$libname$release$shared_ext$major'
11406  ;;
11407
11408aix[4-9]*)
11409  version_type=linux # correct to gnu/linux during the next big refactor
11410  need_lib_prefix=no
11411  need_version=no
11412  hardcode_into_libs=yes
11413  if test ia64 = "$host_cpu"; then
11414    # AIX 5 supports IA64
11415    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11416    shlibpath_var=LD_LIBRARY_PATH
11417  else
11418    # With GCC up to 2.95.x, collect2 would create an import file
11419    # for dependence libraries.  The import file would start with
11420    # the line '#! .'.  This would cause the generated library to
11421    # depend on '.', always an invalid library.  This was fixed in
11422    # development snapshots of GCC prior to 3.0.
11423    case $host_os in
11424      aix4 | aix4.[01] | aix4.[01].*)
11425      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11426	   echo ' yes '
11427	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11428	:
11429      else
11430	can_build_shared=no
11431      fi
11432      ;;
11433    esac
11434    # Using Import Files as archive members, it is possible to support
11435    # filename-based versioning of shared library archives on AIX. While
11436    # this would work for both with and without runtime linking, it will
11437    # prevent static linking of such archives. So we do filename-based
11438    # shared library versioning with .so extension only, which is used
11439    # when both runtime linking and shared linking is enabled.
11440    # Unfortunately, runtime linking may impact performance, so we do
11441    # not want this to be the default eventually. Also, we use the
11442    # versioned .so libs for executables only if there is the -brtl
11443    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11444    # To allow for filename-based versioning support, we need to create
11445    # libNAME.so.V as an archive file, containing:
11446    # *) an Import File, referring to the versioned filename of the
11447    #    archive as well as the shared archive member, telling the
11448    #    bitwidth (32 or 64) of that shared object, and providing the
11449    #    list of exported symbols of that shared object, eventually
11450    #    decorated with the 'weak' keyword
11451    # *) the shared object with the F_LOADONLY flag set, to really avoid
11452    #    it being seen by the linker.
11453    # At run time we better use the real file rather than another symlink,
11454    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11455
11456    case $with_aix_soname,$aix_use_runtimelinking in
11457    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11458    # soname into executable. Probably we can add versioning support to
11459    # collect2, so additional links can be useful in future.
11460    aix,yes) # traditional libtool
11461      dynamic_linker='AIX unversionable lib.so'
11462      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11463      # instead of lib<name>.a to let people know that these are not
11464      # typical AIX shared libraries.
11465      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11466      ;;
11467    aix,no) # traditional AIX only
11468      dynamic_linker='AIX lib.a(lib.so.V)'
11469      # We preserve .a as extension for shared libraries through AIX4.2
11470      # and later when we are not doing run time linking.
11471      library_names_spec='$libname$release.a $libname.a'
11472      soname_spec='$libname$release$shared_ext$major'
11473      ;;
11474    svr4,*) # full svr4 only
11475      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11476      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11477      # We do not specify a path in Import Files, so LIBPATH fires.
11478      shlibpath_overrides_runpath=yes
11479      ;;
11480    *,yes) # both, prefer svr4
11481      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11482      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11483      # unpreferred sharedlib libNAME.a needs extra handling
11484      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"'
11485      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"'
11486      # We do not specify a path in Import Files, so LIBPATH fires.
11487      shlibpath_overrides_runpath=yes
11488      ;;
11489    *,no) # both, prefer aix
11490      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11491      library_names_spec='$libname$release.a $libname.a'
11492      soname_spec='$libname$release$shared_ext$major'
11493      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11494      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)'
11495      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"'
11496      ;;
11497    esac
11498    shlibpath_var=LIBPATH
11499  fi
11500  ;;
11501
11502amigaos*)
11503  case $host_cpu in
11504  powerpc)
11505    # Since July 2007 AmigaOS4 officially supports .so libraries.
11506    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11507    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508    ;;
11509  m68k)
11510    library_names_spec='$libname.ixlibrary $libname.a'
11511    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11512    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'
11513    ;;
11514  esac
11515  ;;
11516
11517beos*)
11518  library_names_spec='$libname$shared_ext'
11519  dynamic_linker="$host_os ld.so"
11520  shlibpath_var=LIBRARY_PATH
11521  ;;
11522
11523bsdi[45]*)
11524  version_type=linux # correct to gnu/linux during the next big refactor
11525  need_version=no
11526  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11527  soname_spec='$libname$release$shared_ext$major'
11528  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11529  shlibpath_var=LD_LIBRARY_PATH
11530  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11531  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11532  # the default ld.so.conf also contains /usr/contrib/lib and
11533  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11534  # libtool to hard-code these into programs
11535  ;;
11536
11537cygwin* | mingw* | pw32* | cegcc*)
11538  version_type=windows
11539  shrext_cmds=.dll
11540  need_version=no
11541  need_lib_prefix=no
11542
11543  case $GCC,$cc_basename in
11544  yes,*)
11545    # gcc
11546    library_names_spec='$libname.dll.a'
11547    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11548    postinstall_cmds='base_file=`basename \$file`~
11549      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11550      dldir=$destdir/`dirname \$dlpath`~
11551      test -d \$dldir || mkdir -p \$dldir~
11552      $install_prog $dir/$dlname \$dldir/$dlname~
11553      chmod a+x \$dldir/$dlname~
11554      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11555        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11556      fi'
11557    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11558      dlpath=$dir/\$dldll~
11559       $RM \$dlpath'
11560    shlibpath_overrides_runpath=yes
11561
11562    case $host_os in
11563    cygwin*)
11564      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11565      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11566
11567      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11568      ;;
11569    mingw* | cegcc*)
11570      # MinGW DLLs use traditional 'lib' prefix
11571      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11572      ;;
11573    pw32*)
11574      # pw32 DLLs use 'pw' prefix rather than 'lib'
11575      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11576      ;;
11577    esac
11578    dynamic_linker='Win32 ld.exe'
11579    ;;
11580
11581  *,cl*)
11582    # Native MSVC
11583    libname_spec='$name'
11584    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11585    library_names_spec='$libname.dll.lib'
11586
11587    case $build_os in
11588    mingw*)
11589      sys_lib_search_path_spec=
11590      lt_save_ifs=$IFS
11591      IFS=';'
11592      for lt_path in $LIB
11593      do
11594        IFS=$lt_save_ifs
11595        # Let DOS variable expansion print the short 8.3 style file name.
11596        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11597        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11598      done
11599      IFS=$lt_save_ifs
11600      # Convert to MSYS style.
11601      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11602      ;;
11603    cygwin*)
11604      # Convert to unix form, then to dos form, then back to unix form
11605      # but this time dos style (no spaces!) so that the unix form looks
11606      # like /cygdrive/c/PROGRA~1:/cygdr...
11607      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11608      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11609      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11610      ;;
11611    *)
11612      sys_lib_search_path_spec=$LIB
11613      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11614        # It is most probably a Windows format PATH.
11615        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11616      else
11617        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11618      fi
11619      # FIXME: find the short name or the path components, as spaces are
11620      # common. (e.g. "Program Files" -> "PROGRA~1")
11621      ;;
11622    esac
11623
11624    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11625    postinstall_cmds='base_file=`basename \$file`~
11626      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11627      dldir=$destdir/`dirname \$dlpath`~
11628      test -d \$dldir || mkdir -p \$dldir~
11629      $install_prog $dir/$dlname \$dldir/$dlname'
11630    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11631      dlpath=$dir/\$dldll~
11632       $RM \$dlpath'
11633    shlibpath_overrides_runpath=yes
11634    dynamic_linker='Win32 link.exe'
11635    ;;
11636
11637  *)
11638    # Assume MSVC wrapper
11639    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11640    dynamic_linker='Win32 ld.exe'
11641    ;;
11642  esac
11643  # FIXME: first we should search . and the directory the executable is in
11644  shlibpath_var=PATH
11645  ;;
11646
11647darwin* | rhapsody*)
11648  dynamic_linker="$host_os dyld"
11649  version_type=darwin
11650  need_lib_prefix=no
11651  need_version=no
11652  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11653  soname_spec='$libname$release$major$shared_ext'
11654  shlibpath_overrides_runpath=yes
11655  shlibpath_var=DYLD_LIBRARY_PATH
11656  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11657
11658  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11659  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11660  ;;
11661
11662dgux*)
11663  version_type=linux # correct to gnu/linux during the next big refactor
11664  need_lib_prefix=no
11665  need_version=no
11666  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11667  soname_spec='$libname$release$shared_ext$major'
11668  shlibpath_var=LD_LIBRARY_PATH
11669  ;;
11670
11671freebsd* | dragonfly*)
11672  # DragonFly does not have aout.  When/if they implement a new
11673  # versioning mechanism, adjust this.
11674  if test -x /usr/bin/objformat; then
11675    objformat=`/usr/bin/objformat`
11676  else
11677    case $host_os in
11678    freebsd[23].*) objformat=aout ;;
11679    *) objformat=elf ;;
11680    esac
11681  fi
11682  version_type=freebsd-$objformat
11683  case $version_type in
11684    freebsd-elf*)
11685      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686      need_version=no
11687      need_lib_prefix=no
11688      ;;
11689    freebsd-*)
11690      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11691      need_version=yes
11692      ;;
11693  esac
11694  shlibpath_var=LD_LIBRARY_PATH
11695  case $host_os in
11696  freebsd2.*)
11697    shlibpath_overrides_runpath=yes
11698    ;;
11699  freebsd3.[01]* | freebsdelf3.[01]*)
11700    shlibpath_overrides_runpath=yes
11701    hardcode_into_libs=yes
11702    ;;
11703  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11704  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11705    shlibpath_overrides_runpath=no
11706    hardcode_into_libs=yes
11707    ;;
11708  *) # from 4.6 on, and DragonFly
11709    shlibpath_overrides_runpath=yes
11710    hardcode_into_libs=yes
11711    ;;
11712  esac
11713  ;;
11714
11715haiku*)
11716  version_type=linux # correct to gnu/linux during the next big refactor
11717  need_lib_prefix=no
11718  need_version=no
11719  dynamic_linker="$host_os runtime_loader"
11720  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721  soname_spec='$libname$release$shared_ext$major'
11722  shlibpath_var=LIBRARY_PATH
11723  shlibpath_overrides_runpath=no
11724  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11725  hardcode_into_libs=yes
11726  ;;
11727
11728hpux9* | hpux10* | hpux11*)
11729  # Give a soname corresponding to the major version so that dld.sl refuses to
11730  # link against other versions.
11731  version_type=sunos
11732  need_lib_prefix=no
11733  need_version=no
11734  case $host_cpu in
11735  ia64*)
11736    shrext_cmds='.so'
11737    hardcode_into_libs=yes
11738    dynamic_linker="$host_os dld.so"
11739    shlibpath_var=LD_LIBRARY_PATH
11740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11741    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11742    soname_spec='$libname$release$shared_ext$major'
11743    if test 32 = "$HPUX_IA64_MODE"; then
11744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11745    else
11746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11747    fi
11748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11749    ;;
11750  hppa*64*)
11751    shrext_cmds='.sl'
11752    hardcode_into_libs=yes
11753    dynamic_linker="$host_os dld.sl"
11754    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11755    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11756    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11757    soname_spec='$libname$release$shared_ext$major'
11758    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11759    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11760    ;;
11761  *)
11762    shrext_cmds='.sl'
11763    dynamic_linker="$host_os dld.sl"
11764    shlibpath_var=SHLIB_PATH
11765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11766    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767    soname_spec='$libname$release$shared_ext$major'
11768    ;;
11769  esac
11770  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11771  postinstall_cmds='chmod 555 $lib'
11772  # or fails outright, so override atomically:
11773  install_override_mode=555
11774  ;;
11775
11776interix[3-9]*)
11777  version_type=linux # correct to gnu/linux during the next big refactor
11778  need_lib_prefix=no
11779  need_version=no
11780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781  soname_spec='$libname$release$shared_ext$major'
11782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11783  shlibpath_var=LD_LIBRARY_PATH
11784  shlibpath_overrides_runpath=no
11785  hardcode_into_libs=yes
11786  ;;
11787
11788irix5* | irix6* | nonstopux*)
11789  case $host_os in
11790    nonstopux*) version_type=nonstopux ;;
11791    *)
11792	if test yes = "$lt_cv_prog_gnu_ld"; then
11793		version_type=linux # correct to gnu/linux during the next big refactor
11794	else
11795		version_type=irix
11796	fi ;;
11797  esac
11798  need_lib_prefix=no
11799  need_version=no
11800  soname_spec='$libname$release$shared_ext$major'
11801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11802  case $host_os in
11803  irix5* | nonstopux*)
11804    libsuff= shlibsuff=
11805    ;;
11806  *)
11807    case $LD in # libtool.m4 will add one of these switches to LD
11808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11809      libsuff= shlibsuff= libmagic=32-bit;;
11810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11811      libsuff=32 shlibsuff=N32 libmagic=N32;;
11812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11814    *) libsuff= shlibsuff= libmagic=never-match;;
11815    esac
11816    ;;
11817  esac
11818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11819  shlibpath_overrides_runpath=no
11820  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11821  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11822  hardcode_into_libs=yes
11823  ;;
11824
11825# No shared lib support for Linux oldld, aout, or coff.
11826linux*oldld* | linux*aout* | linux*coff*)
11827  dynamic_linker=no
11828  ;;
11829
11830linux*android*)
11831  version_type=none # Android doesn't support versioned libraries.
11832  need_lib_prefix=no
11833  need_version=no
11834  library_names_spec='$libname$release$shared_ext'
11835  soname_spec='$libname$release$shared_ext'
11836  finish_cmds=
11837  shlibpath_var=LD_LIBRARY_PATH
11838  shlibpath_overrides_runpath=yes
11839
11840  # This implies no fast_install, which is unacceptable.
11841  # Some rework will be needed to allow for fast_install
11842  # before this can be enabled.
11843  hardcode_into_libs=yes
11844
11845  dynamic_linker='Android linker'
11846  # Don't embed -rpath directories since the linker doesn't support them.
11847  hardcode_libdir_flag_spec='-L$libdir'
11848  ;;
11849
11850# This must be glibc/ELF.
11851linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11852  version_type=linux # correct to gnu/linux during the next big refactor
11853  need_lib_prefix=no
11854  need_version=no
11855  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11856  soname_spec='$libname$release$shared_ext$major'
11857  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11858  shlibpath_var=LD_LIBRARY_PATH
11859  shlibpath_overrides_runpath=no
11860
11861  # Some binutils ld are patched to set DT_RUNPATH
11862  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  lt_cv_shlibpath_overrides_runpath=no
11866    save_LDFLAGS=$LDFLAGS
11867    save_libdir=$libdir
11868    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11869	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871/* end confdefs.h.  */
11872
11873int
11874main ()
11875{
11876
11877  ;
11878  return 0;
11879}
11880_ACEOF
11881if ac_fn_c_try_link "$LINENO"; then :
11882  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11883  lt_cv_shlibpath_overrides_runpath=yes
11884fi
11885fi
11886rm -f core conftest.err conftest.$ac_objext \
11887    conftest$ac_exeext conftest.$ac_ext
11888    LDFLAGS=$save_LDFLAGS
11889    libdir=$save_libdir
11890
11891fi
11892
11893  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11894
11895  # This implies no fast_install, which is unacceptable.
11896  # Some rework will be needed to allow for fast_install
11897  # before this can be enabled.
11898  hardcode_into_libs=yes
11899
11900  # Append ld.so.conf contents to the search path
11901  if test -f /etc/ld.so.conf; then
11902    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' ' '`
11903    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11904  fi
11905
11906  # We used to test for /lib/ld.so.1 and disable shared libraries on
11907  # powerpc, because MkLinux only supported shared libraries with the
11908  # GNU dynamic linker.  Since this was broken with cross compilers,
11909  # most powerpc-linux boxes support dynamic linking these days and
11910  # people can always --disable-shared, the test was removed, and we
11911  # assume the GNU/Linux dynamic linker is in use.
11912  dynamic_linker='GNU/Linux ld.so'
11913  ;;
11914
11915netbsd*)
11916  version_type=sunos
11917  need_lib_prefix=no
11918  need_version=no
11919  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11920    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11921    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11922    dynamic_linker='NetBSD (a.out) ld.so'
11923  else
11924    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11925    soname_spec='$libname$release$shared_ext$major'
11926    dynamic_linker='NetBSD ld.elf_so'
11927  fi
11928  shlibpath_var=LD_LIBRARY_PATH
11929  shlibpath_overrides_runpath=yes
11930  hardcode_into_libs=yes
11931  ;;
11932
11933newsos6)
11934  version_type=linux # correct to gnu/linux during the next big refactor
11935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936  shlibpath_var=LD_LIBRARY_PATH
11937  shlibpath_overrides_runpath=yes
11938  ;;
11939
11940*nto* | *qnx*)
11941  version_type=qnx
11942  need_lib_prefix=no
11943  need_version=no
11944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11945  soname_spec='$libname$release$shared_ext$major'
11946  shlibpath_var=LD_LIBRARY_PATH
11947  shlibpath_overrides_runpath=no
11948  hardcode_into_libs=yes
11949  dynamic_linker='ldqnx.so'
11950  ;;
11951
11952openbsd* | bitrig*)
11953  version_type=sunos
11954  sys_lib_dlsearch_path_spec=/usr/lib
11955  need_lib_prefix=no
11956  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11957    need_version=no
11958  else
11959    need_version=yes
11960  fi
11961  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11962  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11963  shlibpath_var=LD_LIBRARY_PATH
11964  shlibpath_overrides_runpath=yes
11965  ;;
11966
11967os2*)
11968  libname_spec='$name'
11969  version_type=windows
11970  shrext_cmds=.dll
11971  need_version=no
11972  need_lib_prefix=no
11973  # OS/2 can only load a DLL with a base name of 8 characters or less.
11974  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11975    v=$($ECHO $release$versuffix | tr -d .-);
11976    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11977    $ECHO $n$v`$shared_ext'
11978  library_names_spec='${libname}_dll.$libext'
11979  dynamic_linker='OS/2 ld.exe'
11980  shlibpath_var=BEGINLIBPATH
11981  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11982  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11983  postinstall_cmds='base_file=`basename \$file`~
11984    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11985    dldir=$destdir/`dirname \$dlpath`~
11986    test -d \$dldir || mkdir -p \$dldir~
11987    $install_prog $dir/$dlname \$dldir/$dlname~
11988    chmod a+x \$dldir/$dlname~
11989    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11990      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11991    fi'
11992  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11993    dlpath=$dir/\$dldll~
11994    $RM \$dlpath'
11995  ;;
11996
11997osf3* | osf4* | osf5*)
11998  version_type=osf
11999  need_lib_prefix=no
12000  need_version=no
12001  soname_spec='$libname$release$shared_ext$major'
12002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12003  shlibpath_var=LD_LIBRARY_PATH
12004  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12005  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12006  ;;
12007
12008rdos*)
12009  dynamic_linker=no
12010  ;;
12011
12012solaris*)
12013  version_type=linux # correct to gnu/linux during the next big refactor
12014  need_lib_prefix=no
12015  need_version=no
12016  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017  soname_spec='$libname$release$shared_ext$major'
12018  shlibpath_var=LD_LIBRARY_PATH
12019  shlibpath_overrides_runpath=yes
12020  hardcode_into_libs=yes
12021  # ldd complains unless libraries are executable
12022  postinstall_cmds='chmod +x $lib'
12023  ;;
12024
12025sunos4*)
12026  version_type=sunos
12027  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12028  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12029  shlibpath_var=LD_LIBRARY_PATH
12030  shlibpath_overrides_runpath=yes
12031  if test yes = "$with_gnu_ld"; then
12032    need_lib_prefix=no
12033  fi
12034  need_version=yes
12035  ;;
12036
12037sysv4 | sysv4.3*)
12038  version_type=linux # correct to gnu/linux during the next big refactor
12039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040  soname_spec='$libname$release$shared_ext$major'
12041  shlibpath_var=LD_LIBRARY_PATH
12042  case $host_vendor in
12043    sni)
12044      shlibpath_overrides_runpath=no
12045      need_lib_prefix=no
12046      runpath_var=LD_RUN_PATH
12047      ;;
12048    siemens)
12049      need_lib_prefix=no
12050      ;;
12051    motorola)
12052      need_lib_prefix=no
12053      need_version=no
12054      shlibpath_overrides_runpath=no
12055      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12056      ;;
12057  esac
12058  ;;
12059
12060sysv4*MP*)
12061  if test -d /usr/nec; then
12062    version_type=linux # correct to gnu/linux during the next big refactor
12063    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12064    soname_spec='$libname$shared_ext.$major'
12065    shlibpath_var=LD_LIBRARY_PATH
12066  fi
12067  ;;
12068
12069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12070  version_type=sco
12071  need_lib_prefix=no
12072  need_version=no
12073  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12074  soname_spec='$libname$release$shared_ext$major'
12075  shlibpath_var=LD_LIBRARY_PATH
12076  shlibpath_overrides_runpath=yes
12077  hardcode_into_libs=yes
12078  if test yes = "$with_gnu_ld"; then
12079    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12080  else
12081    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12082    case $host_os in
12083      sco3.2v5*)
12084        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12085	;;
12086    esac
12087  fi
12088  sys_lib_dlsearch_path_spec='/usr/lib'
12089  ;;
12090
12091tpf*)
12092  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12093  version_type=linux # correct to gnu/linux during the next big refactor
12094  need_lib_prefix=no
12095  need_version=no
12096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12097  shlibpath_var=LD_LIBRARY_PATH
12098  shlibpath_overrides_runpath=no
12099  hardcode_into_libs=yes
12100  ;;
12101
12102uts4*)
12103  version_type=linux # correct to gnu/linux during the next big refactor
12104  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12105  soname_spec='$libname$release$shared_ext$major'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  ;;
12108
12109*)
12110  dynamic_linker=no
12111  ;;
12112esac
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12114$as_echo "$dynamic_linker" >&6; }
12115test no = "$dynamic_linker" && can_build_shared=no
12116
12117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12118if test yes = "$GCC"; then
12119  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12120fi
12121
12122if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12123  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12124fi
12125if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12126  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12127fi
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12221$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12222hardcode_action=
12223if test -n "$hardcode_libdir_flag_spec" ||
12224   test -n "$runpath_var" ||
12225   test yes = "$hardcode_automatic"; then
12226
12227  # We can hardcode non-existent directories.
12228  if test no != "$hardcode_direct" &&
12229     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12230     # have to relink, otherwise we might link with an installed library
12231     # when we should be linking with a yet-to-be-installed one
12232     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12233     test no != "$hardcode_minus_L"; then
12234    # Linking always hardcodes the temporary library directory.
12235    hardcode_action=relink
12236  else
12237    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12238    hardcode_action=immediate
12239  fi
12240else
12241  # We cannot hardcode anything, or else we can only hardcode existing
12242  # directories.
12243  hardcode_action=unsupported
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12246$as_echo "$hardcode_action" >&6; }
12247
12248if test relink = "$hardcode_action" ||
12249   test yes = "$inherit_rpath"; then
12250  # Fast installation is not supported
12251  enable_fast_install=no
12252elif test yes = "$shlibpath_overrides_runpath" ||
12253     test no = "$enable_shared"; then
12254  # Fast installation is not necessary
12255  enable_fast_install=needless
12256fi
12257
12258
12259
12260
12261
12262
12263  if test yes != "$enable_dlopen"; then
12264  enable_dlopen=unknown
12265  enable_dlopen_self=unknown
12266  enable_dlopen_self_static=unknown
12267else
12268  lt_cv_dlopen=no
12269  lt_cv_dlopen_libs=
12270
12271  case $host_os in
12272  beos*)
12273    lt_cv_dlopen=load_add_on
12274    lt_cv_dlopen_libs=
12275    lt_cv_dlopen_self=yes
12276    ;;
12277
12278  mingw* | pw32* | cegcc*)
12279    lt_cv_dlopen=LoadLibrary
12280    lt_cv_dlopen_libs=
12281    ;;
12282
12283  cygwin*)
12284    lt_cv_dlopen=dlopen
12285    lt_cv_dlopen_libs=
12286    ;;
12287
12288  darwin*)
12289    # if libdl is installed we need to link against it
12290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12291$as_echo_n "checking for dlopen in -ldl... " >&6; }
12292if ${ac_cv_lib_dl_dlopen+:} false; then :
12293  $as_echo_n "(cached) " >&6
12294else
12295  ac_check_lib_save_LIBS=$LIBS
12296LIBS="-ldl  $LIBS"
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h.  */
12299
12300/* Override any GCC internal prototype to avoid an error.
12301   Use char because int might match the return type of a GCC
12302   builtin and then its argument prototype would still apply.  */
12303#ifdef __cplusplus
12304extern "C"
12305#endif
12306char dlopen ();
12307int
12308main ()
12309{
12310return dlopen ();
12311  ;
12312  return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_link "$LINENO"; then :
12316  ac_cv_lib_dl_dlopen=yes
12317else
12318  ac_cv_lib_dl_dlopen=no
12319fi
12320rm -f core conftest.err conftest.$ac_objext \
12321    conftest$ac_exeext conftest.$ac_ext
12322LIBS=$ac_check_lib_save_LIBS
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12325$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12326if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12327  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12328else
12329
12330    lt_cv_dlopen=dyld
12331    lt_cv_dlopen_libs=
12332    lt_cv_dlopen_self=yes
12333
12334fi
12335
12336    ;;
12337
12338  tpf*)
12339    # Don't try to run any link tests for TPF.  We know it's impossible
12340    # because TPF is a cross-compiler, and we know how we open DSOs.
12341    lt_cv_dlopen=dlopen
12342    lt_cv_dlopen_libs=
12343    lt_cv_dlopen_self=no
12344    ;;
12345
12346  *)
12347    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12348if test "x$ac_cv_func_shl_load" = xyes; then :
12349  lt_cv_dlopen=shl_load
12350else
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12352$as_echo_n "checking for shl_load in -ldld... " >&6; }
12353if ${ac_cv_lib_dld_shl_load+:} false; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  ac_check_lib_save_LIBS=$LIBS
12357LIBS="-ldld  $LIBS"
12358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h.  */
12360
12361/* Override any GCC internal prototype to avoid an error.
12362   Use char because int might match the return type of a GCC
12363   builtin and then its argument prototype would still apply.  */
12364#ifdef __cplusplus
12365extern "C"
12366#endif
12367char shl_load ();
12368int
12369main ()
12370{
12371return shl_load ();
12372  ;
12373  return 0;
12374}
12375_ACEOF
12376if ac_fn_c_try_link "$LINENO"; then :
12377  ac_cv_lib_dld_shl_load=yes
12378else
12379  ac_cv_lib_dld_shl_load=no
12380fi
12381rm -f core conftest.err conftest.$ac_objext \
12382    conftest$ac_exeext conftest.$ac_ext
12383LIBS=$ac_check_lib_save_LIBS
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12386$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12387if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12388  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12389else
12390  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12391if test "x$ac_cv_func_dlopen" = xyes; then :
12392  lt_cv_dlopen=dlopen
12393else
12394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12395$as_echo_n "checking for dlopen in -ldl... " >&6; }
12396if ${ac_cv_lib_dl_dlopen+:} false; then :
12397  $as_echo_n "(cached) " >&6
12398else
12399  ac_check_lib_save_LIBS=$LIBS
12400LIBS="-ldl  $LIBS"
12401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403
12404/* Override any GCC internal prototype to avoid an error.
12405   Use char because int might match the return type of a GCC
12406   builtin and then its argument prototype would still apply.  */
12407#ifdef __cplusplus
12408extern "C"
12409#endif
12410char dlopen ();
12411int
12412main ()
12413{
12414return dlopen ();
12415  ;
12416  return 0;
12417}
12418_ACEOF
12419if ac_fn_c_try_link "$LINENO"; then :
12420  ac_cv_lib_dl_dlopen=yes
12421else
12422  ac_cv_lib_dl_dlopen=no
12423fi
12424rm -f core conftest.err conftest.$ac_objext \
12425    conftest$ac_exeext conftest.$ac_ext
12426LIBS=$ac_check_lib_save_LIBS
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12429$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12430if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12431  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12432else
12433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12434$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12435if ${ac_cv_lib_svld_dlopen+:} false; then :
12436  $as_echo_n "(cached) " >&6
12437else
12438  ac_check_lib_save_LIBS=$LIBS
12439LIBS="-lsvld  $LIBS"
12440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442
12443/* Override any GCC internal prototype to avoid an error.
12444   Use char because int might match the return type of a GCC
12445   builtin and then its argument prototype would still apply.  */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char dlopen ();
12450int
12451main ()
12452{
12453return dlopen ();
12454  ;
12455  return 0;
12456}
12457_ACEOF
12458if ac_fn_c_try_link "$LINENO"; then :
12459  ac_cv_lib_svld_dlopen=yes
12460else
12461  ac_cv_lib_svld_dlopen=no
12462fi
12463rm -f core conftest.err conftest.$ac_objext \
12464    conftest$ac_exeext conftest.$ac_ext
12465LIBS=$ac_check_lib_save_LIBS
12466fi
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12468$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12469if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12470  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12471else
12472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12473$as_echo_n "checking for dld_link in -ldld... " >&6; }
12474if ${ac_cv_lib_dld_dld_link+:} false; then :
12475  $as_echo_n "(cached) " >&6
12476else
12477  ac_check_lib_save_LIBS=$LIBS
12478LIBS="-ldld  $LIBS"
12479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481
12482/* Override any GCC internal prototype to avoid an error.
12483   Use char because int might match the return type of a GCC
12484   builtin and then its argument prototype would still apply.  */
12485#ifdef __cplusplus
12486extern "C"
12487#endif
12488char dld_link ();
12489int
12490main ()
12491{
12492return dld_link ();
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497if ac_fn_c_try_link "$LINENO"; then :
12498  ac_cv_lib_dld_dld_link=yes
12499else
12500  ac_cv_lib_dld_dld_link=no
12501fi
12502rm -f core conftest.err conftest.$ac_objext \
12503    conftest$ac_exeext conftest.$ac_ext
12504LIBS=$ac_check_lib_save_LIBS
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12507$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12508if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12509  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12510fi
12511
12512
12513fi
12514
12515
12516fi
12517
12518
12519fi
12520
12521
12522fi
12523
12524
12525fi
12526
12527    ;;
12528  esac
12529
12530  if test no = "$lt_cv_dlopen"; then
12531    enable_dlopen=no
12532  else
12533    enable_dlopen=yes
12534  fi
12535
12536  case $lt_cv_dlopen in
12537  dlopen)
12538    save_CPPFLAGS=$CPPFLAGS
12539    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12540
12541    save_LDFLAGS=$LDFLAGS
12542    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12543
12544    save_LIBS=$LIBS
12545    LIBS="$lt_cv_dlopen_libs $LIBS"
12546
12547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12548$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12549if ${lt_cv_dlopen_self+:} false; then :
12550  $as_echo_n "(cached) " >&6
12551else
12552  	  if test yes = "$cross_compiling"; then :
12553  lt_cv_dlopen_self=cross
12554else
12555  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556  lt_status=$lt_dlunknown
12557  cat > conftest.$ac_ext <<_LT_EOF
12558#line $LINENO "configure"
12559#include "confdefs.h"
12560
12561#if HAVE_DLFCN_H
12562#include <dlfcn.h>
12563#endif
12564
12565#include <stdio.h>
12566
12567#ifdef RTLD_GLOBAL
12568#  define LT_DLGLOBAL		RTLD_GLOBAL
12569#else
12570#  ifdef DL_GLOBAL
12571#    define LT_DLGLOBAL		DL_GLOBAL
12572#  else
12573#    define LT_DLGLOBAL		0
12574#  endif
12575#endif
12576
12577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578   find out it does not work in some platform. */
12579#ifndef LT_DLLAZY_OR_NOW
12580#  ifdef RTLD_LAZY
12581#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12582#  else
12583#    ifdef DL_LAZY
12584#      define LT_DLLAZY_OR_NOW		DL_LAZY
12585#    else
12586#      ifdef RTLD_NOW
12587#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12588#      else
12589#        ifdef DL_NOW
12590#          define LT_DLLAZY_OR_NOW	DL_NOW
12591#        else
12592#          define LT_DLLAZY_OR_NOW	0
12593#        endif
12594#      endif
12595#    endif
12596#  endif
12597#endif
12598
12599/* When -fvisibility=hidden is used, assume the code has been annotated
12600   correspondingly for the symbols needed.  */
12601#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12602int fnord () __attribute__((visibility("default")));
12603#endif
12604
12605int fnord () { return 42; }
12606int main ()
12607{
12608  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609  int status = $lt_dlunknown;
12610
12611  if (self)
12612    {
12613      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12614      else
12615        {
12616	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12617          else puts (dlerror ());
12618	}
12619      /* dlclose (self); */
12620    }
12621  else
12622    puts (dlerror ());
12623
12624  return status;
12625}
12626_LT_EOF
12627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12628  (eval $ac_link) 2>&5
12629  ac_status=$?
12630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12632    (./conftest; exit; ) >&5 2>/dev/null
12633    lt_status=$?
12634    case x$lt_status in
12635      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12636      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12637      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12638    esac
12639  else :
12640    # compilation failed
12641    lt_cv_dlopen_self=no
12642  fi
12643fi
12644rm -fr conftest*
12645
12646
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12649$as_echo "$lt_cv_dlopen_self" >&6; }
12650
12651    if test yes = "$lt_cv_dlopen_self"; then
12652      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12653      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12654$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12655if ${lt_cv_dlopen_self_static+:} false; then :
12656  $as_echo_n "(cached) " >&6
12657else
12658  	  if test yes = "$cross_compiling"; then :
12659  lt_cv_dlopen_self_static=cross
12660else
12661  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12662  lt_status=$lt_dlunknown
12663  cat > conftest.$ac_ext <<_LT_EOF
12664#line $LINENO "configure"
12665#include "confdefs.h"
12666
12667#if HAVE_DLFCN_H
12668#include <dlfcn.h>
12669#endif
12670
12671#include <stdio.h>
12672
12673#ifdef RTLD_GLOBAL
12674#  define LT_DLGLOBAL		RTLD_GLOBAL
12675#else
12676#  ifdef DL_GLOBAL
12677#    define LT_DLGLOBAL		DL_GLOBAL
12678#  else
12679#    define LT_DLGLOBAL		0
12680#  endif
12681#endif
12682
12683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12684   find out it does not work in some platform. */
12685#ifndef LT_DLLAZY_OR_NOW
12686#  ifdef RTLD_LAZY
12687#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12688#  else
12689#    ifdef DL_LAZY
12690#      define LT_DLLAZY_OR_NOW		DL_LAZY
12691#    else
12692#      ifdef RTLD_NOW
12693#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12694#      else
12695#        ifdef DL_NOW
12696#          define LT_DLLAZY_OR_NOW	DL_NOW
12697#        else
12698#          define LT_DLLAZY_OR_NOW	0
12699#        endif
12700#      endif
12701#    endif
12702#  endif
12703#endif
12704
12705/* When -fvisibility=hidden is used, assume the code has been annotated
12706   correspondingly for the symbols needed.  */
12707#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12708int fnord () __attribute__((visibility("default")));
12709#endif
12710
12711int fnord () { return 42; }
12712int main ()
12713{
12714  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12715  int status = $lt_dlunknown;
12716
12717  if (self)
12718    {
12719      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12720      else
12721        {
12722	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12723          else puts (dlerror ());
12724	}
12725      /* dlclose (self); */
12726    }
12727  else
12728    puts (dlerror ());
12729
12730  return status;
12731}
12732_LT_EOF
12733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12734  (eval $ac_link) 2>&5
12735  ac_status=$?
12736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12738    (./conftest; exit; ) >&5 2>/dev/null
12739    lt_status=$?
12740    case x$lt_status in
12741      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12742      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12743      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12744    esac
12745  else :
12746    # compilation failed
12747    lt_cv_dlopen_self_static=no
12748  fi
12749fi
12750rm -fr conftest*
12751
12752
12753fi
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12755$as_echo "$lt_cv_dlopen_self_static" >&6; }
12756    fi
12757
12758    CPPFLAGS=$save_CPPFLAGS
12759    LDFLAGS=$save_LDFLAGS
12760    LIBS=$save_LIBS
12761    ;;
12762  esac
12763
12764  case $lt_cv_dlopen_self in
12765  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12766  *) enable_dlopen_self=unknown ;;
12767  esac
12768
12769  case $lt_cv_dlopen_self_static in
12770  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12771  *) enable_dlopen_self_static=unknown ;;
12772  esac
12773fi
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791striplib=
12792old_striplib=
12793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12794$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12795if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12796  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12797  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799$as_echo "yes" >&6; }
12800else
12801# FIXME - insert some real tests, host_os isn't really good enough
12802  case $host_os in
12803  darwin*)
12804    if test -n "$STRIP"; then
12805      striplib="$STRIP -x"
12806      old_striplib="$STRIP -S"
12807      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808$as_echo "yes" >&6; }
12809    else
12810      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812    fi
12813    ;;
12814  *)
12815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817    ;;
12818  esac
12819fi
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832  # Report what library types will actually be built
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12834$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12836$as_echo "$can_build_shared" >&6; }
12837
12838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12839$as_echo_n "checking whether to build shared libraries... " >&6; }
12840  test no = "$can_build_shared" && enable_shared=no
12841
12842  # On AIX, shared libraries and static libraries use the same namespace, and
12843  # are all built from PIC.
12844  case $host_os in
12845  aix3*)
12846    test yes = "$enable_shared" && enable_static=no
12847    if test -n "$RANLIB"; then
12848      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12849      postinstall_cmds='$RANLIB $lib'
12850    fi
12851    ;;
12852
12853  aix[4-9]*)
12854    if test ia64 != "$host_cpu"; then
12855      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12856      yes,aix,yes) ;;			# shared object as lib.so file only
12857      yes,svr4,*) ;;			# shared object as lib.so archive member only
12858      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12859      esac
12860    fi
12861    ;;
12862  esac
12863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12864$as_echo "$enable_shared" >&6; }
12865
12866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12867$as_echo_n "checking whether to build static libraries... " >&6; }
12868  # Make sure either enable_shared or enable_static is yes.
12869  test yes = "$enable_shared" || enable_static=yes
12870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12871$as_echo "$enable_static" >&6; }
12872
12873
12874
12875
12876fi
12877ac_ext=c
12878ac_cpp='$CPP $CPPFLAGS'
12879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882
12883CC=$lt_save_CC
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899        ac_config_commands="$ac_config_commands libtool"
12900
12901
12902
12903
12904# Only expand once:
12905
12906
12907ac_ext=cpp
12908ac_cpp='$CXXCPP $CPPFLAGS'
12909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12912if test -z "$CXX"; then
12913  if test -n "$CCC"; then
12914    CXX=$CCC
12915  else
12916    if test -n "$ac_tool_prefix"; then
12917  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12918  do
12919    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922$as_echo_n "checking for $ac_word... " >&6; }
12923if ${ac_cv_prog_CXX+:} false; then :
12924  $as_echo_n "(cached) " >&6
12925else
12926  if test -n "$CXX"; then
12927  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12928else
12929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930for as_dir in $PATH
12931do
12932  IFS=$as_save_IFS
12933  test -z "$as_dir" && as_dir=.
12934    for ac_exec_ext in '' $ac_executable_extensions; do
12935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12936    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12938    break 2
12939  fi
12940done
12941  done
12942IFS=$as_save_IFS
12943
12944fi
12945fi
12946CXX=$ac_cv_prog_CXX
12947if test -n "$CXX"; then
12948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12949$as_echo "$CXX" >&6; }
12950else
12951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952$as_echo "no" >&6; }
12953fi
12954
12955
12956    test -n "$CXX" && break
12957  done
12958fi
12959if test -z "$CXX"; then
12960  ac_ct_CXX=$CXX
12961  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12962do
12963  # Extract the first word of "$ac_prog", so it can be a program name with args.
12964set dummy $ac_prog; ac_word=$2
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966$as_echo_n "checking for $ac_word... " >&6; }
12967if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12968  $as_echo_n "(cached) " >&6
12969else
12970  if test -n "$ac_ct_CXX"; then
12971  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12972else
12973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974for as_dir in $PATH
12975do
12976  IFS=$as_save_IFS
12977  test -z "$as_dir" && as_dir=.
12978    for ac_exec_ext in '' $ac_executable_extensions; do
12979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12980    ac_cv_prog_ac_ct_CXX="$ac_prog"
12981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982    break 2
12983  fi
12984done
12985  done
12986IFS=$as_save_IFS
12987
12988fi
12989fi
12990ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12991if test -n "$ac_ct_CXX"; then
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12993$as_echo "$ac_ct_CXX" >&6; }
12994else
12995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
12997fi
12998
12999
13000  test -n "$ac_ct_CXX" && break
13001done
13002
13003  if test "x$ac_ct_CXX" = x; then
13004    CXX="g++"
13005  else
13006    case $cross_compiling:$ac_tool_warned in
13007yes:)
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13010ac_tool_warned=yes ;;
13011esac
13012    CXX=$ac_ct_CXX
13013  fi
13014fi
13015
13016  fi
13017fi
13018# Provide some information about the compiler.
13019$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13020set X $ac_compile
13021ac_compiler=$2
13022for ac_option in --version -v -V -qversion; do
13023  { { ac_try="$ac_compiler $ac_option >&5"
13024case "(($ac_try" in
13025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026  *) ac_try_echo=$ac_try;;
13027esac
13028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13029$as_echo "$ac_try_echo"; } >&5
13030  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13031  ac_status=$?
13032  if test -s conftest.err; then
13033    sed '10a\
13034... rest of stderr output deleted ...
13035         10q' conftest.err >conftest.er1
13036    cat conftest.er1 >&5
13037  fi
13038  rm -f conftest.er1 conftest.err
13039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13040  test $ac_status = 0; }
13041done
13042
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13044$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13045if ${ac_cv_cxx_compiler_gnu+:} false; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050
13051int
13052main ()
13053{
13054#ifndef __GNUC__
13055       choke me
13056#endif
13057
13058  ;
13059  return 0;
13060}
13061_ACEOF
13062if ac_fn_cxx_try_compile "$LINENO"; then :
13063  ac_compiler_gnu=yes
13064else
13065  ac_compiler_gnu=no
13066fi
13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13069
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13072$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13073if test $ac_compiler_gnu = yes; then
13074  GXX=yes
13075else
13076  GXX=
13077fi
13078ac_test_CXXFLAGS=${CXXFLAGS+set}
13079ac_save_CXXFLAGS=$CXXFLAGS
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13081$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13082if ${ac_cv_prog_cxx_g+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13086   ac_cxx_werror_flag=yes
13087   ac_cv_prog_cxx_g=no
13088   CXXFLAGS="-g"
13089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090/* end confdefs.h.  */
13091
13092int
13093main ()
13094{
13095
13096  ;
13097  return 0;
13098}
13099_ACEOF
13100if ac_fn_cxx_try_compile "$LINENO"; then :
13101  ac_cv_prog_cxx_g=yes
13102else
13103  CXXFLAGS=""
13104      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h.  */
13106
13107int
13108main ()
13109{
13110
13111  ;
13112  return 0;
13113}
13114_ACEOF
13115if ac_fn_cxx_try_compile "$LINENO"; then :
13116
13117else
13118  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13119	 CXXFLAGS="-g"
13120	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122
13123int
13124main ()
13125{
13126
13127  ;
13128  return 0;
13129}
13130_ACEOF
13131if ac_fn_cxx_try_compile "$LINENO"; then :
13132  ac_cv_prog_cxx_g=yes
13133fi
13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135fi
13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137fi
13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13140fi
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13142$as_echo "$ac_cv_prog_cxx_g" >&6; }
13143if test "$ac_test_CXXFLAGS" = set; then
13144  CXXFLAGS=$ac_save_CXXFLAGS
13145elif test $ac_cv_prog_cxx_g = yes; then
13146  if test "$GXX" = yes; then
13147    CXXFLAGS="-g -O2"
13148  else
13149    CXXFLAGS="-g"
13150  fi
13151else
13152  if test "$GXX" = yes; then
13153    CXXFLAGS="-O2"
13154  else
13155    CXXFLAGS=
13156  fi
13157fi
13158ac_ext=c
13159ac_cpp='$CPP $CPPFLAGS'
13160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162ac_compiler_gnu=$ac_cv_c_compiler_gnu
13163
13164depcc="$CXX"  am_compiler_list=
13165
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13167$as_echo_n "checking dependency style of $depcc... " >&6; }
13168if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13169  $as_echo_n "(cached) " >&6
13170else
13171  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13172  # We make a subdir and do the tests there.  Otherwise we can end up
13173  # making bogus files that we don't know about and never remove.  For
13174  # instance it was reported that on HP-UX the gcc test will end up
13175  # making a dummy file named 'D' -- because '-MD' means "put the output
13176  # in D".
13177  rm -rf conftest.dir
13178  mkdir conftest.dir
13179  # Copy depcomp to subdir because otherwise we won't find it if we're
13180  # using a relative directory.
13181  cp "$am_depcomp" conftest.dir
13182  cd conftest.dir
13183  # We will build objects and dependencies in a subdirectory because
13184  # it helps to detect inapplicable dependency modes.  For instance
13185  # both Tru64's cc and ICC support -MD to output dependencies as a
13186  # side effect of compilation, but ICC will put the dependencies in
13187  # the current directory while Tru64 will put them in the object
13188  # directory.
13189  mkdir sub
13190
13191  am_cv_CXX_dependencies_compiler_type=none
13192  if test "$am_compiler_list" = ""; then
13193     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13194  fi
13195  am__universal=false
13196  case " $depcc " in #(
13197     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13198     esac
13199
13200  for depmode in $am_compiler_list; do
13201    # Setup a source with many dependencies, because some compilers
13202    # like to wrap large dependency lists on column 80 (with \), and
13203    # we should not choose a depcomp mode which is confused by this.
13204    #
13205    # We need to recreate these files for each test, as the compiler may
13206    # overwrite some of them when testing with obscure command lines.
13207    # This happens at least with the AIX C compiler.
13208    : > sub/conftest.c
13209    for i in 1 2 3 4 5 6; do
13210      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13211      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13212      # Solaris 10 /bin/sh.
13213      echo '/* dummy */' > sub/conftst$i.h
13214    done
13215    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13216
13217    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13218    # mode.  It turns out that the SunPro C++ compiler does not properly
13219    # handle '-M -o', and we need to detect this.  Also, some Intel
13220    # versions had trouble with output in subdirs.
13221    am__obj=sub/conftest.${OBJEXT-o}
13222    am__minus_obj="-o $am__obj"
13223    case $depmode in
13224    gcc)
13225      # This depmode causes a compiler race in universal mode.
13226      test "$am__universal" = false || continue
13227      ;;
13228    nosideeffect)
13229      # After this tag, mechanisms are not by side-effect, so they'll
13230      # only be used when explicitly requested.
13231      if test "x$enable_dependency_tracking" = xyes; then
13232	continue
13233      else
13234	break
13235      fi
13236      ;;
13237    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13238      # This compiler won't grok '-c -o', but also, the minuso test has
13239      # not run yet.  These depmodes are late enough in the game, and
13240      # so weak that their functioning should not be impacted.
13241      am__obj=conftest.${OBJEXT-o}
13242      am__minus_obj=
13243      ;;
13244    none) break ;;
13245    esac
13246    if depmode=$depmode \
13247       source=sub/conftest.c object=$am__obj \
13248       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13249       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13250         >/dev/null 2>conftest.err &&
13251       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13252       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13253       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13254       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13255      # icc doesn't choke on unknown options, it will just issue warnings
13256      # or remarks (even with -Werror).  So we grep stderr for any message
13257      # that says an option was ignored or not supported.
13258      # When given -MP, icc 7.0 and 7.1 complain thusly:
13259      #   icc: Command line warning: ignoring option '-M'; no argument required
13260      # The diagnosis changed in icc 8.0:
13261      #   icc: Command line remark: option '-MP' not supported
13262      if (grep 'ignoring option' conftest.err ||
13263          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13264        am_cv_CXX_dependencies_compiler_type=$depmode
13265        break
13266      fi
13267    fi
13268  done
13269
13270  cd ..
13271  rm -rf conftest.dir
13272else
13273  am_cv_CXX_dependencies_compiler_type=none
13274fi
13275
13276fi
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13278$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13279CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13280
13281 if
13282  test "x$enable_dependency_tracking" != xno \
13283  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13284  am__fastdepCXX_TRUE=
13285  am__fastdepCXX_FALSE='#'
13286else
13287  am__fastdepCXX_TRUE='#'
13288  am__fastdepCXX_FALSE=
13289fi
13290
13291
13292
13293
13294
13295func_stripname_cnf ()
13296{
13297  case $2 in
13298  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13299  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13300  esac
13301} # func_stripname_cnf
13302
13303      if test -n "$CXX" && ( test no != "$CXX" &&
13304    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13305    (test g++ != "$CXX"))); then
13306  ac_ext=cpp
13307ac_cpp='$CXXCPP $CPPFLAGS'
13308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13312$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13313if test -z "$CXXCPP"; then
13314  if ${ac_cv_prog_CXXCPP+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317      # Double quotes because CXXCPP needs to be expanded
13318    for CXXCPP in "$CXX -E" "/lib/cpp"
13319    do
13320      ac_preproc_ok=false
13321for ac_cxx_preproc_warn_flag in '' yes
13322do
13323  # Use a header file that comes with gcc, so configuring glibc
13324  # with a fresh cross-compiler works.
13325  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13326  # <limits.h> exists even on freestanding compilers.
13327  # On the NeXT, cc -E runs the code through the compiler's parser,
13328  # not just through cpp. "Syntax error" is here to catch this case.
13329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330/* end confdefs.h.  */
13331#ifdef __STDC__
13332# include <limits.h>
13333#else
13334# include <assert.h>
13335#endif
13336		     Syntax error
13337_ACEOF
13338if ac_fn_cxx_try_cpp "$LINENO"; then :
13339
13340else
13341  # Broken: fails on valid input.
13342continue
13343fi
13344rm -f conftest.err conftest.i conftest.$ac_ext
13345
13346  # OK, works on sane cases.  Now check whether nonexistent headers
13347  # can be detected and how.
13348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h.  */
13350#include <ac_nonexistent.h>
13351_ACEOF
13352if ac_fn_cxx_try_cpp "$LINENO"; then :
13353  # Broken: success on invalid input.
13354continue
13355else
13356  # Passes both tests.
13357ac_preproc_ok=:
13358break
13359fi
13360rm -f conftest.err conftest.i conftest.$ac_ext
13361
13362done
13363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13364rm -f conftest.i conftest.err conftest.$ac_ext
13365if $ac_preproc_ok; then :
13366  break
13367fi
13368
13369    done
13370    ac_cv_prog_CXXCPP=$CXXCPP
13371
13372fi
13373  CXXCPP=$ac_cv_prog_CXXCPP
13374else
13375  ac_cv_prog_CXXCPP=$CXXCPP
13376fi
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13378$as_echo "$CXXCPP" >&6; }
13379ac_preproc_ok=false
13380for ac_cxx_preproc_warn_flag in '' yes
13381do
13382  # Use a header file that comes with gcc, so configuring glibc
13383  # with a fresh cross-compiler works.
13384  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13385  # <limits.h> exists even on freestanding compilers.
13386  # On the NeXT, cc -E runs the code through the compiler's parser,
13387  # not just through cpp. "Syntax error" is here to catch this case.
13388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h.  */
13390#ifdef __STDC__
13391# include <limits.h>
13392#else
13393# include <assert.h>
13394#endif
13395		     Syntax error
13396_ACEOF
13397if ac_fn_cxx_try_cpp "$LINENO"; then :
13398
13399else
13400  # Broken: fails on valid input.
13401continue
13402fi
13403rm -f conftest.err conftest.i conftest.$ac_ext
13404
13405  # OK, works on sane cases.  Now check whether nonexistent headers
13406  # can be detected and how.
13407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h.  */
13409#include <ac_nonexistent.h>
13410_ACEOF
13411if ac_fn_cxx_try_cpp "$LINENO"; then :
13412  # Broken: success on invalid input.
13413continue
13414else
13415  # Passes both tests.
13416ac_preproc_ok=:
13417break
13418fi
13419rm -f conftest.err conftest.i conftest.$ac_ext
13420
13421done
13422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13423rm -f conftest.i conftest.err conftest.$ac_ext
13424if $ac_preproc_ok; then :
13425
13426else
13427  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13429as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13430See \`config.log' for more details" "$LINENO" 5; }
13431fi
13432
13433ac_ext=c
13434ac_cpp='$CPP $CPPFLAGS'
13435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13437ac_compiler_gnu=$ac_cv_c_compiler_gnu
13438
13439else
13440  _lt_caught_CXX_error=yes
13441fi
13442
13443ac_ext=cpp
13444ac_cpp='$CXXCPP $CPPFLAGS'
13445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13448
13449archive_cmds_need_lc_CXX=no
13450allow_undefined_flag_CXX=
13451always_export_symbols_CXX=no
13452archive_expsym_cmds_CXX=
13453compiler_needs_object_CXX=no
13454export_dynamic_flag_spec_CXX=
13455hardcode_direct_CXX=no
13456hardcode_direct_absolute_CXX=no
13457hardcode_libdir_flag_spec_CXX=
13458hardcode_libdir_separator_CXX=
13459hardcode_minus_L_CXX=no
13460hardcode_shlibpath_var_CXX=unsupported
13461hardcode_automatic_CXX=no
13462inherit_rpath_CXX=no
13463module_cmds_CXX=
13464module_expsym_cmds_CXX=
13465link_all_deplibs_CXX=unknown
13466old_archive_cmds_CXX=$old_archive_cmds
13467reload_flag_CXX=$reload_flag
13468reload_cmds_CXX=$reload_cmds
13469no_undefined_flag_CXX=
13470whole_archive_flag_spec_CXX=
13471enable_shared_with_static_runtimes_CXX=no
13472
13473# Source file extension for C++ test sources.
13474ac_ext=cpp
13475
13476# Object file extension for compiled C++ test sources.
13477objext=o
13478objext_CXX=$objext
13479
13480# No sense in running all these tests if we already determined that
13481# the CXX compiler isn't working.  Some variables (like enable_shared)
13482# are currently assumed to apply to all compilers on this platform,
13483# and will be corrupted by setting them based on a non-working compiler.
13484if test yes != "$_lt_caught_CXX_error"; then
13485  # Code to be used in simple compile tests
13486  lt_simple_compile_test_code="int some_variable = 0;"
13487
13488  # Code to be used in simple link tests
13489  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13490
13491  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13492
13493
13494
13495
13496
13497
13498# If no C compiler was specified, use CC.
13499LTCC=${LTCC-"$CC"}
13500
13501# If no C compiler flags were specified, use CFLAGS.
13502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13503
13504# Allow CC to be a program name with arguments.
13505compiler=$CC
13506
13507
13508  # save warnings/boilerplate of simple test code
13509  ac_outfile=conftest.$ac_objext
13510echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13511eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13512_lt_compiler_boilerplate=`cat conftest.err`
13513$RM conftest*
13514
13515  ac_outfile=conftest.$ac_objext
13516echo "$lt_simple_link_test_code" >conftest.$ac_ext
13517eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13518_lt_linker_boilerplate=`cat conftest.err`
13519$RM -r conftest*
13520
13521
13522  # Allow CC to be a program name with arguments.
13523  lt_save_CC=$CC
13524  lt_save_CFLAGS=$CFLAGS
13525  lt_save_LD=$LD
13526  lt_save_GCC=$GCC
13527  GCC=$GXX
13528  lt_save_with_gnu_ld=$with_gnu_ld
13529  lt_save_path_LD=$lt_cv_path_LD
13530  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13531    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13532  else
13533    $as_unset lt_cv_prog_gnu_ld
13534  fi
13535  if test -n "${lt_cv_path_LDCXX+set}"; then
13536    lt_cv_path_LD=$lt_cv_path_LDCXX
13537  else
13538    $as_unset lt_cv_path_LD
13539  fi
13540  test -z "${LDCXX+set}" || LD=$LDCXX
13541  CC=${CXX-"c++"}
13542  CFLAGS=$CXXFLAGS
13543  compiler=$CC
13544  compiler_CXX=$CC
13545  for cc_temp in $compiler""; do
13546  case $cc_temp in
13547    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13548    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13549    \-*) ;;
13550    *) break;;
13551  esac
13552done
13553cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13554
13555
13556  if test -n "$compiler"; then
13557    # We don't want -fno-exception when compiling C++ code, so set the
13558    # no_builtin_flag separately
13559    if test yes = "$GXX"; then
13560      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13561    else
13562      lt_prog_compiler_no_builtin_flag_CXX=
13563    fi
13564
13565    if test yes = "$GXX"; then
13566      # Set up default GNU C++ configuration
13567
13568
13569
13570# Check whether --with-gnu-ld was given.
13571if test "${with_gnu_ld+set}" = set; then :
13572  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13573else
13574  with_gnu_ld=no
13575fi
13576
13577ac_prog=ld
13578if test yes = "$GCC"; then
13579  # Check if gcc -print-prog-name=ld gives a path.
13580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13581$as_echo_n "checking for ld used by $CC... " >&6; }
13582  case $host in
13583  *-*-mingw*)
13584    # gcc leaves a trailing carriage return, which upsets mingw
13585    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13586  *)
13587    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13588  esac
13589  case $ac_prog in
13590    # Accept absolute paths.
13591    [\\/]* | ?:[\\/]*)
13592      re_direlt='/[^/][^/]*/\.\./'
13593      # Canonicalize the pathname of ld
13594      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13595      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13596	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13597      done
13598      test -z "$LD" && LD=$ac_prog
13599      ;;
13600  "")
13601    # If it fails, then pretend we aren't using GCC.
13602    ac_prog=ld
13603    ;;
13604  *)
13605    # If it is relative, then search for the first ld in PATH.
13606    with_gnu_ld=unknown
13607    ;;
13608  esac
13609elif test yes = "$with_gnu_ld"; then
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13611$as_echo_n "checking for GNU ld... " >&6; }
13612else
13613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13614$as_echo_n "checking for non-GNU ld... " >&6; }
13615fi
13616if ${lt_cv_path_LD+:} false; then :
13617  $as_echo_n "(cached) " >&6
13618else
13619  if test -z "$LD"; then
13620  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13621  for ac_dir in $PATH; do
13622    IFS=$lt_save_ifs
13623    test -z "$ac_dir" && ac_dir=.
13624    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13625      lt_cv_path_LD=$ac_dir/$ac_prog
13626      # Check to see if the program is GNU ld.  I'd rather use --version,
13627      # but apparently some variants of GNU ld only accept -v.
13628      # Break only if it was the GNU/non-GNU ld that we prefer.
13629      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13630      *GNU* | *'with BFD'*)
13631	test no != "$with_gnu_ld" && break
13632	;;
13633      *)
13634	test yes != "$with_gnu_ld" && break
13635	;;
13636      esac
13637    fi
13638  done
13639  IFS=$lt_save_ifs
13640else
13641  lt_cv_path_LD=$LD # Let the user override the test with a path.
13642fi
13643fi
13644
13645LD=$lt_cv_path_LD
13646if test -n "$LD"; then
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13648$as_echo "$LD" >&6; }
13649else
13650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13655$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13656if ${lt_cv_prog_gnu_ld+:} false; then :
13657  $as_echo_n "(cached) " >&6
13658else
13659  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13660case `$LD -v 2>&1 </dev/null` in
13661*GNU* | *'with BFD'*)
13662  lt_cv_prog_gnu_ld=yes
13663  ;;
13664*)
13665  lt_cv_prog_gnu_ld=no
13666  ;;
13667esac
13668fi
13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13670$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13671with_gnu_ld=$lt_cv_prog_gnu_ld
13672
13673
13674
13675
13676
13677
13678
13679      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13680      # archiving commands below assume that GNU ld is being used.
13681      if test yes = "$with_gnu_ld"; then
13682        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13683        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13684
13685        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13686        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13687
13688        # If archive_cmds runs LD, not CC, wlarc should be empty
13689        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13690        #     investigate it a little bit more. (MM)
13691        wlarc='$wl'
13692
13693        # ancient GNU ld didn't support --whole-archive et. al.
13694        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13695	  $GREP 'no-whole-archive' > /dev/null; then
13696          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13697        else
13698          whole_archive_flag_spec_CXX=
13699        fi
13700      else
13701        with_gnu_ld=no
13702        wlarc=
13703
13704        # A generic and very simple default shared library creation
13705        # command for GNU C++ for the case where it uses the native
13706        # linker, instead of GNU ld.  If possible, this setting should
13707        # overridden to take advantage of the native linker features on
13708        # the platform it is being used on.
13709        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13710      fi
13711
13712      # Commands to make compiler produce verbose output that lists
13713      # what "hidden" libraries, object files and flags are used when
13714      # linking a shared library.
13715      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13716
13717    else
13718      GXX=no
13719      with_gnu_ld=no
13720      wlarc=
13721    fi
13722
13723    # PORTME: fill in a description of your system's C++ link characteristics
13724    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13725$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13726    ld_shlibs_CXX=yes
13727    case $host_os in
13728      aix3*)
13729        # FIXME: insert proper C++ library support
13730        ld_shlibs_CXX=no
13731        ;;
13732      aix[4-9]*)
13733        if test ia64 = "$host_cpu"; then
13734          # On IA64, the linker does run time linking by default, so we don't
13735          # have to do anything special.
13736          aix_use_runtimelinking=no
13737          exp_sym_flag='-Bexport'
13738          no_entry_flag=
13739        else
13740          aix_use_runtimelinking=no
13741
13742          # Test if we are trying to use run time linking or normal
13743          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13744          # have runtime linking enabled, and use it for executables.
13745          # For shared libraries, we enable/disable runtime linking
13746          # depending on the kind of the shared library created -
13747          # when "with_aix_soname,aix_use_runtimelinking" is:
13748          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13749          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13750          #            lib.a           static archive
13751          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13752          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13753          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13754          #            lib.a(lib.so.V) shared, rtl:no
13755          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13756          #            lib.a           static archive
13757          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13758	    for ld_flag in $LDFLAGS; do
13759	      case $ld_flag in
13760	      *-brtl*)
13761	        aix_use_runtimelinking=yes
13762	        break
13763	        ;;
13764	      esac
13765	    done
13766	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13767	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13768	      # so we don't have lib.a shared libs to link our executables.
13769	      # We have to force runtime linking in this case.
13770	      aix_use_runtimelinking=yes
13771	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13772	    fi
13773	    ;;
13774          esac
13775
13776          exp_sym_flag='-bexport'
13777          no_entry_flag='-bnoentry'
13778        fi
13779
13780        # When large executables or shared objects are built, AIX ld can
13781        # have problems creating the table of contents.  If linking a library
13782        # or program results in "error TOC overflow" add -mminimal-toc to
13783        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13784        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13785
13786        archive_cmds_CXX=''
13787        hardcode_direct_CXX=yes
13788        hardcode_direct_absolute_CXX=yes
13789        hardcode_libdir_separator_CXX=':'
13790        link_all_deplibs_CXX=yes
13791        file_list_spec_CXX='$wl-f,'
13792        case $with_aix_soname,$aix_use_runtimelinking in
13793        aix,*) ;;	# no import file
13794        svr4,* | *,yes) # use import file
13795          # The Import File defines what to hardcode.
13796          hardcode_direct_CXX=no
13797          hardcode_direct_absolute_CXX=no
13798          ;;
13799        esac
13800
13801        if test yes = "$GXX"; then
13802          case $host_os in aix4.[012]|aix4.[012].*)
13803          # We only want to do this on AIX 4.2 and lower, the check
13804          # below for broken collect2 doesn't work under 4.3+
13805	  collect2name=`$CC -print-prog-name=collect2`
13806	  if test -f "$collect2name" &&
13807	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13808	  then
13809	    # We have reworked collect2
13810	    :
13811	  else
13812	    # We have old collect2
13813	    hardcode_direct_CXX=unsupported
13814	    # It fails to find uninstalled libraries when the uninstalled
13815	    # path is not listed in the libpath.  Setting hardcode_minus_L
13816	    # to unsupported forces relinking
13817	    hardcode_minus_L_CXX=yes
13818	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13819	    hardcode_libdir_separator_CXX=
13820	  fi
13821          esac
13822          shared_flag='-shared'
13823	  if test yes = "$aix_use_runtimelinking"; then
13824	    shared_flag=$shared_flag' $wl-G'
13825	  fi
13826	  # Need to ensure runtime linking is disabled for the traditional
13827	  # shared library, or the linker may eventually find shared libraries
13828	  # /with/ Import File - we do not want to mix them.
13829	  shared_flag_aix='-shared'
13830	  shared_flag_svr4='-shared $wl-G'
13831        else
13832          # not using gcc
13833          if test ia64 = "$host_cpu"; then
13834	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13835	  # chokes on -Wl,-G. The following line is correct:
13836	  shared_flag='-G'
13837          else
13838	    if test yes = "$aix_use_runtimelinking"; then
13839	      shared_flag='$wl-G'
13840	    else
13841	      shared_flag='$wl-bM:SRE'
13842	    fi
13843	    shared_flag_aix='$wl-bM:SRE'
13844	    shared_flag_svr4='$wl-G'
13845          fi
13846        fi
13847
13848        export_dynamic_flag_spec_CXX='$wl-bexpall'
13849        # It seems that -bexpall does not export symbols beginning with
13850        # underscore (_), so it is better to generate a list of symbols to
13851	# export.
13852        always_export_symbols_CXX=yes
13853	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13854          # Warning - without using the other runtime loading flags (-brtl),
13855          # -berok will link without error, but may produce a broken library.
13856          # The "-G" linker flag allows undefined symbols.
13857          no_undefined_flag_CXX='-bernotok'
13858          # Determine the default libpath from the value encoded in an empty
13859          # executable.
13860          if test set = "${lt_cv_aix_libpath+set}"; then
13861  aix_libpath=$lt_cv_aix_libpath
13862else
13863  if ${lt_cv_aix_libpath__CXX+:} false; then :
13864  $as_echo_n "(cached) " >&6
13865else
13866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868
13869int
13870main ()
13871{
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_cxx_try_link "$LINENO"; then :
13878
13879  lt_aix_libpath_sed='
13880      /Import File Strings/,/^$/ {
13881	  /^0/ {
13882	      s/^0  *\([^ ]*\) *$/\1/
13883	      p
13884	  }
13885      }'
13886  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13887  # Check for a 64-bit object if we didn't find anything.
13888  if test -z "$lt_cv_aix_libpath__CXX"; then
13889    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13890  fi
13891fi
13892rm -f core conftest.err conftest.$ac_objext \
13893    conftest$ac_exeext conftest.$ac_ext
13894  if test -z "$lt_cv_aix_libpath__CXX"; then
13895    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13896  fi
13897
13898fi
13899
13900  aix_libpath=$lt_cv_aix_libpath__CXX
13901fi
13902
13903          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13904
13905          archive_expsym_cmds_CXX='$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
13906        else
13907          if test ia64 = "$host_cpu"; then
13908	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13909	    allow_undefined_flag_CXX="-z nodefs"
13910	    archive_expsym_cmds_CXX="\$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"
13911          else
13912	    # Determine the default libpath from the value encoded in an
13913	    # empty executable.
13914	    if test set = "${lt_cv_aix_libpath+set}"; then
13915  aix_libpath=$lt_cv_aix_libpath
13916else
13917  if ${lt_cv_aix_libpath__CXX+:} false; then :
13918  $as_echo_n "(cached) " >&6
13919else
13920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922
13923int
13924main ()
13925{
13926
13927  ;
13928  return 0;
13929}
13930_ACEOF
13931if ac_fn_cxx_try_link "$LINENO"; then :
13932
13933  lt_aix_libpath_sed='
13934      /Import File Strings/,/^$/ {
13935	  /^0/ {
13936	      s/^0  *\([^ ]*\) *$/\1/
13937	      p
13938	  }
13939      }'
13940  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13941  # Check for a 64-bit object if we didn't find anything.
13942  if test -z "$lt_cv_aix_libpath__CXX"; then
13943    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13944  fi
13945fi
13946rm -f core conftest.err conftest.$ac_objext \
13947    conftest$ac_exeext conftest.$ac_ext
13948  if test -z "$lt_cv_aix_libpath__CXX"; then
13949    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13950  fi
13951
13952fi
13953
13954  aix_libpath=$lt_cv_aix_libpath__CXX
13955fi
13956
13957	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13958	    # Warning - without using the other run time loading flags,
13959	    # -berok will link without error, but may produce a broken library.
13960	    no_undefined_flag_CXX=' $wl-bernotok'
13961	    allow_undefined_flag_CXX=' $wl-berok'
13962	    if test yes = "$with_gnu_ld"; then
13963	      # We only use this code for GNU lds that support --whole-archive.
13964	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13965	    else
13966	      # Exported symbols can be pulled into shared objects from archives
13967	      whole_archive_flag_spec_CXX='$convenience'
13968	    fi
13969	    archive_cmds_need_lc_CXX=yes
13970	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13971	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13972	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13973	    if test svr4 != "$with_aix_soname"; then
13974	      # This is similar to how AIX traditionally builds its shared
13975	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13976	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13977	    fi
13978	    if test aix != "$with_aix_soname"; then
13979	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13980	    else
13981	      # used by -dlpreopen to get the symbols
13982	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13983	    fi
13984	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13985          fi
13986        fi
13987        ;;
13988
13989      beos*)
13990	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13991	  allow_undefined_flag_CXX=unsupported
13992	  # Joseph Beckenbach <[email protected]> says some releases of gcc
13993	  # support --undefined.  This deserves some investigation.  FIXME
13994	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13995	else
13996	  ld_shlibs_CXX=no
13997	fi
13998	;;
13999
14000      chorus*)
14001        case $cc_basename in
14002          *)
14003	  # FIXME: insert proper C++ library support
14004	  ld_shlibs_CXX=no
14005	  ;;
14006        esac
14007        ;;
14008
14009      cygwin* | mingw* | pw32* | cegcc*)
14010	case $GXX,$cc_basename in
14011	,cl* | no,cl*)
14012	  # Native MSVC
14013	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14014	  # no search path for DLLs.
14015	  hardcode_libdir_flag_spec_CXX=' '
14016	  allow_undefined_flag_CXX=unsupported
14017	  always_export_symbols_CXX=yes
14018	  file_list_spec_CXX='@'
14019	  # Tell ltmain to make .lib files, not .a files.
14020	  libext=lib
14021	  # Tell ltmain to make .dll files, not .so files.
14022	  shrext_cmds=.dll
14023	  # FIXME: Setting linknames here is a bad hack.
14024	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14025	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14026              cp "$export_symbols" "$output_objdir/$soname.def";
14027              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14028            else
14029              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14030            fi~
14031            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14032            linknames='
14033	  # The linker will not automatically build a static lib if we build a DLL.
14034	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14035	  enable_shared_with_static_runtimes_CXX=yes
14036	  # Don't use ranlib
14037	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14038	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14039            lt_tool_outputfile="@TOOL_OUTPUT@"~
14040            case $lt_outputfile in
14041              *.exe|*.EXE) ;;
14042              *)
14043                lt_outputfile=$lt_outputfile.exe
14044                lt_tool_outputfile=$lt_tool_outputfile.exe
14045                ;;
14046            esac~
14047            func_to_tool_file "$lt_outputfile"~
14048            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14049              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14050              $RM "$lt_outputfile.manifest";
14051            fi'
14052	  ;;
14053	*)
14054	  # g++
14055	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14056	  # as there is no search path for DLLs.
14057	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14058	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14059	  allow_undefined_flag_CXX=unsupported
14060	  always_export_symbols_CXX=no
14061	  enable_shared_with_static_runtimes_CXX=yes
14062
14063	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14064	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14065	    # If the export-symbols file already is a .def file, use it as
14066	    # is; otherwise, prepend EXPORTS...
14067	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14068              cp $export_symbols $output_objdir/$soname.def;
14069            else
14070              echo EXPORTS > $output_objdir/$soname.def;
14071              cat $export_symbols >> $output_objdir/$soname.def;
14072            fi~
14073            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14074	  else
14075	    ld_shlibs_CXX=no
14076	  fi
14077	  ;;
14078	esac
14079	;;
14080      darwin* | rhapsody*)
14081
14082
14083  archive_cmds_need_lc_CXX=no
14084  hardcode_direct_CXX=no
14085  hardcode_automatic_CXX=yes
14086  hardcode_shlibpath_var_CXX=unsupported
14087  if test yes = "$lt_cv_ld_force_load"; then
14088    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14089
14090  else
14091    whole_archive_flag_spec_CXX=''
14092  fi
14093  link_all_deplibs_CXX=yes
14094  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14095  case $cc_basename in
14096     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14097     *) _lt_dar_can_shared=$GCC ;;
14098  esac
14099  if test yes = "$_lt_dar_can_shared"; then
14100    output_verbose_link_cmd=func_echo_all
14101    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14102    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14103    archive_expsym_cmds_CXX="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"
14104    module_expsym_cmds_CXX="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"
14105       if test yes != "$lt_cv_apple_cc_single_mod"; then
14106      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14107      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14108    fi
14109
14110  else
14111  ld_shlibs_CXX=no
14112  fi
14113
14114	;;
14115
14116      os2*)
14117	hardcode_libdir_flag_spec_CXX='-L$libdir'
14118	hardcode_minus_L_CXX=yes
14119	allow_undefined_flag_CXX=unsupported
14120	shrext_cmds=.dll
14121	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14122	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14123	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14124	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14125	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14126	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14127	  emximp -o $lib $output_objdir/$libname.def'
14128	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14129	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14130	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14131	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14132	  prefix_cmds="$SED"~
14133	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14134	    prefix_cmds="$prefix_cmds -e 1d";
14135	  fi~
14136	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14137	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14138	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14139	  emximp -o $lib $output_objdir/$libname.def'
14140	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14141	enable_shared_with_static_runtimes_CXX=yes
14142	;;
14143
14144      dgux*)
14145        case $cc_basename in
14146          ec++*)
14147	    # FIXME: insert proper C++ library support
14148	    ld_shlibs_CXX=no
14149	    ;;
14150          ghcx*)
14151	    # Green Hills C++ Compiler
14152	    # FIXME: insert proper C++ library support
14153	    ld_shlibs_CXX=no
14154	    ;;
14155          *)
14156	    # FIXME: insert proper C++ library support
14157	    ld_shlibs_CXX=no
14158	    ;;
14159        esac
14160        ;;
14161
14162      freebsd2.*)
14163        # C++ shared libraries reported to be fairly broken before
14164	# switch to ELF
14165        ld_shlibs_CXX=no
14166        ;;
14167
14168      freebsd-elf*)
14169        archive_cmds_need_lc_CXX=no
14170        ;;
14171
14172      freebsd* | dragonfly*)
14173        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14174        # conventions
14175        ld_shlibs_CXX=yes
14176        ;;
14177
14178      haiku*)
14179        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14180        link_all_deplibs_CXX=yes
14181        ;;
14182
14183      hpux9*)
14184        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14185        hardcode_libdir_separator_CXX=:
14186        export_dynamic_flag_spec_CXX='$wl-E'
14187        hardcode_direct_CXX=yes
14188        hardcode_minus_L_CXX=yes # Not in the search PATH,
14189				             # but as the default
14190				             # location of the library.
14191
14192        case $cc_basename in
14193          CC*)
14194            # FIXME: insert proper C++ library support
14195            ld_shlibs_CXX=no
14196            ;;
14197          aCC*)
14198            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14199            # Commands to make compiler produce verbose output that lists
14200            # what "hidden" libraries, object files and flags are used when
14201            # linking a shared library.
14202            #
14203            # There doesn't appear to be a way to prevent this compiler from
14204            # explicitly linking system object files so we need to strip them
14205            # from the output so that they don't get included in the library
14206            # dependencies.
14207            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14208            ;;
14209          *)
14210            if test yes = "$GXX"; then
14211              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14212            else
14213              # FIXME: insert proper C++ library support
14214              ld_shlibs_CXX=no
14215            fi
14216            ;;
14217        esac
14218        ;;
14219
14220      hpux10*|hpux11*)
14221        if test no = "$with_gnu_ld"; then
14222	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14223	  hardcode_libdir_separator_CXX=:
14224
14225          case $host_cpu in
14226            hppa*64*|ia64*)
14227              ;;
14228            *)
14229	      export_dynamic_flag_spec_CXX='$wl-E'
14230              ;;
14231          esac
14232        fi
14233        case $host_cpu in
14234          hppa*64*|ia64*)
14235            hardcode_direct_CXX=no
14236            hardcode_shlibpath_var_CXX=no
14237            ;;
14238          *)
14239            hardcode_direct_CXX=yes
14240            hardcode_direct_absolute_CXX=yes
14241            hardcode_minus_L_CXX=yes # Not in the search PATH,
14242					         # but as the default
14243					         # location of the library.
14244            ;;
14245        esac
14246
14247        case $cc_basename in
14248          CC*)
14249	    # FIXME: insert proper C++ library support
14250	    ld_shlibs_CXX=no
14251	    ;;
14252          aCC*)
14253	    case $host_cpu in
14254	      hppa*64*)
14255	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14256	        ;;
14257	      ia64*)
14258	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14259	        ;;
14260	      *)
14261	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262	        ;;
14263	    esac
14264	    # Commands to make compiler produce verbose output that lists
14265	    # what "hidden" libraries, object files and flags are used when
14266	    # linking a shared library.
14267	    #
14268	    # There doesn't appear to be a way to prevent this compiler from
14269	    # explicitly linking system object files so we need to strip them
14270	    # from the output so that they don't get included in the library
14271	    # dependencies.
14272	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14273	    ;;
14274          *)
14275	    if test yes = "$GXX"; then
14276	      if test no = "$with_gnu_ld"; then
14277	        case $host_cpu in
14278	          hppa*64*)
14279	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14280	            ;;
14281	          ia64*)
14282	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14283	            ;;
14284	          *)
14285	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14286	            ;;
14287	        esac
14288	      fi
14289	    else
14290	      # FIXME: insert proper C++ library support
14291	      ld_shlibs_CXX=no
14292	    fi
14293	    ;;
14294        esac
14295        ;;
14296
14297      interix[3-9]*)
14298	hardcode_direct_CXX=no
14299	hardcode_shlibpath_var_CXX=no
14300	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14301	export_dynamic_flag_spec_CXX='$wl-E'
14302	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14303	# Instead, shared libraries are loaded at an image base (0x10000000 by
14304	# default) and relocated if they conflict, which is a slow very memory
14305	# consuming and fragmenting process.  To avoid this, we pick a random,
14306	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14307	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14308	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14309	archive_expsym_cmds_CXX='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'
14310	;;
14311      irix5* | irix6*)
14312        case $cc_basename in
14313          CC*)
14314	    # SGI C++
14315	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14316
14317	    # Archives containing C++ object files must be created using
14318	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14319	    # necessary to make sure instantiated templates are included
14320	    # in the archive.
14321	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14322	    ;;
14323          *)
14324	    if test yes = "$GXX"; then
14325	      if test no = "$with_gnu_ld"; then
14326	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14327	      else
14328	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14329	      fi
14330	    fi
14331	    link_all_deplibs_CXX=yes
14332	    ;;
14333        esac
14334        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14335        hardcode_libdir_separator_CXX=:
14336        inherit_rpath_CXX=yes
14337        ;;
14338
14339      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14340        case $cc_basename in
14341          KCC*)
14342	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14343
14344	    # KCC will only create a shared library if the output file
14345	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14346	    # to its proper name (with version) after linking.
14347	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14348	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14349	    # Commands to make compiler produce verbose output that lists
14350	    # what "hidden" libraries, object files and flags are used when
14351	    # linking a shared library.
14352	    #
14353	    # There doesn't appear to be a way to prevent this compiler from
14354	    # explicitly linking system object files so we need to strip them
14355	    # from the output so that they don't get included in the library
14356	    # dependencies.
14357	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14358
14359	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14360	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14361
14362	    # Archives containing C++ object files must be created using
14363	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14364	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14365	    ;;
14366	  icpc* | ecpc* )
14367	    # Intel C++
14368	    with_gnu_ld=yes
14369	    # version 8.0 and above of icpc choke on multiply defined symbols
14370	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14371	    # earlier do not add the objects themselves.
14372	    case `$CC -V 2>&1` in
14373	      *"Version 7."*)
14374	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14375		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14376		;;
14377	      *)  # Version 8.0 or newer
14378	        tmp_idyn=
14379	        case $host_cpu in
14380		  ia64*) tmp_idyn=' -i_dynamic';;
14381		esac
14382	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14383		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14384		;;
14385	    esac
14386	    archive_cmds_need_lc_CXX=no
14387	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14388	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14389	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14390	    ;;
14391          pgCC* | pgcpp*)
14392            # Portland Group C++ compiler
14393	    case `$CC -V` in
14394	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14395	      prelink_cmds_CXX='tpldir=Template.dir~
14396               rm -rf $tpldir~
14397               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14398               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14399	      old_archive_cmds_CXX='tpldir=Template.dir~
14400                rm -rf $tpldir~
14401                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14402                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14403                $RANLIB $oldlib'
14404	      archive_cmds_CXX='tpldir=Template.dir~
14405                rm -rf $tpldir~
14406                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14407                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14408	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14409                rm -rf $tpldir~
14410                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14411                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14412	      ;;
14413	    *) # Version 6 and above use weak symbols
14414	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14415	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14416	      ;;
14417	    esac
14418
14419	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14420	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14421	    whole_archive_flag_spec_CXX='$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'
14422            ;;
14423	  cxx*)
14424	    # Compaq C++
14425	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14426	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14427
14428	    runpath_var=LD_RUN_PATH
14429	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14430	    hardcode_libdir_separator_CXX=:
14431
14432	    # Commands to make compiler produce verbose output that lists
14433	    # what "hidden" libraries, object files and flags are used when
14434	    # linking a shared library.
14435	    #
14436	    # There doesn't appear to be a way to prevent this compiler from
14437	    # explicitly linking system object files so we need to strip them
14438	    # from the output so that they don't get included in the library
14439	    # dependencies.
14440	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14441	    ;;
14442	  xl* | mpixl* | bgxl*)
14443	    # IBM XL 8.0 on PPC, with GNU ld
14444	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14445	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14446	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14447	    if test yes = "$supports_anon_versioning"; then
14448	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14449                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14450                echo "local: *; };" >> $output_objdir/$libname.ver~
14451                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14452	    fi
14453	    ;;
14454	  *)
14455	    case `$CC -V 2>&1 | sed 5q` in
14456	    *Sun\ C*)
14457	      # Sun C++ 5.9
14458	      no_undefined_flag_CXX=' -zdefs'
14459	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14460	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14461	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14462	      whole_archive_flag_spec_CXX='$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'
14463	      compiler_needs_object_CXX=yes
14464
14465	      # Not sure whether something based on
14466	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14467	      # would be better.
14468	      output_verbose_link_cmd='func_echo_all'
14469
14470	      # Archives containing C++ object files must be created using
14471	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14472	      # necessary to make sure instantiated templates are included
14473	      # in the archive.
14474	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14475	      ;;
14476	    esac
14477	    ;;
14478	esac
14479	;;
14480
14481      lynxos*)
14482        # FIXME: insert proper C++ library support
14483	ld_shlibs_CXX=no
14484	;;
14485
14486      m88k*)
14487        # FIXME: insert proper C++ library support
14488        ld_shlibs_CXX=no
14489	;;
14490
14491      mvs*)
14492        case $cc_basename in
14493          cxx*)
14494	    # FIXME: insert proper C++ library support
14495	    ld_shlibs_CXX=no
14496	    ;;
14497	  *)
14498	    # FIXME: insert proper C++ library support
14499	    ld_shlibs_CXX=no
14500	    ;;
14501	esac
14502	;;
14503
14504      netbsd*)
14505        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14506	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14507	  wlarc=
14508	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14509	  hardcode_direct_CXX=yes
14510	  hardcode_shlibpath_var_CXX=no
14511	fi
14512	# Workaround some broken pre-1.5 toolchains
14513	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14514	;;
14515
14516      *nto* | *qnx*)
14517        ld_shlibs_CXX=yes
14518	;;
14519
14520      openbsd* | bitrig*)
14521	if test -f /usr/libexec/ld.so; then
14522	  hardcode_direct_CXX=yes
14523	  hardcode_shlibpath_var_CXX=no
14524	  hardcode_direct_absolute_CXX=yes
14525	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14526	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14527	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14528	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14529	    export_dynamic_flag_spec_CXX='$wl-E'
14530	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14531	  fi
14532	  output_verbose_link_cmd=func_echo_all
14533	else
14534	  ld_shlibs_CXX=no
14535	fi
14536	;;
14537
14538      osf3* | osf4* | osf5*)
14539        case $cc_basename in
14540          KCC*)
14541	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14542
14543	    # KCC will only create a shared library if the output file
14544	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14545	    # to its proper name (with version) after linking.
14546	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14547
14548	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14549	    hardcode_libdir_separator_CXX=:
14550
14551	    # Archives containing C++ object files must be created using
14552	    # the KAI C++ compiler.
14553	    case $host in
14554	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14555	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14556	    esac
14557	    ;;
14558          RCC*)
14559	    # Rational C++ 2.4.1
14560	    # FIXME: insert proper C++ library support
14561	    ld_shlibs_CXX=no
14562	    ;;
14563          cxx*)
14564	    case $host in
14565	      osf3*)
14566	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14567	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14568	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14569		;;
14570	      *)
14571	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14572	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14573	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14574                  echo "-hidden">> $lib.exp~
14575                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14576                  $RM $lib.exp'
14577	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14578		;;
14579	    esac
14580
14581	    hardcode_libdir_separator_CXX=:
14582
14583	    # Commands to make compiler produce verbose output that lists
14584	    # what "hidden" libraries, object files and flags are used when
14585	    # linking a shared library.
14586	    #
14587	    # There doesn't appear to be a way to prevent this compiler from
14588	    # explicitly linking system object files so we need to strip them
14589	    # from the output so that they don't get included in the library
14590	    # dependencies.
14591	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14592	    ;;
14593	  *)
14594	    if test yes,no = "$GXX,$with_gnu_ld"; then
14595	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14596	      case $host in
14597	        osf3*)
14598	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14599		  ;;
14600	        *)
14601	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14602		  ;;
14603	      esac
14604
14605	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14606	      hardcode_libdir_separator_CXX=:
14607
14608	      # Commands to make compiler produce verbose output that lists
14609	      # what "hidden" libraries, object files and flags are used when
14610	      # linking a shared library.
14611	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14612
14613	    else
14614	      # FIXME: insert proper C++ library support
14615	      ld_shlibs_CXX=no
14616	    fi
14617	    ;;
14618        esac
14619        ;;
14620
14621      psos*)
14622        # FIXME: insert proper C++ library support
14623        ld_shlibs_CXX=no
14624        ;;
14625
14626      sunos4*)
14627        case $cc_basename in
14628          CC*)
14629	    # Sun C++ 4.x
14630	    # FIXME: insert proper C++ library support
14631	    ld_shlibs_CXX=no
14632	    ;;
14633          lcc*)
14634	    # Lucid
14635	    # FIXME: insert proper C++ library support
14636	    ld_shlibs_CXX=no
14637	    ;;
14638          *)
14639	    # FIXME: insert proper C++ library support
14640	    ld_shlibs_CXX=no
14641	    ;;
14642        esac
14643        ;;
14644
14645      solaris*)
14646        case $cc_basename in
14647          CC* | sunCC*)
14648	    # Sun C++ 4.2, 5.x and Centerline C++
14649            archive_cmds_need_lc_CXX=yes
14650	    no_undefined_flag_CXX=' -zdefs'
14651	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14652	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14653              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14654
14655	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14656	    hardcode_shlibpath_var_CXX=no
14657	    case $host_os in
14658	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14659	      *)
14660		# The compiler driver will combine and reorder linker options,
14661		# but understands '-z linker_flag'.
14662	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14663		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14664	        ;;
14665	    esac
14666	    link_all_deplibs_CXX=yes
14667
14668	    output_verbose_link_cmd='func_echo_all'
14669
14670	    # Archives containing C++ object files must be created using
14671	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14672	    # necessary to make sure instantiated templates are included
14673	    # in the archive.
14674	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14675	    ;;
14676          gcx*)
14677	    # Green Hills C++ Compiler
14678	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14679
14680	    # The C++ compiler must be used to create the archive.
14681	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14682	    ;;
14683          *)
14684	    # GNU C++ compiler with Solaris linker
14685	    if test yes,no = "$GXX,$with_gnu_ld"; then
14686	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14687	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14688	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14689	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14690                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14691
14692	        # Commands to make compiler produce verbose output that lists
14693	        # what "hidden" libraries, object files and flags are used when
14694	        # linking a shared library.
14695	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14696	      else
14697	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14698	        # platform.
14699	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14700	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14701                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14702
14703	        # Commands to make compiler produce verbose output that lists
14704	        # what "hidden" libraries, object files and flags are used when
14705	        # linking a shared library.
14706	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14707	      fi
14708
14709	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14710	      case $host_os in
14711		solaris2.[0-5] | solaris2.[0-5].*) ;;
14712		*)
14713		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14714		  ;;
14715	      esac
14716	    fi
14717	    ;;
14718        esac
14719        ;;
14720
14721    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14722      no_undefined_flag_CXX='$wl-z,text'
14723      archive_cmds_need_lc_CXX=no
14724      hardcode_shlibpath_var_CXX=no
14725      runpath_var='LD_RUN_PATH'
14726
14727      case $cc_basename in
14728        CC*)
14729	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14730	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14731	  ;;
14732	*)
14733	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14734	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14735	  ;;
14736      esac
14737      ;;
14738
14739      sysv5* | sco3.2v5* | sco5v6*)
14740	# Note: We CANNOT use -z defs as we might desire, because we do not
14741	# link with -lc, and that would cause any symbols used from libc to
14742	# always be unresolved, which means just about no library would
14743	# ever link correctly.  If we're not using GNU ld we use -z text
14744	# though, which does catch some bad symbols but isn't as heavy-handed
14745	# as -z defs.
14746	no_undefined_flag_CXX='$wl-z,text'
14747	allow_undefined_flag_CXX='$wl-z,nodefs'
14748	archive_cmds_need_lc_CXX=no
14749	hardcode_shlibpath_var_CXX=no
14750	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14751	hardcode_libdir_separator_CXX=':'
14752	link_all_deplibs_CXX=yes
14753	export_dynamic_flag_spec_CXX='$wl-Bexport'
14754	runpath_var='LD_RUN_PATH'
14755
14756	case $cc_basename in
14757          CC*)
14758	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14759	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14760	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14761              '"$old_archive_cmds_CXX"
14762	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14763              '"$reload_cmds_CXX"
14764	    ;;
14765	  *)
14766	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14767	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14768	    ;;
14769	esac
14770      ;;
14771
14772      tandem*)
14773        case $cc_basename in
14774          NCC*)
14775	    # NonStop-UX NCC 3.20
14776	    # FIXME: insert proper C++ library support
14777	    ld_shlibs_CXX=no
14778	    ;;
14779          *)
14780	    # FIXME: insert proper C++ library support
14781	    ld_shlibs_CXX=no
14782	    ;;
14783        esac
14784        ;;
14785
14786      vxworks*)
14787        # FIXME: insert proper C++ library support
14788        ld_shlibs_CXX=no
14789        ;;
14790
14791      *)
14792        # FIXME: insert proper C++ library support
14793        ld_shlibs_CXX=no
14794        ;;
14795    esac
14796
14797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14798$as_echo "$ld_shlibs_CXX" >&6; }
14799    test no = "$ld_shlibs_CXX" && can_build_shared=no
14800
14801    GCC_CXX=$GXX
14802    LD_CXX=$LD
14803
14804    ## CAVEAT EMPTOR:
14805    ## There is no encapsulation within the following macros, do not change
14806    ## the running order or otherwise move them around unless you know exactly
14807    ## what you are doing...
14808    # Dependencies to place before and after the object being linked:
14809predep_objects_CXX=
14810postdep_objects_CXX=
14811predeps_CXX=
14812postdeps_CXX=
14813compiler_lib_search_path_CXX=
14814
14815cat > conftest.$ac_ext <<_LT_EOF
14816class Foo
14817{
14818public:
14819  Foo (void) { a = 0; }
14820private:
14821  int a;
14822};
14823_LT_EOF
14824
14825
14826_lt_libdeps_save_CFLAGS=$CFLAGS
14827case "$CC $CFLAGS " in #(
14828*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14829*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14830*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14831esac
14832
14833if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14834  (eval $ac_compile) 2>&5
14835  ac_status=$?
14836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14837  test $ac_status = 0; }; then
14838  # Parse the compiler output and extract the necessary
14839  # objects, libraries and library flags.
14840
14841  # Sentinel used to keep track of whether or not we are before
14842  # the conftest object file.
14843  pre_test_object_deps_done=no
14844
14845  for p in `eval "$output_verbose_link_cmd"`; do
14846    case $prev$p in
14847
14848    -L* | -R* | -l*)
14849       # Some compilers place space between "-{L,R}" and the path.
14850       # Remove the space.
14851       if test x-L = "$p" ||
14852          test x-R = "$p"; then
14853	 prev=$p
14854	 continue
14855       fi
14856
14857       # Expand the sysroot to ease extracting the directories later.
14858       if test -z "$prev"; then
14859         case $p in
14860         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14861         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14862         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14863         esac
14864       fi
14865       case $p in
14866       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14867       esac
14868       if test no = "$pre_test_object_deps_done"; then
14869	 case $prev in
14870	 -L | -R)
14871	   # Internal compiler library paths should come after those
14872	   # provided the user.  The postdeps already come after the
14873	   # user supplied libs so there is no need to process them.
14874	   if test -z "$compiler_lib_search_path_CXX"; then
14875	     compiler_lib_search_path_CXX=$prev$p
14876	   else
14877	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14878	   fi
14879	   ;;
14880	 # The "-l" case would never come before the object being
14881	 # linked, so don't bother handling this case.
14882	 esac
14883       else
14884	 if test -z "$postdeps_CXX"; then
14885	   postdeps_CXX=$prev$p
14886	 else
14887	   postdeps_CXX="${postdeps_CXX} $prev$p"
14888	 fi
14889       fi
14890       prev=
14891       ;;
14892
14893    *.lto.$objext) ;; # Ignore GCC LTO objects
14894    *.$objext)
14895       # This assumes that the test object file only shows up
14896       # once in the compiler output.
14897       if test "$p" = "conftest.$objext"; then
14898	 pre_test_object_deps_done=yes
14899	 continue
14900       fi
14901
14902       if test no = "$pre_test_object_deps_done"; then
14903	 if test -z "$predep_objects_CXX"; then
14904	   predep_objects_CXX=$p
14905	 else
14906	   predep_objects_CXX="$predep_objects_CXX $p"
14907	 fi
14908       else
14909	 if test -z "$postdep_objects_CXX"; then
14910	   postdep_objects_CXX=$p
14911	 else
14912	   postdep_objects_CXX="$postdep_objects_CXX $p"
14913	 fi
14914       fi
14915       ;;
14916
14917    *) ;; # Ignore the rest.
14918
14919    esac
14920  done
14921
14922  # Clean up.
14923  rm -f a.out a.exe
14924else
14925  echo "libtool.m4: error: problem compiling CXX test program"
14926fi
14927
14928$RM -f confest.$objext
14929CFLAGS=$_lt_libdeps_save_CFLAGS
14930
14931# PORTME: override above test on systems where it is broken
14932case $host_os in
14933interix[3-9]*)
14934  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14935  # hack all around it, let's just trust "g++" to DTRT.
14936  predep_objects_CXX=
14937  postdep_objects_CXX=
14938  postdeps_CXX=
14939  ;;
14940
14941linux*)
14942  case `$CC -V 2>&1 | sed 5q` in
14943  *Sun\ C*)
14944    # Sun C++ 5.9
14945
14946    # The more standards-conforming stlport4 library is
14947    # incompatible with the Cstd library. Avoid specifying
14948    # it if it's in CXXFLAGS. Ignore libCrun as
14949    # -library=stlport4 depends on it.
14950    case " $CXX $CXXFLAGS " in
14951    *" -library=stlport4 "*)
14952      solaris_use_stlport4=yes
14953      ;;
14954    esac
14955
14956    if test yes != "$solaris_use_stlport4"; then
14957      postdeps_CXX='-library=Cstd -library=Crun'
14958    fi
14959    ;;
14960  esac
14961  ;;
14962
14963solaris*)
14964  case $cc_basename in
14965  CC* | sunCC*)
14966    # The more standards-conforming stlport4 library is
14967    # incompatible with the Cstd library. Avoid specifying
14968    # it if it's in CXXFLAGS. Ignore libCrun as
14969    # -library=stlport4 depends on it.
14970    case " $CXX $CXXFLAGS " in
14971    *" -library=stlport4 "*)
14972      solaris_use_stlport4=yes
14973      ;;
14974    esac
14975
14976    # Adding this requires a known-good setup of shared libraries for
14977    # Sun compiler versions before 5.6, else PIC objects from an old
14978    # archive will be linked into the output, leading to subtle bugs.
14979    if test yes != "$solaris_use_stlport4"; then
14980      postdeps_CXX='-library=Cstd -library=Crun'
14981    fi
14982    ;;
14983  esac
14984  ;;
14985esac
14986
14987
14988case " $postdeps_CXX " in
14989*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14990esac
14991 compiler_lib_search_dirs_CXX=
14992if test -n "${compiler_lib_search_path_CXX}"; then
14993 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14994fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026    lt_prog_compiler_wl_CXX=
15027lt_prog_compiler_pic_CXX=
15028lt_prog_compiler_static_CXX=
15029
15030
15031  # C++ specific cases for pic, static, wl, etc.
15032  if test yes = "$GXX"; then
15033    lt_prog_compiler_wl_CXX='-Wl,'
15034    lt_prog_compiler_static_CXX='-static'
15035
15036    case $host_os in
15037    aix*)
15038      # All AIX code is PIC.
15039      if test ia64 = "$host_cpu"; then
15040	# AIX 5 now supports IA64 processor
15041	lt_prog_compiler_static_CXX='-Bstatic'
15042      fi
15043      lt_prog_compiler_pic_CXX='-fPIC'
15044      ;;
15045
15046    amigaos*)
15047      case $host_cpu in
15048      powerpc)
15049            # see comment about AmigaOS4 .so support
15050            lt_prog_compiler_pic_CXX='-fPIC'
15051        ;;
15052      m68k)
15053            # FIXME: we need at least 68020 code to build shared libraries, but
15054            # adding the '-m68020' flag to GCC prevents building anything better,
15055            # like '-m68040'.
15056            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15057        ;;
15058      esac
15059      ;;
15060
15061    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15062      # PIC is the default for these OSes.
15063      ;;
15064    mingw* | cygwin* | os2* | pw32* | cegcc*)
15065      # This hack is so that the source file can tell whether it is being
15066      # built for inclusion in a dll (and should export symbols for example).
15067      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15068      # (--disable-auto-import) libraries
15069      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15070      case $host_os in
15071      os2*)
15072	lt_prog_compiler_static_CXX='$wl-static'
15073	;;
15074      esac
15075      ;;
15076    darwin* | rhapsody*)
15077      # PIC is the default on this platform
15078      # Common symbols not allowed in MH_DYLIB files
15079      lt_prog_compiler_pic_CXX='-fno-common'
15080      ;;
15081    *djgpp*)
15082      # DJGPP does not support shared libraries at all
15083      lt_prog_compiler_pic_CXX=
15084      ;;
15085    haiku*)
15086      # PIC is the default for Haiku.
15087      # The "-static" flag exists, but is broken.
15088      lt_prog_compiler_static_CXX=
15089      ;;
15090    interix[3-9]*)
15091      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15092      # Instead, we relocate shared libraries at runtime.
15093      ;;
15094    sysv4*MP*)
15095      if test -d /usr/nec; then
15096	lt_prog_compiler_pic_CXX=-Kconform_pic
15097      fi
15098      ;;
15099    hpux*)
15100      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15101      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15102      # sets the default TLS model and affects inlining.
15103      case $host_cpu in
15104      hppa*64*)
15105	;;
15106      *)
15107	lt_prog_compiler_pic_CXX='-fPIC'
15108	;;
15109      esac
15110      ;;
15111    *qnx* | *nto*)
15112      # QNX uses GNU C++, but need to define -shared option too, otherwise
15113      # it will coredump.
15114      lt_prog_compiler_pic_CXX='-fPIC -shared'
15115      ;;
15116    *)
15117      lt_prog_compiler_pic_CXX='-fPIC'
15118      ;;
15119    esac
15120  else
15121    case $host_os in
15122      aix[4-9]*)
15123	# All AIX code is PIC.
15124	if test ia64 = "$host_cpu"; then
15125	  # AIX 5 now supports IA64 processor
15126	  lt_prog_compiler_static_CXX='-Bstatic'
15127	else
15128	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15129	fi
15130	;;
15131      chorus*)
15132	case $cc_basename in
15133	cxch68*)
15134	  # Green Hills C++ Compiler
15135	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15136	  ;;
15137	esac
15138	;;
15139      mingw* | cygwin* | os2* | pw32* | cegcc*)
15140	# This hack is so that the source file can tell whether it is being
15141	# built for inclusion in a dll (and should export symbols for example).
15142	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15143	;;
15144      dgux*)
15145	case $cc_basename in
15146	  ec++*)
15147	    lt_prog_compiler_pic_CXX='-KPIC'
15148	    ;;
15149	  ghcx*)
15150	    # Green Hills C++ Compiler
15151	    lt_prog_compiler_pic_CXX='-pic'
15152	    ;;
15153	  *)
15154	    ;;
15155	esac
15156	;;
15157      freebsd* | dragonfly*)
15158	# FreeBSD uses GNU C++
15159	;;
15160      hpux9* | hpux10* | hpux11*)
15161	case $cc_basename in
15162	  CC*)
15163	    lt_prog_compiler_wl_CXX='-Wl,'
15164	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15165	    if test ia64 != "$host_cpu"; then
15166	      lt_prog_compiler_pic_CXX='+Z'
15167	    fi
15168	    ;;
15169	  aCC*)
15170	    lt_prog_compiler_wl_CXX='-Wl,'
15171	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15172	    case $host_cpu in
15173	    hppa*64*|ia64*)
15174	      # +Z the default
15175	      ;;
15176	    *)
15177	      lt_prog_compiler_pic_CXX='+Z'
15178	      ;;
15179	    esac
15180	    ;;
15181	  *)
15182	    ;;
15183	esac
15184	;;
15185      interix*)
15186	# This is c89, which is MS Visual C++ (no shared libs)
15187	# Anyone wants to do a port?
15188	;;
15189      irix5* | irix6* | nonstopux*)
15190	case $cc_basename in
15191	  CC*)
15192	    lt_prog_compiler_wl_CXX='-Wl,'
15193	    lt_prog_compiler_static_CXX='-non_shared'
15194	    # CC pic flag -KPIC is the default.
15195	    ;;
15196	  *)
15197	    ;;
15198	esac
15199	;;
15200      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15201	case $cc_basename in
15202	  KCC*)
15203	    # KAI C++ Compiler
15204	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15205	    lt_prog_compiler_pic_CXX='-fPIC'
15206	    ;;
15207	  ecpc* )
15208	    # old Intel C++ for x86_64, which still supported -KPIC.
15209	    lt_prog_compiler_wl_CXX='-Wl,'
15210	    lt_prog_compiler_pic_CXX='-KPIC'
15211	    lt_prog_compiler_static_CXX='-static'
15212	    ;;
15213	  icpc* )
15214	    # Intel C++, used to be incompatible with GCC.
15215	    # ICC 10 doesn't accept -KPIC any more.
15216	    lt_prog_compiler_wl_CXX='-Wl,'
15217	    lt_prog_compiler_pic_CXX='-fPIC'
15218	    lt_prog_compiler_static_CXX='-static'
15219	    ;;
15220	  pgCC* | pgcpp*)
15221	    # Portland Group C++ compiler
15222	    lt_prog_compiler_wl_CXX='-Wl,'
15223	    lt_prog_compiler_pic_CXX='-fpic'
15224	    lt_prog_compiler_static_CXX='-Bstatic'
15225	    ;;
15226	  cxx*)
15227	    # Compaq C++
15228	    # Make sure the PIC flag is empty.  It appears that all Alpha
15229	    # Linux and Compaq Tru64 Unix objects are PIC.
15230	    lt_prog_compiler_pic_CXX=
15231	    lt_prog_compiler_static_CXX='-non_shared'
15232	    ;;
15233	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15234	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15235	    lt_prog_compiler_wl_CXX='-Wl,'
15236	    lt_prog_compiler_pic_CXX='-qpic'
15237	    lt_prog_compiler_static_CXX='-qstaticlink'
15238	    ;;
15239	  *)
15240	    case `$CC -V 2>&1 | sed 5q` in
15241	    *Sun\ C*)
15242	      # Sun C++ 5.9
15243	      lt_prog_compiler_pic_CXX='-KPIC'
15244	      lt_prog_compiler_static_CXX='-Bstatic'
15245	      lt_prog_compiler_wl_CXX='-Qoption ld '
15246	      ;;
15247	    esac
15248	    ;;
15249	esac
15250	;;
15251      lynxos*)
15252	;;
15253      m88k*)
15254	;;
15255      mvs*)
15256	case $cc_basename in
15257	  cxx*)
15258	    lt_prog_compiler_pic_CXX='-W c,exportall'
15259	    ;;
15260	  *)
15261	    ;;
15262	esac
15263	;;
15264      netbsd*)
15265	;;
15266      *qnx* | *nto*)
15267        # QNX uses GNU C++, but need to define -shared option too, otherwise
15268        # it will coredump.
15269        lt_prog_compiler_pic_CXX='-fPIC -shared'
15270        ;;
15271      osf3* | osf4* | osf5*)
15272	case $cc_basename in
15273	  KCC*)
15274	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15275	    ;;
15276	  RCC*)
15277	    # Rational C++ 2.4.1
15278	    lt_prog_compiler_pic_CXX='-pic'
15279	    ;;
15280	  cxx*)
15281	    # Digital/Compaq C++
15282	    lt_prog_compiler_wl_CXX='-Wl,'
15283	    # Make sure the PIC flag is empty.  It appears that all Alpha
15284	    # Linux and Compaq Tru64 Unix objects are PIC.
15285	    lt_prog_compiler_pic_CXX=
15286	    lt_prog_compiler_static_CXX='-non_shared'
15287	    ;;
15288	  *)
15289	    ;;
15290	esac
15291	;;
15292      psos*)
15293	;;
15294      solaris*)
15295	case $cc_basename in
15296	  CC* | sunCC*)
15297	    # Sun C++ 4.2, 5.x and Centerline C++
15298	    lt_prog_compiler_pic_CXX='-KPIC'
15299	    lt_prog_compiler_static_CXX='-Bstatic'
15300	    lt_prog_compiler_wl_CXX='-Qoption ld '
15301	    ;;
15302	  gcx*)
15303	    # Green Hills C++ Compiler
15304	    lt_prog_compiler_pic_CXX='-PIC'
15305	    ;;
15306	  *)
15307	    ;;
15308	esac
15309	;;
15310      sunos4*)
15311	case $cc_basename in
15312	  CC*)
15313	    # Sun C++ 4.x
15314	    lt_prog_compiler_pic_CXX='-pic'
15315	    lt_prog_compiler_static_CXX='-Bstatic'
15316	    ;;
15317	  lcc*)
15318	    # Lucid
15319	    lt_prog_compiler_pic_CXX='-pic'
15320	    ;;
15321	  *)
15322	    ;;
15323	esac
15324	;;
15325      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15326	case $cc_basename in
15327	  CC*)
15328	    lt_prog_compiler_wl_CXX='-Wl,'
15329	    lt_prog_compiler_pic_CXX='-KPIC'
15330	    lt_prog_compiler_static_CXX='-Bstatic'
15331	    ;;
15332	esac
15333	;;
15334      tandem*)
15335	case $cc_basename in
15336	  NCC*)
15337	    # NonStop-UX NCC 3.20
15338	    lt_prog_compiler_pic_CXX='-KPIC'
15339	    ;;
15340	  *)
15341	    ;;
15342	esac
15343	;;
15344      vxworks*)
15345	;;
15346      *)
15347	lt_prog_compiler_can_build_shared_CXX=no
15348	;;
15349    esac
15350  fi
15351
15352case $host_os in
15353  # For platforms that do not support PIC, -DPIC is meaningless:
15354  *djgpp*)
15355    lt_prog_compiler_pic_CXX=
15356    ;;
15357  *)
15358    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15359    ;;
15360esac
15361
15362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15363$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15364if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15365  $as_echo_n "(cached) " >&6
15366else
15367  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15370$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15371lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15372
15373#
15374# Check to make sure the PIC flag actually works.
15375#
15376if test -n "$lt_prog_compiler_pic_CXX"; then
15377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15378$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15379if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15380  $as_echo_n "(cached) " >&6
15381else
15382  lt_cv_prog_compiler_pic_works_CXX=no
15383   ac_outfile=conftest.$ac_objext
15384   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15385   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15386   # Insert the option either (1) after the last *FLAGS variable, or
15387   # (2) before a word containing "conftest.", or (3) at the end.
15388   # Note that $ac_compile itself does not contain backslashes and begins
15389   # with a dollar sign (not a hyphen), so the echo should work correctly.
15390   # The option is referenced via a variable to avoid confusing sed.
15391   lt_compile=`echo "$ac_compile" | $SED \
15392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394   -e 's:$: $lt_compiler_flag:'`
15395   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15396   (eval "$lt_compile" 2>conftest.err)
15397   ac_status=$?
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   if (exit $ac_status) && test -s "$ac_outfile"; then
15401     # The compiler can only warn and ignore the option if not recognized
15402     # So say no if there are warnings other than the usual output.
15403     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15404     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15405     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15406       lt_cv_prog_compiler_pic_works_CXX=yes
15407     fi
15408   fi
15409   $RM conftest*
15410
15411fi
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15413$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15414
15415if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15416    case $lt_prog_compiler_pic_CXX in
15417     "" | " "*) ;;
15418     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15419     esac
15420else
15421    lt_prog_compiler_pic_CXX=
15422     lt_prog_compiler_can_build_shared_CXX=no
15423fi
15424
15425fi
15426
15427
15428
15429
15430
15431#
15432# Check to make sure the static flag actually works.
15433#
15434wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15436$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15437if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15438  $as_echo_n "(cached) " >&6
15439else
15440  lt_cv_prog_compiler_static_works_CXX=no
15441   save_LDFLAGS=$LDFLAGS
15442   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15443   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15444   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15445     # The linker can only warn and ignore the option if not recognized
15446     # So say no if there are warnings
15447     if test -s conftest.err; then
15448       # Append any errors to the config.log.
15449       cat conftest.err 1>&5
15450       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15451       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15452       if diff conftest.exp conftest.er2 >/dev/null; then
15453         lt_cv_prog_compiler_static_works_CXX=yes
15454       fi
15455     else
15456       lt_cv_prog_compiler_static_works_CXX=yes
15457     fi
15458   fi
15459   $RM -r conftest*
15460   LDFLAGS=$save_LDFLAGS
15461
15462fi
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15464$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15465
15466if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15467    :
15468else
15469    lt_prog_compiler_static_CXX=
15470fi
15471
15472
15473
15474
15475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15477if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15478  $as_echo_n "(cached) " >&6
15479else
15480  lt_cv_prog_compiler_c_o_CXX=no
15481   $RM -r conftest 2>/dev/null
15482   mkdir conftest
15483   cd conftest
15484   mkdir out
15485   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15486
15487   lt_compiler_flag="-o out/conftest2.$ac_objext"
15488   # Insert the option either (1) after the last *FLAGS variable, or
15489   # (2) before a word containing "conftest.", or (3) at the end.
15490   # Note that $ac_compile itself does not contain backslashes and begins
15491   # with a dollar sign (not a hyphen), so the echo should work correctly.
15492   lt_compile=`echo "$ac_compile" | $SED \
15493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15495   -e 's:$: $lt_compiler_flag:'`
15496   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15497   (eval "$lt_compile" 2>out/conftest.err)
15498   ac_status=$?
15499   cat out/conftest.err >&5
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15502   then
15503     # The compiler can only warn and ignore the option if not recognized
15504     # So say no if there are warnings
15505     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15506     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15507     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15508       lt_cv_prog_compiler_c_o_CXX=yes
15509     fi
15510   fi
15511   chmod u+w . 2>&5
15512   $RM conftest*
15513   # SGI C++ compiler will create directory out/ii_files/ for
15514   # template instantiation
15515   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15516   $RM out/* && rmdir out
15517   cd ..
15518   $RM -r conftest
15519   $RM conftest*
15520
15521fi
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15523$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15524
15525
15526
15527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15529if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15530  $as_echo_n "(cached) " >&6
15531else
15532  lt_cv_prog_compiler_c_o_CXX=no
15533   $RM -r conftest 2>/dev/null
15534   mkdir conftest
15535   cd conftest
15536   mkdir out
15537   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538
15539   lt_compiler_flag="-o out/conftest2.$ac_objext"
15540   # Insert the option either (1) after the last *FLAGS variable, or
15541   # (2) before a word containing "conftest.", or (3) at the end.
15542   # Note that $ac_compile itself does not contain backslashes and begins
15543   # with a dollar sign (not a hyphen), so the echo should work correctly.
15544   lt_compile=`echo "$ac_compile" | $SED \
15545   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15547   -e 's:$: $lt_compiler_flag:'`
15548   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15549   (eval "$lt_compile" 2>out/conftest.err)
15550   ac_status=$?
15551   cat out/conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15554   then
15555     # The compiler can only warn and ignore the option if not recognized
15556     # So say no if there are warnings
15557     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15558     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15559     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15560       lt_cv_prog_compiler_c_o_CXX=yes
15561     fi
15562   fi
15563   chmod u+w . 2>&5
15564   $RM conftest*
15565   # SGI C++ compiler will create directory out/ii_files/ for
15566   # template instantiation
15567   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15568   $RM out/* && rmdir out
15569   cd ..
15570   $RM -r conftest
15571   $RM conftest*
15572
15573fi
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15575$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15576
15577
15578
15579
15580hard_links=nottested
15581if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15582  # do not overwrite the value of need_locks provided by the user
15583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15584$as_echo_n "checking if we can lock with hard links... " >&6; }
15585  hard_links=yes
15586  $RM conftest*
15587  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15588  touch conftest.a
15589  ln conftest.a conftest.b 2>&5 || hard_links=no
15590  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15592$as_echo "$hard_links" >&6; }
15593  if test no = "$hard_links"; then
15594    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15595$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15596    need_locks=warn
15597  fi
15598else
15599  need_locks=no
15600fi
15601
15602
15603
15604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15605$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15606
15607  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15608  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15609  case $host_os in
15610  aix[4-9]*)
15611    # If we're using GNU nm, then we don't want the "-C" option.
15612    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15613    # Without the "-l" option, or with the "-B" option, AIX nm treats
15614    # weak defined symbols like other global defined symbols, whereas
15615    # GNU nm marks them as "W".
15616    # While the 'weak' keyword is ignored in the Export File, we need
15617    # it in the Import File for the 'aix-soname' feature, so we have
15618    # to replace the "-B" option with "-P" for AIX nm.
15619    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15620      export_symbols_cmds_CXX='$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'
15621    else
15622      export_symbols_cmds_CXX='`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'
15623    fi
15624    ;;
15625  pw32*)
15626    export_symbols_cmds_CXX=$ltdll_cmds
15627    ;;
15628  cygwin* | mingw* | cegcc*)
15629    case $cc_basename in
15630    cl*)
15631      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15632      ;;
15633    *)
15634      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15635      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15636      ;;
15637    esac
15638    ;;
15639  *)
15640    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15641    ;;
15642  esac
15643
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15645$as_echo "$ld_shlibs_CXX" >&6; }
15646test no = "$ld_shlibs_CXX" && can_build_shared=no
15647
15648with_gnu_ld_CXX=$with_gnu_ld
15649
15650
15651
15652
15653
15654
15655#
15656# Do we need to explicitly link libc?
15657#
15658case "x$archive_cmds_need_lc_CXX" in
15659x|xyes)
15660  # Assume -lc should be added
15661  archive_cmds_need_lc_CXX=yes
15662
15663  if test yes,yes = "$GCC,$enable_shared"; then
15664    case $archive_cmds_CXX in
15665    *'~'*)
15666      # FIXME: we may have to deal with multi-command sequences.
15667      ;;
15668    '$CC '*)
15669      # Test whether the compiler implicitly links with -lc since on some
15670      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15671      # to ld, don't add -lc before -lgcc.
15672      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15673$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15674if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15675  $as_echo_n "(cached) " >&6
15676else
15677  $RM conftest*
15678	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15679
15680	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15681  (eval $ac_compile) 2>&5
15682  ac_status=$?
15683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15684  test $ac_status = 0; } 2>conftest.err; then
15685	  soname=conftest
15686	  lib=conftest
15687	  libobjs=conftest.$ac_objext
15688	  deplibs=
15689	  wl=$lt_prog_compiler_wl_CXX
15690	  pic_flag=$lt_prog_compiler_pic_CXX
15691	  compiler_flags=-v
15692	  linker_flags=-v
15693	  verstring=
15694	  output_objdir=.
15695	  libname=conftest
15696	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15697	  allow_undefined_flag_CXX=
15698	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15699  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15700  ac_status=$?
15701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15702  test $ac_status = 0; }
15703	  then
15704	    lt_cv_archive_cmds_need_lc_CXX=no
15705	  else
15706	    lt_cv_archive_cmds_need_lc_CXX=yes
15707	  fi
15708	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15709	else
15710	  cat conftest.err 1>&5
15711	fi
15712	$RM conftest*
15713
15714fi
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15716$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15717      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15718      ;;
15719    esac
15720  fi
15721  ;;
15722esac
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15786$as_echo_n "checking dynamic linker characteristics... " >&6; }
15787
15788library_names_spec=
15789libname_spec='lib$name'
15790soname_spec=
15791shrext_cmds=.so
15792postinstall_cmds=
15793postuninstall_cmds=
15794finish_cmds=
15795finish_eval=
15796shlibpath_var=
15797shlibpath_overrides_runpath=unknown
15798version_type=none
15799dynamic_linker="$host_os ld.so"
15800sys_lib_dlsearch_path_spec="/lib /usr/lib"
15801need_lib_prefix=unknown
15802hardcode_into_libs=no
15803
15804# when you set need_version to no, make sure it does not cause -set_version
15805# flags to be left without arguments
15806need_version=unknown
15807
15808case $host_os in
15809aix3*)
15810  version_type=linux # correct to gnu/linux during the next big refactor
15811  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15812  shlibpath_var=LIBPATH
15813
15814  # AIX 3 has no versioning support, so we append a major version to the name.
15815  soname_spec='$libname$release$shared_ext$major'
15816  ;;
15817
15818aix[4-9]*)
15819  version_type=linux # correct to gnu/linux during the next big refactor
15820  need_lib_prefix=no
15821  need_version=no
15822  hardcode_into_libs=yes
15823  if test ia64 = "$host_cpu"; then
15824    # AIX 5 supports IA64
15825    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15826    shlibpath_var=LD_LIBRARY_PATH
15827  else
15828    # With GCC up to 2.95.x, collect2 would create an import file
15829    # for dependence libraries.  The import file would start with
15830    # the line '#! .'.  This would cause the generated library to
15831    # depend on '.', always an invalid library.  This was fixed in
15832    # development snapshots of GCC prior to 3.0.
15833    case $host_os in
15834      aix4 | aix4.[01] | aix4.[01].*)
15835      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15836	   echo ' yes '
15837	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15838	:
15839      else
15840	can_build_shared=no
15841      fi
15842      ;;
15843    esac
15844    # Using Import Files as archive members, it is possible to support
15845    # filename-based versioning of shared library archives on AIX. While
15846    # this would work for both with and without runtime linking, it will
15847    # prevent static linking of such archives. So we do filename-based
15848    # shared library versioning with .so extension only, which is used
15849    # when both runtime linking and shared linking is enabled.
15850    # Unfortunately, runtime linking may impact performance, so we do
15851    # not want this to be the default eventually. Also, we use the
15852    # versioned .so libs for executables only if there is the -brtl
15853    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15854    # To allow for filename-based versioning support, we need to create
15855    # libNAME.so.V as an archive file, containing:
15856    # *) an Import File, referring to the versioned filename of the
15857    #    archive as well as the shared archive member, telling the
15858    #    bitwidth (32 or 64) of that shared object, and providing the
15859    #    list of exported symbols of that shared object, eventually
15860    #    decorated with the 'weak' keyword
15861    # *) the shared object with the F_LOADONLY flag set, to really avoid
15862    #    it being seen by the linker.
15863    # At run time we better use the real file rather than another symlink,
15864    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15865
15866    case $with_aix_soname,$aix_use_runtimelinking in
15867    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15868    # soname into executable. Probably we can add versioning support to
15869    # collect2, so additional links can be useful in future.
15870    aix,yes) # traditional libtool
15871      dynamic_linker='AIX unversionable lib.so'
15872      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15873      # instead of lib<name>.a to let people know that these are not
15874      # typical AIX shared libraries.
15875      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15876      ;;
15877    aix,no) # traditional AIX only
15878      dynamic_linker='AIX lib.a(lib.so.V)'
15879      # We preserve .a as extension for shared libraries through AIX4.2
15880      # and later when we are not doing run time linking.
15881      library_names_spec='$libname$release.a $libname.a'
15882      soname_spec='$libname$release$shared_ext$major'
15883      ;;
15884    svr4,*) # full svr4 only
15885      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15886      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15887      # We do not specify a path in Import Files, so LIBPATH fires.
15888      shlibpath_overrides_runpath=yes
15889      ;;
15890    *,yes) # both, prefer svr4
15891      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15892      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15893      # unpreferred sharedlib libNAME.a needs extra handling
15894      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"'
15895      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"'
15896      # We do not specify a path in Import Files, so LIBPATH fires.
15897      shlibpath_overrides_runpath=yes
15898      ;;
15899    *,no) # both, prefer aix
15900      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15901      library_names_spec='$libname$release.a $libname.a'
15902      soname_spec='$libname$release$shared_ext$major'
15903      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15904      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)'
15905      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"'
15906      ;;
15907    esac
15908    shlibpath_var=LIBPATH
15909  fi
15910  ;;
15911
15912amigaos*)
15913  case $host_cpu in
15914  powerpc)
15915    # Since July 2007 AmigaOS4 officially supports .so libraries.
15916    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15917    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15918    ;;
15919  m68k)
15920    library_names_spec='$libname.ixlibrary $libname.a'
15921    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15922    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'
15923    ;;
15924  esac
15925  ;;
15926
15927beos*)
15928  library_names_spec='$libname$shared_ext'
15929  dynamic_linker="$host_os ld.so"
15930  shlibpath_var=LIBRARY_PATH
15931  ;;
15932
15933bsdi[45]*)
15934  version_type=linux # correct to gnu/linux during the next big refactor
15935  need_version=no
15936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15937  soname_spec='$libname$release$shared_ext$major'
15938  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15939  shlibpath_var=LD_LIBRARY_PATH
15940  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15941  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15942  # the default ld.so.conf also contains /usr/contrib/lib and
15943  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15944  # libtool to hard-code these into programs
15945  ;;
15946
15947cygwin* | mingw* | pw32* | cegcc*)
15948  version_type=windows
15949  shrext_cmds=.dll
15950  need_version=no
15951  need_lib_prefix=no
15952
15953  case $GCC,$cc_basename in
15954  yes,*)
15955    # gcc
15956    library_names_spec='$libname.dll.a'
15957    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15958    postinstall_cmds='base_file=`basename \$file`~
15959      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15960      dldir=$destdir/`dirname \$dlpath`~
15961      test -d \$dldir || mkdir -p \$dldir~
15962      $install_prog $dir/$dlname \$dldir/$dlname~
15963      chmod a+x \$dldir/$dlname~
15964      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15965        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15966      fi'
15967    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15968      dlpath=$dir/\$dldll~
15969       $RM \$dlpath'
15970    shlibpath_overrides_runpath=yes
15971
15972    case $host_os in
15973    cygwin*)
15974      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15975      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15976
15977      ;;
15978    mingw* | cegcc*)
15979      # MinGW DLLs use traditional 'lib' prefix
15980      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15981      ;;
15982    pw32*)
15983      # pw32 DLLs use 'pw' prefix rather than 'lib'
15984      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15985      ;;
15986    esac
15987    dynamic_linker='Win32 ld.exe'
15988    ;;
15989
15990  *,cl*)
15991    # Native MSVC
15992    libname_spec='$name'
15993    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15994    library_names_spec='$libname.dll.lib'
15995
15996    case $build_os in
15997    mingw*)
15998      sys_lib_search_path_spec=
15999      lt_save_ifs=$IFS
16000      IFS=';'
16001      for lt_path in $LIB
16002      do
16003        IFS=$lt_save_ifs
16004        # Let DOS variable expansion print the short 8.3 style file name.
16005        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16006        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16007      done
16008      IFS=$lt_save_ifs
16009      # Convert to MSYS style.
16010      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16011      ;;
16012    cygwin*)
16013      # Convert to unix form, then to dos form, then back to unix form
16014      # but this time dos style (no spaces!) so that the unix form looks
16015      # like /cygdrive/c/PROGRA~1:/cygdr...
16016      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16017      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16018      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16019      ;;
16020    *)
16021      sys_lib_search_path_spec=$LIB
16022      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16023        # It is most probably a Windows format PATH.
16024        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16025      else
16026        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16027      fi
16028      # FIXME: find the short name or the path components, as spaces are
16029      # common. (e.g. "Program Files" -> "PROGRA~1")
16030      ;;
16031    esac
16032
16033    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16034    postinstall_cmds='base_file=`basename \$file`~
16035      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16036      dldir=$destdir/`dirname \$dlpath`~
16037      test -d \$dldir || mkdir -p \$dldir~
16038      $install_prog $dir/$dlname \$dldir/$dlname'
16039    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16040      dlpath=$dir/\$dldll~
16041       $RM \$dlpath'
16042    shlibpath_overrides_runpath=yes
16043    dynamic_linker='Win32 link.exe'
16044    ;;
16045
16046  *)
16047    # Assume MSVC wrapper
16048    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16049    dynamic_linker='Win32 ld.exe'
16050    ;;
16051  esac
16052  # FIXME: first we should search . and the directory the executable is in
16053  shlibpath_var=PATH
16054  ;;
16055
16056darwin* | rhapsody*)
16057  dynamic_linker="$host_os dyld"
16058  version_type=darwin
16059  need_lib_prefix=no
16060  need_version=no
16061  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16062  soname_spec='$libname$release$major$shared_ext'
16063  shlibpath_overrides_runpath=yes
16064  shlibpath_var=DYLD_LIBRARY_PATH
16065  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16066
16067  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16068  ;;
16069
16070dgux*)
16071  version_type=linux # correct to gnu/linux during the next big refactor
16072  need_lib_prefix=no
16073  need_version=no
16074  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16075  soname_spec='$libname$release$shared_ext$major'
16076  shlibpath_var=LD_LIBRARY_PATH
16077  ;;
16078
16079freebsd* | dragonfly*)
16080  # DragonFly does not have aout.  When/if they implement a new
16081  # versioning mechanism, adjust this.
16082  if test -x /usr/bin/objformat; then
16083    objformat=`/usr/bin/objformat`
16084  else
16085    case $host_os in
16086    freebsd[23].*) objformat=aout ;;
16087    *) objformat=elf ;;
16088    esac
16089  fi
16090  version_type=freebsd-$objformat
16091  case $version_type in
16092    freebsd-elf*)
16093      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16094      need_version=no
16095      need_lib_prefix=no
16096      ;;
16097    freebsd-*)
16098      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16099      need_version=yes
16100      ;;
16101  esac
16102  shlibpath_var=LD_LIBRARY_PATH
16103  case $host_os in
16104  freebsd2.*)
16105    shlibpath_overrides_runpath=yes
16106    ;;
16107  freebsd3.[01]* | freebsdelf3.[01]*)
16108    shlibpath_overrides_runpath=yes
16109    hardcode_into_libs=yes
16110    ;;
16111  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16112  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16113    shlibpath_overrides_runpath=no
16114    hardcode_into_libs=yes
16115    ;;
16116  *) # from 4.6 on, and DragonFly
16117    shlibpath_overrides_runpath=yes
16118    hardcode_into_libs=yes
16119    ;;
16120  esac
16121  ;;
16122
16123haiku*)
16124  version_type=linux # correct to gnu/linux during the next big refactor
16125  need_lib_prefix=no
16126  need_version=no
16127  dynamic_linker="$host_os runtime_loader"
16128  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16129  soname_spec='$libname$release$shared_ext$major'
16130  shlibpath_var=LIBRARY_PATH
16131  shlibpath_overrides_runpath=no
16132  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16133  hardcode_into_libs=yes
16134  ;;
16135
16136hpux9* | hpux10* | hpux11*)
16137  # Give a soname corresponding to the major version so that dld.sl refuses to
16138  # link against other versions.
16139  version_type=sunos
16140  need_lib_prefix=no
16141  need_version=no
16142  case $host_cpu in
16143  ia64*)
16144    shrext_cmds='.so'
16145    hardcode_into_libs=yes
16146    dynamic_linker="$host_os dld.so"
16147    shlibpath_var=LD_LIBRARY_PATH
16148    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16149    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16150    soname_spec='$libname$release$shared_ext$major'
16151    if test 32 = "$HPUX_IA64_MODE"; then
16152      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16153    else
16154      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16155    fi
16156    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16157    ;;
16158  hppa*64*)
16159    shrext_cmds='.sl'
16160    hardcode_into_libs=yes
16161    dynamic_linker="$host_os dld.sl"
16162    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16163    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16164    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16165    soname_spec='$libname$release$shared_ext$major'
16166    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16167    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16168    ;;
16169  *)
16170    shrext_cmds='.sl'
16171    dynamic_linker="$host_os dld.sl"
16172    shlibpath_var=SHLIB_PATH
16173    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16174    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16175    soname_spec='$libname$release$shared_ext$major'
16176    ;;
16177  esac
16178  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16179  postinstall_cmds='chmod 555 $lib'
16180  # or fails outright, so override atomically:
16181  install_override_mode=555
16182  ;;
16183
16184interix[3-9]*)
16185  version_type=linux # correct to gnu/linux during the next big refactor
16186  need_lib_prefix=no
16187  need_version=no
16188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16189  soname_spec='$libname$release$shared_ext$major'
16190  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16191  shlibpath_var=LD_LIBRARY_PATH
16192  shlibpath_overrides_runpath=no
16193  hardcode_into_libs=yes
16194  ;;
16195
16196irix5* | irix6* | nonstopux*)
16197  case $host_os in
16198    nonstopux*) version_type=nonstopux ;;
16199    *)
16200	if test yes = "$lt_cv_prog_gnu_ld"; then
16201		version_type=linux # correct to gnu/linux during the next big refactor
16202	else
16203		version_type=irix
16204	fi ;;
16205  esac
16206  need_lib_prefix=no
16207  need_version=no
16208  soname_spec='$libname$release$shared_ext$major'
16209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16210  case $host_os in
16211  irix5* | nonstopux*)
16212    libsuff= shlibsuff=
16213    ;;
16214  *)
16215    case $LD in # libtool.m4 will add one of these switches to LD
16216    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16217      libsuff= shlibsuff= libmagic=32-bit;;
16218    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16219      libsuff=32 shlibsuff=N32 libmagic=N32;;
16220    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16221      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16222    *) libsuff= shlibsuff= libmagic=never-match;;
16223    esac
16224    ;;
16225  esac
16226  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16227  shlibpath_overrides_runpath=no
16228  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16229  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16230  hardcode_into_libs=yes
16231  ;;
16232
16233# No shared lib support for Linux oldld, aout, or coff.
16234linux*oldld* | linux*aout* | linux*coff*)
16235  dynamic_linker=no
16236  ;;
16237
16238linux*android*)
16239  version_type=none # Android doesn't support versioned libraries.
16240  need_lib_prefix=no
16241  need_version=no
16242  library_names_spec='$libname$release$shared_ext'
16243  soname_spec='$libname$release$shared_ext'
16244  finish_cmds=
16245  shlibpath_var=LD_LIBRARY_PATH
16246  shlibpath_overrides_runpath=yes
16247
16248  # This implies no fast_install, which is unacceptable.
16249  # Some rework will be needed to allow for fast_install
16250  # before this can be enabled.
16251  hardcode_into_libs=yes
16252
16253  dynamic_linker='Android linker'
16254  # Don't embed -rpath directories since the linker doesn't support them.
16255  hardcode_libdir_flag_spec_CXX='-L$libdir'
16256  ;;
16257
16258# This must be glibc/ELF.
16259linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16260  version_type=linux # correct to gnu/linux during the next big refactor
16261  need_lib_prefix=no
16262  need_version=no
16263  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16264  soname_spec='$libname$release$shared_ext$major'
16265  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16266  shlibpath_var=LD_LIBRARY_PATH
16267  shlibpath_overrides_runpath=no
16268
16269  # Some binutils ld are patched to set DT_RUNPATH
16270  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  lt_cv_shlibpath_overrides_runpath=no
16274    save_LDFLAGS=$LDFLAGS
16275    save_libdir=$libdir
16276    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16277	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279/* end confdefs.h.  */
16280
16281int
16282main ()
16283{
16284
16285  ;
16286  return 0;
16287}
16288_ACEOF
16289if ac_fn_cxx_try_link "$LINENO"; then :
16290  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16291  lt_cv_shlibpath_overrides_runpath=yes
16292fi
16293fi
16294rm -f core conftest.err conftest.$ac_objext \
16295    conftest$ac_exeext conftest.$ac_ext
16296    LDFLAGS=$save_LDFLAGS
16297    libdir=$save_libdir
16298
16299fi
16300
16301  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16302
16303  # This implies no fast_install, which is unacceptable.
16304  # Some rework will be needed to allow for fast_install
16305  # before this can be enabled.
16306  hardcode_into_libs=yes
16307
16308  # Append ld.so.conf contents to the search path
16309  if test -f /etc/ld.so.conf; then
16310    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' ' '`
16311    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16312  fi
16313
16314  # We used to test for /lib/ld.so.1 and disable shared libraries on
16315  # powerpc, because MkLinux only supported shared libraries with the
16316  # GNU dynamic linker.  Since this was broken with cross compilers,
16317  # most powerpc-linux boxes support dynamic linking these days and
16318  # people can always --disable-shared, the test was removed, and we
16319  # assume the GNU/Linux dynamic linker is in use.
16320  dynamic_linker='GNU/Linux ld.so'
16321  ;;
16322
16323netbsd*)
16324  version_type=sunos
16325  need_lib_prefix=no
16326  need_version=no
16327  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16328    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16329    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16330    dynamic_linker='NetBSD (a.out) ld.so'
16331  else
16332    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16333    soname_spec='$libname$release$shared_ext$major'
16334    dynamic_linker='NetBSD ld.elf_so'
16335  fi
16336  shlibpath_var=LD_LIBRARY_PATH
16337  shlibpath_overrides_runpath=yes
16338  hardcode_into_libs=yes
16339  ;;
16340
16341newsos6)
16342  version_type=linux # correct to gnu/linux during the next big refactor
16343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16344  shlibpath_var=LD_LIBRARY_PATH
16345  shlibpath_overrides_runpath=yes
16346  ;;
16347
16348*nto* | *qnx*)
16349  version_type=qnx
16350  need_lib_prefix=no
16351  need_version=no
16352  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16353  soname_spec='$libname$release$shared_ext$major'
16354  shlibpath_var=LD_LIBRARY_PATH
16355  shlibpath_overrides_runpath=no
16356  hardcode_into_libs=yes
16357  dynamic_linker='ldqnx.so'
16358  ;;
16359
16360openbsd* | bitrig*)
16361  version_type=sunos
16362  sys_lib_dlsearch_path_spec=/usr/lib
16363  need_lib_prefix=no
16364  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16365    need_version=no
16366  else
16367    need_version=yes
16368  fi
16369  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16370  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16371  shlibpath_var=LD_LIBRARY_PATH
16372  shlibpath_overrides_runpath=yes
16373  ;;
16374
16375os2*)
16376  libname_spec='$name'
16377  version_type=windows
16378  shrext_cmds=.dll
16379  need_version=no
16380  need_lib_prefix=no
16381  # OS/2 can only load a DLL with a base name of 8 characters or less.
16382  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16383    v=$($ECHO $release$versuffix | tr -d .-);
16384    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16385    $ECHO $n$v`$shared_ext'
16386  library_names_spec='${libname}_dll.$libext'
16387  dynamic_linker='OS/2 ld.exe'
16388  shlibpath_var=BEGINLIBPATH
16389  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16390  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16391  postinstall_cmds='base_file=`basename \$file`~
16392    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16393    dldir=$destdir/`dirname \$dlpath`~
16394    test -d \$dldir || mkdir -p \$dldir~
16395    $install_prog $dir/$dlname \$dldir/$dlname~
16396    chmod a+x \$dldir/$dlname~
16397    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16398      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16399    fi'
16400  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16401    dlpath=$dir/\$dldll~
16402    $RM \$dlpath'
16403  ;;
16404
16405osf3* | osf4* | osf5*)
16406  version_type=osf
16407  need_lib_prefix=no
16408  need_version=no
16409  soname_spec='$libname$release$shared_ext$major'
16410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16411  shlibpath_var=LD_LIBRARY_PATH
16412  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16413  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16414  ;;
16415
16416rdos*)
16417  dynamic_linker=no
16418  ;;
16419
16420solaris*)
16421  version_type=linux # correct to gnu/linux during the next big refactor
16422  need_lib_prefix=no
16423  need_version=no
16424  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16425  soname_spec='$libname$release$shared_ext$major'
16426  shlibpath_var=LD_LIBRARY_PATH
16427  shlibpath_overrides_runpath=yes
16428  hardcode_into_libs=yes
16429  # ldd complains unless libraries are executable
16430  postinstall_cmds='chmod +x $lib'
16431  ;;
16432
16433sunos4*)
16434  version_type=sunos
16435  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16436  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16437  shlibpath_var=LD_LIBRARY_PATH
16438  shlibpath_overrides_runpath=yes
16439  if test yes = "$with_gnu_ld"; then
16440    need_lib_prefix=no
16441  fi
16442  need_version=yes
16443  ;;
16444
16445sysv4 | sysv4.3*)
16446  version_type=linux # correct to gnu/linux during the next big refactor
16447  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16448  soname_spec='$libname$release$shared_ext$major'
16449  shlibpath_var=LD_LIBRARY_PATH
16450  case $host_vendor in
16451    sni)
16452      shlibpath_overrides_runpath=no
16453      need_lib_prefix=no
16454      runpath_var=LD_RUN_PATH
16455      ;;
16456    siemens)
16457      need_lib_prefix=no
16458      ;;
16459    motorola)
16460      need_lib_prefix=no
16461      need_version=no
16462      shlibpath_overrides_runpath=no
16463      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16464      ;;
16465  esac
16466  ;;
16467
16468sysv4*MP*)
16469  if test -d /usr/nec; then
16470    version_type=linux # correct to gnu/linux during the next big refactor
16471    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16472    soname_spec='$libname$shared_ext.$major'
16473    shlibpath_var=LD_LIBRARY_PATH
16474  fi
16475  ;;
16476
16477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16478  version_type=sco
16479  need_lib_prefix=no
16480  need_version=no
16481  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16482  soname_spec='$libname$release$shared_ext$major'
16483  shlibpath_var=LD_LIBRARY_PATH
16484  shlibpath_overrides_runpath=yes
16485  hardcode_into_libs=yes
16486  if test yes = "$with_gnu_ld"; then
16487    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16488  else
16489    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16490    case $host_os in
16491      sco3.2v5*)
16492        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16493	;;
16494    esac
16495  fi
16496  sys_lib_dlsearch_path_spec='/usr/lib'
16497  ;;
16498
16499tpf*)
16500  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16501  version_type=linux # correct to gnu/linux during the next big refactor
16502  need_lib_prefix=no
16503  need_version=no
16504  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16505  shlibpath_var=LD_LIBRARY_PATH
16506  shlibpath_overrides_runpath=no
16507  hardcode_into_libs=yes
16508  ;;
16509
16510uts4*)
16511  version_type=linux # correct to gnu/linux during the next big refactor
16512  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16513  soname_spec='$libname$release$shared_ext$major'
16514  shlibpath_var=LD_LIBRARY_PATH
16515  ;;
16516
16517*)
16518  dynamic_linker=no
16519  ;;
16520esac
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16522$as_echo "$dynamic_linker" >&6; }
16523test no = "$dynamic_linker" && can_build_shared=no
16524
16525variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16526if test yes = "$GCC"; then
16527  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16528fi
16529
16530if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16531  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16532fi
16533if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16534  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16535fi
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16575$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16576hardcode_action_CXX=
16577if test -n "$hardcode_libdir_flag_spec_CXX" ||
16578   test -n "$runpath_var_CXX" ||
16579   test yes = "$hardcode_automatic_CXX"; then
16580
16581  # We can hardcode non-existent directories.
16582  if test no != "$hardcode_direct_CXX" &&
16583     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16584     # have to relink, otherwise we might link with an installed library
16585     # when we should be linking with a yet-to-be-installed one
16586     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16587     test no != "$hardcode_minus_L_CXX"; then
16588    # Linking always hardcodes the temporary library directory.
16589    hardcode_action_CXX=relink
16590  else
16591    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16592    hardcode_action_CXX=immediate
16593  fi
16594else
16595  # We cannot hardcode anything, or else we can only hardcode existing
16596  # directories.
16597  hardcode_action_CXX=unsupported
16598fi
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16600$as_echo "$hardcode_action_CXX" >&6; }
16601
16602if test relink = "$hardcode_action_CXX" ||
16603   test yes = "$inherit_rpath_CXX"; then
16604  # Fast installation is not supported
16605  enable_fast_install=no
16606elif test yes = "$shlibpath_overrides_runpath" ||
16607     test no = "$enable_shared"; then
16608  # Fast installation is not necessary
16609  enable_fast_install=needless
16610fi
16611
16612
16613
16614
16615
16616
16617
16618  fi # test -n "$compiler"
16619
16620  CC=$lt_save_CC
16621  CFLAGS=$lt_save_CFLAGS
16622  LDCXX=$LD
16623  LD=$lt_save_LD
16624  GCC=$lt_save_GCC
16625  with_gnu_ld=$lt_save_with_gnu_ld
16626  lt_cv_path_LDCXX=$lt_cv_path_LD
16627  lt_cv_path_LD=$lt_save_path_LD
16628  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16629  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16630fi # test yes != "$_lt_caught_CXX_error"
16631
16632ac_ext=c
16633ac_cpp='$CPP $CPPFLAGS'
16634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16636ac_compiler_gnu=$ac_cv_c_compiler_gnu
16637
16638
16639
16640# Enable support for silent build rules
16641# Check whether --enable-silent-rules was given.
16642if test "${enable_silent_rules+set}" = set; then :
16643  enableval=$enable_silent_rules;
16644fi
16645
16646case $enable_silent_rules in # (((
16647  yes) AM_DEFAULT_VERBOSITY=0;;
16648   no) AM_DEFAULT_VERBOSITY=1;;
16649    *) AM_DEFAULT_VERBOSITY=1;;
16650esac
16651am_make=${MAKE-make}
16652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16653$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16654if ${am_cv_make_support_nested_variables+:} false; then :
16655  $as_echo_n "(cached) " >&6
16656else
16657  if $as_echo 'TRUE=$(BAR$(V))
16658BAR0=false
16659BAR1=true
16660V=1
16661am__doit:
16662	@$(TRUE)
16663.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16664  am_cv_make_support_nested_variables=yes
16665else
16666  am_cv_make_support_nested_variables=no
16667fi
16668fi
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16670$as_echo "$am_cv_make_support_nested_variables" >&6; }
16671if test $am_cv_make_support_nested_variables = yes; then
16672    AM_V='$(V)'
16673  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16674else
16675  AM_V=$AM_DEFAULT_VERBOSITY
16676  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16677fi
16678AM_BACKSLASH='\'
16679
16680
16681tiff_libs_private=
16682
16683
16684case "${host_os}" in
16685    cygwin* | mingw32* | beos* | darwin*)
16686        ;;
16687    *)
16688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16689$as_echo_n "checking for sin in -lm... " >&6; }
16690if ${ac_cv_lib_m_sin+:} false; then :
16691  $as_echo_n "(cached) " >&6
16692else
16693  ac_check_lib_save_LIBS=$LIBS
16694LIBS="-lm  $LIBS"
16695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696/* end confdefs.h.  */
16697
16698/* Override any GCC internal prototype to avoid an error.
16699   Use char because int might match the return type of a GCC
16700   builtin and then its argument prototype would still apply.  */
16701#ifdef __cplusplus
16702extern "C"
16703#endif
16704char sin ();
16705int
16706main ()
16707{
16708return sin ();
16709  ;
16710  return 0;
16711}
16712_ACEOF
16713if ac_fn_c_try_link "$LINENO"; then :
16714  ac_cv_lib_m_sin=yes
16715else
16716  ac_cv_lib_m_sin=no
16717fi
16718rm -f core conftest.err conftest.$ac_objext \
16719    conftest$ac_exeext conftest.$ac_ext
16720LIBS=$ac_check_lib_save_LIBS
16721fi
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16723$as_echo "$ac_cv_lib_m_sin" >&6; }
16724if test "x$ac_cv_lib_m_sin" = xyes; then :
16725  libm_lib=yes
16726else
16727  libm_lib=no
16728fi
16729
16730	if test "x$libm_lib" = "xyes" ; then
16731	  LIBS="-lm $LIBS"
16732	  tiff_libs_private="-lm ${tiff_libs_private}"
16733	fi
16734        ;;
16735esac
16736
16737for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16738do :
16739  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16742  cat >>confdefs.h <<_ACEOF
16743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16744_ACEOF
16745
16746fi
16747
16748done
16749
16750
16751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16752$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16753if ${ac_cv_c_const+:} false; then :
16754  $as_echo_n "(cached) " >&6
16755else
16756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758
16759int
16760main ()
16761{
16762
16763#ifndef __cplusplus
16764  /* Ultrix mips cc rejects this sort of thing.  */
16765  typedef int charset[2];
16766  const charset cs = { 0, 0 };
16767  /* SunOS 4.1.1 cc rejects this.  */
16768  char const *const *pcpcc;
16769  char **ppc;
16770  /* NEC SVR4.0.2 mips cc rejects this.  */
16771  struct point {int x, y;};
16772  static struct point const zero = {0,0};
16773  /* AIX XL C 1.02.0.0 rejects this.
16774     It does not let you subtract one const X* pointer from another in
16775     an arm of an if-expression whose if-part is not a constant
16776     expression */
16777  const char *g = "string";
16778  pcpcc = &g + (g ? g-g : 0);
16779  /* HPUX 7.0 cc rejects these. */
16780  ++pcpcc;
16781  ppc = (char**) pcpcc;
16782  pcpcc = (char const *const *) ppc;
16783  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16784    char tx;
16785    char *t = &tx;
16786    char const *s = 0 ? (char *) 0 : (char const *) 0;
16787
16788    *t++ = 0;
16789    if (s) return 0;
16790  }
16791  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16792    int x[] = {25, 17};
16793    const int *foo = &x[0];
16794    ++foo;
16795  }
16796  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16797    typedef const int *iptr;
16798    iptr p = 0;
16799    ++p;
16800  }
16801  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16802       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16803    struct s { int j; const int *ap[3]; } bx;
16804    struct s *b = &bx; b->j = 5;
16805  }
16806  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16807    const int foo = 10;
16808    if (!foo) return 0;
16809  }
16810  return !cs[0] && !zero.x;
16811#endif
16812
16813  ;
16814  return 0;
16815}
16816_ACEOF
16817if ac_fn_c_try_compile "$LINENO"; then :
16818  ac_cv_c_const=yes
16819else
16820  ac_cv_c_const=no
16821fi
16822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823fi
16824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16825$as_echo "$ac_cv_c_const" >&6; }
16826if test $ac_cv_c_const = no; then
16827
16828$as_echo "#define const /**/" >>confdefs.h
16829
16830fi
16831
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16833$as_echo_n "checking for inline... " >&6; }
16834if ${ac_cv_c_inline+:} false; then :
16835  $as_echo_n "(cached) " >&6
16836else
16837  ac_cv_c_inline=no
16838for ac_kw in inline __inline__ __inline; do
16839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840/* end confdefs.h.  */
16841#ifndef __cplusplus
16842typedef int foo_t;
16843static $ac_kw foo_t static_foo () {return 0; }
16844$ac_kw foo_t foo () {return 0; }
16845#endif
16846
16847_ACEOF
16848if ac_fn_c_try_compile "$LINENO"; then :
16849  ac_cv_c_inline=$ac_kw
16850fi
16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852  test "$ac_cv_c_inline" != no && break
16853done
16854
16855fi
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16857$as_echo "$ac_cv_c_inline" >&6; }
16858
16859case $ac_cv_c_inline in
16860  inline | yes) ;;
16861  *)
16862    case $ac_cv_c_inline in
16863      no) ac_val=;;
16864      *) ac_val=$ac_cv_c_inline;;
16865    esac
16866    cat >>confdefs.h <<_ACEOF
16867#ifndef __cplusplus
16868#define inline $ac_val
16869#endif
16870_ACEOF
16871    ;;
16872esac
16873
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16875$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16876if ${ac_cv_c_bigendian+:} false; then :
16877  $as_echo_n "(cached) " >&6
16878else
16879  ac_cv_c_bigendian=unknown
16880    # See if we're dealing with a universal compiler.
16881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882/* end confdefs.h.  */
16883#ifndef __APPLE_CC__
16884	       not a universal capable compiler
16885	     #endif
16886	     typedef int dummy;
16887
16888_ACEOF
16889if ac_fn_c_try_compile "$LINENO"; then :
16890
16891	# Check for potential -arch flags.  It is not universal unless
16892	# there are at least two -arch flags with different values.
16893	ac_arch=
16894	ac_prev=
16895	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16896	 if test -n "$ac_prev"; then
16897	   case $ac_word in
16898	     i?86 | x86_64 | ppc | ppc64)
16899	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16900		 ac_arch=$ac_word
16901	       else
16902		 ac_cv_c_bigendian=universal
16903		 break
16904	       fi
16905	       ;;
16906	   esac
16907	   ac_prev=
16908	 elif test "x$ac_word" = "x-arch"; then
16909	   ac_prev=arch
16910	 fi
16911       done
16912fi
16913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914    if test $ac_cv_c_bigendian = unknown; then
16915      # See if sys/param.h defines the BYTE_ORDER macro.
16916      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917/* end confdefs.h.  */
16918#include <sys/types.h>
16919	     #include <sys/param.h>
16920
16921int
16922main ()
16923{
16924#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16925		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16926		     && LITTLE_ENDIAN)
16927	      bogus endian macros
16928	     #endif
16929
16930  ;
16931  return 0;
16932}
16933_ACEOF
16934if ac_fn_c_try_compile "$LINENO"; then :
16935  # It does; now see whether it defined to BIG_ENDIAN or not.
16936	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h.  */
16938#include <sys/types.h>
16939		#include <sys/param.h>
16940
16941int
16942main ()
16943{
16944#if BYTE_ORDER != BIG_ENDIAN
16945		 not big endian
16946		#endif
16947
16948  ;
16949  return 0;
16950}
16951_ACEOF
16952if ac_fn_c_try_compile "$LINENO"; then :
16953  ac_cv_c_bigendian=yes
16954else
16955  ac_cv_c_bigendian=no
16956fi
16957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958fi
16959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960    fi
16961    if test $ac_cv_c_bigendian = unknown; then
16962      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964/* end confdefs.h.  */
16965#include <limits.h>
16966
16967int
16968main ()
16969{
16970#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16971	      bogus endian macros
16972	     #endif
16973
16974  ;
16975  return 0;
16976}
16977_ACEOF
16978if ac_fn_c_try_compile "$LINENO"; then :
16979  # It does; now see whether it defined to _BIG_ENDIAN or not.
16980	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981/* end confdefs.h.  */
16982#include <limits.h>
16983
16984int
16985main ()
16986{
16987#ifndef _BIG_ENDIAN
16988		 not big endian
16989		#endif
16990
16991  ;
16992  return 0;
16993}
16994_ACEOF
16995if ac_fn_c_try_compile "$LINENO"; then :
16996  ac_cv_c_bigendian=yes
16997else
16998  ac_cv_c_bigendian=no
16999fi
17000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001fi
17002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003    fi
17004    if test $ac_cv_c_bigendian = unknown; then
17005      # Compile a test program.
17006      if test "$cross_compiling" = yes; then :
17007  # Try to guess by grepping values from an object file.
17008	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009/* end confdefs.h.  */
17010short int ascii_mm[] =
17011		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17012		short int ascii_ii[] =
17013		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17014		int use_ascii (int i) {
17015		  return ascii_mm[i] + ascii_ii[i];
17016		}
17017		short int ebcdic_ii[] =
17018		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17019		short int ebcdic_mm[] =
17020		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17021		int use_ebcdic (int i) {
17022		  return ebcdic_mm[i] + ebcdic_ii[i];
17023		}
17024		extern int foo;
17025
17026int
17027main ()
17028{
17029return use_ascii (foo) == use_ebcdic (foo);
17030  ;
17031  return 0;
17032}
17033_ACEOF
17034if ac_fn_c_try_compile "$LINENO"; then :
17035  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17036	      ac_cv_c_bigendian=yes
17037	    fi
17038	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17039	      if test "$ac_cv_c_bigendian" = unknown; then
17040		ac_cv_c_bigendian=no
17041	      else
17042		# finding both strings is unlikely to happen, but who knows?
17043		ac_cv_c_bigendian=unknown
17044	      fi
17045	    fi
17046fi
17047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048else
17049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h.  */
17051$ac_includes_default
17052int
17053main ()
17054{
17055
17056	     /* Are we little or big endian?  From Harbison&Steele.  */
17057	     union
17058	     {
17059	       long int l;
17060	       char c[sizeof (long int)];
17061	     } u;
17062	     u.l = 1;
17063	     return u.c[sizeof (long int) - 1] == 1;
17064
17065  ;
17066  return 0;
17067}
17068_ACEOF
17069if ac_fn_c_try_run "$LINENO"; then :
17070  ac_cv_c_bigendian=no
17071else
17072  ac_cv_c_bigendian=yes
17073fi
17074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17075  conftest.$ac_objext conftest.beam conftest.$ac_ext
17076fi
17077
17078    fi
17079fi
17080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17081$as_echo "$ac_cv_c_bigendian" >&6; }
17082 case $ac_cv_c_bigendian in #(
17083   yes)
17084     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17085;; #(
17086   no)
17087      ;; #(
17088   universal)
17089
17090$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17091
17092     ;; #(
17093   *)
17094     as_fn_error $? "unknown endianness
17095 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17096 esac
17097
17098ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17099if test "x$ac_cv_type_off_t" = xyes; then :
17100
17101else
17102
17103cat >>confdefs.h <<_ACEOF
17104#define off_t long int
17105_ACEOF
17106
17107fi
17108
17109ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17110if test "x$ac_cv_type_size_t" = xyes; then :
17111
17112else
17113
17114cat >>confdefs.h <<_ACEOF
17115#define size_t unsigned int
17116_ACEOF
17117
17118fi
17119
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17121$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17122if ${ac_cv_header_time+:} false; then :
17123  $as_echo_n "(cached) " >&6
17124else
17125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126/* end confdefs.h.  */
17127#include <sys/types.h>
17128#include <sys/time.h>
17129#include <time.h>
17130
17131int
17132main ()
17133{
17134if ((struct tm *) 0)
17135return 0;
17136  ;
17137  return 0;
17138}
17139_ACEOF
17140if ac_fn_c_try_compile "$LINENO"; then :
17141  ac_cv_header_time=yes
17142else
17143  ac_cv_header_time=no
17144fi
17145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146fi
17147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17148$as_echo "$ac_cv_header_time" >&6; }
17149if test $ac_cv_header_time = yes; then
17150
17151$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17152
17153fi
17154
17155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17156$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17157if ${ac_cv_struct_tm+:} false; then :
17158  $as_echo_n "(cached) " >&6
17159else
17160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161/* end confdefs.h.  */
17162#include <sys/types.h>
17163#include <time.h>
17164
17165int
17166main ()
17167{
17168struct tm tm;
17169				     int *p = &tm.tm_sec;
17170				     return !p;
17171  ;
17172  return 0;
17173}
17174_ACEOF
17175if ac_fn_c_try_compile "$LINENO"; then :
17176  ac_cv_struct_tm=time.h
17177else
17178  ac_cv_struct_tm=sys/time.h
17179fi
17180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181fi
17182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17183$as_echo "$ac_cv_struct_tm" >&6; }
17184if test $ac_cv_struct_tm = sys/time.h; then
17185
17186$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17187
17188fi
17189
17190
17191
17192# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
17193# The cast to long int works around a bug in the HP C Compiler
17194# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17195# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17196# This bug is HP SR number 8606223364.
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
17198$as_echo_n "checking size of signed short... " >&6; }
17199if ${ac_cv_sizeof_signed_short+:} false; then :
17200  $as_echo_n "(cached) " >&6
17201else
17202  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
17203
17204else
17205  if test "$ac_cv_type_signed_short" = yes; then
17206     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17208as_fn_error 77 "cannot compute sizeof (signed short)
17209See \`config.log' for more details" "$LINENO" 5; }
17210   else
17211     ac_cv_sizeof_signed_short=0
17212   fi
17213fi
17214
17215fi
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
17217$as_echo "$ac_cv_sizeof_signed_short" >&6; }
17218
17219
17220
17221cat >>confdefs.h <<_ACEOF
17222#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
17223_ACEOF
17224
17225
17226
17227# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
17228# The cast to long int works around a bug in the HP C Compiler
17229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17231# This bug is HP SR number 8606223364.
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
17233$as_echo_n "checking size of unsigned short... " >&6; }
17234if ${ac_cv_sizeof_unsigned_short+:} false; then :
17235  $as_echo_n "(cached) " >&6
17236else
17237  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
17238
17239else
17240  if test "$ac_cv_type_unsigned_short" = yes; then
17241     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17243as_fn_error 77 "cannot compute sizeof (unsigned short)
17244See \`config.log' for more details" "$LINENO" 5; }
17245   else
17246     ac_cv_sizeof_unsigned_short=0
17247   fi
17248fi
17249
17250fi
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
17252$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
17253
17254
17255
17256cat >>confdefs.h <<_ACEOF
17257#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
17258_ACEOF
17259
17260
17261
17262# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
17263# The cast to long int works around a bug in the HP C Compiler
17264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17266# This bug is HP SR number 8606223364.
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
17268$as_echo_n "checking size of signed int... " >&6; }
17269if ${ac_cv_sizeof_signed_int+:} false; then :
17270  $as_echo_n "(cached) " >&6
17271else
17272  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
17273
17274else
17275  if test "$ac_cv_type_signed_int" = yes; then
17276     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17278as_fn_error 77 "cannot compute sizeof (signed int)
17279See \`config.log' for more details" "$LINENO" 5; }
17280   else
17281     ac_cv_sizeof_signed_int=0
17282   fi
17283fi
17284
17285fi
17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
17287$as_echo "$ac_cv_sizeof_signed_int" >&6; }
17288
17289
17290
17291cat >>confdefs.h <<_ACEOF
17292#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
17293_ACEOF
17294
17295
17296
17297# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
17298# The cast to long int works around a bug in the HP C Compiler
17299# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17300# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17301# This bug is HP SR number 8606223364.
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17303$as_echo_n "checking size of unsigned int... " >&6; }
17304if ${ac_cv_sizeof_unsigned_int+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17308
17309else
17310  if test "$ac_cv_type_unsigned_int" = yes; then
17311     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17313as_fn_error 77 "cannot compute sizeof (unsigned int)
17314See \`config.log' for more details" "$LINENO" 5; }
17315   else
17316     ac_cv_sizeof_unsigned_int=0
17317   fi
17318fi
17319
17320fi
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17322$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17323
17324
17325
17326cat >>confdefs.h <<_ACEOF
17327#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17328_ACEOF
17329
17330
17331
17332# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
17333# The cast to long int works around a bug in the HP C Compiler
17334# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17335# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17336# This bug is HP SR number 8606223364.
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
17338$as_echo_n "checking size of signed long... " >&6; }
17339if ${ac_cv_sizeof_signed_long+:} false; then :
17340  $as_echo_n "(cached) " >&6
17341else
17342  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
17343
17344else
17345  if test "$ac_cv_type_signed_long" = yes; then
17346     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17348as_fn_error 77 "cannot compute sizeof (signed long)
17349See \`config.log' for more details" "$LINENO" 5; }
17350   else
17351     ac_cv_sizeof_signed_long=0
17352   fi
17353fi
17354
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
17357$as_echo "$ac_cv_sizeof_signed_long" >&6; }
17358
17359
17360
17361cat >>confdefs.h <<_ACEOF
17362#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
17363_ACEOF
17364
17365
17366
17367# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
17368# The cast to long int works around a bug in the HP C Compiler
17369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17371# This bug is HP SR number 8606223364.
17372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17373$as_echo_n "checking size of unsigned long... " >&6; }
17374if ${ac_cv_sizeof_unsigned_long+:} false; then :
17375  $as_echo_n "(cached) " >&6
17376else
17377  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
17378
17379else
17380  if test "$ac_cv_type_unsigned_long" = yes; then
17381     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17383as_fn_error 77 "cannot compute sizeof (unsigned long)
17384See \`config.log' for more details" "$LINENO" 5; }
17385   else
17386     ac_cv_sizeof_unsigned_long=0
17387   fi
17388fi
17389
17390fi
17391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17392$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17393
17394
17395
17396cat >>confdefs.h <<_ACEOF
17397#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17398_ACEOF
17399
17400
17401
17402# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
17403# If 'long long' is not supported then the value defined is zero.
17404# The cast to long int works around a bug in the HP C Compiler
17405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17407# This bug is HP SR number 8606223364.
17408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
17409$as_echo_n "checking size of signed long long... " >&6; }
17410if ${ac_cv_sizeof_signed_long_long+:} false; then :
17411  $as_echo_n "(cached) " >&6
17412else
17413  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
17414
17415else
17416  if test "$ac_cv_type_signed_long_long" = yes; then
17417     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17419as_fn_error 77 "cannot compute sizeof (signed long long)
17420See \`config.log' for more details" "$LINENO" 5; }
17421   else
17422     ac_cv_sizeof_signed_long_long=0
17423   fi
17424fi
17425
17426fi
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
17428$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
17429
17430
17431
17432cat >>confdefs.h <<_ACEOF
17433#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
17434_ACEOF
17435
17436
17437
17438# Obtain size of a 'unsigned long long' and define as
17439# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
17440# supported then the value defined is zero.
17441# The cast to long int works around a bug in the HP C Compiler
17442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17444# This bug is HP SR number 8606223364.
17445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
17446$as_echo_n "checking size of unsigned long long... " >&6; }
17447if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
17448  $as_echo_n "(cached) " >&6
17449else
17450  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
17451
17452else
17453  if test "$ac_cv_type_unsigned_long_long" = yes; then
17454     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17456as_fn_error 77 "cannot compute sizeof (unsigned long long)
17457See \`config.log' for more details" "$LINENO" 5; }
17458   else
17459     ac_cv_sizeof_unsigned_long_long=0
17460   fi
17461fi
17462
17463fi
17464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
17465$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
17466
17467
17468
17469cat >>confdefs.h <<_ACEOF
17470#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17471_ACEOF
17472
17473
17474
17475# Obtain the size of an 'unsigned char *' and define as
17476# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
17477# ac_cv_sizeof_unsigned_char_p.
17478# The cast to long int works around a bug in the HP C Compiler
17479# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17480# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17481# This bug is HP SR number 8606223364.
17482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
17483$as_echo_n "checking size of unsigned char *... " >&6; }
17484if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
17485  $as_echo_n "(cached) " >&6
17486else
17487  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
17488
17489else
17490  if test "$ac_cv_type_unsigned_char_p" = yes; then
17491     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17493as_fn_error 77 "cannot compute sizeof (unsigned char *)
17494See \`config.log' for more details" "$LINENO" 5; }
17495   else
17496     ac_cv_sizeof_unsigned_char_p=0
17497   fi
17498fi
17499
17500fi
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
17502$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
17503
17504
17505
17506cat >>confdefs.h <<_ACEOF
17507#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
17508_ACEOF
17509
17510
17511
17512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
17513$as_echo_n "checking for signed 8-bit type... " >&6; }
17514INT8_T='signed char'
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
17516$as_echo "$INT8_T" >&6; }
17517
17518cat >>confdefs.h <<_ACEOF
17519#define TIFF_INT8_T $INT8_T
17520_ACEOF
17521
17522
17523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
17524$as_echo_n "checking for unsigned 8-bit type... " >&6; }
17525UINT8_T='unsigned char'
17526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
17527$as_echo "$UINT8_T" >&6; }
17528
17529cat >>confdefs.h <<_ACEOF
17530#define TIFF_UINT8_T $UINT8_T
17531_ACEOF
17532
17533
17534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
17535$as_echo_n "checking for signed 16-bit type... " >&6; }
17536INT16_T='signed short'
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
17538$as_echo "$INT16_T" >&6; }
17539
17540cat >>confdefs.h <<_ACEOF
17541#define TIFF_INT16_T $INT16_T
17542_ACEOF
17543
17544
17545
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
17547$as_echo_n "checking for unsigned 16-bit type... " >&6; }
17548UINT16_T='unsigned short'
17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
17550$as_echo "$UINT16_T" >&6; }
17551
17552cat >>confdefs.h <<_ACEOF
17553#define TIFF_UINT16_T $UINT16_T
17554_ACEOF
17555
17556
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
17558$as_echo_n "checking for signed 32-bit type... " >&6; }
17559INT32_T='none'
17560INT32_FORMAT='none'
17561if test $ac_cv_sizeof_signed_int -eq 4
17562then
17563  INT32_T='signed int'
17564  INT32_FORMAT='"%d"'
17565elif test $ac_cv_sizeof_signed_long -eq 4
17566then
17567  INT32_T='signed long'
17568  INT32_FORMAT='"%ld"'
17569fi
17570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
17571$as_echo "$INT32_T" >&6; }
17572
17573cat >>confdefs.h <<_ACEOF
17574#define TIFF_INT32_T $INT32_T
17575_ACEOF
17576
17577
17578cat >>confdefs.h <<_ACEOF
17579#define TIFF_INT32_FORMAT $INT32_FORMAT
17580_ACEOF
17581
17582
17583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
17584$as_echo_n "checking for unsigned 32-bit type... " >&6; }
17585UINT32_T='none'
17586UINT32_FORMAT='none'
17587if test $ac_cv_sizeof_unsigned_int -eq 4
17588then
17589  UINT32_T='unsigned int'
17590  UINT32_FORMAT='"%u"'
17591elif test $ac_cv_sizeof_unsigned_long -eq 4
17592then
17593  UINT32_T='unsigned long'
17594  UINT32_FORMAT='"%lu"'
17595fi
17596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17597$as_echo "$UINT32_T" >&6; }
17598
17599cat >>confdefs.h <<_ACEOF
17600#define TIFF_UINT32_T $UINT32_T
17601_ACEOF
17602
17603
17604cat >>confdefs.h <<_ACEOF
17605#define TIFF_UINT32_FORMAT $UINT32_FORMAT
17606_ACEOF
17607
17608
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17610$as_echo_n "checking for signed 64-bit type... " >&6; }
17611INT64_T='none'
17612INT64_FORMAT='none'
17613if test $ac_cv_sizeof_signed_long -eq 8
17614then
17615  INT64_T='signed long'
17616  INT64_FORMAT='"%ld"'
17617elif test $ac_cv_sizeof_signed_long_long -eq 8
17618then
17619  INT64_T='signed long long'
17620  case "${host_os}" in
17621    mingw32*)
17622      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17623      INT64_FORMAT='"%I64d"'
17624      ;;
17625    *)
17626      INT64_FORMAT='"%lld"'
17627      ;;
17628  esac
17629fi
17630
17631
17632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17633$as_echo "$INT64_T" >&6; }
17634
17635cat >>confdefs.h <<_ACEOF
17636#define TIFF_INT64_T $INT64_T
17637_ACEOF
17638
17639
17640cat >>confdefs.h <<_ACEOF
17641#define TIFF_INT64_FORMAT $INT64_FORMAT
17642_ACEOF
17643
17644
17645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17646$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17647UINT64_T='none'
17648UINT64_FORMAT='none'
17649if test $ac_cv_sizeof_unsigned_long -eq 8
17650then
17651  UINT64_T='unsigned long'
17652  UINT64_FORMAT='"%lu"'
17653elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17654then
17655  UINT64_T='unsigned long long'
17656  case "${host_os}" in
17657    mingw32*)
17658      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17659      UINT64_FORMAT='"%I64u"'
17660      ;;
17661    *)
17662      UINT64_FORMAT='"%llu"'
17663      ;;
17664  esac
17665fi
17666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17667$as_echo "$UINT64_T" >&6; }
17668
17669cat >>confdefs.h <<_ACEOF
17670#define TIFF_UINT64_T $UINT64_T
17671_ACEOF
17672
17673
17674cat >>confdefs.h <<_ACEOF
17675#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17676_ACEOF
17677
17678
17679# Determine TIFF equivalent of ssize_t
17680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17681$as_echo_n "checking for signed size type... " >&6; }
17682SSIZE_T='unknown'
17683SSIZE_FORMAT='unknown'
17684if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17685then
17686  SSIZE_T='signed long'
17687  SSIZE_FORMAT='"%ld"'
17688elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17689then
17690  SSIZE_T='signed long long'
17691  SSIZE_FORMAT='"%lld"'
17692fi
17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17694$as_echo "$SSIZE_T" >&6; }
17695
17696cat >>confdefs.h <<_ACEOF
17697#define TIFF_SSIZE_T $SSIZE_T
17698_ACEOF
17699
17700
17701cat >>confdefs.h <<_ACEOF
17702#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
17703_ACEOF
17704
17705
17706# Determine the type to use for the difference between two pointers.
17707# We will default to the POSIX ptrdiff_t if it is available, but will
17708# be prepared for the case when it is not.
17709PTRDIFF_T='unknown'
17710PTRDIFF_FORMAT='"%ld"'
17711ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17712if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17713  PTRDIFF_T=ptrdiff_t
17714fi
17715
17716if test $PTRDIFF_T = unknown
17717then
17718  PTRDIFF_T=$SSIZE_T
17719  PTRDIFF_FORMAT=$SSIZE_FORMAT
17720fi
17721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17722$as_echo_n "checking for pointer difference type... " >&6; }
17723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17724$as_echo "$PTRDIFF_T" >&6; }
17725
17726cat >>confdefs.h <<_ACEOF
17727#define TIFF_PTRDIFF_T $PTRDIFF_T
17728_ACEOF
17729
17730
17731cat >>confdefs.h <<_ACEOF
17732#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17733_ACEOF
17734
17735
17736ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17737#if HAVE_INTTYPES_H
17738# include <inttypes.h>
17739#endif
17740
17741"
17742if test "x$ac_cv_type_int8" = xyes; then :
17743
17744cat >>confdefs.h <<_ACEOF
17745#define HAVE_INT8 1
17746_ACEOF
17747
17748
17749fi
17750ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17751#if HAVE_INTTYPES_H
17752# include <inttypes.h>
17753#endif
17754
17755"
17756if test "x$ac_cv_type_int16" = xyes; then :
17757
17758cat >>confdefs.h <<_ACEOF
17759#define HAVE_INT16 1
17760_ACEOF
17761
17762
17763fi
17764ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17765#if HAVE_INTTYPES_H
17766# include <inttypes.h>
17767#endif
17768
17769"
17770if test "x$ac_cv_type_int32" = xyes; then :
17771
17772cat >>confdefs.h <<_ACEOF
17773#define HAVE_INT32 1
17774_ACEOF
17775
17776
17777fi
17778
17779
17780for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17781do :
17782  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17783ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17784if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17785  cat >>confdefs.h <<_ACEOF
17786#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17787_ACEOF
17788
17789fi
17790done
17791
17792
17793ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17794if test "x$ac_cv_func_getopt" = xyes; then :
17795  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17796
17797else
17798  case " $LIBOBJS " in
17799  *" getopt.$ac_objext "* ) ;;
17800  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17801 ;;
17802esac
17803
17804fi
17805
17806
17807ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17808if test "x$ac_cv_func_strcasecmp" = xyes; then :
17809  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17810
17811else
17812  case " $LIBOBJS " in
17813  *" strcasecmp.$ac_objext "* ) ;;
17814  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17815 ;;
17816esac
17817
17818fi
17819
17820
17821ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17822if test "x$ac_cv_func_strtoul" = xyes; then :
17823  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17824
17825else
17826  case " $LIBOBJS " in
17827  *" strtoul.$ac_objext "* ) ;;
17828  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17829 ;;
17830esac
17831
17832fi
17833
17834
17835ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17836if test "x$ac_cv_func_strtoull" = xyes; then :
17837  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17838
17839else
17840  case " $LIBOBJS " in
17841  *" strtoull.$ac_objext "* ) ;;
17842  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17843 ;;
17844esac
17845
17846fi
17847
17848
17849ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17850if test "x$ac_cv_func_lfind" = xyes; then :
17851  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17852
17853else
17854  case " $LIBOBJS " in
17855  *" lfind.$ac_objext "* ) ;;
17856  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17857 ;;
17858esac
17859
17860fi
17861
17862
17863
17864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
17865$as_echo_n "checking native cpu bit order... " >&6; }
17866case "$host_cpu" in
17867    i*86*|x86_64*)
17868        HOST_FILLORDER=FILLORDER_LSB2MSB
17869	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
17870$as_echo "lsb2msb" >&6; }
17871	;;
17872    *)
17873	HOST_FILLORDER=FILLORDER_MSB2LSB
17874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
17875$as_echo "msb2lsb" >&6; }
17876        ;;
17877esac
17878
17879cat >>confdefs.h <<_ACEOF
17880#define HOST_FILLORDER $HOST_FILLORDER
17881_ACEOF
17882
17883
17884if test "$ac_cv_c_bigendian" = yes ; then
17885    HOST_BIGENDIAN=1
17886else
17887    HOST_BIGENDIAN=0
17888fi
17889
17890cat >>confdefs.h <<_ACEOF
17891#define HOST_BIGENDIAN $HOST_BIGENDIAN
17892_ACEOF
17893
17894
17895#_POSIX_C_SOURCE=2
17896#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17897
17898HAVE_IEEEFP=1
17899
17900cat >>confdefs.h <<_ACEOF
17901#define HAVE_IEEEFP $HAVE_IEEEFP
17902_ACEOF
17903
17904
17905
17906# Check whether --enable-rpath was given.
17907if test "${enable_rpath+set}" = set; then :
17908  enableval=$enable_rpath; HAVE_RPATH=$enableval
17909else
17910  HAVE_RPATH=no
17911fi
17912
17913 if test "$HAVE_RPATH" = "yes"; then
17914  HAVE_RPATH_TRUE=
17915  HAVE_RPATH_FALSE='#'
17916else
17917  HAVE_RPATH_TRUE='#'
17918  HAVE_RPATH_FALSE=
17919fi
17920
17921
17922
17923# Check whether --enable-largefile was given.
17924if test "${enable_largefile+set}" = set; then :
17925  enableval=$enable_largefile;
17926fi
17927
17928if test "$enable_largefile" != no; then
17929
17930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17931$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17932if ${ac_cv_sys_largefile_CC+:} false; then :
17933  $as_echo_n "(cached) " >&6
17934else
17935  ac_cv_sys_largefile_CC=no
17936     if test "$GCC" != yes; then
17937       ac_save_CC=$CC
17938       while :; do
17939	 # IRIX 6.2 and later do not support large files by default,
17940	 # so use the C compiler's -n32 option if that helps.
17941	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943#include <sys/types.h>
17944 /* Check that off_t can represent 2**63 - 1 correctly.
17945    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17946    since some C++ compilers masquerading as C compilers
17947    incorrectly reject 9223372036854775807.  */
17948#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17949  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17950		       && LARGE_OFF_T % 2147483647 == 1)
17951		      ? 1 : -1];
17952int
17953main ()
17954{
17955
17956  ;
17957  return 0;
17958}
17959_ACEOF
17960	 if ac_fn_c_try_compile "$LINENO"; then :
17961  break
17962fi
17963rm -f core conftest.err conftest.$ac_objext
17964	 CC="$CC -n32"
17965	 if ac_fn_c_try_compile "$LINENO"; then :
17966  ac_cv_sys_largefile_CC=' -n32'; break
17967fi
17968rm -f core conftest.err conftest.$ac_objext
17969	 break
17970       done
17971       CC=$ac_save_CC
17972       rm -f conftest.$ac_ext
17973    fi
17974fi
17975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17976$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17977  if test "$ac_cv_sys_largefile_CC" != no; then
17978    CC=$CC$ac_cv_sys_largefile_CC
17979  fi
17980
17981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17982$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17983if ${ac_cv_sys_file_offset_bits+:} false; then :
17984  $as_echo_n "(cached) " >&6
17985else
17986  while :; do
17987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988/* end confdefs.h.  */
17989#include <sys/types.h>
17990 /* Check that off_t can represent 2**63 - 1 correctly.
17991    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17992    since some C++ compilers masquerading as C compilers
17993    incorrectly reject 9223372036854775807.  */
17994#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17995  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17996		       && LARGE_OFF_T % 2147483647 == 1)
17997		      ? 1 : -1];
17998int
17999main ()
18000{
18001
18002  ;
18003  return 0;
18004}
18005_ACEOF
18006if ac_fn_c_try_compile "$LINENO"; then :
18007  ac_cv_sys_file_offset_bits=no; break
18008fi
18009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011/* end confdefs.h.  */
18012#define _FILE_OFFSET_BITS 64
18013#include <sys/types.h>
18014 /* Check that off_t can represent 2**63 - 1 correctly.
18015    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18016    since some C++ compilers masquerading as C compilers
18017    incorrectly reject 9223372036854775807.  */
18018#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18019  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18020		       && LARGE_OFF_T % 2147483647 == 1)
18021		      ? 1 : -1];
18022int
18023main ()
18024{
18025
18026  ;
18027  return 0;
18028}
18029_ACEOF
18030if ac_fn_c_try_compile "$LINENO"; then :
18031  ac_cv_sys_file_offset_bits=64; break
18032fi
18033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034  ac_cv_sys_file_offset_bits=unknown
18035  break
18036done
18037fi
18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18039$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18040case $ac_cv_sys_file_offset_bits in #(
18041  no | unknown) ;;
18042  *)
18043cat >>confdefs.h <<_ACEOF
18044#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18045_ACEOF
18046;;
18047esac
18048rm -rf conftest*
18049  if test $ac_cv_sys_file_offset_bits = unknown; then
18050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18051$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18052if ${ac_cv_sys_large_files+:} false; then :
18053  $as_echo_n "(cached) " >&6
18054else
18055  while :; do
18056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057/* end confdefs.h.  */
18058#include <sys/types.h>
18059 /* Check that off_t can represent 2**63 - 1 correctly.
18060    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18061    since some C++ compilers masquerading as C compilers
18062    incorrectly reject 9223372036854775807.  */
18063#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18064  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18065		       && LARGE_OFF_T % 2147483647 == 1)
18066		      ? 1 : -1];
18067int
18068main ()
18069{
18070
18071  ;
18072  return 0;
18073}
18074_ACEOF
18075if ac_fn_c_try_compile "$LINENO"; then :
18076  ac_cv_sys_large_files=no; break
18077fi
18078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080/* end confdefs.h.  */
18081#define _LARGE_FILES 1
18082#include <sys/types.h>
18083 /* Check that off_t can represent 2**63 - 1 correctly.
18084    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18085    since some C++ compilers masquerading as C compilers
18086    incorrectly reject 9223372036854775807.  */
18087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18088  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18089		       && LARGE_OFF_T % 2147483647 == 1)
18090		      ? 1 : -1];
18091int
18092main ()
18093{
18094
18095  ;
18096  return 0;
18097}
18098_ACEOF
18099if ac_fn_c_try_compile "$LINENO"; then :
18100  ac_cv_sys_large_files=1; break
18101fi
18102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103  ac_cv_sys_large_files=unknown
18104  break
18105done
18106fi
18107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18108$as_echo "$ac_cv_sys_large_files" >&6; }
18109case $ac_cv_sys_large_files in #(
18110  no | unknown) ;;
18111  *)
18112cat >>confdefs.h <<_ACEOF
18113#define _LARGE_FILES $ac_cv_sys_large_files
18114_ACEOF
18115;;
18116esac
18117rm -rf conftest*
18118  fi
18119
18120
18121fi
18122
18123
18124
18125LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
18126
18127
18128# Check whether --with-docdir was given.
18129if test "${with_docdir+set}" = set; then :
18130  withval=$with_docdir;
18131fi
18132
18133if test "x$with_docdir" != "x" ; then
18134  LIBTIFF_DOCDIR=$with_docdir
18135fi
18136
18137
18138
18139
18140# Check whether --enable-ccitt was given.
18141if test "${enable_ccitt+set}" = set; then :
18142  enableval=$enable_ccitt; HAVE_CCITT=$enableval
18143else
18144  HAVE_CCITT=yes
18145fi
18146
18147
18148if test "$HAVE_CCITT" = "yes" ; then
18149
18150$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
18151
18152fi
18153
18154# Check whether --enable-packbits was given.
18155if test "${enable_packbits+set}" = set; then :
18156  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
18157else
18158  HAVE_PACKBITS=yes
18159fi
18160
18161
18162if test "$HAVE_PACKBITS" = "yes" ; then
18163
18164$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
18165
18166fi
18167
18168# Check whether --enable-lzw was given.
18169if test "${enable_lzw+set}" = set; then :
18170  enableval=$enable_lzw; HAVE_LZW=$enableval
18171else
18172  HAVE_LZW=yes
18173fi
18174
18175
18176if test "$HAVE_LZW" = "yes" ; then
18177
18178$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
18179
18180fi
18181
18182# Check whether --enable-thunder was given.
18183if test "${enable_thunder+set}" = set; then :
18184  enableval=$enable_thunder; HAVE_THUNDER=$enableval
18185else
18186  HAVE_THUNDER=yes
18187fi
18188
18189
18190if test "$HAVE_THUNDER" = "yes" ; then
18191
18192$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
18193
18194fi
18195
18196HAVE_NEXT=yes
18197
18198# Check whether --enable-next was given.
18199if test "${enable_next+set}" = set; then :
18200  enableval=$enable_next; HAVE_NEXT=$enableval
18201else
18202  HAVE_NEXT=yes
18203fi
18204
18205
18206if test "$HAVE_NEXT" = "yes" ; then
18207
18208$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
18209
18210fi
18211
18212# Check whether --enable-logluv was given.
18213if test "${enable_logluv+set}" = set; then :
18214  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
18215else
18216  HAVE_LOGLUV=yes
18217fi
18218
18219
18220if test "$HAVE_LOGLUV" = "yes" ; then
18221
18222$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
18223
18224fi
18225
18226
18227# Check whether --enable-mdi was given.
18228if test "${enable_mdi+set}" = set; then :
18229  enableval=$enable_mdi; HAVE_MDI=$enableval
18230else
18231  HAVE_MDI=yes
18232fi
18233
18234
18235if test "$HAVE_MDI" = "yes" ; then
18236
18237$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
18238
18239fi
18240
18241
18242HAVE_ZLIB=no
18243
18244# Check whether --enable-zlib was given.
18245if test "${enable_zlib+set}" = set; then :
18246  enableval=$enable_zlib;
18247fi
18248
18249
18250# Check whether --with-zlib-include-dir was given.
18251if test "${with_zlib_include_dir+set}" = set; then :
18252  withval=$with_zlib_include_dir;
18253fi
18254
18255
18256# Check whether --with-zlib-lib-dir was given.
18257if test "${with_zlib_lib_dir+set}" = set; then :
18258  withval=$with_zlib_lib_dir;
18259fi
18260
18261
18262if test "x$enable_zlib" != "xno" ; then
18263
18264  if test "x$with_zlib_lib_dir" != "x" ; then
18265    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
18266  fi
18267
18268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
18269$as_echo_n "checking for inflateEnd in -lz... " >&6; }
18270if ${ac_cv_lib_z_inflateEnd+:} false; then :
18271  $as_echo_n "(cached) " >&6
18272else
18273  ac_check_lib_save_LIBS=$LIBS
18274LIBS="-lz  $LIBS"
18275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276/* end confdefs.h.  */
18277
18278/* Override any GCC internal prototype to avoid an error.
18279   Use char because int might match the return type of a GCC
18280   builtin and then its argument prototype would still apply.  */
18281#ifdef __cplusplus
18282extern "C"
18283#endif
18284char inflateEnd ();
18285int
18286main ()
18287{
18288return inflateEnd ();
18289  ;
18290  return 0;
18291}
18292_ACEOF
18293if ac_fn_c_try_link "$LINENO"; then :
18294  ac_cv_lib_z_inflateEnd=yes
18295else
18296  ac_cv_lib_z_inflateEnd=no
18297fi
18298rm -f core conftest.err conftest.$ac_objext \
18299    conftest$ac_exeext conftest.$ac_ext
18300LIBS=$ac_check_lib_save_LIBS
18301fi
18302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
18303$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
18304if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
18305  zlib_lib=yes
18306else
18307  zlib_lib=no
18308fi
18309
18310  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
18311    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
18312  fi
18313
18314  if test "x$with_zlib_include_dir" != "x" ; then
18315    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
18316  fi
18317  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18318if test "x$ac_cv_header_zlib_h" = xyes; then :
18319  zlib_h=yes
18320else
18321  zlib_h=no
18322fi
18323
18324
18325  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
18326    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
18327  fi
18328
18329  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
18330    HAVE_ZLIB=yes
18331  fi
18332
18333fi
18334
18335if test "$HAVE_ZLIB" = "yes" ; then
18336
18337$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
18338
18339  LIBS="-lz $LIBS"
18340  tiff_libs_private="-lz ${tiff_libs_private}"
18341
18342  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
18343    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
18344  fi
18345
18346fi
18347
18348
18349# Check whether --enable-pixarlog was given.
18350if test "${enable_pixarlog+set}" = set; then :
18351  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
18352else
18353  HAVE_PIXARLOG=yes
18354fi
18355
18356
18357if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
18358
18359$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
18360
18361else
18362  HAVE_PIXARLOG=no
18363fi
18364
18365
18366HAVE_JPEG=no
18367
18368# Check whether --enable-jpeg was given.
18369if test "${enable_jpeg+set}" = set; then :
18370  enableval=$enable_jpeg;
18371fi
18372
18373
18374# Check whether --with-jpeg-include-dir was given.
18375if test "${with_jpeg_include_dir+set}" = set; then :
18376  withval=$with_jpeg_include_dir;
18377fi
18378
18379
18380# Check whether --with-jpeg-lib-dir was given.
18381if test "${with_jpeg_lib_dir+set}" = set; then :
18382  withval=$with_jpeg_lib_dir;
18383fi
18384
18385
18386if test "x$enable_jpeg" != "xno" ; then
18387
18388  if test "x$with_jpeg_lib_dir" != "x" ; then
18389    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
18390
18391  fi
18392
18393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
18394$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
18395if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
18396  $as_echo_n "(cached) " >&6
18397else
18398  ac_check_lib_save_LIBS=$LIBS
18399LIBS="-ljpeg  $LIBS"
18400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401/* end confdefs.h.  */
18402
18403/* Override any GCC internal prototype to avoid an error.
18404   Use char because int might match the return type of a GCC
18405   builtin and then its argument prototype would still apply.  */
18406#ifdef __cplusplus
18407extern "C"
18408#endif
18409char jpeg_read_scanlines ();
18410int
18411main ()
18412{
18413return jpeg_read_scanlines ();
18414  ;
18415  return 0;
18416}
18417_ACEOF
18418if ac_fn_c_try_link "$LINENO"; then :
18419  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
18420else
18421  ac_cv_lib_jpeg_jpeg_read_scanlines=no
18422fi
18423rm -f core conftest.err conftest.$ac_objext \
18424    conftest$ac_exeext conftest.$ac_ext
18425LIBS=$ac_check_lib_save_LIBS
18426fi
18427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
18428$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
18429if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
18430  jpeg_lib=yes
18431else
18432  jpeg_lib=no
18433fi
18434
18435  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
18436    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
18437  fi
18438
18439  if test "x$with_jpeg_include_dir" != "x" ; then
18440    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
18441  fi
18442  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18443if test "x$ac_cv_header_jpeglib_h" = xyes; then :
18444  jpeg_h=yes
18445else
18446  jpeg_h=no
18447fi
18448
18449
18450  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
18451    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
18452  fi
18453
18454  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
18455    HAVE_JPEG=yes
18456  fi
18457
18458fi
18459
18460if test "$HAVE_JPEG" = "yes" ; then
18461
18462$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
18463
18464  LIBS="-ljpeg $LIBS"
18465  tiff_libs_private="-ljpeg ${tiff_libs_private}"
18466
18467  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
18468    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
18469  fi
18470
18471fi
18472
18473
18474# Check whether --enable-old-jpeg was given.
18475if test "${enable_old_jpeg+set}" = set; then :
18476  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
18477else
18478  HAVE_OJPEG=yes
18479fi
18480
18481
18482if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
18483
18484$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
18485
18486else
18487  HAVE_OJPEG=no
18488fi
18489
18490
18491HAVE_JBIG=no
18492
18493# Check whether --enable-jbig was given.
18494if test "${enable_jbig+set}" = set; then :
18495  enableval=$enable_jbig;
18496fi
18497
18498
18499# Check whether --with-jbig-include-dir was given.
18500if test "${with_jbig_include_dir+set}" = set; then :
18501  withval=$with_jbig_include_dir;
18502fi
18503
18504
18505# Check whether --with-jbig-lib-dir was given.
18506if test "${with_jbig_lib_dir+set}" = set; then :
18507  withval=$with_jbig_lib_dir;
18508fi
18509
18510
18511if test "x$enable_jbig" != "xno" ; then
18512
18513  if test "x$with_jbig_lib_dir" != "x" ; then
18514    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
18515
18516  fi
18517
18518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
18519$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
18520if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
18521  $as_echo_n "(cached) " >&6
18522else
18523  ac_check_lib_save_LIBS=$LIBS
18524LIBS="-ljbig  $LIBS"
18525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526/* end confdefs.h.  */
18527
18528/* Override any GCC internal prototype to avoid an error.
18529   Use char because int might match the return type of a GCC
18530   builtin and then its argument prototype would still apply.  */
18531#ifdef __cplusplus
18532extern "C"
18533#endif
18534char jbg_dec_init ();
18535int
18536main ()
18537{
18538return jbg_dec_init ();
18539  ;
18540  return 0;
18541}
18542_ACEOF
18543if ac_fn_c_try_link "$LINENO"; then :
18544  ac_cv_lib_jbig_jbg_dec_init=yes
18545else
18546  ac_cv_lib_jbig_jbg_dec_init=no
18547fi
18548rm -f core conftest.err conftest.$ac_objext \
18549    conftest$ac_exeext conftest.$ac_ext
18550LIBS=$ac_check_lib_save_LIBS
18551fi
18552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
18553$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
18554if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
18555  jbig_lib=yes
18556else
18557  jbig_lib=no
18558fi
18559
18560  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
18561    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
18562  fi
18563
18564  if test "x$with_jbig_include_dir" != "x" ; then
18565    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
18566  fi
18567  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
18568if test "x$ac_cv_header_jbig_h" = xyes; then :
18569  jbig_h=yes
18570else
18571  jbig_h=no
18572fi
18573
18574
18575  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
18576    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
18577  fi
18578
18579  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
18580    HAVE_JBIG=yes
18581  fi
18582
18583fi
18584
18585if test "$HAVE_JBIG" = "yes" ; then
18586
18587$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
18588
18589  LIBS="-ljbig $LIBS"
18590  tiff_libs_private="-ljbig ${tiff_libs_private}"
18591
18592  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18593    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18594  fi
18595
18596  # Older versions of jbigkit lack jbg_newlen
18597  for ac_func in jbg_newlen
18598do :
18599  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18600if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18601  cat >>confdefs.h <<_ACEOF
18602#define HAVE_JBG_NEWLEN 1
18603_ACEOF
18604
18605fi
18606done
18607
18608
18609fi
18610
18611
18612HAVE_LZMA=no
18613
18614# Check whether --enable-lzma was given.
18615if test "${enable_lzma+set}" = set; then :
18616  enableval=$enable_lzma;
18617fi
18618
18619
18620# Check whether --with-lzma-include-dir was given.
18621if test "${with_lzma_include_dir+set}" = set; then :
18622  withval=$with_lzma_include_dir;
18623fi
18624
18625
18626# Check whether --with-lzma-lib-dir was given.
18627if test "${with_lzma_lib_dir+set}" = set; then :
18628  withval=$with_lzma_lib_dir;
18629fi
18630
18631
18632if test "x$enable_lzma" != "xno" ; then
18633
18634  if test "x$with_lzma_lib_dir" != "x" ; then
18635    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18636  fi
18637
18638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18639$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18640if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18641  $as_echo_n "(cached) " >&6
18642else
18643  ac_check_lib_save_LIBS=$LIBS
18644LIBS="-llzma  $LIBS"
18645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646/* end confdefs.h.  */
18647
18648/* Override any GCC internal prototype to avoid an error.
18649   Use char because int might match the return type of a GCC
18650   builtin and then its argument prototype would still apply.  */
18651#ifdef __cplusplus
18652extern "C"
18653#endif
18654char lzma_code ();
18655int
18656main ()
18657{
18658return lzma_code ();
18659  ;
18660  return 0;
18661}
18662_ACEOF
18663if ac_fn_c_try_link "$LINENO"; then :
18664  ac_cv_lib_lzma_lzma_code=yes
18665else
18666  ac_cv_lib_lzma_lzma_code=no
18667fi
18668rm -f core conftest.err conftest.$ac_objext \
18669    conftest$ac_exeext conftest.$ac_ext
18670LIBS=$ac_check_lib_save_LIBS
18671fi
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18673$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18674if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18675  lzma_lib=yes
18676else
18677  lzma_lib=no
18678fi
18679
18680  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18681    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18682  fi
18683
18684  if test "x$with_lzma_include_dir" != "x" ; then
18685    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18686  fi
18687  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18688if test "x$ac_cv_header_lzma_h" = xyes; then :
18689  lzma_h=yes
18690else
18691  lzma_h=no
18692fi
18693
18694
18695  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18696    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18697  fi
18698
18699  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18700    HAVE_LZMA=yes
18701  fi
18702
18703fi
18704
18705if test "$HAVE_LZMA" = "yes" ; then
18706
18707$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18708
18709  LIBS="-llzma $LIBS"
18710  tiff_libs_private="-llzma ${tiff_libs_private}"
18711
18712  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18713    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18714  fi
18715
18716fi
18717
18718
18719HAVE_JPEG12=no
18720
18721# Check whether --enable-jpeg12 was given.
18722if test "${enable_jpeg12+set}" = set; then :
18723  enableval=$enable_jpeg12;
18724fi
18725
18726
18727# Check whether --with-jpeg12-include-dir was given.
18728if test "${with_jpeg12_include_dir+set}" = set; then :
18729  withval=$with_jpeg12_include_dir;
18730fi
18731
18732
18733# Check whether --with-jpeg12-lib was given.
18734if test "${with_jpeg12_lib+set}" = set; then :
18735  withval=$with_jpeg12_lib;
18736fi
18737
18738
18739if test "x$enable_jpeg12" == "xyes" ; then
18740
18741  if test "x$with_jpeg12_lib" != "x" ; then
18742    LIBS="$with_jpeg12_lib $LIBS"
18743  fi
18744
18745  HAVE_JPEG12=yes
18746
18747
18748$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18749
18750  if test "x$with_jpeg12_include_dir" != "x" ; then
18751
18752cat >>confdefs.h <<_ACEOF
18753#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18754_ACEOF
18755
18756  fi
18757fi
18758
18759
18760
18761# Check whether --enable-cxx was given.
18762if test "${enable_cxx+set}" = set; then :
18763  enableval=$enable_cxx; HAVE_CXX=$enableval
18764else
18765  HAVE_CXX=yes
18766fi
18767
18768
18769if test "$HAVE_CXX" = "yes" ; then
18770
18771$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18772
18773else
18774  HAVE_CXX=no
18775fi
18776
18777 if test "$HAVE_CXX" = "yes"; then
18778  HAVE_CXX_TRUE=
18779  HAVE_CXX_FALSE='#'
18780else
18781  HAVE_CXX_TRUE='#'
18782  HAVE_CXX_FALSE=
18783fi
18784
18785
18786
18787HAVE_OPENGL=no
18788
18789
18790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18791$as_echo_n "checking for X... " >&6; }
18792
18793
18794# Check whether --with-x was given.
18795if test "${with_x+set}" = set; then :
18796  withval=$with_x;
18797fi
18798
18799# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18800if test "x$with_x" = xno; then
18801  # The user explicitly disabled X.
18802  have_x=disabled
18803else
18804  case $x_includes,$x_libraries in #(
18805    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18806    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18807  $as_echo_n "(cached) " >&6
18808else
18809  # One or both of the vars are not set, and there is no cached value.
18810ac_x_includes=no ac_x_libraries=no
18811rm -f -r conftest.dir
18812if mkdir conftest.dir; then
18813  cd conftest.dir
18814  cat >Imakefile <<'_ACEOF'
18815incroot:
18816	@echo incroot='${INCROOT}'
18817usrlibdir:
18818	@echo usrlibdir='${USRLIBDIR}'
18819libdir:
18820	@echo libdir='${LIBDIR}'
18821_ACEOF
18822  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18823    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18824    for ac_var in incroot usrlibdir libdir; do
18825      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18826    done
18827    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18828    for ac_extension in a so sl dylib la dll; do
18829      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18830	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18831	ac_im_usrlibdir=$ac_im_libdir; break
18832      fi
18833    done
18834    # Screen out bogus values from the imake configuration.  They are
18835    # bogus both because they are the default anyway, and because
18836    # using them would break gcc on systems where it needs fixed includes.
18837    case $ac_im_incroot in
18838	/usr/include) ac_x_includes= ;;
18839	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18840    esac
18841    case $ac_im_usrlibdir in
18842	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18843	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18844    esac
18845  fi
18846  cd ..
18847  rm -f -r conftest.dir
18848fi
18849
18850# Standard set of common directories for X headers.
18851# Check X11 before X11Rn because it is often a symlink to the current release.
18852ac_x_header_dirs='
18853/usr/X11/include
18854/usr/X11R7/include
18855/usr/X11R6/include
18856/usr/X11R5/include
18857/usr/X11R4/include
18858
18859/usr/include/X11
18860/usr/include/X11R7
18861/usr/include/X11R6
18862/usr/include/X11R5
18863/usr/include/X11R4
18864
18865/usr/local/X11/include
18866/usr/local/X11R7/include
18867/usr/local/X11R6/include
18868/usr/local/X11R5/include
18869/usr/local/X11R4/include
18870
18871/usr/local/include/X11
18872/usr/local/include/X11R7
18873/usr/local/include/X11R6
18874/usr/local/include/X11R5
18875/usr/local/include/X11R4
18876
18877/usr/X386/include
18878/usr/x386/include
18879/usr/XFree86/include/X11
18880
18881/usr/include
18882/usr/local/include
18883/usr/unsupported/include
18884/usr/athena/include
18885/usr/local/x11r5/include
18886/usr/lpp/Xamples/include
18887
18888/usr/openwin/include
18889/usr/openwin/share/include'
18890
18891if test "$ac_x_includes" = no; then
18892  # Guess where to find include files, by looking for Xlib.h.
18893  # First, try using that file with no special directory specified.
18894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895/* end confdefs.h.  */
18896#include <X11/Xlib.h>
18897_ACEOF
18898if ac_fn_c_try_cpp "$LINENO"; then :
18899  # We can compile using X headers with no special include directory.
18900ac_x_includes=
18901else
18902  for ac_dir in $ac_x_header_dirs; do
18903  if test -r "$ac_dir/X11/Xlib.h"; then
18904    ac_x_includes=$ac_dir
18905    break
18906  fi
18907done
18908fi
18909rm -f conftest.err conftest.i conftest.$ac_ext
18910fi # $ac_x_includes = no
18911
18912if test "$ac_x_libraries" = no; then
18913  # Check for the libraries.
18914  # See if we find them without any special options.
18915  # Don't add to $LIBS permanently.
18916  ac_save_LIBS=$LIBS
18917  LIBS="-lX11 $LIBS"
18918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18919/* end confdefs.h.  */
18920#include <X11/Xlib.h>
18921int
18922main ()
18923{
18924XrmInitialize ()
18925  ;
18926  return 0;
18927}
18928_ACEOF
18929if ac_fn_c_try_link "$LINENO"; then :
18930  LIBS=$ac_save_LIBS
18931# We can link X programs with no special library path.
18932ac_x_libraries=
18933else
18934  LIBS=$ac_save_LIBS
18935for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18936do
18937  # Don't even attempt the hair of trying to link an X program!
18938  for ac_extension in a so sl dylib la dll; do
18939    if test -r "$ac_dir/libX11.$ac_extension"; then
18940      ac_x_libraries=$ac_dir
18941      break 2
18942    fi
18943  done
18944done
18945fi
18946rm -f core conftest.err conftest.$ac_objext \
18947    conftest$ac_exeext conftest.$ac_ext
18948fi # $ac_x_libraries = no
18949
18950case $ac_x_includes,$ac_x_libraries in #(
18951  no,* | *,no | *\'*)
18952    # Didn't find X, or a directory has "'" in its name.
18953    ac_cv_have_x="have_x=no";; #(
18954  *)
18955    # Record where we found X for the cache.
18956    ac_cv_have_x="have_x=yes\
18957	ac_x_includes='$ac_x_includes'\
18958	ac_x_libraries='$ac_x_libraries'"
18959esac
18960fi
18961;; #(
18962    *) have_x=yes;;
18963  esac
18964  eval "$ac_cv_have_x"
18965fi # $with_x != no
18966
18967if test "$have_x" != yes; then
18968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18969$as_echo "$have_x" >&6; }
18970  no_x=yes
18971else
18972  # If each of the values was on the command line, it overrides each guess.
18973  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18974  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18975  # Update the cache value to reflect the command line values.
18976  ac_cv_have_x="have_x=yes\
18977	ac_x_includes='$x_includes'\
18978	ac_x_libraries='$x_libraries'"
18979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18980$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18981fi
18982
18983if test "$no_x" = yes; then
18984  # Not all programs may use this symbol, but it does not hurt to define it.
18985
18986$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18987
18988  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18989else
18990  if test -n "$x_includes"; then
18991    X_CFLAGS="$X_CFLAGS -I$x_includes"
18992  fi
18993
18994  # It would also be nice to do this for all -L options, not just this one.
18995  if test -n "$x_libraries"; then
18996    X_LIBS="$X_LIBS -L$x_libraries"
18997    # For Solaris; some versions of Sun CC require a space after -R and
18998    # others require no space.  Words are not sufficient . . . .
18999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19000$as_echo_n "checking whether -R must be followed by a space... " >&6; }
19001    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19002    ac_xsave_c_werror_flag=$ac_c_werror_flag
19003    ac_c_werror_flag=yes
19004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005/* end confdefs.h.  */
19006
19007int
19008main ()
19009{
19010
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015if ac_fn_c_try_link "$LINENO"; then :
19016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017$as_echo "no" >&6; }
19018       X_LIBS="$X_LIBS -R$x_libraries"
19019else
19020  LIBS="$ac_xsave_LIBS -R $x_libraries"
19021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19022/* end confdefs.h.  */
19023
19024int
19025main ()
19026{
19027
19028  ;
19029  return 0;
19030}
19031_ACEOF
19032if ac_fn_c_try_link "$LINENO"; then :
19033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19034$as_echo "yes" >&6; }
19035	  X_LIBS="$X_LIBS -R $x_libraries"
19036else
19037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19038$as_echo "neither works" >&6; }
19039fi
19040rm -f core conftest.err conftest.$ac_objext \
19041    conftest$ac_exeext conftest.$ac_ext
19042fi
19043rm -f core conftest.err conftest.$ac_objext \
19044    conftest$ac_exeext conftest.$ac_ext
19045    ac_c_werror_flag=$ac_xsave_c_werror_flag
19046    LIBS=$ac_xsave_LIBS
19047  fi
19048
19049  # Check for system-dependent libraries X programs must link with.
19050  # Do this before checking for the system-independent R6 libraries
19051  # (-lICE), since we may need -lsocket or whatever for X linking.
19052
19053  if test "$ISC" = yes; then
19054    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19055  else
19056    # Martyn Johnson says this is needed for Ultrix, if the X
19057    # libraries were built with DECnet support.  And Karl Berry says
19058    # the Alpha needs dnet_stub (dnet does not exist).
19059    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061/* end confdefs.h.  */
19062
19063/* Override any GCC internal prototype to avoid an error.
19064   Use char because int might match the return type of a GCC
19065   builtin and then its argument prototype would still apply.  */
19066#ifdef __cplusplus
19067extern "C"
19068#endif
19069char XOpenDisplay ();
19070int
19071main ()
19072{
19073return XOpenDisplay ();
19074  ;
19075  return 0;
19076}
19077_ACEOF
19078if ac_fn_c_try_link "$LINENO"; then :
19079
19080else
19081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19082$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19083if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19084  $as_echo_n "(cached) " >&6
19085else
19086  ac_check_lib_save_LIBS=$LIBS
19087LIBS="-ldnet  $LIBS"
19088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089/* end confdefs.h.  */
19090
19091/* Override any GCC internal prototype to avoid an error.
19092   Use char because int might match the return type of a GCC
19093   builtin and then its argument prototype would still apply.  */
19094#ifdef __cplusplus
19095extern "C"
19096#endif
19097char dnet_ntoa ();
19098int
19099main ()
19100{
19101return dnet_ntoa ();
19102  ;
19103  return 0;
19104}
19105_ACEOF
19106if ac_fn_c_try_link "$LINENO"; then :
19107  ac_cv_lib_dnet_dnet_ntoa=yes
19108else
19109  ac_cv_lib_dnet_dnet_ntoa=no
19110fi
19111rm -f core conftest.err conftest.$ac_objext \
19112    conftest$ac_exeext conftest.$ac_ext
19113LIBS=$ac_check_lib_save_LIBS
19114fi
19115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19116$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19117if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19118  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19119fi
19120
19121    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19122      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19123$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19124if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19125  $as_echo_n "(cached) " >&6
19126else
19127  ac_check_lib_save_LIBS=$LIBS
19128LIBS="-ldnet_stub  $LIBS"
19129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130/* end confdefs.h.  */
19131
19132/* Override any GCC internal prototype to avoid an error.
19133   Use char because int might match the return type of a GCC
19134   builtin and then its argument prototype would still apply.  */
19135#ifdef __cplusplus
19136extern "C"
19137#endif
19138char dnet_ntoa ();
19139int
19140main ()
19141{
19142return dnet_ntoa ();
19143  ;
19144  return 0;
19145}
19146_ACEOF
19147if ac_fn_c_try_link "$LINENO"; then :
19148  ac_cv_lib_dnet_stub_dnet_ntoa=yes
19149else
19150  ac_cv_lib_dnet_stub_dnet_ntoa=no
19151fi
19152rm -f core conftest.err conftest.$ac_objext \
19153    conftest$ac_exeext conftest.$ac_ext
19154LIBS=$ac_check_lib_save_LIBS
19155fi
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19157$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19158if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19159  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19160fi
19161
19162    fi
19163fi
19164rm -f core conftest.err conftest.$ac_objext \
19165    conftest$ac_exeext conftest.$ac_ext
19166    LIBS="$ac_xsave_LIBS"
19167
19168    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
19169    # to get the SysV transport functions.
19170    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19171    # needs -lnsl.
19172    # The nsl library prevents programs from opening the X display
19173    # on Irix 5.2, according to T.E. Dickey.
19174    # The functions gethostbyname, getservbyname, and inet_addr are
19175    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19176    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19177if test "x$ac_cv_func_gethostbyname" = xyes; then :
19178
19179fi
19180
19181    if test $ac_cv_func_gethostbyname = no; then
19182      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19183$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19184if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19185  $as_echo_n "(cached) " >&6
19186else
19187  ac_check_lib_save_LIBS=$LIBS
19188LIBS="-lnsl  $LIBS"
19189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190/* end confdefs.h.  */
19191
19192/* Override any GCC internal prototype to avoid an error.
19193   Use char because int might match the return type of a GCC
19194   builtin and then its argument prototype would still apply.  */
19195#ifdef __cplusplus
19196extern "C"
19197#endif
19198char gethostbyname ();
19199int
19200main ()
19201{
19202return gethostbyname ();
19203  ;
19204  return 0;
19205}
19206_ACEOF
19207if ac_fn_c_try_link "$LINENO"; then :
19208  ac_cv_lib_nsl_gethostbyname=yes
19209else
19210  ac_cv_lib_nsl_gethostbyname=no
19211fi
19212rm -f core conftest.err conftest.$ac_objext \
19213    conftest$ac_exeext conftest.$ac_ext
19214LIBS=$ac_check_lib_save_LIBS
19215fi
19216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19217$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19218if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19219  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19220fi
19221
19222      if test $ac_cv_lib_nsl_gethostbyname = no; then
19223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19224$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19225if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19226  $as_echo_n "(cached) " >&6
19227else
19228  ac_check_lib_save_LIBS=$LIBS
19229LIBS="-lbsd  $LIBS"
19230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231/* end confdefs.h.  */
19232
19233/* Override any GCC internal prototype to avoid an error.
19234   Use char because int might match the return type of a GCC
19235   builtin and then its argument prototype would still apply.  */
19236#ifdef __cplusplus
19237extern "C"
19238#endif
19239char gethostbyname ();
19240int
19241main ()
19242{
19243return gethostbyname ();
19244  ;
19245  return 0;
19246}
19247_ACEOF
19248if ac_fn_c_try_link "$LINENO"; then :
19249  ac_cv_lib_bsd_gethostbyname=yes
19250else
19251  ac_cv_lib_bsd_gethostbyname=no
19252fi
19253rm -f core conftest.err conftest.$ac_objext \
19254    conftest$ac_exeext conftest.$ac_ext
19255LIBS=$ac_check_lib_save_LIBS
19256fi
19257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19258$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19259if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19260  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19261fi
19262
19263      fi
19264    fi
19265
19266    # [email protected] says without -lsocket,
19267    # socket/setsockopt and other routines are undefined under SCO ODT
19268    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19269    # on later versions), says Simon Leinen: it contains gethostby*
19270    # variants that don't use the name server (or something).  -lsocket
19271    # must be given before -lnsl if both are needed.  We assume that
19272    # if connect needs -lnsl, so does gethostbyname.
19273    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19274if test "x$ac_cv_func_connect" = xyes; then :
19275
19276fi
19277
19278    if test $ac_cv_func_connect = no; then
19279      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19280$as_echo_n "checking for connect in -lsocket... " >&6; }
19281if ${ac_cv_lib_socket_connect+:} false; then :
19282  $as_echo_n "(cached) " >&6
19283else
19284  ac_check_lib_save_LIBS=$LIBS
19285LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287/* end confdefs.h.  */
19288
19289/* Override any GCC internal prototype to avoid an error.
19290   Use char because int might match the return type of a GCC
19291   builtin and then its argument prototype would still apply.  */
19292#ifdef __cplusplus
19293extern "C"
19294#endif
19295char connect ();
19296int
19297main ()
19298{
19299return connect ();
19300  ;
19301  return 0;
19302}
19303_ACEOF
19304if ac_fn_c_try_link "$LINENO"; then :
19305  ac_cv_lib_socket_connect=yes
19306else
19307  ac_cv_lib_socket_connect=no
19308fi
19309rm -f core conftest.err conftest.$ac_objext \
19310    conftest$ac_exeext conftest.$ac_ext
19311LIBS=$ac_check_lib_save_LIBS
19312fi
19313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19314$as_echo "$ac_cv_lib_socket_connect" >&6; }
19315if test "x$ac_cv_lib_socket_connect" = xyes; then :
19316  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19317fi
19318
19319    fi
19320
19321    # Guillermo Gomez says -lposix is necessary on A/UX.
19322    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19323if test "x$ac_cv_func_remove" = xyes; then :
19324
19325fi
19326
19327    if test $ac_cv_func_remove = no; then
19328      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19329$as_echo_n "checking for remove in -lposix... " >&6; }
19330if ${ac_cv_lib_posix_remove+:} false; then :
19331  $as_echo_n "(cached) " >&6
19332else
19333  ac_check_lib_save_LIBS=$LIBS
19334LIBS="-lposix  $LIBS"
19335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336/* end confdefs.h.  */
19337
19338/* Override any GCC internal prototype to avoid an error.
19339   Use char because int might match the return type of a GCC
19340   builtin and then its argument prototype would still apply.  */
19341#ifdef __cplusplus
19342extern "C"
19343#endif
19344char remove ();
19345int
19346main ()
19347{
19348return remove ();
19349  ;
19350  return 0;
19351}
19352_ACEOF
19353if ac_fn_c_try_link "$LINENO"; then :
19354  ac_cv_lib_posix_remove=yes
19355else
19356  ac_cv_lib_posix_remove=no
19357fi
19358rm -f core conftest.err conftest.$ac_objext \
19359    conftest$ac_exeext conftest.$ac_ext
19360LIBS=$ac_check_lib_save_LIBS
19361fi
19362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19363$as_echo "$ac_cv_lib_posix_remove" >&6; }
19364if test "x$ac_cv_lib_posix_remove" = xyes; then :
19365  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19366fi
19367
19368    fi
19369
19370    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19371    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19372if test "x$ac_cv_func_shmat" = xyes; then :
19373
19374fi
19375
19376    if test $ac_cv_func_shmat = no; then
19377      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19378$as_echo_n "checking for shmat in -lipc... " >&6; }
19379if ${ac_cv_lib_ipc_shmat+:} false; then :
19380  $as_echo_n "(cached) " >&6
19381else
19382  ac_check_lib_save_LIBS=$LIBS
19383LIBS="-lipc  $LIBS"
19384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385/* end confdefs.h.  */
19386
19387/* Override any GCC internal prototype to avoid an error.
19388   Use char because int might match the return type of a GCC
19389   builtin and then its argument prototype would still apply.  */
19390#ifdef __cplusplus
19391extern "C"
19392#endif
19393char shmat ();
19394int
19395main ()
19396{
19397return shmat ();
19398  ;
19399  return 0;
19400}
19401_ACEOF
19402if ac_fn_c_try_link "$LINENO"; then :
19403  ac_cv_lib_ipc_shmat=yes
19404else
19405  ac_cv_lib_ipc_shmat=no
19406fi
19407rm -f core conftest.err conftest.$ac_objext \
19408    conftest$ac_exeext conftest.$ac_ext
19409LIBS=$ac_check_lib_save_LIBS
19410fi
19411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19412$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19413if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19414  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19415fi
19416
19417    fi
19418  fi
19419
19420  # Check for libraries that X11R6 Xt/Xaw programs need.
19421  ac_save_LDFLAGS=$LDFLAGS
19422  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19423  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19424  # check for ICE first), but we must link in the order -lSM -lICE or
19425  # we get undefined symbols.  So assume we have SM if we have ICE.
19426  # These have to be linked with before -lX11, unlike the other
19427  # libraries we check for below, so use a different variable.
19428  # John Interrante, Karl Berry
19429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19430$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19431if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19432  $as_echo_n "(cached) " >&6
19433else
19434  ac_check_lib_save_LIBS=$LIBS
19435LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437/* end confdefs.h.  */
19438
19439/* Override any GCC internal prototype to avoid an error.
19440   Use char because int might match the return type of a GCC
19441   builtin and then its argument prototype would still apply.  */
19442#ifdef __cplusplus
19443extern "C"
19444#endif
19445char IceConnectionNumber ();
19446int
19447main ()
19448{
19449return IceConnectionNumber ();
19450  ;
19451  return 0;
19452}
19453_ACEOF
19454if ac_fn_c_try_link "$LINENO"; then :
19455  ac_cv_lib_ICE_IceConnectionNumber=yes
19456else
19457  ac_cv_lib_ICE_IceConnectionNumber=no
19458fi
19459rm -f core conftest.err conftest.$ac_objext \
19460    conftest$ac_exeext conftest.$ac_ext
19461LIBS=$ac_check_lib_save_LIBS
19462fi
19463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19464$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19465if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19466  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19467fi
19468
19469  LDFLAGS=$ac_save_LDFLAGS
19470
19471fi
19472
19473
19474
19475
19476
19477ac_ext=c
19478ac_cpp='$CPP $CPPFLAGS'
19479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481ac_compiler_gnu=$ac_cv_c_compiler_gnu
19482
19483ax_pthread_ok=no
19484
19485
19486if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19487        save_CFLAGS="$CFLAGS"
19488        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19489        save_LIBS="$LIBS"
19490        LIBS="$PTHREAD_LIBS $LIBS"
19491        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19492$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19493        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494/* end confdefs.h.  */
19495
19496/* Override any GCC internal prototype to avoid an error.
19497   Use char because int might match the return type of a GCC
19498   builtin and then its argument prototype would still apply.  */
19499#ifdef __cplusplus
19500extern "C"
19501#endif
19502char pthread_join ();
19503int
19504main ()
19505{
19506return pthread_join ();
19507  ;
19508  return 0;
19509}
19510_ACEOF
19511if ac_fn_c_try_link "$LINENO"; then :
19512  ax_pthread_ok=yes
19513fi
19514rm -f core conftest.err conftest.$ac_objext \
19515    conftest$ac_exeext conftest.$ac_ext
19516        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19517$as_echo "$ax_pthread_ok" >&6; }
19518        if test x"$ax_pthread_ok" = xno; then
19519                PTHREAD_LIBS=""
19520                PTHREAD_CFLAGS=""
19521        fi
19522        LIBS="$save_LIBS"
19523        CFLAGS="$save_CFLAGS"
19524fi
19525
19526
19527
19528ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19529
19530
19531
19532case "${host_cpu}-${host_os}" in
19533        *solaris*)
19534
19535
19536        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19537        ;;
19538
19539	*-darwin*)
19540	ax_pthread_flags="-pthread $ax_pthread_flags"
19541	;;
19542esac
19543
19544if test x"$ax_pthread_ok" = xno; then
19545for flag in $ax_pthread_flags; do
19546
19547        case $flag in
19548                none)
19549                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19550$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19551                ;;
19552
19553                -*)
19554                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19555$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19556                PTHREAD_CFLAGS="$flag"
19557                ;;
19558
19559		pthread-config)
19560		# Extract the first word of "pthread-config", so it can be a program name with args.
19561set dummy pthread-config; ac_word=$2
19562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19563$as_echo_n "checking for $ac_word... " >&6; }
19564if ${ac_cv_prog_ax_pthread_config+:} false; then :
19565  $as_echo_n "(cached) " >&6
19566else
19567  if test -n "$ax_pthread_config"; then
19568  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19569else
19570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571for as_dir in $PATH
19572do
19573  IFS=$as_save_IFS
19574  test -z "$as_dir" && as_dir=.
19575    for ac_exec_ext in '' $ac_executable_extensions; do
19576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19577    ac_cv_prog_ax_pthread_config="yes"
19578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19579    break 2
19580  fi
19581done
19582  done
19583IFS=$as_save_IFS
19584
19585  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19586fi
19587fi
19588ax_pthread_config=$ac_cv_prog_ax_pthread_config
19589if test -n "$ax_pthread_config"; then
19590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19591$as_echo "$ax_pthread_config" >&6; }
19592else
19593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594$as_echo "no" >&6; }
19595fi
19596
19597
19598		if test x"$ax_pthread_config" = xno; then continue; fi
19599		PTHREAD_CFLAGS="`pthread-config --cflags`"
19600		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19601		;;
19602
19603                *)
19604                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19605$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19606                PTHREAD_LIBS="-l$flag"
19607                ;;
19608        esac
19609
19610        save_LIBS="$LIBS"
19611        save_CFLAGS="$CFLAGS"
19612        LIBS="$PTHREAD_LIBS $LIBS"
19613        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19614
19615                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616/* end confdefs.h.  */
19617#include <pthread.h>
19618	             static void routine(void* a) {a=0;}
19619	             static void* start_routine(void* a) {return a;}
19620int
19621main ()
19622{
19623pthread_t th; pthread_attr_t attr;
19624                     pthread_create(&th,0,start_routine,0);
19625                     pthread_join(th, 0);
19626                     pthread_attr_init(&attr);
19627                     pthread_cleanup_push(routine, 0);
19628                     pthread_cleanup_pop(0);
19629  ;
19630  return 0;
19631}
19632_ACEOF
19633if ac_fn_c_try_link "$LINENO"; then :
19634  ax_pthread_ok=yes
19635fi
19636rm -f core conftest.err conftest.$ac_objext \
19637    conftest$ac_exeext conftest.$ac_ext
19638
19639        LIBS="$save_LIBS"
19640        CFLAGS="$save_CFLAGS"
19641
19642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19643$as_echo "$ax_pthread_ok" >&6; }
19644        if test "x$ax_pthread_ok" = xyes; then
19645                break;
19646        fi
19647
19648        PTHREAD_LIBS=""
19649        PTHREAD_CFLAGS=""
19650done
19651fi
19652
19653if test "x$ax_pthread_ok" = xyes; then
19654        save_LIBS="$LIBS"
19655        LIBS="$PTHREAD_LIBS $LIBS"
19656        save_CFLAGS="$CFLAGS"
19657        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19658
19659        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19660$as_echo_n "checking for joinable pthread attribute... " >&6; }
19661	attr_name=unknown
19662	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19663	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664/* end confdefs.h.  */
19665#include <pthread.h>
19666int
19667main ()
19668{
19669int attr=$attr; return attr;
19670  ;
19671  return 0;
19672}
19673_ACEOF
19674if ac_fn_c_try_link "$LINENO"; then :
19675  attr_name=$attr; break
19676fi
19677rm -f core conftest.err conftest.$ac_objext \
19678    conftest$ac_exeext conftest.$ac_ext
19679	done
19680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19681$as_echo "$attr_name" >&6; }
19682        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19683
19684cat >>confdefs.h <<_ACEOF
19685#define PTHREAD_CREATE_JOINABLE $attr_name
19686_ACEOF
19687
19688        fi
19689
19690        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19691$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19692        flag=no
19693        case "${host_cpu}-${host_os}" in
19694            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19695            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19696        esac
19697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19698$as_echo "${flag}" >&6; }
19699        if test "x$flag" != xno; then
19700            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19701        fi
19702
19703        LIBS="$save_LIBS"
19704        CFLAGS="$save_CFLAGS"
19705
19706        	if test x"$GCC" != xyes; then
19707          for ac_prog in xlc_r cc_r
19708do
19709  # Extract the first word of "$ac_prog", so it can be a program name with args.
19710set dummy $ac_prog; ac_word=$2
19711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19712$as_echo_n "checking for $ac_word... " >&6; }
19713if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19714  $as_echo_n "(cached) " >&6
19715else
19716  if test -n "$PTHREAD_CC"; then
19717  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19718else
19719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720for as_dir in $PATH
19721do
19722  IFS=$as_save_IFS
19723  test -z "$as_dir" && as_dir=.
19724    for ac_exec_ext in '' $ac_executable_extensions; do
19725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19726    ac_cv_prog_PTHREAD_CC="$ac_prog"
19727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19728    break 2
19729  fi
19730done
19731  done
19732IFS=$as_save_IFS
19733
19734fi
19735fi
19736PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19737if test -n "$PTHREAD_CC"; then
19738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19739$as_echo "$PTHREAD_CC" >&6; }
19740else
19741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742$as_echo "no" >&6; }
19743fi
19744
19745
19746  test -n "$PTHREAD_CC" && break
19747done
19748test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19749
19750        else
19751          PTHREAD_CC=$CC
19752	fi
19753else
19754        PTHREAD_CC="$CC"
19755fi
19756
19757
19758
19759
19760
19761if test x"$ax_pthread_ok" = xyes; then
19762
19763$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19764
19765        :
19766else
19767        ax_pthread_ok=no
19768
19769fi
19770ac_ext=c
19771ac_cpp='$CPP $CPPFLAGS'
19772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774ac_compiler_gnu=$ac_cv_c_compiler_gnu
19775
19776
19777
19778
19779ac_ext=c
19780ac_cpp='$CPP $CPPFLAGS'
19781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784
19785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19786$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19787if ${ax_cv_c_compiler_ms+:} false; then :
19788  $as_echo_n "(cached) " >&6
19789else
19790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791/* end confdefs.h.  */
19792
19793int
19794main ()
19795{
19796#ifndef _MSC_VER
19797       choke me
19798#endif
19799
19800  ;
19801  return 0;
19802}
19803_ACEOF
19804if ac_fn_c_try_compile "$LINENO"; then :
19805  ax_compiler_ms=yes
19806else
19807  ax_compiler_ms=no
19808fi
19809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810ax_cv_c_compiler_ms=$ax_compiler_ms
19811
19812fi
19813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19814$as_echo "$ax_cv_c_compiler_ms" >&6; }
19815if test X$ax_compiler_ms = Xno; then :
19816  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19817fi
19818
19819if test "X$no_x" != "Xyes"; then :
19820  if test -n "$x_includes"; then :
19821  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19822fi
19823       if test -n "$x_libraries"; then :
19824  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19825fi
19826fi
19827
19828ax_save_CPPFLAGS="${CPPFLAGS}"
19829CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19830for ac_header in GL/gl.h OpenGL/gl.h
19831do :
19832  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19833ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19835  cat >>confdefs.h <<_ACEOF
19836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19837_ACEOF
19838
19839fi
19840
19841done
19842
19843CPPFLAGS="${ax_save_CPPFLAGS}"
19844
19845for ac_header in windows.h
19846do :
19847  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19848if test "x$ac_cv_header_windows_h" = xyes; then :
19849  cat >>confdefs.h <<_ACEOF
19850#define HAVE_WINDOWS_H 1
19851_ACEOF
19852
19853fi
19854
19855done
19856
19857
19858
19859
19860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19861$as_echo_n "checking for OpenGL library... " >&6; }
19862if ${ax_cv_check_gl_libgl+:} false; then :
19863  $as_echo_n "(cached) " >&6
19864else
19865  ax_cv_check_gl_libgl="no"
19866case $host_cpu in
19867  x86_64) ax_check_gl_libdir=lib64 ;;
19868  *)      ax_check_gl_libdir=lib ;;
19869esac
19870ax_save_CPPFLAGS="${CPPFLAGS}"
19871CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19872ax_save_LIBS="${LIBS}"
19873LIBS=""
19874ax_check_libs="-lopengl32 -lGL"
19875for ax_lib in ${ax_check_libs}; do
19876  if test X$ax_compiler_ms = Xyes; then :
19877  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19878else
19879  ax_try_lib="${ax_lib}"
19880fi
19881  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883/* end confdefs.h.  */
19884
19885# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19886#   include <windows.h>
19887# endif
19888# ifdef HAVE_GL_GL_H
19889#   include <GL/gl.h>
19890# elif defined(HAVE_OPENGL_GL_H)
19891#   include <OpenGL/gl.h>
19892# else
19893#   error no gl.h
19894# endif
19895int
19896main ()
19897{
19898glBegin(0)
19899  ;
19900  return 0;
19901}
19902_ACEOF
19903if ac_fn_c_try_link "$LINENO"; then :
19904  ax_cv_check_gl_libgl="${ax_try_lib}"; break
19905else
19906  ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}"
19907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908/* end confdefs.h.  */
19909
19910# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19911#   include <windows.h>
19912# endif
19913# ifdef HAVE_GL_GL_H
19914#   include <GL/gl.h>
19915# elif defined(HAVE_OPENGL_GL_H)
19916#   include <OpenGL/gl.h>
19917# else
19918#   error no gl.h
19919# endif
19920int
19921main ()
19922{
19923glBegin(0)
19924  ;
19925  return 0;
19926}
19927_ACEOF
19928if ac_fn_c_try_link "$LINENO"; then :
19929  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19930else
19931  ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}"
19932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933/* end confdefs.h.  */
19934
19935# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19936#   include <windows.h>
19937# endif
19938# ifdef HAVE_GL_GL_H
19939#   include <GL/gl.h>
19940# elif defined(HAVE_OPENGL_GL_H)
19941#   include <OpenGL/gl.h>
19942# else
19943#   error no gl.h
19944# endif
19945int
19946main ()
19947{
19948glBegin(0)
19949  ;
19950  return 0;
19951}
19952_ACEOF
19953if ac_fn_c_try_link "$LINENO"; then :
19954  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19955fi
19956rm -f core conftest.err conftest.$ac_objext \
19957    conftest$ac_exeext conftest.$ac_ext
19958fi
19959rm -f core conftest.err conftest.$ac_objext \
19960    conftest$ac_exeext conftest.$ac_ext
19961fi
19962rm -f core conftest.err conftest.$ac_objext \
19963    conftest$ac_exeext conftest.$ac_ext
19964done
19965
19966if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19967  LIBS='-framework OpenGL'
19968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969/* end confdefs.h.  */
19970
19971# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19972#   include <windows.h>
19973# endif
19974# ifdef HAVE_GL_GL_H
19975#   include <GL/gl.h>
19976# elif defined(HAVE_OPENGL_GL_H)
19977#   include <OpenGL/gl.h>
19978# else
19979#   error no gl.h
19980# endif
19981int
19982main ()
19983{
19984glBegin(0)
19985  ;
19986  return 0;
19987}
19988_ACEOF
19989if ac_fn_c_try_link "$LINENO"; then :
19990  ax_cv_check_gl_libgl="$LIBS"
19991fi
19992rm -f core conftest.err conftest.$ac_objext \
19993    conftest$ac_exeext conftest.$ac_ext
19994fi
19995
19996LIBS=${ax_save_LIBS}
19997CPPFLAGS=${ax_save_CPPFLAGS}
19998fi
19999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
20000$as_echo "$ax_cv_check_gl_libgl" >&6; }
20001
20002if test "X$ax_cv_check_gl_libgl" = Xno; then :
20003  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
20004else
20005  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
20006fi
20007ac_ext=c
20008ac_cpp='$CPP $CPPFLAGS'
20009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011ac_compiler_gnu=$ac_cv_c_compiler_gnu
20012
20013
20014
20015
20016
20017
20018GLU_CFLAGS="${GL_CFLAGS}"
20019
20020ax_save_CPPFLAGS="${CPPFLAGS}"
20021CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20022for ac_header in GL/glu.h OpenGL/glu.h
20023do :
20024  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20025ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20027  cat >>confdefs.h <<_ACEOF
20028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20029_ACEOF
20030
20031fi
20032
20033done
20034
20035CPPFLAGS="${ax_save_CPPFLAGS}"
20036
20037
20038
20039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
20040$as_echo_n "checking for OpenGL Utility library... " >&6; }
20041if ${ax_cv_check_glu_libglu+:} false; then :
20042  $as_echo_n "(cached) " >&6
20043else
20044  ax_cv_check_glu_libglu="no"
20045ax_save_CPPFLAGS="${CPPFLAGS}"
20046CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20047ax_save_LIBS="${LIBS}"
20048
20049LIBS="${GL_LIBS} ${ax_save_LIBS}"
20050ac_ext=cpp
20051ac_cpp='$CXXCPP $CPPFLAGS'
20052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20055
20056if test X$ax_compiler_ms = Xyes; then :
20057  ac_ext=c
20058ac_cpp='$CPP $CPPFLAGS'
20059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062
20063fi
20064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065/* end confdefs.h.  */
20066
20067# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20068#   include <windows.h>
20069# endif
20070# ifdef HAVE_GL_GLU_H
20071#   include <GL/glu.h>
20072# elif defined(HAVE_OPENGL_GLU_H)
20073#   include <OpenGL/glu.h>
20074# else
20075#   error no glu.h
20076# endif
20077int
20078main ()
20079{
20080gluBeginCurve(0)
20081  ;
20082  return 0;
20083}
20084_ACEOF
20085if ac_fn_c_try_link "$LINENO"; then :
20086  ax_cv_check_glu_libglu=yes
20087else
20088  LIBS=""
20089ax_check_libs="-lglu32 -lGLU"
20090for ax_lib in ${ax_check_libs}; do
20091  if test X$ax_compiler_ms = Xyes; then :
20092  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20093else
20094  ax_try_lib="${ax_lib}"
20095fi
20096  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098/* end confdefs.h.  */
20099
20100# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20101#   include <windows.h>
20102# endif
20103# ifdef HAVE_GL_GLU_H
20104#   include <GL/glu.h>
20105# elif defined(HAVE_OPENGL_GLU_H)
20106#   include <OpenGL/glu.h>
20107# else
20108#   error no glu.h
20109# endif
20110int
20111main ()
20112{
20113gluBeginCurve(0)
20114  ;
20115  return 0;
20116}
20117_ACEOF
20118if ac_fn_c_try_link "$LINENO"; then :
20119  ax_cv_check_glu_libglu="${ax_try_lib}"; break
20120fi
20121rm -f core conftest.err conftest.$ac_objext \
20122    conftest$ac_exeext conftest.$ac_ext
20123done
20124
20125fi
20126rm -f core conftest.err conftest.$ac_objext \
20127    conftest$ac_exeext conftest.$ac_ext
20128if test X$ax_compiler_ms = Xyes; then :
20129  ac_ext=cpp
20130ac_cpp='$CXXCPP $CPPFLAGS'
20131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20134
20135fi
20136ac_ext=c
20137ac_cpp='$CPP $CPPFLAGS'
20138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20140ac_compiler_gnu=$ac_cv_c_compiler_gnu
20141
20142
20143LIBS=${ax_save_LIBS}
20144CPPFLAGS=${ax_save_CPPFLAGS}
20145fi
20146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
20147$as_echo "$ax_cv_check_glu_libglu" >&6; }
20148if test "X$ax_cv_check_glu_libglu" = Xno; then :
20149  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
20150else
20151  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
20152  GLU_LIBS="$GL_LIBS"
20153else
20154  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
20155fi
20156fi
20157
20158
20159
20160if test "X$ax_cv_check_glu_libglu" != Xno; then :
20161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
20162$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
20163if ${ax_cv_varargs_glu_tesscb+:} false; then :
20164  $as_echo_n "(cached) " >&6
20165else
20166  ax_cv_varargs_glu_tesscb=no
20167ax_save_CFLAGS="$CFLAGS"
20168CFLAGS="$GL_CFLAGS $CFLAGS"
20169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170/* end confdefs.h.  */
20171
20172# ifdef HAVE_GL_GLU_H
20173#   include <GL/glu.h>
20174# else
20175#   include <OpenGL/glu.h>
20176# endif
20177int
20178main ()
20179{
20180GLvoid (*func)(...); gluTessCallback(0, 0, func)
20181  ;
20182  return 0;
20183}
20184_ACEOF
20185if ac_fn_c_try_compile "$LINENO"; then :
20186  ax_cv_varargs_glu_tesscb=yes
20187fi
20188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189CFLAGS="$ax_save_CFLAGS"
20190fi
20191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
20192$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
20193if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
20194
20195$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
20196
20197fi
20198fi
20199
20200
20201
20202ax_save_CPPFLAGS="${CPPFLAGS}"
20203CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
20204for ac_header in GL/glut.h GLUT/glut.h
20205do :
20206  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20209  cat >>confdefs.h <<_ACEOF
20210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20211_ACEOF
20212
20213fi
20214
20215done
20216
20217CPPFLAGS="${ax_save_CPPFLAGS}"
20218
20219GLUT_CFLAGS=${GLU_CFLAGS}
20220GLUT_LIBS=${GLU_LIBS}
20221
20222
20223
20224if test X$no_x != Xyes; then :
20225  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
20226fi
20227
20228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
20229$as_echo_n "checking for GLUT library... " >&6; }
20230if ${ax_cv_check_glut_libglut+:} false; then :
20231  $as_echo_n "(cached) " >&6
20232else
20233  ax_cv_check_glut_libglut="no"
20234ac_ext=c
20235ac_cpp='$CPP $CPPFLAGS'
20236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20238ac_compiler_gnu=$ac_cv_c_compiler_gnu
20239
20240ax_save_CPPFLAGS="${CPPFLAGS}"
20241CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
20242ax_save_LIBS="${LIBS}"
20243LIBS=""
20244ax_check_libs="-lglut32 -lglut"
20245for ax_lib in ${ax_check_libs}; do
20246  if test X$ax_compiler_ms = Xyes; then :
20247  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20248else
20249  ax_try_lib="${ax_lib}"
20250fi
20251  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
20252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253/* end confdefs.h.  */
20254
20255# if HAVE_WINDOWS_H && defined(_WIN32)
20256#   include <windows.h>
20257# endif
20258# ifdef HAVE_GL_GLUT_H
20259#   include <GL/glut.h>
20260# elif defined(HAVE_GLUT_GLUT_H)
20261#   include <GLUT/glut.h>
20262# else
20263#   error no glut.h
20264# endif
20265int
20266main ()
20267{
20268glutMainLoop()
20269  ;
20270  return 0;
20271}
20272_ACEOF
20273if ac_fn_c_try_link "$LINENO"; then :
20274  ax_cv_check_glut_libglut="${ax_try_lib}"; break
20275fi
20276rm -f core conftest.err conftest.$ac_objext \
20277    conftest$ac_exeext conftest.$ac_ext
20278done
20279
20280if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
20281  LIBS='-framework GLUT'
20282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283/* end confdefs.h.  */
20284
20285# if HAVE_WINDOWS_H && defined(_WIN32)
20286#   include <windows.h>
20287# endif
20288# ifdef HAVE_GL_GLUT_H
20289#   include <GL/glut.h>
20290# elif defined(HAVE_GLUT_GLUT_H)
20291#   include <GLUT/glut.h>
20292# else
20293#   error no glut.h
20294# endif
20295int
20296main ()
20297{
20298glutMainLoop()
20299  ;
20300  return 0;
20301}
20302_ACEOF
20303if ac_fn_c_try_link "$LINENO"; then :
20304  ax_cv_check_glut_libglut="$LIBS"
20305fi
20306rm -f core conftest.err conftest.$ac_objext \
20307    conftest$ac_exeext conftest.$ac_ext
20308fi
20309
20310CPPFLAGS="${ax_save_CPPFLAGS}"
20311LIBS="${ax_save_LIBS}"
20312ac_ext=c
20313ac_cpp='$CPP $CPPFLAGS'
20314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316ac_compiler_gnu=$ac_cv_c_compiler_gnu
20317
20318fi
20319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
20320$as_echo "$ax_cv_check_glut_libglut" >&6; }
20321
20322if test "X$ax_cv_check_glut_libglut" = Xno; then :
20323  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
20324else
20325  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
20326fi
20327
20328
20329
20330
20331
20332if test "$no_x" != "yes" -a "$no_gl" != "yes" \
20333	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
20334  HAVE_OPENGL=yes
20335fi
20336
20337 if test "$HAVE_OPENGL" = "yes"; then
20338  HAVE_OPENGL_TRUE=
20339  HAVE_OPENGL_FALSE='#'
20340else
20341  HAVE_OPENGL_TRUE='#'
20342  HAVE_OPENGL_FALSE=
20343fi
20344
20345
20346
20347win32_io_ok=no
20348case "${host_os}" in
20349    cygwin*)
20350        ;;
20351    *)
20352        if test x"$ac_cv_header_windows_h" = xyes; then
20353            win32_io_ok=yes
20354
20355$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
20356
20357	fi
20358        ;;
20359esac
20360 if test "$win32_io_ok" = yes; then
20361  WIN32_IO_TRUE=
20362  WIN32_IO_FALSE='#'
20363else
20364  WIN32_IO_TRUE='#'
20365  WIN32_IO_FALSE=
20366fi
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376# Check whether --enable-strip-chopping was given.
20377if test "${enable_strip_chopping+set}" = set; then :
20378  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
20379else
20380  HAVE_STRIPCHOP=yes
20381fi
20382
20383
20384# Check whether --with-default-strip-size was given.
20385if test "${with_default_strip_size+set}" = set; then :
20386  withval=$with_default_strip_size;
20387fi
20388
20389
20390if test "$HAVE_STRIPCHOP" = "yes" \
20391	-a "x$with_default_strip_size" != "xno"; then
20392
20393$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
20394
20395
20396  if test "x$with_default_strip_size" = "x" \
20397	  -o "x$with_default_strip_size" = "xyes"; then
20398    with_default_strip_size="8192"
20399  fi
20400
20401
20402cat >>confdefs.h <<_ACEOF
20403#define STRIP_SIZE_DEFAULT $with_default_strip_size
20404_ACEOF
20405
20406
20407fi
20408
20409
20410# Check whether --enable-defer-strile-load was given.
20411if test "${enable_defer_strile_load+set}" = set; then :
20412  enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
20413else
20414  HAVE_DEFER_STRILE_LOAD=no
20415fi
20416
20417
20418if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
20419
20420$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
20421
20422
20423fi
20424
20425
20426# Check whether --enable-chunky-strip-read was given.
20427if test "${enable_chunky_strip_read+set}" = set; then :
20428  enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
20429else
20430  HAVE_CHUNKY_STRIP_READ=no
20431fi
20432
20433
20434if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
20435
20436$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
20437
20438
20439fi
20440
20441
20442$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
20443
20444
20445
20446# Check whether --enable-extrasample-as-alpha was given.
20447if test "${enable_extrasample_as_alpha+set}" = set; then :
20448  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20449else
20450  HAVE_EXTRASAMPLE_AS_ALPHA=yes
20451fi
20452
20453
20454if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20455
20456$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
20457
20458fi
20459
20460
20461# Check whether --enable-check-ycbcr-subsampling was given.
20462if test "${enable_check_ycbcr_subsampling+set}" = set; then :
20463  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20464else
20465  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20466fi
20467
20468
20469if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20470
20471$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
20472
20473fi
20474
20475
20476
20477
20478ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
20479
20480
20481ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff-4.pc libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile"
20482
20483cat >confcache <<\_ACEOF
20484# This file is a shell script that caches the results of configure
20485# tests run on this system so they can be shared between configure
20486# scripts and configure runs, see configure's option --config-cache.
20487# It is not useful on other systems.  If it contains results you don't
20488# want to keep, you may remove or edit it.
20489#
20490# config.status only pays attention to the cache file if you give it
20491# the --recheck option to rerun configure.
20492#
20493# `ac_cv_env_foo' variables (set or unset) will be overridden when
20494# loading this file, other *unset* `ac_cv_foo' will be assigned the
20495# following values.
20496
20497_ACEOF
20498
20499# The following way of writing the cache mishandles newlines in values,
20500# but we know of no workaround that is simple, portable, and efficient.
20501# So, we kill variables containing newlines.
20502# Ultrix sh set writes to stderr and can't be redirected directly,
20503# and sets the high bit in the cache file unless we assign to the vars.
20504(
20505  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20506    eval ac_val=\$$ac_var
20507    case $ac_val in #(
20508    *${as_nl}*)
20509      case $ac_var in #(
20510      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20512      esac
20513      case $ac_var in #(
20514      _ | IFS | as_nl) ;; #(
20515      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20516      *) { eval $ac_var=; unset $ac_var;} ;;
20517      esac ;;
20518    esac
20519  done
20520
20521  (set) 2>&1 |
20522    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20523    *${as_nl}ac_space=\ *)
20524      # `set' does not quote correctly, so add quotes: double-quote
20525      # substitution turns \\\\ into \\, and sed turns \\ into \.
20526      sed -n \
20527	"s/'/'\\\\''/g;
20528	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20529      ;; #(
20530    *)
20531      # `set' quotes correctly as required by POSIX, so do not add quotes.
20532      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20533      ;;
20534    esac |
20535    sort
20536) |
20537  sed '
20538     /^ac_cv_env_/b end
20539     t clear
20540     :clear
20541     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20542     t end
20543     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20544     :end' >>confcache
20545if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20546  if test -w "$cache_file"; then
20547    if test "x$cache_file" != "x/dev/null"; then
20548      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20549$as_echo "$as_me: updating cache $cache_file" >&6;}
20550      if test ! -f "$cache_file" || test -h "$cache_file"; then
20551	cat confcache >"$cache_file"
20552      else
20553        case $cache_file in #(
20554        */* | ?:*)
20555	  mv -f confcache "$cache_file"$$ &&
20556	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20557        *)
20558	  mv -f confcache "$cache_file" ;;
20559	esac
20560      fi
20561    fi
20562  else
20563    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20564$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20565  fi
20566fi
20567rm -f confcache
20568
20569test "x$prefix" = xNONE && prefix=$ac_default_prefix
20570# Let make expand exec_prefix.
20571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20572
20573DEFS=-DHAVE_CONFIG_H
20574
20575ac_libobjs=
20576ac_ltlibobjs=
20577U=
20578for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20579  # 1. Remove the extension, and $U if already installed.
20580  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20581  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20582  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20583  #    will be set to the directory where LIBOBJS objects are built.
20584  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20585  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20586done
20587LIBOBJS=$ac_libobjs
20588
20589LTLIBOBJS=$ac_ltlibobjs
20590
20591
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20593$as_echo_n "checking that generated files are newer than configure... " >&6; }
20594   if test -n "$am_sleep_pid"; then
20595     # Hide warnings about reused PIDs.
20596     wait $am_sleep_pid 2>/dev/null
20597   fi
20598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20599$as_echo "done" >&6; }
20600 if test -n "$EXEEXT"; then
20601  am__EXEEXT_TRUE=
20602  am__EXEEXT_FALSE='#'
20603else
20604  am__EXEEXT_TRUE='#'
20605  am__EXEEXT_FALSE=
20606fi
20607
20608if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20609  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20610Usually this means the macro was only invoked conditionally." "$LINENO" 5
20611fi
20612if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20613  as_fn_error $? "conditional \"AMDEP\" was never defined.
20614Usually this means the macro was only invoked conditionally." "$LINENO" 5
20615fi
20616if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20617  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20618Usually this means the macro was only invoked conditionally." "$LINENO" 5
20619fi
20620if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20621  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20622Usually this means the macro was only invoked conditionally." "$LINENO" 5
20623fi
20624if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20625  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20626Usually this means the macro was only invoked conditionally." "$LINENO" 5
20627fi
20628
20629if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20630  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20631Usually this means the macro was only invoked conditionally." "$LINENO" 5
20632fi
20633if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20634  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20635Usually this means the macro was only invoked conditionally." "$LINENO" 5
20636fi
20637if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20638  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20639Usually this means the macro was only invoked conditionally." "$LINENO" 5
20640fi
20641if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20642  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20643Usually this means the macro was only invoked conditionally." "$LINENO" 5
20644fi
20645
20646: "${CONFIG_STATUS=./config.status}"
20647ac_write_fail=0
20648ac_clean_files_save=$ac_clean_files
20649ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20650{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20651$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20652as_write_fail=0
20653cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20654#! $SHELL
20655# Generated by $as_me.
20656# Run this file to recreate the current configuration.
20657# Compiler output produced by configure, useful for debugging
20658# configure, is in config.log if it exists.
20659
20660debug=false
20661ac_cs_recheck=false
20662ac_cs_silent=false
20663
20664SHELL=\${CONFIG_SHELL-$SHELL}
20665export SHELL
20666_ASEOF
20667cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20668## -------------------- ##
20669## M4sh Initialization. ##
20670## -------------------- ##
20671
20672# Be more Bourne compatible
20673DUALCASE=1; export DUALCASE # for MKS sh
20674if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20675  emulate sh
20676  NULLCMD=:
20677  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20678  # is contrary to our usage.  Disable this feature.
20679  alias -g '${1+"$@"}'='"$@"'
20680  setopt NO_GLOB_SUBST
20681else
20682  case `(set -o) 2>/dev/null` in #(
20683  *posix*) :
20684    set -o posix ;; #(
20685  *) :
20686     ;;
20687esac
20688fi
20689
20690
20691as_nl='
20692'
20693export as_nl
20694# Printing a long string crashes Solaris 7 /usr/bin/printf.
20695as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20696as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20698# Prefer a ksh shell builtin over an external printf program on Solaris,
20699# but without wasting forks for bash or zsh.
20700if test -z "$BASH_VERSION$ZSH_VERSION" \
20701    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20702  as_echo='print -r --'
20703  as_echo_n='print -rn --'
20704elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20705  as_echo='printf %s\n'
20706  as_echo_n='printf %s'
20707else
20708  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20709    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20710    as_echo_n='/usr/ucb/echo -n'
20711  else
20712    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20713    as_echo_n_body='eval
20714      arg=$1;
20715      case $arg in #(
20716      *"$as_nl"*)
20717	expr "X$arg" : "X\\(.*\\)$as_nl";
20718	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20719      esac;
20720      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20721    '
20722    export as_echo_n_body
20723    as_echo_n='sh -c $as_echo_n_body as_echo'
20724  fi
20725  export as_echo_body
20726  as_echo='sh -c $as_echo_body as_echo'
20727fi
20728
20729# The user is always right.
20730if test "${PATH_SEPARATOR+set}" != set; then
20731  PATH_SEPARATOR=:
20732  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20733    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20734      PATH_SEPARATOR=';'
20735  }
20736fi
20737
20738
20739# IFS
20740# We need space, tab and new line, in precisely that order.  Quoting is
20741# there to prevent editors from complaining about space-tab.
20742# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20743# splitting by setting IFS to empty value.)
20744IFS=" ""	$as_nl"
20745
20746# Find who we are.  Look in the path if we contain no directory separator.
20747as_myself=
20748case $0 in #((
20749  *[\\/]* ) as_myself=$0 ;;
20750  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751for as_dir in $PATH
20752do
20753  IFS=$as_save_IFS
20754  test -z "$as_dir" && as_dir=.
20755    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20756  done
20757IFS=$as_save_IFS
20758
20759     ;;
20760esac
20761# We did not find ourselves, most probably we were run as `sh COMMAND'
20762# in which case we are not to be found in the path.
20763if test "x$as_myself" = x; then
20764  as_myself=$0
20765fi
20766if test ! -f "$as_myself"; then
20767  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20768  exit 1
20769fi
20770
20771# Unset variables that we do not need and which cause bugs (e.g. in
20772# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20773# suppresses any "Segmentation fault" message there.  '((' could
20774# trigger a bug in pdksh 5.2.14.
20775for as_var in BASH_ENV ENV MAIL MAILPATH
20776do eval test x\${$as_var+set} = xset \
20777  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20778done
20779PS1='$ '
20780PS2='> '
20781PS4='+ '
20782
20783# NLS nuisances.
20784LC_ALL=C
20785export LC_ALL
20786LANGUAGE=C
20787export LANGUAGE
20788
20789# CDPATH.
20790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20791
20792
20793# as_fn_error STATUS ERROR [LINENO LOG_FD]
20794# ----------------------------------------
20795# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20796# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20797# script with STATUS, using 1 if that was 0.
20798as_fn_error ()
20799{
20800  as_status=$1; test $as_status -eq 0 && as_status=1
20801  if test "$4"; then
20802    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20803    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20804  fi
20805  $as_echo "$as_me: error: $2" >&2
20806  as_fn_exit $as_status
20807} # as_fn_error
20808
20809
20810# as_fn_set_status STATUS
20811# -----------------------
20812# Set $? to STATUS, without forking.
20813as_fn_set_status ()
20814{
20815  return $1
20816} # as_fn_set_status
20817
20818# as_fn_exit STATUS
20819# -----------------
20820# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20821as_fn_exit ()
20822{
20823  set +e
20824  as_fn_set_status $1
20825  exit $1
20826} # as_fn_exit
20827
20828# as_fn_unset VAR
20829# ---------------
20830# Portably unset VAR.
20831as_fn_unset ()
20832{
20833  { eval $1=; unset $1;}
20834}
20835as_unset=as_fn_unset
20836# as_fn_append VAR VALUE
20837# ----------------------
20838# Append the text in VALUE to the end of the definition contained in VAR. Take
20839# advantage of any shell optimizations that allow amortized linear growth over
20840# repeated appends, instead of the typical quadratic growth present in naive
20841# implementations.
20842if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20843  eval 'as_fn_append ()
20844  {
20845    eval $1+=\$2
20846  }'
20847else
20848  as_fn_append ()
20849  {
20850    eval $1=\$$1\$2
20851  }
20852fi # as_fn_append
20853
20854# as_fn_arith ARG...
20855# ------------------
20856# Perform arithmetic evaluation on the ARGs, and store the result in the
20857# global $as_val. Take advantage of shells that can avoid forks. The arguments
20858# must be portable across $(()) and expr.
20859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20860  eval 'as_fn_arith ()
20861  {
20862    as_val=$(( $* ))
20863  }'
20864else
20865  as_fn_arith ()
20866  {
20867    as_val=`expr "$@" || test $? -eq 1`
20868  }
20869fi # as_fn_arith
20870
20871
20872if expr a : '\(a\)' >/dev/null 2>&1 &&
20873   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20874  as_expr=expr
20875else
20876  as_expr=false
20877fi
20878
20879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20880  as_basename=basename
20881else
20882  as_basename=false
20883fi
20884
20885if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20886  as_dirname=dirname
20887else
20888  as_dirname=false
20889fi
20890
20891as_me=`$as_basename -- "$0" ||
20892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20893	 X"$0" : 'X\(//\)$' \| \
20894	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20895$as_echo X/"$0" |
20896    sed '/^.*\/\([^/][^/]*\)\/*$/{
20897	    s//\1/
20898	    q
20899	  }
20900	  /^X\/\(\/\/\)$/{
20901	    s//\1/
20902	    q
20903	  }
20904	  /^X\/\(\/\).*/{
20905	    s//\1/
20906	    q
20907	  }
20908	  s/.*/./; q'`
20909
20910# Avoid depending upon Character Ranges.
20911as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20913as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20914as_cr_digits='0123456789'
20915as_cr_alnum=$as_cr_Letters$as_cr_digits
20916
20917ECHO_C= ECHO_N= ECHO_T=
20918case `echo -n x` in #(((((
20919-n*)
20920  case `echo 'xy\c'` in
20921  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20922  xy)  ECHO_C='\c';;
20923  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20924       ECHO_T='	';;
20925  esac;;
20926*)
20927  ECHO_N='-n';;
20928esac
20929
20930rm -f conf$$ conf$$.exe conf$$.file
20931if test -d conf$$.dir; then
20932  rm -f conf$$.dir/conf$$.file
20933else
20934  rm -f conf$$.dir
20935  mkdir conf$$.dir 2>/dev/null
20936fi
20937if (echo >conf$$.file) 2>/dev/null; then
20938  if ln -s conf$$.file conf$$ 2>/dev/null; then
20939    as_ln_s='ln -s'
20940    # ... but there are two gotchas:
20941    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20942    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20943    # In both cases, we have to default to `cp -pR'.
20944    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20945      as_ln_s='cp -pR'
20946  elif ln conf$$.file conf$$ 2>/dev/null; then
20947    as_ln_s=ln
20948  else
20949    as_ln_s='cp -pR'
20950  fi
20951else
20952  as_ln_s='cp -pR'
20953fi
20954rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20955rmdir conf$$.dir 2>/dev/null
20956
20957
20958# as_fn_mkdir_p
20959# -------------
20960# Create "$as_dir" as a directory, including parents if necessary.
20961as_fn_mkdir_p ()
20962{
20963
20964  case $as_dir in #(
20965  -*) as_dir=./$as_dir;;
20966  esac
20967  test -d "$as_dir" || eval $as_mkdir_p || {
20968    as_dirs=
20969    while :; do
20970      case $as_dir in #(
20971      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20972      *) as_qdir=$as_dir;;
20973      esac
20974      as_dirs="'$as_qdir' $as_dirs"
20975      as_dir=`$as_dirname -- "$as_dir" ||
20976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977	 X"$as_dir" : 'X\(//\)[^/]' \| \
20978	 X"$as_dir" : 'X\(//\)$' \| \
20979	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20980$as_echo X"$as_dir" |
20981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20982	    s//\1/
20983	    q
20984	  }
20985	  /^X\(\/\/\)[^/].*/{
20986	    s//\1/
20987	    q
20988	  }
20989	  /^X\(\/\/\)$/{
20990	    s//\1/
20991	    q
20992	  }
20993	  /^X\(\/\).*/{
20994	    s//\1/
20995	    q
20996	  }
20997	  s/.*/./; q'`
20998      test -d "$as_dir" && break
20999    done
21000    test -z "$as_dirs" || eval "mkdir $as_dirs"
21001  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21002
21003
21004} # as_fn_mkdir_p
21005if mkdir -p . 2>/dev/null; then
21006  as_mkdir_p='mkdir -p "$as_dir"'
21007else
21008  test -d ./-p && rmdir ./-p
21009  as_mkdir_p=false
21010fi
21011
21012
21013# as_fn_executable_p FILE
21014# -----------------------
21015# Test if FILE is an executable regular file.
21016as_fn_executable_p ()
21017{
21018  test -f "$1" && test -x "$1"
21019} # as_fn_executable_p
21020as_test_x='test -x'
21021as_executable_p=as_fn_executable_p
21022
21023# Sed expression to map a string onto a valid CPP name.
21024as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21025
21026# Sed expression to map a string onto a valid variable name.
21027as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21028
21029
21030exec 6>&1
21031## ----------------------------------- ##
21032## Main body of $CONFIG_STATUS script. ##
21033## ----------------------------------- ##
21034_ASEOF
21035test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21036
21037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21038# Save the log message, to keep $0 and so on meaningful, and to
21039# report actual input values of CONFIG_FILES etc. instead of their
21040# values after options handling.
21041ac_log="
21042This file was extended by LibTIFF Software $as_me 4.0.3, which was
21043generated by GNU Autoconf 2.69.  Invocation command line was
21044
21045  CONFIG_FILES    = $CONFIG_FILES
21046  CONFIG_HEADERS  = $CONFIG_HEADERS
21047  CONFIG_LINKS    = $CONFIG_LINKS
21048  CONFIG_COMMANDS = $CONFIG_COMMANDS
21049  $ $0 $@
21050
21051on `(hostname || uname -n) 2>/dev/null | sed 1q`
21052"
21053
21054_ACEOF
21055
21056case $ac_config_files in *"
21057"*) set x $ac_config_files; shift; ac_config_files=$*;;
21058esac
21059
21060case $ac_config_headers in *"
21061"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21062esac
21063
21064
21065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21066# Files that config.status was made for.
21067config_files="$ac_config_files"
21068config_headers="$ac_config_headers"
21069config_commands="$ac_config_commands"
21070
21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21074ac_cs_usage="\
21075\`$as_me' instantiates files and other configuration actions
21076from templates according to the current configuration.  Unless the files
21077and actions are specified as TAGs, all are instantiated by default.
21078
21079Usage: $0 [OPTION]... [TAG]...
21080
21081  -h, --help       print this help, then exit
21082  -V, --version    print version number and configuration settings, then exit
21083      --config     print configuration, then exit
21084  -q, --quiet, --silent
21085                   do not print progress messages
21086  -d, --debug      don't remove temporary files
21087      --recheck    update $as_me by reconfiguring in the same conditions
21088      --file=FILE[:TEMPLATE]
21089                   instantiate the configuration file FILE
21090      --header=FILE[:TEMPLATE]
21091                   instantiate the configuration header FILE
21092
21093Configuration files:
21094$config_files
21095
21096Configuration headers:
21097$config_headers
21098
21099Configuration commands:
21100$config_commands
21101
21102Report bugs to <[email protected]>."
21103
21104_ACEOF
21105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21106ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21107ac_cs_version="\\
21108LibTIFF Software config.status 4.0.3
21109configured by $0, generated by GNU Autoconf 2.69,
21110  with options \\"\$ac_cs_config\\"
21111
21112Copyright (C) 2012 Free Software Foundation, Inc.
21113This config.status script is free software; the Free Software Foundation
21114gives unlimited permission to copy, distribute and modify it."
21115
21116ac_pwd='$ac_pwd'
21117srcdir='$srcdir'
21118INSTALL='$INSTALL'
21119MKDIR_P='$MKDIR_P'
21120AWK='$AWK'
21121test -n "\$AWK" || AWK=awk
21122_ACEOF
21123
21124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21125# The default lists apply if the user does not specify any file.
21126ac_need_defaults=:
21127while test $# != 0
21128do
21129  case $1 in
21130  --*=?*)
21131    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21132    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21133    ac_shift=:
21134    ;;
21135  --*=)
21136    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21137    ac_optarg=
21138    ac_shift=:
21139    ;;
21140  *)
21141    ac_option=$1
21142    ac_optarg=$2
21143    ac_shift=shift
21144    ;;
21145  esac
21146
21147  case $ac_option in
21148  # Handling of the options.
21149  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21150    ac_cs_recheck=: ;;
21151  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21152    $as_echo "$ac_cs_version"; exit ;;
21153  --config | --confi | --conf | --con | --co | --c )
21154    $as_echo "$ac_cs_config"; exit ;;
21155  --debug | --debu | --deb | --de | --d | -d )
21156    debug=: ;;
21157  --file | --fil | --fi | --f )
21158    $ac_shift
21159    case $ac_optarg in
21160    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21161    '') as_fn_error $? "missing file argument" ;;
21162    esac
21163    as_fn_append CONFIG_FILES " '$ac_optarg'"
21164    ac_need_defaults=false;;
21165  --header | --heade | --head | --hea )
21166    $ac_shift
21167    case $ac_optarg in
21168    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21169    esac
21170    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21171    ac_need_defaults=false;;
21172  --he | --h)
21173    # Conflict between --help and --header
21174    as_fn_error $? "ambiguous option: \`$1'
21175Try \`$0 --help' for more information.";;
21176  --help | --hel | -h )
21177    $as_echo "$ac_cs_usage"; exit ;;
21178  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21179  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21180    ac_cs_silent=: ;;
21181
21182  # This is an error.
21183  -*) as_fn_error $? "unrecognized option: \`$1'
21184Try \`$0 --help' for more information." ;;
21185
21186  *) as_fn_append ac_config_targets " $1"
21187     ac_need_defaults=false ;;
21188
21189  esac
21190  shift
21191done
21192
21193ac_configure_extra_args=
21194
21195if $ac_cs_silent; then
21196  exec 6>/dev/null
21197  ac_configure_extra_args="$ac_configure_extra_args --silent"
21198fi
21199
21200_ACEOF
21201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21202if \$ac_cs_recheck; then
21203  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21204  shift
21205  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21206  CONFIG_SHELL='$SHELL'
21207  export CONFIG_SHELL
21208  exec "\$@"
21209fi
21210
21211_ACEOF
21212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21213exec 5>>config.log
21214{
21215  echo
21216  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21217## Running $as_me. ##
21218_ASBOX
21219  $as_echo "$ac_log"
21220} >&5
21221
21222_ACEOF
21223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21224#
21225# INIT-COMMANDS
21226#
21227AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21228
21229
21230# The HP-UX ksh and POSIX shell print the target directory to stdout
21231# if CDPATH is set.
21232(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21233
21234sed_quote_subst='$sed_quote_subst'
21235double_quote_subst='$double_quote_subst'
21236delay_variable_subst='$delay_variable_subst'
21237macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21238macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21239AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21240DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21241OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21242enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21243enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21244pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21245enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21246shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21247SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21248ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21249PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21250host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21251host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21252host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21253build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21254build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21255build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21256SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21257Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21258GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21259EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21260FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21261LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21262NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21263LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21264max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21265ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21266exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21267lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21268lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21269lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21270lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21271lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21272reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21273reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21274deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21275file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21276file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21277want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21278sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21279AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21280AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21281archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21282STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21283RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21284old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21285old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21286old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21287lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21288CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21289CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21290compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21291GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21292lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21293lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21294lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21295lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21296lt_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"`'
21297lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21298nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21299lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21300lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21301objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21302MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21303lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21304lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21305lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21306lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21307lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21308need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21309MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21310DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21311NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21312LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21313OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21314OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21315libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21316shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21317extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21318archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21319enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21320export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21321whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21322compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21323old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21324old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21325archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21326archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21327module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21328module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21329with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21330allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21331no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21332hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21333hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21334hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21335hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21336hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21337hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21338hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21339inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21340link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21341always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21342export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21343exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21344include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21345prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21346postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21347file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21348variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21349need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21350need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21351version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21352runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21353shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21354shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21355libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21356library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21357soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21358install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21359postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21360postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21361finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21362finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21363hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21364sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21365sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21366hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21367enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21368enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21369enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21370old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21371striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21372compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21373predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21374postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21375predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21376postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21377compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21378LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21379reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21380reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21381old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21382compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21383GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21384lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21385lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21386lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21387lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21388lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21389archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21390enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21391export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21392whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21393compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21394old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21395old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21396archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21397archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21398module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21399module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21400with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21401allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21402no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21403hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21404hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21405hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21406hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21407hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21408hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21409hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21410inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21411link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21412always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21413export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21414exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21415include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21416prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21417postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21418file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21419hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21420compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21421predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21422postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21423predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21424postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21425compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21426
21427LTCC='$LTCC'
21428LTCFLAGS='$LTCFLAGS'
21429compiler='$compiler_DEFAULT'
21430
21431# A function that is used when there is no print builtin or printf.
21432func_fallback_echo ()
21433{
21434  eval 'cat <<_LTECHO_EOF
21435\$1
21436_LTECHO_EOF'
21437}
21438
21439# Quote evaled strings.
21440for var in AS \
21441DLLTOOL \
21442OBJDUMP \
21443SHELL \
21444ECHO \
21445PATH_SEPARATOR \
21446SED \
21447GREP \
21448EGREP \
21449FGREP \
21450LD \
21451NM \
21452LN_S \
21453lt_SP2NL \
21454lt_NL2SP \
21455reload_flag \
21456deplibs_check_method \
21457file_magic_cmd \
21458file_magic_glob \
21459want_nocaseglob \
21460sharedlib_from_linklib_cmd \
21461AR \
21462AR_FLAGS \
21463archiver_list_spec \
21464STRIP \
21465RANLIB \
21466CC \
21467CFLAGS \
21468compiler \
21469lt_cv_sys_global_symbol_pipe \
21470lt_cv_sys_global_symbol_to_cdecl \
21471lt_cv_sys_global_symbol_to_import \
21472lt_cv_sys_global_symbol_to_c_name_address \
21473lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21474lt_cv_nm_interface \
21475nm_file_list_spec \
21476lt_cv_truncate_bin \
21477lt_prog_compiler_no_builtin_flag \
21478lt_prog_compiler_pic \
21479lt_prog_compiler_wl \
21480lt_prog_compiler_static \
21481lt_cv_prog_compiler_c_o \
21482need_locks \
21483MANIFEST_TOOL \
21484DSYMUTIL \
21485NMEDIT \
21486LIPO \
21487OTOOL \
21488OTOOL64 \
21489shrext_cmds \
21490export_dynamic_flag_spec \
21491whole_archive_flag_spec \
21492compiler_needs_object \
21493with_gnu_ld \
21494allow_undefined_flag \
21495no_undefined_flag \
21496hardcode_libdir_flag_spec \
21497hardcode_libdir_separator \
21498exclude_expsyms \
21499include_expsyms \
21500file_list_spec \
21501variables_saved_for_relink \
21502libname_spec \
21503library_names_spec \
21504soname_spec \
21505install_override_mode \
21506finish_eval \
21507old_striplib \
21508striplib \
21509compiler_lib_search_dirs \
21510predep_objects \
21511postdep_objects \
21512predeps \
21513postdeps \
21514compiler_lib_search_path \
21515LD_CXX \
21516reload_flag_CXX \
21517compiler_CXX \
21518lt_prog_compiler_no_builtin_flag_CXX \
21519lt_prog_compiler_pic_CXX \
21520lt_prog_compiler_wl_CXX \
21521lt_prog_compiler_static_CXX \
21522lt_cv_prog_compiler_c_o_CXX \
21523export_dynamic_flag_spec_CXX \
21524whole_archive_flag_spec_CXX \
21525compiler_needs_object_CXX \
21526with_gnu_ld_CXX \
21527allow_undefined_flag_CXX \
21528no_undefined_flag_CXX \
21529hardcode_libdir_flag_spec_CXX \
21530hardcode_libdir_separator_CXX \
21531exclude_expsyms_CXX \
21532include_expsyms_CXX \
21533file_list_spec_CXX \
21534compiler_lib_search_dirs_CXX \
21535predep_objects_CXX \
21536postdep_objects_CXX \
21537predeps_CXX \
21538postdeps_CXX \
21539compiler_lib_search_path_CXX; do
21540    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21541    *[\\\\\\\`\\"\\\$]*)
21542      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21543      ;;
21544    *)
21545      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21546      ;;
21547    esac
21548done
21549
21550# Double-quote double-evaled strings.
21551for var in reload_cmds \
21552old_postinstall_cmds \
21553old_postuninstall_cmds \
21554old_archive_cmds \
21555extract_expsyms_cmds \
21556old_archive_from_new_cmds \
21557old_archive_from_expsyms_cmds \
21558archive_cmds \
21559archive_expsym_cmds \
21560module_cmds \
21561module_expsym_cmds \
21562export_symbols_cmds \
21563prelink_cmds \
21564postlink_cmds \
21565postinstall_cmds \
21566postuninstall_cmds \
21567finish_cmds \
21568sys_lib_search_path_spec \
21569sys_lib_dlsearch_path_spec \
21570reload_cmds_CXX \
21571old_archive_cmds_CXX \
21572old_archive_from_new_cmds_CXX \
21573old_archive_from_expsyms_cmds_CXX \
21574archive_cmds_CXX \
21575archive_expsym_cmds_CXX \
21576module_cmds_CXX \
21577module_expsym_cmds_CXX \
21578export_symbols_cmds_CXX \
21579prelink_cmds_CXX \
21580postlink_cmds_CXX; do
21581    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21582    *[\\\\\\\`\\"\\\$]*)
21583      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21584      ;;
21585    *)
21586      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21587      ;;
21588    esac
21589done
21590
21591ac_aux_dir='$ac_aux_dir'
21592
21593# See if we are running on zsh, and set the options that allow our
21594# commands through without removal of \ escapes INIT.
21595if test -n "\${ZSH_VERSION+set}"; then
21596   setopt NO_GLOB_SUBST
21597fi
21598
21599
21600    PACKAGE='$PACKAGE'
21601    VERSION='$VERSION'
21602    RM='$RM'
21603    ofile='$ofile'
21604
21605
21606
21607
21608
21609
21610_ACEOF
21611
21612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21613
21614# Handling of arguments.
21615for ac_config_target in $ac_config_targets
21616do
21617  case $ac_config_target in
21618    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21619    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21620    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21621    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21622    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21623    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21624    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21625    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21626    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21627    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21628    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
21629    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
21630    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21631    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21632    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21633    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21634    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21635    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21636    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21637    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21638    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
21639    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21640    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21641    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21642    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21643    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21644
21645  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21646  esac
21647done
21648
21649
21650# If the user did not use the arguments to specify the items to instantiate,
21651# then the envvar interface is used.  Set only those that are not.
21652# We use the long form for the default assignment because of an extremely
21653# bizarre bug on SunOS 4.1.3.
21654if $ac_need_defaults; then
21655  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21656  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21657  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21658fi
21659
21660# Have a temporary directory for convenience.  Make it in the build tree
21661# simply because there is no reason against having it here, and in addition,
21662# creating and moving files from /tmp can sometimes cause problems.
21663# Hook for its removal unless debugging.
21664# Note that there is a small window in which the directory will not be cleaned:
21665# after its creation but before its name has been assigned to `$tmp'.
21666$debug ||
21667{
21668  tmp= ac_tmp=
21669  trap 'exit_status=$?
21670  : "${ac_tmp:=$tmp}"
21671  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21672' 0
21673  trap 'as_fn_exit 1' 1 2 13 15
21674}
21675# Create a (secure) tmp directory for tmp files.
21676
21677{
21678  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21679  test -d "$tmp"
21680}  ||
21681{
21682  tmp=./conf$$-$RANDOM
21683  (umask 077 && mkdir "$tmp")
21684} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21685ac_tmp=$tmp
21686
21687# Set up the scripts for CONFIG_FILES section.
21688# No need to generate them if there are no CONFIG_FILES.
21689# This happens for instance with `./config.status config.h'.
21690if test -n "$CONFIG_FILES"; then
21691
21692
21693ac_cr=`echo X | tr X '\015'`
21694# On cygwin, bash can eat \r inside `` if the user requested igncr.
21695# But we know of no other shell where ac_cr would be empty at this
21696# point, so we can use a bashism as a fallback.
21697if test "x$ac_cr" = x; then
21698  eval ac_cr=\$\'\\r\'
21699fi
21700ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21701if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21702  ac_cs_awk_cr='\\r'
21703else
21704  ac_cs_awk_cr=$ac_cr
21705fi
21706
21707echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21708_ACEOF
21709
21710
21711{
21712  echo "cat >conf$$subs.awk <<_ACEOF" &&
21713  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21714  echo "_ACEOF"
21715} >conf$$subs.sh ||
21716  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21717ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21718ac_delim='%!_!# '
21719for ac_last_try in false false false false false :; do
21720  . ./conf$$subs.sh ||
21721    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21722
21723  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21724  if test $ac_delim_n = $ac_delim_num; then
21725    break
21726  elif $ac_last_try; then
21727    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21728  else
21729    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21730  fi
21731done
21732rm -f conf$$subs.sh
21733
21734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21735cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21736_ACEOF
21737sed -n '
21738h
21739s/^/S["/; s/!.*/"]=/
21740p
21741g
21742s/^[^!]*!//
21743:repl
21744t repl
21745s/'"$ac_delim"'$//
21746t delim
21747:nl
21748h
21749s/\(.\{148\}\)..*/\1/
21750t more1
21751s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21752p
21753n
21754b repl
21755:more1
21756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21757p
21758g
21759s/.\{148\}//
21760t nl
21761:delim
21762h
21763s/\(.\{148\}\)..*/\1/
21764t more2
21765s/["\\]/\\&/g; s/^/"/; s/$/"/
21766p
21767b
21768:more2
21769s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21770p
21771g
21772s/.\{148\}//
21773t delim
21774' <conf$$subs.awk | sed '
21775/^[^""]/{
21776  N
21777  s/\n//
21778}
21779' >>$CONFIG_STATUS || ac_write_fail=1
21780rm -f conf$$subs.awk
21781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21782_ACAWK
21783cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21784  for (key in S) S_is_set[key] = 1
21785  FS = ""
21786
21787}
21788{
21789  line = $ 0
21790  nfields = split(line, field, "@")
21791  substed = 0
21792  len = length(field[1])
21793  for (i = 2; i < nfields; i++) {
21794    key = field[i]
21795    keylen = length(key)
21796    if (S_is_set[key]) {
21797      value = S[key]
21798      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21799      len += length(value) + length(field[++i])
21800      substed = 1
21801    } else
21802      len += 1 + keylen
21803  }
21804
21805  print line
21806}
21807
21808_ACAWK
21809_ACEOF
21810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21811if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21812  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21813else
21814  cat
21815fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21816  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21817_ACEOF
21818
21819# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21820# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21821# trailing colons and then remove the whole line if VPATH becomes empty
21822# (actually we leave an empty line to preserve line numbers).
21823if test "x$srcdir" = x.; then
21824  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21825h
21826s///
21827s/^/:/
21828s/[	 ]*$/:/
21829s/:\$(srcdir):/:/g
21830s/:\${srcdir}:/:/g
21831s/:@srcdir@:/:/g
21832s/^:*//
21833s/:*$//
21834x
21835s/\(=[	 ]*\).*/\1/
21836G
21837s/\n//
21838s/^[^=]*=[	 ]*$//
21839}'
21840fi
21841
21842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21843fi # test -n "$CONFIG_FILES"
21844
21845# Set up the scripts for CONFIG_HEADERS section.
21846# No need to generate them if there are no CONFIG_HEADERS.
21847# This happens for instance with `./config.status Makefile'.
21848if test -n "$CONFIG_HEADERS"; then
21849cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21850BEGIN {
21851_ACEOF
21852
21853# Transform confdefs.h into an awk script `defines.awk', embedded as
21854# here-document in config.status, that substitutes the proper values into
21855# config.h.in to produce config.h.
21856
21857# Create a delimiter string that does not exist in confdefs.h, to ease
21858# handling of long lines.
21859ac_delim='%!_!# '
21860for ac_last_try in false false :; do
21861  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21862  if test -z "$ac_tt"; then
21863    break
21864  elif $ac_last_try; then
21865    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21866  else
21867    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21868  fi
21869done
21870
21871# For the awk script, D is an array of macro values keyed by name,
21872# likewise P contains macro parameters if any.  Preserve backslash
21873# newline sequences.
21874
21875ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21876sed -n '
21877s/.\{148\}/&'"$ac_delim"'/g
21878t rset
21879:rset
21880s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21881t def
21882d
21883:def
21884s/\\$//
21885t bsnl
21886s/["\\]/\\&/g
21887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21888D["\1"]=" \3"/p
21889s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21890d
21891:bsnl
21892s/["\\]/\\&/g
21893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21894D["\1"]=" \3\\\\\\n"\\/p
21895t cont
21896s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21897t cont
21898d
21899:cont
21900n
21901s/.\{148\}/&'"$ac_delim"'/g
21902t clear
21903:clear
21904s/\\$//
21905t bsnlc
21906s/["\\]/\\&/g; s/^/"/; s/$/"/p
21907d
21908:bsnlc
21909s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21910b cont
21911' <confdefs.h | sed '
21912s/'"$ac_delim"'/"\\\
21913"/g' >>$CONFIG_STATUS || ac_write_fail=1
21914
21915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21916  for (key in D) D_is_set[key] = 1
21917  FS = ""
21918}
21919/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21920  line = \$ 0
21921  split(line, arg, " ")
21922  if (arg[1] == "#") {
21923    defundef = arg[2]
21924    mac1 = arg[3]
21925  } else {
21926    defundef = substr(arg[1], 2)
21927    mac1 = arg[2]
21928  }
21929  split(mac1, mac2, "(") #)
21930  macro = mac2[1]
21931  prefix = substr(line, 1, index(line, defundef) - 1)
21932  if (D_is_set[macro]) {
21933    # Preserve the white space surrounding the "#".
21934    print prefix "define", macro P[macro] D[macro]
21935    next
21936  } else {
21937    # Replace #undef with comments.  This is necessary, for example,
21938    # in the case of _POSIX_SOURCE, which is predefined and required
21939    # on some systems where configure will not decide to define it.
21940    if (defundef == "undef") {
21941      print "/*", prefix defundef, macro, "*/"
21942      next
21943    }
21944  }
21945}
21946{ print }
21947_ACAWK
21948_ACEOF
21949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21950  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21951fi # test -n "$CONFIG_HEADERS"
21952
21953
21954eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21955shift
21956for ac_tag
21957do
21958  case $ac_tag in
21959  :[FHLC]) ac_mode=$ac_tag; continue;;
21960  esac
21961  case $ac_mode$ac_tag in
21962  :[FHL]*:*);;
21963  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21964  :[FH]-) ac_tag=-:-;;
21965  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21966  esac
21967  ac_save_IFS=$IFS
21968  IFS=:
21969  set x $ac_tag
21970  IFS=$ac_save_IFS
21971  shift
21972  ac_file=$1
21973  shift
21974
21975  case $ac_mode in
21976  :L) ac_source=$1;;
21977  :[FH])
21978    ac_file_inputs=
21979    for ac_f
21980    do
21981      case $ac_f in
21982      -) ac_f="$ac_tmp/stdin";;
21983      *) # Look for the file first in the build tree, then in the source tree
21984	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21985	 # because $ac_f cannot contain `:'.
21986	 test -f "$ac_f" ||
21987	   case $ac_f in
21988	   [\\/$]*) false;;
21989	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21990	   esac ||
21991	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21992      esac
21993      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21994      as_fn_append ac_file_inputs " '$ac_f'"
21995    done
21996
21997    # Let's still pretend it is `configure' which instantiates (i.e., don't
21998    # use $as_me), people would be surprised to read:
21999    #    /* config.h.  Generated by config.status.  */
22000    configure_input='Generated from '`
22001	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22002	`' by configure.'
22003    if test x"$ac_file" != x-; then
22004      configure_input="$ac_file.  $configure_input"
22005      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22006$as_echo "$as_me: creating $ac_file" >&6;}
22007    fi
22008    # Neutralize special characters interpreted by sed in replacement strings.
22009    case $configure_input in #(
22010    *\&* | *\|* | *\\* )
22011       ac_sed_conf_input=`$as_echo "$configure_input" |
22012       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22013    *) ac_sed_conf_input=$configure_input;;
22014    esac
22015
22016    case $ac_tag in
22017    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22018      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22019    esac
22020    ;;
22021  esac
22022
22023  ac_dir=`$as_dirname -- "$ac_file" ||
22024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22025	 X"$ac_file" : 'X\(//\)[^/]' \| \
22026	 X"$ac_file" : 'X\(//\)$' \| \
22027	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22028$as_echo X"$ac_file" |
22029    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22030	    s//\1/
22031	    q
22032	  }
22033	  /^X\(\/\/\)[^/].*/{
22034	    s//\1/
22035	    q
22036	  }
22037	  /^X\(\/\/\)$/{
22038	    s//\1/
22039	    q
22040	  }
22041	  /^X\(\/\).*/{
22042	    s//\1/
22043	    q
22044	  }
22045	  s/.*/./; q'`
22046  as_dir="$ac_dir"; as_fn_mkdir_p
22047  ac_builddir=.
22048
22049case "$ac_dir" in
22050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22051*)
22052  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22053  # A ".." for each directory in $ac_dir_suffix.
22054  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22055  case $ac_top_builddir_sub in
22056  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22057  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22058  esac ;;
22059esac
22060ac_abs_top_builddir=$ac_pwd
22061ac_abs_builddir=$ac_pwd$ac_dir_suffix
22062# for backward compatibility:
22063ac_top_builddir=$ac_top_build_prefix
22064
22065case $srcdir in
22066  .)  # We are building in place.
22067    ac_srcdir=.
22068    ac_top_srcdir=$ac_top_builddir_sub
22069    ac_abs_top_srcdir=$ac_pwd ;;
22070  [\\/]* | ?:[\\/]* )  # Absolute name.
22071    ac_srcdir=$srcdir$ac_dir_suffix;
22072    ac_top_srcdir=$srcdir
22073    ac_abs_top_srcdir=$srcdir ;;
22074  *) # Relative name.
22075    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22076    ac_top_srcdir=$ac_top_build_prefix$srcdir
22077    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22078esac
22079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22080
22081
22082  case $ac_mode in
22083  :F)
22084  #
22085  # CONFIG_FILE
22086  #
22087
22088  case $INSTALL in
22089  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22090  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22091  esac
22092  ac_MKDIR_P=$MKDIR_P
22093  case $MKDIR_P in
22094  [\\/$]* | ?:[\\/]* ) ;;
22095  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22096  esac
22097_ACEOF
22098
22099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22100# If the template does not know about datarootdir, expand it.
22101# FIXME: This hack should be removed a few years after 2.60.
22102ac_datarootdir_hack=; ac_datarootdir_seen=
22103ac_sed_dataroot='
22104/datarootdir/ {
22105  p
22106  q
22107}
22108/@datadir@/p
22109/@docdir@/p
22110/@infodir@/p
22111/@localedir@/p
22112/@mandir@/p'
22113case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22114*datarootdir*) ac_datarootdir_seen=yes;;
22115*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22116  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22117$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22118_ACEOF
22119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22120  ac_datarootdir_hack='
22121  s&@datadir@&$datadir&g
22122  s&@docdir@&$docdir&g
22123  s&@infodir@&$infodir&g
22124  s&@localedir@&$localedir&g
22125  s&@mandir@&$mandir&g
22126  s&\\\${datarootdir}&$datarootdir&g' ;;
22127esac
22128_ACEOF
22129
22130# Neutralize VPATH when `$srcdir' = `.'.
22131# Shell code in configure.ac might set extrasub.
22132# FIXME: do we really want to maintain this feature?
22133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22134ac_sed_extra="$ac_vpsub
22135$extrasub
22136_ACEOF
22137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22138:t
22139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22140s|@configure_input@|$ac_sed_conf_input|;t t
22141s&@top_builddir@&$ac_top_builddir_sub&;t t
22142s&@top_build_prefix@&$ac_top_build_prefix&;t t
22143s&@srcdir@&$ac_srcdir&;t t
22144s&@abs_srcdir@&$ac_abs_srcdir&;t t
22145s&@top_srcdir@&$ac_top_srcdir&;t t
22146s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22147s&@builddir@&$ac_builddir&;t t
22148s&@abs_builddir@&$ac_abs_builddir&;t t
22149s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22150s&@INSTALL@&$ac_INSTALL&;t t
22151s&@MKDIR_P@&$ac_MKDIR_P&;t t
22152$ac_datarootdir_hack
22153"
22154eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22155  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22156
22157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22158  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22159  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22160      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22161  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22162which seems to be undefined.  Please make sure it is defined" >&5
22163$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22164which seems to be undefined.  Please make sure it is defined" >&2;}
22165
22166  rm -f "$ac_tmp/stdin"
22167  case $ac_file in
22168  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22169  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22170  esac \
22171  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22172 ;;
22173  :H)
22174  #
22175  # CONFIG_HEADER
22176  #
22177  if test x"$ac_file" != x-; then
22178    {
22179      $as_echo "/* $configure_input  */" \
22180      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22181    } >"$ac_tmp/config.h" \
22182      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22183    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22184      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22185$as_echo "$as_me: $ac_file is unchanged" >&6;}
22186    else
22187      rm -f "$ac_file"
22188      mv "$ac_tmp/config.h" "$ac_file" \
22189	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22190    fi
22191  else
22192    $as_echo "/* $configure_input  */" \
22193      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22194      || as_fn_error $? "could not create -" "$LINENO" 5
22195  fi
22196# Compute "$ac_file"'s index in $config_headers.
22197_am_arg="$ac_file"
22198_am_stamp_count=1
22199for _am_header in $config_headers :; do
22200  case $_am_header in
22201    $_am_arg | $_am_arg:* )
22202      break ;;
22203    * )
22204      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22205  esac
22206done
22207echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22208$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22209	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22210	 X"$_am_arg" : 'X\(//\)$' \| \
22211	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22212$as_echo X"$_am_arg" |
22213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22214	    s//\1/
22215	    q
22216	  }
22217	  /^X\(\/\/\)[^/].*/{
22218	    s//\1/
22219	    q
22220	  }
22221	  /^X\(\/\/\)$/{
22222	    s//\1/
22223	    q
22224	  }
22225	  /^X\(\/\).*/{
22226	    s//\1/
22227	    q
22228	  }
22229	  s/.*/./; q'`/stamp-h$_am_stamp_count
22230 ;;
22231
22232  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22233$as_echo "$as_me: executing $ac_file commands" >&6;}
22234 ;;
22235  esac
22236
22237
22238  case $ac_file$ac_mode in
22239    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22240  # Older Autoconf quotes --file arguments for eval, but not when files
22241  # are listed without --file.  Let's play safe and only enable the eval
22242  # if we detect the quoting.
22243  case $CONFIG_FILES in
22244  *\'*) eval set x "$CONFIG_FILES" ;;
22245  *)   set x $CONFIG_FILES ;;
22246  esac
22247  shift
22248  for mf
22249  do
22250    # Strip MF so we end up with the name of the file.
22251    mf=`echo "$mf" | sed -e 's/:.*$//'`
22252    # Check whether this is an Automake generated Makefile or not.
22253    # We used to match only the files named 'Makefile.in', but
22254    # some people rename them; so instead we look at the file content.
22255    # Grep'ing the first line is not enough: some people post-process
22256    # each Makefile.in and add a new line on top of each file to say so.
22257    # Grep'ing the whole file is not good either: AIX grep has a line
22258    # limit of 2048, but all sed's we know have understand at least 4000.
22259    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22260      dirpart=`$as_dirname -- "$mf" ||
22261$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22262	 X"$mf" : 'X\(//\)[^/]' \| \
22263	 X"$mf" : 'X\(//\)$' \| \
22264	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22265$as_echo X"$mf" |
22266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22267	    s//\1/
22268	    q
22269	  }
22270	  /^X\(\/\/\)[^/].*/{
22271	    s//\1/
22272	    q
22273	  }
22274	  /^X\(\/\/\)$/{
22275	    s//\1/
22276	    q
22277	  }
22278	  /^X\(\/\).*/{
22279	    s//\1/
22280	    q
22281	  }
22282	  s/.*/./; q'`
22283    else
22284      continue
22285    fi
22286    # Extract the definition of DEPDIR, am__include, and am__quote
22287    # from the Makefile without running 'make'.
22288    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22289    test -z "$DEPDIR" && continue
22290    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22291    test -z "$am__include" && continue
22292    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22293    # Find all dependency output files, they are included files with
22294    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22295    # simplest approach to changing $(DEPDIR) to its actual value in the
22296    # expansion.
22297    for file in `sed -n "
22298      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22299	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22300      # Make sure the directory exists.
22301      test -f "$dirpart/$file" && continue
22302      fdir=`$as_dirname -- "$file" ||
22303$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22304	 X"$file" : 'X\(//\)[^/]' \| \
22305	 X"$file" : 'X\(//\)$' \| \
22306	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22307$as_echo X"$file" |
22308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22309	    s//\1/
22310	    q
22311	  }
22312	  /^X\(\/\/\)[^/].*/{
22313	    s//\1/
22314	    q
22315	  }
22316	  /^X\(\/\/\)$/{
22317	    s//\1/
22318	    q
22319	  }
22320	  /^X\(\/\).*/{
22321	    s//\1/
22322	    q
22323	  }
22324	  s/.*/./; q'`
22325      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22326      # echo "creating $dirpart/$file"
22327      echo '# dummy' > "$dirpart/$file"
22328    done
22329  done
22330}
22331 ;;
22332    "libtool":C)
22333
22334    # See if we are running on zsh, and set the options that allow our
22335    # commands through without removal of \ escapes.
22336    if test -n "${ZSH_VERSION+set}"; then
22337      setopt NO_GLOB_SUBST
22338    fi
22339
22340    cfgfile=${ofile}T
22341    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22342    $RM "$cfgfile"
22343
22344    cat <<_LT_EOF >> "$cfgfile"
22345#! $SHELL
22346# Generated automatically by $as_me ($PACKAGE) $VERSION
22347# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22348# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22349
22350# Provide generalized library-building support services.
22351# Written by Gordon Matzigkeit, 1996
22352
22353# Copyright (C) 2014 Free Software Foundation, Inc.
22354# This is free software; see the source for copying conditions.  There is NO
22355# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22356
22357# GNU Libtool is free software; you can redistribute it and/or modify
22358# it under the terms of the GNU General Public License as published by
22359# the Free Software Foundation; either version 2 of of the License, or
22360# (at your option) any later version.
22361#
22362# As a special exception to the GNU General Public License, if you
22363# distribute this file as part of a program or library that is built
22364# using GNU Libtool, you may include this file under the  same
22365# distribution terms that you use for the rest of that program.
22366#
22367# GNU Libtool is distributed in the hope that it will be useful, but
22368# WITHOUT ANY WARRANTY; without even the implied warranty of
22369# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22370# GNU General Public License for more details.
22371#
22372# You should have received a copy of the GNU General Public License
22373# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22374
22375
22376# The names of the tagged configurations supported by this script.
22377available_tags='CXX '
22378
22379# ### BEGIN LIBTOOL CONFIG
22380
22381# Which release of libtool.m4 was used?
22382macro_version=$macro_version
22383macro_revision=$macro_revision
22384
22385# Assembler program.
22386AS=$lt_AS
22387
22388# DLL creation program.
22389DLLTOOL=$lt_DLLTOOL
22390
22391# Object dumper program.
22392OBJDUMP=$lt_OBJDUMP
22393
22394# Whether or not to build shared libraries.
22395build_libtool_libs=$enable_shared
22396
22397# Whether or not to build static libraries.
22398build_old_libs=$enable_static
22399
22400# What type of objects to build.
22401pic_mode=$pic_mode
22402
22403# Whether or not to optimize for fast installation.
22404fast_install=$enable_fast_install
22405
22406# Shared archive member basename,for filename based shared library versioning on AIX.
22407shared_archive_member_spec=$shared_archive_member_spec
22408
22409# Shell to use when invoking shell scripts.
22410SHELL=$lt_SHELL
22411
22412# An echo program that protects backslashes.
22413ECHO=$lt_ECHO
22414
22415# The PATH separator for the build system.
22416PATH_SEPARATOR=$lt_PATH_SEPARATOR
22417
22418# The host system.
22419host_alias=$host_alias
22420host=$host
22421host_os=$host_os
22422
22423# The build system.
22424build_alias=$build_alias
22425build=$build
22426build_os=$build_os
22427
22428# A sed program that does not truncate output.
22429SED=$lt_SED
22430
22431# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22432Xsed="\$SED -e 1s/^X//"
22433
22434# A grep program that handles long lines.
22435GREP=$lt_GREP
22436
22437# An ERE matcher.
22438EGREP=$lt_EGREP
22439
22440# A literal string matcher.
22441FGREP=$lt_FGREP
22442
22443# A BSD- or MS-compatible name lister.
22444NM=$lt_NM
22445
22446# Whether we need soft or hard links.
22447LN_S=$lt_LN_S
22448
22449# What is the maximum length of a command?
22450max_cmd_len=$max_cmd_len
22451
22452# Object file suffix (normally "o").
22453objext=$ac_objext
22454
22455# Executable file suffix (normally "").
22456exeext=$exeext
22457
22458# whether the shell understands "unset".
22459lt_unset=$lt_unset
22460
22461# turn spaces into newlines.
22462SP2NL=$lt_lt_SP2NL
22463
22464# turn newlines into spaces.
22465NL2SP=$lt_lt_NL2SP
22466
22467# convert \$build file names to \$host format.
22468to_host_file_cmd=$lt_cv_to_host_file_cmd
22469
22470# convert \$build files to toolchain format.
22471to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22472
22473# Method to check whether dependent libraries are shared objects.
22474deplibs_check_method=$lt_deplibs_check_method
22475
22476# Command to use when deplibs_check_method = "file_magic".
22477file_magic_cmd=$lt_file_magic_cmd
22478
22479# How to find potential files when deplibs_check_method = "file_magic".
22480file_magic_glob=$lt_file_magic_glob
22481
22482# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22483want_nocaseglob=$lt_want_nocaseglob
22484
22485# Command to associate shared and link libraries.
22486sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22487
22488# The archiver.
22489AR=$lt_AR
22490
22491# Flags to create an archive.
22492AR_FLAGS=$lt_AR_FLAGS
22493
22494# How to feed a file listing to the archiver.
22495archiver_list_spec=$lt_archiver_list_spec
22496
22497# A symbol stripping program.
22498STRIP=$lt_STRIP
22499
22500# Commands used to install an old-style archive.
22501RANLIB=$lt_RANLIB
22502old_postinstall_cmds=$lt_old_postinstall_cmds
22503old_postuninstall_cmds=$lt_old_postuninstall_cmds
22504
22505# Whether to use a lock for old archive extraction.
22506lock_old_archive_extraction=$lock_old_archive_extraction
22507
22508# A C compiler.
22509LTCC=$lt_CC
22510
22511# LTCC compiler flags.
22512LTCFLAGS=$lt_CFLAGS
22513
22514# Take the output of nm and produce a listing of raw symbols and C names.
22515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22516
22517# Transform the output of nm in a proper C declaration.
22518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22519
22520# Transform the output of nm into a list of symbols to manually relocate.
22521global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22522
22523# Transform the output of nm in a C name address pair.
22524global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22525
22526# Transform the output of nm in a C name address pair when lib prefix is needed.
22527global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22528
22529# The name lister interface.
22530nm_interface=$lt_lt_cv_nm_interface
22531
22532# Specify filename containing input files for \$NM.
22533nm_file_list_spec=$lt_nm_file_list_spec
22534
22535# The root where to search for dependent libraries,and where our libraries should be installed.
22536lt_sysroot=$lt_sysroot
22537
22538# Command to truncate a binary pipe.
22539lt_truncate_bin=$lt_lt_cv_truncate_bin
22540
22541# The name of the directory that contains temporary libtool files.
22542objdir=$objdir
22543
22544# Used to examine libraries when file_magic_cmd begins with "file".
22545MAGIC_CMD=$MAGIC_CMD
22546
22547# Must we lock files when doing compilation?
22548need_locks=$lt_need_locks
22549
22550# Manifest tool.
22551MANIFEST_TOOL=$lt_MANIFEST_TOOL
22552
22553# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22554DSYMUTIL=$lt_DSYMUTIL
22555
22556# Tool to change global to local symbols on Mac OS X.
22557NMEDIT=$lt_NMEDIT
22558
22559# Tool to manipulate fat objects and archives on Mac OS X.
22560LIPO=$lt_LIPO
22561
22562# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22563OTOOL=$lt_OTOOL
22564
22565# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22566OTOOL64=$lt_OTOOL64
22567
22568# Old archive suffix (normally "a").
22569libext=$libext
22570
22571# Shared library suffix (normally ".so").
22572shrext_cmds=$lt_shrext_cmds
22573
22574# The commands to extract the exported symbol list from a shared archive.
22575extract_expsyms_cmds=$lt_extract_expsyms_cmds
22576
22577# Variables whose values should be saved in libtool wrapper scripts and
22578# restored at link time.
22579variables_saved_for_relink=$lt_variables_saved_for_relink
22580
22581# Do we need the "lib" prefix for modules?
22582need_lib_prefix=$need_lib_prefix
22583
22584# Do we need a version for libraries?
22585need_version=$need_version
22586
22587# Library versioning type.
22588version_type=$version_type
22589
22590# Shared library runtime path variable.
22591runpath_var=$runpath_var
22592
22593# Shared library path variable.
22594shlibpath_var=$shlibpath_var
22595
22596# Is shlibpath searched before the hard-coded library search path?
22597shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22598
22599# Format of library name prefix.
22600libname_spec=$lt_libname_spec
22601
22602# List of archive names.  First name is the real one, the rest are links.
22603# The last name is the one that the linker finds with -lNAME
22604library_names_spec=$lt_library_names_spec
22605
22606# The coded name of the library, if different from the real name.
22607soname_spec=$lt_soname_spec
22608
22609# Permission mode override for installation of shared libraries.
22610install_override_mode=$lt_install_override_mode
22611
22612# Command to use after installation of a shared archive.
22613postinstall_cmds=$lt_postinstall_cmds
22614
22615# Command to use after uninstallation of a shared archive.
22616postuninstall_cmds=$lt_postuninstall_cmds
22617
22618# Commands used to finish a libtool library installation in a directory.
22619finish_cmds=$lt_finish_cmds
22620
22621# As "finish_cmds", except a single script fragment to be evaled but
22622# not shown.
22623finish_eval=$lt_finish_eval
22624
22625# Whether we should hardcode library paths into libraries.
22626hardcode_into_libs=$hardcode_into_libs
22627
22628# Compile-time system search path for libraries.
22629sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22630
22631# Run-time system search path for libraries.
22632sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22633
22634# Whether dlopen is supported.
22635dlopen_support=$enable_dlopen
22636
22637# Whether dlopen of programs is supported.
22638dlopen_self=$enable_dlopen_self
22639
22640# Whether dlopen of statically linked programs is supported.
22641dlopen_self_static=$enable_dlopen_self_static
22642
22643# Commands to strip libraries.
22644old_striplib=$lt_old_striplib
22645striplib=$lt_striplib
22646
22647
22648# The linker used to build libraries.
22649LD=$lt_LD
22650
22651# How to create reloadable object files.
22652reload_flag=$lt_reload_flag
22653reload_cmds=$lt_reload_cmds
22654
22655# Commands used to build an old-style archive.
22656old_archive_cmds=$lt_old_archive_cmds
22657
22658# A language specific compiler.
22659CC=$lt_compiler
22660
22661# Is the compiler the GNU compiler?
22662with_gcc=$GCC
22663
22664# Compiler flag to turn off builtin functions.
22665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22666
22667# Additional compiler flags for building library objects.
22668pic_flag=$lt_lt_prog_compiler_pic
22669
22670# How to pass a linker flag through the compiler.
22671wl=$lt_lt_prog_compiler_wl
22672
22673# Compiler flag to prevent dynamic linking.
22674link_static_flag=$lt_lt_prog_compiler_static
22675
22676# Does compiler simultaneously support -c and -o options?
22677compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22678
22679# Whether or not to add -lc for building shared libraries.
22680build_libtool_need_lc=$archive_cmds_need_lc
22681
22682# Whether or not to disallow shared libs when runtime libs are static.
22683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22684
22685# Compiler flag to allow reflexive dlopens.
22686export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22687
22688# Compiler flag to generate shared objects directly from archives.
22689whole_archive_flag_spec=$lt_whole_archive_flag_spec
22690
22691# Whether the compiler copes with passing no objects directly.
22692compiler_needs_object=$lt_compiler_needs_object
22693
22694# Create an old-style archive from a shared archive.
22695old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22696
22697# Create a temporary old-style archive to link instead of a shared archive.
22698old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22699
22700# Commands used to build a shared archive.
22701archive_cmds=$lt_archive_cmds
22702archive_expsym_cmds=$lt_archive_expsym_cmds
22703
22704# Commands used to build a loadable module if different from building
22705# a shared archive.
22706module_cmds=$lt_module_cmds
22707module_expsym_cmds=$lt_module_expsym_cmds
22708
22709# Whether we are building with GNU ld or not.
22710with_gnu_ld=$lt_with_gnu_ld
22711
22712# Flag that allows shared libraries with undefined symbols to be built.
22713allow_undefined_flag=$lt_allow_undefined_flag
22714
22715# Flag that enforces no undefined symbols.
22716no_undefined_flag=$lt_no_undefined_flag
22717
22718# Flag to hardcode \$libdir into a binary during linking.
22719# This must work even if \$libdir does not exist
22720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22721
22722# Whether we need a single "-rpath" flag with a separated argument.
22723hardcode_libdir_separator=$lt_hardcode_libdir_separator
22724
22725# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22726# DIR into the resulting binary.
22727hardcode_direct=$hardcode_direct
22728
22729# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22730# DIR into the resulting binary and the resulting library dependency is
22731# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22732# library is relocated.
22733hardcode_direct_absolute=$hardcode_direct_absolute
22734
22735# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22736# into the resulting binary.
22737hardcode_minus_L=$hardcode_minus_L
22738
22739# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22740# into the resulting binary.
22741hardcode_shlibpath_var=$hardcode_shlibpath_var
22742
22743# Set to "yes" if building a shared library automatically hardcodes DIR
22744# into the library and all subsequent libraries and executables linked
22745# against it.
22746hardcode_automatic=$hardcode_automatic
22747
22748# Set to yes if linker adds runtime paths of dependent libraries
22749# to runtime path list.
22750inherit_rpath=$inherit_rpath
22751
22752# Whether libtool must link a program against all its dependency libraries.
22753link_all_deplibs=$link_all_deplibs
22754
22755# Set to "yes" if exported symbols are required.
22756always_export_symbols=$always_export_symbols
22757
22758# The commands to list exported symbols.
22759export_symbols_cmds=$lt_export_symbols_cmds
22760
22761# Symbols that should not be listed in the preloaded symbols.
22762exclude_expsyms=$lt_exclude_expsyms
22763
22764# Symbols that must always be exported.
22765include_expsyms=$lt_include_expsyms
22766
22767# Commands necessary for linking programs (against libraries) with templates.
22768prelink_cmds=$lt_prelink_cmds
22769
22770# Commands necessary for finishing linking programs.
22771postlink_cmds=$lt_postlink_cmds
22772
22773# Specify filename containing input files.
22774file_list_spec=$lt_file_list_spec
22775
22776# How to hardcode a shared library path into an executable.
22777hardcode_action=$hardcode_action
22778
22779# The directories searched by this compiler when creating a shared library.
22780compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22781
22782# Dependencies to place before and after the objects being linked to
22783# create a shared library.
22784predep_objects=$lt_predep_objects
22785postdep_objects=$lt_postdep_objects
22786predeps=$lt_predeps
22787postdeps=$lt_postdeps
22788
22789# The library search path used internally by the compiler when linking
22790# a shared library.
22791compiler_lib_search_path=$lt_compiler_lib_search_path
22792
22793# ### END LIBTOOL CONFIG
22794
22795_LT_EOF
22796
22797  case $host_os in
22798  aix3*)
22799    cat <<\_LT_EOF >> "$cfgfile"
22800# AIX sometimes has problems with the GCC collect2 program.  For some
22801# reason, if we set the COLLECT_NAMES environment variable, the problems
22802# vanish in a puff of smoke.
22803if test set != "${COLLECT_NAMES+set}"; then
22804  COLLECT_NAMES=
22805  export COLLECT_NAMES
22806fi
22807_LT_EOF
22808    ;;
22809  esac
22810
22811
22812ltmain=$ac_aux_dir/ltmain.sh
22813
22814
22815  # We use sed instead of cat because bash on DJGPP gets confused if
22816  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22817  # text mode, it properly converts lines to CR/LF.  This bash problem
22818  # is reportedly fixed, but why not run on old versions too?
22819  sed '$q' "$ltmain" >> "$cfgfile" \
22820     || (rm -f "$cfgfile"; exit 1)
22821
22822   mv -f "$cfgfile" "$ofile" ||
22823    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22824  chmod +x "$ofile"
22825
22826
22827    cat <<_LT_EOF >> "$ofile"
22828
22829# ### BEGIN LIBTOOL TAG CONFIG: CXX
22830
22831# The linker used to build libraries.
22832LD=$lt_LD_CXX
22833
22834# How to create reloadable object files.
22835reload_flag=$lt_reload_flag_CXX
22836reload_cmds=$lt_reload_cmds_CXX
22837
22838# Commands used to build an old-style archive.
22839old_archive_cmds=$lt_old_archive_cmds_CXX
22840
22841# A language specific compiler.
22842CC=$lt_compiler_CXX
22843
22844# Is the compiler the GNU compiler?
22845with_gcc=$GCC_CXX
22846
22847# Compiler flag to turn off builtin functions.
22848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22849
22850# Additional compiler flags for building library objects.
22851pic_flag=$lt_lt_prog_compiler_pic_CXX
22852
22853# How to pass a linker flag through the compiler.
22854wl=$lt_lt_prog_compiler_wl_CXX
22855
22856# Compiler flag to prevent dynamic linking.
22857link_static_flag=$lt_lt_prog_compiler_static_CXX
22858
22859# Does compiler simultaneously support -c and -o options?
22860compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22861
22862# Whether or not to add -lc for building shared libraries.
22863build_libtool_need_lc=$archive_cmds_need_lc_CXX
22864
22865# Whether or not to disallow shared libs when runtime libs are static.
22866allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22867
22868# Compiler flag to allow reflexive dlopens.
22869export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22870
22871# Compiler flag to generate shared objects directly from archives.
22872whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22873
22874# Whether the compiler copes with passing no objects directly.
22875compiler_needs_object=$lt_compiler_needs_object_CXX
22876
22877# Create an old-style archive from a shared archive.
22878old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22879
22880# Create a temporary old-style archive to link instead of a shared archive.
22881old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22882
22883# Commands used to build a shared archive.
22884archive_cmds=$lt_archive_cmds_CXX
22885archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22886
22887# Commands used to build a loadable module if different from building
22888# a shared archive.
22889module_cmds=$lt_module_cmds_CXX
22890module_expsym_cmds=$lt_module_expsym_cmds_CXX
22891
22892# Whether we are building with GNU ld or not.
22893with_gnu_ld=$lt_with_gnu_ld_CXX
22894
22895# Flag that allows shared libraries with undefined symbols to be built.
22896allow_undefined_flag=$lt_allow_undefined_flag_CXX
22897
22898# Flag that enforces no undefined symbols.
22899no_undefined_flag=$lt_no_undefined_flag_CXX
22900
22901# Flag to hardcode \$libdir into a binary during linking.
22902# This must work even if \$libdir does not exist
22903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22904
22905# Whether we need a single "-rpath" flag with a separated argument.
22906hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22907
22908# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22909# DIR into the resulting binary.
22910hardcode_direct=$hardcode_direct_CXX
22911
22912# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22913# DIR into the resulting binary and the resulting library dependency is
22914# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22915# library is relocated.
22916hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22917
22918# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22919# into the resulting binary.
22920hardcode_minus_L=$hardcode_minus_L_CXX
22921
22922# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22923# into the resulting binary.
22924hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22925
22926# Set to "yes" if building a shared library automatically hardcodes DIR
22927# into the library and all subsequent libraries and executables linked
22928# against it.
22929hardcode_automatic=$hardcode_automatic_CXX
22930
22931# Set to yes if linker adds runtime paths of dependent libraries
22932# to runtime path list.
22933inherit_rpath=$inherit_rpath_CXX
22934
22935# Whether libtool must link a program against all its dependency libraries.
22936link_all_deplibs=$link_all_deplibs_CXX
22937
22938# Set to "yes" if exported symbols are required.
22939always_export_symbols=$always_export_symbols_CXX
22940
22941# The commands to list exported symbols.
22942export_symbols_cmds=$lt_export_symbols_cmds_CXX
22943
22944# Symbols that should not be listed in the preloaded symbols.
22945exclude_expsyms=$lt_exclude_expsyms_CXX
22946
22947# Symbols that must always be exported.
22948include_expsyms=$lt_include_expsyms_CXX
22949
22950# Commands necessary for linking programs (against libraries) with templates.
22951prelink_cmds=$lt_prelink_cmds_CXX
22952
22953# Commands necessary for finishing linking programs.
22954postlink_cmds=$lt_postlink_cmds_CXX
22955
22956# Specify filename containing input files.
22957file_list_spec=$lt_file_list_spec_CXX
22958
22959# How to hardcode a shared library path into an executable.
22960hardcode_action=$hardcode_action_CXX
22961
22962# The directories searched by this compiler when creating a shared library.
22963compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22964
22965# Dependencies to place before and after the objects being linked to
22966# create a shared library.
22967predep_objects=$lt_predep_objects_CXX
22968postdep_objects=$lt_postdep_objects_CXX
22969predeps=$lt_predeps_CXX
22970postdeps=$lt_postdeps_CXX
22971
22972# The library search path used internally by the compiler when linking
22973# a shared library.
22974compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22975
22976# ### END LIBTOOL TAG CONFIG: CXX
22977_LT_EOF
22978
22979 ;;
22980
22981  esac
22982done # for ac_tag
22983
22984
22985as_fn_exit 0
22986_ACEOF
22987ac_clean_files=$ac_clean_files_save
22988
22989test $ac_write_fail = 0 ||
22990  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22991
22992
22993# configure is writing to config.log, and then calls config.status.
22994# config.status does its own redirection, appending to config.log.
22995# Unfortunately, on DOS this fails, as config.log is still kept open
22996# by configure, so config.status won't be able to write to it; its
22997# output is simply discarded.  So we exec the FD to /dev/null,
22998# effectively closing config.log, so it can be properly (re)opened and
22999# appended to by config.status.  When coming back to configure, we
23000# need to make the FD available again.
23001if test "$no_create" != yes; then
23002  ac_cs_success=:
23003  ac_config_status_args=
23004  test "$silent" = yes &&
23005    ac_config_status_args="$ac_config_status_args --quiet"
23006  exec 5>/dev/null
23007  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23008  exec 5>>config.log
23009  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23010  # would make configure fail if this is the last instruction.
23011  $ac_cs_success || as_fn_exit 1
23012fi
23013if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23014  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23015$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23016fi
23017
23018
23019
23020echo ""
23021echo "Libtiff is now configured for ${host}"
23022echo ""
23023echo "  Installation directory:             ${prefix}"
23024echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
23025echo "  C compiler:                         ${CC} ${CFLAGS}"
23026echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
23027echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
23028echo "  Enable linker symbol versioning:    ${have_ld_version_script}"
23029echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
23030echo "  Use win32 IO:                       ${win32_io_ok}"
23031echo ""
23032echo " Support for internal codecs:"
23033echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
23034echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
23035echo "  LZW algorithm:                      ${HAVE_LZW}"
23036echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
23037echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
23038echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
23039echo ""
23040echo " Support for external codecs:"
23041echo "  ZLIB support:                       ${HAVE_ZLIB}"
23042echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
23043echo "  JPEG support:                       ${HAVE_JPEG}"
23044echo "  Old JPEG support:                   ${HAVE_OJPEG}"
23045echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
23046echo "  ISO JBIG support:                   ${HAVE_JBIG}"
23047echo "  LZMA2 support:                      ${HAVE_LZMA}"
23048echo ""
23049echo "  C++ support:                        ${HAVE_CXX}"
23050echo ""
23051echo "  OpenGL support:                     ${HAVE_OPENGL}"
23052echo ""
23053
23054