1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for geomview 1.9.5.
4#
5# Report bugs to <Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and Claus-Justus Heine
278$0: <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE> about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='geomview'
592PACKAGE_TARNAME='geomview'
593PACKAGE_VERSION='1.9.5'
594PACKAGE_STRING='geomview 1.9.5'
595PACKAGE_BUGREPORT='Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>'
596PACKAGE_URL=''
597
598ac_unique_file="src/bin/geomview/x11/gvmain.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_config_libobj_dir=src/lib/aclib
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639default_includes
640GEOMVIEWPRIVHDRFILES
641GEOMVIEWHDRFILES
642STUBLIB
643MOTIFUILIB
644OOGLLIB
645OOGLLIBS
646top_geom_builddir
647geomdatadir
648moduledir
649HAVE_CXX_FALSE
650HAVE_CXX_TRUE
651BEZIER_SPHERES_FALSE
652BEZIER_SPHERES_TRUE
653LD_LIBRARY_PATH_SETTINGS
654ZLIB_NAME
655ZLIB_ALL_LIB
656ZLIB_LIB
657ZLIB_LIB_PATH
658ZLIB_ALL_INCLUDES
659ZLIB_INCLUDES
660ZLIB_INCLUDE_PATH
661HAVE_ZLIB_FALSE
662HAVE_ZLIB_TRUE
663MGGL_FALSE
664MGGL_TRUE
665MGX11_FALSE
666MGX11_TRUE
667MGOPENGL_FALSE
668MGOPENGL_TRUE
669OPENGLINCLUDE
670OPENGLLIBS
671MESAGL
672MOTIFLIBS
673MOTIFINCLUDE
674XMULIBS
675XLIBS
676X_EXTRA_LIBS
677X_LIBS
678X_PRE_LIBS
679X_CFLAGS
680XMKMF
681PDFVIEWER
682HTMLBROWSER
683MACHTYPE
684SOCKETLIBS
685POW_LIB
686LIBOBJS
687ALLOCA
688DELIGHT_SHADER_COMPILER_FALSE
689DELIGHT_SHADER_COMPILER_TRUE
690DELIGHT_SHADER_COMPILER
691PIXIE_SHADER_COMPILER_FALSE
692PIXIE_SHADER_COMPILER_TRUE
693PIXIE_SHADER_COMPILER
694AQSIS_SHADER_COMPILER_FALSE
695AQSIS_SHADER_COMPILER_TRUE
696AQSIS_SHADER_COMPILER
697PAMTOTIFF
698PNMTOPNG
699PDFIMAGESPROG
700EPSTOPDF
701PS2EPSI
702GLOB_SHELL
703GLOB_SHELL_PATH
704FIND
705CXXCPP
706OTOOL64
707OTOOL
708LIPO
709NMEDIT
710DSYMUTIL
711MANIFEST_TOOL
712RANLIB
713ac_ct_AR
714AR
715DLLTOOL
716OBJDUMP
717LN_S
718NM
719ac_ct_DUMPBIN
720DUMPBIN
721LD
722FGREP
723EGREP
724GREP
725SED
726LIBTOOL
727INSTALL_LIBGEOMVIEW_FALSE
728INSTALL_LIBGEOMVIEW_TRUE
729YFLAGS
730YACC
731LEXLIB
732LEX_OUTPUT_ROOT
733LEX
734CPP
735am__fastdepCC_FALSE
736am__fastdepCC_TRUE
737CCDEPMODE
738ac_ct_CC
739CFLAGS
740CC
741am__fastdepCXX_FALSE
742am__fastdepCXX_TRUE
743CXXDEPMODE
744am__nodep
745AMDEPBACKSLASH
746AMDEP_FALSE
747AMDEP_TRUE
748am__quote
749am__include
750DEPDIR
751OBJEXT
752EXEEXT
753ac_ct_CXX
754CPPFLAGS
755LDFLAGS
756CXXFLAGS
757CXX
758expanded_exec_prefix
759expanded_prefix
760DEFAULT_PREFIX
761abs_top_srcdir
762abs_top_builddir
763MAINT
764MAINTAINER_MODE_FALSE
765MAINTAINER_MODE_TRUE
766AM_BACKSLASH
767AM_DEFAULT_VERBOSITY
768AM_DEFAULT_V
769AM_V
770am__untar
771am__tar
772AMTAR
773am__leading_dot
774SET_MAKE
775AWK
776mkdir_p
777MKDIR_P
778INSTALL_STRIP_PROGRAM
779STRIP
780install_sh
781MAKEINFO
782AUTOHEADER
783AUTOMAKE
784AUTOCONF
785ACLOCAL
786VERSION
787PACKAGE
788CYGPATH_W
789am__isrc
790INSTALL_DATA
791INSTALL_SCRIPT
792INSTALL_PROGRAM
793target_os
794target_vendor
795target_cpu
796target
797host_os
798host_vendor
799host_cpu
800host
801build_os
802build_vendor
803build_cpu
804build
805target_alias
806host_alias
807build_alias
808LIBS
809ECHO_T
810ECHO_N
811ECHO_C
812DEFS
813mandir
814localedir
815libdir
816psdir
817pdfdir
818dvidir
819htmldir
820infodir
821docdir
822oldincludedir
823includedir
824localstatedir
825sharedstatedir
826sysconfdir
827datadir
828datarootdir
829libexecdir
830sbindir
831bindir
832program_transform_name
833prefix
834exec_prefix
835PACKAGE_URL
836PACKAGE_BUGREPORT
837PACKAGE_STRING
838PACKAGE_VERSION
839PACKAGE_TARNAME
840PACKAGE_NAME
841PATH_SEPARATOR
842SHELL'
843ac_subst_files=''
844ac_user_opts='
845enable_option_checking
846enable_silent_rules
847enable_maintainer_mode
848with_build_path
849enable_dependency_tracking
850enable_shared
851enable_static
852with_pic
853enable_fast_install
854with_gnu_ld
855with_sysroot
856enable_libtool_lock
857with_aqsis_shader_compiler
858with_pixie_shader_compiler
859with_delight_shader_compiler
860with_htmlbrowser
861with_pdfviewer
862with_motif
863with_opengl
864with_x
865with_zlib
866with_zlib_name
867with_zlib_dir
868with_zlib_lib
869with_zlib_headers
870enable_d1debug
871enable_motion_averaging
872'
873      ac_precious_vars='build_alias
874host_alias
875target_alias
876DEFAULT_PREFIX
877CXX
878CXXFLAGS
879LDFLAGS
880LIBS
881CPPFLAGS
882CCC
883CC
884CFLAGS
885CPP
886YACC
887YFLAGS
888CXXCPP
889XMKMF'
890
891
892# Initialize some variables set by options.
893ac_init_help=
894ac_init_version=false
895ac_unrecognized_opts=
896ac_unrecognized_sep=
897# The variables have the same names as the options, with
898# dashes changed to underlines.
899cache_file=/dev/null
900exec_prefix=NONE
901no_create=
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
910verbose=
911x_includes=NONE
912x_libraries=NONE
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
919# (The list follows the same order as the GNU Coding Standards.)
920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
928includedir='${prefix}/include'
929oldincludedir='/usr/include'
930docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
939
940ac_prev=
941ac_dashdash=
942for ac_option
943do
944  # If the previous option needs an argument, assign it.
945  if test -n "$ac_prev"; then
946    eval $ac_prev=\$ac_option
947    ac_prev=
948    continue
949  fi
950
951  case $ac_option in
952  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953  *=)   ac_optarg= ;;
954  *)    ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error $? "invalid feature name: $ac_useropt"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"enable_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval enable_$ac_useropt=no ;;
1010
1011  -docdir | --docdir | --docdi | --doc | --do)
1012    ac_prev=docdir ;;
1013  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014    docdir=$ac_optarg ;;
1015
1016  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017    ac_prev=dvidir ;;
1018  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019    dvidir=$ac_optarg ;;
1020
1021  -enable-* | --enable-*)
1022    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025      as_fn_error $? "invalid feature name: $ac_useropt"
1026    ac_useropt_orig=$ac_useropt
1027    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028    case $ac_user_opts in
1029      *"
1030"enable_$ac_useropt"
1031"*) ;;
1032      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033	 ac_unrecognized_sep=', ';;
1034    esac
1035    eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039  | --exec | --exe | --ex)
1040    ac_prev=exec_prefix ;;
1041  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043  | --exec=* | --exe=* | --ex=*)
1044    exec_prefix=$ac_optarg ;;
1045
1046  -gas | --gas | --ga | --g)
1047    # Obsolete; use --with-gas.
1048    with_gas=yes ;;
1049
1050  -help | --help | --hel | --he | -h)
1051    ac_init_help=long ;;
1052  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053    ac_init_help=recursive ;;
1054  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055    ac_init_help=short ;;
1056
1057  -host | --host | --hos | --ho)
1058    ac_prev=host_alias ;;
1059  -host=* | --host=* | --hos=* | --ho=*)
1060    host_alias=$ac_optarg ;;
1061
1062  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063    ac_prev=htmldir ;;
1064  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065  | --ht=*)
1066    htmldir=$ac_optarg ;;
1067
1068  -includedir | --includedir | --includedi | --included | --include \
1069  | --includ | --inclu | --incl | --inc)
1070    ac_prev=includedir ;;
1071  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072  | --includ=* | --inclu=* | --incl=* | --inc=*)
1073    includedir=$ac_optarg ;;
1074
1075  -infodir | --infodir | --infodi | --infod | --info | --inf)
1076    ac_prev=infodir ;;
1077  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078    infodir=$ac_optarg ;;
1079
1080  -libdir | --libdir | --libdi | --libd)
1081    ac_prev=libdir ;;
1082  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083    libdir=$ac_optarg ;;
1084
1085  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086  | --libexe | --libex | --libe)
1087    ac_prev=libexecdir ;;
1088  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089  | --libexe=* | --libex=* | --libe=*)
1090    libexecdir=$ac_optarg ;;
1091
1092  -localedir | --localedir | --localedi | --localed | --locale)
1093    ac_prev=localedir ;;
1094  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095    localedir=$ac_optarg ;;
1096
1097  -localstatedir | --localstatedir | --localstatedi | --localstated \
1098  | --localstate | --localstat | --localsta | --localst | --locals)
1099    ac_prev=localstatedir ;;
1100  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102    localstatedir=$ac_optarg ;;
1103
1104  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105    ac_prev=mandir ;;
1106  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107    mandir=$ac_optarg ;;
1108
1109  -nfp | --nfp | --nf)
1110    # Obsolete; use --without-fp.
1111    with_fp=no ;;
1112
1113  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114  | --no-cr | --no-c | -n)
1115    no_create=yes ;;
1116
1117  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119    no_recursion=yes ;;
1120
1121  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123  | --oldin | --oldi | --old | --ol | --o)
1124    ac_prev=oldincludedir ;;
1125  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128    oldincludedir=$ac_optarg ;;
1129
1130  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131    ac_prev=prefix ;;
1132  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133    prefix=$ac_optarg ;;
1134
1135  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136  | --program-pre | --program-pr | --program-p)
1137    ac_prev=program_prefix ;;
1138  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140    program_prefix=$ac_optarg ;;
1141
1142  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143  | --program-suf | --program-su | --program-s)
1144    ac_prev=program_suffix ;;
1145  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147    program_suffix=$ac_optarg ;;
1148
1149  -program-transform-name | --program-transform-name \
1150  | --program-transform-nam | --program-transform-na \
1151  | --program-transform-n | --program-transform- \
1152  | --program-transform | --program-transfor \
1153  | --program-transfo | --program-transf \
1154  | --program-trans | --program-tran \
1155  | --progr-tra | --program-tr | --program-t)
1156    ac_prev=program_transform_name ;;
1157  -program-transform-name=* | --program-transform-name=* \
1158  | --program-transform-nam=* | --program-transform-na=* \
1159  | --program-transform-n=* | --program-transform-=* \
1160  | --program-transform=* | --program-transfor=* \
1161  | --program-transfo=* | --program-transf=* \
1162  | --program-trans=* | --program-tran=* \
1163  | --progr-tra=* | --program-tr=* | --program-t=*)
1164    program_transform_name=$ac_optarg ;;
1165
1166  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167    ac_prev=pdfdir ;;
1168  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169    pdfdir=$ac_optarg ;;
1170
1171  -psdir | --psdir | --psdi | --psd | --ps)
1172    ac_prev=psdir ;;
1173  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174    psdir=$ac_optarg ;;
1175
1176  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177  | -silent | --silent | --silen | --sile | --sil)
1178    silent=yes ;;
1179
1180  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181    ac_prev=sbindir ;;
1182  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183  | --sbi=* | --sb=*)
1184    sbindir=$ac_optarg ;;
1185
1186  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188  | --sharedst | --shareds | --shared | --share | --shar \
1189  | --sha | --sh)
1190    ac_prev=sharedstatedir ;;
1191  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194  | --sha=* | --sh=*)
1195    sharedstatedir=$ac_optarg ;;
1196
1197  -site | --site | --sit)
1198    ac_prev=site ;;
1199  -site=* | --site=* | --sit=*)
1200    site=$ac_optarg ;;
1201
1202  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203    ac_prev=srcdir ;;
1204  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205    srcdir=$ac_optarg ;;
1206
1207  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208  | --syscon | --sysco | --sysc | --sys | --sy)
1209    ac_prev=sysconfdir ;;
1210  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212    sysconfdir=$ac_optarg ;;
1213
1214  -target | --target | --targe | --targ | --tar | --ta | --t)
1215    ac_prev=target_alias ;;
1216  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217    target_alias=$ac_optarg ;;
1218
1219  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220    verbose=yes ;;
1221
1222  -version | --version | --versio | --versi | --vers | -V)
1223    ac_init_version=: ;;
1224
1225  -with-* | --with-*)
1226    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227    # Reject names that are not valid shell variable names.
1228    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229      as_fn_error $? "invalid package name: $ac_useropt"
1230    ac_useropt_orig=$ac_useropt
1231    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232    case $ac_user_opts in
1233      *"
1234"with_$ac_useropt"
1235"*) ;;
1236      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237	 ac_unrecognized_sep=', ';;
1238    esac
1239    eval with_$ac_useropt=\$ac_optarg ;;
1240
1241  -without-* | --without-*)
1242    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245      as_fn_error $? "invalid package name: $ac_useropt"
1246    ac_useropt_orig=$ac_useropt
1247    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248    case $ac_user_opts in
1249      *"
1250"with_$ac_useropt"
1251"*) ;;
1252      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253	 ac_unrecognized_sep=', ';;
1254    esac
1255    eval with_$ac_useropt=no ;;
1256
1257  --x)
1258    # Obsolete; use --with-x.
1259    with_x=yes ;;
1260
1261  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262  | --x-incl | --x-inc | --x-in | --x-i)
1263    ac_prev=x_includes ;;
1264  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266    x_includes=$ac_optarg ;;
1267
1268  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270    ac_prev=x_libraries ;;
1271  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273    x_libraries=$ac_optarg ;;
1274
1275  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276Try \`$0 --help' for more information"
1277    ;;
1278
1279  *=*)
1280    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281    # Reject names that are not valid shell variable names.
1282    case $ac_envvar in #(
1283      '' | [0-9]* | *[!_$as_cr_alnum]* )
1284      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285    esac
1286    eval $ac_envvar=\$ac_optarg
1287    export $ac_envvar ;;
1288
1289  *)
1290    # FIXME: should be removed in autoconf 3.0.
1291    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295    ;;
1296
1297  esac
1298done
1299
1300if test -n "$ac_prev"; then
1301  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302  as_fn_error $? "missing argument to $ac_option"
1303fi
1304
1305if test -n "$ac_unrecognized_opts"; then
1306  case $enable_option_checking in
1307    no) ;;
1308    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310  esac
1311fi
1312
1313# Check all directory arguments for consistency.
1314for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315		datadir sysconfdir sharedstatedir localstatedir includedir \
1316		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317		libdir localedir mandir
1318do
1319  eval ac_val=\$$ac_var
1320  # Remove trailing slashes.
1321  case $ac_val in
1322    */ )
1323      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324      eval $ac_var=\$ac_val;;
1325  esac
1326  # Be sure to have absolute directory names.
1327  case $ac_val in
1328    [\\/$]* | ?:[\\/]* )  continue;;
1329    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330  esac
1331  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332done
1333
1334# There might be people who depend on the old broken behavior: `$host'
1335# used to hold the argument of --host etc.
1336# FIXME: To remove some day.
1337build=$build_alias
1338host=$host_alias
1339target=$target_alias
1340
1341# FIXME: To remove some day.
1342if test "x$host_alias" != x; then
1343  if test "x$build_alias" = x; then
1344    cross_compiling=maybe
1345  elif test "x$build_alias" != "x$host_alias"; then
1346    cross_compiling=yes
1347  fi
1348fi
1349
1350ac_tool_prefix=
1351test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353test "$silent" = yes && exec 6>/dev/null
1354
1355
1356ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357ac_ls_di=`ls -di .` &&
1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359  as_fn_error $? "working directory cannot be determined"
1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361  as_fn_error $? "pwd does not report name of working directory"
1362
1363
1364# Find the source files, if location was not specified.
1365if test -z "$srcdir"; then
1366  ac_srcdir_defaulted=yes
1367  # Try the directory containing this script, then the parent directory.
1368  ac_confdir=`$as_dirname -- "$as_myself" ||
1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370	 X"$as_myself" : 'X\(//\)[^/]' \| \
1371	 X"$as_myself" : 'X\(//\)$' \| \
1372	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373$as_echo X"$as_myself" |
1374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)[^/].*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\/\)$/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\).*/{
1387	    s//\1/
1388	    q
1389	  }
1390	  s/.*/./; q'`
1391  srcdir=$ac_confdir
1392  if test ! -r "$srcdir/$ac_unique_file"; then
1393    srcdir=..
1394  fi
1395else
1396  ac_srcdir_defaulted=no
1397fi
1398if test ! -r "$srcdir/$ac_unique_file"; then
1399  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401fi
1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403ac_abs_confdir=`(
1404	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405	pwd)`
1406# When building in place, set srcdir=.
1407if test "$ac_abs_confdir" = "$ac_pwd"; then
1408  srcdir=.
1409fi
1410# Remove unnecessary trailing slashes from srcdir.
1411# Double slashes in file names in object file debugging info
1412# mess up M-x gdb in Emacs.
1413case $srcdir in
1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415esac
1416for ac_var in $ac_precious_vars; do
1417  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_env_${ac_var}_value=\$${ac_var}
1419  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421done
1422
1423#
1424# Report the --help message.
1425#
1426if test "$ac_init_help" = "long"; then
1427  # Omit some internal or obsolete options to make the list less imposing.
1428  # This message is too long to be a string in the A/UX 3.1 sh.
1429  cat <<_ACEOF
1430\`configure' configures geomview 1.9.5 to adapt to many kinds of systems.
1431
1432Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437Defaults for the options are specified in brackets.
1438
1439Configuration:
1440  -h, --help              display this help and exit
1441      --help=short        display options specific to this package
1442      --help=recursive    display the short help of all the included packages
1443  -V, --version           display version information and exit
1444  -q, --quiet, --silent   do not print \`checking ...' messages
1445      --cache-file=FILE   cache test results in FILE [disabled]
1446  -C, --config-cache      alias for \`--cache-file=config.cache'
1447  -n, --no-create         do not create output files
1448      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450Installation directories:
1451  --prefix=PREFIX         install architecture-independent files in PREFIX
1452                          [$ac_default_prefix]
1453  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454                          [PREFIX]
1455
1456By default, \`make install' will install all the files in
1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459for instance \`--prefix=\$HOME'.
1460
1461For better control, use the options below.
1462
1463Fine tuning of the installation directories:
1464  --bindir=DIR            user executables [EPREFIX/bin]
1465  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1466  --libexecdir=DIR        program executables [EPREFIX/libexec]
1467  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1468  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1469  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1470  --libdir=DIR            object code libraries [EPREFIX/lib]
1471  --includedir=DIR        C header files [PREFIX/include]
1472  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1473  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1474  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1475  --infodir=DIR           info documentation [DATAROOTDIR/info]
1476  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1477  --mandir=DIR            man documentation [DATAROOTDIR/man]
1478  --docdir=DIR            documentation root [DATAROOTDIR/doc/geomview]
1479  --htmldir=DIR           html documentation [DOCDIR]
1480  --dvidir=DIR            dvi documentation [DOCDIR]
1481  --pdfdir=DIR            pdf documentation [DOCDIR]
1482  --psdir=DIR             ps documentation [DOCDIR]
1483_ACEOF
1484
1485  cat <<\_ACEOF
1486
1487Program names:
1488  --program-prefix=PREFIX            prepend PREFIX to installed program names
1489  --program-suffix=SUFFIX            append SUFFIX to installed program names
1490  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492X features:
1493  --x-includes=DIR    X include files are in DIR
1494  --x-libraries=DIR   X library files are in DIR
1495
1496System types:
1497  --build=BUILD     configure for building on BUILD [guessed]
1498  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499  --target=TARGET   configure for building compilers for TARGET [HOST]
1500_ACEOF
1501fi
1502
1503if test -n "$ac_init_help"; then
1504  case $ac_init_help in
1505     short | recursive ) echo "Configuration of geomview 1.9.5:";;
1506   esac
1507  cat <<\_ACEOF
1508
1509Optional Features:
1510  --disable-option-checking  ignore unrecognized --enable/--with options
1511  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513  --enable-silent-rules   less verbose build output (undo: "make V=1")
1514  --disable-silent-rules  verbose build output (undo: "make V=0")
1515  --enable-maintainer-mode
1516                          enable make rules and dependencies not useful (and
1517                          sometimes confusing) to the casual installer
1518  --enable-dependency-tracking
1519                          do not reject slow dependency extractors
1520  --disable-dependency-tracking
1521                          speeds up one-time build
1522  --enable-shared[=PKGS]  build shared libraries [default=yes]
1523  --enable-static[=PKGS]  build static libraries [default=yes]
1524  --enable-fast-install[=PKGS]
1525                          optimize for fast installation [default=yes]
1526  --disable-libtool-lock  avoid locking (might break parallel builds)
1527  --enable-d1debug        turn on D1 level debugging output
1528  --enable-motion-averaging
1529                          turn on experimental motion averaging (default is
1530                          off)
1531
1532Optional Packages:
1533  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535
1536  --with-build-path=DIR use DIR/include DIR/lib
1537
1538  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1539                          both]
1540  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1541  --with-sysroot=DIR Search for dependent libraries within DIR
1542                        (or the compiler's sysroot if not specified).
1543  --with-aqsis-shader-compiler=PROGRAM
1544                          Set PROGRAM to the name of the
1545                          `aqsis-shader-compiler' program (usually `aqsl').
1546                          (default: autodetected)
1547  --with-pixie-shader-compiler=PROGRAM
1548                          Set PROGRAM to the name of the
1549                          `pixie-shader-compiler' program (usually `sdrc').
1550                          (default: autodetected)
1551  --with-delight-shader-compiler=PROGRAM
1552                          Set PROGRAM to the name of the
1553                          `delight-shader-compiler' program (usually `shaderdl').
1554                          (default: autodetected)
1555  --with-htmlbrowser=BROWSER
1556                          Use BROWSER for viewing the HTML version of the
1557                          manual when the `Manual (HTML)' menu item is
1558                          selected. This setting can be changed at runtime
1559                          through the '(ui-html-browser BROWSER)' GCL-command.
1560                          (default: firefox)
1561  --with-pdfviewer=VIEWER Use BROWSER for viewing the PDF version of the
1562                          manual when the `Manual (PDF)' menu item is
1563                          selected. This setting can be changed at runtime
1564                          through the '(ui-pdf-viewer VIEWER)' GCL-command.
1565                          (default: xpdf)
1566  --with-motif=DIR        Set DIR to motif installation prefix. It is not
1567                          possible to compile Geomview without Motif.
1568  --with-opengl=DIR       Set DIR to opengl installation prefix. OpenGL is
1569                          optional. The default is to auto-detect OpenGL and
1570                          use it if available. Use `--without-opengl' to
1571                          disable OpenGL.
1572  --with-x                use the X Window System
1573  --without-zlib          disable use of package zlib (default: autodetect)
1574  --with-zlib-name=NAME   use NAME as the name of the zlib library (without
1575                          leading "lib" prefix and trailing suffix). Default:
1576                          "z"
1577  --with-zlib-dir=DIR     use zlib library (and headers) below directory DIR
1578                          (no default)
1579  --with-zlib-lib=DIR     use zlib library below directory DIR (default:
1580                          EPREFIX/lib/)
1581  --with-zlib-headers=DIR use zlib include files below directory DIR (default:
1582                          PREFIX/include/)
1583
1584Some influential environment variables:
1585  DEFAULT_PREFIX
1586              Default installation prefix
1587  CXX         C++ compiler command
1588  CXXFLAGS    C++ compiler flags
1589  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1590              nonstandard directory <lib dir>
1591  LIBS        libraries to pass to the linker, e.g. -l<library>
1592  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593              you have headers in a nonstandard directory <include dir>
1594  CC          C compiler command
1595  CFLAGS      C compiler flags
1596  CPP         C preprocessor
1597  YACC        The `Yet Another Compiler Compiler' implementation to use.
1598              Defaults to the first program found out of: `bison -y', `byacc',
1599              `yacc'.
1600  YFLAGS      The list of arguments that will be passed by default to $YACC.
1601              This script will default YFLAGS to the empty string to avoid a
1602              default value of `-d' given by some make applications.
1603  CXXCPP      C++ preprocessor
1604  XMKMF       Path to xmkmf, Makefile generator for X Window System
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
1609Report bugs to <Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>>.
1610_ACEOF
1611ac_status=$?
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615  # If there are subdirs, report their specific --help.
1616  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617    test -d "$ac_dir" ||
1618      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619      continue
1620    ac_builddir=.
1621
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626  # A ".." for each directory in $ac_dir_suffix.
1627  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628  case $ac_top_builddir_sub in
1629  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631  esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
1637
1638case $srcdir in
1639  .)  # We are building in place.
1640    ac_srcdir=.
1641    ac_top_srcdir=$ac_top_builddir_sub
1642    ac_abs_top_srcdir=$ac_pwd ;;
1643  [\\/]* | ?:[\\/]* )  # Absolute name.
1644    ac_srcdir=$srcdir$ac_dir_suffix;
1645    ac_top_srcdir=$srcdir
1646    ac_abs_top_srcdir=$srcdir ;;
1647  *) # Relative name.
1648    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649    ac_top_srcdir=$ac_top_build_prefix$srcdir
1650    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651esac
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654    cd "$ac_dir" || { ac_status=$?; continue; }
1655    # Check for guested configure.
1656    if test -f "$ac_srcdir/configure.gnu"; then
1657      echo &&
1658      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659    elif test -f "$ac_srcdir/configure"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure" --help=recursive
1662    else
1663      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664    fi || ac_status=$?
1665    cd "$ac_pwd" || { ac_status=$?; break; }
1666  done
1667fi
1668
1669test -n "$ac_init_help" && exit $ac_status
1670if $ac_init_version; then
1671  cat <<\_ACEOF
1672geomview configure 1.9.5
1673generated by GNU Autoconf 2.69
1674
1675Copyright (C) 2012 Free Software Foundation, Inc.
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
1679  exit
1680fi
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_cxx_try_compile LINENO
1687# ----------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_cxx_try_compile ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext
1693  if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_compile") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_cxx_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest.$ac_objext; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717	ac_retval=1
1718fi
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_cxx_try_compile
1723
1724# ac_fn_c_try_compile LINENO
1725# --------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_compile ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  rm -f conftest.$ac_objext
1731  if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_compile") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } && {
1747	 test -z "$ac_c_werror_flag" ||
1748	 test ! -s conftest.err
1749       } && test -s conftest.$ac_objext; then :
1750  ac_retval=0
1751else
1752  $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755	ac_retval=1
1756fi
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_compile
1761
1762# ac_fn_c_try_cpp LINENO
1763# ----------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_cpp ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776  ac_status=$?
1777  if test -s conftest.err; then
1778    grep -v '^ *+' conftest.err >conftest.er1
1779    cat conftest.er1 >&5
1780    mv -f conftest.er1 conftest.err
1781  fi
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; } > conftest.i && {
1784	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785	 test ! -s conftest.err
1786       }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792    ac_retval=1
1793fi
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_cpp
1798
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  rm -f conftest.$ac_objext conftest$ac_exeext
1806  if { { ac_try="$ac_link"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813  (eval "$ac_link") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && {
1822	 test -z "$ac_c_werror_flag" ||
1823	 test ! -s conftest.err
1824       } && test -s conftest$ac_exeext && {
1825	 test "$cross_compiling" = yes ||
1826	 test -x conftest$ac_exeext
1827       }; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833	ac_retval=1
1834fi
1835  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837  # interfere with the next link command; also delete a directory that is
1838  # left behind by Apple's compiler.  We do this before executing the actions.
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844
1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists and can be compiled using the include files in
1848# INCLUDES, setting the cache variable VAR accordingly.
1849ac_fn_c_check_header_compile ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863  eval "$3=yes"
1864else
1865  eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_header_compile
1875
1876# ac_fn_c_try_run LINENO
1877# ----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879# that executables *can* be run.
1880ac_fn_c_try_run ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>&5
1891  ac_status=$?
1892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894  { { case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900  (eval "$ac_try") 2>&5
1901  ac_status=$?
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; }; }; then :
1904  ac_retval=0
1905else
1906  $as_echo "$as_me: program exited with status $ac_status" >&5
1907       $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910       ac_retval=$ac_status
1911fi
1912  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914  as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_run
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if eval \${$3+:} false; then :
1927  $as_echo_n "(cached) " >&6
1928else
1929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936    which can conflict with char $2 (); below.
1937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938    <limits.h> exists even on freestanding compilers.  */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949   Use char because int might match the return type of a GCC
1950   builtin and then its argument prototype would still apply.  */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956    to always fail with ENOSYS.  Some functions are actually named
1957    something starting with __ and the normal name is an alias.  */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971  eval "$3=yes"
1972else
1973  eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976    conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_cxx_try_cpp LINENO
1986# ------------------------
1987# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_cxx_try_cpp ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  if { { ac_try="$ac_cpp conftest.$ac_ext"
1992case "(($ac_try" in
1993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994  *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999  ac_status=$?
2000  if test -s conftest.err; then
2001    grep -v '^ *+' conftest.err >conftest.er1
2002    cat conftest.er1 >&5
2003    mv -f conftest.er1 conftest.err
2004  fi
2005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006  test $ac_status = 0; } > conftest.i && {
2007	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008	 test ! -s conftest.err
2009       }; then :
2010  ac_retval=0
2011else
2012  $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015    ac_retval=1
2016fi
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_cxx_try_cpp
2021
2022# ac_fn_cxx_try_link LINENO
2023# -------------------------
2024# Try to link conftest.$ac_ext, and return whether this succeeded.
2025ac_fn_cxx_try_link ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  rm -f conftest.$ac_objext conftest$ac_exeext
2029  if { { ac_try="$ac_link"
2030case "(($ac_try" in
2031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032  *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036  (eval "$ac_link") 2>conftest.err
2037  ac_status=$?
2038  if test -s conftest.err; then
2039    grep -v '^ *+' conftest.err >conftest.er1
2040    cat conftest.er1 >&5
2041    mv -f conftest.er1 conftest.err
2042  fi
2043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044  test $ac_status = 0; } && {
2045	 test -z "$ac_cxx_werror_flag" ||
2046	 test ! -s conftest.err
2047       } && test -s conftest$ac_exeext && {
2048	 test "$cross_compiling" = yes ||
2049	 test -x conftest$ac_exeext
2050       }; then :
2051  ac_retval=0
2052else
2053  $as_echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056	ac_retval=1
2057fi
2058  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060  # interfere with the next link command; also delete a directory that is
2061  # left behind by Apple's compiler.  We do this before executing the actions.
2062  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064  as_fn_set_status $ac_retval
2065
2066} # ac_fn_cxx_try_link
2067
2068# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2069# -------------------------------------------
2070# Tests whether TYPE exists after having included INCLUDES, setting cache
2071# variable VAR accordingly.
2072ac_fn_c_check_type ()
2073{
2074  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
2077if eval \${$3+:} false; then :
2078  $as_echo_n "(cached) " >&6
2079else
2080  eval "$3=no"
2081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087if (sizeof ($2))
2088	 return 0;
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096$4
2097int
2098main ()
2099{
2100if (sizeof (($2)))
2101	    return 0;
2102  ;
2103  return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107
2108else
2109  eval "$3=yes"
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115eval ac_res=\$$3
2116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120} # ac_fn_c_check_type
2121
2122# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2123# -------------------------------------------------------
2124# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2125# the include files in INCLUDES and setting the cache variable VAR
2126# accordingly.
2127ac_fn_c_check_header_mongrel ()
2128{
2129  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130  if eval \${$3+:} false; then :
2131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132$as_echo_n "checking for $2... " >&6; }
2133if eval \${$3+:} false; then :
2134  $as_echo_n "(cached) " >&6
2135fi
2136eval ac_res=\$$3
2137	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139else
2140  # Is the header compilable?
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2142$as_echo_n "checking $2 usability... " >&6; }
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$4
2146#include <$2>
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149  ac_header_compiler=yes
2150else
2151  ac_header_compiler=no
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2155$as_echo "$ac_header_compiler" >&6; }
2156
2157# Is the header present?
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2159$as_echo_n "checking $2 presence... " >&6; }
2160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162#include <$2>
2163_ACEOF
2164if ac_fn_c_try_cpp "$LINENO"; then :
2165  ac_header_preproc=yes
2166else
2167  ac_header_preproc=no
2168fi
2169rm -f conftest.err conftest.i conftest.$ac_ext
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2171$as_echo "$ac_header_preproc" >&6; }
2172
2173# So?  What about this header?
2174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175  yes:no: )
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2177$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2178    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180    ;;
2181  no:yes:* )
2182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2183$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2185$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2187$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2189$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2190    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192( $as_echo "## ---------------------------------------------------------------------------- ##
2193## Report this to Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE> ##
2194## ---------------------------------------------------------------------------- ##"
2195     ) | sed "s/^/$as_me: WARNING:     /" >&2
2196    ;;
2197esac
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199$as_echo_n "checking for $2... " >&6; }
2200if eval \${$3+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  eval "$3=\$ac_header_compiler"
2204fi
2205eval ac_res=\$$3
2206	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208fi
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_header_mongrel
2212
2213# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2214# --------------------------------------------
2215# Tries to find the compile-time value of EXPR in a program that includes
2216# INCLUDES, setting VAR accordingly. Returns whether the value could be
2217# computed
2218ac_fn_c_compute_int ()
2219{
2220  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221  if test "$cross_compiling" = yes; then
2222    # Depending upon the size, compute the lo and hi bounds.
2223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$4
2226int
2227main ()
2228{
2229static int test_array [1 - 2 * !(($2) >= 0)];
2230test_array [0] = 0;
2231return test_array [0];
2232
2233  ;
2234  return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238  ac_lo=0 ac_mid=0
2239  while :; do
2240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h.  */
2242$4
2243int
2244main ()
2245{
2246static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2247test_array [0] = 0;
2248return test_array [0];
2249
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254if ac_fn_c_try_compile "$LINENO"; then :
2255  ac_hi=$ac_mid; break
2256else
2257  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2258			if test $ac_lo -le $ac_mid; then
2259			  ac_lo= ac_hi=
2260			  break
2261			fi
2262			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265  done
2266else
2267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h.  */
2269$4
2270int
2271main ()
2272{
2273static int test_array [1 - 2 * !(($2) < 0)];
2274test_array [0] = 0;
2275return test_array [0];
2276
2277  ;
2278  return 0;
2279}
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282  ac_hi=-1 ac_mid=-1
2283  while :; do
2284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285/* end confdefs.h.  */
2286$4
2287int
2288main ()
2289{
2290static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2291test_array [0] = 0;
2292return test_array [0];
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298if ac_fn_c_try_compile "$LINENO"; then :
2299  ac_lo=$ac_mid; break
2300else
2301  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2302			if test $ac_mid -le $ac_hi; then
2303			  ac_lo= ac_hi=
2304			  break
2305			fi
2306			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2307fi
2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309  done
2310else
2311  ac_lo= ac_hi=
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316# Binary search between lo and hi bounds.
2317while test "x$ac_lo" != "x$ac_hi"; do
2318  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h.  */
2321$4
2322int
2323main ()
2324{
2325static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2326test_array [0] = 0;
2327return test_array [0];
2328
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"; then :
2334  ac_hi=$ac_mid
2335else
2336  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339done
2340case $ac_lo in #((
2341?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2342'') ac_retval=1 ;;
2343esac
2344  else
2345    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h.  */
2347$4
2348static long int longval () { return $2; }
2349static unsigned long int ulongval () { return $2; }
2350#include <stdio.h>
2351#include <stdlib.h>
2352int
2353main ()
2354{
2355
2356  FILE *f = fopen ("conftest.val", "w");
2357  if (! f)
2358    return 1;
2359  if (($2) < 0)
2360    {
2361      long int i = longval ();
2362      if (i != ($2))
2363	return 1;
2364      fprintf (f, "%ld", i);
2365    }
2366  else
2367    {
2368      unsigned long int i = ulongval ();
2369      if (i != ($2))
2370	return 1;
2371      fprintf (f, "%lu", i);
2372    }
2373  /* Do not output a trailing newline, as this causes \r\n confusion
2374     on some platforms.  */
2375  return ferror (f) || fclose (f) != 0;
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_run "$LINENO"; then :
2382  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2383else
2384  ac_retval=1
2385fi
2386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2387  conftest.$ac_objext conftest.beam conftest.$ac_ext
2388rm -f conftest.val
2389
2390  fi
2391  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392  as_fn_set_status $ac_retval
2393
2394} # ac_fn_c_compute_int
2395
2396# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2397# ---------------------------------------------
2398# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2399# accordingly.
2400ac_fn_c_check_decl ()
2401{
2402  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403  as_decl_name=`echo $2|sed 's/ *(.*//'`
2404  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2406$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2407if eval \${$3+:} false; then :
2408  $as_echo_n "(cached) " >&6
2409else
2410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412$4
2413int
2414main ()
2415{
2416#ifndef $as_decl_name
2417#ifdef __cplusplus
2418  (void) $as_decl_use;
2419#else
2420  (void) $as_decl_name;
2421#endif
2422#endif
2423
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428if ac_fn_c_try_compile "$LINENO"; then :
2429  eval "$3=yes"
2430else
2431  eval "$3=no"
2432fi
2433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434fi
2435eval ac_res=\$$3
2436	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437$as_echo "$ac_res" >&6; }
2438  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439
2440} # ac_fn_c_check_decl
2441cat >config.log <<_ACEOF
2442This file contains any messages produced by compilers while
2443running configure, to aid debugging if configure makes a mistake.
2444
2445It was created by geomview $as_me 1.9.5, which was
2446generated by GNU Autoconf 2.69.  Invocation command line was
2447
2448  $ $0 $@
2449
2450_ACEOF
2451exec 5>>config.log
2452{
2453cat <<_ASUNAME
2454## --------- ##
2455## Platform. ##
2456## --------- ##
2457
2458hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2459uname -m = `(uname -m) 2>/dev/null || echo unknown`
2460uname -r = `(uname -r) 2>/dev/null || echo unknown`
2461uname -s = `(uname -s) 2>/dev/null || echo unknown`
2462uname -v = `(uname -v) 2>/dev/null || echo unknown`
2463
2464/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2465/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2466
2467/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2468/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2469/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2470/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2471/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2472/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2473/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2474
2475_ASUNAME
2476
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480  IFS=$as_save_IFS
2481  test -z "$as_dir" && as_dir=.
2482    $as_echo "PATH: $as_dir"
2483  done
2484IFS=$as_save_IFS
2485
2486} >&5
2487
2488cat >&5 <<_ACEOF
2489
2490
2491## ----------- ##
2492## Core tests. ##
2493## ----------- ##
2494
2495_ACEOF
2496
2497
2498# Keep a trace of the command line.
2499# Strip out --no-create and --no-recursion so they do not pile up.
2500# Strip out --silent because we don't want to record it for future runs.
2501# Also quote any args containing shell meta-characters.
2502# Make two passes to allow for proper duplicate-argument suppression.
2503ac_configure_args=
2504ac_configure_args0=
2505ac_configure_args1=
2506ac_must_keep_next=false
2507for ac_pass in 1 2
2508do
2509  for ac_arg
2510  do
2511    case $ac_arg in
2512    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2513    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2514    | -silent | --silent | --silen | --sile | --sil)
2515      continue ;;
2516    *\'*)
2517      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2518    esac
2519    case $ac_pass in
2520    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2521    2)
2522      as_fn_append ac_configure_args1 " '$ac_arg'"
2523      if test $ac_must_keep_next = true; then
2524	ac_must_keep_next=false # Got value, back to normal.
2525      else
2526	case $ac_arg in
2527	  *=* | --config-cache | -C | -disable-* | --disable-* \
2528	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2529	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2530	  | -with-* | --with-* | -without-* | --without-* | --x)
2531	    case "$ac_configure_args0 " in
2532	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2533	    esac
2534	    ;;
2535	  -* ) ac_must_keep_next=true ;;
2536	esac
2537      fi
2538      as_fn_append ac_configure_args " '$ac_arg'"
2539      ;;
2540    esac
2541  done
2542done
2543{ ac_configure_args0=; unset ac_configure_args0;}
2544{ ac_configure_args1=; unset ac_configure_args1;}
2545
2546# When interrupted or exit'd, cleanup temporary files, and complete
2547# config.log.  We remove comments because anyway the quotes in there
2548# would cause problems or look ugly.
2549# WARNING: Use '\'' to represent an apostrophe within the trap.
2550# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2551trap 'exit_status=$?
2552  # Save into config.log some information that might help in debugging.
2553  {
2554    echo
2555
2556    $as_echo "## ---------------- ##
2557## Cache variables. ##
2558## ---------------- ##"
2559    echo
2560    # The following way of writing the cache mishandles newlines in values,
2561(
2562  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2563    eval ac_val=\$$ac_var
2564    case $ac_val in #(
2565    *${as_nl}*)
2566      case $ac_var in #(
2567      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2568$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2569      esac
2570      case $ac_var in #(
2571      _ | IFS | as_nl) ;; #(
2572      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2573      *) { eval $ac_var=; unset $ac_var;} ;;
2574      esac ;;
2575    esac
2576  done
2577  (set) 2>&1 |
2578    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2579    *${as_nl}ac_space=\ *)
2580      sed -n \
2581	"s/'\''/'\''\\\\'\'''\''/g;
2582	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2583      ;; #(
2584    *)
2585      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2586      ;;
2587    esac |
2588    sort
2589)
2590    echo
2591
2592    $as_echo "## ----------------- ##
2593## Output variables. ##
2594## ----------------- ##"
2595    echo
2596    for ac_var in $ac_subst_vars
2597    do
2598      eval ac_val=\$$ac_var
2599      case $ac_val in
2600      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2601      esac
2602      $as_echo "$ac_var='\''$ac_val'\''"
2603    done | sort
2604    echo
2605
2606    if test -n "$ac_subst_files"; then
2607      $as_echo "## ------------------- ##
2608## File substitutions. ##
2609## ------------------- ##"
2610      echo
2611      for ac_var in $ac_subst_files
2612      do
2613	eval ac_val=\$$ac_var
2614	case $ac_val in
2615	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616	esac
2617	$as_echo "$ac_var='\''$ac_val'\''"
2618      done | sort
2619      echo
2620    fi
2621
2622    if test -s confdefs.h; then
2623      $as_echo "## ----------- ##
2624## confdefs.h. ##
2625## ----------- ##"
2626      echo
2627      cat confdefs.h
2628      echo
2629    fi
2630    test "$ac_signal" != 0 &&
2631      $as_echo "$as_me: caught signal $ac_signal"
2632    $as_echo "$as_me: exit $exit_status"
2633  } >&5
2634  rm -f core *.core core.conftest.* &&
2635    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2636    exit $exit_status
2637' 0
2638for ac_signal in 1 2 13 15; do
2639  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2640done
2641ac_signal=0
2642
2643# confdefs.h avoids OS command line length limits that DEFS can exceed.
2644rm -f -r conftest* confdefs.h
2645
2646$as_echo "/* confdefs.h */" > confdefs.h
2647
2648# Predefined preprocessor variables.
2649
2650cat >>confdefs.h <<_ACEOF
2651#define PACKAGE_NAME "$PACKAGE_NAME"
2652_ACEOF
2653
2654cat >>confdefs.h <<_ACEOF
2655#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2656_ACEOF
2657
2658cat >>confdefs.h <<_ACEOF
2659#define PACKAGE_VERSION "$PACKAGE_VERSION"
2660_ACEOF
2661
2662cat >>confdefs.h <<_ACEOF
2663#define PACKAGE_STRING "$PACKAGE_STRING"
2664_ACEOF
2665
2666cat >>confdefs.h <<_ACEOF
2667#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2668_ACEOF
2669
2670cat >>confdefs.h <<_ACEOF
2671#define PACKAGE_URL "$PACKAGE_URL"
2672_ACEOF
2673
2674
2675# Let the site file select an alternate cache file if it wants to.
2676# Prefer an explicitly selected file to automatically selected ones.
2677ac_site_file1=NONE
2678ac_site_file2=NONE
2679if test -n "$CONFIG_SITE"; then
2680  # We do not want a PATH search for config.site.
2681  case $CONFIG_SITE in #((
2682    -*)  ac_site_file1=./$CONFIG_SITE;;
2683    */*) ac_site_file1=$CONFIG_SITE;;
2684    *)   ac_site_file1=./$CONFIG_SITE;;
2685  esac
2686elif test "x$prefix" != xNONE; then
2687  ac_site_file1=$prefix/share/config.site
2688  ac_site_file2=$prefix/etc/config.site
2689else
2690  ac_site_file1=$ac_default_prefix/share/config.site
2691  ac_site_file2=$ac_default_prefix/etc/config.site
2692fi
2693for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2694do
2695  test "x$ac_site_file" = xNONE && continue
2696  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2697    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2698$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2699    sed 's/^/| /' "$ac_site_file" >&5
2700    . "$ac_site_file" \
2701      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703as_fn_error $? "failed to load site script $ac_site_file
2704See \`config.log' for more details" "$LINENO" 5; }
2705  fi
2706done
2707
2708if test -r "$cache_file"; then
2709  # Some versions of bash will fail to source /dev/null (special files
2710  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2711  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2712    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2713$as_echo "$as_me: loading cache $cache_file" >&6;}
2714    case $cache_file in
2715      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2716      *)                      . "./$cache_file";;
2717    esac
2718  fi
2719else
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2721$as_echo "$as_me: creating cache $cache_file" >&6;}
2722  >$cache_file
2723fi
2724
2725# Check that the precious variables saved in the cache have kept the same
2726# value.
2727ac_cache_corrupted=false
2728for ac_var in $ac_precious_vars; do
2729  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2730  eval ac_new_set=\$ac_env_${ac_var}_set
2731  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2732  eval ac_new_val=\$ac_env_${ac_var}_value
2733  case $ac_old_set,$ac_new_set in
2734    set,)
2735      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2736$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2737      ac_cache_corrupted=: ;;
2738    ,set)
2739      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2740$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2741      ac_cache_corrupted=: ;;
2742    ,);;
2743    *)
2744      if test "x$ac_old_val" != "x$ac_new_val"; then
2745	# differences in whitespace do not lead to failure.
2746	ac_old_val_w=`echo x $ac_old_val`
2747	ac_new_val_w=`echo x $ac_new_val`
2748	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2749	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2750$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2751	  ac_cache_corrupted=:
2752	else
2753	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2754$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2755	  eval $ac_var=\$ac_old_val
2756	fi
2757	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2758$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2759	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2760$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2761      fi;;
2762  esac
2763  # Pass precious variables to config.status.
2764  if test "$ac_new_set" = set; then
2765    case $ac_new_val in
2766    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2767    *) ac_arg=$ac_var=$ac_new_val ;;
2768    esac
2769    case " $ac_configure_args " in
2770      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2771      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2772    esac
2773  fi
2774done
2775if $ac_cache_corrupted; then
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2779$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2780  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2781fi
2782## -------------------- ##
2783## Main body of script. ##
2784## -------------------- ##
2785
2786ac_ext=c
2787ac_cpp='$CPP $CPPFLAGS'
2788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791
2792
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring $PACKAGE_NAME $PACKAGE_VERSION" >&5
2794$as_echo "configuring $PACKAGE_NAME $PACKAGE_VERSION" >&6; }
2795ac_aux_dir=
2796for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2797  if test -f "$ac_dir/install-sh"; then
2798    ac_aux_dir=$ac_dir
2799    ac_install_sh="$ac_aux_dir/install-sh -c"
2800    break
2801  elif test -f "$ac_dir/install.sh"; then
2802    ac_aux_dir=$ac_dir
2803    ac_install_sh="$ac_aux_dir/install.sh -c"
2804    break
2805  elif test -f "$ac_dir/shtool"; then
2806    ac_aux_dir=$ac_dir
2807    ac_install_sh="$ac_aux_dir/shtool install -c"
2808    break
2809  fi
2810done
2811if test -z "$ac_aux_dir"; then
2812  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2813fi
2814
2815# These three variables are undocumented and unsupported,
2816# and are intended to be withdrawn in a future Autoconf release.
2817# They can cause serious problems if a builder's source tree is in a directory
2818# whose full name contains unusual characters.
2819ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2820ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2821ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2822
2823
2824# Make sure we can run config.sub.
2825$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829$as_echo_n "checking build system type... " >&6; }
2830if ${ac_cv_build+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  ac_build_alias=$build_alias
2834test "x$ac_build_alias" = x &&
2835  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836test "x$ac_build_alias" = x &&
2837  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843$as_echo "$ac_cv_build" >&6; }
2844case $ac_cv_build in
2845*-*-*) ;;
2846*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2847esac
2848build=$ac_cv_build
2849ac_save_IFS=$IFS; IFS='-'
2850set x $ac_cv_build
2851shift
2852build_cpu=$1
2853build_vendor=$2
2854shift; shift
2855# Remember, the first character of IFS is used to create $*,
2856# except with old shells:
2857build_os=$*
2858IFS=$ac_save_IFS
2859case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863$as_echo_n "checking host system type... " >&6; }
2864if ${ac_cv_host+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test "x$host_alias" = x; then
2868  ac_cv_host=$ac_cv_build
2869else
2870  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2872fi
2873
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876$as_echo "$ac_cv_host" >&6; }
2877case $ac_cv_host in
2878*-*-*) ;;
2879*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2880esac
2881host=$ac_cv_host
2882ac_save_IFS=$IFS; IFS='-'
2883set x $ac_cv_host
2884shift
2885host_cpu=$1
2886host_vendor=$2
2887shift; shift
2888# Remember, the first character of IFS is used to create $*,
2889# except with old shells:
2890host_os=$*
2891IFS=$ac_save_IFS
2892case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2896$as_echo_n "checking target system type... " >&6; }
2897if ${ac_cv_target+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  if test "x$target_alias" = x; then
2901  ac_cv_target=$ac_cv_host
2902else
2903  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2904    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2905fi
2906
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2909$as_echo "$ac_cv_target" >&6; }
2910case $ac_cv_target in
2911*-*-*) ;;
2912*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2913esac
2914target=$ac_cv_target
2915ac_save_IFS=$IFS; IFS='-'
2916set x $ac_cv_target
2917shift
2918target_cpu=$1
2919target_vendor=$2
2920shift; shift
2921# Remember, the first character of IFS is used to create $*,
2922# except with old shells:
2923target_os=$*
2924IFS=$ac_save_IFS
2925case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2926
2927
2928# The aliases save the names the user supplied, while $host etc.
2929# will get canonicalized.
2930test -n "$target_alias" &&
2931  test "$program_prefix$program_suffix$program_transform_name" = \
2932    NONENONEs,x,x, &&
2933  program_prefix=${target_alias}-
2934am__api_version='1.14'
2935
2936# Find a good install program.  We prefer a C program (faster),
2937# so one script is as good as another.  But avoid the broken or
2938# incompatible versions:
2939# SysV /etc/install, /usr/sbin/install
2940# SunOS /usr/etc/install
2941# IRIX /sbin/install
2942# AIX /bin/install
2943# AmigaOS /C/install, which installs bootblocks on floppy discs
2944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2945# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2947# OS/2's system install, which has a completely different semantic
2948# ./install, which can be erroneously created by make from ./install.sh.
2949# Reject install programs that cannot install multiple files.
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2951$as_echo_n "checking for a BSD-compatible install... " >&6; }
2952if test -z "$INSTALL"; then
2953if ${ac_cv_path_install+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  test -z "$as_dir" && as_dir=.
2961    # Account for people who put trailing slashes in PATH elements.
2962case $as_dir/ in #((
2963  ./ | .// | /[cC]/* | \
2964  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2965  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2966  /usr/ucb/* ) ;;
2967  *)
2968    # OSF1 and SCO ODT 3.0 have their own names for install.
2969    # Don't use installbsd from OSF since it installs stuff as root
2970    # by default.
2971    for ac_prog in ginstall scoinst install; do
2972      for ac_exec_ext in '' $ac_executable_extensions; do
2973	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2974	  if test $ac_prog = install &&
2975	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976	    # AIX install.  It has an incompatible calling convention.
2977	    :
2978	  elif test $ac_prog = install &&
2979	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980	    # program-specific install script used by HP pwplus--don't use.
2981	    :
2982	  else
2983	    rm -rf conftest.one conftest.two conftest.dir
2984	    echo one > conftest.one
2985	    echo two > conftest.two
2986	    mkdir conftest.dir
2987	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2988	      test -s conftest.one && test -s conftest.two &&
2989	      test -s conftest.dir/conftest.one &&
2990	      test -s conftest.dir/conftest.two
2991	    then
2992	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2993	      break 3
2994	    fi
2995	  fi
2996	fi
2997      done
2998    done
2999    ;;
3000esac
3001
3002  done
3003IFS=$as_save_IFS
3004
3005rm -rf conftest.one conftest.two conftest.dir
3006
3007fi
3008  if test "${ac_cv_path_install+set}" = set; then
3009    INSTALL=$ac_cv_path_install
3010  else
3011    # As a last resort, use the slow shell script.  Don't cache a
3012    # value for INSTALL within a source directory, because that will
3013    # break other packages using the cache if that directory is
3014    # removed, or if the value is a relative name.
3015    INSTALL=$ac_install_sh
3016  fi
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3019$as_echo "$INSTALL" >&6; }
3020
3021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022# It thinks the first close brace ends the variable substitution.
3023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024
3025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3026
3027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3030$as_echo_n "checking whether build environment is sane... " >&6; }
3031# Reject unsafe characters in $srcdir or the absolute working directory
3032# name.  Accept space and tab only in the latter.
3033am_lf='
3034'
3035case `pwd` in
3036  *[\\\"\#\$\&\'\`$am_lf]*)
3037    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3038esac
3039case $srcdir in
3040  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3041    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3042esac
3043
3044# Do 'set' in a subshell so we don't clobber the current shell's
3045# arguments.  Must try -L first in case configure is actually a
3046# symlink; some systems play weird games with the mod time of symlinks
3047# (eg FreeBSD returns the mod time of the symlink's containing
3048# directory).
3049if (
3050   am_has_slept=no
3051   for am_try in 1 2; do
3052     echo "timestamp, slept: $am_has_slept" > conftest.file
3053     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3054     if test "$*" = "X"; then
3055	# -L didn't work.
3056	set X `ls -t "$srcdir/configure" conftest.file`
3057     fi
3058     if test "$*" != "X $srcdir/configure conftest.file" \
3059	&& test "$*" != "X conftest.file $srcdir/configure"; then
3060
3061	# If neither matched, then we have a broken ls.  This can happen
3062	# if, for instance, CONFIG_SHELL is bash and it inherits a
3063	# broken ls alias from the environment.  This has actually
3064	# happened.  Such a system could not be considered "sane".
3065	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3066  alias in your environment" "$LINENO" 5
3067     fi
3068     if test "$2" = conftest.file || test $am_try -eq 2; then
3069       break
3070     fi
3071     # Just in case.
3072     sleep 1
3073     am_has_slept=yes
3074   done
3075   test "$2" = conftest.file
3076   )
3077then
3078   # Ok.
3079   :
3080else
3081   as_fn_error $? "newly created file is older than distributed files!
3082Check your system clock" "$LINENO" 5
3083fi
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085$as_echo "yes" >&6; }
3086# If we didn't sleep, we still need to ensure time stamps of config.status and
3087# generated files are strictly newer.
3088am_sleep_pid=
3089if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3090  ( sleep 1 ) &
3091  am_sleep_pid=$!
3092fi
3093
3094rm -f conftest.file
3095
3096test "$program_prefix" != NONE &&
3097  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3098# Use a double $ so make ignores it.
3099test "$program_suffix" != NONE &&
3100  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3101# Double any \ or $.
3102# By default was `s,x,x', remove it if useless.
3103ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3104program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3105
3106# expand $ac_aux_dir to an absolute path
3107am_aux_dir=`cd $ac_aux_dir && pwd`
3108
3109if test x"${MISSING+set}" != xset; then
3110  case $am_aux_dir in
3111  *\ * | *\	*)
3112    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3113  *)
3114    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3115  esac
3116fi
3117# Use eval to expand $SHELL
3118if eval "$MISSING --is-lightweight"; then
3119  am_missing_run="$MISSING "
3120else
3121  am_missing_run=
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3123$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3124fi
3125
3126if test x"${install_sh}" != xset; then
3127  case $am_aux_dir in
3128  *\ * | *\	*)
3129    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130  *)
3131    install_sh="\${SHELL} $am_aux_dir/install-sh"
3132  esac
3133fi
3134
3135# Installed binaries are usually stripped using 'strip' when the user
3136# run "make install-strip".  However 'strip' might not be the right
3137# tool to use in cross-compilation environments, therefore Automake
3138# will honor the 'STRIP' environment variable to overrule this program.
3139if test "$cross_compiling" != no; then
3140  if test -n "$ac_tool_prefix"; then
3141  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142set dummy ${ac_tool_prefix}strip; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_STRIP+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$STRIP"; then
3149  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168STRIP=$ac_cv_prog_STRIP
3169if test -n "$STRIP"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171$as_echo "$STRIP" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178fi
3179if test -z "$ac_cv_prog_STRIP"; then
3180  ac_ct_STRIP=$STRIP
3181  # Extract the first word of "strip", so it can be a program name with args.
3182set dummy strip; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$ac_ct_STRIP"; then
3189  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198    ac_cv_prog_ac_ct_STRIP="strip"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3209if test -n "$ac_ct_STRIP"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3211$as_echo "$ac_ct_STRIP" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217  if test "x$ac_ct_STRIP" = x; then
3218    STRIP=":"
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    STRIP=$ac_ct_STRIP
3227  fi
3228else
3229  STRIP="$ac_cv_prog_STRIP"
3230fi
3231
3232fi
3233INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3234
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3236$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3237if test -z "$MKDIR_P"; then
3238  if ${ac_cv_path_mkdir+:} false; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246    for ac_prog in mkdir gmkdir; do
3247	 for ac_exec_ext in '' $ac_executable_extensions; do
3248	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3249	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3250	     'mkdir (GNU coreutils) '* | \
3251	     'mkdir (coreutils) '* | \
3252	     'mkdir (fileutils) '4.1*)
3253	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3254	       break 3;;
3255	   esac
3256	 done
3257       done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262
3263  test -d ./--version && rmdir ./--version
3264  if test "${ac_cv_path_mkdir+set}" = set; then
3265    MKDIR_P="$ac_cv_path_mkdir -p"
3266  else
3267    # As a last resort, use the slow shell script.  Don't cache a
3268    # value for MKDIR_P within a source directory, because that will
3269    # break other packages using the cache if that directory is
3270    # removed, or if the value is a relative name.
3271    MKDIR_P="$ac_install_sh -d"
3272  fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3275$as_echo "$MKDIR_P" >&6; }
3276
3277for ac_prog in gawk mawk nawk awk
3278do
3279  # Extract the first word of "$ac_prog", so it can be a program name with args.
3280set dummy $ac_prog; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
3283if ${ac_cv_prog_AWK+:} false; then :
3284  $as_echo_n "(cached) " >&6
3285else
3286  if test -n "$AWK"; then
3287  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294    for ac_exec_ext in '' $ac_executable_extensions; do
3295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296    ac_cv_prog_AWK="$ac_prog"
3297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306AWK=$ac_cv_prog_AWK
3307if test -n "$AWK"; then
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3309$as_echo "$AWK" >&6; }
3310else
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315
3316  test -n "$AWK" && break
3317done
3318
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3320$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3321set x ${MAKE-make}
3322ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3323if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3324  $as_echo_n "(cached) " >&6
3325else
3326  cat >conftest.make <<\_ACEOF
3327SHELL = /bin/sh
3328all:
3329	@echo '@@@%%%=$(MAKE)=@@@%%%'
3330_ACEOF
3331# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3332case `${MAKE-make} -f conftest.make 2>/dev/null` in
3333  *@@@%%%=?*=@@@%%%*)
3334    eval ac_cv_prog_make_${ac_make}_set=yes;;
3335  *)
3336    eval ac_cv_prog_make_${ac_make}_set=no;;
3337esac
3338rm -f conftest.make
3339fi
3340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342$as_echo "yes" >&6; }
3343  SET_MAKE=
3344else
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347  SET_MAKE="MAKE=${MAKE-make}"
3348fi
3349
3350rm -rf .tst 2>/dev/null
3351mkdir .tst 2>/dev/null
3352if test -d .tst; then
3353  am__leading_dot=.
3354else
3355  am__leading_dot=_
3356fi
3357rmdir .tst 2>/dev/null
3358
3359# Check whether --enable-silent-rules was given.
3360if test "${enable_silent_rules+set}" = set; then :
3361  enableval=$enable_silent_rules;
3362fi
3363
3364case $enable_silent_rules in # (((
3365  yes) AM_DEFAULT_VERBOSITY=0;;
3366   no) AM_DEFAULT_VERBOSITY=1;;
3367    *) AM_DEFAULT_VERBOSITY=1;;
3368esac
3369am_make=${MAKE-make}
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3371$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3372if ${am_cv_make_support_nested_variables+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  if $as_echo 'TRUE=$(BAR$(V))
3376BAR0=false
3377BAR1=true
3378V=1
3379am__doit:
3380	@$(TRUE)
3381.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3382  am_cv_make_support_nested_variables=yes
3383else
3384  am_cv_make_support_nested_variables=no
3385fi
3386fi
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3388$as_echo "$am_cv_make_support_nested_variables" >&6; }
3389if test $am_cv_make_support_nested_variables = yes; then
3390    AM_V='$(V)'
3391  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3392else
3393  AM_V=$AM_DEFAULT_VERBOSITY
3394  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3395fi
3396AM_BACKSLASH='\'
3397
3398if test "`cd $srcdir && pwd`" != "`pwd`"; then
3399  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3400  # is not polluted with repeated "-I."
3401  am__isrc=' -I$(srcdir)'
3402  # test to see if srcdir already configured
3403  if test -f $srcdir/config.status; then
3404    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3405  fi
3406fi
3407
3408# test whether we have cygpath
3409if test -z "$CYGPATH_W"; then
3410  if (cygpath --version) >/dev/null 2>/dev/null; then
3411    CYGPATH_W='cygpath -w'
3412  else
3413    CYGPATH_W=echo
3414  fi
3415fi
3416
3417
3418# Define the identity of the package.
3419 PACKAGE='geomview'
3420 VERSION='1.9.5'
3421
3422
3423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE "$PACKAGE"
3425_ACEOF
3426
3427
3428cat >>confdefs.h <<_ACEOF
3429#define VERSION "$VERSION"
3430_ACEOF
3431
3432# Some tools Automake needs.
3433
3434ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3435
3436
3437AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3438
3439
3440AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3441
3442
3443AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3444
3445
3446MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3447
3448# For better backward compatibility.  To be removed once Automake 1.9.x
3449# dies out for good.  For more background, see:
3450# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3451# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3452mkdir_p='$(MKDIR_P)'
3453
3454# We need awk for the "check" target.  The system "awk" is bad on
3455# some platforms.
3456# Always define AMTAR for backward compatibility.  Yes, it's still used
3457# in the wild :-(  We should find a proper way to deprecate it ...
3458AMTAR='$${TAR-tar}'
3459
3460
3461# We'll loop over all known methods to create a tar archive until one works.
3462_am_tools='gnutar  pax cpio none'
3463
3464am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3465
3466
3467
3468
3469
3470
3471# POSIX will say in a future version that running "rm -f" with no argument
3472# is OK; and we want to be able to make that assumption in our Makefile
3473# recipes.  So use an aggressive probe to check that the usage we want is
3474# actually supported "in the wild" to an acceptable degree.
3475# See automake bug#10828.
3476# To make any issue more visible, cause the running configure to be aborted
3477# by default if the 'rm' program in use doesn't match our expectations; the
3478# user can still override this though.
3479if rm -f && rm -fr && rm -rf; then : OK; else
3480  cat >&2 <<'END'
3481Oops!
3482
3483Your 'rm' program seems unable to run without file operands specified
3484on the command line, even when the '-f' option is present.  This is contrary
3485to the behaviour of most rm programs out there, and not conforming with
3486the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3487
3488Please tell bug-automake@gnu.org about your system, including the value
3489of your $PATH and any error possibly output before this message.  This
3490can help us improve future automake versions.
3491
3492END
3493  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3494    echo 'Configuration will proceed anyway, since you have set the' >&2
3495    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3496    echo >&2
3497  else
3498    cat >&2 <<'END'
3499Aborting the configuration process, to ensure you take notice of the issue.
3500
3501You can download and install GNU coreutils to get an 'rm' implementation
3502that behaves properly: <http://www.gnu.org/software/coreutils/>.
3503
3504If you want to complete the configuration process using your problematic
3505'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3506to "yes", and re-run configure.
3507
3508END
3509    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3510  fi
3511fi
3512
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3514$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3515    # Check whether --enable-maintainer-mode was given.
3516if test "${enable_maintainer_mode+set}" = set; then :
3517  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3518else
3519  USE_MAINTAINER_MODE=no
3520fi
3521
3522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3523$as_echo "$USE_MAINTAINER_MODE" >&6; }
3524   if test $USE_MAINTAINER_MODE = yes; then
3525  MAINTAINER_MODE_TRUE=
3526  MAINTAINER_MODE_FALSE='#'
3527else
3528  MAINTAINER_MODE_TRUE='#'
3529  MAINTAINER_MODE_FALSE=
3530fi
3531
3532  MAINT=$MAINTAINER_MODE_TRUE
3533
3534
3535
3536ac_config_headers="$ac_config_headers config.h"
3537
3538
3539
3540
3541
3542
3543test "x${DEFAULT_PREFIX}" = "x" && DEFAULT_PREFIX="${ac_default_prefix}"
3544test "x$prefix" = xNONE && prefix="${DEFAULT_PREFIX}"
3545PREFIX="${prefix}"
3546# Let make expand exec_prefix.
3547test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3548expanded_prefix=`eval eval eval echo ${prefix}`
3549
3550expanded_exec_prefix=`eval eval eval echo ${exec_prefix}`
3551
3552
3553
3554
3555# Check whether --with-build-path was given.
3556if test "${with_build_path+set}" = set; then :
3557  withval=$with_build_path;
3558for d in `echo $withval | tr : ' '`; do
3559    test -d $d/include && CPPFLAGS="$CPPFLAGS -I$d/include"
3560    test -d $d/lib && LDFLAGS="$LDFLAGS -L$d/lib"
3561done
3562
3563fi
3564
3565
3566## Autoheader stuff.
3567
3568
3569
3570
3571################################################################################
3572#
3573# What follows was originally output from autoscan. We do some generic
3574# checking before overiding specific stuff (ACCEPT_ARG3_TYPE) for
3575# certain known systems.
3576#
3577
3578# Checks for programs.
3579ac_ext=cpp
3580ac_cpp='$CXXCPP $CPPFLAGS'
3581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3584if test -z "$CXX"; then
3585  if test -n "$CCC"; then
3586    CXX=$CCC
3587  else
3588    if test -n "$ac_tool_prefix"; then
3589  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590  do
3591    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_CXX+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$CXX"; then
3599  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618CXX=$ac_cv_prog_CXX
3619if test -n "$CXX"; then
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3621$as_echo "$CXX" >&6; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627
3628    test -n "$CXX" && break
3629  done
3630fi
3631if test -z "$CXX"; then
3632  ac_ct_CXX=$CXX
3633  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3634do
3635  # Extract the first word of "$ac_prog", so it can be a program name with args.
3636set dummy $ac_prog; ac_word=$2
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638$as_echo_n "checking for $ac_word... " >&6; }
3639if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  if test -n "$ac_ct_CXX"; then
3643  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650    for ac_exec_ext in '' $ac_executable_extensions; do
3651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652    ac_cv_prog_ac_ct_CXX="$ac_prog"
3653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657  done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3663if test -n "$ac_ct_CXX"; then
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3665$as_echo "$ac_ct_CXX" >&6; }
3666else
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669fi
3670
3671
3672  test -n "$ac_ct_CXX" && break
3673done
3674
3675  if test "x$ac_ct_CXX" = x; then
3676    CXX="g++"
3677  else
3678    case $cross_compiling:$ac_tool_warned in
3679yes:)
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682ac_tool_warned=yes ;;
3683esac
3684    CXX=$ac_ct_CXX
3685  fi
3686fi
3687
3688  fi
3689fi
3690# Provide some information about the compiler.
3691$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3692set X $ac_compile
3693ac_compiler=$2
3694for ac_option in --version -v -V -qversion; do
3695  { { ac_try="$ac_compiler $ac_option >&5"
3696case "(($ac_try" in
3697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698  *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3703  ac_status=$?
3704  if test -s conftest.err; then
3705    sed '10a\
3706... rest of stderr output deleted ...
3707         10q' conftest.err >conftest.er1
3708    cat conftest.er1 >&5
3709  fi
3710  rm -f conftest.er1 conftest.err
3711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712  test $ac_status = 0; }
3713done
3714
3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726ac_clean_files_save=$ac_clean_files
3727ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3728# Try to create an executable without -o first, disregard a.out.
3729# It will help us diagnose broken compilers, and finding out an intuition
3730# of exeext.
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3732$as_echo_n "checking whether the C++ compiler works... " >&6; }
3733ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734
3735# The possible output files:
3736ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737
3738ac_rmfiles=
3739for ac_file in $ac_files
3740do
3741  case $ac_file in
3742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3744  esac
3745done
3746rm -f $ac_rmfiles
3747
3748if { { ac_try="$ac_link_default"
3749case "(($ac_try" in
3750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751  *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
3755  (eval "$ac_link_default") 2>&5
3756  ac_status=$?
3757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758  test $ac_status = 0; }; then :
3759  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3760# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3761# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3762# so that the user can short-circuit this test for compilers unknown to
3763# Autoconf.
3764for ac_file in $ac_files ''
3765do
3766  test -f "$ac_file" || continue
3767  case $ac_file in
3768    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3769	;;
3770    [ab].out )
3771	# We found the default executable, but exeext='' is most
3772	# certainly right.
3773	break;;
3774    *.* )
3775	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776	then :; else
3777	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778	fi
3779	# We set ac_cv_exeext here because the later test for it is not
3780	# safe: cross compilers may not add the suffix if given an `-o'
3781	# argument, so we may need to know it at that point already.
3782	# Even if this section looks crufty: it has the advantage of
3783	# actually working.
3784	break;;
3785    * )
3786	break;;
3787  esac
3788done
3789test "$ac_cv_exeext" = no && ac_cv_exeext=
3790
3791else
3792  ac_file=''
3793fi
3794if test -z "$ac_file"; then :
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797$as_echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error 77 "C++ compiler cannot create executables
3803See \`config.log' for more details" "$LINENO" 5; }
3804else
3805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806$as_echo "yes" >&6; }
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3809$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811$as_echo "$ac_file" >&6; }
3812ac_exeext=$ac_cv_exeext
3813
3814rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815ac_clean_files=$ac_clean_files_save
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817$as_echo_n "checking for suffix of executables... " >&6; }
3818if { { ac_try="$ac_link"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
3825  (eval "$ac_link") 2>&5
3826  ac_status=$?
3827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828  test $ac_status = 0; }; then :
3829  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3831# work properly (i.e., refer to `conftest.exe'), while it won't with
3832# `rm'.
3833for ac_file in conftest.exe conftest conftest.*; do
3834  test -f "$ac_file" || continue
3835  case $ac_file in
3836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838	  break;;
3839    * ) break;;
3840  esac
3841done
3842else
3843  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846See \`config.log' for more details" "$LINENO" 5; }
3847fi
3848rm -f conftest conftest$ac_cv_exeext
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850$as_echo "$ac_cv_exeext" >&6; }
3851
3852rm -f conftest.$ac_ext
3853EXEEXT=$ac_cv_exeext
3854ac_exeext=$EXEEXT
3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857#include <stdio.h>
3858int
3859main ()
3860{
3861FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868ac_clean_files="$ac_clean_files conftest.out"
3869# Check that the compiler produces executables we can run.  If not, either
3870# the compiler is broken, or we cross compile.
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872$as_echo_n "checking whether we are cross compiling... " >&6; }
3873if test "$cross_compiling" != yes; then
3874  { { ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881  (eval "$ac_link") 2>&5
3882  ac_status=$?
3883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885  if { ac_try='./conftest$ac_cv_exeext'
3886  { { case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891$as_echo "$ac_try_echo"; } >&5
3892  (eval "$ac_try") 2>&5
3893  ac_status=$?
3894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895  test $ac_status = 0; }; }; then
3896    cross_compiling=no
3897  else
3898    if test "$cross_compiling" = maybe; then
3899	cross_compiling=yes
3900    else
3901	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903as_fn_error $? "cannot run C++ compiled programs.
3904If you meant to cross compile, use \`--host'.
3905See \`config.log' for more details" "$LINENO" 5; }
3906    fi
3907  fi
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910$as_echo "$cross_compiling" >&6; }
3911
3912rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913ac_clean_files=$ac_clean_files_save
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915$as_echo_n "checking for suffix of object files... " >&6; }
3916if ${ac_cv_objext+:} false; then :
3917  $as_echo_n "(cached) " >&6
3918else
3919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.o conftest.obj
3931if { { ac_try="$ac_compile"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937$as_echo "$ac_try_echo"; } >&5
3938  (eval "$ac_compile") 2>&5
3939  ac_status=$?
3940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }; then :
3942  for ac_file in conftest.o conftest.obj conftest.*; do
3943  test -f "$ac_file" || continue;
3944  case $ac_file in
3945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3947       break;;
3948  esac
3949done
3950else
3951  $as_echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956as_fn_error $? "cannot compute suffix of object files: cannot compile
3957See \`config.log' for more details" "$LINENO" 5; }
3958fi
3959rm -f conftest.$ac_cv_objext conftest.$ac_ext
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962$as_echo "$ac_cv_objext" >&6; }
3963OBJEXT=$ac_cv_objext
3964ac_objext=$OBJEXT
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3966$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3967if ${ac_cv_cxx_compiler_gnu+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976#ifndef __GNUC__
3977       choke me
3978#endif
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984if ac_fn_cxx_try_compile "$LINENO"; then :
3985  ac_compiler_gnu=yes
3986else
3987  ac_compiler_gnu=no
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3991
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3994$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3995if test $ac_compiler_gnu = yes; then
3996  GXX=yes
3997else
3998  GXX=
3999fi
4000ac_test_CXXFLAGS=${CXXFLAGS+set}
4001ac_save_CXXFLAGS=$CXXFLAGS
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4003$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4004if ${ac_cv_prog_cxx_g+:} false; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4008   ac_cxx_werror_flag=yes
4009   ac_cv_prog_cxx_g=no
4010   CXXFLAGS="-g"
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_cxx_try_compile "$LINENO"; then :
4023  ac_cv_prog_cxx_g=yes
4024else
4025  CXXFLAGS=""
4026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037if ac_fn_cxx_try_compile "$LINENO"; then :
4038
4039else
4040  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4041	 CXXFLAGS="-g"
4042	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053if ac_fn_cxx_try_compile "$LINENO"; then :
4054  ac_cv_prog_cxx_g=yes
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4064$as_echo "$ac_cv_prog_cxx_g" >&6; }
4065if test "$ac_test_CXXFLAGS" = set; then
4066  CXXFLAGS=$ac_save_CXXFLAGS
4067elif test $ac_cv_prog_cxx_g = yes; then
4068  if test "$GXX" = yes; then
4069    CXXFLAGS="-g -O2"
4070  else
4071    CXXFLAGS="-g"
4072  fi
4073else
4074  if test "$GXX" = yes; then
4075    CXXFLAGS="-O2"
4076  else
4077    CXXFLAGS=
4078  fi
4079fi
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085DEPDIR="${am__leading_dot}deps"
4086
4087ac_config_commands="$ac_config_commands depfiles"
4088
4089
4090am_make=${MAKE-make}
4091cat > confinc << 'END'
4092am__doit:
4093	@echo this is the am__doit target
4094.PHONY: am__doit
4095END
4096# If we don't find an include directive, just comment out the code.
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4098$as_echo_n "checking for style of include used by $am_make... " >&6; }
4099am__include="#"
4100am__quote=
4101_am_result=none
4102# First try GNU make style include.
4103echo "include confinc" > confmf
4104# Ignore all kinds of additional output from 'make'.
4105case `$am_make -s -f confmf 2> /dev/null` in #(
4106*the\ am__doit\ target*)
4107  am__include=include
4108  am__quote=
4109  _am_result=GNU
4110  ;;
4111esac
4112# Now try BSD make style include.
4113if test "$am__include" = "#"; then
4114   echo '.include "confinc"' > confmf
4115   case `$am_make -s -f confmf 2> /dev/null` in #(
4116   *the\ am__doit\ target*)
4117     am__include=.include
4118     am__quote="\""
4119     _am_result=BSD
4120     ;;
4121   esac
4122fi
4123
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4126$as_echo "$_am_result" >&6; }
4127rm -f confinc confmf
4128
4129# Check whether --enable-dependency-tracking was given.
4130if test "${enable_dependency_tracking+set}" = set; then :
4131  enableval=$enable_dependency_tracking;
4132fi
4133
4134if test "x$enable_dependency_tracking" != xno; then
4135  am_depcomp="$ac_aux_dir/depcomp"
4136  AMDEPBACKSLASH='\'
4137  am__nodep='_no'
4138fi
4139 if test "x$enable_dependency_tracking" != xno; then
4140  AMDEP_TRUE=
4141  AMDEP_FALSE='#'
4142else
4143  AMDEP_TRUE='#'
4144  AMDEP_FALSE=
4145fi
4146
4147
4148
4149depcc="$CXX"  am_compiler_list=
4150
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4152$as_echo_n "checking dependency style of $depcc... " >&6; }
4153if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4157  # We make a subdir and do the tests there.  Otherwise we can end up
4158  # making bogus files that we don't know about and never remove.  For
4159  # instance it was reported that on HP-UX the gcc test will end up
4160  # making a dummy file named 'D' -- because '-MD' means "put the output
4161  # in D".
4162  rm -rf conftest.dir
4163  mkdir conftest.dir
4164  # Copy depcomp to subdir because otherwise we won't find it if we're
4165  # using a relative directory.
4166  cp "$am_depcomp" conftest.dir
4167  cd conftest.dir
4168  # We will build objects and dependencies in a subdirectory because
4169  # it helps to detect inapplicable dependency modes.  For instance
4170  # both Tru64's cc and ICC support -MD to output dependencies as a
4171  # side effect of compilation, but ICC will put the dependencies in
4172  # the current directory while Tru64 will put them in the object
4173  # directory.
4174  mkdir sub
4175
4176  am_cv_CXX_dependencies_compiler_type=none
4177  if test "$am_compiler_list" = ""; then
4178     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4179  fi
4180  am__universal=false
4181  case " $depcc " in #(
4182     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4183     esac
4184
4185  for depmode in $am_compiler_list; do
4186    # Setup a source with many dependencies, because some compilers
4187    # like to wrap large dependency lists on column 80 (with \), and
4188    # we should not choose a depcomp mode which is confused by this.
4189    #
4190    # We need to recreate these files for each test, as the compiler may
4191    # overwrite some of them when testing with obscure command lines.
4192    # This happens at least with the AIX C compiler.
4193    : > sub/conftest.c
4194    for i in 1 2 3 4 5 6; do
4195      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4196      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4197      # Solaris 10 /bin/sh.
4198      echo '/* dummy */' > sub/conftst$i.h
4199    done
4200    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4201
4202    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4203    # mode.  It turns out that the SunPro C++ compiler does not properly
4204    # handle '-M -o', and we need to detect this.  Also, some Intel
4205    # versions had trouble with output in subdirs.
4206    am__obj=sub/conftest.${OBJEXT-o}
4207    am__minus_obj="-o $am__obj"
4208    case $depmode in
4209    gcc)
4210      # This depmode causes a compiler race in universal mode.
4211      test "$am__universal" = false || continue
4212      ;;
4213    nosideeffect)
4214      # After this tag, mechanisms are not by side-effect, so they'll
4215      # only be used when explicitly requested.
4216      if test "x$enable_dependency_tracking" = xyes; then
4217	continue
4218      else
4219	break
4220      fi
4221      ;;
4222    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4223      # This compiler won't grok '-c -o', but also, the minuso test has
4224      # not run yet.  These depmodes are late enough in the game, and
4225      # so weak that their functioning should not be impacted.
4226      am__obj=conftest.${OBJEXT-o}
4227      am__minus_obj=
4228      ;;
4229    none) break ;;
4230    esac
4231    if depmode=$depmode \
4232       source=sub/conftest.c object=$am__obj \
4233       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4234       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4235         >/dev/null 2>conftest.err &&
4236       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4237       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4238       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4239       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4240      # icc doesn't choke on unknown options, it will just issue warnings
4241      # or remarks (even with -Werror).  So we grep stderr for any message
4242      # that says an option was ignored or not supported.
4243      # When given -MP, icc 7.0 and 7.1 complain thusly:
4244      #   icc: Command line warning: ignoring option '-M'; no argument required
4245      # The diagnosis changed in icc 8.0:
4246      #   icc: Command line remark: option '-MP' not supported
4247      if (grep 'ignoring option' conftest.err ||
4248          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4249        am_cv_CXX_dependencies_compiler_type=$depmode
4250        break
4251      fi
4252    fi
4253  done
4254
4255  cd ..
4256  rm -rf conftest.dir
4257else
4258  am_cv_CXX_dependencies_compiler_type=none
4259fi
4260
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4263$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4264CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4265
4266 if
4267  test "x$enable_dependency_tracking" != xno \
4268  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4269  am__fastdepCXX_TRUE=
4270  am__fastdepCXX_FALSE='#'
4271else
4272  am__fastdepCXX_TRUE='#'
4273  am__fastdepCXX_FALSE=
4274fi
4275
4276
4277if test "$CXX" = "" ; then
4278  HAVE_CXX=false
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4280    Configuring without a C++ compiler (couldn't find one on
4281    your system).  C++ is only used only to compile the vrml->OOGL
4282    converter, so your distribution will be compiled without it.
4283  " >&5
4284$as_echo "$as_me: WARNING:
4285    Configuring without a C++ compiler (couldn't find one on
4286    your system).  C++ is only used only to compile the vrml->OOGL
4287    converter, so your distribution will be compiled without it.
4288  " >&2;}
4289else
4290  HAVE_CXX=true
4291fi
4292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297if test -n "$ac_tool_prefix"; then
4298  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4299set dummy ${ac_tool_prefix}gcc; ac_word=$2
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301$as_echo_n "checking for $ac_word... " >&6; }
4302if ${ac_cv_prog_CC+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  if test -n "$CC"; then
4306  ac_cv_prog_CC="$CC" # Let the user override the test.
4307else
4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311  IFS=$as_save_IFS
4312  test -z "$as_dir" && as_dir=.
4313    for ac_exec_ext in '' $ac_executable_extensions; do
4314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317    break 2
4318  fi
4319done
4320  done
4321IFS=$as_save_IFS
4322
4323fi
4324fi
4325CC=$ac_cv_prog_CC
4326if test -n "$CC"; then
4327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328$as_echo "$CC" >&6; }
4329else
4330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
4332fi
4333
4334
4335fi
4336if test -z "$ac_cv_prog_CC"; then
4337  ac_ct_CC=$CC
4338  # Extract the first word of "gcc", so it can be a program name with args.
4339set dummy gcc; ac_word=$2
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if ${ac_cv_prog_ac_ct_CC+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -n "$ac_ct_CC"; then
4346  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_exec_ext in '' $ac_executable_extensions; do
4354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355    ac_cv_prog_ac_ct_CC="gcc"
4356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357    break 2
4358  fi
4359done
4360  done
4361IFS=$as_save_IFS
4362
4363fi
4364fi
4365ac_ct_CC=$ac_cv_prog_ac_ct_CC
4366if test -n "$ac_ct_CC"; then
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4368$as_echo "$ac_ct_CC" >&6; }
4369else
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371$as_echo "no" >&6; }
4372fi
4373
4374  if test "x$ac_ct_CC" = x; then
4375    CC=""
4376  else
4377    case $cross_compiling:$ac_tool_warned in
4378yes:)
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381ac_tool_warned=yes ;;
4382esac
4383    CC=$ac_ct_CC
4384  fi
4385else
4386  CC="$ac_cv_prog_CC"
4387fi
4388
4389if test -z "$CC"; then
4390          if test -n "$ac_tool_prefix"; then
4391    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4392set dummy ${ac_tool_prefix}cc; ac_word=$2
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394$as_echo_n "checking for $ac_word... " >&6; }
4395if ${ac_cv_prog_CC+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if test -n "$CC"; then
4399  ac_cv_prog_CC="$CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406    for ac_exec_ext in '' $ac_executable_extensions; do
4407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408    ac_cv_prog_CC="${ac_tool_prefix}cc"
4409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410    break 2
4411  fi
4412done
4413  done
4414IFS=$as_save_IFS
4415
4416fi
4417fi
4418CC=$ac_cv_prog_CC
4419if test -n "$CC"; then
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4421$as_echo "$CC" >&6; }
4422else
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424$as_echo "no" >&6; }
4425fi
4426
4427
4428  fi
4429fi
4430if test -z "$CC"; then
4431  # Extract the first word of "cc", so it can be a program name with args.
4432set dummy cc; ac_word=$2
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if ${ac_cv_prog_CC+:} false; then :
4436  $as_echo_n "(cached) " >&6
4437else
4438  if test -n "$CC"; then
4439  ac_cv_prog_CC="$CC" # Let the user override the test.
4440else
4441  ac_prog_rejected=no
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445  IFS=$as_save_IFS
4446  test -z "$as_dir" && as_dir=.
4447    for ac_exec_ext in '' $ac_executable_extensions; do
4448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450       ac_prog_rejected=yes
4451       continue
4452     fi
4453    ac_cv_prog_CC="cc"
4454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455    break 2
4456  fi
4457done
4458  done
4459IFS=$as_save_IFS
4460
4461if test $ac_prog_rejected = yes; then
4462  # We found a bogon in the path, so make sure we never use it.
4463  set dummy $ac_cv_prog_CC
4464  shift
4465  if test $# != 0; then
4466    # We chose a different compiler from the bogus one.
4467    # However, it has the same basename, so the bogon will be chosen
4468    # first if we set CC to just the basename; use the full file name.
4469    shift
4470    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4471  fi
4472fi
4473fi
4474fi
4475CC=$ac_cv_prog_CC
4476if test -n "$CC"; then
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478$as_echo "$CC" >&6; }
4479else
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$CC"; then
4487  if test -n "$ac_tool_prefix"; then
4488  for ac_prog in cl.exe
4489  do
4490    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493$as_echo_n "checking for $ac_word... " >&6; }
4494if ${ac_cv_prog_CC+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497  if test -n "$CC"; then
4498  ac_cv_prog_CC="$CC" # Let the user override the test.
4499else
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503  IFS=$as_save_IFS
4504  test -z "$as_dir" && as_dir=.
4505    for ac_exec_ext in '' $ac_executable_extensions; do
4506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509    break 2
4510  fi
4511done
4512  done
4513IFS=$as_save_IFS
4514
4515fi
4516fi
4517CC=$ac_cv_prog_CC
4518if test -n "$CC"; then
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4520$as_echo "$CC" >&6; }
4521else
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523$as_echo "no" >&6; }
4524fi
4525
4526
4527    test -n "$CC" && break
4528  done
4529fi
4530if test -z "$CC"; then
4531  ac_ct_CC=$CC
4532  for ac_prog in cl.exe
4533do
4534  # Extract the first word of "$ac_prog", so it can be a program name with args.
4535set dummy $ac_prog; ac_word=$2
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537$as_echo_n "checking for $ac_word... " >&6; }
4538if ${ac_cv_prog_ac_ct_CC+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  if test -n "$ac_ct_CC"; then
4542  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549    for ac_exec_ext in '' $ac_executable_extensions; do
4550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551    ac_cv_prog_ac_ct_CC="$ac_prog"
4552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553    break 2
4554  fi
4555done
4556  done
4557IFS=$as_save_IFS
4558
4559fi
4560fi
4561ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562if test -n "$ac_ct_CC"; then
4563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4564$as_echo "$ac_ct_CC" >&6; }
4565else
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568fi
4569
4570
4571  test -n "$ac_ct_CC" && break
4572done
4573
4574  if test "x$ac_ct_CC" = x; then
4575    CC=""
4576  else
4577    case $cross_compiling:$ac_tool_warned in
4578yes:)
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581ac_tool_warned=yes ;;
4582esac
4583    CC=$ac_ct_CC
4584  fi
4585fi
4586
4587fi
4588
4589
4590test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592as_fn_error $? "no acceptable C compiler found in \$PATH
4593See \`config.log' for more details" "$LINENO" 5; }
4594
4595# Provide some information about the compiler.
4596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4597set X $ac_compile
4598ac_compiler=$2
4599for ac_option in --version -v -V -qversion; do
4600  { { ac_try="$ac_compiler $ac_option >&5"
4601case "(($ac_try" in
4602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603  *) ac_try_echo=$ac_try;;
4604esac
4605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606$as_echo "$ac_try_echo"; } >&5
4607  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4608  ac_status=$?
4609  if test -s conftest.err; then
4610    sed '10a\
4611... rest of stderr output deleted ...
4612         10q' conftest.err >conftest.er1
4613    cat conftest.er1 >&5
4614  fi
4615  rm -f conftest.er1 conftest.err
4616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617  test $ac_status = 0; }
4618done
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4621$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4622if ${ac_cv_c_compiler_gnu+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627
4628int
4629main ()
4630{
4631#ifndef __GNUC__
4632       choke me
4633#endif
4634
4635  ;
4636  return 0;
4637}
4638_ACEOF
4639if ac_fn_c_try_compile "$LINENO"; then :
4640  ac_compiler_gnu=yes
4641else
4642  ac_compiler_gnu=no
4643fi
4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645ac_cv_c_compiler_gnu=$ac_compiler_gnu
4646
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4649$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4650if test $ac_compiler_gnu = yes; then
4651  GCC=yes
4652else
4653  GCC=
4654fi
4655ac_test_CFLAGS=${CFLAGS+set}
4656ac_save_CFLAGS=$CFLAGS
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4658$as_echo_n "checking whether $CC accepts -g... " >&6; }
4659if ${ac_cv_prog_cc_g+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  ac_save_c_werror_flag=$ac_c_werror_flag
4663   ac_c_werror_flag=yes
4664   ac_cv_prog_cc_g=no
4665   CFLAGS="-g"
4666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h.  */
4668
4669int
4670main ()
4671{
4672
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_compile "$LINENO"; then :
4678  ac_cv_prog_cc_g=yes
4679else
4680  CFLAGS=""
4681      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_compile "$LINENO"; then :
4693
4694else
4695  ac_c_werror_flag=$ac_save_c_werror_flag
4696	 CFLAGS="-g"
4697	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h.  */
4699
4700int
4701main ()
4702{
4703
4704  ;
4705  return 0;
4706}
4707_ACEOF
4708if ac_fn_c_try_compile "$LINENO"; then :
4709  ac_cv_prog_cc_g=yes
4710fi
4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712fi
4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716   ac_c_werror_flag=$ac_save_c_werror_flag
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4719$as_echo "$ac_cv_prog_cc_g" >&6; }
4720if test "$ac_test_CFLAGS" = set; then
4721  CFLAGS=$ac_save_CFLAGS
4722elif test $ac_cv_prog_cc_g = yes; then
4723  if test "$GCC" = yes; then
4724    CFLAGS="-g -O2"
4725  else
4726    CFLAGS="-g"
4727  fi
4728else
4729  if test "$GCC" = yes; then
4730    CFLAGS="-O2"
4731  else
4732    CFLAGS=
4733  fi
4734fi
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4736$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4737if ${ac_cv_prog_cc_c89+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  ac_cv_prog_cc_c89=no
4741ac_save_CC=$CC
4742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743/* end confdefs.h.  */
4744#include <stdarg.h>
4745#include <stdio.h>
4746struct stat;
4747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4748struct buf { int x; };
4749FILE * (*rcsopen) (struct buf *, struct stat *, int);
4750static char *e (p, i)
4751     char **p;
4752     int i;
4753{
4754  return p[i];
4755}
4756static char *f (char * (*g) (char **, int), char **p, ...)
4757{
4758  char *s;
4759  va_list v;
4760  va_start (v,p);
4761  s = g (p, va_arg (v,int));
4762  va_end (v);
4763  return s;
4764}
4765
4766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4767   function prototypes and stuff, but not '\xHH' hex character constants.
4768   These don't provoke an error unfortunately, instead are silently treated
4769   as 'x'.  The following induces an error, until -std is added to get
4770   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4771   array size at least.  It's necessary to write '\x00'==0 to get something
4772   that's true only with -std.  */
4773int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4774
4775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4776   inside strings and character constants.  */
4777#define FOO(x) 'x'
4778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4779
4780int test (int i, double x);
4781struct s1 {int (*f) (int a);};
4782struct s2 {int (*f) (double a);};
4783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4784int argc;
4785char **argv;
4786int
4787main ()
4788{
4789return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4790  ;
4791  return 0;
4792}
4793_ACEOF
4794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4795	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4796do
4797  CC="$ac_save_CC $ac_arg"
4798  if ac_fn_c_try_compile "$LINENO"; then :
4799  ac_cv_prog_cc_c89=$ac_arg
4800fi
4801rm -f core conftest.err conftest.$ac_objext
4802  test "x$ac_cv_prog_cc_c89" != "xno" && break
4803done
4804rm -f conftest.$ac_ext
4805CC=$ac_save_CC
4806
4807fi
4808# AC_CACHE_VAL
4809case "x$ac_cv_prog_cc_c89" in
4810  x)
4811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4812$as_echo "none needed" >&6; } ;;
4813  xno)
4814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4815$as_echo "unsupported" >&6; } ;;
4816  *)
4817    CC="$CC $ac_cv_prog_cc_c89"
4818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4820esac
4821if test "x$ac_cv_prog_cc_c89" != xno; then :
4822
4823fi
4824
4825ac_ext=c
4826ac_cpp='$CPP $CPPFLAGS'
4827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
4831ac_ext=c
4832ac_cpp='$CPP $CPPFLAGS'
4833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4837$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4838if ${am_cv_prog_cc_c_o+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842/* end confdefs.h.  */
4843
4844int
4845main ()
4846{
4847
4848  ;
4849  return 0;
4850}
4851_ACEOF
4852  # Make sure it works both with $CC and with simple cc.
4853  # Following AC_PROG_CC_C_O, we do the test twice because some
4854  # compilers refuse to overwrite an existing .o file with -o,
4855  # though they will create one.
4856  am_cv_prog_cc_c_o=yes
4857  for am_i in 1 2; do
4858    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4859   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } \
4863         && test -f conftest2.$ac_objext; then
4864      : OK
4865    else
4866      am_cv_prog_cc_c_o=no
4867      break
4868    fi
4869  done
4870  rm -f core conftest*
4871  unset am_i
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4874$as_echo "$am_cv_prog_cc_c_o" >&6; }
4875if test "$am_cv_prog_cc_c_o" != yes; then
4876   # Losing compiler, so override with the script.
4877   # FIXME: It is wrong to rewrite CC.
4878   # But if we don't then we get into trouble of one sort or another.
4879   # A longer-term fix would be to have automake use am__CC in this case,
4880   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4881   CC="$am_aux_dir/compile $CC"
4882fi
4883ac_ext=c
4884ac_cpp='$CPP $CPPFLAGS'
4885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888
4889
4890depcc="$CC"   am_compiler_list=
4891
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4893$as_echo_n "checking dependency style of $depcc... " >&6; }
4894if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4898  # We make a subdir and do the tests there.  Otherwise we can end up
4899  # making bogus files that we don't know about and never remove.  For
4900  # instance it was reported that on HP-UX the gcc test will end up
4901  # making a dummy file named 'D' -- because '-MD' means "put the output
4902  # in D".
4903  rm -rf conftest.dir
4904  mkdir conftest.dir
4905  # Copy depcomp to subdir because otherwise we won't find it if we're
4906  # using a relative directory.
4907  cp "$am_depcomp" conftest.dir
4908  cd conftest.dir
4909  # We will build objects and dependencies in a subdirectory because
4910  # it helps to detect inapplicable dependency modes.  For instance
4911  # both Tru64's cc and ICC support -MD to output dependencies as a
4912  # side effect of compilation, but ICC will put the dependencies in
4913  # the current directory while Tru64 will put them in the object
4914  # directory.
4915  mkdir sub
4916
4917  am_cv_CC_dependencies_compiler_type=none
4918  if test "$am_compiler_list" = ""; then
4919     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4920  fi
4921  am__universal=false
4922  case " $depcc " in #(
4923     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4924     esac
4925
4926  for depmode in $am_compiler_list; do
4927    # Setup a source with many dependencies, because some compilers
4928    # like to wrap large dependency lists on column 80 (with \), and
4929    # we should not choose a depcomp mode which is confused by this.
4930    #
4931    # We need to recreate these files for each test, as the compiler may
4932    # overwrite some of them when testing with obscure command lines.
4933    # This happens at least with the AIX C compiler.
4934    : > sub/conftest.c
4935    for i in 1 2 3 4 5 6; do
4936      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4937      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4938      # Solaris 10 /bin/sh.
4939      echo '/* dummy */' > sub/conftst$i.h
4940    done
4941    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4942
4943    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4944    # mode.  It turns out that the SunPro C++ compiler does not properly
4945    # handle '-M -o', and we need to detect this.  Also, some Intel
4946    # versions had trouble with output in subdirs.
4947    am__obj=sub/conftest.${OBJEXT-o}
4948    am__minus_obj="-o $am__obj"
4949    case $depmode in
4950    gcc)
4951      # This depmode causes a compiler race in universal mode.
4952      test "$am__universal" = false || continue
4953      ;;
4954    nosideeffect)
4955      # After this tag, mechanisms are not by side-effect, so they'll
4956      # only be used when explicitly requested.
4957      if test "x$enable_dependency_tracking" = xyes; then
4958	continue
4959      else
4960	break
4961      fi
4962      ;;
4963    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4964      # This compiler won't grok '-c -o', but also, the minuso test has
4965      # not run yet.  These depmodes are late enough in the game, and
4966      # so weak that their functioning should not be impacted.
4967      am__obj=conftest.${OBJEXT-o}
4968      am__minus_obj=
4969      ;;
4970    none) break ;;
4971    esac
4972    if depmode=$depmode \
4973       source=sub/conftest.c object=$am__obj \
4974       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4975       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4976         >/dev/null 2>conftest.err &&
4977       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4978       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4979       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4980       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4981      # icc doesn't choke on unknown options, it will just issue warnings
4982      # or remarks (even with -Werror).  So we grep stderr for any message
4983      # that says an option was ignored or not supported.
4984      # When given -MP, icc 7.0 and 7.1 complain thusly:
4985      #   icc: Command line warning: ignoring option '-M'; no argument required
4986      # The diagnosis changed in icc 8.0:
4987      #   icc: Command line remark: option '-MP' not supported
4988      if (grep 'ignoring option' conftest.err ||
4989          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4990        am_cv_CC_dependencies_compiler_type=$depmode
4991        break
4992      fi
4993    fi
4994  done
4995
4996  cd ..
4997  rm -rf conftest.dir
4998else
4999  am_cv_CC_dependencies_compiler_type=none
5000fi
5001
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5004$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5005CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5006
5007 if
5008  test "x$enable_dependency_tracking" != xno \
5009  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5010  am__fastdepCC_TRUE=
5011  am__fastdepCC_FALSE='#'
5012else
5013  am__fastdepCC_TRUE='#'
5014  am__fastdepCC_FALSE=
5015fi
5016
5017
5018
5019
5020_alberta_save_cflags="${CFLAGS}"
5021
5022ac_ext=c
5023ac_cpp='$CPP $CPPFLAGS'
5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 features with \"${CC} ${CFLAGS}\"" >&5
5029$as_echo_n "checking for ISO C99 features with \"${CC} ${CFLAGS}\"... " >&6; }
5030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032extern void exit(int status);
5033#define FOO(a, ...)  (a, __VA_ARGS__)
5034extern int foo(int a, int b, int c);
5035int
5036main ()
5037{
5038int bar[foo FOO(3, 4, 5)];
5039exit(bar[0]);
5040  ;
5041  return 0;
5042}
5043_ACEOF
5044if ac_fn_c_try_compile "$LINENO"; then :
5045  HAVE_ISO_C99=1
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: variadic macros and variable length arrays are available" >&5
5047$as_echo "variadic macros and variable length arrays are available" >&6; }
5048else
5049  HAVE_ISO_C99=0
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: variadic macros and/or vairable length arrays are NOT available" >&5
5051$as_echo "variadic macros and/or vairable length arrays are NOT available" >&6; }
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060CFLAGS="${_alberta_save_cflags}"
5061
5062cat >>confdefs.h <<_ACEOF
5063#define HAVE_ISO_C99 ${HAVE_ISO_C99}
5064_ACEOF
5065
5066
5067for ac_prog in gawk mawk nawk awk
5068do
5069  # Extract the first word of "$ac_prog", so it can be a program name with args.
5070set dummy $ac_prog; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
5073if ${ac_cv_prog_AWK+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  if test -n "$AWK"; then
5077  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5078else
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082  IFS=$as_save_IFS
5083  test -z "$as_dir" && as_dir=.
5084    for ac_exec_ext in '' $ac_executable_extensions; do
5085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086    ac_cv_prog_AWK="$ac_prog"
5087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088    break 2
5089  fi
5090done
5091  done
5092IFS=$as_save_IFS
5093
5094fi
5095fi
5096AWK=$ac_cv_prog_AWK
5097if test -n "$AWK"; then
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5099$as_echo "$AWK" >&6; }
5100else
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104
5105
5106  test -n "$AWK" && break
5107done
5108
5109
5110ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5116$as_echo_n "checking how to run the C preprocessor... " >&6; }
5117# On Suns, sometimes $CPP names a directory.
5118if test -n "$CPP" && test -d "$CPP"; then
5119  CPP=
5120fi
5121if test -z "$CPP"; then
5122  if ${ac_cv_prog_CPP+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125      # Double quotes because CPP needs to be expanded
5126    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5127    do
5128      ac_preproc_ok=false
5129for ac_c_preproc_warn_flag in '' yes
5130do
5131  # Use a header file that comes with gcc, so configuring glibc
5132  # with a fresh cross-compiler works.
5133  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134  # <limits.h> exists even on freestanding compilers.
5135  # On the NeXT, cc -E runs the code through the compiler's parser,
5136  # not just through cpp. "Syntax error" is here to catch this case.
5137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139#ifdef __STDC__
5140# include <limits.h>
5141#else
5142# include <assert.h>
5143#endif
5144		     Syntax error
5145_ACEOF
5146if ac_fn_c_try_cpp "$LINENO"; then :
5147
5148else
5149  # Broken: fails on valid input.
5150continue
5151fi
5152rm -f conftest.err conftest.i conftest.$ac_ext
5153
5154  # OK, works on sane cases.  Now check whether nonexistent headers
5155  # can be detected and how.
5156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158#include <ac_nonexistent.h>
5159_ACEOF
5160if ac_fn_c_try_cpp "$LINENO"; then :
5161  # Broken: success on invalid input.
5162continue
5163else
5164  # Passes both tests.
5165ac_preproc_ok=:
5166break
5167fi
5168rm -f conftest.err conftest.i conftest.$ac_ext
5169
5170done
5171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5172rm -f conftest.i conftest.err conftest.$ac_ext
5173if $ac_preproc_ok; then :
5174  break
5175fi
5176
5177    done
5178    ac_cv_prog_CPP=$CPP
5179
5180fi
5181  CPP=$ac_cv_prog_CPP
5182else
5183  ac_cv_prog_CPP=$CPP
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5186$as_echo "$CPP" >&6; }
5187ac_preproc_ok=false
5188for ac_c_preproc_warn_flag in '' yes
5189do
5190  # Use a header file that comes with gcc, so configuring glibc
5191  # with a fresh cross-compiler works.
5192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193  # <limits.h> exists even on freestanding compilers.
5194  # On the NeXT, cc -E runs the code through the compiler's parser,
5195  # not just through cpp. "Syntax error" is here to catch this case.
5196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h.  */
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
5203		     Syntax error
5204_ACEOF
5205if ac_fn_c_try_cpp "$LINENO"; then :
5206
5207else
5208  # Broken: fails on valid input.
5209continue
5210fi
5211rm -f conftest.err conftest.i conftest.$ac_ext
5212
5213  # OK, works on sane cases.  Now check whether nonexistent headers
5214  # can be detected and how.
5215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217#include <ac_nonexistent.h>
5218_ACEOF
5219if ac_fn_c_try_cpp "$LINENO"; then :
5220  # Broken: success on invalid input.
5221continue
5222else
5223  # Passes both tests.
5224ac_preproc_ok=:
5225break
5226fi
5227rm -f conftest.err conftest.i conftest.$ac_ext
5228
5229done
5230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231rm -f conftest.i conftest.err conftest.$ac_ext
5232if $ac_preproc_ok; then :
5233
5234else
5235  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5237as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5238See \`config.log' for more details" "$LINENO" 5; }
5239fi
5240
5241ac_ext=c
5242ac_cpp='$CPP $CPPFLAGS'
5243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246
5247for ac_prog in flex lex
5248do
5249  # Extract the first word of "$ac_prog", so it can be a program name with args.
5250set dummy $ac_prog; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if ${ac_cv_prog_LEX+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  if test -n "$LEX"; then
5257  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266    ac_cv_prog_LEX="$ac_prog"
5267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271  done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276LEX=$ac_cv_prog_LEX
5277if test -n "$LEX"; then
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5279$as_echo "$LEX" >&6; }
5280else
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286  test -n "$LEX" && break
5287done
5288test -n "$LEX" || LEX=":"
5289
5290if test "x$LEX" != "x:"; then
5291  cat >conftest.l <<_ACEOF
5292%%
5293a { ECHO; }
5294b { REJECT; }
5295c { yymore (); }
5296d { yyless (1); }
5297e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5298    yyless ((input () != 0)); }
5299f { unput (yytext[0]); }
5300. { BEGIN INITIAL; }
5301%%
5302#ifdef YYTEXT_POINTER
5303extern char *yytext;
5304#endif
5305int
5306main (void)
5307{
5308  return ! yylex () + ! yywrap ();
5309}
5310_ACEOF
5311{ { ac_try="$LEX conftest.l"
5312case "(($ac_try" in
5313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314  *) ac_try_echo=$ac_try;;
5315esac
5316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5317$as_echo "$ac_try_echo"; } >&5
5318  (eval "$LEX conftest.l") 2>&5
5319  ac_status=$?
5320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321  test $ac_status = 0; }
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5323$as_echo_n "checking lex output file root... " >&6; }
5324if ${ac_cv_prog_lex_root+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327
5328if test -f lex.yy.c; then
5329  ac_cv_prog_lex_root=lex.yy
5330elif test -f lexyy.c; then
5331  ac_cv_prog_lex_root=lexyy
5332else
5333  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5334fi
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5337$as_echo "$ac_cv_prog_lex_root" >&6; }
5338LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5339
5340if test -z "${LEXLIB+set}"; then
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5342$as_echo_n "checking lex library... " >&6; }
5343if ${ac_cv_lib_lex+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346
5347    ac_save_LIBS=$LIBS
5348    ac_cv_lib_lex='none needed'
5349    for ac_lib in '' -lfl -ll; do
5350      LIBS="$ac_lib $ac_save_LIBS"
5351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h.  */
5353`cat $LEX_OUTPUT_ROOT.c`
5354_ACEOF
5355if ac_fn_c_try_link "$LINENO"; then :
5356  ac_cv_lib_lex=$ac_lib
5357fi
5358rm -f core conftest.err conftest.$ac_objext \
5359    conftest$ac_exeext conftest.$ac_ext
5360      test "$ac_cv_lib_lex" != 'none needed' && break
5361    done
5362    LIBS=$ac_save_LIBS
5363
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5366$as_echo "$ac_cv_lib_lex" >&6; }
5367  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5368fi
5369
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5372$as_echo_n "checking whether yytext is a pointer... " >&6; }
5373if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  # POSIX says lex can declare yytext either as a pointer or an array; the
5377# default is implementation-dependent.  Figure out which it is, since
5378# not all implementations provide the %pointer and %array declarations.
5379ac_cv_prog_lex_yytext_pointer=no
5380ac_save_LIBS=$LIBS
5381LIBS="$LEXLIB $ac_save_LIBS"
5382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384
5385  #define YYTEXT_POINTER 1
5386`cat $LEX_OUTPUT_ROOT.c`
5387_ACEOF
5388if ac_fn_c_try_link "$LINENO"; then :
5389  ac_cv_prog_lex_yytext_pointer=yes
5390fi
5391rm -f core conftest.err conftest.$ac_objext \
5392    conftest$ac_exeext conftest.$ac_ext
5393LIBS=$ac_save_LIBS
5394
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5397$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5398if test $ac_cv_prog_lex_yytext_pointer = yes; then
5399
5400$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5401
5402fi
5403rm -f conftest.l $LEX_OUTPUT_ROOT.c
5404
5405fi
5406for ac_prog in 'bison -y' byacc
5407do
5408  # Extract the first word of "$ac_prog", so it can be a program name with args.
5409set dummy $ac_prog; ac_word=$2
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
5412if ${ac_cv_prog_YACC+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  if test -n "$YACC"; then
5416  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5417else
5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421  IFS=$as_save_IFS
5422  test -z "$as_dir" && as_dir=.
5423    for ac_exec_ext in '' $ac_executable_extensions; do
5424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425    ac_cv_prog_YACC="$ac_prog"
5426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427    break 2
5428  fi
5429done
5430  done
5431IFS=$as_save_IFS
5432
5433fi
5434fi
5435YACC=$ac_cv_prog_YACC
5436if test -n "$YACC"; then
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5438$as_echo "$YACC" >&6; }
5439else
5440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }
5442fi
5443
5444
5445  test -n "$YACC" && break
5446done
5447test -n "$YACC" || YACC="yacc"
5448
5449 if true || test  "z${enable_shared}" = "zyes"; then
5450  INSTALL_LIBGEOMVIEW_TRUE=
5451  INSTALL_LIBGEOMVIEW_FALSE='#'
5452else
5453  INSTALL_LIBGEOMVIEW_TRUE='#'
5454  INSTALL_LIBGEOMVIEW_FALSE=
5455fi
5456
5457case `pwd` in
5458  *\ * | *\	*)
5459    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5460$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5461esac
5462
5463
5464
5465macro_version='2.4.2'
5466macro_revision='1.3337'
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480ltmain="$ac_aux_dir/ltmain.sh"
5481
5482# Backslashify metacharacters that are still active within
5483# double-quoted strings.
5484sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5485
5486# Same as above, but do not quote variable references.
5487double_quote_subst='s/\(["`\\]\)/\\\1/g'
5488
5489# Sed substitution to delay expansion of an escaped shell variable in a
5490# double_quote_subst'ed string.
5491delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5492
5493# Sed substitution to delay expansion of an escaped single quote.
5494delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5495
5496# Sed substitution to avoid accidental globbing in evaled expressions
5497no_glob_subst='s/\*/\\\*/g'
5498
5499ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5500ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5501ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5502
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5504$as_echo_n "checking how to print strings... " >&6; }
5505# Test print first, because it will be a builtin if present.
5506if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5507   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5508  ECHO='print -r --'
5509elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5510  ECHO='printf %s\n'
5511else
5512  # Use this function as a fallback that always works.
5513  func_fallback_echo ()
5514  {
5515    eval 'cat <<_LTECHO_EOF
5516$1
5517_LTECHO_EOF'
5518  }
5519  ECHO='func_fallback_echo'
5520fi
5521
5522# func_echo_all arg...
5523# Invoke $ECHO with all args, space-separated.
5524func_echo_all ()
5525{
5526    $ECHO ""
5527}
5528
5529case "$ECHO" in
5530  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5531$as_echo "printf" >&6; } ;;
5532  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5533$as_echo "print -r" >&6; } ;;
5534  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5535$as_echo "cat" >&6; } ;;
5536esac
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5552$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5553if ${ac_cv_path_SED+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5557     for ac_i in 1 2 3 4 5 6 7; do
5558       ac_script="$ac_script$as_nl$ac_script"
5559     done
5560     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5561     { ac_script=; unset ac_script;}
5562     if test -z "$SED"; then
5563  ac_path_SED_found=false
5564  # Loop through the user's path and test for each of PROGNAME-LIST
5565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568  IFS=$as_save_IFS
5569  test -z "$as_dir" && as_dir=.
5570    for ac_prog in sed gsed; do
5571    for ac_exec_ext in '' $ac_executable_extensions; do
5572      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5573      as_fn_executable_p "$ac_path_SED" || continue
5574# Check for GNU ac_path_SED and select it if it is found.
5575  # Check for GNU $ac_path_SED
5576case `"$ac_path_SED" --version 2>&1` in
5577*GNU*)
5578  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5579*)
5580  ac_count=0
5581  $as_echo_n 0123456789 >"conftest.in"
5582  while :
5583  do
5584    cat "conftest.in" "conftest.in" >"conftest.tmp"
5585    mv "conftest.tmp" "conftest.in"
5586    cp "conftest.in" "conftest.nl"
5587    $as_echo '' >> "conftest.nl"
5588    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5590    as_fn_arith $ac_count + 1 && ac_count=$as_val
5591    if test $ac_count -gt ${ac_path_SED_max-0}; then
5592      # Best one so far, save it but keep looking for a better one
5593      ac_cv_path_SED="$ac_path_SED"
5594      ac_path_SED_max=$ac_count
5595    fi
5596    # 10*(2^10) chars as input seems more than enough
5597    test $ac_count -gt 10 && break
5598  done
5599  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600esac
5601
5602      $ac_path_SED_found && break 3
5603    done
5604  done
5605  done
5606IFS=$as_save_IFS
5607  if test -z "$ac_cv_path_SED"; then
5608    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5609  fi
5610else
5611  ac_cv_path_SED=$SED
5612fi
5613
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5616$as_echo "$ac_cv_path_SED" >&6; }
5617 SED="$ac_cv_path_SED"
5618  rm -f conftest.sed
5619
5620test -z "$SED" && SED=sed
5621Xsed="$SED -e 1s/^X//"
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5634$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5635if ${ac_cv_path_GREP+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  if test -z "$GREP"; then
5639  ac_path_GREP_found=false
5640  # Loop through the user's path and test for each of PROGNAME-LIST
5641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646    for ac_prog in grep ggrep; do
5647    for ac_exec_ext in '' $ac_executable_extensions; do
5648      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5649      as_fn_executable_p "$ac_path_GREP" || continue
5650# Check for GNU ac_path_GREP and select it if it is found.
5651  # Check for GNU $ac_path_GREP
5652case `"$ac_path_GREP" --version 2>&1` in
5653*GNU*)
5654  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5655*)
5656  ac_count=0
5657  $as_echo_n 0123456789 >"conftest.in"
5658  while :
5659  do
5660    cat "conftest.in" "conftest.in" >"conftest.tmp"
5661    mv "conftest.tmp" "conftest.in"
5662    cp "conftest.in" "conftest.nl"
5663    $as_echo 'GREP' >> "conftest.nl"
5664    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666    as_fn_arith $ac_count + 1 && ac_count=$as_val
5667    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5668      # Best one so far, save it but keep looking for a better one
5669      ac_cv_path_GREP="$ac_path_GREP"
5670      ac_path_GREP_max=$ac_count
5671    fi
5672    # 10*(2^10) chars as input seems more than enough
5673    test $ac_count -gt 10 && break
5674  done
5675  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676esac
5677
5678      $ac_path_GREP_found && break 3
5679    done
5680  done
5681  done
5682IFS=$as_save_IFS
5683  if test -z "$ac_cv_path_GREP"; then
5684    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5685  fi
5686else
5687  ac_cv_path_GREP=$GREP
5688fi
5689
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5692$as_echo "$ac_cv_path_GREP" >&6; }
5693 GREP="$ac_cv_path_GREP"
5694
5695
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5697$as_echo_n "checking for egrep... " >&6; }
5698if ${ac_cv_path_EGREP+:} false; then :
5699  $as_echo_n "(cached) " >&6
5700else
5701  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5702   then ac_cv_path_EGREP="$GREP -E"
5703   else
5704     if test -z "$EGREP"; then
5705  ac_path_EGREP_found=false
5706  # Loop through the user's path and test for each of PROGNAME-LIST
5707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709do
5710  IFS=$as_save_IFS
5711  test -z "$as_dir" && as_dir=.
5712    for ac_prog in egrep; do
5713    for ac_exec_ext in '' $ac_executable_extensions; do
5714      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5715      as_fn_executable_p "$ac_path_EGREP" || continue
5716# Check for GNU ac_path_EGREP and select it if it is found.
5717  # Check for GNU $ac_path_EGREP
5718case `"$ac_path_EGREP" --version 2>&1` in
5719*GNU*)
5720  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5721*)
5722  ac_count=0
5723  $as_echo_n 0123456789 >"conftest.in"
5724  while :
5725  do
5726    cat "conftest.in" "conftest.in" >"conftest.tmp"
5727    mv "conftest.tmp" "conftest.in"
5728    cp "conftest.in" "conftest.nl"
5729    $as_echo 'EGREP' >> "conftest.nl"
5730    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5731    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5732    as_fn_arith $ac_count + 1 && ac_count=$as_val
5733    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5734      # Best one so far, save it but keep looking for a better one
5735      ac_cv_path_EGREP="$ac_path_EGREP"
5736      ac_path_EGREP_max=$ac_count
5737    fi
5738    # 10*(2^10) chars as input seems more than enough
5739    test $ac_count -gt 10 && break
5740  done
5741  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742esac
5743
5744      $ac_path_EGREP_found && break 3
5745    done
5746  done
5747  done
5748IFS=$as_save_IFS
5749  if test -z "$ac_cv_path_EGREP"; then
5750    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5751  fi
5752else
5753  ac_cv_path_EGREP=$EGREP
5754fi
5755
5756   fi
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5759$as_echo "$ac_cv_path_EGREP" >&6; }
5760 EGREP="$ac_cv_path_EGREP"
5761
5762
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5764$as_echo_n "checking for fgrep... " >&6; }
5765if ${ac_cv_path_FGREP+:} false; then :
5766  $as_echo_n "(cached) " >&6
5767else
5768  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5769   then ac_cv_path_FGREP="$GREP -F"
5770   else
5771     if test -z "$FGREP"; then
5772  ac_path_FGREP_found=false
5773  # Loop through the user's path and test for each of PROGNAME-LIST
5774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776do
5777  IFS=$as_save_IFS
5778  test -z "$as_dir" && as_dir=.
5779    for ac_prog in fgrep; do
5780    for ac_exec_ext in '' $ac_executable_extensions; do
5781      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5782      as_fn_executable_p "$ac_path_FGREP" || continue
5783# Check for GNU ac_path_FGREP and select it if it is found.
5784  # Check for GNU $ac_path_FGREP
5785case `"$ac_path_FGREP" --version 2>&1` in
5786*GNU*)
5787  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5788*)
5789  ac_count=0
5790  $as_echo_n 0123456789 >"conftest.in"
5791  while :
5792  do
5793    cat "conftest.in" "conftest.in" >"conftest.tmp"
5794    mv "conftest.tmp" "conftest.in"
5795    cp "conftest.in" "conftest.nl"
5796    $as_echo 'FGREP' >> "conftest.nl"
5797    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5798    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5799    as_fn_arith $ac_count + 1 && ac_count=$as_val
5800    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5801      # Best one so far, save it but keep looking for a better one
5802      ac_cv_path_FGREP="$ac_path_FGREP"
5803      ac_path_FGREP_max=$ac_count
5804    fi
5805    # 10*(2^10) chars as input seems more than enough
5806    test $ac_count -gt 10 && break
5807  done
5808  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5809esac
5810
5811      $ac_path_FGREP_found && break 3
5812    done
5813  done
5814  done
5815IFS=$as_save_IFS
5816  if test -z "$ac_cv_path_FGREP"; then
5817    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5818  fi
5819else
5820  ac_cv_path_FGREP=$FGREP
5821fi
5822
5823   fi
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5826$as_echo "$ac_cv_path_FGREP" >&6; }
5827 FGREP="$ac_cv_path_FGREP"
5828
5829
5830test -z "$GREP" && GREP=grep
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850# Check whether --with-gnu-ld was given.
5851if test "${with_gnu_ld+set}" = set; then :
5852  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5853else
5854  with_gnu_ld=no
5855fi
5856
5857ac_prog=ld
5858if test "$GCC" = yes; then
5859  # Check if gcc -print-prog-name=ld gives a path.
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5861$as_echo_n "checking for ld used by $CC... " >&6; }
5862  case $host in
5863  *-*-mingw*)
5864    # gcc leaves a trailing carriage return which upsets mingw
5865    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5866  *)
5867    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5868  esac
5869  case $ac_prog in
5870    # Accept absolute paths.
5871    [\\/]* | ?:[\\/]*)
5872      re_direlt='/[^/][^/]*/\.\./'
5873      # Canonicalize the pathname of ld
5874      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5875      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5876	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5877      done
5878      test -z "$LD" && LD="$ac_prog"
5879      ;;
5880  "")
5881    # If it fails, then pretend we aren't using GCC.
5882    ac_prog=ld
5883    ;;
5884  *)
5885    # If it is relative, then search for the first ld in PATH.
5886    with_gnu_ld=unknown
5887    ;;
5888  esac
5889elif test "$with_gnu_ld" = yes; then
5890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5891$as_echo_n "checking for GNU ld... " >&6; }
5892else
5893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5894$as_echo_n "checking for non-GNU ld... " >&6; }
5895fi
5896if ${lt_cv_path_LD+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -z "$LD"; then
5900  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5901  for ac_dir in $PATH; do
5902    IFS="$lt_save_ifs"
5903    test -z "$ac_dir" && ac_dir=.
5904    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5905      lt_cv_path_LD="$ac_dir/$ac_prog"
5906      # Check to see if the program is GNU ld.  I'd rather use --version,
5907      # but apparently some variants of GNU ld only accept -v.
5908      # Break only if it was the GNU/non-GNU ld that we prefer.
5909      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5910      *GNU* | *'with BFD'*)
5911	test "$with_gnu_ld" != no && break
5912	;;
5913      *)
5914	test "$with_gnu_ld" != yes && break
5915	;;
5916      esac
5917    fi
5918  done
5919  IFS="$lt_save_ifs"
5920else
5921  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5922fi
5923fi
5924
5925LD="$lt_cv_path_LD"
5926if test -n "$LD"; then
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5928$as_echo "$LD" >&6; }
5929else
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931$as_echo "no" >&6; }
5932fi
5933test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5935$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5936if ${lt_cv_prog_gnu_ld+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5940case `$LD -v 2>&1 </dev/null` in
5941*GNU* | *'with BFD'*)
5942  lt_cv_prog_gnu_ld=yes
5943  ;;
5944*)
5945  lt_cv_prog_gnu_ld=no
5946  ;;
5947esac
5948fi
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5950$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5951with_gnu_ld=$lt_cv_prog_gnu_ld
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5962$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5963if ${lt_cv_path_NM+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if test -n "$NM"; then
5967  # Let the user override the test.
5968  lt_cv_path_NM="$NM"
5969else
5970  lt_nm_to_check="${ac_tool_prefix}nm"
5971  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5972    lt_nm_to_check="$lt_nm_to_check nm"
5973  fi
5974  for lt_tmp_nm in $lt_nm_to_check; do
5975    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5976    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5977      IFS="$lt_save_ifs"
5978      test -z "$ac_dir" && ac_dir=.
5979      tmp_nm="$ac_dir/$lt_tmp_nm"
5980      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5981	# Check to see if the nm accepts a BSD-compat flag.
5982	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5983	#   nm: unknown option "B" ignored
5984	# Tru64's nm complains that /dev/null is an invalid object file
5985	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5986	*/dev/null* | *'Invalid file or object type'*)
5987	  lt_cv_path_NM="$tmp_nm -B"
5988	  break
5989	  ;;
5990	*)
5991	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5992	  */dev/null*)
5993	    lt_cv_path_NM="$tmp_nm -p"
5994	    break
5995	    ;;
5996	  *)
5997	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5998	    continue # so that we can try to find one that supports BSD flags
5999	    ;;
6000	  esac
6001	  ;;
6002	esac
6003      fi
6004    done
6005    IFS="$lt_save_ifs"
6006  done
6007  : ${lt_cv_path_NM=no}
6008fi
6009fi
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6011$as_echo "$lt_cv_path_NM" >&6; }
6012if test "$lt_cv_path_NM" != "no"; then
6013  NM="$lt_cv_path_NM"
6014else
6015  # Didn't find any BSD compatible name lister, look for dumpbin.
6016  if test -n "$DUMPBIN"; then :
6017    # Let the user override the test.
6018  else
6019    if test -n "$ac_tool_prefix"; then
6020  for ac_prog in dumpbin "link -dump"
6021  do
6022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025$as_echo_n "checking for $ac_word... " >&6; }
6026if ${ac_cv_prog_DUMPBIN+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029  if test -n "$DUMPBIN"; then
6030  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6031else
6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035  IFS=$as_save_IFS
6036  test -z "$as_dir" && as_dir=.
6037    for ac_exec_ext in '' $ac_executable_extensions; do
6038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041    break 2
6042  fi
6043done
6044  done
6045IFS=$as_save_IFS
6046
6047fi
6048fi
6049DUMPBIN=$ac_cv_prog_DUMPBIN
6050if test -n "$DUMPBIN"; then
6051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6052$as_echo "$DUMPBIN" >&6; }
6053else
6054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055$as_echo "no" >&6; }
6056fi
6057
6058
6059    test -n "$DUMPBIN" && break
6060  done
6061fi
6062if test -z "$DUMPBIN"; then
6063  ac_ct_DUMPBIN=$DUMPBIN
6064  for ac_prog in dumpbin "link -dump"
6065do
6066  # Extract the first word of "$ac_prog", so it can be a program name with args.
6067set dummy $ac_prog; ac_word=$2
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069$as_echo_n "checking for $ac_word... " >&6; }
6070if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073  if test -n "$ac_ct_DUMPBIN"; then
6074  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079  IFS=$as_save_IFS
6080  test -z "$as_dir" && as_dir=.
6081    for ac_exec_ext in '' $ac_executable_extensions; do
6082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085    break 2
6086  fi
6087done
6088  done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6094if test -n "$ac_ct_DUMPBIN"; then
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6096$as_echo "$ac_ct_DUMPBIN" >&6; }
6097else
6098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101
6102
6103  test -n "$ac_ct_DUMPBIN" && break
6104done
6105
6106  if test "x$ac_ct_DUMPBIN" = x; then
6107    DUMPBIN=":"
6108  else
6109    case $cross_compiling:$ac_tool_warned in
6110yes:)
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113ac_tool_warned=yes ;;
6114esac
6115    DUMPBIN=$ac_ct_DUMPBIN
6116  fi
6117fi
6118
6119    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6120    *COFF*)
6121      DUMPBIN="$DUMPBIN -symbols"
6122      ;;
6123    *)
6124      DUMPBIN=:
6125      ;;
6126    esac
6127  fi
6128
6129  if test "$DUMPBIN" != ":"; then
6130    NM="$DUMPBIN"
6131  fi
6132fi
6133test -z "$NM" && NM=nm
6134
6135
6136
6137
6138
6139
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6141$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6142if ${lt_cv_nm_interface+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  lt_cv_nm_interface="BSD nm"
6146  echo "int some_variable = 0;" > conftest.$ac_ext
6147  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6148  (eval "$ac_compile" 2>conftest.err)
6149  cat conftest.err >&5
6150  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6151  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6152  cat conftest.err >&5
6153  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6154  cat conftest.out >&5
6155  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6156    lt_cv_nm_interface="MS dumpbin"
6157  fi
6158  rm -f conftest*
6159fi
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6161$as_echo "$lt_cv_nm_interface" >&6; }
6162
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6164$as_echo_n "checking whether ln -s works... " >&6; }
6165LN_S=$as_ln_s
6166if test "$LN_S" = "ln -s"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6168$as_echo "yes" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6171$as_echo "no, using $LN_S" >&6; }
6172fi
6173
6174# find the maximum length of command line arguments
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6176$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6177if ${lt_cv_sys_max_cmd_len+:} false; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180    i=0
6181  teststring="ABCD"
6182
6183  case $build_os in
6184  msdosdjgpp*)
6185    # On DJGPP, this test can blow up pretty badly due to problems in libc
6186    # (any single argument exceeding 2000 bytes causes a buffer overrun
6187    # during glob expansion).  Even if it were fixed, the result of this
6188    # check would be larger than it should be.
6189    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6190    ;;
6191
6192  gnu*)
6193    # Under GNU Hurd, this test is not required because there is
6194    # no limit to the length of command line arguments.
6195    # Libtool will interpret -1 as no limit whatsoever
6196    lt_cv_sys_max_cmd_len=-1;
6197    ;;
6198
6199  cygwin* | mingw* | cegcc*)
6200    # On Win9x/ME, this test blows up -- it succeeds, but takes
6201    # about 5 minutes as the teststring grows exponentially.
6202    # Worse, since 9x/ME are not pre-emptively multitasking,
6203    # you end up with a "frozen" computer, even though with patience
6204    # the test eventually succeeds (with a max line length of 256k).
6205    # Instead, let's just punt: use the minimum linelength reported by
6206    # all of the supported platforms: 8192 (on NT/2K/XP).
6207    lt_cv_sys_max_cmd_len=8192;
6208    ;;
6209
6210  mint*)
6211    # On MiNT this can take a long time and run out of memory.
6212    lt_cv_sys_max_cmd_len=8192;
6213    ;;
6214
6215  amigaos*)
6216    # On AmigaOS with pdksh, this test takes hours, literally.
6217    # So we just punt and use a minimum line length of 8192.
6218    lt_cv_sys_max_cmd_len=8192;
6219    ;;
6220
6221  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6222    # This has been around since 386BSD, at least.  Likely further.
6223    if test -x /sbin/sysctl; then
6224      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6225    elif test -x /usr/sbin/sysctl; then
6226      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6227    else
6228      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6229    fi
6230    # And add a safety zone
6231    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6232    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6233    ;;
6234
6235  interix*)
6236    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6237    lt_cv_sys_max_cmd_len=196608
6238    ;;
6239
6240  os2*)
6241    # The test takes a long time on OS/2.
6242    lt_cv_sys_max_cmd_len=8192
6243    ;;
6244
6245  osf*)
6246    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6247    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6248    # nice to cause kernel panics so lets avoid the loop below.
6249    # First set a reasonable default.
6250    lt_cv_sys_max_cmd_len=16384
6251    #
6252    if test -x /sbin/sysconfig; then
6253      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6254        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6255      esac
6256    fi
6257    ;;
6258  sco3.2v5*)
6259    lt_cv_sys_max_cmd_len=102400
6260    ;;
6261  sysv5* | sco5v6* | sysv4.2uw2*)
6262    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6263    if test -n "$kargmax"; then
6264      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6265    else
6266      lt_cv_sys_max_cmd_len=32768
6267    fi
6268    ;;
6269  *)
6270    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6271    if test -n "$lt_cv_sys_max_cmd_len"; then
6272      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6273      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6274    else
6275      # Make teststring a little bigger before we do anything with it.
6276      # a 1K string should be a reasonable start.
6277      for i in 1 2 3 4 5 6 7 8 ; do
6278        teststring=$teststring$teststring
6279      done
6280      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6281      # If test is not a shell built-in, we'll probably end up computing a
6282      # maximum length that is only half of the actual maximum length, but
6283      # we can't tell.
6284      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6285	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6286	      test $i != 17 # 1/2 MB should be enough
6287      do
6288        i=`expr $i + 1`
6289        teststring=$teststring$teststring
6290      done
6291      # Only check the string length outside the loop.
6292      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6293      teststring=
6294      # Add a significant safety factor because C++ compilers can tack on
6295      # massive amounts of additional arguments before passing them to the
6296      # linker.  It appears as though 1/2 is a usable value.
6297      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6298    fi
6299    ;;
6300  esac
6301
6302fi
6303
6304if test -n $lt_cv_sys_max_cmd_len ; then
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6306$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6307else
6308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6309$as_echo "none" >&6; }
6310fi
6311max_cmd_len=$lt_cv_sys_max_cmd_len
6312
6313
6314
6315
6316
6317
6318: ${CP="cp -f"}
6319: ${MV="mv -f"}
6320: ${RM="rm -f"}
6321
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6323$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6324# Try some XSI features
6325xsi_shell=no
6326( _lt_dummy="a/b/c"
6327  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6328      = c,a/b,b/c, \
6329    && eval 'test $(( 1 + 1 )) -eq 2 \
6330    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6331  && xsi_shell=yes
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6333$as_echo "$xsi_shell" >&6; }
6334
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6337$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6338lt_shell_append=no
6339( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6340    >/dev/null 2>&1 \
6341  && lt_shell_append=yes
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6343$as_echo "$lt_shell_append" >&6; }
6344
6345
6346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6347  lt_unset=unset
6348else
6349  lt_unset=false
6350fi
6351
6352
6353
6354
6355
6356# test EBCDIC or ASCII
6357case `echo X|tr X '\101'` in
6358 A) # ASCII based system
6359    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6360  lt_SP2NL='tr \040 \012'
6361  lt_NL2SP='tr \015\012 \040\040'
6362  ;;
6363 *) # EBCDIC based system
6364  lt_SP2NL='tr \100 \n'
6365  lt_NL2SP='tr \r\n \100\100'
6366  ;;
6367esac
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6378$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6379if ${lt_cv_to_host_file_cmd+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  case $host in
6383  *-*-mingw* )
6384    case $build in
6385      *-*-mingw* ) # actually msys
6386        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6387        ;;
6388      *-*-cygwin* )
6389        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6390        ;;
6391      * ) # otherwise, assume *nix
6392        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6393        ;;
6394    esac
6395    ;;
6396  *-*-cygwin* )
6397    case $build in
6398      *-*-mingw* ) # actually msys
6399        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6400        ;;
6401      *-*-cygwin* )
6402        lt_cv_to_host_file_cmd=func_convert_file_noop
6403        ;;
6404      * ) # otherwise, assume *nix
6405        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6406        ;;
6407    esac
6408    ;;
6409  * ) # unhandled hosts (and "normal" native builds)
6410    lt_cv_to_host_file_cmd=func_convert_file_noop
6411    ;;
6412esac
6413
6414fi
6415
6416to_host_file_cmd=$lt_cv_to_host_file_cmd
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6418$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6419
6420
6421
6422
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6425$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6426if ${lt_cv_to_tool_file_cmd+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  #assume ordinary cross tools, or native build.
6430lt_cv_to_tool_file_cmd=func_convert_file_noop
6431case $host in
6432  *-*-mingw* )
6433    case $build in
6434      *-*-mingw* ) # actually msys
6435        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6436        ;;
6437    esac
6438    ;;
6439esac
6440
6441fi
6442
6443to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6445$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6446
6447
6448
6449
6450
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6452$as_echo_n "checking for $LD option to reload object files... " >&6; }
6453if ${lt_cv_ld_reload_flag+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  lt_cv_ld_reload_flag='-r'
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6459$as_echo "$lt_cv_ld_reload_flag" >&6; }
6460reload_flag=$lt_cv_ld_reload_flag
6461case $reload_flag in
6462"" | " "*) ;;
6463*) reload_flag=" $reload_flag" ;;
6464esac
6465reload_cmds='$LD$reload_flag -o $output$reload_objs'
6466case $host_os in
6467  cygwin* | mingw* | pw32* | cegcc*)
6468    if test "$GCC" != yes; then
6469      reload_cmds=false
6470    fi
6471    ;;
6472  darwin*)
6473    if test "$GCC" = yes; then
6474      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6475    else
6476      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6477    fi
6478    ;;
6479esac
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489if test -n "$ac_tool_prefix"; then
6490  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6491set dummy ${ac_tool_prefix}objdump; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
6494if ${ac_cv_prog_OBJDUMP+:} false; then :
6495  $as_echo_n "(cached) " >&6
6496else
6497  if test -n "$OBJDUMP"; then
6498  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503  IFS=$as_save_IFS
6504  test -z "$as_dir" && as_dir=.
6505    for ac_exec_ext in '' $ac_executable_extensions; do
6506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509    break 2
6510  fi
6511done
6512  done
6513IFS=$as_save_IFS
6514
6515fi
6516fi
6517OBJDUMP=$ac_cv_prog_OBJDUMP
6518if test -n "$OBJDUMP"; then
6519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6520$as_echo "$OBJDUMP" >&6; }
6521else
6522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525
6526
6527fi
6528if test -z "$ac_cv_prog_OBJDUMP"; then
6529  ac_ct_OBJDUMP=$OBJDUMP
6530  # Extract the first word of "objdump", so it can be a program name with args.
6531set dummy objdump; ac_word=$2
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533$as_echo_n "checking for $ac_word... " >&6; }
6534if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  if test -n "$ac_ct_OBJDUMP"; then
6538  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543  IFS=$as_save_IFS
6544  test -z "$as_dir" && as_dir=.
6545    for ac_exec_ext in '' $ac_executable_extensions; do
6546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549    break 2
6550  fi
6551done
6552  done
6553IFS=$as_save_IFS
6554
6555fi
6556fi
6557ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6558if test -n "$ac_ct_OBJDUMP"; then
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6560$as_echo "$ac_ct_OBJDUMP" >&6; }
6561else
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
6564fi
6565
6566  if test "x$ac_ct_OBJDUMP" = x; then
6567    OBJDUMP="false"
6568  else
6569    case $cross_compiling:$ac_tool_warned in
6570yes:)
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573ac_tool_warned=yes ;;
6574esac
6575    OBJDUMP=$ac_ct_OBJDUMP
6576  fi
6577else
6578  OBJDUMP="$ac_cv_prog_OBJDUMP"
6579fi
6580
6581test -z "$OBJDUMP" && OBJDUMP=objdump
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6592$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6593if ${lt_cv_deplibs_check_method+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  lt_cv_file_magic_cmd='$MAGIC_CMD'
6597lt_cv_file_magic_test_file=
6598lt_cv_deplibs_check_method='unknown'
6599# Need to set the preceding variable on all platforms that support
6600# interlibrary dependencies.
6601# 'none' -- dependencies not supported.
6602# `unknown' -- same as none, but documents that we really don't know.
6603# 'pass_all' -- all dependencies passed with no checks.
6604# 'test_compile' -- check by making test program.
6605# 'file_magic [[regex]]' -- check by looking for files in library path
6606# which responds to the $file_magic_cmd with a given extended regex.
6607# If you have `file' or equivalent on your system and you're not sure
6608# whether `pass_all' will *always* work, you probably want this one.
6609
6610case $host_os in
6611aix[4-9]*)
6612  lt_cv_deplibs_check_method=pass_all
6613  ;;
6614
6615beos*)
6616  lt_cv_deplibs_check_method=pass_all
6617  ;;
6618
6619bsdi[45]*)
6620  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6621  lt_cv_file_magic_cmd='/usr/bin/file -L'
6622  lt_cv_file_magic_test_file=/shlib/libc.so
6623  ;;
6624
6625cygwin*)
6626  # func_win32_libid is a shell function defined in ltmain.sh
6627  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6628  lt_cv_file_magic_cmd='func_win32_libid'
6629  ;;
6630
6631mingw* | pw32*)
6632  # Base MSYS/MinGW do not provide the 'file' command needed by
6633  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6634  # unless we find 'file', for example because we are cross-compiling.
6635  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6636  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6637    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6638    lt_cv_file_magic_cmd='func_win32_libid'
6639  else
6640    # Keep this pattern in sync with the one in func_win32_libid.
6641    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6642    lt_cv_file_magic_cmd='$OBJDUMP -f'
6643  fi
6644  ;;
6645
6646cegcc*)
6647  # use the weaker test based on 'objdump'. See mingw*.
6648  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6649  lt_cv_file_magic_cmd='$OBJDUMP -f'
6650  ;;
6651
6652darwin* | rhapsody*)
6653  lt_cv_deplibs_check_method=pass_all
6654  ;;
6655
6656freebsd* | dragonfly*)
6657  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6658    case $host_cpu in
6659    i*86 )
6660      # Not sure whether the presence of OpenBSD here was a mistake.
6661      # Let's accept both of them until this is cleared up.
6662      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6663      lt_cv_file_magic_cmd=/usr/bin/file
6664      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6665      ;;
6666    esac
6667  else
6668    lt_cv_deplibs_check_method=pass_all
6669  fi
6670  ;;
6671
6672gnu*)
6673  lt_cv_deplibs_check_method=pass_all
6674  ;;
6675
6676haiku*)
6677  lt_cv_deplibs_check_method=pass_all
6678  ;;
6679
6680hpux10.20* | hpux11*)
6681  lt_cv_file_magic_cmd=/usr/bin/file
6682  case $host_cpu in
6683  ia64*)
6684    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6685    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6686    ;;
6687  hppa*64*)
6688    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]'
6689    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6690    ;;
6691  *)
6692    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6693    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6694    ;;
6695  esac
6696  ;;
6697
6698interix[3-9]*)
6699  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6700  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6701  ;;
6702
6703irix5* | irix6* | nonstopux*)
6704  case $LD in
6705  *-32|*"-32 ") libmagic=32-bit;;
6706  *-n32|*"-n32 ") libmagic=N32;;
6707  *-64|*"-64 ") libmagic=64-bit;;
6708  *) libmagic=never-match;;
6709  esac
6710  lt_cv_deplibs_check_method=pass_all
6711  ;;
6712
6713# This must be glibc/ELF.
6714linux* | k*bsd*-gnu | kopensolaris*-gnu)
6715  lt_cv_deplibs_check_method=pass_all
6716  ;;
6717
6718netbsd*)
6719  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6720    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6721  else
6722    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6723  fi
6724  ;;
6725
6726newos6*)
6727  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6728  lt_cv_file_magic_cmd=/usr/bin/file
6729  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6730  ;;
6731
6732*nto* | *qnx*)
6733  lt_cv_deplibs_check_method=pass_all
6734  ;;
6735
6736openbsd*)
6737  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6738    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6739  else
6740    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6741  fi
6742  ;;
6743
6744osf3* | osf4* | osf5*)
6745  lt_cv_deplibs_check_method=pass_all
6746  ;;
6747
6748rdos*)
6749  lt_cv_deplibs_check_method=pass_all
6750  ;;
6751
6752solaris*)
6753  lt_cv_deplibs_check_method=pass_all
6754  ;;
6755
6756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6757  lt_cv_deplibs_check_method=pass_all
6758  ;;
6759
6760sysv4 | sysv4.3*)
6761  case $host_vendor in
6762  motorola)
6763    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]'
6764    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6765    ;;
6766  ncr)
6767    lt_cv_deplibs_check_method=pass_all
6768    ;;
6769  sequent)
6770    lt_cv_file_magic_cmd='/bin/file'
6771    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6772    ;;
6773  sni)
6774    lt_cv_file_magic_cmd='/bin/file'
6775    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6776    lt_cv_file_magic_test_file=/lib/libc.so
6777    ;;
6778  siemens)
6779    lt_cv_deplibs_check_method=pass_all
6780    ;;
6781  pc)
6782    lt_cv_deplibs_check_method=pass_all
6783    ;;
6784  esac
6785  ;;
6786
6787tpf*)
6788  lt_cv_deplibs_check_method=pass_all
6789  ;;
6790esac
6791
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6794$as_echo "$lt_cv_deplibs_check_method" >&6; }
6795
6796file_magic_glob=
6797want_nocaseglob=no
6798if test "$build" = "$host"; then
6799  case $host_os in
6800  mingw* | pw32*)
6801    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6802      want_nocaseglob=yes
6803    else
6804      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6805    fi
6806    ;;
6807  esac
6808fi
6809
6810file_magic_cmd=$lt_cv_file_magic_cmd
6811deplibs_check_method=$lt_cv_deplibs_check_method
6812test -z "$deplibs_check_method" && deplibs_check_method=unknown
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835if test -n "$ac_tool_prefix"; then
6836  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6837set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839$as_echo_n "checking for $ac_word... " >&6; }
6840if ${ac_cv_prog_DLLTOOL+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  if test -n "$DLLTOOL"; then
6844  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849  IFS=$as_save_IFS
6850  test -z "$as_dir" && as_dir=.
6851    for ac_exec_ext in '' $ac_executable_extensions; do
6852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855    break 2
6856  fi
6857done
6858  done
6859IFS=$as_save_IFS
6860
6861fi
6862fi
6863DLLTOOL=$ac_cv_prog_DLLTOOL
6864if test -n "$DLLTOOL"; then
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6866$as_echo "$DLLTOOL" >&6; }
6867else
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
6870fi
6871
6872
6873fi
6874if test -z "$ac_cv_prog_DLLTOOL"; then
6875  ac_ct_DLLTOOL=$DLLTOOL
6876  # Extract the first word of "dlltool", so it can be a program name with args.
6877set dummy dlltool; ac_word=$2
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  if test -n "$ac_ct_DLLTOOL"; then
6884  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889  IFS=$as_save_IFS
6890  test -z "$as_dir" && as_dir=.
6891    for ac_exec_ext in '' $ac_executable_extensions; do
6892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895    break 2
6896  fi
6897done
6898  done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6904if test -n "$ac_ct_DLLTOOL"; then
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6906$as_echo "$ac_ct_DLLTOOL" >&6; }
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912  if test "x$ac_ct_DLLTOOL" = x; then
6913    DLLTOOL="false"
6914  else
6915    case $cross_compiling:$ac_tool_warned in
6916yes:)
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919ac_tool_warned=yes ;;
6920esac
6921    DLLTOOL=$ac_ct_DLLTOOL
6922  fi
6923else
6924  DLLTOOL="$ac_cv_prog_DLLTOOL"
6925fi
6926
6927test -z "$DLLTOOL" && DLLTOOL=dlltool
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6939$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6940if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  lt_cv_sharedlib_from_linklib_cmd='unknown'
6944
6945case $host_os in
6946cygwin* | mingw* | pw32* | cegcc*)
6947  # two different shell functions defined in ltmain.sh
6948  # decide which to use based on capabilities of $DLLTOOL
6949  case `$DLLTOOL --help 2>&1` in
6950  *--identify-strict*)
6951    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6952    ;;
6953  *)
6954    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6955    ;;
6956  esac
6957  ;;
6958*)
6959  # fallback: assume linklib IS sharedlib
6960  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6961  ;;
6962esac
6963
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6966$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6967sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6968test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6969
6970
6971
6972
6973
6974
6975
6976if test -n "$ac_tool_prefix"; then
6977  for ac_prog in ar
6978  do
6979    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if ${ac_cv_prog_AR+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -n "$AR"; then
6987  ac_cv_prog_AR="$AR" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992  IFS=$as_save_IFS
6993  test -z "$as_dir" && as_dir=.
6994    for ac_exec_ext in '' $ac_executable_extensions; do
6995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998    break 2
6999  fi
7000done
7001  done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006AR=$ac_cv_prog_AR
7007if test -n "$AR"; then
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7009$as_echo "$AR" >&6; }
7010else
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015
7016    test -n "$AR" && break
7017  done
7018fi
7019if test -z "$AR"; then
7020  ac_ct_AR=$AR
7021  for ac_prog in ar
7022do
7023  # Extract the first word of "$ac_prog", so it can be a program name with args.
7024set dummy $ac_prog; ac_word=$2
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026$as_echo_n "checking for $ac_word... " >&6; }
7027if ${ac_cv_prog_ac_ct_AR+:} false; then :
7028  $as_echo_n "(cached) " >&6
7029else
7030  if test -n "$ac_ct_AR"; then
7031  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036  IFS=$as_save_IFS
7037  test -z "$as_dir" && as_dir=.
7038    for ac_exec_ext in '' $ac_executable_extensions; do
7039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040    ac_cv_prog_ac_ct_AR="$ac_prog"
7041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042    break 2
7043  fi
7044done
7045  done
7046IFS=$as_save_IFS
7047
7048fi
7049fi
7050ac_ct_AR=$ac_cv_prog_ac_ct_AR
7051if test -n "$ac_ct_AR"; then
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7053$as_echo "$ac_ct_AR" >&6; }
7054else
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056$as_echo "no" >&6; }
7057fi
7058
7059
7060  test -n "$ac_ct_AR" && break
7061done
7062
7063  if test "x$ac_ct_AR" = x; then
7064    AR="false"
7065  else
7066    case $cross_compiling:$ac_tool_warned in
7067yes:)
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070ac_tool_warned=yes ;;
7071esac
7072    AR=$ac_ct_AR
7073  fi
7074fi
7075
7076: ${AR=ar}
7077: ${AR_FLAGS=cru}
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7090$as_echo_n "checking for archiver @FILE support... " >&6; }
7091if ${lt_cv_ar_at_file+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  lt_cv_ar_at_file=no
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h.  */
7097
7098int
7099main ()
7100{
7101
7102  ;
7103  return 0;
7104}
7105_ACEOF
7106if ac_fn_c_try_compile "$LINENO"; then :
7107  echo conftest.$ac_objext > conftest.lst
7108      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7109      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7110  (eval $lt_ar_try) 2>&5
7111  ac_status=$?
7112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113  test $ac_status = 0; }
7114      if test "$ac_status" -eq 0; then
7115	# Ensure the archiver fails upon bogus file names.
7116	rm -f conftest.$ac_objext libconftest.a
7117	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7118  (eval $lt_ar_try) 2>&5
7119  ac_status=$?
7120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121  test $ac_status = 0; }
7122	if test "$ac_status" -ne 0; then
7123          lt_cv_ar_at_file=@
7124        fi
7125      fi
7126      rm -f conftest.* libconftest.a
7127
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7133$as_echo "$lt_cv_ar_at_file" >&6; }
7134
7135if test "x$lt_cv_ar_at_file" = xno; then
7136  archiver_list_spec=
7137else
7138  archiver_list_spec=$lt_cv_ar_at_file
7139fi
7140
7141
7142
7143
7144
7145
7146
7147if test -n "$ac_tool_prefix"; then
7148  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}strip; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if ${ac_cv_prog_STRIP+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  if test -n "$STRIP"; then
7156  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161  IFS=$as_save_IFS
7162  test -z "$as_dir" && as_dir=.
7163    for ac_exec_ext in '' $ac_executable_extensions; do
7164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167    break 2
7168  fi
7169done
7170  done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175STRIP=$ac_cv_prog_STRIP
7176if test -n "$STRIP"; then
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7178$as_echo "$STRIP" >&6; }
7179else
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184
7185fi
7186if test -z "$ac_cv_prog_STRIP"; then
7187  ac_ct_STRIP=$STRIP
7188  # Extract the first word of "strip", so it can be a program name with args.
7189set dummy strip; ac_word=$2
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  if test -n "$ac_ct_STRIP"; then
7196  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203    for ac_exec_ext in '' $ac_executable_extensions; do
7204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205    ac_cv_prog_ac_ct_STRIP="strip"
7206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207    break 2
7208  fi
7209done
7210  done
7211IFS=$as_save_IFS
7212
7213fi
7214fi
7215ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7216if test -n "$ac_ct_STRIP"; then
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7218$as_echo "$ac_ct_STRIP" >&6; }
7219else
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
7222fi
7223
7224  if test "x$ac_ct_STRIP" = x; then
7225    STRIP=":"
7226  else
7227    case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233    STRIP=$ac_ct_STRIP
7234  fi
7235else
7236  STRIP="$ac_cv_prog_STRIP"
7237fi
7238
7239test -z "$STRIP" && STRIP=:
7240
7241
7242
7243
7244
7245
7246if test -n "$ac_tool_prefix"; then
7247  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7248set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250$as_echo_n "checking for $ac_word... " >&6; }
7251if ${ac_cv_prog_RANLIB+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  if test -n "$RANLIB"; then
7255  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260  IFS=$as_save_IFS
7261  test -z "$as_dir" && as_dir=.
7262    for ac_exec_ext in '' $ac_executable_extensions; do
7263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266    break 2
7267  fi
7268done
7269  done
7270IFS=$as_save_IFS
7271
7272fi
7273fi
7274RANLIB=$ac_cv_prog_RANLIB
7275if test -n "$RANLIB"; then
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7277$as_echo "$RANLIB" >&6; }
7278else
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280$as_echo "no" >&6; }
7281fi
7282
7283
7284fi
7285if test -z "$ac_cv_prog_RANLIB"; then
7286  ac_ct_RANLIB=$RANLIB
7287  # Extract the first word of "ranlib", so it can be a program name with args.
7288set dummy ranlib; ac_word=$2
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7292  $as_echo_n "(cached) " >&6
7293else
7294  if test -n "$ac_ct_RANLIB"; then
7295  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300  IFS=$as_save_IFS
7301  test -z "$as_dir" && as_dir=.
7302    for ac_exec_ext in '' $ac_executable_extensions; do
7303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304    ac_cv_prog_ac_ct_RANLIB="ranlib"
7305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306    break 2
7307  fi
7308done
7309  done
7310IFS=$as_save_IFS
7311
7312fi
7313fi
7314ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7315if test -n "$ac_ct_RANLIB"; then
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7317$as_echo "$ac_ct_RANLIB" >&6; }
7318else
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321fi
7322
7323  if test "x$ac_ct_RANLIB" = x; then
7324    RANLIB=":"
7325  else
7326    case $cross_compiling:$ac_tool_warned in
7327yes:)
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330ac_tool_warned=yes ;;
7331esac
7332    RANLIB=$ac_ct_RANLIB
7333  fi
7334else
7335  RANLIB="$ac_cv_prog_RANLIB"
7336fi
7337
7338test -z "$RANLIB" && RANLIB=:
7339
7340
7341
7342
7343
7344
7345# Determine commands to create old-style static archives.
7346old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7347old_postinstall_cmds='chmod 644 $oldlib'
7348old_postuninstall_cmds=
7349
7350if test -n "$RANLIB"; then
7351  case $host_os in
7352  openbsd*)
7353    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7354    ;;
7355  *)
7356    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7357    ;;
7358  esac
7359  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7360fi
7361
7362case $host_os in
7363  darwin*)
7364    lock_old_archive_extraction=yes ;;
7365  *)
7366    lock_old_archive_extraction=no ;;
7367esac
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407# If no C compiler was specified, use CC.
7408LTCC=${LTCC-"$CC"}
7409
7410# If no C compiler flags were specified, use CFLAGS.
7411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7412
7413# Allow CC to be a program name with arguments.
7414compiler=$CC
7415
7416
7417# Check for command to grab the raw symbol name followed by C symbol from nm.
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7419$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7420if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423
7424# These are sane defaults that work on at least a few old systems.
7425# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7426
7427# Character class describing NM global symbol codes.
7428symcode='[BCDEGRST]'
7429
7430# Regexp to match symbols that can be accessed directly from C.
7431sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7432
7433# Define system-specific variables.
7434case $host_os in
7435aix*)
7436  symcode='[BCDT]'
7437  ;;
7438cygwin* | mingw* | pw32* | cegcc*)
7439  symcode='[ABCDGISTW]'
7440  ;;
7441hpux*)
7442  if test "$host_cpu" = ia64; then
7443    symcode='[ABCDEGRST]'
7444  fi
7445  ;;
7446irix* | nonstopux*)
7447  symcode='[BCDEGRST]'
7448  ;;
7449osf*)
7450  symcode='[BCDEGQRST]'
7451  ;;
7452solaris*)
7453  symcode='[BDRT]'
7454  ;;
7455sco3.2v5*)
7456  symcode='[DT]'
7457  ;;
7458sysv4.2uw2*)
7459  symcode='[DT]'
7460  ;;
7461sysv5* | sco5v6* | unixware* | OpenUNIX*)
7462  symcode='[ABDT]'
7463  ;;
7464sysv4)
7465  symcode='[DFNSTU]'
7466  ;;
7467esac
7468
7469# If we're using GNU nm, then use its standard symbol codes.
7470case `$NM -V 2>&1` in
7471*GNU* | *'with BFD'*)
7472  symcode='[ABCDGIRSTW]' ;;
7473esac
7474
7475# Transform an extracted symbol line into a proper C declaration.
7476# Some systems (esp. on ia64) link data and code symbols differently,
7477# so use this general approach.
7478lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7479
7480# Transform an extracted symbol line into symbol name and symbol address
7481lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7482lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7483
7484# Handle CRLF in mingw tool chain
7485opt_cr=
7486case $build_os in
7487mingw*)
7488  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7489  ;;
7490esac
7491
7492# Try without a prefix underscore, then with it.
7493for ac_symprfx in "" "_"; do
7494
7495  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7496  symxfrm="\\1 $ac_symprfx\\2 \\2"
7497
7498  # Write the raw and C identifiers.
7499  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7500    # Fake it for dumpbin and say T for any non-static function
7501    # and D for any global variable.
7502    # Also find C++ and __fastcall symbols from MSVC++,
7503    # which start with @ or ?.
7504    lt_cv_sys_global_symbol_pipe="$AWK '"\
7505"     {last_section=section; section=\$ 3};"\
7506"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7507"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7508"     \$ 0!~/External *\|/{next};"\
7509"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7510"     {if(hide[section]) next};"\
7511"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7512"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7513"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7514"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7515"     ' prfx=^$ac_symprfx"
7516  else
7517    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7518  fi
7519  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7520
7521  # Check to see that the pipe works correctly.
7522  pipe_works=no
7523
7524  rm -f conftest*
7525  cat > conftest.$ac_ext <<_LT_EOF
7526#ifdef __cplusplus
7527extern "C" {
7528#endif
7529char nm_test_var;
7530void nm_test_func(void);
7531void nm_test_func(void){}
7532#ifdef __cplusplus
7533}
7534#endif
7535int main(){nm_test_var='a';nm_test_func();return(0);}
7536_LT_EOF
7537
7538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7539  (eval $ac_compile) 2>&5
7540  ac_status=$?
7541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542  test $ac_status = 0; }; then
7543    # Now try to grab the symbols.
7544    nlist=conftest.nm
7545    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7546  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7547  ac_status=$?
7548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549  test $ac_status = 0; } && test -s "$nlist"; then
7550      # Try sorting and uniquifying the output.
7551      if sort "$nlist" | uniq > "$nlist"T; then
7552	mv -f "$nlist"T "$nlist"
7553      else
7554	rm -f "$nlist"T
7555      fi
7556
7557      # Make sure that we snagged all the symbols we need.
7558      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7559	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7560	  cat <<_LT_EOF > conftest.$ac_ext
7561/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7562#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7563/* DATA imports from DLLs on WIN32 con't be const, because runtime
7564   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7565# define LT_DLSYM_CONST
7566#elif defined(__osf__)
7567/* This system does not cope well with relocations in const data.  */
7568# define LT_DLSYM_CONST
7569#else
7570# define LT_DLSYM_CONST const
7571#endif
7572
7573#ifdef __cplusplus
7574extern "C" {
7575#endif
7576
7577_LT_EOF
7578	  # Now generate the symbol file.
7579	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7580
7581	  cat <<_LT_EOF >> conftest.$ac_ext
7582
7583/* The mapping between symbol names and symbols.  */
7584LT_DLSYM_CONST struct {
7585  const char *name;
7586  void       *address;
7587}
7588lt__PROGRAM__LTX_preloaded_symbols[] =
7589{
7590  { "@PROGRAM@", (void *) 0 },
7591_LT_EOF
7592	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7593	  cat <<\_LT_EOF >> conftest.$ac_ext
7594  {0, (void *) 0}
7595};
7596
7597/* This works around a problem in FreeBSD linker */
7598#ifdef FREEBSD_WORKAROUND
7599static const void *lt_preloaded_setup() {
7600  return lt__PROGRAM__LTX_preloaded_symbols;
7601}
7602#endif
7603
7604#ifdef __cplusplus
7605}
7606#endif
7607_LT_EOF
7608	  # Now try linking the two files.
7609	  mv conftest.$ac_objext conftstm.$ac_objext
7610	  lt_globsym_save_LIBS=$LIBS
7611	  lt_globsym_save_CFLAGS=$CFLAGS
7612	  LIBS="conftstm.$ac_objext"
7613	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7614	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7615  (eval $ac_link) 2>&5
7616  ac_status=$?
7617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7619	    pipe_works=yes
7620	  fi
7621	  LIBS=$lt_globsym_save_LIBS
7622	  CFLAGS=$lt_globsym_save_CFLAGS
7623	else
7624	  echo "cannot find nm_test_func in $nlist" >&5
7625	fi
7626      else
7627	echo "cannot find nm_test_var in $nlist" >&5
7628      fi
7629    else
7630      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7631    fi
7632  else
7633    echo "$progname: failed program was:" >&5
7634    cat conftest.$ac_ext >&5
7635  fi
7636  rm -rf conftest* conftst*
7637
7638  # Do not use the global_symbol_pipe unless it works.
7639  if test "$pipe_works" = yes; then
7640    break
7641  else
7642    lt_cv_sys_global_symbol_pipe=
7643  fi
7644done
7645
7646fi
7647
7648if test -z "$lt_cv_sys_global_symbol_pipe"; then
7649  lt_cv_sys_global_symbol_to_cdecl=
7650fi
7651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7653$as_echo "failed" >&6; }
7654else
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7656$as_echo "ok" >&6; }
7657fi
7658
7659# Response file support.
7660if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7661  nm_file_list_spec='@'
7662elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7663  nm_file_list_spec='@'
7664fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7693$as_echo_n "checking for sysroot... " >&6; }
7694
7695# Check whether --with-sysroot was given.
7696if test "${with_sysroot+set}" = set; then :
7697  withval=$with_sysroot;
7698else
7699  with_sysroot=no
7700fi
7701
7702
7703lt_sysroot=
7704case ${with_sysroot} in #(
7705 yes)
7706   if test "$GCC" = yes; then
7707     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7708   fi
7709   ;; #(
7710 /*)
7711   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7712   ;; #(
7713 no|'')
7714   ;; #(
7715 *)
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7717$as_echo "${with_sysroot}" >&6; }
7718   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7719   ;;
7720esac
7721
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7723$as_echo "${lt_sysroot:-no}" >&6; }
7724
7725
7726
7727
7728
7729# Check whether --enable-libtool-lock was given.
7730if test "${enable_libtool_lock+set}" = set; then :
7731  enableval=$enable_libtool_lock;
7732fi
7733
7734test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7735
7736# Some flags need to be propagated to the compiler or linker for good
7737# libtool support.
7738case $host in
7739ia64-*-hpux*)
7740  # Find out which ABI we are using.
7741  echo 'int i;' > conftest.$ac_ext
7742  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7743  (eval $ac_compile) 2>&5
7744  ac_status=$?
7745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746  test $ac_status = 0; }; then
7747    case `/usr/bin/file conftest.$ac_objext` in
7748      *ELF-32*)
7749	HPUX_IA64_MODE="32"
7750	;;
7751      *ELF-64*)
7752	HPUX_IA64_MODE="64"
7753	;;
7754    esac
7755  fi
7756  rm -rf conftest*
7757  ;;
7758*-*-irix6*)
7759  # Find out which ABI we are using.
7760  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762  (eval $ac_compile) 2>&5
7763  ac_status=$?
7764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765  test $ac_status = 0; }; then
7766    if test "$lt_cv_prog_gnu_ld" = yes; then
7767      case `/usr/bin/file conftest.$ac_objext` in
7768	*32-bit*)
7769	  LD="${LD-ld} -melf32bsmip"
7770	  ;;
7771	*N32*)
7772	  LD="${LD-ld} -melf32bmipn32"
7773	  ;;
7774	*64-bit*)
7775	  LD="${LD-ld} -melf64bmip"
7776	;;
7777      esac
7778    else
7779      case `/usr/bin/file conftest.$ac_objext` in
7780	*32-bit*)
7781	  LD="${LD-ld} -32"
7782	  ;;
7783	*N32*)
7784	  LD="${LD-ld} -n32"
7785	  ;;
7786	*64-bit*)
7787	  LD="${LD-ld} -64"
7788	  ;;
7789      esac
7790    fi
7791  fi
7792  rm -rf conftest*
7793  ;;
7794
7795x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7796s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7797  # Find out which ABI we are using.
7798  echo 'int i;' > conftest.$ac_ext
7799  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800  (eval $ac_compile) 2>&5
7801  ac_status=$?
7802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803  test $ac_status = 0; }; then
7804    case `/usr/bin/file conftest.o` in
7805      *32-bit*)
7806	case $host in
7807	  x86_64-*kfreebsd*-gnu)
7808	    LD="${LD-ld} -m elf_i386_fbsd"
7809	    ;;
7810	  x86_64-*linux*)
7811	    LD="${LD-ld} -m elf_i386"
7812	    ;;
7813	  ppc64-*linux*|powerpc64-*linux*)
7814	    LD="${LD-ld} -m elf32ppclinux"
7815	    ;;
7816	  s390x-*linux*)
7817	    LD="${LD-ld} -m elf_s390"
7818	    ;;
7819	  sparc64-*linux*)
7820	    LD="${LD-ld} -m elf32_sparc"
7821	    ;;
7822	esac
7823	;;
7824      *64-bit*)
7825	case $host in
7826	  x86_64-*kfreebsd*-gnu)
7827	    LD="${LD-ld} -m elf_x86_64_fbsd"
7828	    ;;
7829	  x86_64-*linux*)
7830	    LD="${LD-ld} -m elf_x86_64"
7831	    ;;
7832	  ppc*-*linux*|powerpc*-*linux*)
7833	    LD="${LD-ld} -m elf64ppc"
7834	    ;;
7835	  s390*-*linux*|s390*-*tpf*)
7836	    LD="${LD-ld} -m elf64_s390"
7837	    ;;
7838	  sparc*-*linux*)
7839	    LD="${LD-ld} -m elf64_sparc"
7840	    ;;
7841	esac
7842	;;
7843    esac
7844  fi
7845  rm -rf conftest*
7846  ;;
7847
7848*-*-sco3.2v5*)
7849  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7850  SAVE_CFLAGS="$CFLAGS"
7851  CFLAGS="$CFLAGS -belf"
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7853$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7854if ${lt_cv_cc_needs_belf+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  ac_ext=c
7858ac_cpp='$CPP $CPPFLAGS'
7859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862
7863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h.  */
7865
7866int
7867main ()
7868{
7869
7870  ;
7871  return 0;
7872}
7873_ACEOF
7874if ac_fn_c_try_link "$LINENO"; then :
7875  lt_cv_cc_needs_belf=yes
7876else
7877  lt_cv_cc_needs_belf=no
7878fi
7879rm -f core conftest.err conftest.$ac_objext \
7880    conftest$ac_exeext conftest.$ac_ext
7881     ac_ext=c
7882ac_cpp='$CPP $CPPFLAGS'
7883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7889$as_echo "$lt_cv_cc_needs_belf" >&6; }
7890  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7891    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7892    CFLAGS="$SAVE_CFLAGS"
7893  fi
7894  ;;
7895*-*solaris*)
7896  # Find out which ABI we are using.
7897  echo 'int i;' > conftest.$ac_ext
7898  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899  (eval $ac_compile) 2>&5
7900  ac_status=$?
7901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902  test $ac_status = 0; }; then
7903    case `/usr/bin/file conftest.o` in
7904    *64-bit*)
7905      case $lt_cv_prog_gnu_ld in
7906      yes*)
7907        case $host in
7908        i?86-*-solaris*)
7909          LD="${LD-ld} -m elf_x86_64"
7910          ;;
7911        sparc*-*-solaris*)
7912          LD="${LD-ld} -m elf64_sparc"
7913          ;;
7914        esac
7915        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7916        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7917          LD="${LD-ld}_sol2"
7918        fi
7919        ;;
7920      *)
7921	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7922	  LD="${LD-ld} -64"
7923	fi
7924	;;
7925      esac
7926      ;;
7927    esac
7928  fi
7929  rm -rf conftest*
7930  ;;
7931esac
7932
7933need_locks="$enable_libtool_lock"
7934
7935if test -n "$ac_tool_prefix"; then
7936  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7937set dummy ${ac_tool_prefix}mt; ac_word=$2
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  if test -n "$MANIFEST_TOOL"; then
7944  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951    for ac_exec_ext in '' $ac_executable_extensions; do
7952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958  done
7959IFS=$as_save_IFS
7960
7961fi
7962fi
7963MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7964if test -n "$MANIFEST_TOOL"; then
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7966$as_echo "$MANIFEST_TOOL" >&6; }
7967else
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
7970fi
7971
7972
7973fi
7974if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7975  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7976  # Extract the first word of "mt", so it can be a program name with args.
7977set dummy mt; ac_word=$2
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979$as_echo_n "checking for $ac_word... " >&6; }
7980if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  if test -n "$ac_ct_MANIFEST_TOOL"; then
7984  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7985else
7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989  IFS=$as_save_IFS
7990  test -z "$as_dir" && as_dir=.
7991    for ac_exec_ext in '' $ac_executable_extensions; do
7992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995    break 2
7996  fi
7997done
7998  done
7999IFS=$as_save_IFS
8000
8001fi
8002fi
8003ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8004if test -n "$ac_ct_MANIFEST_TOOL"; then
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8006$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8007else
8008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009$as_echo "no" >&6; }
8010fi
8011
8012  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8013    MANIFEST_TOOL=":"
8014  else
8015    case $cross_compiling:$ac_tool_warned in
8016yes:)
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019ac_tool_warned=yes ;;
8020esac
8021    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8022  fi
8023else
8024  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8025fi
8026
8027test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8029$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8030if ${lt_cv_path_mainfest_tool+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033  lt_cv_path_mainfest_tool=no
8034  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8035  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8036  cat conftest.err >&5
8037  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8038    lt_cv_path_mainfest_tool=yes
8039  fi
8040  rm -f conftest*
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8043$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8044if test "x$lt_cv_path_mainfest_tool" != xyes; then
8045  MANIFEST_TOOL=:
8046fi
8047
8048
8049
8050
8051
8052
8053  case $host_os in
8054    rhapsody* | darwin*)
8055    if test -n "$ac_tool_prefix"; then
8056  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8057set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if ${ac_cv_prog_DSYMUTIL+:} false; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  if test -n "$DSYMUTIL"; then
8064  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  test -z "$as_dir" && as_dir=.
8071    for ac_exec_ext in '' $ac_executable_extensions; do
8072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075    break 2
8076  fi
8077done
8078  done
8079IFS=$as_save_IFS
8080
8081fi
8082fi
8083DSYMUTIL=$ac_cv_prog_DSYMUTIL
8084if test -n "$DSYMUTIL"; then
8085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8086$as_echo "$DSYMUTIL" >&6; }
8087else
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092
8093fi
8094if test -z "$ac_cv_prog_DSYMUTIL"; then
8095  ac_ct_DSYMUTIL=$DSYMUTIL
8096  # Extract the first word of "dsymutil", so it can be a program name with args.
8097set dummy dsymutil; ac_word=$2
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8101  $as_echo_n "(cached) " >&6
8102else
8103  if test -n "$ac_ct_DSYMUTIL"; then
8104  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109  IFS=$as_save_IFS
8110  test -z "$as_dir" && as_dir=.
8111    for ac_exec_ext in '' $ac_executable_extensions; do
8112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115    break 2
8116  fi
8117done
8118  done
8119IFS=$as_save_IFS
8120
8121fi
8122fi
8123ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8124if test -n "$ac_ct_DSYMUTIL"; then
8125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8126$as_echo "$ac_ct_DSYMUTIL" >&6; }
8127else
8128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132  if test "x$ac_ct_DSYMUTIL" = x; then
8133    DSYMUTIL=":"
8134  else
8135    case $cross_compiling:$ac_tool_warned in
8136yes:)
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139ac_tool_warned=yes ;;
8140esac
8141    DSYMUTIL=$ac_ct_DSYMUTIL
8142  fi
8143else
8144  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8145fi
8146
8147    if test -n "$ac_tool_prefix"; then
8148  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8149set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if ${ac_cv_prog_NMEDIT+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  if test -n "$NMEDIT"; then
8156  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161  IFS=$as_save_IFS
8162  test -z "$as_dir" && as_dir=.
8163    for ac_exec_ext in '' $ac_executable_extensions; do
8164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167    break 2
8168  fi
8169done
8170  done
8171IFS=$as_save_IFS
8172
8173fi
8174fi
8175NMEDIT=$ac_cv_prog_NMEDIT
8176if test -n "$NMEDIT"; then
8177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8178$as_echo "$NMEDIT" >&6; }
8179else
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
8182fi
8183
8184
8185fi
8186if test -z "$ac_cv_prog_NMEDIT"; then
8187  ac_ct_NMEDIT=$NMEDIT
8188  # Extract the first word of "nmedit", so it can be a program name with args.
8189set dummy nmedit; ac_word=$2
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191$as_echo_n "checking for $ac_word... " >&6; }
8192if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  if test -n "$ac_ct_NMEDIT"; then
8196  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201  IFS=$as_save_IFS
8202  test -z "$as_dir" && as_dir=.
8203    for ac_exec_ext in '' $ac_executable_extensions; do
8204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207    break 2
8208  fi
8209done
8210  done
8211IFS=$as_save_IFS
8212
8213fi
8214fi
8215ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8216if test -n "$ac_ct_NMEDIT"; then
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8218$as_echo "$ac_ct_NMEDIT" >&6; }
8219else
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
8222fi
8223
8224  if test "x$ac_ct_NMEDIT" = x; then
8225    NMEDIT=":"
8226  else
8227    case $cross_compiling:$ac_tool_warned in
8228yes:)
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231ac_tool_warned=yes ;;
8232esac
8233    NMEDIT=$ac_ct_NMEDIT
8234  fi
8235else
8236  NMEDIT="$ac_cv_prog_NMEDIT"
8237fi
8238
8239    if test -n "$ac_tool_prefix"; then
8240  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8241set dummy ${ac_tool_prefix}lipo; ac_word=$2
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243$as_echo_n "checking for $ac_word... " >&6; }
8244if ${ac_cv_prog_LIPO+:} false; then :
8245  $as_echo_n "(cached) " >&6
8246else
8247  if test -n "$LIPO"; then
8248  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8249else
8250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253  IFS=$as_save_IFS
8254  test -z "$as_dir" && as_dir=.
8255    for ac_exec_ext in '' $ac_executable_extensions; do
8256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259    break 2
8260  fi
8261done
8262  done
8263IFS=$as_save_IFS
8264
8265fi
8266fi
8267LIPO=$ac_cv_prog_LIPO
8268if test -n "$LIPO"; then
8269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8270$as_echo "$LIPO" >&6; }
8271else
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273$as_echo "no" >&6; }
8274fi
8275
8276
8277fi
8278if test -z "$ac_cv_prog_LIPO"; then
8279  ac_ct_LIPO=$LIPO
8280  # Extract the first word of "lipo", so it can be a program name with args.
8281set dummy lipo; ac_word=$2
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  if test -n "$ac_ct_LIPO"; then
8288  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293  IFS=$as_save_IFS
8294  test -z "$as_dir" && as_dir=.
8295    for ac_exec_ext in '' $ac_executable_extensions; do
8296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297    ac_cv_prog_ac_ct_LIPO="lipo"
8298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299    break 2
8300  fi
8301done
8302  done
8303IFS=$as_save_IFS
8304
8305fi
8306fi
8307ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8308if test -n "$ac_ct_LIPO"; then
8309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8310$as_echo "$ac_ct_LIPO" >&6; }
8311else
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314fi
8315
8316  if test "x$ac_ct_LIPO" = x; then
8317    LIPO=":"
8318  else
8319    case $cross_compiling:$ac_tool_warned in
8320yes:)
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323ac_tool_warned=yes ;;
8324esac
8325    LIPO=$ac_ct_LIPO
8326  fi
8327else
8328  LIPO="$ac_cv_prog_LIPO"
8329fi
8330
8331    if test -n "$ac_tool_prefix"; then
8332  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8333set dummy ${ac_tool_prefix}otool; ac_word=$2
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335$as_echo_n "checking for $ac_word... " >&6; }
8336if ${ac_cv_prog_OTOOL+:} false; then :
8337  $as_echo_n "(cached) " >&6
8338else
8339  if test -n "$OTOOL"; then
8340  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8341else
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345  IFS=$as_save_IFS
8346  test -z "$as_dir" && as_dir=.
8347    for ac_exec_ext in '' $ac_executable_extensions; do
8348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351    break 2
8352  fi
8353done
8354  done
8355IFS=$as_save_IFS
8356
8357fi
8358fi
8359OTOOL=$ac_cv_prog_OTOOL
8360if test -n "$OTOOL"; then
8361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8362$as_echo "$OTOOL" >&6; }
8363else
8364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365$as_echo "no" >&6; }
8366fi
8367
8368
8369fi
8370if test -z "$ac_cv_prog_OTOOL"; then
8371  ac_ct_OTOOL=$OTOOL
8372  # Extract the first word of "otool", so it can be a program name with args.
8373set dummy otool; ac_word=$2
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375$as_echo_n "checking for $ac_word... " >&6; }
8376if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  if test -n "$ac_ct_OTOOL"; then
8380  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385  IFS=$as_save_IFS
8386  test -z "$as_dir" && as_dir=.
8387    for ac_exec_ext in '' $ac_executable_extensions; do
8388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389    ac_cv_prog_ac_ct_OTOOL="otool"
8390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391    break 2
8392  fi
8393done
8394  done
8395IFS=$as_save_IFS
8396
8397fi
8398fi
8399ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8400if test -n "$ac_ct_OTOOL"; then
8401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8402$as_echo "$ac_ct_OTOOL" >&6; }
8403else
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
8406fi
8407
8408  if test "x$ac_ct_OTOOL" = x; then
8409    OTOOL=":"
8410  else
8411    case $cross_compiling:$ac_tool_warned in
8412yes:)
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415ac_tool_warned=yes ;;
8416esac
8417    OTOOL=$ac_ct_OTOOL
8418  fi
8419else
8420  OTOOL="$ac_cv_prog_OTOOL"
8421fi
8422
8423    if test -n "$ac_tool_prefix"; then
8424  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8425set dummy ${ac_tool_prefix}otool64; ac_word=$2
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; }
8428if ${ac_cv_prog_OTOOL64+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  if test -n "$OTOOL64"; then
8432  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437  IFS=$as_save_IFS
8438  test -z "$as_dir" && as_dir=.
8439    for ac_exec_ext in '' $ac_executable_extensions; do
8440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443    break 2
8444  fi
8445done
8446  done
8447IFS=$as_save_IFS
8448
8449fi
8450fi
8451OTOOL64=$ac_cv_prog_OTOOL64
8452if test -n "$OTOOL64"; then
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8454$as_echo "$OTOOL64" >&6; }
8455else
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
8458fi
8459
8460
8461fi
8462if test -z "$ac_cv_prog_OTOOL64"; then
8463  ac_ct_OTOOL64=$OTOOL64
8464  # Extract the first word of "otool64", so it can be a program name with args.
8465set dummy otool64; ac_word=$2
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467$as_echo_n "checking for $ac_word... " >&6; }
8468if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  if test -n "$ac_ct_OTOOL64"; then
8472  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8473else
8474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477  IFS=$as_save_IFS
8478  test -z "$as_dir" && as_dir=.
8479    for ac_exec_ext in '' $ac_executable_extensions; do
8480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481    ac_cv_prog_ac_ct_OTOOL64="otool64"
8482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483    break 2
8484  fi
8485done
8486  done
8487IFS=$as_save_IFS
8488
8489fi
8490fi
8491ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8492if test -n "$ac_ct_OTOOL64"; then
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8494$as_echo "$ac_ct_OTOOL64" >&6; }
8495else
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
8498fi
8499
8500  if test "x$ac_ct_OTOOL64" = x; then
8501    OTOOL64=":"
8502  else
8503    case $cross_compiling:$ac_tool_warned in
8504yes:)
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8507ac_tool_warned=yes ;;
8508esac
8509    OTOOL64=$ac_ct_OTOOL64
8510  fi
8511else
8512  OTOOL64="$ac_cv_prog_OTOOL64"
8513fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8542$as_echo_n "checking for -single_module linker flag... " >&6; }
8543if ${lt_cv_apple_cc_single_mod+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  lt_cv_apple_cc_single_mod=no
8547      if test -z "${LT_MULTI_MODULE}"; then
8548	# By default we will add the -single_module flag. You can override
8549	# by either setting the environment variable LT_MULTI_MODULE
8550	# non-empty at configure time, or by adding -multi_module to the
8551	# link flags.
8552	rm -rf libconftest.dylib*
8553	echo "int foo(void){return 1;}" > conftest.c
8554	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8555-dynamiclib -Wl,-single_module conftest.c" >&5
8556	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8557	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8558        _lt_result=$?
8559	# If there is a non-empty error log, and "single_module"
8560	# appears in it, assume the flag caused a linker warning
8561        if test -s conftest.err && $GREP single_module conftest.err; then
8562	  cat conftest.err >&5
8563	# Otherwise, if the output was created with a 0 exit code from
8564	# the compiler, it worked.
8565	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8566	  lt_cv_apple_cc_single_mod=yes
8567	else
8568	  cat conftest.err >&5
8569	fi
8570	rm -rf libconftest.dylib*
8571	rm -f conftest.*
8572      fi
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8575$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8576
8577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8578$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8579if ${lt_cv_ld_exported_symbols_list+:} false; then :
8580  $as_echo_n "(cached) " >&6
8581else
8582  lt_cv_ld_exported_symbols_list=no
8583      save_LDFLAGS=$LDFLAGS
8584      echo "_main" > conftest.sym
8585      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588
8589int
8590main ()
8591{
8592
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597if ac_fn_c_try_link "$LINENO"; then :
8598  lt_cv_ld_exported_symbols_list=yes
8599else
8600  lt_cv_ld_exported_symbols_list=no
8601fi
8602rm -f core conftest.err conftest.$ac_objext \
8603    conftest$ac_exeext conftest.$ac_ext
8604	LDFLAGS="$save_LDFLAGS"
8605
8606fi
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8608$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8609
8610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8611$as_echo_n "checking for -force_load linker flag... " >&6; }
8612if ${lt_cv_ld_force_load+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  lt_cv_ld_force_load=no
8616      cat > conftest.c << _LT_EOF
8617int forced_loaded() { return 2;}
8618_LT_EOF
8619      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8620      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8621      echo "$AR cru libconftest.a conftest.o" >&5
8622      $AR cru libconftest.a conftest.o 2>&5
8623      echo "$RANLIB libconftest.a" >&5
8624      $RANLIB libconftest.a 2>&5
8625      cat > conftest.c << _LT_EOF
8626int main() { return 0;}
8627_LT_EOF
8628      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8629      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8630      _lt_result=$?
8631      if test -s conftest.err && $GREP force_load conftest.err; then
8632	cat conftest.err >&5
8633      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8634	lt_cv_ld_force_load=yes
8635      else
8636	cat conftest.err >&5
8637      fi
8638        rm -f conftest.err libconftest.a conftest conftest.c
8639        rm -rf conftest.dSYM
8640
8641fi
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8643$as_echo "$lt_cv_ld_force_load" >&6; }
8644    case $host_os in
8645    rhapsody* | darwin1.[012])
8646      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8647    darwin1.*)
8648      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8649    darwin*) # darwin 5.x on
8650      # if running on 10.5 or later, the deployment target defaults
8651      # to the OS version, if on x86, and 10.4, the deployment
8652      # target defaults to 10.4. Don't you love it?
8653      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8654	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8655	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8656	10.[012]*)
8657	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8658	10.*)
8659	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8660      esac
8661    ;;
8662  esac
8663    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8664      _lt_dar_single_mod='$single_module'
8665    fi
8666    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8667      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8668    else
8669      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8670    fi
8671    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8672      _lt_dsymutil='~$DSYMUTIL $lib || :'
8673    else
8674      _lt_dsymutil=
8675    fi
8676    ;;
8677  esac
8678
8679
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8681$as_echo_n "checking for ANSI C header files... " >&6; }
8682if ${ac_cv_header_stdc+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h.  */
8687#include <stdlib.h>
8688#include <stdarg.h>
8689#include <string.h>
8690#include <float.h>
8691
8692int
8693main ()
8694{
8695
8696  ;
8697  return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_compile "$LINENO"; then :
8701  ac_cv_header_stdc=yes
8702else
8703  ac_cv_header_stdc=no
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706
8707if test $ac_cv_header_stdc = yes; then
8708  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710/* end confdefs.h.  */
8711#include <string.h>
8712
8713_ACEOF
8714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8715  $EGREP "memchr" >/dev/null 2>&1; then :
8716
8717else
8718  ac_cv_header_stdc=no
8719fi
8720rm -f conftest*
8721
8722fi
8723
8724if test $ac_cv_header_stdc = yes; then
8725  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728#include <stdlib.h>
8729
8730_ACEOF
8731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732  $EGREP "free" >/dev/null 2>&1; then :
8733
8734else
8735  ac_cv_header_stdc=no
8736fi
8737rm -f conftest*
8738
8739fi
8740
8741if test $ac_cv_header_stdc = yes; then
8742  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8743  if test "$cross_compiling" = yes; then :
8744  :
8745else
8746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748#include <ctype.h>
8749#include <stdlib.h>
8750#if ((' ' & 0x0FF) == 0x020)
8751# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8752# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8753#else
8754# define ISLOWER(c) \
8755		   (('a' <= (c) && (c) <= 'i') \
8756		     || ('j' <= (c) && (c) <= 'r') \
8757		     || ('s' <= (c) && (c) <= 'z'))
8758# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8759#endif
8760
8761#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8762int
8763main ()
8764{
8765  int i;
8766  for (i = 0; i < 256; i++)
8767    if (XOR (islower (i), ISLOWER (i))
8768	|| toupper (i) != TOUPPER (i))
8769      return 2;
8770  return 0;
8771}
8772_ACEOF
8773if ac_fn_c_try_run "$LINENO"; then :
8774
8775else
8776  ac_cv_header_stdc=no
8777fi
8778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8779  conftest.$ac_objext conftest.beam conftest.$ac_ext
8780fi
8781
8782fi
8783fi
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8785$as_echo "$ac_cv_header_stdc" >&6; }
8786if test $ac_cv_header_stdc = yes; then
8787
8788$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8789
8790fi
8791
8792# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8793for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8794		  inttypes.h stdint.h unistd.h
8795do :
8796  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8797ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8798"
8799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8800  cat >>confdefs.h <<_ACEOF
8801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802_ACEOF
8803
8804fi
8805
8806done
8807
8808
8809for ac_header in dlfcn.h
8810do :
8811  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8812"
8813if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8814  cat >>confdefs.h <<_ACEOF
8815#define HAVE_DLFCN_H 1
8816_ACEOF
8817
8818fi
8819
8820done
8821
8822
8823
8824
8825func_stripname_cnf ()
8826{
8827  case ${2} in
8828  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8829  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8830  esac
8831} # func_stripname_cnf
8832
8833
8834
8835
8836
8837# Set options
8838
8839
8840
8841        enable_dlopen=no
8842
8843
8844  enable_win32_dll=no
8845
8846
8847            # Check whether --enable-shared was given.
8848if test "${enable_shared+set}" = set; then :
8849  enableval=$enable_shared; p=${PACKAGE-default}
8850    case $enableval in
8851    yes) enable_shared=yes ;;
8852    no) enable_shared=no ;;
8853    *)
8854      enable_shared=no
8855      # Look at the argument we got.  We use all the common list separators.
8856      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8857      for pkg in $enableval; do
8858	IFS="$lt_save_ifs"
8859	if test "X$pkg" = "X$p"; then
8860	  enable_shared=yes
8861	fi
8862      done
8863      IFS="$lt_save_ifs"
8864      ;;
8865    esac
8866else
8867  enable_shared=yes
8868fi
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878  # Check whether --enable-static was given.
8879if test "${enable_static+set}" = set; then :
8880  enableval=$enable_static; p=${PACKAGE-default}
8881    case $enableval in
8882    yes) enable_static=yes ;;
8883    no) enable_static=no ;;
8884    *)
8885     enable_static=no
8886      # Look at the argument we got.  We use all the common list separators.
8887      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8888      for pkg in $enableval; do
8889	IFS="$lt_save_ifs"
8890	if test "X$pkg" = "X$p"; then
8891	  enable_static=yes
8892	fi
8893      done
8894      IFS="$lt_save_ifs"
8895      ;;
8896    esac
8897else
8898  enable_static=yes
8899fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910# Check whether --with-pic was given.
8911if test "${with_pic+set}" = set; then :
8912  withval=$with_pic; lt_p=${PACKAGE-default}
8913    case $withval in
8914    yes|no) pic_mode=$withval ;;
8915    *)
8916      pic_mode=default
8917      # Look at the argument we got.  We use all the common list separators.
8918      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8919      for lt_pkg in $withval; do
8920	IFS="$lt_save_ifs"
8921	if test "X$lt_pkg" = "X$lt_p"; then
8922	  pic_mode=yes
8923	fi
8924      done
8925      IFS="$lt_save_ifs"
8926      ;;
8927    esac
8928else
8929  pic_mode=default
8930fi
8931
8932
8933test -z "$pic_mode" && pic_mode=default
8934
8935
8936
8937
8938
8939
8940
8941  # Check whether --enable-fast-install was given.
8942if test "${enable_fast_install+set}" = set; then :
8943  enableval=$enable_fast_install; p=${PACKAGE-default}
8944    case $enableval in
8945    yes) enable_fast_install=yes ;;
8946    no) enable_fast_install=no ;;
8947    *)
8948      enable_fast_install=no
8949      # Look at the argument we got.  We use all the common list separators.
8950      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8951      for pkg in $enableval; do
8952	IFS="$lt_save_ifs"
8953	if test "X$pkg" = "X$p"; then
8954	  enable_fast_install=yes
8955	fi
8956      done
8957      IFS="$lt_save_ifs"
8958      ;;
8959    esac
8960else
8961  enable_fast_install=yes
8962fi
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974# This can be used to rebuild libtool when needed
8975LIBTOOL_DEPS="$ltmain"
8976
8977# Always use our own libtool.
8978LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009test -z "$LN_S" && LN_S="ln -s"
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024if test -n "${ZSH_VERSION+set}" ; then
9025   setopt NO_GLOB_SUBST
9026fi
9027
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9029$as_echo_n "checking for objdir... " >&6; }
9030if ${lt_cv_objdir+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  rm -f .libs 2>/dev/null
9034mkdir .libs 2>/dev/null
9035if test -d .libs; then
9036  lt_cv_objdir=.libs
9037else
9038  # MS-DOS does not allow filenames that begin with a dot.
9039  lt_cv_objdir=_libs
9040fi
9041rmdir .libs 2>/dev/null
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9044$as_echo "$lt_cv_objdir" >&6; }
9045objdir=$lt_cv_objdir
9046
9047
9048
9049
9050
9051cat >>confdefs.h <<_ACEOF
9052#define LT_OBJDIR "$lt_cv_objdir/"
9053_ACEOF
9054
9055
9056
9057
9058case $host_os in
9059aix3*)
9060  # AIX sometimes has problems with the GCC collect2 program.  For some
9061  # reason, if we set the COLLECT_NAMES environment variable, the problems
9062  # vanish in a puff of smoke.
9063  if test "X${COLLECT_NAMES+set}" != Xset; then
9064    COLLECT_NAMES=
9065    export COLLECT_NAMES
9066  fi
9067  ;;
9068esac
9069
9070# Global variables:
9071ofile=libtool
9072can_build_shared=yes
9073
9074# All known linkers require a `.a' archive for static linking (except MSVC,
9075# which needs '.lib').
9076libext=a
9077
9078with_gnu_ld="$lt_cv_prog_gnu_ld"
9079
9080old_CC="$CC"
9081old_CFLAGS="$CFLAGS"
9082
9083# Set sane defaults for various variables
9084test -z "$CC" && CC=cc
9085test -z "$LTCC" && LTCC=$CC
9086test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9087test -z "$LD" && LD=ld
9088test -z "$ac_objext" && ac_objext=o
9089
9090for cc_temp in $compiler""; do
9091  case $cc_temp in
9092    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9093    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9094    \-*) ;;
9095    *) break;;
9096  esac
9097done
9098cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9099
9100
9101# Only perform the check for file, if the check method requires it
9102test -z "$MAGIC_CMD" && MAGIC_CMD=file
9103case $deplibs_check_method in
9104file_magic*)
9105  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9107$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9108if ${lt_cv_path_MAGIC_CMD+:} false; then :
9109  $as_echo_n "(cached) " >&6
9110else
9111  case $MAGIC_CMD in
9112[\\/*] |  ?:[\\/]*)
9113  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9114  ;;
9115*)
9116  lt_save_MAGIC_CMD="$MAGIC_CMD"
9117  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9118  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9119  for ac_dir in $ac_dummy; do
9120    IFS="$lt_save_ifs"
9121    test -z "$ac_dir" && ac_dir=.
9122    if test -f $ac_dir/${ac_tool_prefix}file; then
9123      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9124      if test -n "$file_magic_test_file"; then
9125	case $deplibs_check_method in
9126	"file_magic "*)
9127	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9128	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9129	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9130	    $EGREP "$file_magic_regex" > /dev/null; then
9131	    :
9132	  else
9133	    cat <<_LT_EOF 1>&2
9134
9135*** Warning: the command libtool uses to detect shared libraries,
9136*** $file_magic_cmd, produces output that libtool cannot recognize.
9137*** The result is that libtool may fail to recognize shared libraries
9138*** as such.  This will affect the creation of libtool libraries that
9139*** depend on shared libraries, but programs linked with such libtool
9140*** libraries will work regardless of this problem.  Nevertheless, you
9141*** may want to report the problem to your system manager and/or to
9142*** bug-libtool@gnu.org
9143
9144_LT_EOF
9145	  fi ;;
9146	esac
9147      fi
9148      break
9149    fi
9150  done
9151  IFS="$lt_save_ifs"
9152  MAGIC_CMD="$lt_save_MAGIC_CMD"
9153  ;;
9154esac
9155fi
9156
9157MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9158if test -n "$MAGIC_CMD"; then
9159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9160$as_echo "$MAGIC_CMD" >&6; }
9161else
9162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
9164fi
9165
9166
9167
9168
9169
9170if test -z "$lt_cv_path_MAGIC_CMD"; then
9171  if test -n "$ac_tool_prefix"; then
9172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9173$as_echo_n "checking for file... " >&6; }
9174if ${lt_cv_path_MAGIC_CMD+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  case $MAGIC_CMD in
9178[\\/*] |  ?:[\\/]*)
9179  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9180  ;;
9181*)
9182  lt_save_MAGIC_CMD="$MAGIC_CMD"
9183  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9184  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9185  for ac_dir in $ac_dummy; do
9186    IFS="$lt_save_ifs"
9187    test -z "$ac_dir" && ac_dir=.
9188    if test -f $ac_dir/file; then
9189      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9190      if test -n "$file_magic_test_file"; then
9191	case $deplibs_check_method in
9192	"file_magic "*)
9193	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9194	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9195	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9196	    $EGREP "$file_magic_regex" > /dev/null; then
9197	    :
9198	  else
9199	    cat <<_LT_EOF 1>&2
9200
9201*** Warning: the command libtool uses to detect shared libraries,
9202*** $file_magic_cmd, produces output that libtool cannot recognize.
9203*** The result is that libtool may fail to recognize shared libraries
9204*** as such.  This will affect the creation of libtool libraries that
9205*** depend on shared libraries, but programs linked with such libtool
9206*** libraries will work regardless of this problem.  Nevertheless, you
9207*** may want to report the problem to your system manager and/or to
9208*** bug-libtool@gnu.org
9209
9210_LT_EOF
9211	  fi ;;
9212	esac
9213      fi
9214      break
9215    fi
9216  done
9217  IFS="$lt_save_ifs"
9218  MAGIC_CMD="$lt_save_MAGIC_CMD"
9219  ;;
9220esac
9221fi
9222
9223MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9224if test -n "$MAGIC_CMD"; then
9225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9226$as_echo "$MAGIC_CMD" >&6; }
9227else
9228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229$as_echo "no" >&6; }
9230fi
9231
9232
9233  else
9234    MAGIC_CMD=:
9235  fi
9236fi
9237
9238  fi
9239  ;;
9240esac
9241
9242# Use C for the default configuration in the libtool script
9243
9244lt_save_CC="$CC"
9245ac_ext=c
9246ac_cpp='$CPP $CPPFLAGS'
9247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9249ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250
9251
9252# Source file extension for C test sources.
9253ac_ext=c
9254
9255# Object file extension for compiled C test sources.
9256objext=o
9257objext=$objext
9258
9259# Code to be used in simple compile tests
9260lt_simple_compile_test_code="int some_variable = 0;"
9261
9262# Code to be used in simple link tests
9263lt_simple_link_test_code='int main(){return(0);}'
9264
9265
9266
9267
9268
9269
9270
9271# If no C compiler was specified, use CC.
9272LTCC=${LTCC-"$CC"}
9273
9274# If no C compiler flags were specified, use CFLAGS.
9275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9276
9277# Allow CC to be a program name with arguments.
9278compiler=$CC
9279
9280# Save the default compiler, since it gets overwritten when the other
9281# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9282compiler_DEFAULT=$CC
9283
9284# save warnings/boilerplate of simple test code
9285ac_outfile=conftest.$ac_objext
9286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9288_lt_compiler_boilerplate=`cat conftest.err`
9289$RM conftest*
9290
9291ac_outfile=conftest.$ac_objext
9292echo "$lt_simple_link_test_code" >conftest.$ac_ext
9293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9294_lt_linker_boilerplate=`cat conftest.err`
9295$RM -r conftest*
9296
9297
9298## CAVEAT EMPTOR:
9299## There is no encapsulation within the following macros, do not change
9300## the running order or otherwise move them around unless you know exactly
9301## what you are doing...
9302if test -n "$compiler"; then
9303
9304lt_prog_compiler_no_builtin_flag=
9305
9306if test "$GCC" = yes; then
9307  case $cc_basename in
9308  nvcc*)
9309    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9310  *)
9311    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9312  esac
9313
9314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9315$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9316if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  lt_cv_prog_compiler_rtti_exceptions=no
9320   ac_outfile=conftest.$ac_objext
9321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9322   lt_compiler_flag="-fno-rtti -fno-exceptions"
9323   # Insert the option either (1) after the last *FLAGS variable, or
9324   # (2) before a word containing "conftest.", or (3) at the end.
9325   # Note that $ac_compile itself does not contain backslashes and begins
9326   # with a dollar sign (not a hyphen), so the echo should work correctly.
9327   # The option is referenced via a variable to avoid confusing sed.
9328   lt_compile=`echo "$ac_compile" | $SED \
9329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9331   -e 's:$: $lt_compiler_flag:'`
9332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9333   (eval "$lt_compile" 2>conftest.err)
9334   ac_status=$?
9335   cat conftest.err >&5
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   if (exit $ac_status) && test -s "$ac_outfile"; then
9338     # The compiler can only warn and ignore the option if not recognized
9339     # So say no if there are warnings other than the usual output.
9340     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9343       lt_cv_prog_compiler_rtti_exceptions=yes
9344     fi
9345   fi
9346   $RM conftest*
9347
9348fi
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9350$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9351
9352if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9353    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9354else
9355    :
9356fi
9357
9358fi
9359
9360
9361
9362
9363
9364
9365  lt_prog_compiler_wl=
9366lt_prog_compiler_pic=
9367lt_prog_compiler_static=
9368
9369
9370  if test "$GCC" = yes; then
9371    lt_prog_compiler_wl='-Wl,'
9372    lt_prog_compiler_static='-static'
9373
9374    case $host_os in
9375      aix*)
9376      # All AIX code is PIC.
9377      if test "$host_cpu" = ia64; then
9378	# AIX 5 now supports IA64 processor
9379	lt_prog_compiler_static='-Bstatic'
9380      fi
9381      ;;
9382
9383    amigaos*)
9384      case $host_cpu in
9385      powerpc)
9386            # see comment about AmigaOS4 .so support
9387            lt_prog_compiler_pic='-fPIC'
9388        ;;
9389      m68k)
9390            # FIXME: we need at least 68020 code to build shared libraries, but
9391            # adding the `-m68020' flag to GCC prevents building anything better,
9392            # like `-m68040'.
9393            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9394        ;;
9395      esac
9396      ;;
9397
9398    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9399      # PIC is the default for these OSes.
9400      ;;
9401
9402    mingw* | cygwin* | pw32* | os2* | cegcc*)
9403      # This hack is so that the source file can tell whether it is being
9404      # built for inclusion in a dll (and should export symbols for example).
9405      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9406      # (--disable-auto-import) libraries
9407      lt_prog_compiler_pic='-DDLL_EXPORT'
9408      ;;
9409
9410    darwin* | rhapsody*)
9411      # PIC is the default on this platform
9412      # Common symbols not allowed in MH_DYLIB files
9413      lt_prog_compiler_pic='-fno-common'
9414      ;;
9415
9416    haiku*)
9417      # PIC is the default for Haiku.
9418      # The "-static" flag exists, but is broken.
9419      lt_prog_compiler_static=
9420      ;;
9421
9422    hpux*)
9423      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9424      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9425      # sets the default TLS model and affects inlining.
9426      case $host_cpu in
9427      hppa*64*)
9428	# +Z the default
9429	;;
9430      *)
9431	lt_prog_compiler_pic='-fPIC'
9432	;;
9433      esac
9434      ;;
9435
9436    interix[3-9]*)
9437      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9438      # Instead, we relocate shared libraries at runtime.
9439      ;;
9440
9441    msdosdjgpp*)
9442      # Just because we use GCC doesn't mean we suddenly get shared libraries
9443      # on systems that don't support them.
9444      lt_prog_compiler_can_build_shared=no
9445      enable_shared=no
9446      ;;
9447
9448    *nto* | *qnx*)
9449      # QNX uses GNU C++, but need to define -shared option too, otherwise
9450      # it will coredump.
9451      lt_prog_compiler_pic='-fPIC -shared'
9452      ;;
9453
9454    sysv4*MP*)
9455      if test -d /usr/nec; then
9456	lt_prog_compiler_pic=-Kconform_pic
9457      fi
9458      ;;
9459
9460    *)
9461      lt_prog_compiler_pic='-fPIC'
9462      ;;
9463    esac
9464
9465    case $cc_basename in
9466    nvcc*) # Cuda Compiler Driver 2.2
9467      lt_prog_compiler_wl='-Xlinker '
9468      if test -n "$lt_prog_compiler_pic"; then
9469        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9470      fi
9471      ;;
9472    esac
9473  else
9474    # PORTME Check for flag to pass linker flags through the system compiler.
9475    case $host_os in
9476    aix*)
9477      lt_prog_compiler_wl='-Wl,'
9478      if test "$host_cpu" = ia64; then
9479	# AIX 5 now supports IA64 processor
9480	lt_prog_compiler_static='-Bstatic'
9481      else
9482	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9483      fi
9484      ;;
9485
9486    mingw* | cygwin* | pw32* | os2* | cegcc*)
9487      # This hack is so that the source file can tell whether it is being
9488      # built for inclusion in a dll (and should export symbols for example).
9489      lt_prog_compiler_pic='-DDLL_EXPORT'
9490      ;;
9491
9492    hpux9* | hpux10* | hpux11*)
9493      lt_prog_compiler_wl='-Wl,'
9494      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9495      # not for PA HP-UX.
9496      case $host_cpu in
9497      hppa*64*|ia64*)
9498	# +Z the default
9499	;;
9500      *)
9501	lt_prog_compiler_pic='+Z'
9502	;;
9503      esac
9504      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9505      lt_prog_compiler_static='${wl}-a ${wl}archive'
9506      ;;
9507
9508    irix5* | irix6* | nonstopux*)
9509      lt_prog_compiler_wl='-Wl,'
9510      # PIC (with -KPIC) is the default.
9511      lt_prog_compiler_static='-non_shared'
9512      ;;
9513
9514    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9515      case $cc_basename in
9516      # old Intel for x86_64 which still supported -KPIC.
9517      ecc*)
9518	lt_prog_compiler_wl='-Wl,'
9519	lt_prog_compiler_pic='-KPIC'
9520	lt_prog_compiler_static='-static'
9521        ;;
9522      # icc used to be incompatible with GCC.
9523      # ICC 10 doesn't accept -KPIC any more.
9524      icc* | ifort*)
9525	lt_prog_compiler_wl='-Wl,'
9526	lt_prog_compiler_pic='-fPIC'
9527	lt_prog_compiler_static='-static'
9528        ;;
9529      # Lahey Fortran 8.1.
9530      lf95*)
9531	lt_prog_compiler_wl='-Wl,'
9532	lt_prog_compiler_pic='--shared'
9533	lt_prog_compiler_static='--static'
9534	;;
9535      nagfor*)
9536	# NAG Fortran compiler
9537	lt_prog_compiler_wl='-Wl,-Wl,,'
9538	lt_prog_compiler_pic='-PIC'
9539	lt_prog_compiler_static='-Bstatic'
9540	;;
9541      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9542        # Portland Group compilers (*not* the Pentium gcc compiler,
9543	# which looks to be a dead project)
9544	lt_prog_compiler_wl='-Wl,'
9545	lt_prog_compiler_pic='-fpic'
9546	lt_prog_compiler_static='-Bstatic'
9547        ;;
9548      ccc*)
9549        lt_prog_compiler_wl='-Wl,'
9550        # All Alpha code is PIC.
9551        lt_prog_compiler_static='-non_shared'
9552        ;;
9553      xl* | bgxl* | bgf* | mpixl*)
9554	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9555	lt_prog_compiler_wl='-Wl,'
9556	lt_prog_compiler_pic='-qpic'
9557	lt_prog_compiler_static='-qstaticlink'
9558	;;
9559      *)
9560	case `$CC -V 2>&1 | sed 5q` in
9561	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9562	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9563	  lt_prog_compiler_pic='-KPIC'
9564	  lt_prog_compiler_static='-Bstatic'
9565	  lt_prog_compiler_wl=''
9566	  ;;
9567	*Sun\ F* | *Sun*Fortran*)
9568	  lt_prog_compiler_pic='-KPIC'
9569	  lt_prog_compiler_static='-Bstatic'
9570	  lt_prog_compiler_wl='-Qoption ld '
9571	  ;;
9572	*Sun\ C*)
9573	  # Sun C 5.9
9574	  lt_prog_compiler_pic='-KPIC'
9575	  lt_prog_compiler_static='-Bstatic'
9576	  lt_prog_compiler_wl='-Wl,'
9577	  ;;
9578        *Intel*\ [CF]*Compiler*)
9579	  lt_prog_compiler_wl='-Wl,'
9580	  lt_prog_compiler_pic='-fPIC'
9581	  lt_prog_compiler_static='-static'
9582	  ;;
9583	*Portland\ Group*)
9584	  lt_prog_compiler_wl='-Wl,'
9585	  lt_prog_compiler_pic='-fpic'
9586	  lt_prog_compiler_static='-Bstatic'
9587	  ;;
9588	esac
9589	;;
9590      esac
9591      ;;
9592
9593    newsos6)
9594      lt_prog_compiler_pic='-KPIC'
9595      lt_prog_compiler_static='-Bstatic'
9596      ;;
9597
9598    *nto* | *qnx*)
9599      # QNX uses GNU C++, but need to define -shared option too, otherwise
9600      # it will coredump.
9601      lt_prog_compiler_pic='-fPIC -shared'
9602      ;;
9603
9604    osf3* | osf4* | osf5*)
9605      lt_prog_compiler_wl='-Wl,'
9606      # All OSF/1 code is PIC.
9607      lt_prog_compiler_static='-non_shared'
9608      ;;
9609
9610    rdos*)
9611      lt_prog_compiler_static='-non_shared'
9612      ;;
9613
9614    solaris*)
9615      lt_prog_compiler_pic='-KPIC'
9616      lt_prog_compiler_static='-Bstatic'
9617      case $cc_basename in
9618      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9619	lt_prog_compiler_wl='-Qoption ld ';;
9620      *)
9621	lt_prog_compiler_wl='-Wl,';;
9622      esac
9623      ;;
9624
9625    sunos4*)
9626      lt_prog_compiler_wl='-Qoption ld '
9627      lt_prog_compiler_pic='-PIC'
9628      lt_prog_compiler_static='-Bstatic'
9629      ;;
9630
9631    sysv4 | sysv4.2uw2* | sysv4.3*)
9632      lt_prog_compiler_wl='-Wl,'
9633      lt_prog_compiler_pic='-KPIC'
9634      lt_prog_compiler_static='-Bstatic'
9635      ;;
9636
9637    sysv4*MP*)
9638      if test -d /usr/nec ;then
9639	lt_prog_compiler_pic='-Kconform_pic'
9640	lt_prog_compiler_static='-Bstatic'
9641      fi
9642      ;;
9643
9644    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9645      lt_prog_compiler_wl='-Wl,'
9646      lt_prog_compiler_pic='-KPIC'
9647      lt_prog_compiler_static='-Bstatic'
9648      ;;
9649
9650    unicos*)
9651      lt_prog_compiler_wl='-Wl,'
9652      lt_prog_compiler_can_build_shared=no
9653      ;;
9654
9655    uts4*)
9656      lt_prog_compiler_pic='-pic'
9657      lt_prog_compiler_static='-Bstatic'
9658      ;;
9659
9660    *)
9661      lt_prog_compiler_can_build_shared=no
9662      ;;
9663    esac
9664  fi
9665
9666case $host_os in
9667  # For platforms which do not support PIC, -DPIC is meaningless:
9668  *djgpp*)
9669    lt_prog_compiler_pic=
9670    ;;
9671  *)
9672    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9673    ;;
9674esac
9675
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9677$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9678if ${lt_cv_prog_compiler_pic+:} false; then :
9679  $as_echo_n "(cached) " >&6
9680else
9681  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9684$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9685lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9686
9687#
9688# Check to make sure the PIC flag actually works.
9689#
9690if test -n "$lt_prog_compiler_pic"; then
9691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9692$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9693if ${lt_cv_prog_compiler_pic_works+:} false; then :
9694  $as_echo_n "(cached) " >&6
9695else
9696  lt_cv_prog_compiler_pic_works=no
9697   ac_outfile=conftest.$ac_objext
9698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9700   # Insert the option either (1) after the last *FLAGS variable, or
9701   # (2) before a word containing "conftest.", or (3) at the end.
9702   # Note that $ac_compile itself does not contain backslashes and begins
9703   # with a dollar sign (not a hyphen), so the echo should work correctly.
9704   # The option is referenced via a variable to avoid confusing sed.
9705   lt_compile=`echo "$ac_compile" | $SED \
9706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708   -e 's:$: $lt_compiler_flag:'`
9709   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710   (eval "$lt_compile" 2>conftest.err)
9711   ac_status=$?
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   if (exit $ac_status) && test -s "$ac_outfile"; then
9715     # The compiler can only warn and ignore the option if not recognized
9716     # So say no if there are warnings other than the usual output.
9717     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9718     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9719     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9720       lt_cv_prog_compiler_pic_works=yes
9721     fi
9722   fi
9723   $RM conftest*
9724
9725fi
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9727$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9728
9729if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9730    case $lt_prog_compiler_pic in
9731     "" | " "*) ;;
9732     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9733     esac
9734else
9735    lt_prog_compiler_pic=
9736     lt_prog_compiler_can_build_shared=no
9737fi
9738
9739fi
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751#
9752# Check to make sure the static flag actually works.
9753#
9754wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9756$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9757if ${lt_cv_prog_compiler_static_works+:} false; then :
9758  $as_echo_n "(cached) " >&6
9759else
9760  lt_cv_prog_compiler_static_works=no
9761   save_LDFLAGS="$LDFLAGS"
9762   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9763   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9764   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9765     # The linker can only warn and ignore the option if not recognized
9766     # So say no if there are warnings
9767     if test -s conftest.err; then
9768       # Append any errors to the config.log.
9769       cat conftest.err 1>&5
9770       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9771       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9772       if diff conftest.exp conftest.er2 >/dev/null; then
9773         lt_cv_prog_compiler_static_works=yes
9774       fi
9775     else
9776       lt_cv_prog_compiler_static_works=yes
9777     fi
9778   fi
9779   $RM -r conftest*
9780   LDFLAGS="$save_LDFLAGS"
9781
9782fi
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9784$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9785
9786if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9787    :
9788else
9789    lt_prog_compiler_static=
9790fi
9791
9792
9793
9794
9795
9796
9797
9798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9800if ${lt_cv_prog_compiler_c_o+:} false; then :
9801  $as_echo_n "(cached) " >&6
9802else
9803  lt_cv_prog_compiler_c_o=no
9804   $RM -r conftest 2>/dev/null
9805   mkdir conftest
9806   cd conftest
9807   mkdir out
9808   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9809
9810   lt_compiler_flag="-o out/conftest2.$ac_objext"
9811   # Insert the option either (1) after the last *FLAGS variable, or
9812   # (2) before a word containing "conftest.", or (3) at the end.
9813   # Note that $ac_compile itself does not contain backslashes and begins
9814   # with a dollar sign (not a hyphen), so the echo should work correctly.
9815   lt_compile=`echo "$ac_compile" | $SED \
9816   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9818   -e 's:$: $lt_compiler_flag:'`
9819   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9820   (eval "$lt_compile" 2>out/conftest.err)
9821   ac_status=$?
9822   cat out/conftest.err >&5
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9825   then
9826     # The compiler can only warn and ignore the option if not recognized
9827     # So say no if there are warnings
9828     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9829     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9830     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9831       lt_cv_prog_compiler_c_o=yes
9832     fi
9833   fi
9834   chmod u+w . 2>&5
9835   $RM conftest*
9836   # SGI C++ compiler will create directory out/ii_files/ for
9837   # template instantiation
9838   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9839   $RM out/* && rmdir out
9840   cd ..
9841   $RM -r conftest
9842   $RM conftest*
9843
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9846$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9847
9848
9849
9850
9851
9852
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9854$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9855if ${lt_cv_prog_compiler_c_o+:} false; then :
9856  $as_echo_n "(cached) " >&6
9857else
9858  lt_cv_prog_compiler_c_o=no
9859   $RM -r conftest 2>/dev/null
9860   mkdir conftest
9861   cd conftest
9862   mkdir out
9863   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9864
9865   lt_compiler_flag="-o out/conftest2.$ac_objext"
9866   # Insert the option either (1) after the last *FLAGS variable, or
9867   # (2) before a word containing "conftest.", or (3) at the end.
9868   # Note that $ac_compile itself does not contain backslashes and begins
9869   # with a dollar sign (not a hyphen), so the echo should work correctly.
9870   lt_compile=`echo "$ac_compile" | $SED \
9871   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9872   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9873   -e 's:$: $lt_compiler_flag:'`
9874   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9875   (eval "$lt_compile" 2>out/conftest.err)
9876   ac_status=$?
9877   cat out/conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9880   then
9881     # The compiler can only warn and ignore the option if not recognized
9882     # So say no if there are warnings
9883     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9884     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9885     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9886       lt_cv_prog_compiler_c_o=yes
9887     fi
9888   fi
9889   chmod u+w . 2>&5
9890   $RM conftest*
9891   # SGI C++ compiler will create directory out/ii_files/ for
9892   # template instantiation
9893   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9894   $RM out/* && rmdir out
9895   cd ..
9896   $RM -r conftest
9897   $RM conftest*
9898
9899fi
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9901$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9902
9903
9904
9905
9906hard_links="nottested"
9907if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9908  # do not overwrite the value of need_locks provided by the user
9909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9910$as_echo_n "checking if we can lock with hard links... " >&6; }
9911  hard_links=yes
9912  $RM conftest*
9913  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9914  touch conftest.a
9915  ln conftest.a conftest.b 2>&5 || hard_links=no
9916  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9918$as_echo "$hard_links" >&6; }
9919  if test "$hard_links" = no; then
9920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9921$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9922    need_locks=warn
9923  fi
9924else
9925  need_locks=no
9926fi
9927
9928
9929
9930
9931
9932
9933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9934$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9935
9936  runpath_var=
9937  allow_undefined_flag=
9938  always_export_symbols=no
9939  archive_cmds=
9940  archive_expsym_cmds=
9941  compiler_needs_object=no
9942  enable_shared_with_static_runtimes=no
9943  export_dynamic_flag_spec=
9944  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9945  hardcode_automatic=no
9946  hardcode_direct=no
9947  hardcode_direct_absolute=no
9948  hardcode_libdir_flag_spec=
9949  hardcode_libdir_separator=
9950  hardcode_minus_L=no
9951  hardcode_shlibpath_var=unsupported
9952  inherit_rpath=no
9953  link_all_deplibs=unknown
9954  module_cmds=
9955  module_expsym_cmds=
9956  old_archive_from_new_cmds=
9957  old_archive_from_expsyms_cmds=
9958  thread_safe_flag_spec=
9959  whole_archive_flag_spec=
9960  # include_expsyms should be a list of space-separated symbols to be *always*
9961  # included in the symbol list
9962  include_expsyms=
9963  # exclude_expsyms can be an extended regexp of symbols to exclude
9964  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9965  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9966  # as well as any symbol that contains `d'.
9967  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9968  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9969  # platforms (ab)use it in PIC code, but their linkers get confused if
9970  # the symbol is explicitly referenced.  Since portable code cannot
9971  # rely on this symbol name, it's probably fine to never include it in
9972  # preloaded symbol tables.
9973  # Exclude shared library initialization/finalization symbols.
9974  extract_expsyms_cmds=
9975
9976  case $host_os in
9977  cygwin* | mingw* | pw32* | cegcc*)
9978    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9979    # When not using gcc, we currently assume that we are using
9980    # Microsoft Visual C++.
9981    if test "$GCC" != yes; then
9982      with_gnu_ld=no
9983    fi
9984    ;;
9985  interix*)
9986    # we just hope/assume this is gcc and not c89 (= MSVC++)
9987    with_gnu_ld=yes
9988    ;;
9989  openbsd*)
9990    with_gnu_ld=no
9991    ;;
9992  esac
9993
9994  ld_shlibs=yes
9995
9996  # On some targets, GNU ld is compatible enough with the native linker
9997  # that we're better off using the native interface for both.
9998  lt_use_gnu_ld_interface=no
9999  if test "$with_gnu_ld" = yes; then
10000    case $host_os in
10001      aix*)
10002	# The AIX port of GNU ld has always aspired to compatibility
10003	# with the native linker.  However, as the warning in the GNU ld
10004	# block says, versions before 2.19.5* couldn't really create working
10005	# shared libraries, regardless of the interface used.
10006	case `$LD -v 2>&1` in
10007	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10008	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10009	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10010	  *)
10011	    lt_use_gnu_ld_interface=yes
10012	    ;;
10013	esac
10014	;;
10015      *)
10016	lt_use_gnu_ld_interface=yes
10017	;;
10018    esac
10019  fi
10020
10021  if test "$lt_use_gnu_ld_interface" = yes; then
10022    # If archive_cmds runs LD, not CC, wlarc should be empty
10023    wlarc='${wl}'
10024
10025    # Set some defaults for GNU ld with shared library support. These
10026    # are reset later if shared libraries are not supported. Putting them
10027    # here allows them to be overridden if necessary.
10028    runpath_var=LD_RUN_PATH
10029    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030    export_dynamic_flag_spec='${wl}--export-dynamic'
10031    # ancient GNU ld didn't support --whole-archive et. al.
10032    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10033      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10034    else
10035      whole_archive_flag_spec=
10036    fi
10037    supports_anon_versioning=no
10038    case `$LD -v 2>&1` in
10039      *GNU\ gold*) supports_anon_versioning=yes ;;
10040      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10041      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10042      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10043      *\ 2.11.*) ;; # other 2.11 versions
10044      *) supports_anon_versioning=yes ;;
10045    esac
10046
10047    # See if GNU ld supports shared libraries.
10048    case $host_os in
10049    aix[3-9]*)
10050      # On AIX/PPC, the GNU linker is very broken
10051      if test "$host_cpu" != ia64; then
10052	ld_shlibs=no
10053	cat <<_LT_EOF 1>&2
10054
10055*** Warning: the GNU linker, at least up to release 2.19, is reported
10056*** to be unable to reliably create shared libraries on AIX.
10057*** Therefore, libtool is disabling shared libraries support.  If you
10058*** really care for shared libraries, you may want to install binutils
10059*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10060*** You will then need to restart the configuration process.
10061
10062_LT_EOF
10063      fi
10064      ;;
10065
10066    amigaos*)
10067      case $host_cpu in
10068      powerpc)
10069            # see comment about AmigaOS4 .so support
10070            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071            archive_expsym_cmds=''
10072        ;;
10073      m68k)
10074            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)'
10075            hardcode_libdir_flag_spec='-L$libdir'
10076            hardcode_minus_L=yes
10077        ;;
10078      esac
10079      ;;
10080
10081    beos*)
10082      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10083	allow_undefined_flag=unsupported
10084	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10085	# support --undefined.  This deserves some investigation.  FIXME
10086	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087      else
10088	ld_shlibs=no
10089      fi
10090      ;;
10091
10092    cygwin* | mingw* | pw32* | cegcc*)
10093      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10094      # as there is no search path for DLLs.
10095      hardcode_libdir_flag_spec='-L$libdir'
10096      export_dynamic_flag_spec='${wl}--export-all-symbols'
10097      allow_undefined_flag=unsupported
10098      always_export_symbols=no
10099      enable_shared_with_static_runtimes=yes
10100      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'
10101      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10102
10103      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10104        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10105	# If the export-symbols file already is a .def file (1st line
10106	# is EXPORTS), use it as is; otherwise, prepend...
10107	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10108	  cp $export_symbols $output_objdir/$soname.def;
10109	else
10110	  echo EXPORTS > $output_objdir/$soname.def;
10111	  cat $export_symbols >> $output_objdir/$soname.def;
10112	fi~
10113	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10114      else
10115	ld_shlibs=no
10116      fi
10117      ;;
10118
10119    haiku*)
10120      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121      link_all_deplibs=yes
10122      ;;
10123
10124    interix[3-9]*)
10125      hardcode_direct=no
10126      hardcode_shlibpath_var=no
10127      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10128      export_dynamic_flag_spec='${wl}-E'
10129      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10130      # Instead, shared libraries are loaded at an image base (0x10000000 by
10131      # default) and relocated if they conflict, which is a slow very memory
10132      # consuming and fragmenting process.  To avoid this, we pick a random,
10133      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10134      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10135      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10136      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'
10137      ;;
10138
10139    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10140      tmp_diet=no
10141      if test "$host_os" = linux-dietlibc; then
10142	case $cc_basename in
10143	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10144	esac
10145      fi
10146      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10147	 && test "$tmp_diet" = no
10148      then
10149	tmp_addflag=' $pic_flag'
10150	tmp_sharedflag='-shared'
10151	case $cc_basename,$host_cpu in
10152        pgcc*)				# Portland Group C compiler
10153	  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'
10154	  tmp_addflag=' $pic_flag'
10155	  ;;
10156	pgf77* | pgf90* | pgf95* | pgfortran*)
10157					# Portland Group f77 and f90 compilers
10158	  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'
10159	  tmp_addflag=' $pic_flag -Mnomain' ;;
10160	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10161	  tmp_addflag=' -i_dynamic' ;;
10162	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10163	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10164	ifc* | ifort*)			# Intel Fortran compiler
10165	  tmp_addflag=' -nofor_main' ;;
10166	lf95*)				# Lahey Fortran 8.1
10167	  whole_archive_flag_spec=
10168	  tmp_sharedflag='--shared' ;;
10169	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10170	  tmp_sharedflag='-qmkshrobj'
10171	  tmp_addflag= ;;
10172	nvcc*)	# Cuda Compiler Driver 2.2
10173	  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'
10174	  compiler_needs_object=yes
10175	  ;;
10176	esac
10177	case `$CC -V 2>&1 | sed 5q` in
10178	*Sun\ C*)			# Sun C 5.9
10179	  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'
10180	  compiler_needs_object=yes
10181	  tmp_sharedflag='-G' ;;
10182	*Sun\ F*)			# Sun Fortran 8.3
10183	  tmp_sharedflag='-G' ;;
10184	esac
10185	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186
10187        if test "x$supports_anon_versioning" = xyes; then
10188          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10189	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10190	    echo "local: *; };" >> $output_objdir/$libname.ver~
10191	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10192        fi
10193
10194	case $cc_basename in
10195	xlf* | bgf* | bgxlf* | mpixlf*)
10196	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10197	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10198	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10200	  if test "x$supports_anon_versioning" = xyes; then
10201	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10202	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10203	      echo "local: *; };" >> $output_objdir/$libname.ver~
10204	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10205	  fi
10206	  ;;
10207	esac
10208      else
10209        ld_shlibs=no
10210      fi
10211      ;;
10212
10213    netbsd*)
10214      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10215	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10216	wlarc=
10217      else
10218	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10220      fi
10221      ;;
10222
10223    solaris*)
10224      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10225	ld_shlibs=no
10226	cat <<_LT_EOF 1>&2
10227
10228*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10229*** create shared libraries on Solaris systems.  Therefore, libtool
10230*** is disabling shared libraries support.  We urge you to upgrade GNU
10231*** binutils to release 2.9.1 or newer.  Another option is to modify
10232*** your PATH or compiler configuration so that the native linker is
10233*** used, and then restart.
10234
10235_LT_EOF
10236      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10237	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239      else
10240	ld_shlibs=no
10241      fi
10242      ;;
10243
10244    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10245      case `$LD -v 2>&1` in
10246        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10247	ld_shlibs=no
10248	cat <<_LT_EOF 1>&2
10249
10250*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10251*** reliably create shared libraries on SCO systems.  Therefore, libtool
10252*** is disabling shared libraries support.  We urge you to upgrade GNU
10253*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10254*** your PATH or compiler configuration so that the native linker is
10255*** used, and then restart.
10256
10257_LT_EOF
10258	;;
10259	*)
10260	  # For security reasons, it is highly recommended that you always
10261	  # use absolute paths for naming shared libraries, and exclude the
10262	  # DT_RUNPATH tag from executables and libraries.  But doing so
10263	  # requires that you compile everything twice, which is a pain.
10264	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10265	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10266	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268	  else
10269	    ld_shlibs=no
10270	  fi
10271	;;
10272      esac
10273      ;;
10274
10275    sunos4*)
10276      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10277      wlarc=
10278      hardcode_direct=yes
10279      hardcode_shlibpath_var=no
10280      ;;
10281
10282    *)
10283      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10284	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10286      else
10287	ld_shlibs=no
10288      fi
10289      ;;
10290    esac
10291
10292    if test "$ld_shlibs" = no; then
10293      runpath_var=
10294      hardcode_libdir_flag_spec=
10295      export_dynamic_flag_spec=
10296      whole_archive_flag_spec=
10297    fi
10298  else
10299    # PORTME fill in a description of your system's linker (not GNU ld)
10300    case $host_os in
10301    aix3*)
10302      allow_undefined_flag=unsupported
10303      always_export_symbols=yes
10304      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'
10305      # Note: this linker hardcodes the directories in LIBPATH if there
10306      # are no directories specified by -L.
10307      hardcode_minus_L=yes
10308      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10309	# Neither direct hardcoding nor static linking is supported with a
10310	# broken collect2.
10311	hardcode_direct=unsupported
10312      fi
10313      ;;
10314
10315    aix[4-9]*)
10316      if test "$host_cpu" = ia64; then
10317	# On IA64, the linker does run time linking by default, so we don't
10318	# have to do anything special.
10319	aix_use_runtimelinking=no
10320	exp_sym_flag='-Bexport'
10321	no_entry_flag=""
10322      else
10323	# If we're using GNU nm, then we don't want the "-C" option.
10324	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10325	# Also, AIX nm treats weak defined symbols like other global
10326	# defined symbols, whereas GNU nm marks them as "W".
10327	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10328	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10329	else
10330	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10331	fi
10332	aix_use_runtimelinking=no
10333
10334	# Test if we are trying to use run time linking or normal
10335	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10336	# need to do runtime linking.
10337	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10338	  for ld_flag in $LDFLAGS; do
10339	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10340	    aix_use_runtimelinking=yes
10341	    break
10342	  fi
10343	  done
10344	  ;;
10345	esac
10346
10347	exp_sym_flag='-bexport'
10348	no_entry_flag='-bnoentry'
10349      fi
10350
10351      # When large executables or shared objects are built, AIX ld can
10352      # have problems creating the table of contents.  If linking a library
10353      # or program results in "error TOC overflow" add -mminimal-toc to
10354      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10355      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10356
10357      archive_cmds=''
10358      hardcode_direct=yes
10359      hardcode_direct_absolute=yes
10360      hardcode_libdir_separator=':'
10361      link_all_deplibs=yes
10362      file_list_spec='${wl}-f,'
10363
10364      if test "$GCC" = yes; then
10365	case $host_os in aix4.[012]|aix4.[012].*)
10366	# We only want to do this on AIX 4.2 and lower, the check
10367	# below for broken collect2 doesn't work under 4.3+
10368	  collect2name=`${CC} -print-prog-name=collect2`
10369	  if test -f "$collect2name" &&
10370	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10371	  then
10372	  # We have reworked collect2
10373	  :
10374	  else
10375	  # We have old collect2
10376	  hardcode_direct=unsupported
10377	  # It fails to find uninstalled libraries when the uninstalled
10378	  # path is not listed in the libpath.  Setting hardcode_minus_L
10379	  # to unsupported forces relinking
10380	  hardcode_minus_L=yes
10381	  hardcode_libdir_flag_spec='-L$libdir'
10382	  hardcode_libdir_separator=
10383	  fi
10384	  ;;
10385	esac
10386	shared_flag='-shared'
10387	if test "$aix_use_runtimelinking" = yes; then
10388	  shared_flag="$shared_flag "'${wl}-G'
10389	fi
10390      else
10391	# not using gcc
10392	if test "$host_cpu" = ia64; then
10393	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10394	# chokes on -Wl,-G. The following line is correct:
10395	  shared_flag='-G'
10396	else
10397	  if test "$aix_use_runtimelinking" = yes; then
10398	    shared_flag='${wl}-G'
10399	  else
10400	    shared_flag='${wl}-bM:SRE'
10401	  fi
10402	fi
10403      fi
10404
10405      export_dynamic_flag_spec='${wl}-bexpall'
10406      # It seems that -bexpall does not export symbols beginning with
10407      # underscore (_), so it is better to generate a list of symbols to export.
10408      always_export_symbols=yes
10409      if test "$aix_use_runtimelinking" = yes; then
10410	# Warning - without using the other runtime loading flags (-brtl),
10411	# -berok will link without error, but may produce a broken library.
10412	allow_undefined_flag='-berok'
10413        # Determine the default libpath from the value encoded in an
10414        # empty executable.
10415        if test "${lt_cv_aix_libpath+set}" = set; then
10416  aix_libpath=$lt_cv_aix_libpath
10417else
10418  if ${lt_cv_aix_libpath_+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423
10424int
10425main ()
10426{
10427
10428  ;
10429  return 0;
10430}
10431_ACEOF
10432if ac_fn_c_try_link "$LINENO"; then :
10433
10434  lt_aix_libpath_sed='
10435      /Import File Strings/,/^$/ {
10436	  /^0/ {
10437	      s/^0  *\([^ ]*\) *$/\1/
10438	      p
10439	  }
10440      }'
10441  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10442  # Check for a 64-bit object if we didn't find anything.
10443  if test -z "$lt_cv_aix_libpath_"; then
10444    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10445  fi
10446fi
10447rm -f core conftest.err conftest.$ac_objext \
10448    conftest$ac_exeext conftest.$ac_ext
10449  if test -z "$lt_cv_aix_libpath_"; then
10450    lt_cv_aix_libpath_="/usr/lib:/lib"
10451  fi
10452
10453fi
10454
10455  aix_libpath=$lt_cv_aix_libpath_
10456fi
10457
10458        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10459        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10460      else
10461	if test "$host_cpu" = ia64; then
10462	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10463	  allow_undefined_flag="-z nodefs"
10464	  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"
10465	else
10466	 # Determine the default libpath from the value encoded in an
10467	 # empty executable.
10468	 if test "${lt_cv_aix_libpath+set}" = set; then
10469  aix_libpath=$lt_cv_aix_libpath
10470else
10471  if ${lt_cv_aix_libpath_+:} false; then :
10472  $as_echo_n "(cached) " >&6
10473else
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476
10477int
10478main ()
10479{
10480
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485if ac_fn_c_try_link "$LINENO"; then :
10486
10487  lt_aix_libpath_sed='
10488      /Import File Strings/,/^$/ {
10489	  /^0/ {
10490	      s/^0  *\([^ ]*\) *$/\1/
10491	      p
10492	  }
10493      }'
10494  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495  # Check for a 64-bit object if we didn't find anything.
10496  if test -z "$lt_cv_aix_libpath_"; then
10497    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10498  fi
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501    conftest$ac_exeext conftest.$ac_ext
10502  if test -z "$lt_cv_aix_libpath_"; then
10503    lt_cv_aix_libpath_="/usr/lib:/lib"
10504  fi
10505
10506fi
10507
10508  aix_libpath=$lt_cv_aix_libpath_
10509fi
10510
10511	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10512	  # Warning - without using the other run time loading flags,
10513	  # -berok will link without error, but may produce a broken library.
10514	  no_undefined_flag=' ${wl}-bernotok'
10515	  allow_undefined_flag=' ${wl}-berok'
10516	  if test "$with_gnu_ld" = yes; then
10517	    # We only use this code for GNU lds that support --whole-archive.
10518	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10519	  else
10520	    # Exported symbols can be pulled into shared objects from archives
10521	    whole_archive_flag_spec='$convenience'
10522	  fi
10523	  archive_cmds_need_lc=yes
10524	  # This is similar to how AIX traditionally builds its shared libraries.
10525	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10526	fi
10527      fi
10528      ;;
10529
10530    amigaos*)
10531      case $host_cpu in
10532      powerpc)
10533            # see comment about AmigaOS4 .so support
10534            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535            archive_expsym_cmds=''
10536        ;;
10537      m68k)
10538            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)'
10539            hardcode_libdir_flag_spec='-L$libdir'
10540            hardcode_minus_L=yes
10541        ;;
10542      esac
10543      ;;
10544
10545    bsdi[45]*)
10546      export_dynamic_flag_spec=-rdynamic
10547      ;;
10548
10549    cygwin* | mingw* | pw32* | cegcc*)
10550      # When not using gcc, we currently assume that we are using
10551      # Microsoft Visual C++.
10552      # hardcode_libdir_flag_spec is actually meaningless, as there is
10553      # no search path for DLLs.
10554      case $cc_basename in
10555      cl*)
10556	# Native MSVC
10557	hardcode_libdir_flag_spec=' '
10558	allow_undefined_flag=unsupported
10559	always_export_symbols=yes
10560	file_list_spec='@'
10561	# Tell ltmain to make .lib files, not .a files.
10562	libext=lib
10563	# Tell ltmain to make .dll files, not .so files.
10564	shrext_cmds=".dll"
10565	# FIXME: Setting linknames here is a bad hack.
10566	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10567	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10568	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10569	  else
10570	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10571	  fi~
10572	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10573	  linknames='
10574	# The linker will not automatically build a static lib if we build a DLL.
10575	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10576	enable_shared_with_static_runtimes=yes
10577	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10578	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10579	# Don't use ranlib
10580	old_postinstall_cmds='chmod 644 $oldlib'
10581	postlink_cmds='lt_outputfile="@OUTPUT@"~
10582	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10583	  case $lt_outputfile in
10584	    *.exe|*.EXE) ;;
10585	    *)
10586	      lt_outputfile="$lt_outputfile.exe"
10587	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10588	      ;;
10589	  esac~
10590	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10591	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10592	    $RM "$lt_outputfile.manifest";
10593	  fi'
10594	;;
10595      *)
10596	# Assume MSVC wrapper
10597	hardcode_libdir_flag_spec=' '
10598	allow_undefined_flag=unsupported
10599	# Tell ltmain to make .lib files, not .a files.
10600	libext=lib
10601	# Tell ltmain to make .dll files, not .so files.
10602	shrext_cmds=".dll"
10603	# FIXME: Setting linknames here is a bad hack.
10604	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10605	# The linker will automatically build a .lib file if we build a DLL.
10606	old_archive_from_new_cmds='true'
10607	# FIXME: Should let the user specify the lib program.
10608	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10609	enable_shared_with_static_runtimes=yes
10610	;;
10611      esac
10612      ;;
10613
10614    darwin* | rhapsody*)
10615
10616
10617  archive_cmds_need_lc=no
10618  hardcode_direct=no
10619  hardcode_automatic=yes
10620  hardcode_shlibpath_var=unsupported
10621  if test "$lt_cv_ld_force_load" = "yes"; then
10622    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\"`'
10623
10624  else
10625    whole_archive_flag_spec=''
10626  fi
10627  link_all_deplibs=yes
10628  allow_undefined_flag="$_lt_dar_allow_undefined"
10629  case $cc_basename in
10630     ifort*) _lt_dar_can_shared=yes ;;
10631     *) _lt_dar_can_shared=$GCC ;;
10632  esac
10633  if test "$_lt_dar_can_shared" = "yes"; then
10634    output_verbose_link_cmd=func_echo_all
10635    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10636    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10637    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}"
10638    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}"
10639
10640  else
10641  ld_shlibs=no
10642  fi
10643
10644      ;;
10645
10646    dgux*)
10647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648      hardcode_libdir_flag_spec='-L$libdir'
10649      hardcode_shlibpath_var=no
10650      ;;
10651
10652    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653    # support.  Future versions do this automatically, but an explicit c++rt0.o
10654    # does not break anything, and helps significantly (at the cost of a little
10655    # extra space).
10656    freebsd2.2*)
10657      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658      hardcode_libdir_flag_spec='-R$libdir'
10659      hardcode_direct=yes
10660      hardcode_shlibpath_var=no
10661      ;;
10662
10663    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664    freebsd2.*)
10665      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666      hardcode_direct=yes
10667      hardcode_minus_L=yes
10668      hardcode_shlibpath_var=no
10669      ;;
10670
10671    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672    freebsd* | dragonfly*)
10673      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10674      hardcode_libdir_flag_spec='-R$libdir'
10675      hardcode_direct=yes
10676      hardcode_shlibpath_var=no
10677      ;;
10678
10679    hpux9*)
10680      if test "$GCC" = yes; then
10681	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10682      else
10683	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10684      fi
10685      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686      hardcode_libdir_separator=:
10687      hardcode_direct=yes
10688
10689      # hardcode_minus_L: Not really in the search PATH,
10690      # but as the default location of the library.
10691      hardcode_minus_L=yes
10692      export_dynamic_flag_spec='${wl}-E'
10693      ;;
10694
10695    hpux10*)
10696      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10697	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698      else
10699	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700      fi
10701      if test "$with_gnu_ld" = no; then
10702	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703	hardcode_libdir_separator=:
10704	hardcode_direct=yes
10705	hardcode_direct_absolute=yes
10706	export_dynamic_flag_spec='${wl}-E'
10707	# hardcode_minus_L: Not really in the search PATH,
10708	# but as the default location of the library.
10709	hardcode_minus_L=yes
10710      fi
10711      ;;
10712
10713    hpux11*)
10714      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10715	case $host_cpu in
10716	hppa*64*)
10717	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10718	  ;;
10719	ia64*)
10720	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10721	  ;;
10722	*)
10723	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10724	  ;;
10725	esac
10726      else
10727	case $host_cpu in
10728	hppa*64*)
10729	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730	  ;;
10731	ia64*)
10732	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733	  ;;
10734	*)
10735
10736	  # Older versions of the 11.00 compiler do not understand -b yet
10737	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10738	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10739$as_echo_n "checking if $CC understands -b... " >&6; }
10740if ${lt_cv_prog_compiler__b+:} false; then :
10741  $as_echo_n "(cached) " >&6
10742else
10743  lt_cv_prog_compiler__b=no
10744   save_LDFLAGS="$LDFLAGS"
10745   LDFLAGS="$LDFLAGS -b"
10746   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10747   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10748     # The linker can only warn and ignore the option if not recognized
10749     # So say no if there are warnings
10750     if test -s conftest.err; then
10751       # Append any errors to the config.log.
10752       cat conftest.err 1>&5
10753       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10754       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10755       if diff conftest.exp conftest.er2 >/dev/null; then
10756         lt_cv_prog_compiler__b=yes
10757       fi
10758     else
10759       lt_cv_prog_compiler__b=yes
10760     fi
10761   fi
10762   $RM -r conftest*
10763   LDFLAGS="$save_LDFLAGS"
10764
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10767$as_echo "$lt_cv_prog_compiler__b" >&6; }
10768
10769if test x"$lt_cv_prog_compiler__b" = xyes; then
10770    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10771else
10772    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10773fi
10774
10775	  ;;
10776	esac
10777      fi
10778      if test "$with_gnu_ld" = no; then
10779	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10780	hardcode_libdir_separator=:
10781
10782	case $host_cpu in
10783	hppa*64*|ia64*)
10784	  hardcode_direct=no
10785	  hardcode_shlibpath_var=no
10786	  ;;
10787	*)
10788	  hardcode_direct=yes
10789	  hardcode_direct_absolute=yes
10790	  export_dynamic_flag_spec='${wl}-E'
10791
10792	  # hardcode_minus_L: Not really in the search PATH,
10793	  # but as the default location of the library.
10794	  hardcode_minus_L=yes
10795	  ;;
10796	esac
10797      fi
10798      ;;
10799
10800    irix5* | irix6* | nonstopux*)
10801      if test "$GCC" = yes; then
10802	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'
10803	# Try to use the -exported_symbol ld option, if it does not
10804	# work, assume that -exports_file does not work either and
10805	# implicitly export all symbols.
10806	# This should be the same for all languages, so no per-tag cache variable.
10807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10808$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10809if ${lt_cv_irix_exported_symbol+:} false; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  save_LDFLAGS="$LDFLAGS"
10813	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10814	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h.  */
10816int foo (void) { return 0; }
10817_ACEOF
10818if ac_fn_c_try_link "$LINENO"; then :
10819  lt_cv_irix_exported_symbol=yes
10820else
10821  lt_cv_irix_exported_symbol=no
10822fi
10823rm -f core conftest.err conftest.$ac_objext \
10824    conftest$ac_exeext conftest.$ac_ext
10825           LDFLAGS="$save_LDFLAGS"
10826fi
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10828$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10829	if test "$lt_cv_irix_exported_symbol" = yes; then
10830          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'
10831	fi
10832      else
10833	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'
10834	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'
10835      fi
10836      archive_cmds_need_lc='no'
10837      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10838      hardcode_libdir_separator=:
10839      inherit_rpath=yes
10840      link_all_deplibs=yes
10841      ;;
10842
10843    netbsd*)
10844      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10845	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10846      else
10847	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10848      fi
10849      hardcode_libdir_flag_spec='-R$libdir'
10850      hardcode_direct=yes
10851      hardcode_shlibpath_var=no
10852      ;;
10853
10854    newsos6)
10855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856      hardcode_direct=yes
10857      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10858      hardcode_libdir_separator=:
10859      hardcode_shlibpath_var=no
10860      ;;
10861
10862    *nto* | *qnx*)
10863      ;;
10864
10865    openbsd*)
10866      if test -f /usr/libexec/ld.so; then
10867	hardcode_direct=yes
10868	hardcode_shlibpath_var=no
10869	hardcode_direct_absolute=yes
10870	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10871	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10872	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10873	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10874	  export_dynamic_flag_spec='${wl}-E'
10875	else
10876	  case $host_os in
10877	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10878	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10879	     hardcode_libdir_flag_spec='-R$libdir'
10880	     ;;
10881	   *)
10882	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10883	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10884	     ;;
10885	  esac
10886	fi
10887      else
10888	ld_shlibs=no
10889      fi
10890      ;;
10891
10892    os2*)
10893      hardcode_libdir_flag_spec='-L$libdir'
10894      hardcode_minus_L=yes
10895      allow_undefined_flag=unsupported
10896      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10897      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10898      ;;
10899
10900    osf3*)
10901      if test "$GCC" = yes; then
10902	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10903	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'
10904      else
10905	allow_undefined_flag=' -expect_unresolved \*'
10906	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'
10907      fi
10908      archive_cmds_need_lc='no'
10909      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10910      hardcode_libdir_separator=:
10911      ;;
10912
10913    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10914      if test "$GCC" = yes; then
10915	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10916	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'
10917	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10918      else
10919	allow_undefined_flag=' -expect_unresolved \*'
10920	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'
10921	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~
10922	$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'
10923
10924	# Both c and cxx compiler support -rpath directly
10925	hardcode_libdir_flag_spec='-rpath $libdir'
10926      fi
10927      archive_cmds_need_lc='no'
10928      hardcode_libdir_separator=:
10929      ;;
10930
10931    solaris*)
10932      no_undefined_flag=' -z defs'
10933      if test "$GCC" = yes; then
10934	wlarc='${wl}'
10935	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10936	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10937	  $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'
10938      else
10939	case `$CC -V 2>&1` in
10940	*"Compilers 5.0"*)
10941	  wlarc=''
10942	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10944	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10945	  ;;
10946	*)
10947	  wlarc='${wl}'
10948	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10950	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10951	  ;;
10952	esac
10953      fi
10954      hardcode_libdir_flag_spec='-R$libdir'
10955      hardcode_shlibpath_var=no
10956      case $host_os in
10957      solaris2.[0-5] | solaris2.[0-5].*) ;;
10958      *)
10959	# The compiler driver will combine and reorder linker options,
10960	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10961	# but is careful enough not to reorder.
10962	# Supported since Solaris 2.6 (maybe 2.5.1?)
10963	if test "$GCC" = yes; then
10964	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10965	else
10966	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10967	fi
10968	;;
10969      esac
10970      link_all_deplibs=yes
10971      ;;
10972
10973    sunos4*)
10974      if test "x$host_vendor" = xsequent; then
10975	# Use $CC to link under sequent, because it throws in some extra .o
10976	# files that make .init and .fini sections work.
10977	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10978      else
10979	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10980      fi
10981      hardcode_libdir_flag_spec='-L$libdir'
10982      hardcode_direct=yes
10983      hardcode_minus_L=yes
10984      hardcode_shlibpath_var=no
10985      ;;
10986
10987    sysv4)
10988      case $host_vendor in
10989	sni)
10990	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991	  hardcode_direct=yes # is this really true???
10992	;;
10993	siemens)
10994	  ## LD is ld it makes a PLAMLIB
10995	  ## CC just makes a GrossModule.
10996	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10997	  reload_cmds='$CC -r -o $output$reload_objs'
10998	  hardcode_direct=no
10999        ;;
11000	motorola)
11001	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11003	;;
11004      esac
11005      runpath_var='LD_RUN_PATH'
11006      hardcode_shlibpath_var=no
11007      ;;
11008
11009    sysv4.3*)
11010      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011      hardcode_shlibpath_var=no
11012      export_dynamic_flag_spec='-Bexport'
11013      ;;
11014
11015    sysv4*MP*)
11016      if test -d /usr/nec; then
11017	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018	hardcode_shlibpath_var=no
11019	runpath_var=LD_RUN_PATH
11020	hardcode_runpath_var=yes
11021	ld_shlibs=yes
11022      fi
11023      ;;
11024
11025    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11026      no_undefined_flag='${wl}-z,text'
11027      archive_cmds_need_lc=no
11028      hardcode_shlibpath_var=no
11029      runpath_var='LD_RUN_PATH'
11030
11031      if test "$GCC" = yes; then
11032	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034      else
11035	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037      fi
11038      ;;
11039
11040    sysv5* | sco3.2v5* | sco5v6*)
11041      # Note: We can NOT use -z defs as we might desire, because we do not
11042      # link with -lc, and that would cause any symbols used from libc to
11043      # always be unresolved, which means just about no library would
11044      # ever link correctly.  If we're not using GNU ld we use -z text
11045      # though, which does catch some bad symbols but isn't as heavy-handed
11046      # as -z defs.
11047      no_undefined_flag='${wl}-z,text'
11048      allow_undefined_flag='${wl}-z,nodefs'
11049      archive_cmds_need_lc=no
11050      hardcode_shlibpath_var=no
11051      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11052      hardcode_libdir_separator=':'
11053      link_all_deplibs=yes
11054      export_dynamic_flag_spec='${wl}-Bexport'
11055      runpath_var='LD_RUN_PATH'
11056
11057      if test "$GCC" = yes; then
11058	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060      else
11061	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063      fi
11064      ;;
11065
11066    uts4*)
11067      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068      hardcode_libdir_flag_spec='-L$libdir'
11069      hardcode_shlibpath_var=no
11070      ;;
11071
11072    *)
11073      ld_shlibs=no
11074      ;;
11075    esac
11076
11077    if test x$host_vendor = xsni; then
11078      case $host in
11079      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11080	export_dynamic_flag_spec='${wl}-Blargedynsym'
11081	;;
11082      esac
11083    fi
11084  fi
11085
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11087$as_echo "$ld_shlibs" >&6; }
11088test "$ld_shlibs" = no && can_build_shared=no
11089
11090with_gnu_ld=$with_gnu_ld
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106#
11107# Do we need to explicitly link libc?
11108#
11109case "x$archive_cmds_need_lc" in
11110x|xyes)
11111  # Assume -lc should be added
11112  archive_cmds_need_lc=yes
11113
11114  if test "$enable_shared" = yes && test "$GCC" = yes; then
11115    case $archive_cmds in
11116    *'~'*)
11117      # FIXME: we may have to deal with multi-command sequences.
11118      ;;
11119    '$CC '*)
11120      # Test whether the compiler implicitly links with -lc since on some
11121      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11122      # to ld, don't add -lc before -lgcc.
11123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11124$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11125if ${lt_cv_archive_cmds_need_lc+:} false; then :
11126  $as_echo_n "(cached) " >&6
11127else
11128  $RM conftest*
11129	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11130
11131	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11132  (eval $ac_compile) 2>&5
11133  ac_status=$?
11134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135  test $ac_status = 0; } 2>conftest.err; then
11136	  soname=conftest
11137	  lib=conftest
11138	  libobjs=conftest.$ac_objext
11139	  deplibs=
11140	  wl=$lt_prog_compiler_wl
11141	  pic_flag=$lt_prog_compiler_pic
11142	  compiler_flags=-v
11143	  linker_flags=-v
11144	  verstring=
11145	  output_objdir=.
11146	  libname=conftest
11147	  lt_save_allow_undefined_flag=$allow_undefined_flag
11148	  allow_undefined_flag=
11149	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11150  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11151  ac_status=$?
11152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153  test $ac_status = 0; }
11154	  then
11155	    lt_cv_archive_cmds_need_lc=no
11156	  else
11157	    lt_cv_archive_cmds_need_lc=yes
11158	  fi
11159	  allow_undefined_flag=$lt_save_allow_undefined_flag
11160	else
11161	  cat conftest.err 1>&5
11162	fi
11163	$RM conftest*
11164
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11167$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11168      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11169      ;;
11170    esac
11171  fi
11172  ;;
11173esac
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
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327$as_echo_n "checking dynamic linker characteristics... " >&6; }
11328
11329if test "$GCC" = yes; then
11330  case $host_os in
11331    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11332    *) lt_awk_arg="/^libraries:/" ;;
11333  esac
11334  case $host_os in
11335    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11336    *) lt_sed_strip_eq="s,=/,/,g" ;;
11337  esac
11338  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11339  case $lt_search_path_spec in
11340  *\;*)
11341    # if the path contains ";" then we assume it to be the separator
11342    # otherwise default to the standard path separator (i.e. ":") - it is
11343    # assumed that no part of a normal pathname contains ";" but that should
11344    # okay in the real world where ";" in dirpaths is itself problematic.
11345    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11346    ;;
11347  *)
11348    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11349    ;;
11350  esac
11351  # Ok, now we have the path, separated by spaces, we can step through it
11352  # and add multilib dir if necessary.
11353  lt_tmp_lt_search_path_spec=
11354  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11355  for lt_sys_path in $lt_search_path_spec; do
11356    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11357      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11358    else
11359      test -d "$lt_sys_path" && \
11360	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11361    fi
11362  done
11363  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11364BEGIN {RS=" "; FS="/|\n";} {
11365  lt_foo="";
11366  lt_count=0;
11367  for (lt_i = NF; lt_i > 0; lt_i--) {
11368    if ($lt_i != "" && $lt_i != ".") {
11369      if ($lt_i == "..") {
11370        lt_count++;
11371      } else {
11372        if (lt_count == 0) {
11373          lt_foo="/" $lt_i lt_foo;
11374        } else {
11375          lt_count--;
11376        }
11377      }
11378    }
11379  }
11380  if (lt_foo != "") { lt_freq[lt_foo]++; }
11381  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11382}'`
11383  # AWK program above erroneously prepends '/' to C:/dos/paths
11384  # for these hosts.
11385  case $host_os in
11386    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11387      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11388  esac
11389  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11390else
11391  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11392fi
11393library_names_spec=
11394libname_spec='lib$name'
11395soname_spec=
11396shrext_cmds=".so"
11397postinstall_cmds=
11398postuninstall_cmds=
11399finish_cmds=
11400finish_eval=
11401shlibpath_var=
11402shlibpath_overrides_runpath=unknown
11403version_type=none
11404dynamic_linker="$host_os ld.so"
11405sys_lib_dlsearch_path_spec="/lib /usr/lib"
11406need_lib_prefix=unknown
11407hardcode_into_libs=no
11408
11409# when you set need_version to no, make sure it does not cause -set_version
11410# flags to be left without arguments
11411need_version=unknown
11412
11413case $host_os in
11414aix3*)
11415  version_type=linux # correct to gnu/linux during the next big refactor
11416  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11417  shlibpath_var=LIBPATH
11418
11419  # AIX 3 has no versioning support, so we append a major version to the name.
11420  soname_spec='${libname}${release}${shared_ext}$major'
11421  ;;
11422
11423aix[4-9]*)
11424  version_type=linux # correct to gnu/linux during the next big refactor
11425  need_lib_prefix=no
11426  need_version=no
11427  hardcode_into_libs=yes
11428  if test "$host_cpu" = ia64; then
11429    # AIX 5 supports IA64
11430    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11431    shlibpath_var=LD_LIBRARY_PATH
11432  else
11433    # With GCC up to 2.95.x, collect2 would create an import file
11434    # for dependence libraries.  The import file would start with
11435    # the line `#! .'.  This would cause the generated library to
11436    # depend on `.', always an invalid library.  This was fixed in
11437    # development snapshots of GCC prior to 3.0.
11438    case $host_os in
11439      aix4 | aix4.[01] | aix4.[01].*)
11440      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11441	   echo ' yes '
11442	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11443	:
11444      else
11445	can_build_shared=no
11446      fi
11447      ;;
11448    esac
11449    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11450    # soname into executable. Probably we can add versioning support to
11451    # collect2, so additional links can be useful in future.
11452    if test "$aix_use_runtimelinking" = yes; then
11453      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11454      # instead of lib<name>.a to let people know that these are not
11455      # typical AIX shared libraries.
11456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457    else
11458      # We preserve .a as extension for shared libraries through AIX4.2
11459      # and later when we are not doing run time linking.
11460      library_names_spec='${libname}${release}.a $libname.a'
11461      soname_spec='${libname}${release}${shared_ext}$major'
11462    fi
11463    shlibpath_var=LIBPATH
11464  fi
11465  ;;
11466
11467amigaos*)
11468  case $host_cpu in
11469  powerpc)
11470    # Since July 2007 AmigaOS4 officially supports .so libraries.
11471    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473    ;;
11474  m68k)
11475    library_names_spec='$libname.ixlibrary $libname.a'
11476    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11477    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11478    ;;
11479  esac
11480  ;;
11481
11482beos*)
11483  library_names_spec='${libname}${shared_ext}'
11484  dynamic_linker="$host_os ld.so"
11485  shlibpath_var=LIBRARY_PATH
11486  ;;
11487
11488bsdi[45]*)
11489  version_type=linux # correct to gnu/linux during the next big refactor
11490  need_version=no
11491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492  soname_spec='${libname}${release}${shared_ext}$major'
11493  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11494  shlibpath_var=LD_LIBRARY_PATH
11495  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11496  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11497  # the default ld.so.conf also contains /usr/contrib/lib and
11498  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11499  # libtool to hard-code these into programs
11500  ;;
11501
11502cygwin* | mingw* | pw32* | cegcc*)
11503  version_type=windows
11504  shrext_cmds=".dll"
11505  need_version=no
11506  need_lib_prefix=no
11507
11508  case $GCC,$cc_basename in
11509  yes,*)
11510    # gcc
11511    library_names_spec='$libname.dll.a'
11512    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11513    postinstall_cmds='base_file=`basename \${file}`~
11514      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11515      dldir=$destdir/`dirname \$dlpath`~
11516      test -d \$dldir || mkdir -p \$dldir~
11517      $install_prog $dir/$dlname \$dldir/$dlname~
11518      chmod a+x \$dldir/$dlname~
11519      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11520        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11521      fi'
11522    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11523      dlpath=$dir/\$dldll~
11524       $RM \$dlpath'
11525    shlibpath_overrides_runpath=yes
11526
11527    case $host_os in
11528    cygwin*)
11529      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11530      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11531
11532      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11533      ;;
11534    mingw* | cegcc*)
11535      # MinGW DLLs use traditional 'lib' prefix
11536      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11537      ;;
11538    pw32*)
11539      # pw32 DLLs use 'pw' prefix rather than 'lib'
11540      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11541      ;;
11542    esac
11543    dynamic_linker='Win32 ld.exe'
11544    ;;
11545
11546  *,cl*)
11547    # Native MSVC
11548    libname_spec='$name'
11549    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11550    library_names_spec='${libname}.dll.lib'
11551
11552    case $build_os in
11553    mingw*)
11554      sys_lib_search_path_spec=
11555      lt_save_ifs=$IFS
11556      IFS=';'
11557      for lt_path in $LIB
11558      do
11559        IFS=$lt_save_ifs
11560        # Let DOS variable expansion print the short 8.3 style file name.
11561        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11562        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11563      done
11564      IFS=$lt_save_ifs
11565      # Convert to MSYS style.
11566      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11567      ;;
11568    cygwin*)
11569      # Convert to unix form, then to dos form, then back to unix form
11570      # but this time dos style (no spaces!) so that the unix form looks
11571      # like /cygdrive/c/PROGRA~1:/cygdr...
11572      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11573      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11574      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11575      ;;
11576    *)
11577      sys_lib_search_path_spec="$LIB"
11578      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11579        # It is most probably a Windows format PATH.
11580        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11581      else
11582        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11583      fi
11584      # FIXME: find the short name or the path components, as spaces are
11585      # common. (e.g. "Program Files" -> "PROGRA~1")
11586      ;;
11587    esac
11588
11589    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11590    postinstall_cmds='base_file=`basename \${file}`~
11591      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11592      dldir=$destdir/`dirname \$dlpath`~
11593      test -d \$dldir || mkdir -p \$dldir~
11594      $install_prog $dir/$dlname \$dldir/$dlname'
11595    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11596      dlpath=$dir/\$dldll~
11597       $RM \$dlpath'
11598    shlibpath_overrides_runpath=yes
11599    dynamic_linker='Win32 link.exe'
11600    ;;
11601
11602  *)
11603    # Assume MSVC wrapper
11604    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11605    dynamic_linker='Win32 ld.exe'
11606    ;;
11607  esac
11608  # FIXME: first we should search . and the directory the executable is in
11609  shlibpath_var=PATH
11610  ;;
11611
11612darwin* | rhapsody*)
11613  dynamic_linker="$host_os dyld"
11614  version_type=darwin
11615  need_lib_prefix=no
11616  need_version=no
11617  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11618  soname_spec='${libname}${release}${major}$shared_ext'
11619  shlibpath_overrides_runpath=yes
11620  shlibpath_var=DYLD_LIBRARY_PATH
11621  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11622
11623  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11624  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11625  ;;
11626
11627dgux*)
11628  version_type=linux # correct to gnu/linux during the next big refactor
11629  need_lib_prefix=no
11630  need_version=no
11631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11632  soname_spec='${libname}${release}${shared_ext}$major'
11633  shlibpath_var=LD_LIBRARY_PATH
11634  ;;
11635
11636freebsd* | dragonfly*)
11637  # DragonFly does not have aout.  When/if they implement a new
11638  # versioning mechanism, adjust this.
11639  if test -x /usr/bin/objformat; then
11640    objformat=`/usr/bin/objformat`
11641  else
11642    case $host_os in
11643    freebsd[23].*) objformat=aout ;;
11644    *) objformat=elf ;;
11645    esac
11646  fi
11647  # Handle Gentoo/FreeBSD as it was Linux
11648  case $host_vendor in
11649    gentoo)
11650      version_type=linux ;;
11651    *)
11652      version_type=freebsd-$objformat ;;
11653  esac
11654
11655  case $version_type in
11656    freebsd-elf*)
11657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11658      need_version=no
11659      need_lib_prefix=no
11660      ;;
11661    freebsd-*)
11662      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11663      need_version=yes
11664      ;;
11665    linux)
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      need_lib_prefix=no
11669      need_version=no
11670      ;;
11671  esac
11672  shlibpath_var=LD_LIBRARY_PATH
11673  case $host_os in
11674  freebsd2.*)
11675    shlibpath_overrides_runpath=yes
11676    ;;
11677  freebsd3.[01]* | freebsdelf3.[01]*)
11678    shlibpath_overrides_runpath=yes
11679    hardcode_into_libs=yes
11680    ;;
11681  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11682  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11683    shlibpath_overrides_runpath=no
11684    hardcode_into_libs=yes
11685    ;;
11686  *) # from 4.6 on, and DragonFly
11687    shlibpath_overrides_runpath=yes
11688    hardcode_into_libs=yes
11689    ;;
11690  esac
11691  ;;
11692
11693gnu*)
11694  version_type=linux # correct to gnu/linux during the next big refactor
11695  need_lib_prefix=no
11696  need_version=no
11697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11698  soname_spec='${libname}${release}${shared_ext}$major'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  shlibpath_overrides_runpath=no
11701  hardcode_into_libs=yes
11702  ;;
11703
11704haiku*)
11705  version_type=linux # correct to gnu/linux during the next big refactor
11706  need_lib_prefix=no
11707  need_version=no
11708  dynamic_linker="$host_os runtime_loader"
11709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11710  soname_spec='${libname}${release}${shared_ext}$major'
11711  shlibpath_var=LIBRARY_PATH
11712  shlibpath_overrides_runpath=yes
11713  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11714  hardcode_into_libs=yes
11715  ;;
11716
11717hpux9* | hpux10* | hpux11*)
11718  # Give a soname corresponding to the major version so that dld.sl refuses to
11719  # link against other versions.
11720  version_type=sunos
11721  need_lib_prefix=no
11722  need_version=no
11723  case $host_cpu in
11724  ia64*)
11725    shrext_cmds='.so'
11726    hardcode_into_libs=yes
11727    dynamic_linker="$host_os dld.so"
11728    shlibpath_var=LD_LIBRARY_PATH
11729    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11730    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731    soname_spec='${libname}${release}${shared_ext}$major'
11732    if test "X$HPUX_IA64_MODE" = X32; then
11733      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11734    else
11735      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11736    fi
11737    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11738    ;;
11739  hppa*64*)
11740    shrext_cmds='.sl'
11741    hardcode_into_libs=yes
11742    dynamic_linker="$host_os dld.sl"
11743    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11744    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11745    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746    soname_spec='${libname}${release}${shared_ext}$major'
11747    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11749    ;;
11750  *)
11751    shrext_cmds='.sl'
11752    dynamic_linker="$host_os dld.sl"
11753    shlibpath_var=SHLIB_PATH
11754    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756    soname_spec='${libname}${release}${shared_ext}$major'
11757    ;;
11758  esac
11759  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11760  postinstall_cmds='chmod 555 $lib'
11761  # or fails outright, so override atomically:
11762  install_override_mode=555
11763  ;;
11764
11765interix[3-9]*)
11766  version_type=linux # correct to gnu/linux during the next big refactor
11767  need_lib_prefix=no
11768  need_version=no
11769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11770  soname_spec='${libname}${release}${shared_ext}$major'
11771  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11772  shlibpath_var=LD_LIBRARY_PATH
11773  shlibpath_overrides_runpath=no
11774  hardcode_into_libs=yes
11775  ;;
11776
11777irix5* | irix6* | nonstopux*)
11778  case $host_os in
11779    nonstopux*) version_type=nonstopux ;;
11780    *)
11781	if test "$lt_cv_prog_gnu_ld" = yes; then
11782		version_type=linux # correct to gnu/linux during the next big refactor
11783	else
11784		version_type=irix
11785	fi ;;
11786  esac
11787  need_lib_prefix=no
11788  need_version=no
11789  soname_spec='${libname}${release}${shared_ext}$major'
11790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11791  case $host_os in
11792  irix5* | nonstopux*)
11793    libsuff= shlibsuff=
11794    ;;
11795  *)
11796    case $LD in # libtool.m4 will add one of these switches to LD
11797    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11798      libsuff= shlibsuff= libmagic=32-bit;;
11799    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11800      libsuff=32 shlibsuff=N32 libmagic=N32;;
11801    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11802      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11803    *) libsuff= shlibsuff= libmagic=never-match;;
11804    esac
11805    ;;
11806  esac
11807  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11808  shlibpath_overrides_runpath=no
11809  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11810  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11811  hardcode_into_libs=yes
11812  ;;
11813
11814# No shared lib support for Linux oldld, aout, or coff.
11815linux*oldld* | linux*aout* | linux*coff*)
11816  dynamic_linker=no
11817  ;;
11818
11819# This must be glibc/ELF.
11820linux* | k*bsd*-gnu | kopensolaris*-gnu)
11821  version_type=linux # correct to gnu/linux during the next big refactor
11822  need_lib_prefix=no
11823  need_version=no
11824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825  soname_spec='${libname}${release}${shared_ext}$major'
11826  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11827  shlibpath_var=LD_LIBRARY_PATH
11828  shlibpath_overrides_runpath=no
11829
11830  # Some binutils ld are patched to set DT_RUNPATH
11831  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11832  $as_echo_n "(cached) " >&6
11833else
11834  lt_cv_shlibpath_overrides_runpath=no
11835    save_LDFLAGS=$LDFLAGS
11836    save_libdir=$libdir
11837    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11838	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842int
11843main ()
11844{
11845
11846  ;
11847  return 0;
11848}
11849_ACEOF
11850if ac_fn_c_try_link "$LINENO"; then :
11851  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11852  lt_cv_shlibpath_overrides_runpath=yes
11853fi
11854fi
11855rm -f core conftest.err conftest.$ac_objext \
11856    conftest$ac_exeext conftest.$ac_ext
11857    LDFLAGS=$save_LDFLAGS
11858    libdir=$save_libdir
11859
11860fi
11861
11862  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11863
11864  # This implies no fast_install, which is unacceptable.
11865  # Some rework will be needed to allow for fast_install
11866  # before this can be enabled.
11867  hardcode_into_libs=yes
11868
11869  # Append ld.so.conf contents to the search path
11870  if test -f /etc/ld.so.conf; then
11871    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' ' '`
11872    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11873  fi
11874
11875  # We used to test for /lib/ld.so.1 and disable shared libraries on
11876  # powerpc, because MkLinux only supported shared libraries with the
11877  # GNU dynamic linker.  Since this was broken with cross compilers,
11878  # most powerpc-linux boxes support dynamic linking these days and
11879  # people can always --disable-shared, the test was removed, and we
11880  # assume the GNU/Linux dynamic linker is in use.
11881  dynamic_linker='GNU/Linux ld.so'
11882  ;;
11883
11884netbsd*)
11885  version_type=sunos
11886  need_lib_prefix=no
11887  need_version=no
11888  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11891    dynamic_linker='NetBSD (a.out) ld.so'
11892  else
11893    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11894    soname_spec='${libname}${release}${shared_ext}$major'
11895    dynamic_linker='NetBSD ld.elf_so'
11896  fi
11897  shlibpath_var=LD_LIBRARY_PATH
11898  shlibpath_overrides_runpath=yes
11899  hardcode_into_libs=yes
11900  ;;
11901
11902newsos6)
11903  version_type=linux # correct to gnu/linux during the next big refactor
11904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905  shlibpath_var=LD_LIBRARY_PATH
11906  shlibpath_overrides_runpath=yes
11907  ;;
11908
11909*nto* | *qnx*)
11910  version_type=qnx
11911  need_lib_prefix=no
11912  need_version=no
11913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914  soname_spec='${libname}${release}${shared_ext}$major'
11915  shlibpath_var=LD_LIBRARY_PATH
11916  shlibpath_overrides_runpath=no
11917  hardcode_into_libs=yes
11918  dynamic_linker='ldqnx.so'
11919  ;;
11920
11921openbsd*)
11922  version_type=sunos
11923  sys_lib_dlsearch_path_spec="/usr/lib"
11924  need_lib_prefix=no
11925  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11926  case $host_os in
11927    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11928    *)				need_version=no  ;;
11929  esac
11930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11931  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11932  shlibpath_var=LD_LIBRARY_PATH
11933  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11934    case $host_os in
11935      openbsd2.[89] | openbsd2.[89].*)
11936	shlibpath_overrides_runpath=no
11937	;;
11938      *)
11939	shlibpath_overrides_runpath=yes
11940	;;
11941      esac
11942  else
11943    shlibpath_overrides_runpath=yes
11944  fi
11945  ;;
11946
11947os2*)
11948  libname_spec='$name'
11949  shrext_cmds=".dll"
11950  need_lib_prefix=no
11951  library_names_spec='$libname${shared_ext} $libname.a'
11952  dynamic_linker='OS/2 ld.exe'
11953  shlibpath_var=LIBPATH
11954  ;;
11955
11956osf3* | osf4* | osf5*)
11957  version_type=osf
11958  need_lib_prefix=no
11959  need_version=no
11960  soname_spec='${libname}${release}${shared_ext}$major'
11961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962  shlibpath_var=LD_LIBRARY_PATH
11963  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11964  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11965  ;;
11966
11967rdos*)
11968  dynamic_linker=no
11969  ;;
11970
11971solaris*)
11972  version_type=linux # correct to gnu/linux during the next big refactor
11973  need_lib_prefix=no
11974  need_version=no
11975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976  soname_spec='${libname}${release}${shared_ext}$major'
11977  shlibpath_var=LD_LIBRARY_PATH
11978  shlibpath_overrides_runpath=yes
11979  hardcode_into_libs=yes
11980  # ldd complains unless libraries are executable
11981  postinstall_cmds='chmod +x $lib'
11982  ;;
11983
11984sunos4*)
11985  version_type=sunos
11986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11987  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11988  shlibpath_var=LD_LIBRARY_PATH
11989  shlibpath_overrides_runpath=yes
11990  if test "$with_gnu_ld" = yes; then
11991    need_lib_prefix=no
11992  fi
11993  need_version=yes
11994  ;;
11995
11996sysv4 | sysv4.3*)
11997  version_type=linux # correct to gnu/linux during the next big refactor
11998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999  soname_spec='${libname}${release}${shared_ext}$major'
12000  shlibpath_var=LD_LIBRARY_PATH
12001  case $host_vendor in
12002    sni)
12003      shlibpath_overrides_runpath=no
12004      need_lib_prefix=no
12005      runpath_var=LD_RUN_PATH
12006      ;;
12007    siemens)
12008      need_lib_prefix=no
12009      ;;
12010    motorola)
12011      need_lib_prefix=no
12012      need_version=no
12013      shlibpath_overrides_runpath=no
12014      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12015      ;;
12016  esac
12017  ;;
12018
12019sysv4*MP*)
12020  if test -d /usr/nec ;then
12021    version_type=linux # correct to gnu/linux during the next big refactor
12022    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12023    soname_spec='$libname${shared_ext}.$major'
12024    shlibpath_var=LD_LIBRARY_PATH
12025  fi
12026  ;;
12027
12028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12029  version_type=freebsd-elf
12030  need_lib_prefix=no
12031  need_version=no
12032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12033  soname_spec='${libname}${release}${shared_ext}$major'
12034  shlibpath_var=LD_LIBRARY_PATH
12035  shlibpath_overrides_runpath=yes
12036  hardcode_into_libs=yes
12037  if test "$with_gnu_ld" = yes; then
12038    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12039  else
12040    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12041    case $host_os in
12042      sco3.2v5*)
12043        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12044	;;
12045    esac
12046  fi
12047  sys_lib_dlsearch_path_spec='/usr/lib'
12048  ;;
12049
12050tpf*)
12051  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12052  version_type=linux # correct to gnu/linux during the next big refactor
12053  need_lib_prefix=no
12054  need_version=no
12055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056  shlibpath_var=LD_LIBRARY_PATH
12057  shlibpath_overrides_runpath=no
12058  hardcode_into_libs=yes
12059  ;;
12060
12061uts4*)
12062  version_type=linux # correct to gnu/linux during the next big refactor
12063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064  soname_spec='${libname}${release}${shared_ext}$major'
12065  shlibpath_var=LD_LIBRARY_PATH
12066  ;;
12067
12068*)
12069  dynamic_linker=no
12070  ;;
12071esac
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12073$as_echo "$dynamic_linker" >&6; }
12074test "$dynamic_linker" = no && can_build_shared=no
12075
12076variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12077if test "$GCC" = yes; then
12078  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12079fi
12080
12081if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12082  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12083fi
12084if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12085  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12086fi
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12180$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12181hardcode_action=
12182if test -n "$hardcode_libdir_flag_spec" ||
12183   test -n "$runpath_var" ||
12184   test "X$hardcode_automatic" = "Xyes" ; then
12185
12186  # We can hardcode non-existent directories.
12187  if test "$hardcode_direct" != no &&
12188     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12189     # have to relink, otherwise we might link with an installed library
12190     # when we should be linking with a yet-to-be-installed one
12191     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12192     test "$hardcode_minus_L" != no; then
12193    # Linking always hardcodes the temporary library directory.
12194    hardcode_action=relink
12195  else
12196    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12197    hardcode_action=immediate
12198  fi
12199else
12200  # We cannot hardcode anything, or else we can only hardcode existing
12201  # directories.
12202  hardcode_action=unsupported
12203fi
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12205$as_echo "$hardcode_action" >&6; }
12206
12207if test "$hardcode_action" = relink ||
12208   test "$inherit_rpath" = yes; then
12209  # Fast installation is not supported
12210  enable_fast_install=no
12211elif test "$shlibpath_overrides_runpath" = yes ||
12212     test "$enable_shared" = no; then
12213  # Fast installation is not necessary
12214  enable_fast_install=needless
12215fi
12216
12217
12218
12219
12220
12221
12222  if test "x$enable_dlopen" != xyes; then
12223  enable_dlopen=unknown
12224  enable_dlopen_self=unknown
12225  enable_dlopen_self_static=unknown
12226else
12227  lt_cv_dlopen=no
12228  lt_cv_dlopen_libs=
12229
12230  case $host_os in
12231  beos*)
12232    lt_cv_dlopen="load_add_on"
12233    lt_cv_dlopen_libs=
12234    lt_cv_dlopen_self=yes
12235    ;;
12236
12237  mingw* | pw32* | cegcc*)
12238    lt_cv_dlopen="LoadLibrary"
12239    lt_cv_dlopen_libs=
12240    ;;
12241
12242  cygwin*)
12243    lt_cv_dlopen="dlopen"
12244    lt_cv_dlopen_libs=
12245    ;;
12246
12247  darwin*)
12248  # if libdl is installed we need to link against it
12249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12250$as_echo_n "checking for dlopen in -ldl... " >&6; }
12251if ${ac_cv_lib_dl_dlopen+:} false; then :
12252  $as_echo_n "(cached) " >&6
12253else
12254  ac_check_lib_save_LIBS=$LIBS
12255LIBS="-ldl  $LIBS"
12256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257/* end confdefs.h.  */
12258
12259/* Override any GCC internal prototype to avoid an error.
12260   Use char because int might match the return type of a GCC
12261   builtin and then its argument prototype would still apply.  */
12262#ifdef __cplusplus
12263extern "C"
12264#endif
12265char dlopen ();
12266int
12267main ()
12268{
12269return dlopen ();
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274if ac_fn_c_try_link "$LINENO"; then :
12275  ac_cv_lib_dl_dlopen=yes
12276else
12277  ac_cv_lib_dl_dlopen=no
12278fi
12279rm -f core conftest.err conftest.$ac_objext \
12280    conftest$ac_exeext conftest.$ac_ext
12281LIBS=$ac_check_lib_save_LIBS
12282fi
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12284$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12285if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12286  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12287else
12288
12289    lt_cv_dlopen="dyld"
12290    lt_cv_dlopen_libs=
12291    lt_cv_dlopen_self=yes
12292
12293fi
12294
12295    ;;
12296
12297  *)
12298    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12299if test "x$ac_cv_func_shl_load" = xyes; then :
12300  lt_cv_dlopen="shl_load"
12301else
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12303$as_echo_n "checking for shl_load in -ldld... " >&6; }
12304if ${ac_cv_lib_dld_shl_load+:} false; then :
12305  $as_echo_n "(cached) " >&6
12306else
12307  ac_check_lib_save_LIBS=$LIBS
12308LIBS="-ldld  $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h.  */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313   Use char because int might match the return type of a GCC
12314   builtin and then its argument prototype would still apply.  */
12315#ifdef __cplusplus
12316extern "C"
12317#endif
12318char shl_load ();
12319int
12320main ()
12321{
12322return shl_load ();
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
12328  ac_cv_lib_dld_shl_load=yes
12329else
12330  ac_cv_lib_dld_shl_load=no
12331fi
12332rm -f core conftest.err conftest.$ac_objext \
12333    conftest$ac_exeext conftest.$ac_ext
12334LIBS=$ac_check_lib_save_LIBS
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12337$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12338if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12339  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12340else
12341  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12342if test "x$ac_cv_func_dlopen" = xyes; then :
12343  lt_cv_dlopen="dlopen"
12344else
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12346$as_echo_n "checking for dlopen in -ldl... " >&6; }
12347if ${ac_cv_lib_dl_dlopen+:} false; then :
12348  $as_echo_n "(cached) " >&6
12349else
12350  ac_check_lib_save_LIBS=$LIBS
12351LIBS="-ldl  $LIBS"
12352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h.  */
12354
12355/* Override any GCC internal prototype to avoid an error.
12356   Use char because int might match the return type of a GCC
12357   builtin and then its argument prototype would still apply.  */
12358#ifdef __cplusplus
12359extern "C"
12360#endif
12361char dlopen ();
12362int
12363main ()
12364{
12365return dlopen ();
12366  ;
12367  return 0;
12368}
12369_ACEOF
12370if ac_fn_c_try_link "$LINENO"; then :
12371  ac_cv_lib_dl_dlopen=yes
12372else
12373  ac_cv_lib_dl_dlopen=no
12374fi
12375rm -f core conftest.err conftest.$ac_objext \
12376    conftest$ac_exeext conftest.$ac_ext
12377LIBS=$ac_check_lib_save_LIBS
12378fi
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12380$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12381if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12382  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12383else
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12385$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12386if ${ac_cv_lib_svld_dlopen+:} false; then :
12387  $as_echo_n "(cached) " >&6
12388else
12389  ac_check_lib_save_LIBS=$LIBS
12390LIBS="-lsvld  $LIBS"
12391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392/* end confdefs.h.  */
12393
12394/* Override any GCC internal prototype to avoid an error.
12395   Use char because int might match the return type of a GCC
12396   builtin and then its argument prototype would still apply.  */
12397#ifdef __cplusplus
12398extern "C"
12399#endif
12400char dlopen ();
12401int
12402main ()
12403{
12404return dlopen ();
12405  ;
12406  return 0;
12407}
12408_ACEOF
12409if ac_fn_c_try_link "$LINENO"; then :
12410  ac_cv_lib_svld_dlopen=yes
12411else
12412  ac_cv_lib_svld_dlopen=no
12413fi
12414rm -f core conftest.err conftest.$ac_objext \
12415    conftest$ac_exeext conftest.$ac_ext
12416LIBS=$ac_check_lib_save_LIBS
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12419$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12420if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12422else
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12424$as_echo_n "checking for dld_link in -ldld... " >&6; }
12425if ${ac_cv_lib_dld_dld_link+:} false; then :
12426  $as_echo_n "(cached) " >&6
12427else
12428  ac_check_lib_save_LIBS=$LIBS
12429LIBS="-ldld  $LIBS"
12430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431/* end confdefs.h.  */
12432
12433/* Override any GCC internal prototype to avoid an error.
12434   Use char because int might match the return type of a GCC
12435   builtin and then its argument prototype would still apply.  */
12436#ifdef __cplusplus
12437extern "C"
12438#endif
12439char dld_link ();
12440int
12441main ()
12442{
12443return dld_link ();
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_link "$LINENO"; then :
12449  ac_cv_lib_dld_dld_link=yes
12450else
12451  ac_cv_lib_dld_dld_link=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext \
12454    conftest$ac_exeext conftest.$ac_ext
12455LIBS=$ac_check_lib_save_LIBS
12456fi
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12458$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12459if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12460  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12461fi
12462
12463
12464fi
12465
12466
12467fi
12468
12469
12470fi
12471
12472
12473fi
12474
12475
12476fi
12477
12478    ;;
12479  esac
12480
12481  if test "x$lt_cv_dlopen" != xno; then
12482    enable_dlopen=yes
12483  else
12484    enable_dlopen=no
12485  fi
12486
12487  case $lt_cv_dlopen in
12488  dlopen)
12489    save_CPPFLAGS="$CPPFLAGS"
12490    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12491
12492    save_LDFLAGS="$LDFLAGS"
12493    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12494
12495    save_LIBS="$LIBS"
12496    LIBS="$lt_cv_dlopen_libs $LIBS"
12497
12498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12499$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12500if ${lt_cv_dlopen_self+:} false; then :
12501  $as_echo_n "(cached) " >&6
12502else
12503  	  if test "$cross_compiling" = yes; then :
12504  lt_cv_dlopen_self=cross
12505else
12506  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12507  lt_status=$lt_dlunknown
12508  cat > conftest.$ac_ext <<_LT_EOF
12509#line $LINENO "configure"
12510#include "confdefs.h"
12511
12512#if HAVE_DLFCN_H
12513#include <dlfcn.h>
12514#endif
12515
12516#include <stdio.h>
12517
12518#ifdef RTLD_GLOBAL
12519#  define LT_DLGLOBAL		RTLD_GLOBAL
12520#else
12521#  ifdef DL_GLOBAL
12522#    define LT_DLGLOBAL		DL_GLOBAL
12523#  else
12524#    define LT_DLGLOBAL		0
12525#  endif
12526#endif
12527
12528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12529   find out it does not work in some platform. */
12530#ifndef LT_DLLAZY_OR_NOW
12531#  ifdef RTLD_LAZY
12532#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12533#  else
12534#    ifdef DL_LAZY
12535#      define LT_DLLAZY_OR_NOW		DL_LAZY
12536#    else
12537#      ifdef RTLD_NOW
12538#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12539#      else
12540#        ifdef DL_NOW
12541#          define LT_DLLAZY_OR_NOW	DL_NOW
12542#        else
12543#          define LT_DLLAZY_OR_NOW	0
12544#        endif
12545#      endif
12546#    endif
12547#  endif
12548#endif
12549
12550/* When -fvisbility=hidden is used, assume the code has been annotated
12551   correspondingly for the symbols needed.  */
12552#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12553int fnord () __attribute__((visibility("default")));
12554#endif
12555
12556int fnord () { return 42; }
12557int main ()
12558{
12559  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12560  int status = $lt_dlunknown;
12561
12562  if (self)
12563    {
12564      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12565      else
12566        {
12567	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12568          else puts (dlerror ());
12569	}
12570      /* dlclose (self); */
12571    }
12572  else
12573    puts (dlerror ());
12574
12575  return status;
12576}
12577_LT_EOF
12578  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12579  (eval $ac_link) 2>&5
12580  ac_status=$?
12581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12583    (./conftest; exit; ) >&5 2>/dev/null
12584    lt_status=$?
12585    case x$lt_status in
12586      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12587      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12588      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12589    esac
12590  else :
12591    # compilation failed
12592    lt_cv_dlopen_self=no
12593  fi
12594fi
12595rm -fr conftest*
12596
12597
12598fi
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12600$as_echo "$lt_cv_dlopen_self" >&6; }
12601
12602    if test "x$lt_cv_dlopen_self" = xyes; then
12603      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12605$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12606if ${lt_cv_dlopen_self_static+:} false; then :
12607  $as_echo_n "(cached) " >&6
12608else
12609  	  if test "$cross_compiling" = yes; then :
12610  lt_cv_dlopen_self_static=cross
12611else
12612  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12613  lt_status=$lt_dlunknown
12614  cat > conftest.$ac_ext <<_LT_EOF
12615#line $LINENO "configure"
12616#include "confdefs.h"
12617
12618#if HAVE_DLFCN_H
12619#include <dlfcn.h>
12620#endif
12621
12622#include <stdio.h>
12623
12624#ifdef RTLD_GLOBAL
12625#  define LT_DLGLOBAL		RTLD_GLOBAL
12626#else
12627#  ifdef DL_GLOBAL
12628#    define LT_DLGLOBAL		DL_GLOBAL
12629#  else
12630#    define LT_DLGLOBAL		0
12631#  endif
12632#endif
12633
12634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12635   find out it does not work in some platform. */
12636#ifndef LT_DLLAZY_OR_NOW
12637#  ifdef RTLD_LAZY
12638#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12639#  else
12640#    ifdef DL_LAZY
12641#      define LT_DLLAZY_OR_NOW		DL_LAZY
12642#    else
12643#      ifdef RTLD_NOW
12644#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12645#      else
12646#        ifdef DL_NOW
12647#          define LT_DLLAZY_OR_NOW	DL_NOW
12648#        else
12649#          define LT_DLLAZY_OR_NOW	0
12650#        endif
12651#      endif
12652#    endif
12653#  endif
12654#endif
12655
12656/* When -fvisbility=hidden is used, assume the code has been annotated
12657   correspondingly for the symbols needed.  */
12658#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12659int fnord () __attribute__((visibility("default")));
12660#endif
12661
12662int fnord () { return 42; }
12663int main ()
12664{
12665  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12666  int status = $lt_dlunknown;
12667
12668  if (self)
12669    {
12670      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12671      else
12672        {
12673	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12674          else puts (dlerror ());
12675	}
12676      /* dlclose (self); */
12677    }
12678  else
12679    puts (dlerror ());
12680
12681  return status;
12682}
12683_LT_EOF
12684  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12685  (eval $ac_link) 2>&5
12686  ac_status=$?
12687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12689    (./conftest; exit; ) >&5 2>/dev/null
12690    lt_status=$?
12691    case x$lt_status in
12692      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12693      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12694      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12695    esac
12696  else :
12697    # compilation failed
12698    lt_cv_dlopen_self_static=no
12699  fi
12700fi
12701rm -fr conftest*
12702
12703
12704fi
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12706$as_echo "$lt_cv_dlopen_self_static" >&6; }
12707    fi
12708
12709    CPPFLAGS="$save_CPPFLAGS"
12710    LDFLAGS="$save_LDFLAGS"
12711    LIBS="$save_LIBS"
12712    ;;
12713  esac
12714
12715  case $lt_cv_dlopen_self in
12716  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12717  *) enable_dlopen_self=unknown ;;
12718  esac
12719
12720  case $lt_cv_dlopen_self_static in
12721  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12722  *) enable_dlopen_self_static=unknown ;;
12723  esac
12724fi
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742striplib=
12743old_striplib=
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12745$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12746if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12747  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12748  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750$as_echo "yes" >&6; }
12751else
12752# FIXME - insert some real tests, host_os isn't really good enough
12753  case $host_os in
12754  darwin*)
12755    if test -n "$STRIP" ; then
12756      striplib="$STRIP -x"
12757      old_striplib="$STRIP -S"
12758      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759$as_echo "yes" >&6; }
12760    else
12761      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762$as_echo "no" >&6; }
12763    fi
12764    ;;
12765  *)
12766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
12768    ;;
12769  esac
12770fi
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783  # Report which library types will actually be built
12784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12785$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12787$as_echo "$can_build_shared" >&6; }
12788
12789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12790$as_echo_n "checking whether to build shared libraries... " >&6; }
12791  test "$can_build_shared" = "no" && enable_shared=no
12792
12793  # On AIX, shared libraries and static libraries use the same namespace, and
12794  # are all built from PIC.
12795  case $host_os in
12796  aix3*)
12797    test "$enable_shared" = yes && enable_static=no
12798    if test -n "$RANLIB"; then
12799      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12800      postinstall_cmds='$RANLIB $lib'
12801    fi
12802    ;;
12803
12804  aix[4-9]*)
12805    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12806      test "$enable_shared" = yes && enable_static=no
12807    fi
12808    ;;
12809  esac
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12811$as_echo "$enable_shared" >&6; }
12812
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12814$as_echo_n "checking whether to build static libraries... " >&6; }
12815  # Make sure either enable_shared or enable_static is yes.
12816  test "$enable_shared" = yes || enable_static=yes
12817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12818$as_echo "$enable_static" >&6; }
12819
12820
12821
12822
12823fi
12824ac_ext=c
12825ac_cpp='$CPP $CPPFLAGS'
12826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
12830CC="$lt_save_CC"
12831
12832      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12833    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12834    (test "X$CXX" != "Xg++"))) ; then
12835  ac_ext=cpp
12836ac_cpp='$CXXCPP $CPPFLAGS'
12837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12841$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12842if test -z "$CXXCPP"; then
12843  if ${ac_cv_prog_CXXCPP+:} false; then :
12844  $as_echo_n "(cached) " >&6
12845else
12846      # Double quotes because CXXCPP needs to be expanded
12847    for CXXCPP in "$CXX -E" "/lib/cpp"
12848    do
12849      ac_preproc_ok=false
12850for ac_cxx_preproc_warn_flag in '' yes
12851do
12852  # Use a header file that comes with gcc, so configuring glibc
12853  # with a fresh cross-compiler works.
12854  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855  # <limits.h> exists even on freestanding compilers.
12856  # On the NeXT, cc -E runs the code through the compiler's parser,
12857  # not just through cpp. "Syntax error" is here to catch this case.
12858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h.  */
12860#ifdef __STDC__
12861# include <limits.h>
12862#else
12863# include <assert.h>
12864#endif
12865		     Syntax error
12866_ACEOF
12867if ac_fn_cxx_try_cpp "$LINENO"; then :
12868
12869else
12870  # Broken: fails on valid input.
12871continue
12872fi
12873rm -f conftest.err conftest.i conftest.$ac_ext
12874
12875  # OK, works on sane cases.  Now check whether nonexistent headers
12876  # can be detected and how.
12877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878/* end confdefs.h.  */
12879#include <ac_nonexistent.h>
12880_ACEOF
12881if ac_fn_cxx_try_cpp "$LINENO"; then :
12882  # Broken: success on invalid input.
12883continue
12884else
12885  # Passes both tests.
12886ac_preproc_ok=:
12887break
12888fi
12889rm -f conftest.err conftest.i conftest.$ac_ext
12890
12891done
12892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12893rm -f conftest.i conftest.err conftest.$ac_ext
12894if $ac_preproc_ok; then :
12895  break
12896fi
12897
12898    done
12899    ac_cv_prog_CXXCPP=$CXXCPP
12900
12901fi
12902  CXXCPP=$ac_cv_prog_CXXCPP
12903else
12904  ac_cv_prog_CXXCPP=$CXXCPP
12905fi
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12907$as_echo "$CXXCPP" >&6; }
12908ac_preproc_ok=false
12909for ac_cxx_preproc_warn_flag in '' yes
12910do
12911  # Use a header file that comes with gcc, so configuring glibc
12912  # with a fresh cross-compiler works.
12913  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12914  # <limits.h> exists even on freestanding compilers.
12915  # On the NeXT, cc -E runs the code through the compiler's parser,
12916  # not just through cpp. "Syntax error" is here to catch this case.
12917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918/* end confdefs.h.  */
12919#ifdef __STDC__
12920# include <limits.h>
12921#else
12922# include <assert.h>
12923#endif
12924		     Syntax error
12925_ACEOF
12926if ac_fn_cxx_try_cpp "$LINENO"; then :
12927
12928else
12929  # Broken: fails on valid input.
12930continue
12931fi
12932rm -f conftest.err conftest.i conftest.$ac_ext
12933
12934  # OK, works on sane cases.  Now check whether nonexistent headers
12935  # can be detected and how.
12936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937/* end confdefs.h.  */
12938#include <ac_nonexistent.h>
12939_ACEOF
12940if ac_fn_cxx_try_cpp "$LINENO"; then :
12941  # Broken: success on invalid input.
12942continue
12943else
12944  # Passes both tests.
12945ac_preproc_ok=:
12946break
12947fi
12948rm -f conftest.err conftest.i conftest.$ac_ext
12949
12950done
12951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12952rm -f conftest.i conftest.err conftest.$ac_ext
12953if $ac_preproc_ok; then :
12954
12955else
12956  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12958as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12959See \`config.log' for more details" "$LINENO" 5; }
12960fi
12961
12962ac_ext=c
12963ac_cpp='$CPP $CPPFLAGS'
12964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967
12968else
12969  _lt_caught_CXX_error=yes
12970fi
12971
12972ac_ext=cpp
12973ac_cpp='$CXXCPP $CPPFLAGS'
12974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12977
12978archive_cmds_need_lc_CXX=no
12979allow_undefined_flag_CXX=
12980always_export_symbols_CXX=no
12981archive_expsym_cmds_CXX=
12982compiler_needs_object_CXX=no
12983export_dynamic_flag_spec_CXX=
12984hardcode_direct_CXX=no
12985hardcode_direct_absolute_CXX=no
12986hardcode_libdir_flag_spec_CXX=
12987hardcode_libdir_separator_CXX=
12988hardcode_minus_L_CXX=no
12989hardcode_shlibpath_var_CXX=unsupported
12990hardcode_automatic_CXX=no
12991inherit_rpath_CXX=no
12992module_cmds_CXX=
12993module_expsym_cmds_CXX=
12994link_all_deplibs_CXX=unknown
12995old_archive_cmds_CXX=$old_archive_cmds
12996reload_flag_CXX=$reload_flag
12997reload_cmds_CXX=$reload_cmds
12998no_undefined_flag_CXX=
12999whole_archive_flag_spec_CXX=
13000enable_shared_with_static_runtimes_CXX=no
13001
13002# Source file extension for C++ test sources.
13003ac_ext=cpp
13004
13005# Object file extension for compiled C++ test sources.
13006objext=o
13007objext_CXX=$objext
13008
13009# No sense in running all these tests if we already determined that
13010# the CXX compiler isn't working.  Some variables (like enable_shared)
13011# are currently assumed to apply to all compilers on this platform,
13012# and will be corrupted by setting them based on a non-working compiler.
13013if test "$_lt_caught_CXX_error" != yes; then
13014  # Code to be used in simple compile tests
13015  lt_simple_compile_test_code="int some_variable = 0;"
13016
13017  # Code to be used in simple link tests
13018  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13019
13020  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13021
13022
13023
13024
13025
13026
13027# If no C compiler was specified, use CC.
13028LTCC=${LTCC-"$CC"}
13029
13030# If no C compiler flags were specified, use CFLAGS.
13031LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13032
13033# Allow CC to be a program name with arguments.
13034compiler=$CC
13035
13036
13037  # save warnings/boilerplate of simple test code
13038  ac_outfile=conftest.$ac_objext
13039echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13040eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13041_lt_compiler_boilerplate=`cat conftest.err`
13042$RM conftest*
13043
13044  ac_outfile=conftest.$ac_objext
13045echo "$lt_simple_link_test_code" >conftest.$ac_ext
13046eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13047_lt_linker_boilerplate=`cat conftest.err`
13048$RM -r conftest*
13049
13050
13051  # Allow CC to be a program name with arguments.
13052  lt_save_CC=$CC
13053  lt_save_CFLAGS=$CFLAGS
13054  lt_save_LD=$LD
13055  lt_save_GCC=$GCC
13056  GCC=$GXX
13057  lt_save_with_gnu_ld=$with_gnu_ld
13058  lt_save_path_LD=$lt_cv_path_LD
13059  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13060    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13061  else
13062    $as_unset lt_cv_prog_gnu_ld
13063  fi
13064  if test -n "${lt_cv_path_LDCXX+set}"; then
13065    lt_cv_path_LD=$lt_cv_path_LDCXX
13066  else
13067    $as_unset lt_cv_path_LD
13068  fi
13069  test -z "${LDCXX+set}" || LD=$LDCXX
13070  CC=${CXX-"c++"}
13071  CFLAGS=$CXXFLAGS
13072  compiler=$CC
13073  compiler_CXX=$CC
13074  for cc_temp in $compiler""; do
13075  case $cc_temp in
13076    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13077    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13078    \-*) ;;
13079    *) break;;
13080  esac
13081done
13082cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13083
13084
13085  if test -n "$compiler"; then
13086    # We don't want -fno-exception when compiling C++ code, so set the
13087    # no_builtin_flag separately
13088    if test "$GXX" = yes; then
13089      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13090    else
13091      lt_prog_compiler_no_builtin_flag_CXX=
13092    fi
13093
13094    if test "$GXX" = yes; then
13095      # Set up default GNU C++ configuration
13096
13097
13098
13099# Check whether --with-gnu-ld was given.
13100if test "${with_gnu_ld+set}" = set; then :
13101  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13102else
13103  with_gnu_ld=no
13104fi
13105
13106ac_prog=ld
13107if test "$GCC" = yes; then
13108  # Check if gcc -print-prog-name=ld gives a path.
13109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13110$as_echo_n "checking for ld used by $CC... " >&6; }
13111  case $host in
13112  *-*-mingw*)
13113    # gcc leaves a trailing carriage return which upsets mingw
13114    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13115  *)
13116    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13117  esac
13118  case $ac_prog in
13119    # Accept absolute paths.
13120    [\\/]* | ?:[\\/]*)
13121      re_direlt='/[^/][^/]*/\.\./'
13122      # Canonicalize the pathname of ld
13123      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13124      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13125	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13126      done
13127      test -z "$LD" && LD="$ac_prog"
13128      ;;
13129  "")
13130    # If it fails, then pretend we aren't using GCC.
13131    ac_prog=ld
13132    ;;
13133  *)
13134    # If it is relative, then search for the first ld in PATH.
13135    with_gnu_ld=unknown
13136    ;;
13137  esac
13138elif test "$with_gnu_ld" = yes; then
13139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13140$as_echo_n "checking for GNU ld... " >&6; }
13141else
13142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13143$as_echo_n "checking for non-GNU ld... " >&6; }
13144fi
13145if ${lt_cv_path_LD+:} false; then :
13146  $as_echo_n "(cached) " >&6
13147else
13148  if test -z "$LD"; then
13149  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13150  for ac_dir in $PATH; do
13151    IFS="$lt_save_ifs"
13152    test -z "$ac_dir" && ac_dir=.
13153    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13154      lt_cv_path_LD="$ac_dir/$ac_prog"
13155      # Check to see if the program is GNU ld.  I'd rather use --version,
13156      # but apparently some variants of GNU ld only accept -v.
13157      # Break only if it was the GNU/non-GNU ld that we prefer.
13158      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13159      *GNU* | *'with BFD'*)
13160	test "$with_gnu_ld" != no && break
13161	;;
13162      *)
13163	test "$with_gnu_ld" != yes && break
13164	;;
13165      esac
13166    fi
13167  done
13168  IFS="$lt_save_ifs"
13169else
13170  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13171fi
13172fi
13173
13174LD="$lt_cv_path_LD"
13175if test -n "$LD"; then
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13177$as_echo "$LD" >&6; }
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181fi
13182test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13184$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13185if ${lt_cv_prog_gnu_ld+:} false; then :
13186  $as_echo_n "(cached) " >&6
13187else
13188  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13189case `$LD -v 2>&1 </dev/null` in
13190*GNU* | *'with BFD'*)
13191  lt_cv_prog_gnu_ld=yes
13192  ;;
13193*)
13194  lt_cv_prog_gnu_ld=no
13195  ;;
13196esac
13197fi
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13199$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13200with_gnu_ld=$lt_cv_prog_gnu_ld
13201
13202
13203
13204
13205
13206
13207
13208      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13209      # archiving commands below assume that GNU ld is being used.
13210      if test "$with_gnu_ld" = yes; then
13211        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13212        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'
13213
13214        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13215        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13216
13217        # If archive_cmds runs LD, not CC, wlarc should be empty
13218        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13219        #     investigate it a little bit more. (MM)
13220        wlarc='${wl}'
13221
13222        # ancient GNU ld didn't support --whole-archive et. al.
13223        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13224	  $GREP 'no-whole-archive' > /dev/null; then
13225          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13226        else
13227          whole_archive_flag_spec_CXX=
13228        fi
13229      else
13230        with_gnu_ld=no
13231        wlarc=
13232
13233        # A generic and very simple default shared library creation
13234        # command for GNU C++ for the case where it uses the native
13235        # linker, instead of GNU ld.  If possible, this setting should
13236        # overridden to take advantage of the native linker features on
13237        # the platform it is being used on.
13238        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13239      fi
13240
13241      # Commands to make compiler produce verbose output that lists
13242      # what "hidden" libraries, object files and flags are used when
13243      # linking a shared library.
13244      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13245
13246    else
13247      GXX=no
13248      with_gnu_ld=no
13249      wlarc=
13250    fi
13251
13252    # PORTME: fill in a description of your system's C++ link characteristics
13253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13254$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13255    ld_shlibs_CXX=yes
13256    case $host_os in
13257      aix3*)
13258        # FIXME: insert proper C++ library support
13259        ld_shlibs_CXX=no
13260        ;;
13261      aix[4-9]*)
13262        if test "$host_cpu" = ia64; then
13263          # On IA64, the linker does run time linking by default, so we don't
13264          # have to do anything special.
13265          aix_use_runtimelinking=no
13266          exp_sym_flag='-Bexport'
13267          no_entry_flag=""
13268        else
13269          aix_use_runtimelinking=no
13270
13271          # Test if we are trying to use run time linking or normal
13272          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13273          # need to do runtime linking.
13274          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13275	    for ld_flag in $LDFLAGS; do
13276	      case $ld_flag in
13277	      *-brtl*)
13278	        aix_use_runtimelinking=yes
13279	        break
13280	        ;;
13281	      esac
13282	    done
13283	    ;;
13284          esac
13285
13286          exp_sym_flag='-bexport'
13287          no_entry_flag='-bnoentry'
13288        fi
13289
13290        # When large executables or shared objects are built, AIX ld can
13291        # have problems creating the table of contents.  If linking a library
13292        # or program results in "error TOC overflow" add -mminimal-toc to
13293        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13294        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13295
13296        archive_cmds_CXX=''
13297        hardcode_direct_CXX=yes
13298        hardcode_direct_absolute_CXX=yes
13299        hardcode_libdir_separator_CXX=':'
13300        link_all_deplibs_CXX=yes
13301        file_list_spec_CXX='${wl}-f,'
13302
13303        if test "$GXX" = yes; then
13304          case $host_os in aix4.[012]|aix4.[012].*)
13305          # We only want to do this on AIX 4.2 and lower, the check
13306          # below for broken collect2 doesn't work under 4.3+
13307	  collect2name=`${CC} -print-prog-name=collect2`
13308	  if test -f "$collect2name" &&
13309	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13310	  then
13311	    # We have reworked collect2
13312	    :
13313	  else
13314	    # We have old collect2
13315	    hardcode_direct_CXX=unsupported
13316	    # It fails to find uninstalled libraries when the uninstalled
13317	    # path is not listed in the libpath.  Setting hardcode_minus_L
13318	    # to unsupported forces relinking
13319	    hardcode_minus_L_CXX=yes
13320	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13321	    hardcode_libdir_separator_CXX=
13322	  fi
13323          esac
13324          shared_flag='-shared'
13325	  if test "$aix_use_runtimelinking" = yes; then
13326	    shared_flag="$shared_flag "'${wl}-G'
13327	  fi
13328        else
13329          # not using gcc
13330          if test "$host_cpu" = ia64; then
13331	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13332	  # chokes on -Wl,-G. The following line is correct:
13333	  shared_flag='-G'
13334          else
13335	    if test "$aix_use_runtimelinking" = yes; then
13336	      shared_flag='${wl}-G'
13337	    else
13338	      shared_flag='${wl}-bM:SRE'
13339	    fi
13340          fi
13341        fi
13342
13343        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13344        # It seems that -bexpall does not export symbols beginning with
13345        # underscore (_), so it is better to generate a list of symbols to
13346	# export.
13347        always_export_symbols_CXX=yes
13348        if test "$aix_use_runtimelinking" = yes; then
13349          # Warning - without using the other runtime loading flags (-brtl),
13350          # -berok will link without error, but may produce a broken library.
13351          allow_undefined_flag_CXX='-berok'
13352          # Determine the default libpath from the value encoded in an empty
13353          # executable.
13354          if test "${lt_cv_aix_libpath+set}" = set; then
13355  aix_libpath=$lt_cv_aix_libpath
13356else
13357  if ${lt_cv_aix_libpath__CXX+:} false; then :
13358  $as_echo_n "(cached) " >&6
13359else
13360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362
13363int
13364main ()
13365{
13366
13367  ;
13368  return 0;
13369}
13370_ACEOF
13371if ac_fn_cxx_try_link "$LINENO"; then :
13372
13373  lt_aix_libpath_sed='
13374      /Import File Strings/,/^$/ {
13375	  /^0/ {
13376	      s/^0  *\([^ ]*\) *$/\1/
13377	      p
13378	  }
13379      }'
13380  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13381  # Check for a 64-bit object if we didn't find anything.
13382  if test -z "$lt_cv_aix_libpath__CXX"; then
13383    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13384  fi
13385fi
13386rm -f core conftest.err conftest.$ac_objext \
13387    conftest$ac_exeext conftest.$ac_ext
13388  if test -z "$lt_cv_aix_libpath__CXX"; then
13389    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13390  fi
13391
13392fi
13393
13394  aix_libpath=$lt_cv_aix_libpath__CXX
13395fi
13396
13397          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13398
13399          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13400        else
13401          if test "$host_cpu" = ia64; then
13402	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13403	    allow_undefined_flag_CXX="-z nodefs"
13404	    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"
13405          else
13406	    # Determine the default libpath from the value encoded in an
13407	    # empty executable.
13408	    if test "${lt_cv_aix_libpath+set}" = set; then
13409  aix_libpath=$lt_cv_aix_libpath
13410else
13411  if ${lt_cv_aix_libpath__CXX+:} false; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415/* end confdefs.h.  */
13416
13417int
13418main ()
13419{
13420
13421  ;
13422  return 0;
13423}
13424_ACEOF
13425if ac_fn_cxx_try_link "$LINENO"; then :
13426
13427  lt_aix_libpath_sed='
13428      /Import File Strings/,/^$/ {
13429	  /^0/ {
13430	      s/^0  *\([^ ]*\) *$/\1/
13431	      p
13432	  }
13433      }'
13434  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13435  # Check for a 64-bit object if we didn't find anything.
13436  if test -z "$lt_cv_aix_libpath__CXX"; then
13437    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13438  fi
13439fi
13440rm -f core conftest.err conftest.$ac_objext \
13441    conftest$ac_exeext conftest.$ac_ext
13442  if test -z "$lt_cv_aix_libpath__CXX"; then
13443    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13444  fi
13445
13446fi
13447
13448  aix_libpath=$lt_cv_aix_libpath__CXX
13449fi
13450
13451	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13452	    # Warning - without using the other run time loading flags,
13453	    # -berok will link without error, but may produce a broken library.
13454	    no_undefined_flag_CXX=' ${wl}-bernotok'
13455	    allow_undefined_flag_CXX=' ${wl}-berok'
13456	    if test "$with_gnu_ld" = yes; then
13457	      # We only use this code for GNU lds that support --whole-archive.
13458	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13459	    else
13460	      # Exported symbols can be pulled into shared objects from archives
13461	      whole_archive_flag_spec_CXX='$convenience'
13462	    fi
13463	    archive_cmds_need_lc_CXX=yes
13464	    # This is similar to how AIX traditionally builds its shared
13465	    # libraries.
13466	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13467          fi
13468        fi
13469        ;;
13470
13471      beos*)
13472	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13473	  allow_undefined_flag_CXX=unsupported
13474	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13475	  # support --undefined.  This deserves some investigation.  FIXME
13476	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13477	else
13478	  ld_shlibs_CXX=no
13479	fi
13480	;;
13481
13482      chorus*)
13483        case $cc_basename in
13484          *)
13485	  # FIXME: insert proper C++ library support
13486	  ld_shlibs_CXX=no
13487	  ;;
13488        esac
13489        ;;
13490
13491      cygwin* | mingw* | pw32* | cegcc*)
13492	case $GXX,$cc_basename in
13493	,cl* | no,cl*)
13494	  # Native MSVC
13495	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13496	  # no search path for DLLs.
13497	  hardcode_libdir_flag_spec_CXX=' '
13498	  allow_undefined_flag_CXX=unsupported
13499	  always_export_symbols_CXX=yes
13500	  file_list_spec_CXX='@'
13501	  # Tell ltmain to make .lib files, not .a files.
13502	  libext=lib
13503	  # Tell ltmain to make .dll files, not .so files.
13504	  shrext_cmds=".dll"
13505	  # FIXME: Setting linknames here is a bad hack.
13506	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13507	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13508	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13509	    else
13510	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13511	    fi~
13512	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13513	    linknames='
13514	  # The linker will not automatically build a static lib if we build a DLL.
13515	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13516	  enable_shared_with_static_runtimes_CXX=yes
13517	  # Don't use ranlib
13518	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13519	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13520	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13521	    case $lt_outputfile in
13522	      *.exe|*.EXE) ;;
13523	      *)
13524		lt_outputfile="$lt_outputfile.exe"
13525		lt_tool_outputfile="$lt_tool_outputfile.exe"
13526		;;
13527	    esac~
13528	    func_to_tool_file "$lt_outputfile"~
13529	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13530	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13531	      $RM "$lt_outputfile.manifest";
13532	    fi'
13533	  ;;
13534	*)
13535	  # g++
13536	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13537	  # as there is no search path for DLLs.
13538	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13539	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13540	  allow_undefined_flag_CXX=unsupported
13541	  always_export_symbols_CXX=no
13542	  enable_shared_with_static_runtimes_CXX=yes
13543
13544	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13545	    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'
13546	    # If the export-symbols file already is a .def file (1st line
13547	    # is EXPORTS), use it as is; otherwise, prepend...
13548	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13549	      cp $export_symbols $output_objdir/$soname.def;
13550	    else
13551	      echo EXPORTS > $output_objdir/$soname.def;
13552	      cat $export_symbols >> $output_objdir/$soname.def;
13553	    fi~
13554	    $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'
13555	  else
13556	    ld_shlibs_CXX=no
13557	  fi
13558	  ;;
13559	esac
13560	;;
13561      darwin* | rhapsody*)
13562
13563
13564  archive_cmds_need_lc_CXX=no
13565  hardcode_direct_CXX=no
13566  hardcode_automatic_CXX=yes
13567  hardcode_shlibpath_var_CXX=unsupported
13568  if test "$lt_cv_ld_force_load" = "yes"; then
13569    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\"`'
13570
13571  else
13572    whole_archive_flag_spec_CXX=''
13573  fi
13574  link_all_deplibs_CXX=yes
13575  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13576  case $cc_basename in
13577     ifort*) _lt_dar_can_shared=yes ;;
13578     *) _lt_dar_can_shared=$GCC ;;
13579  esac
13580  if test "$_lt_dar_can_shared" = "yes"; then
13581    output_verbose_link_cmd=func_echo_all
13582    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}"
13583    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13584    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}"
13585    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}"
13586       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13587      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}"
13588      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}"
13589    fi
13590
13591  else
13592  ld_shlibs_CXX=no
13593  fi
13594
13595	;;
13596
13597      dgux*)
13598        case $cc_basename in
13599          ec++*)
13600	    # FIXME: insert proper C++ library support
13601	    ld_shlibs_CXX=no
13602	    ;;
13603          ghcx*)
13604	    # Green Hills C++ Compiler
13605	    # FIXME: insert proper C++ library support
13606	    ld_shlibs_CXX=no
13607	    ;;
13608          *)
13609	    # FIXME: insert proper C++ library support
13610	    ld_shlibs_CXX=no
13611	    ;;
13612        esac
13613        ;;
13614
13615      freebsd2.*)
13616        # C++ shared libraries reported to be fairly broken before
13617	# switch to ELF
13618        ld_shlibs_CXX=no
13619        ;;
13620
13621      freebsd-elf*)
13622        archive_cmds_need_lc_CXX=no
13623        ;;
13624
13625      freebsd* | dragonfly*)
13626        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13627        # conventions
13628        ld_shlibs_CXX=yes
13629        ;;
13630
13631      gnu*)
13632        ;;
13633
13634      haiku*)
13635        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636        link_all_deplibs_CXX=yes
13637        ;;
13638
13639      hpux9*)
13640        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13641        hardcode_libdir_separator_CXX=:
13642        export_dynamic_flag_spec_CXX='${wl}-E'
13643        hardcode_direct_CXX=yes
13644        hardcode_minus_L_CXX=yes # Not in the search PATH,
13645				             # but as the default
13646				             # location of the library.
13647
13648        case $cc_basename in
13649          CC*)
13650            # FIXME: insert proper C++ library support
13651            ld_shlibs_CXX=no
13652            ;;
13653          aCC*)
13654            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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13655            # Commands to make compiler produce verbose output that lists
13656            # what "hidden" libraries, object files and flags are used when
13657            # linking a shared library.
13658            #
13659            # There doesn't appear to be a way to prevent this compiler from
13660            # explicitly linking system object files so we need to strip them
13661            # from the output so that they don't get included in the library
13662            # dependencies.
13663            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"'
13664            ;;
13665          *)
13666            if test "$GXX" = yes; then
13667              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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13668            else
13669              # FIXME: insert proper C++ library support
13670              ld_shlibs_CXX=no
13671            fi
13672            ;;
13673        esac
13674        ;;
13675
13676      hpux10*|hpux11*)
13677        if test $with_gnu_ld = no; then
13678	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13679	  hardcode_libdir_separator_CXX=:
13680
13681          case $host_cpu in
13682            hppa*64*|ia64*)
13683              ;;
13684            *)
13685	      export_dynamic_flag_spec_CXX='${wl}-E'
13686              ;;
13687          esac
13688        fi
13689        case $host_cpu in
13690          hppa*64*|ia64*)
13691            hardcode_direct_CXX=no
13692            hardcode_shlibpath_var_CXX=no
13693            ;;
13694          *)
13695            hardcode_direct_CXX=yes
13696            hardcode_direct_absolute_CXX=yes
13697            hardcode_minus_L_CXX=yes # Not in the search PATH,
13698					         # but as the default
13699					         # location of the library.
13700            ;;
13701        esac
13702
13703        case $cc_basename in
13704          CC*)
13705	    # FIXME: insert proper C++ library support
13706	    ld_shlibs_CXX=no
13707	    ;;
13708          aCC*)
13709	    case $host_cpu in
13710	      hppa*64*)
13711	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712	        ;;
13713	      ia64*)
13714	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715	        ;;
13716	      *)
13717	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718	        ;;
13719	    esac
13720	    # Commands to make compiler produce verbose output that lists
13721	    # what "hidden" libraries, object files and flags are used when
13722	    # linking a shared library.
13723	    #
13724	    # There doesn't appear to be a way to prevent this compiler from
13725	    # explicitly linking system object files so we need to strip them
13726	    # from the output so that they don't get included in the library
13727	    # dependencies.
13728	    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"'
13729	    ;;
13730          *)
13731	    if test "$GXX" = yes; then
13732	      if test $with_gnu_ld = no; then
13733	        case $host_cpu in
13734	          hppa*64*)
13735	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13736	            ;;
13737	          ia64*)
13738	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13739	            ;;
13740	          *)
13741	            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'
13742	            ;;
13743	        esac
13744	      fi
13745	    else
13746	      # FIXME: insert proper C++ library support
13747	      ld_shlibs_CXX=no
13748	    fi
13749	    ;;
13750        esac
13751        ;;
13752
13753      interix[3-9]*)
13754	hardcode_direct_CXX=no
13755	hardcode_shlibpath_var_CXX=no
13756	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13757	export_dynamic_flag_spec_CXX='${wl}-E'
13758	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13759	# Instead, shared libraries are loaded at an image base (0x10000000 by
13760	# default) and relocated if they conflict, which is a slow very memory
13761	# consuming and fragmenting process.  To avoid this, we pick a random,
13762	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13763	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13764	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'
13765	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'
13766	;;
13767      irix5* | irix6*)
13768        case $cc_basename in
13769          CC*)
13770	    # SGI C++
13771	    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'
13772
13773	    # Archives containing C++ object files must be created using
13774	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13775	    # necessary to make sure instantiated templates are included
13776	    # in the archive.
13777	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13778	    ;;
13779          *)
13780	    if test "$GXX" = yes; then
13781	      if test "$with_gnu_ld" = no; then
13782	        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'
13783	      else
13784	        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'
13785	      fi
13786	    fi
13787	    link_all_deplibs_CXX=yes
13788	    ;;
13789        esac
13790        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13791        hardcode_libdir_separator_CXX=:
13792        inherit_rpath_CXX=yes
13793        ;;
13794
13795      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13796        case $cc_basename in
13797          KCC*)
13798	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13799
13800	    # KCC will only create a shared library if the output file
13801	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13802	    # to its proper name (with version) after linking.
13803	    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'
13804	    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'
13805	    # Commands to make compiler produce verbose output that lists
13806	    # what "hidden" libraries, object files and flags are used when
13807	    # linking a shared library.
13808	    #
13809	    # There doesn't appear to be a way to prevent this compiler from
13810	    # explicitly linking system object files so we need to strip them
13811	    # from the output so that they don't get included in the library
13812	    # dependencies.
13813	    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"'
13814
13815	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13816	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13817
13818	    # Archives containing C++ object files must be created using
13819	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13820	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13821	    ;;
13822	  icpc* | ecpc* )
13823	    # Intel C++
13824	    with_gnu_ld=yes
13825	    # version 8.0 and above of icpc choke on multiply defined symbols
13826	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13827	    # earlier do not add the objects themselves.
13828	    case `$CC -V 2>&1` in
13829	      *"Version 7."*)
13830	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831		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'
13832		;;
13833	      *)  # Version 8.0 or newer
13834	        tmp_idyn=
13835	        case $host_cpu in
13836		  ia64*) tmp_idyn=' -i_dynamic';;
13837		esac
13838	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13839		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'
13840		;;
13841	    esac
13842	    archive_cmds_need_lc_CXX=no
13843	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13844	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13845	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13846	    ;;
13847          pgCC* | pgcpp*)
13848            # Portland Group C++ compiler
13849	    case `$CC -V` in
13850	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13851	      prelink_cmds_CXX='tpldir=Template.dir~
13852		rm -rf $tpldir~
13853		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13854		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13855	      old_archive_cmds_CXX='tpldir=Template.dir~
13856		rm -rf $tpldir~
13857		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13858		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13859		$RANLIB $oldlib'
13860	      archive_cmds_CXX='tpldir=Template.dir~
13861		rm -rf $tpldir~
13862		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13863		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13864	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13865		rm -rf $tpldir~
13866		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13867		$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'
13868	      ;;
13869	    *) # Version 6 and above use weak symbols
13870	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13871	      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'
13872	      ;;
13873	    esac
13874
13875	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13876	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13877	    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'
13878            ;;
13879	  cxx*)
13880	    # Compaq C++
13881	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13882	    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'
13883
13884	    runpath_var=LD_RUN_PATH
13885	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13886	    hardcode_libdir_separator_CXX=:
13887
13888	    # Commands to make compiler produce verbose output that lists
13889	    # what "hidden" libraries, object files and flags are used when
13890	    # linking a shared library.
13891	    #
13892	    # There doesn't appear to be a way to prevent this compiler from
13893	    # explicitly linking system object files so we need to strip them
13894	    # from the output so that they don't get included in the library
13895	    # dependencies.
13896	    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'
13897	    ;;
13898	  xl* | mpixl* | bgxl*)
13899	    # IBM XL 8.0 on PPC, with GNU ld
13900	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13901	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13902	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13903	    if test "x$supports_anon_versioning" = xyes; then
13904	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13905		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13906		echo "local: *; };" >> $output_objdir/$libname.ver~
13907		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13908	    fi
13909	    ;;
13910	  *)
13911	    case `$CC -V 2>&1 | sed 5q` in
13912	    *Sun\ C*)
13913	      # Sun C++ 5.9
13914	      no_undefined_flag_CXX=' -zdefs'
13915	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13916	      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'
13917	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13918	      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'
13919	      compiler_needs_object_CXX=yes
13920
13921	      # Not sure whether something based on
13922	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13923	      # would be better.
13924	      output_verbose_link_cmd='func_echo_all'
13925
13926	      # Archives containing C++ object files must be created using
13927	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13928	      # necessary to make sure instantiated templates are included
13929	      # in the archive.
13930	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13931	      ;;
13932	    esac
13933	    ;;
13934	esac
13935	;;
13936
13937      lynxos*)
13938        # FIXME: insert proper C++ library support
13939	ld_shlibs_CXX=no
13940	;;
13941
13942      m88k*)
13943        # FIXME: insert proper C++ library support
13944        ld_shlibs_CXX=no
13945	;;
13946
13947      mvs*)
13948        case $cc_basename in
13949          cxx*)
13950	    # FIXME: insert proper C++ library support
13951	    ld_shlibs_CXX=no
13952	    ;;
13953	  *)
13954	    # FIXME: insert proper C++ library support
13955	    ld_shlibs_CXX=no
13956	    ;;
13957	esac
13958	;;
13959
13960      netbsd*)
13961        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13962	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13963	  wlarc=
13964	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13965	  hardcode_direct_CXX=yes
13966	  hardcode_shlibpath_var_CXX=no
13967	fi
13968	# Workaround some broken pre-1.5 toolchains
13969	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13970	;;
13971
13972      *nto* | *qnx*)
13973        ld_shlibs_CXX=yes
13974	;;
13975
13976      openbsd2*)
13977        # C++ shared libraries are fairly broken
13978	ld_shlibs_CXX=no
13979	;;
13980
13981      openbsd*)
13982	if test -f /usr/libexec/ld.so; then
13983	  hardcode_direct_CXX=yes
13984	  hardcode_shlibpath_var_CXX=no
13985	  hardcode_direct_absolute_CXX=yes
13986	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13987	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13988	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13990	    export_dynamic_flag_spec_CXX='${wl}-E'
13991	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13992	  fi
13993	  output_verbose_link_cmd=func_echo_all
13994	else
13995	  ld_shlibs_CXX=no
13996	fi
13997	;;
13998
13999      osf3* | osf4* | osf5*)
14000        case $cc_basename in
14001          KCC*)
14002	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14003
14004	    # KCC will only create a shared library if the output file
14005	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14006	    # to its proper name (with version) after linking.
14007	    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'
14008
14009	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14010	    hardcode_libdir_separator_CXX=:
14011
14012	    # Archives containing C++ object files must be created using
14013	    # the KAI C++ compiler.
14014	    case $host in
14015	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14016	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14017	    esac
14018	    ;;
14019          RCC*)
14020	    # Rational C++ 2.4.1
14021	    # FIXME: insert proper C++ library support
14022	    ld_shlibs_CXX=no
14023	    ;;
14024          cxx*)
14025	    case $host in
14026	      osf3*)
14027	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14028	        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'
14029	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14030		;;
14031	      *)
14032	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14033	        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'
14034	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14035	          echo "-hidden">> $lib.exp~
14036	          $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~
14037	          $RM $lib.exp'
14038	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14039		;;
14040	    esac
14041
14042	    hardcode_libdir_separator_CXX=:
14043
14044	    # Commands to make compiler produce verbose output that lists
14045	    # what "hidden" libraries, object files and flags are used when
14046	    # linking a shared library.
14047	    #
14048	    # There doesn't appear to be a way to prevent this compiler from
14049	    # explicitly linking system object files so we need to strip them
14050	    # from the output so that they don't get included in the library
14051	    # dependencies.
14052	    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"'
14053	    ;;
14054	  *)
14055	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14056	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14057	      case $host in
14058	        osf3*)
14059	          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'
14060		  ;;
14061	        *)
14062	          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'
14063		  ;;
14064	      esac
14065
14066	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14067	      hardcode_libdir_separator_CXX=:
14068
14069	      # Commands to make compiler produce verbose output that lists
14070	      # what "hidden" libraries, object files and flags are used when
14071	      # linking a shared library.
14072	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14073
14074	    else
14075	      # FIXME: insert proper C++ library support
14076	      ld_shlibs_CXX=no
14077	    fi
14078	    ;;
14079        esac
14080        ;;
14081
14082      psos*)
14083        # FIXME: insert proper C++ library support
14084        ld_shlibs_CXX=no
14085        ;;
14086
14087      sunos4*)
14088        case $cc_basename in
14089          CC*)
14090	    # Sun C++ 4.x
14091	    # FIXME: insert proper C++ library support
14092	    ld_shlibs_CXX=no
14093	    ;;
14094          lcc*)
14095	    # Lucid
14096	    # FIXME: insert proper C++ library support
14097	    ld_shlibs_CXX=no
14098	    ;;
14099          *)
14100	    # FIXME: insert proper C++ library support
14101	    ld_shlibs_CXX=no
14102	    ;;
14103        esac
14104        ;;
14105
14106      solaris*)
14107        case $cc_basename in
14108          CC* | sunCC*)
14109	    # Sun C++ 4.2, 5.x and Centerline C++
14110            archive_cmds_need_lc_CXX=yes
14111	    no_undefined_flag_CXX=' -zdefs'
14112	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14113	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14114	      $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'
14115
14116	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14117	    hardcode_shlibpath_var_CXX=no
14118	    case $host_os in
14119	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14120	      *)
14121		# The compiler driver will combine and reorder linker options,
14122		# but understands `-z linker_flag'.
14123	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14124		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14125	        ;;
14126	    esac
14127	    link_all_deplibs_CXX=yes
14128
14129	    output_verbose_link_cmd='func_echo_all'
14130
14131	    # Archives containing C++ object files must be created using
14132	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14133	    # necessary to make sure instantiated templates are included
14134	    # in the archive.
14135	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14136	    ;;
14137          gcx*)
14138	    # Green Hills C++ Compiler
14139	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14140
14141	    # The C++ compiler must be used to create the archive.
14142	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14143	    ;;
14144          *)
14145	    # GNU C++ compiler with Solaris linker
14146	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14147	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14148	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14149	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14152
14153	        # Commands to make compiler produce verbose output that lists
14154	        # what "hidden" libraries, object files and flags are used when
14155	        # linking a shared library.
14156	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14157	      else
14158	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14159	        # platform.
14160	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14161	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14162		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14163
14164	        # Commands to make compiler produce verbose output that lists
14165	        # what "hidden" libraries, object files and flags are used when
14166	        # linking a shared library.
14167	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14168	      fi
14169
14170	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14171	      case $host_os in
14172		solaris2.[0-5] | solaris2.[0-5].*) ;;
14173		*)
14174		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14175		  ;;
14176	      esac
14177	    fi
14178	    ;;
14179        esac
14180        ;;
14181
14182    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14183      no_undefined_flag_CXX='${wl}-z,text'
14184      archive_cmds_need_lc_CXX=no
14185      hardcode_shlibpath_var_CXX=no
14186      runpath_var='LD_RUN_PATH'
14187
14188      case $cc_basename in
14189        CC*)
14190	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14191	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14192	  ;;
14193	*)
14194	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14196	  ;;
14197      esac
14198      ;;
14199
14200      sysv5* | sco3.2v5* | sco5v6*)
14201	# Note: We can NOT use -z defs as we might desire, because we do not
14202	# link with -lc, and that would cause any symbols used from libc to
14203	# always be unresolved, which means just about no library would
14204	# ever link correctly.  If we're not using GNU ld we use -z text
14205	# though, which does catch some bad symbols but isn't as heavy-handed
14206	# as -z defs.
14207	no_undefined_flag_CXX='${wl}-z,text'
14208	allow_undefined_flag_CXX='${wl}-z,nodefs'
14209	archive_cmds_need_lc_CXX=no
14210	hardcode_shlibpath_var_CXX=no
14211	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14212	hardcode_libdir_separator_CXX=':'
14213	link_all_deplibs_CXX=yes
14214	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14215	runpath_var='LD_RUN_PATH'
14216
14217	case $cc_basename in
14218          CC*)
14219	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14220	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14221	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14222	      '"$old_archive_cmds_CXX"
14223	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14224	      '"$reload_cmds_CXX"
14225	    ;;
14226	  *)
14227	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14228	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14229	    ;;
14230	esac
14231      ;;
14232
14233      tandem*)
14234        case $cc_basename in
14235          NCC*)
14236	    # NonStop-UX NCC 3.20
14237	    # FIXME: insert proper C++ library support
14238	    ld_shlibs_CXX=no
14239	    ;;
14240          *)
14241	    # FIXME: insert proper C++ library support
14242	    ld_shlibs_CXX=no
14243	    ;;
14244        esac
14245        ;;
14246
14247      vxworks*)
14248        # FIXME: insert proper C++ library support
14249        ld_shlibs_CXX=no
14250        ;;
14251
14252      *)
14253        # FIXME: insert proper C++ library support
14254        ld_shlibs_CXX=no
14255        ;;
14256    esac
14257
14258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14259$as_echo "$ld_shlibs_CXX" >&6; }
14260    test "$ld_shlibs_CXX" = no && can_build_shared=no
14261
14262    GCC_CXX="$GXX"
14263    LD_CXX="$LD"
14264
14265    ## CAVEAT EMPTOR:
14266    ## There is no encapsulation within the following macros, do not change
14267    ## the running order or otherwise move them around unless you know exactly
14268    ## what you are doing...
14269    # Dependencies to place before and after the object being linked:
14270predep_objects_CXX=
14271postdep_objects_CXX=
14272predeps_CXX=
14273postdeps_CXX=
14274compiler_lib_search_path_CXX=
14275
14276cat > conftest.$ac_ext <<_LT_EOF
14277class Foo
14278{
14279public:
14280  Foo (void) { a = 0; }
14281private:
14282  int a;
14283};
14284_LT_EOF
14285
14286
14287_lt_libdeps_save_CFLAGS=$CFLAGS
14288case "$CC $CFLAGS " in #(
14289*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14290*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14291*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14292esac
14293
14294if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14295  (eval $ac_compile) 2>&5
14296  ac_status=$?
14297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14298  test $ac_status = 0; }; then
14299  # Parse the compiler output and extract the necessary
14300  # objects, libraries and library flags.
14301
14302  # Sentinel used to keep track of whether or not we are before
14303  # the conftest object file.
14304  pre_test_object_deps_done=no
14305
14306  for p in `eval "$output_verbose_link_cmd"`; do
14307    case ${prev}${p} in
14308
14309    -L* | -R* | -l*)
14310       # Some compilers place space between "-{L,R}" and the path.
14311       # Remove the space.
14312       if test $p = "-L" ||
14313          test $p = "-R"; then
14314	 prev=$p
14315	 continue
14316       fi
14317
14318       # Expand the sysroot to ease extracting the directories later.
14319       if test -z "$prev"; then
14320         case $p in
14321         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14322         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14323         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14324         esac
14325       fi
14326       case $p in
14327       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14328       esac
14329       if test "$pre_test_object_deps_done" = no; then
14330	 case ${prev} in
14331	 -L | -R)
14332	   # Internal compiler library paths should come after those
14333	   # provided the user.  The postdeps already come after the
14334	   # user supplied libs so there is no need to process them.
14335	   if test -z "$compiler_lib_search_path_CXX"; then
14336	     compiler_lib_search_path_CXX="${prev}${p}"
14337	   else
14338	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14339	   fi
14340	   ;;
14341	 # The "-l" case would never come before the object being
14342	 # linked, so don't bother handling this case.
14343	 esac
14344       else
14345	 if test -z "$postdeps_CXX"; then
14346	   postdeps_CXX="${prev}${p}"
14347	 else
14348	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14349	 fi
14350       fi
14351       prev=
14352       ;;
14353
14354    *.lto.$objext) ;; # Ignore GCC LTO objects
14355    *.$objext)
14356       # This assumes that the test object file only shows up
14357       # once in the compiler output.
14358       if test "$p" = "conftest.$objext"; then
14359	 pre_test_object_deps_done=yes
14360	 continue
14361       fi
14362
14363       if test "$pre_test_object_deps_done" = no; then
14364	 if test -z "$predep_objects_CXX"; then
14365	   predep_objects_CXX="$p"
14366	 else
14367	   predep_objects_CXX="$predep_objects_CXX $p"
14368	 fi
14369       else
14370	 if test -z "$postdep_objects_CXX"; then
14371	   postdep_objects_CXX="$p"
14372	 else
14373	   postdep_objects_CXX="$postdep_objects_CXX $p"
14374	 fi
14375       fi
14376       ;;
14377
14378    *) ;; # Ignore the rest.
14379
14380    esac
14381  done
14382
14383  # Clean up.
14384  rm -f a.out a.exe
14385else
14386  echo "libtool.m4: error: problem compiling CXX test program"
14387fi
14388
14389$RM -f confest.$objext
14390CFLAGS=$_lt_libdeps_save_CFLAGS
14391
14392# PORTME: override above test on systems where it is broken
14393case $host_os in
14394interix[3-9]*)
14395  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14396  # hack all around it, let's just trust "g++" to DTRT.
14397  predep_objects_CXX=
14398  postdep_objects_CXX=
14399  postdeps_CXX=
14400  ;;
14401
14402linux*)
14403  case `$CC -V 2>&1 | sed 5q` in
14404  *Sun\ C*)
14405    # Sun C++ 5.9
14406
14407    # The more standards-conforming stlport4 library is
14408    # incompatible with the Cstd library. Avoid specifying
14409    # it if it's in CXXFLAGS. Ignore libCrun as
14410    # -library=stlport4 depends on it.
14411    case " $CXX $CXXFLAGS " in
14412    *" -library=stlport4 "*)
14413      solaris_use_stlport4=yes
14414      ;;
14415    esac
14416
14417    if test "$solaris_use_stlport4" != yes; then
14418      postdeps_CXX='-library=Cstd -library=Crun'
14419    fi
14420    ;;
14421  esac
14422  ;;
14423
14424solaris*)
14425  case $cc_basename in
14426  CC* | sunCC*)
14427    # The more standards-conforming stlport4 library is
14428    # incompatible with the Cstd library. Avoid specifying
14429    # it if it's in CXXFLAGS. Ignore libCrun as
14430    # -library=stlport4 depends on it.
14431    case " $CXX $CXXFLAGS " in
14432    *" -library=stlport4 "*)
14433      solaris_use_stlport4=yes
14434      ;;
14435    esac
14436
14437    # Adding this requires a known-good setup of shared libraries for
14438    # Sun compiler versions before 5.6, else PIC objects from an old
14439    # archive will be linked into the output, leading to subtle bugs.
14440    if test "$solaris_use_stlport4" != yes; then
14441      postdeps_CXX='-library=Cstd -library=Crun'
14442    fi
14443    ;;
14444  esac
14445  ;;
14446esac
14447
14448
14449case " $postdeps_CXX " in
14450*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14451esac
14452 compiler_lib_search_dirs_CXX=
14453if test -n "${compiler_lib_search_path_CXX}"; then
14454 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14455fi
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487    lt_prog_compiler_wl_CXX=
14488lt_prog_compiler_pic_CXX=
14489lt_prog_compiler_static_CXX=
14490
14491
14492  # C++ specific cases for pic, static, wl, etc.
14493  if test "$GXX" = yes; then
14494    lt_prog_compiler_wl_CXX='-Wl,'
14495    lt_prog_compiler_static_CXX='-static'
14496
14497    case $host_os in
14498    aix*)
14499      # All AIX code is PIC.
14500      if test "$host_cpu" = ia64; then
14501	# AIX 5 now supports IA64 processor
14502	lt_prog_compiler_static_CXX='-Bstatic'
14503      fi
14504      ;;
14505
14506    amigaos*)
14507      case $host_cpu in
14508      powerpc)
14509            # see comment about AmigaOS4 .so support
14510            lt_prog_compiler_pic_CXX='-fPIC'
14511        ;;
14512      m68k)
14513            # FIXME: we need at least 68020 code to build shared libraries, but
14514            # adding the `-m68020' flag to GCC prevents building anything better,
14515            # like `-m68040'.
14516            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14517        ;;
14518      esac
14519      ;;
14520
14521    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14522      # PIC is the default for these OSes.
14523      ;;
14524    mingw* | cygwin* | os2* | pw32* | cegcc*)
14525      # This hack is so that the source file can tell whether it is being
14526      # built for inclusion in a dll (and should export symbols for example).
14527      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14528      # (--disable-auto-import) libraries
14529      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14530      ;;
14531    darwin* | rhapsody*)
14532      # PIC is the default on this platform
14533      # Common symbols not allowed in MH_DYLIB files
14534      lt_prog_compiler_pic_CXX='-fno-common'
14535      ;;
14536    *djgpp*)
14537      # DJGPP does not support shared libraries at all
14538      lt_prog_compiler_pic_CXX=
14539      ;;
14540    haiku*)
14541      # PIC is the default for Haiku.
14542      # The "-static" flag exists, but is broken.
14543      lt_prog_compiler_static_CXX=
14544      ;;
14545    interix[3-9]*)
14546      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14547      # Instead, we relocate shared libraries at runtime.
14548      ;;
14549    sysv4*MP*)
14550      if test -d /usr/nec; then
14551	lt_prog_compiler_pic_CXX=-Kconform_pic
14552      fi
14553      ;;
14554    hpux*)
14555      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14556      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14557      # sets the default TLS model and affects inlining.
14558      case $host_cpu in
14559      hppa*64*)
14560	;;
14561      *)
14562	lt_prog_compiler_pic_CXX='-fPIC'
14563	;;
14564      esac
14565      ;;
14566    *qnx* | *nto*)
14567      # QNX uses GNU C++, but need to define -shared option too, otherwise
14568      # it will coredump.
14569      lt_prog_compiler_pic_CXX='-fPIC -shared'
14570      ;;
14571    *)
14572      lt_prog_compiler_pic_CXX='-fPIC'
14573      ;;
14574    esac
14575  else
14576    case $host_os in
14577      aix[4-9]*)
14578	# All AIX code is PIC.
14579	if test "$host_cpu" = ia64; then
14580	  # AIX 5 now supports IA64 processor
14581	  lt_prog_compiler_static_CXX='-Bstatic'
14582	else
14583	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14584	fi
14585	;;
14586      chorus*)
14587	case $cc_basename in
14588	cxch68*)
14589	  # Green Hills C++ Compiler
14590	  # _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"
14591	  ;;
14592	esac
14593	;;
14594      mingw* | cygwin* | os2* | pw32* | cegcc*)
14595	# This hack is so that the source file can tell whether it is being
14596	# built for inclusion in a dll (and should export symbols for example).
14597	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14598	;;
14599      dgux*)
14600	case $cc_basename in
14601	  ec++*)
14602	    lt_prog_compiler_pic_CXX='-KPIC'
14603	    ;;
14604	  ghcx*)
14605	    # Green Hills C++ Compiler
14606	    lt_prog_compiler_pic_CXX='-pic'
14607	    ;;
14608	  *)
14609	    ;;
14610	esac
14611	;;
14612      freebsd* | dragonfly*)
14613	# FreeBSD uses GNU C++
14614	;;
14615      hpux9* | hpux10* | hpux11*)
14616	case $cc_basename in
14617	  CC*)
14618	    lt_prog_compiler_wl_CXX='-Wl,'
14619	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14620	    if test "$host_cpu" != ia64; then
14621	      lt_prog_compiler_pic_CXX='+Z'
14622	    fi
14623	    ;;
14624	  aCC*)
14625	    lt_prog_compiler_wl_CXX='-Wl,'
14626	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14627	    case $host_cpu in
14628	    hppa*64*|ia64*)
14629	      # +Z the default
14630	      ;;
14631	    *)
14632	      lt_prog_compiler_pic_CXX='+Z'
14633	      ;;
14634	    esac
14635	    ;;
14636	  *)
14637	    ;;
14638	esac
14639	;;
14640      interix*)
14641	# This is c89, which is MS Visual C++ (no shared libs)
14642	# Anyone wants to do a port?
14643	;;
14644      irix5* | irix6* | nonstopux*)
14645	case $cc_basename in
14646	  CC*)
14647	    lt_prog_compiler_wl_CXX='-Wl,'
14648	    lt_prog_compiler_static_CXX='-non_shared'
14649	    # CC pic flag -KPIC is the default.
14650	    ;;
14651	  *)
14652	    ;;
14653	esac
14654	;;
14655      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14656	case $cc_basename in
14657	  KCC*)
14658	    # KAI C++ Compiler
14659	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14660	    lt_prog_compiler_pic_CXX='-fPIC'
14661	    ;;
14662	  ecpc* )
14663	    # old Intel C++ for x86_64 which still supported -KPIC.
14664	    lt_prog_compiler_wl_CXX='-Wl,'
14665	    lt_prog_compiler_pic_CXX='-KPIC'
14666	    lt_prog_compiler_static_CXX='-static'
14667	    ;;
14668	  icpc* )
14669	    # Intel C++, used to be incompatible with GCC.
14670	    # ICC 10 doesn't accept -KPIC any more.
14671	    lt_prog_compiler_wl_CXX='-Wl,'
14672	    lt_prog_compiler_pic_CXX='-fPIC'
14673	    lt_prog_compiler_static_CXX='-static'
14674	    ;;
14675	  pgCC* | pgcpp*)
14676	    # Portland Group C++ compiler
14677	    lt_prog_compiler_wl_CXX='-Wl,'
14678	    lt_prog_compiler_pic_CXX='-fpic'
14679	    lt_prog_compiler_static_CXX='-Bstatic'
14680	    ;;
14681	  cxx*)
14682	    # Compaq C++
14683	    # Make sure the PIC flag is empty.  It appears that all Alpha
14684	    # Linux and Compaq Tru64 Unix objects are PIC.
14685	    lt_prog_compiler_pic_CXX=
14686	    lt_prog_compiler_static_CXX='-non_shared'
14687	    ;;
14688	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14689	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14690	    lt_prog_compiler_wl_CXX='-Wl,'
14691	    lt_prog_compiler_pic_CXX='-qpic'
14692	    lt_prog_compiler_static_CXX='-qstaticlink'
14693	    ;;
14694	  *)
14695	    case `$CC -V 2>&1 | sed 5q` in
14696	    *Sun\ C*)
14697	      # Sun C++ 5.9
14698	      lt_prog_compiler_pic_CXX='-KPIC'
14699	      lt_prog_compiler_static_CXX='-Bstatic'
14700	      lt_prog_compiler_wl_CXX='-Qoption ld '
14701	      ;;
14702	    esac
14703	    ;;
14704	esac
14705	;;
14706      lynxos*)
14707	;;
14708      m88k*)
14709	;;
14710      mvs*)
14711	case $cc_basename in
14712	  cxx*)
14713	    lt_prog_compiler_pic_CXX='-W c,exportall'
14714	    ;;
14715	  *)
14716	    ;;
14717	esac
14718	;;
14719      netbsd*)
14720	;;
14721      *qnx* | *nto*)
14722        # QNX uses GNU C++, but need to define -shared option too, otherwise
14723        # it will coredump.
14724        lt_prog_compiler_pic_CXX='-fPIC -shared'
14725        ;;
14726      osf3* | osf4* | osf5*)
14727	case $cc_basename in
14728	  KCC*)
14729	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14730	    ;;
14731	  RCC*)
14732	    # Rational C++ 2.4.1
14733	    lt_prog_compiler_pic_CXX='-pic'
14734	    ;;
14735	  cxx*)
14736	    # Digital/Compaq C++
14737	    lt_prog_compiler_wl_CXX='-Wl,'
14738	    # Make sure the PIC flag is empty.  It appears that all Alpha
14739	    # Linux and Compaq Tru64 Unix objects are PIC.
14740	    lt_prog_compiler_pic_CXX=
14741	    lt_prog_compiler_static_CXX='-non_shared'
14742	    ;;
14743	  *)
14744	    ;;
14745	esac
14746	;;
14747      psos*)
14748	;;
14749      solaris*)
14750	case $cc_basename in
14751	  CC* | sunCC*)
14752	    # Sun C++ 4.2, 5.x and Centerline C++
14753	    lt_prog_compiler_pic_CXX='-KPIC'
14754	    lt_prog_compiler_static_CXX='-Bstatic'
14755	    lt_prog_compiler_wl_CXX='-Qoption ld '
14756	    ;;
14757	  gcx*)
14758	    # Green Hills C++ Compiler
14759	    lt_prog_compiler_pic_CXX='-PIC'
14760	    ;;
14761	  *)
14762	    ;;
14763	esac
14764	;;
14765      sunos4*)
14766	case $cc_basename in
14767	  CC*)
14768	    # Sun C++ 4.x
14769	    lt_prog_compiler_pic_CXX='-pic'
14770	    lt_prog_compiler_static_CXX='-Bstatic'
14771	    ;;
14772	  lcc*)
14773	    # Lucid
14774	    lt_prog_compiler_pic_CXX='-pic'
14775	    ;;
14776	  *)
14777	    ;;
14778	esac
14779	;;
14780      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14781	case $cc_basename in
14782	  CC*)
14783	    lt_prog_compiler_wl_CXX='-Wl,'
14784	    lt_prog_compiler_pic_CXX='-KPIC'
14785	    lt_prog_compiler_static_CXX='-Bstatic'
14786	    ;;
14787	esac
14788	;;
14789      tandem*)
14790	case $cc_basename in
14791	  NCC*)
14792	    # NonStop-UX NCC 3.20
14793	    lt_prog_compiler_pic_CXX='-KPIC'
14794	    ;;
14795	  *)
14796	    ;;
14797	esac
14798	;;
14799      vxworks*)
14800	;;
14801      *)
14802	lt_prog_compiler_can_build_shared_CXX=no
14803	;;
14804    esac
14805  fi
14806
14807case $host_os in
14808  # For platforms which do not support PIC, -DPIC is meaningless:
14809  *djgpp*)
14810    lt_prog_compiler_pic_CXX=
14811    ;;
14812  *)
14813    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14814    ;;
14815esac
14816
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14818$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14819if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14820  $as_echo_n "(cached) " >&6
14821else
14822  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14823fi
14824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14825$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14826lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14827
14828#
14829# Check to make sure the PIC flag actually works.
14830#
14831if test -n "$lt_prog_compiler_pic_CXX"; then
14832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14833$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14834if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14835  $as_echo_n "(cached) " >&6
14836else
14837  lt_cv_prog_compiler_pic_works_CXX=no
14838   ac_outfile=conftest.$ac_objext
14839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14840   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14841   # Insert the option either (1) after the last *FLAGS variable, or
14842   # (2) before a word containing "conftest.", or (3) at the end.
14843   # Note that $ac_compile itself does not contain backslashes and begins
14844   # with a dollar sign (not a hyphen), so the echo should work correctly.
14845   # The option is referenced via a variable to avoid confusing sed.
14846   lt_compile=`echo "$ac_compile" | $SED \
14847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14849   -e 's:$: $lt_compiler_flag:'`
14850   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14851   (eval "$lt_compile" 2>conftest.err)
14852   ac_status=$?
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   if (exit $ac_status) && test -s "$ac_outfile"; then
14856     # The compiler can only warn and ignore the option if not recognized
14857     # So say no if there are warnings other than the usual output.
14858     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14859     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14860     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14861       lt_cv_prog_compiler_pic_works_CXX=yes
14862     fi
14863   fi
14864   $RM conftest*
14865
14866fi
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14868$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14869
14870if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14871    case $lt_prog_compiler_pic_CXX in
14872     "" | " "*) ;;
14873     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14874     esac
14875else
14876    lt_prog_compiler_pic_CXX=
14877     lt_prog_compiler_can_build_shared_CXX=no
14878fi
14879
14880fi
14881
14882
14883
14884
14885
14886#
14887# Check to make sure the static flag actually works.
14888#
14889wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14891$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14892if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14893  $as_echo_n "(cached) " >&6
14894else
14895  lt_cv_prog_compiler_static_works_CXX=no
14896   save_LDFLAGS="$LDFLAGS"
14897   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14898   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14899   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14900     # The linker can only warn and ignore the option if not recognized
14901     # So say no if there are warnings
14902     if test -s conftest.err; then
14903       # Append any errors to the config.log.
14904       cat conftest.err 1>&5
14905       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14906       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14907       if diff conftest.exp conftest.er2 >/dev/null; then
14908         lt_cv_prog_compiler_static_works_CXX=yes
14909       fi
14910     else
14911       lt_cv_prog_compiler_static_works_CXX=yes
14912     fi
14913   fi
14914   $RM -r conftest*
14915   LDFLAGS="$save_LDFLAGS"
14916
14917fi
14918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14919$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14920
14921if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14922    :
14923else
14924    lt_prog_compiler_static_CXX=
14925fi
14926
14927
14928
14929
14930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14931$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14932if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14933  $as_echo_n "(cached) " >&6
14934else
14935  lt_cv_prog_compiler_c_o_CXX=no
14936   $RM -r conftest 2>/dev/null
14937   mkdir conftest
14938   cd conftest
14939   mkdir out
14940   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941
14942   lt_compiler_flag="-o out/conftest2.$ac_objext"
14943   # Insert the option either (1) after the last *FLAGS variable, or
14944   # (2) before a word containing "conftest.", or (3) at the end.
14945   # Note that $ac_compile itself does not contain backslashes and begins
14946   # with a dollar sign (not a hyphen), so the echo should work correctly.
14947   lt_compile=`echo "$ac_compile" | $SED \
14948   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950   -e 's:$: $lt_compiler_flag:'`
14951   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14952   (eval "$lt_compile" 2>out/conftest.err)
14953   ac_status=$?
14954   cat out/conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14957   then
14958     # The compiler can only warn and ignore the option if not recognized
14959     # So say no if there are warnings
14960     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14961     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963       lt_cv_prog_compiler_c_o_CXX=yes
14964     fi
14965   fi
14966   chmod u+w . 2>&5
14967   $RM conftest*
14968   # SGI C++ compiler will create directory out/ii_files/ for
14969   # template instantiation
14970   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971   $RM out/* && rmdir out
14972   cd ..
14973   $RM -r conftest
14974   $RM conftest*
14975
14976fi
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14979
14980
14981
14982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14983$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14984if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14985  $as_echo_n "(cached) " >&6
14986else
14987  lt_cv_prog_compiler_c_o_CXX=no
14988   $RM -r conftest 2>/dev/null
14989   mkdir conftest
14990   cd conftest
14991   mkdir out
14992   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14993
14994   lt_compiler_flag="-o out/conftest2.$ac_objext"
14995   # Insert the option either (1) after the last *FLAGS variable, or
14996   # (2) before a word containing "conftest.", or (3) at the end.
14997   # Note that $ac_compile itself does not contain backslashes and begins
14998   # with a dollar sign (not a hyphen), so the echo should work correctly.
14999   lt_compile=`echo "$ac_compile" | $SED \
15000   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15001   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15002   -e 's:$: $lt_compiler_flag:'`
15003   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15004   (eval "$lt_compile" 2>out/conftest.err)
15005   ac_status=$?
15006   cat out/conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15009   then
15010     # The compiler can only warn and ignore the option if not recognized
15011     # So say no if there are warnings
15012     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15013     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15014     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15015       lt_cv_prog_compiler_c_o_CXX=yes
15016     fi
15017   fi
15018   chmod u+w . 2>&5
15019   $RM conftest*
15020   # SGI C++ compiler will create directory out/ii_files/ for
15021   # template instantiation
15022   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15023   $RM out/* && rmdir out
15024   cd ..
15025   $RM -r conftest
15026   $RM conftest*
15027
15028fi
15029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15030$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15031
15032
15033
15034
15035hard_links="nottested"
15036if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15037  # do not overwrite the value of need_locks provided by the user
15038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15039$as_echo_n "checking if we can lock with hard links... " >&6; }
15040  hard_links=yes
15041  $RM conftest*
15042  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15043  touch conftest.a
15044  ln conftest.a conftest.b 2>&5 || hard_links=no
15045  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15047$as_echo "$hard_links" >&6; }
15048  if test "$hard_links" = no; then
15049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15050$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15051    need_locks=warn
15052  fi
15053else
15054  need_locks=no
15055fi
15056
15057
15058
15059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15060$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15061
15062  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15063  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15064  case $host_os in
15065  aix[4-9]*)
15066    # If we're using GNU nm, then we don't want the "-C" option.
15067    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15068    # Also, AIX nm treats weak defined symbols like other global defined
15069    # symbols, whereas GNU nm marks them as "W".
15070    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15071      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15072    else
15073      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15074    fi
15075    ;;
15076  pw32*)
15077    export_symbols_cmds_CXX="$ltdll_cmds"
15078    ;;
15079  cygwin* | mingw* | cegcc*)
15080    case $cc_basename in
15081    cl*)
15082      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15083      ;;
15084    *)
15085      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'
15086      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15087      ;;
15088    esac
15089    ;;
15090  *)
15091    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15092    ;;
15093  esac
15094
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15096$as_echo "$ld_shlibs_CXX" >&6; }
15097test "$ld_shlibs_CXX" = no && can_build_shared=no
15098
15099with_gnu_ld_CXX=$with_gnu_ld
15100
15101
15102
15103
15104
15105
15106#
15107# Do we need to explicitly link libc?
15108#
15109case "x$archive_cmds_need_lc_CXX" in
15110x|xyes)
15111  # Assume -lc should be added
15112  archive_cmds_need_lc_CXX=yes
15113
15114  if test "$enable_shared" = yes && test "$GCC" = yes; then
15115    case $archive_cmds_CXX in
15116    *'~'*)
15117      # FIXME: we may have to deal with multi-command sequences.
15118      ;;
15119    '$CC '*)
15120      # Test whether the compiler implicitly links with -lc since on some
15121      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15122      # to ld, don't add -lc before -lgcc.
15123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15124$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15125if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15126  $as_echo_n "(cached) " >&6
15127else
15128  $RM conftest*
15129	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15130
15131	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15132  (eval $ac_compile) 2>&5
15133  ac_status=$?
15134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15135  test $ac_status = 0; } 2>conftest.err; then
15136	  soname=conftest
15137	  lib=conftest
15138	  libobjs=conftest.$ac_objext
15139	  deplibs=
15140	  wl=$lt_prog_compiler_wl_CXX
15141	  pic_flag=$lt_prog_compiler_pic_CXX
15142	  compiler_flags=-v
15143	  linker_flags=-v
15144	  verstring=
15145	  output_objdir=.
15146	  libname=conftest
15147	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15148	  allow_undefined_flag_CXX=
15149	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15150  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15151  ac_status=$?
15152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15153  test $ac_status = 0; }
15154	  then
15155	    lt_cv_archive_cmds_need_lc_CXX=no
15156	  else
15157	    lt_cv_archive_cmds_need_lc_CXX=yes
15158	  fi
15159	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15160	else
15161	  cat conftest.err 1>&5
15162	fi
15163	$RM conftest*
15164
15165fi
15166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15167$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15168      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15169      ;;
15170    esac
15171  fi
15172  ;;
15173esac
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15237$as_echo_n "checking dynamic linker characteristics... " >&6; }
15238
15239library_names_spec=
15240libname_spec='lib$name'
15241soname_spec=
15242shrext_cmds=".so"
15243postinstall_cmds=
15244postuninstall_cmds=
15245finish_cmds=
15246finish_eval=
15247shlibpath_var=
15248shlibpath_overrides_runpath=unknown
15249version_type=none
15250dynamic_linker="$host_os ld.so"
15251sys_lib_dlsearch_path_spec="/lib /usr/lib"
15252need_lib_prefix=unknown
15253hardcode_into_libs=no
15254
15255# when you set need_version to no, make sure it does not cause -set_version
15256# flags to be left without arguments
15257need_version=unknown
15258
15259case $host_os in
15260aix3*)
15261  version_type=linux # correct to gnu/linux during the next big refactor
15262  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15263  shlibpath_var=LIBPATH
15264
15265  # AIX 3 has no versioning support, so we append a major version to the name.
15266  soname_spec='${libname}${release}${shared_ext}$major'
15267  ;;
15268
15269aix[4-9]*)
15270  version_type=linux # correct to gnu/linux during the next big refactor
15271  need_lib_prefix=no
15272  need_version=no
15273  hardcode_into_libs=yes
15274  if test "$host_cpu" = ia64; then
15275    # AIX 5 supports IA64
15276    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15277    shlibpath_var=LD_LIBRARY_PATH
15278  else
15279    # With GCC up to 2.95.x, collect2 would create an import file
15280    # for dependence libraries.  The import file would start with
15281    # the line `#! .'.  This would cause the generated library to
15282    # depend on `.', always an invalid library.  This was fixed in
15283    # development snapshots of GCC prior to 3.0.
15284    case $host_os in
15285      aix4 | aix4.[01] | aix4.[01].*)
15286      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15287	   echo ' yes '
15288	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15289	:
15290      else
15291	can_build_shared=no
15292      fi
15293      ;;
15294    esac
15295    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15296    # soname into executable. Probably we can add versioning support to
15297    # collect2, so additional links can be useful in future.
15298    if test "$aix_use_runtimelinking" = yes; then
15299      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15300      # instead of lib<name>.a to let people know that these are not
15301      # typical AIX shared libraries.
15302      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303    else
15304      # We preserve .a as extension for shared libraries through AIX4.2
15305      # and later when we are not doing run time linking.
15306      library_names_spec='${libname}${release}.a $libname.a'
15307      soname_spec='${libname}${release}${shared_ext}$major'
15308    fi
15309    shlibpath_var=LIBPATH
15310  fi
15311  ;;
15312
15313amigaos*)
15314  case $host_cpu in
15315  powerpc)
15316    # Since July 2007 AmigaOS4 officially supports .so libraries.
15317    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15318    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319    ;;
15320  m68k)
15321    library_names_spec='$libname.ixlibrary $libname.a'
15322    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15323    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15324    ;;
15325  esac
15326  ;;
15327
15328beos*)
15329  library_names_spec='${libname}${shared_ext}'
15330  dynamic_linker="$host_os ld.so"
15331  shlibpath_var=LIBRARY_PATH
15332  ;;
15333
15334bsdi[45]*)
15335  version_type=linux # correct to gnu/linux during the next big refactor
15336  need_version=no
15337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338  soname_spec='${libname}${release}${shared_ext}$major'
15339  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15340  shlibpath_var=LD_LIBRARY_PATH
15341  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15342  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15343  # the default ld.so.conf also contains /usr/contrib/lib and
15344  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15345  # libtool to hard-code these into programs
15346  ;;
15347
15348cygwin* | mingw* | pw32* | cegcc*)
15349  version_type=windows
15350  shrext_cmds=".dll"
15351  need_version=no
15352  need_lib_prefix=no
15353
15354  case $GCC,$cc_basename in
15355  yes,*)
15356    # gcc
15357    library_names_spec='$libname.dll.a'
15358    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15359    postinstall_cmds='base_file=`basename \${file}`~
15360      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15361      dldir=$destdir/`dirname \$dlpath`~
15362      test -d \$dldir || mkdir -p \$dldir~
15363      $install_prog $dir/$dlname \$dldir/$dlname~
15364      chmod a+x \$dldir/$dlname~
15365      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15366        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15367      fi'
15368    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15369      dlpath=$dir/\$dldll~
15370       $RM \$dlpath'
15371    shlibpath_overrides_runpath=yes
15372
15373    case $host_os in
15374    cygwin*)
15375      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15376      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15377
15378      ;;
15379    mingw* | cegcc*)
15380      # MinGW DLLs use traditional 'lib' prefix
15381      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15382      ;;
15383    pw32*)
15384      # pw32 DLLs use 'pw' prefix rather than 'lib'
15385      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15386      ;;
15387    esac
15388    dynamic_linker='Win32 ld.exe'
15389    ;;
15390
15391  *,cl*)
15392    # Native MSVC
15393    libname_spec='$name'
15394    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15395    library_names_spec='${libname}.dll.lib'
15396
15397    case $build_os in
15398    mingw*)
15399      sys_lib_search_path_spec=
15400      lt_save_ifs=$IFS
15401      IFS=';'
15402      for lt_path in $LIB
15403      do
15404        IFS=$lt_save_ifs
15405        # Let DOS variable expansion print the short 8.3 style file name.
15406        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15407        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15408      done
15409      IFS=$lt_save_ifs
15410      # Convert to MSYS style.
15411      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15412      ;;
15413    cygwin*)
15414      # Convert to unix form, then to dos form, then back to unix form
15415      # but this time dos style (no spaces!) so that the unix form looks
15416      # like /cygdrive/c/PROGRA~1:/cygdr...
15417      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15418      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15419      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15420      ;;
15421    *)
15422      sys_lib_search_path_spec="$LIB"
15423      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15424        # It is most probably a Windows format PATH.
15425        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15426      else
15427        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15428      fi
15429      # FIXME: find the short name or the path components, as spaces are
15430      # common. (e.g. "Program Files" -> "PROGRA~1")
15431      ;;
15432    esac
15433
15434    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15435    postinstall_cmds='base_file=`basename \${file}`~
15436      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15437      dldir=$destdir/`dirname \$dlpath`~
15438      test -d \$dldir || mkdir -p \$dldir~
15439      $install_prog $dir/$dlname \$dldir/$dlname'
15440    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15441      dlpath=$dir/\$dldll~
15442       $RM \$dlpath'
15443    shlibpath_overrides_runpath=yes
15444    dynamic_linker='Win32 link.exe'
15445    ;;
15446
15447  *)
15448    # Assume MSVC wrapper
15449    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15450    dynamic_linker='Win32 ld.exe'
15451    ;;
15452  esac
15453  # FIXME: first we should search . and the directory the executable is in
15454  shlibpath_var=PATH
15455  ;;
15456
15457darwin* | rhapsody*)
15458  dynamic_linker="$host_os dyld"
15459  version_type=darwin
15460  need_lib_prefix=no
15461  need_version=no
15462  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15463  soname_spec='${libname}${release}${major}$shared_ext'
15464  shlibpath_overrides_runpath=yes
15465  shlibpath_var=DYLD_LIBRARY_PATH
15466  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15467
15468  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15469  ;;
15470
15471dgux*)
15472  version_type=linux # correct to gnu/linux during the next big refactor
15473  need_lib_prefix=no
15474  need_version=no
15475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15476  soname_spec='${libname}${release}${shared_ext}$major'
15477  shlibpath_var=LD_LIBRARY_PATH
15478  ;;
15479
15480freebsd* | dragonfly*)
15481  # DragonFly does not have aout.  When/if they implement a new
15482  # versioning mechanism, adjust this.
15483  if test -x /usr/bin/objformat; then
15484    objformat=`/usr/bin/objformat`
15485  else
15486    case $host_os in
15487    freebsd[23].*) objformat=aout ;;
15488    *) objformat=elf ;;
15489    esac
15490  fi
15491  # Handle Gentoo/FreeBSD as it was Linux
15492  case $host_vendor in
15493    gentoo)
15494      version_type=linux ;;
15495    *)
15496      version_type=freebsd-$objformat ;;
15497  esac
15498
15499  case $version_type in
15500    freebsd-elf*)
15501      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15502      need_version=no
15503      need_lib_prefix=no
15504      ;;
15505    freebsd-*)
15506      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15507      need_version=yes
15508      ;;
15509    linux)
15510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15511      soname_spec='${libname}${release}${shared_ext}$major'
15512      need_lib_prefix=no
15513      need_version=no
15514      ;;
15515  esac
15516  shlibpath_var=LD_LIBRARY_PATH
15517  case $host_os in
15518  freebsd2.*)
15519    shlibpath_overrides_runpath=yes
15520    ;;
15521  freebsd3.[01]* | freebsdelf3.[01]*)
15522    shlibpath_overrides_runpath=yes
15523    hardcode_into_libs=yes
15524    ;;
15525  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15526  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15527    shlibpath_overrides_runpath=no
15528    hardcode_into_libs=yes
15529    ;;
15530  *) # from 4.6 on, and DragonFly
15531    shlibpath_overrides_runpath=yes
15532    hardcode_into_libs=yes
15533    ;;
15534  esac
15535  ;;
15536
15537gnu*)
15538  version_type=linux # correct to gnu/linux during the next big refactor
15539  need_lib_prefix=no
15540  need_version=no
15541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15542  soname_spec='${libname}${release}${shared_ext}$major'
15543  shlibpath_var=LD_LIBRARY_PATH
15544  shlibpath_overrides_runpath=no
15545  hardcode_into_libs=yes
15546  ;;
15547
15548haiku*)
15549  version_type=linux # correct to gnu/linux during the next big refactor
15550  need_lib_prefix=no
15551  need_version=no
15552  dynamic_linker="$host_os runtime_loader"
15553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15554  soname_spec='${libname}${release}${shared_ext}$major'
15555  shlibpath_var=LIBRARY_PATH
15556  shlibpath_overrides_runpath=yes
15557  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15558  hardcode_into_libs=yes
15559  ;;
15560
15561hpux9* | hpux10* | hpux11*)
15562  # Give a soname corresponding to the major version so that dld.sl refuses to
15563  # link against other versions.
15564  version_type=sunos
15565  need_lib_prefix=no
15566  need_version=no
15567  case $host_cpu in
15568  ia64*)
15569    shrext_cmds='.so'
15570    hardcode_into_libs=yes
15571    dynamic_linker="$host_os dld.so"
15572    shlibpath_var=LD_LIBRARY_PATH
15573    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575    soname_spec='${libname}${release}${shared_ext}$major'
15576    if test "X$HPUX_IA64_MODE" = X32; then
15577      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15578    else
15579      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15580    fi
15581    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582    ;;
15583  hppa*64*)
15584    shrext_cmds='.sl'
15585    hardcode_into_libs=yes
15586    dynamic_linker="$host_os dld.sl"
15587    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15588    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590    soname_spec='${libname}${release}${shared_ext}$major'
15591    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15592    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15593    ;;
15594  *)
15595    shrext_cmds='.sl'
15596    dynamic_linker="$host_os dld.sl"
15597    shlibpath_var=SHLIB_PATH
15598    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15599    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600    soname_spec='${libname}${release}${shared_ext}$major'
15601    ;;
15602  esac
15603  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15604  postinstall_cmds='chmod 555 $lib'
15605  # or fails outright, so override atomically:
15606  install_override_mode=555
15607  ;;
15608
15609interix[3-9]*)
15610  version_type=linux # correct to gnu/linux during the next big refactor
15611  need_lib_prefix=no
15612  need_version=no
15613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15614  soname_spec='${libname}${release}${shared_ext}$major'
15615  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15616  shlibpath_var=LD_LIBRARY_PATH
15617  shlibpath_overrides_runpath=no
15618  hardcode_into_libs=yes
15619  ;;
15620
15621irix5* | irix6* | nonstopux*)
15622  case $host_os in
15623    nonstopux*) version_type=nonstopux ;;
15624    *)
15625	if test "$lt_cv_prog_gnu_ld" = yes; then
15626		version_type=linux # correct to gnu/linux during the next big refactor
15627	else
15628		version_type=irix
15629	fi ;;
15630  esac
15631  need_lib_prefix=no
15632  need_version=no
15633  soname_spec='${libname}${release}${shared_ext}$major'
15634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15635  case $host_os in
15636  irix5* | nonstopux*)
15637    libsuff= shlibsuff=
15638    ;;
15639  *)
15640    case $LD in # libtool.m4 will add one of these switches to LD
15641    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15642      libsuff= shlibsuff= libmagic=32-bit;;
15643    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15644      libsuff=32 shlibsuff=N32 libmagic=N32;;
15645    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15646      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15647    *) libsuff= shlibsuff= libmagic=never-match;;
15648    esac
15649    ;;
15650  esac
15651  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15652  shlibpath_overrides_runpath=no
15653  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15654  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15655  hardcode_into_libs=yes
15656  ;;
15657
15658# No shared lib support for Linux oldld, aout, or coff.
15659linux*oldld* | linux*aout* | linux*coff*)
15660  dynamic_linker=no
15661  ;;
15662
15663# This must be glibc/ELF.
15664linux* | k*bsd*-gnu | kopensolaris*-gnu)
15665  version_type=linux # correct to gnu/linux during the next big refactor
15666  need_lib_prefix=no
15667  need_version=no
15668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669  soname_spec='${libname}${release}${shared_ext}$major'
15670  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15671  shlibpath_var=LD_LIBRARY_PATH
15672  shlibpath_overrides_runpath=no
15673
15674  # Some binutils ld are patched to set DT_RUNPATH
15675  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15676  $as_echo_n "(cached) " >&6
15677else
15678  lt_cv_shlibpath_overrides_runpath=no
15679    save_LDFLAGS=$LDFLAGS
15680    save_libdir=$libdir
15681    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15682	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684/* end confdefs.h.  */
15685
15686int
15687main ()
15688{
15689
15690  ;
15691  return 0;
15692}
15693_ACEOF
15694if ac_fn_cxx_try_link "$LINENO"; then :
15695  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15696  lt_cv_shlibpath_overrides_runpath=yes
15697fi
15698fi
15699rm -f core conftest.err conftest.$ac_objext \
15700    conftest$ac_exeext conftest.$ac_ext
15701    LDFLAGS=$save_LDFLAGS
15702    libdir=$save_libdir
15703
15704fi
15705
15706  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15707
15708  # This implies no fast_install, which is unacceptable.
15709  # Some rework will be needed to allow for fast_install
15710  # before this can be enabled.
15711  hardcode_into_libs=yes
15712
15713  # Append ld.so.conf contents to the search path
15714  if test -f /etc/ld.so.conf; then
15715    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' ' '`
15716    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15717  fi
15718
15719  # We used to test for /lib/ld.so.1 and disable shared libraries on
15720  # powerpc, because MkLinux only supported shared libraries with the
15721  # GNU dynamic linker.  Since this was broken with cross compilers,
15722  # most powerpc-linux boxes support dynamic linking these days and
15723  # people can always --disable-shared, the test was removed, and we
15724  # assume the GNU/Linux dynamic linker is in use.
15725  dynamic_linker='GNU/Linux ld.so'
15726  ;;
15727
15728netbsd*)
15729  version_type=sunos
15730  need_lib_prefix=no
15731  need_version=no
15732  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15733    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15734    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15735    dynamic_linker='NetBSD (a.out) ld.so'
15736  else
15737    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15738    soname_spec='${libname}${release}${shared_ext}$major'
15739    dynamic_linker='NetBSD ld.elf_so'
15740  fi
15741  shlibpath_var=LD_LIBRARY_PATH
15742  shlibpath_overrides_runpath=yes
15743  hardcode_into_libs=yes
15744  ;;
15745
15746newsos6)
15747  version_type=linux # correct to gnu/linux during the next big refactor
15748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749  shlibpath_var=LD_LIBRARY_PATH
15750  shlibpath_overrides_runpath=yes
15751  ;;
15752
15753*nto* | *qnx*)
15754  version_type=qnx
15755  need_lib_prefix=no
15756  need_version=no
15757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758  soname_spec='${libname}${release}${shared_ext}$major'
15759  shlibpath_var=LD_LIBRARY_PATH
15760  shlibpath_overrides_runpath=no
15761  hardcode_into_libs=yes
15762  dynamic_linker='ldqnx.so'
15763  ;;
15764
15765openbsd*)
15766  version_type=sunos
15767  sys_lib_dlsearch_path_spec="/usr/lib"
15768  need_lib_prefix=no
15769  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15770  case $host_os in
15771    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15772    *)				need_version=no  ;;
15773  esac
15774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776  shlibpath_var=LD_LIBRARY_PATH
15777  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778    case $host_os in
15779      openbsd2.[89] | openbsd2.[89].*)
15780	shlibpath_overrides_runpath=no
15781	;;
15782      *)
15783	shlibpath_overrides_runpath=yes
15784	;;
15785      esac
15786  else
15787    shlibpath_overrides_runpath=yes
15788  fi
15789  ;;
15790
15791os2*)
15792  libname_spec='$name'
15793  shrext_cmds=".dll"
15794  need_lib_prefix=no
15795  library_names_spec='$libname${shared_ext} $libname.a'
15796  dynamic_linker='OS/2 ld.exe'
15797  shlibpath_var=LIBPATH
15798  ;;
15799
15800osf3* | osf4* | osf5*)
15801  version_type=osf
15802  need_lib_prefix=no
15803  need_version=no
15804  soname_spec='${libname}${release}${shared_ext}$major'
15805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806  shlibpath_var=LD_LIBRARY_PATH
15807  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15808  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15809  ;;
15810
15811rdos*)
15812  dynamic_linker=no
15813  ;;
15814
15815solaris*)
15816  version_type=linux # correct to gnu/linux during the next big refactor
15817  need_lib_prefix=no
15818  need_version=no
15819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15820  soname_spec='${libname}${release}${shared_ext}$major'
15821  shlibpath_var=LD_LIBRARY_PATH
15822  shlibpath_overrides_runpath=yes
15823  hardcode_into_libs=yes
15824  # ldd complains unless libraries are executable
15825  postinstall_cmds='chmod +x $lib'
15826  ;;
15827
15828sunos4*)
15829  version_type=sunos
15830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15831  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15832  shlibpath_var=LD_LIBRARY_PATH
15833  shlibpath_overrides_runpath=yes
15834  if test "$with_gnu_ld" = yes; then
15835    need_lib_prefix=no
15836  fi
15837  need_version=yes
15838  ;;
15839
15840sysv4 | sysv4.3*)
15841  version_type=linux # correct to gnu/linux during the next big refactor
15842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843  soname_spec='${libname}${release}${shared_ext}$major'
15844  shlibpath_var=LD_LIBRARY_PATH
15845  case $host_vendor in
15846    sni)
15847      shlibpath_overrides_runpath=no
15848      need_lib_prefix=no
15849      runpath_var=LD_RUN_PATH
15850      ;;
15851    siemens)
15852      need_lib_prefix=no
15853      ;;
15854    motorola)
15855      need_lib_prefix=no
15856      need_version=no
15857      shlibpath_overrides_runpath=no
15858      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15859      ;;
15860  esac
15861  ;;
15862
15863sysv4*MP*)
15864  if test -d /usr/nec ;then
15865    version_type=linux # correct to gnu/linux during the next big refactor
15866    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15867    soname_spec='$libname${shared_ext}.$major'
15868    shlibpath_var=LD_LIBRARY_PATH
15869  fi
15870  ;;
15871
15872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15873  version_type=freebsd-elf
15874  need_lib_prefix=no
15875  need_version=no
15876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15877  soname_spec='${libname}${release}${shared_ext}$major'
15878  shlibpath_var=LD_LIBRARY_PATH
15879  shlibpath_overrides_runpath=yes
15880  hardcode_into_libs=yes
15881  if test "$with_gnu_ld" = yes; then
15882    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15883  else
15884    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15885    case $host_os in
15886      sco3.2v5*)
15887        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15888	;;
15889    esac
15890  fi
15891  sys_lib_dlsearch_path_spec='/usr/lib'
15892  ;;
15893
15894tpf*)
15895  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15896  version_type=linux # correct to gnu/linux during the next big refactor
15897  need_lib_prefix=no
15898  need_version=no
15899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900  shlibpath_var=LD_LIBRARY_PATH
15901  shlibpath_overrides_runpath=no
15902  hardcode_into_libs=yes
15903  ;;
15904
15905uts4*)
15906  version_type=linux # correct to gnu/linux during the next big refactor
15907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908  soname_spec='${libname}${release}${shared_ext}$major'
15909  shlibpath_var=LD_LIBRARY_PATH
15910  ;;
15911
15912*)
15913  dynamic_linker=no
15914  ;;
15915esac
15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15917$as_echo "$dynamic_linker" >&6; }
15918test "$dynamic_linker" = no && can_build_shared=no
15919
15920variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15921if test "$GCC" = yes; then
15922  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15923fi
15924
15925if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15926  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15927fi
15928if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15929  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15930fi
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15970$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15971hardcode_action_CXX=
15972if test -n "$hardcode_libdir_flag_spec_CXX" ||
15973   test -n "$runpath_var_CXX" ||
15974   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15975
15976  # We can hardcode non-existent directories.
15977  if test "$hardcode_direct_CXX" != no &&
15978     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15979     # have to relink, otherwise we might link with an installed library
15980     # when we should be linking with a yet-to-be-installed one
15981     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15982     test "$hardcode_minus_L_CXX" != no; then
15983    # Linking always hardcodes the temporary library directory.
15984    hardcode_action_CXX=relink
15985  else
15986    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15987    hardcode_action_CXX=immediate
15988  fi
15989else
15990  # We cannot hardcode anything, or else we can only hardcode existing
15991  # directories.
15992  hardcode_action_CXX=unsupported
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15995$as_echo "$hardcode_action_CXX" >&6; }
15996
15997if test "$hardcode_action_CXX" = relink ||
15998   test "$inherit_rpath_CXX" = yes; then
15999  # Fast installation is not supported
16000  enable_fast_install=no
16001elif test "$shlibpath_overrides_runpath" = yes ||
16002     test "$enable_shared" = no; then
16003  # Fast installation is not necessary
16004  enable_fast_install=needless
16005fi
16006
16007
16008
16009
16010
16011
16012
16013  fi # test -n "$compiler"
16014
16015  CC=$lt_save_CC
16016  CFLAGS=$lt_save_CFLAGS
16017  LDCXX=$LD
16018  LD=$lt_save_LD
16019  GCC=$lt_save_GCC
16020  with_gnu_ld=$lt_save_with_gnu_ld
16021  lt_cv_path_LDCXX=$lt_cv_path_LD
16022  lt_cv_path_LD=$lt_save_path_LD
16023  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16024  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16025fi # test "$_lt_caught_CXX_error" != yes
16026
16027ac_ext=c
16028ac_cpp='$CPP $CPPFLAGS'
16029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031ac_compiler_gnu=$ac_cv_c_compiler_gnu
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047        ac_config_commands="$ac_config_commands libtool"
16048
16049
16050
16051
16052# Only expand once:
16053
16054
16055# Search path for "find" executable.  Use "find" unless
16056# the bogus MS Windows version is first on the path, in
16057# which case we use the full pathname.  This AC_CHECK_PROG
16058# macro is very strange.
16059# Extract the first word of "find", so it can be a program name with args.
16060set dummy find; ac_word=$2
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16062$as_echo_n "checking for $ac_word... " >&6; }
16063if ${ac_cv_prog_FIND+:} false; then :
16064  $as_echo_n "(cached) " >&6
16065else
16066  if test -n "$FIND"; then
16067  ac_cv_prog_FIND="$FIND" # Let the user override the test.
16068else
16069  ac_prog_rejected=no
16070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071for as_dir in $PATH
16072do
16073  IFS=$as_save_IFS
16074  test -z "$as_dir" && as_dir=.
16075    for ac_exec_ext in '' $ac_executable_extensions; do
16076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077    if test "$as_dir/$ac_word$ac_exec_ext" = "/cygdrive/c/WINNT/system32/find"; then
16078       ac_prog_rejected=yes
16079       continue
16080     fi
16081    ac_cv_prog_FIND="find"
16082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16083    break 2
16084  fi
16085done
16086  done
16087IFS=$as_save_IFS
16088
16089if test $ac_prog_rejected = yes; then
16090  # We found a bogon in the path, so make sure we never use it.
16091  set dummy $ac_cv_prog_FIND
16092  shift
16093  if test $# != 0; then
16094    # We chose a different compiler from the bogus one.
16095    # However, it has the same basename, so the bogon will be chosen
16096    # first if we set FIND to just the basename; use the full file name.
16097    shift
16098    ac_cv_prog_FIND="$as_dir/$ac_word${1+' '}$@"
16099  fi
16100fi
16101  test -z "$ac_cv_prog_FIND" && ac_cv_prog_FIND="no"
16102fi
16103fi
16104FIND=$ac_cv_prog_FIND
16105if test -n "$FIND"; then
16106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
16107$as_echo "$FIND" >&6; }
16108else
16109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110$as_echo "no" >&6; }
16111fi
16112
16113
16114if test "$FIND" = "no"; then
16115    as_fn_error $? "No find found.  Cannot continue." "$LINENO" 5
16116fi
16117# Check for availability of /bin/csh for file-name globbing. Try /bin/sh
16118# if not found.
16119for ac_prog in csh sh
16120do
16121  # Extract the first word of "$ac_prog", so it can be a program name with args.
16122set dummy $ac_prog; ac_word=$2
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16124$as_echo_n "checking for $ac_word... " >&6; }
16125if ${ac_cv_path_GLOB_SHELL_PATH+:} false; then :
16126  $as_echo_n "(cached) " >&6
16127else
16128  case $GLOB_SHELL_PATH in
16129  [\\/]* | ?:[\\/]*)
16130  ac_cv_path_GLOB_SHELL_PATH="$GLOB_SHELL_PATH" # Let the user override the test with a path.
16131  ;;
16132  *)
16133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16134for as_dir in $PATH
16135do
16136  IFS=$as_save_IFS
16137  test -z "$as_dir" && as_dir=.
16138    for ac_exec_ext in '' $ac_executable_extensions; do
16139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16140    ac_cv_path_GLOB_SHELL_PATH="$as_dir/$ac_word$ac_exec_ext"
16141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16142    break 2
16143  fi
16144done
16145  done
16146IFS=$as_save_IFS
16147
16148  ;;
16149esac
16150fi
16151GLOB_SHELL_PATH=$ac_cv_path_GLOB_SHELL_PATH
16152if test -n "$GLOB_SHELL_PATH"; then
16153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLOB_SHELL_PATH" >&5
16154$as_echo "$GLOB_SHELL_PATH" >&6; }
16155else
16156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16157$as_echo "no" >&6; }
16158fi
16159
16160
16161  test -n "$GLOB_SHELL_PATH" && break
16162done
16163test -n "$GLOB_SHELL_PATH" || GLOB_SHELL_PATH="/bin/csh"
16164
16165if echo ${GLOB_SHELL_PATH} | grep csh > /dev/null 2>&1; then
16166	GLOB_SHELL="${GLOB_SHELL_PATH} -f -c "
16167else
16168	GLOB_SHELL="${GLOB_SHELL_PATH} -c "
16169fi
16170
16171cat >>confdefs.h <<_ACEOF
16172#define GLOB_SHELL "${GLOB_SHELL}"
16173_ACEOF
16174
16175
16176#
16177for ac_prog in ps2epsi
16178do
16179  # Extract the first word of "$ac_prog", so it can be a program name with args.
16180set dummy $ac_prog; ac_word=$2
16181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16182$as_echo_n "checking for $ac_word... " >&6; }
16183if ${ac_cv_prog_PS2EPSI+:} false; then :
16184  $as_echo_n "(cached) " >&6
16185else
16186  if test -n "$PS2EPSI"; then
16187  ac_cv_prog_PS2EPSI="$PS2EPSI" # Let the user override the test.
16188else
16189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16190for as_dir in $PATH
16191do
16192  IFS=$as_save_IFS
16193  test -z "$as_dir" && as_dir=.
16194    for ac_exec_ext in '' $ac_executable_extensions; do
16195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16196    ac_cv_prog_PS2EPSI="$ac_prog"
16197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16198    break 2
16199  fi
16200done
16201  done
16202IFS=$as_save_IFS
16203
16204fi
16205fi
16206PS2EPSI=$ac_cv_prog_PS2EPSI
16207if test -n "$PS2EPSI"; then
16208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2EPSI" >&5
16209$as_echo "$PS2EPSI" >&6; }
16210else
16211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212$as_echo "no" >&6; }
16213fi
16214
16215
16216  test -n "$PS2EPSI" && break
16217done
16218
16219for ac_prog in epstopdf
16220do
16221  # Extract the first word of "$ac_prog", so it can be a program name with args.
16222set dummy $ac_prog; ac_word=$2
16223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16224$as_echo_n "checking for $ac_word... " >&6; }
16225if ${ac_cv_prog_EPSTOPDF+:} false; then :
16226  $as_echo_n "(cached) " >&6
16227else
16228  if test -n "$EPSTOPDF"; then
16229  ac_cv_prog_EPSTOPDF="$EPSTOPDF" # Let the user override the test.
16230else
16231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232for as_dir in $PATH
16233do
16234  IFS=$as_save_IFS
16235  test -z "$as_dir" && as_dir=.
16236    for ac_exec_ext in '' $ac_executable_extensions; do
16237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238    ac_cv_prog_EPSTOPDF="$ac_prog"
16239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16240    break 2
16241  fi
16242done
16243  done
16244IFS=$as_save_IFS
16245
16246fi
16247fi
16248EPSTOPDF=$ac_cv_prog_EPSTOPDF
16249if test -n "$EPSTOPDF"; then
16250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPSTOPDF" >&5
16251$as_echo "$EPSTOPDF" >&6; }
16252else
16253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254$as_echo "no" >&6; }
16255fi
16256
16257
16258  test -n "$EPSTOPDF" && break
16259done
16260
16261for ac_prog in pdfimages
16262do
16263  # Extract the first word of "$ac_prog", so it can be a program name with args.
16264set dummy $ac_prog; ac_word=$2
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266$as_echo_n "checking for $ac_word... " >&6; }
16267if ${ac_cv_prog_PDFIMAGESPROG+:} false; then :
16268  $as_echo_n "(cached) " >&6
16269else
16270  if test -n "$PDFIMAGESPROG"; then
16271  ac_cv_prog_PDFIMAGESPROG="$PDFIMAGESPROG" # Let the user override the test.
16272else
16273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274for as_dir in $PATH
16275do
16276  IFS=$as_save_IFS
16277  test -z "$as_dir" && as_dir=.
16278    for ac_exec_ext in '' $ac_executable_extensions; do
16279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16280    ac_cv_prog_PDFIMAGESPROG="$ac_prog"
16281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16282    break 2
16283  fi
16284done
16285  done
16286IFS=$as_save_IFS
16287
16288fi
16289fi
16290PDFIMAGESPROG=$ac_cv_prog_PDFIMAGESPROG
16291if test -n "$PDFIMAGESPROG"; then
16292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFIMAGESPROG" >&5
16293$as_echo "$PDFIMAGESPROG" >&6; }
16294else
16295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296$as_echo "no" >&6; }
16297fi
16298
16299
16300  test -n "$PDFIMAGESPROG" && break
16301done
16302
16303for ac_prog in pnmtopng
16304do
16305  # Extract the first word of "$ac_prog", so it can be a program name with args.
16306set dummy $ac_prog; ac_word=$2
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16308$as_echo_n "checking for $ac_word... " >&6; }
16309if ${ac_cv_prog_PNMTOPNG+:} false; then :
16310  $as_echo_n "(cached) " >&6
16311else
16312  if test -n "$PNMTOPNG"; then
16313  ac_cv_prog_PNMTOPNG="$PNMTOPNG" # Let the user override the test.
16314else
16315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16316for as_dir in $PATH
16317do
16318  IFS=$as_save_IFS
16319  test -z "$as_dir" && as_dir=.
16320    for ac_exec_ext in '' $ac_executable_extensions; do
16321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16322    ac_cv_prog_PNMTOPNG="$ac_prog"
16323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16324    break 2
16325  fi
16326done
16327  done
16328IFS=$as_save_IFS
16329
16330fi
16331fi
16332PNMTOPNG=$ac_cv_prog_PNMTOPNG
16333if test -n "$PNMTOPNG"; then
16334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNMTOPNG" >&5
16335$as_echo "$PNMTOPNG" >&6; }
16336else
16337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16338$as_echo "no" >&6; }
16339fi
16340
16341
16342  test -n "$PNMTOPNG" && break
16343done
16344
16345
16346# For rman texture support. If not found we can only output RGB pnm images
16347# without alpha channel.
16348for ac_prog in pamtotiff
16349do
16350  # Extract the first word of "$ac_prog", so it can be a program name with args.
16351set dummy $ac_prog; ac_word=$2
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16353$as_echo_n "checking for $ac_word... " >&6; }
16354if ${ac_cv_prog_PAMTOTIFF+:} false; then :
16355  $as_echo_n "(cached) " >&6
16356else
16357  if test -n "$PAMTOTIFF"; then
16358  ac_cv_prog_PAMTOTIFF="$PAMTOTIFF" # Let the user override the test.
16359else
16360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16361for as_dir in $PATH
16362do
16363  IFS=$as_save_IFS
16364  test -z "$as_dir" && as_dir=.
16365    for ac_exec_ext in '' $ac_executable_extensions; do
16366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16367    ac_cv_prog_PAMTOTIFF="$ac_prog"
16368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16369    break 2
16370  fi
16371done
16372  done
16373IFS=$as_save_IFS
16374
16375fi
16376fi
16377PAMTOTIFF=$ac_cv_prog_PAMTOTIFF
16378if test -n "$PAMTOTIFF"; then
16379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAMTOTIFF" >&5
16380$as_echo "$PAMTOTIFF" >&6; }
16381else
16382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383$as_echo "no" >&6; }
16384fi
16385
16386
16387  test -n "$PAMTOTIFF" && break
16388done
16389
16390if test "${PAMTOTIFF}" = "pamtotiff"; then
16391
16392cat >>confdefs.h <<_ACEOF
16393#define HAVE_PAMTOTIFF "$PAMTOTIFF"
16394_ACEOF
16395
16396else
16397  { $as_echo "$as_me:${as_lineno-$LINENO}: \`pamtotiff' executable not found; textures in RenderMan output
16398will not have an alpha-channel. Consider installing a newer NetPBM package." >&5
16399$as_echo "$as_me: \`pamtotiff' executable not found; textures in RenderMan output
16400will not have an alpha-channel. Consider installing a newer NetPBM package." >&6;}
16401fi
16402
16403# Check for various shader language comilers; we try to compile and
16404# install our RenderMan shaders for any of the shader compilers; I
16405# have included only those which are free of charge.
16406#
16407
16408
16409
16410# Check whether --with-aqsis-shader-compiler was given.
16411if test "${with_aqsis_shader_compiler+set}" = set; then :
16412  withval=$with_aqsis_shader_compiler; case "${withval}" in
16413    no)
16414      as_fn_error $? "\"--without-aqsis-shader-compiler\" or \"--with-aqsis-shader-compiler=no\" is not an option here" "$LINENO" 5
16415      ;;
16416    yes) # simply ignore that, use auto-detection
16417      ;;
16418    *)
16419      AQSIS_SHADER_COMPILEROPT="${withval}"
16420      ;;
16421    esac
16422else
16423  AQSIS_SHADER_COMPILEROPT=aqsl
16424fi
16425
16426acgv_path=`dirname "${AQSIS_SHADER_COMPILEROPT}"|sed -e 's|^\./\?||g'`
16427if test -n "${acgv_path}"; then
16428  AQSIS_SHADER_COMPILERPROG=`basename "${AQSIS_SHADER_COMPILEROPT}"`
16429  if echo "${acgv_path}" | egrep '^/' > /dev/null 2>&1 ; then
16430    acgv_path="${acgv_path}"
16431  else
16432    acgv_path="`pwd`/${acgv_path}"
16433  fi
16434  for ac_prog in ${AQSIS_SHADER_COMPILERPROG}
16435do
16436  # Extract the first word of "$ac_prog", so it can be a program name with args.
16437set dummy $ac_prog; ac_word=$2
16438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16439$as_echo_n "checking for $ac_word... " >&6; }
16440if ${ac_cv_path_AQSIS_SHADER_COMPILER+:} false; then :
16441  $as_echo_n "(cached) " >&6
16442else
16443  case $AQSIS_SHADER_COMPILER in
16444  [\\/]* | ?:[\\/]*)
16445  ac_cv_path_AQSIS_SHADER_COMPILER="$AQSIS_SHADER_COMPILER" # Let the user override the test with a path.
16446  ;;
16447  *)
16448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449for as_dir in ${acgv_path}
16450do
16451  IFS=$as_save_IFS
16452  test -z "$as_dir" && as_dir=.
16453    for ac_exec_ext in '' $ac_executable_extensions; do
16454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16455    ac_cv_path_AQSIS_SHADER_COMPILER="$as_dir/$ac_word$ac_exec_ext"
16456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16457    break 2
16458  fi
16459done
16460  done
16461IFS=$as_save_IFS
16462
16463  ;;
16464esac
16465fi
16466AQSIS_SHADER_COMPILER=$ac_cv_path_AQSIS_SHADER_COMPILER
16467if test -n "$AQSIS_SHADER_COMPILER"; then
16468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AQSIS_SHADER_COMPILER" >&5
16469$as_echo "$AQSIS_SHADER_COMPILER" >&6; }
16470else
16471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16472$as_echo "no" >&6; }
16473fi
16474
16475
16476  test -n "$AQSIS_SHADER_COMPILER" && break
16477done
16478test -n "$AQSIS_SHADER_COMPILER" || AQSIS_SHADER_COMPILER="not found"
16479
16480else
16481  AQSIS_SHADER_COMPILERPROG="${AQSIS_SHADER_COMPILEROPT}"
16482  acgv_path="${PATH}"
16483  for ac_prog in ${AQSIS_SHADER_COMPILERPROG}
16484do
16485  # Extract the first word of "$ac_prog", so it can be a program name with args.
16486set dummy $ac_prog; ac_word=$2
16487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16488$as_echo_n "checking for $ac_word... " >&6; }
16489if ${ac_cv_prog_AQSIS_SHADER_COMPILER+:} false; then :
16490  $as_echo_n "(cached) " >&6
16491else
16492  if test -n "$AQSIS_SHADER_COMPILER"; then
16493  ac_cv_prog_AQSIS_SHADER_COMPILER="$AQSIS_SHADER_COMPILER" # Let the user override the test.
16494else
16495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16496for as_dir in ${acgv_path}
16497do
16498  IFS=$as_save_IFS
16499  test -z "$as_dir" && as_dir=.
16500    for ac_exec_ext in '' $ac_executable_extensions; do
16501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16502    ac_cv_prog_AQSIS_SHADER_COMPILER="$ac_prog"
16503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16504    break 2
16505  fi
16506done
16507  done
16508IFS=$as_save_IFS
16509
16510fi
16511fi
16512AQSIS_SHADER_COMPILER=$ac_cv_prog_AQSIS_SHADER_COMPILER
16513if test -n "$AQSIS_SHADER_COMPILER"; then
16514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AQSIS_SHADER_COMPILER" >&5
16515$as_echo "$AQSIS_SHADER_COMPILER" >&6; }
16516else
16517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518$as_echo "no" >&6; }
16519fi
16520
16521
16522  test -n "$AQSIS_SHADER_COMPILER" && break
16523done
16524test -n "$AQSIS_SHADER_COMPILER" || AQSIS_SHADER_COMPILER="not found"
16525
16526fi
16527acgv_required=optional
16528
16529if test "${AQSIS_SHADER_COMPILER}" = "not found" -a "${acgv_required}" = "required"; then
16530  as_fn_error $? "\`aqsis-shader-compiler' executable not found. Check your installation." "$LINENO" 5
16531  exit 1
16532fi
16533 if ! test "${AQSIS_SHADER_COMPILER}" = "not found"; then
16534  AQSIS_SHADER_COMPILER_TRUE=
16535  AQSIS_SHADER_COMPILER_FALSE='#'
16536else
16537  AQSIS_SHADER_COMPILER_TRUE='#'
16538  AQSIS_SHADER_COMPILER_FALSE=
16539fi
16540
16541
16542
16543
16544
16545# Check whether --with-pixie-shader-compiler was given.
16546if test "${with_pixie_shader_compiler+set}" = set; then :
16547  withval=$with_pixie_shader_compiler; case "${withval}" in
16548    no)
16549      as_fn_error $? "\"--without-pixie-shader-compiler\" or \"--with-pixie-shader-compiler=no\" is not an option here" "$LINENO" 5
16550      ;;
16551    yes) # simply ignore that, use auto-detection
16552      ;;
16553    *)
16554      PIXIE_SHADER_COMPILEROPT="${withval}"
16555      ;;
16556    esac
16557else
16558  PIXIE_SHADER_COMPILEROPT=sdrc
16559fi
16560
16561acgv_path=`dirname "${PIXIE_SHADER_COMPILEROPT}"|sed -e 's|^\./\?||g'`
16562if test -n "${acgv_path}"; then
16563  PIXIE_SHADER_COMPILERPROG=`basename "${PIXIE_SHADER_COMPILEROPT}"`
16564  if echo "${acgv_path}" | egrep '^/' > /dev/null 2>&1 ; then
16565    acgv_path="${acgv_path}"
16566  else
16567    acgv_path="`pwd`/${acgv_path}"
16568  fi
16569  for ac_prog in ${PIXIE_SHADER_COMPILERPROG}
16570do
16571  # Extract the first word of "$ac_prog", so it can be a program name with args.
16572set dummy $ac_prog; ac_word=$2
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16574$as_echo_n "checking for $ac_word... " >&6; }
16575if ${ac_cv_path_PIXIE_SHADER_COMPILER+:} false; then :
16576  $as_echo_n "(cached) " >&6
16577else
16578  case $PIXIE_SHADER_COMPILER in
16579  [\\/]* | ?:[\\/]*)
16580  ac_cv_path_PIXIE_SHADER_COMPILER="$PIXIE_SHADER_COMPILER" # Let the user override the test with a path.
16581  ;;
16582  *)
16583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16584for as_dir in ${acgv_path}
16585do
16586  IFS=$as_save_IFS
16587  test -z "$as_dir" && as_dir=.
16588    for ac_exec_ext in '' $ac_executable_extensions; do
16589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16590    ac_cv_path_PIXIE_SHADER_COMPILER="$as_dir/$ac_word$ac_exec_ext"
16591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16592    break 2
16593  fi
16594done
16595  done
16596IFS=$as_save_IFS
16597
16598  ;;
16599esac
16600fi
16601PIXIE_SHADER_COMPILER=$ac_cv_path_PIXIE_SHADER_COMPILER
16602if test -n "$PIXIE_SHADER_COMPILER"; then
16603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIXIE_SHADER_COMPILER" >&5
16604$as_echo "$PIXIE_SHADER_COMPILER" >&6; }
16605else
16606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16607$as_echo "no" >&6; }
16608fi
16609
16610
16611  test -n "$PIXIE_SHADER_COMPILER" && break
16612done
16613test -n "$PIXIE_SHADER_COMPILER" || PIXIE_SHADER_COMPILER="not found"
16614
16615else
16616  PIXIE_SHADER_COMPILERPROG="${PIXIE_SHADER_COMPILEROPT}"
16617  acgv_path="${PATH}"
16618  for ac_prog in ${PIXIE_SHADER_COMPILERPROG}
16619do
16620  # Extract the first word of "$ac_prog", so it can be a program name with args.
16621set dummy $ac_prog; ac_word=$2
16622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16623$as_echo_n "checking for $ac_word... " >&6; }
16624if ${ac_cv_prog_PIXIE_SHADER_COMPILER+:} false; then :
16625  $as_echo_n "(cached) " >&6
16626else
16627  if test -n "$PIXIE_SHADER_COMPILER"; then
16628  ac_cv_prog_PIXIE_SHADER_COMPILER="$PIXIE_SHADER_COMPILER" # Let the user override the test.
16629else
16630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631for as_dir in ${acgv_path}
16632do
16633  IFS=$as_save_IFS
16634  test -z "$as_dir" && as_dir=.
16635    for ac_exec_ext in '' $ac_executable_extensions; do
16636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637    ac_cv_prog_PIXIE_SHADER_COMPILER="$ac_prog"
16638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16639    break 2
16640  fi
16641done
16642  done
16643IFS=$as_save_IFS
16644
16645fi
16646fi
16647PIXIE_SHADER_COMPILER=$ac_cv_prog_PIXIE_SHADER_COMPILER
16648if test -n "$PIXIE_SHADER_COMPILER"; then
16649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIXIE_SHADER_COMPILER" >&5
16650$as_echo "$PIXIE_SHADER_COMPILER" >&6; }
16651else
16652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16653$as_echo "no" >&6; }
16654fi
16655
16656
16657  test -n "$PIXIE_SHADER_COMPILER" && break
16658done
16659test -n "$PIXIE_SHADER_COMPILER" || PIXIE_SHADER_COMPILER="not found"
16660
16661fi
16662acgv_required=optional
16663
16664if test "${PIXIE_SHADER_COMPILER}" = "not found" -a "${acgv_required}" = "required"; then
16665  as_fn_error $? "\`pixie-shader-compiler' executable not found. Check your installation." "$LINENO" 5
16666  exit 1
16667fi
16668 if ! test "${PIXIE_SHADER_COMPILER}" = "not found"; then
16669  PIXIE_SHADER_COMPILER_TRUE=
16670  PIXIE_SHADER_COMPILER_FALSE='#'
16671else
16672  PIXIE_SHADER_COMPILER_TRUE='#'
16673  PIXIE_SHADER_COMPILER_FALSE=
16674fi
16675
16676
16677
16678
16679
16680# Check whether --with-delight-shader-compiler was given.
16681if test "${with_delight_shader_compiler+set}" = set; then :
16682  withval=$with_delight_shader_compiler; case "${withval}" in
16683    no)
16684      as_fn_error $? "\"--without-delight-shader-compiler\" or \"--with-delight-shader-compiler=no\" is not an option here" "$LINENO" 5
16685      ;;
16686    yes) # simply ignore that, use auto-detection
16687      ;;
16688    *)
16689      DELIGHT_SHADER_COMPILEROPT="${withval}"
16690      ;;
16691    esac
16692else
16693  DELIGHT_SHADER_COMPILEROPT=shaderdl
16694fi
16695
16696acgv_path=`dirname "${DELIGHT_SHADER_COMPILEROPT}"|sed -e 's|^\./\?||g'`
16697if test -n "${acgv_path}"; then
16698  DELIGHT_SHADER_COMPILERPROG=`basename "${DELIGHT_SHADER_COMPILEROPT}"`
16699  if echo "${acgv_path}" | egrep '^/' > /dev/null 2>&1 ; then
16700    acgv_path="${acgv_path}"
16701  else
16702    acgv_path="`pwd`/${acgv_path}"
16703  fi
16704  for ac_prog in ${DELIGHT_SHADER_COMPILERPROG}
16705do
16706  # Extract the first word of "$ac_prog", so it can be a program name with args.
16707set dummy $ac_prog; ac_word=$2
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16709$as_echo_n "checking for $ac_word... " >&6; }
16710if ${ac_cv_path_DELIGHT_SHADER_COMPILER+:} false; then :
16711  $as_echo_n "(cached) " >&6
16712else
16713  case $DELIGHT_SHADER_COMPILER in
16714  [\\/]* | ?:[\\/]*)
16715  ac_cv_path_DELIGHT_SHADER_COMPILER="$DELIGHT_SHADER_COMPILER" # Let the user override the test with a path.
16716  ;;
16717  *)
16718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16719for as_dir in ${acgv_path}
16720do
16721  IFS=$as_save_IFS
16722  test -z "$as_dir" && as_dir=.
16723    for ac_exec_ext in '' $ac_executable_extensions; do
16724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16725    ac_cv_path_DELIGHT_SHADER_COMPILER="$as_dir/$ac_word$ac_exec_ext"
16726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16727    break 2
16728  fi
16729done
16730  done
16731IFS=$as_save_IFS
16732
16733  ;;
16734esac
16735fi
16736DELIGHT_SHADER_COMPILER=$ac_cv_path_DELIGHT_SHADER_COMPILER
16737if test -n "$DELIGHT_SHADER_COMPILER"; then
16738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DELIGHT_SHADER_COMPILER" >&5
16739$as_echo "$DELIGHT_SHADER_COMPILER" >&6; }
16740else
16741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742$as_echo "no" >&6; }
16743fi
16744
16745
16746  test -n "$DELIGHT_SHADER_COMPILER" && break
16747done
16748test -n "$DELIGHT_SHADER_COMPILER" || DELIGHT_SHADER_COMPILER="not found"
16749
16750else
16751  DELIGHT_SHADER_COMPILERPROG="${DELIGHT_SHADER_COMPILEROPT}"
16752  acgv_path="${PATH}"
16753  for ac_prog in ${DELIGHT_SHADER_COMPILERPROG}
16754do
16755  # Extract the first word of "$ac_prog", so it can be a program name with args.
16756set dummy $ac_prog; ac_word=$2
16757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16758$as_echo_n "checking for $ac_word... " >&6; }
16759if ${ac_cv_prog_DELIGHT_SHADER_COMPILER+:} false; then :
16760  $as_echo_n "(cached) " >&6
16761else
16762  if test -n "$DELIGHT_SHADER_COMPILER"; then
16763  ac_cv_prog_DELIGHT_SHADER_COMPILER="$DELIGHT_SHADER_COMPILER" # Let the user override the test.
16764else
16765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16766for as_dir in ${acgv_path}
16767do
16768  IFS=$as_save_IFS
16769  test -z "$as_dir" && as_dir=.
16770    for ac_exec_ext in '' $ac_executable_extensions; do
16771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16772    ac_cv_prog_DELIGHT_SHADER_COMPILER="$ac_prog"
16773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16774    break 2
16775  fi
16776done
16777  done
16778IFS=$as_save_IFS
16779
16780fi
16781fi
16782DELIGHT_SHADER_COMPILER=$ac_cv_prog_DELIGHT_SHADER_COMPILER
16783if test -n "$DELIGHT_SHADER_COMPILER"; then
16784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DELIGHT_SHADER_COMPILER" >&5
16785$as_echo "$DELIGHT_SHADER_COMPILER" >&6; }
16786else
16787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788$as_echo "no" >&6; }
16789fi
16790
16791
16792  test -n "$DELIGHT_SHADER_COMPILER" && break
16793done
16794test -n "$DELIGHT_SHADER_COMPILER" || DELIGHT_SHADER_COMPILER="not found"
16795
16796fi
16797acgv_required=optional
16798
16799if test "${DELIGHT_SHADER_COMPILER}" = "not found" -a "${acgv_required}" = "required"; then
16800  as_fn_error $? "\`delight-shader-compiler' executable not found. Check your installation." "$LINENO" 5
16801  exit 1
16802fi
16803 if ! test "${DELIGHT_SHADER_COMPILER}" = "not found"; then
16804  DELIGHT_SHADER_COMPILER_TRUE=
16805  DELIGHT_SHADER_COMPILER_FALSE='#'
16806else
16807  DELIGHT_SHADER_COMPILER_TRUE='#'
16808  DELIGHT_SHADER_COMPILER_FALSE=
16809fi
16810
16811
16812
16813# Checks for libraries.
16814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
16815$as_echo_n "checking for cos in -lm... " >&6; }
16816if ${ac_cv_lib_m_cos+:} false; then :
16817  $as_echo_n "(cached) " >&6
16818else
16819  ac_check_lib_save_LIBS=$LIBS
16820LIBS="-lm  $LIBS"
16821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822/* end confdefs.h.  */
16823
16824/* Override any GCC internal prototype to avoid an error.
16825   Use char because int might match the return type of a GCC
16826   builtin and then its argument prototype would still apply.  */
16827#ifdef __cplusplus
16828extern "C"
16829#endif
16830char cos ();
16831int
16832main ()
16833{
16834return cos ();
16835  ;
16836  return 0;
16837}
16838_ACEOF
16839if ac_fn_c_try_link "$LINENO"; then :
16840  ac_cv_lib_m_cos=yes
16841else
16842  ac_cv_lib_m_cos=no
16843fi
16844rm -f core conftest.err conftest.$ac_objext \
16845    conftest$ac_exeext conftest.$ac_ext
16846LIBS=$ac_check_lib_save_LIBS
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
16849$as_echo "$ac_cv_lib_m_cos" >&6; }
16850if test "x$ac_cv_lib_m_cos" = xyes; then :
16851  cat >>confdefs.h <<_ACEOF
16852#define HAVE_LIBM 1
16853_ACEOF
16854
16855  LIBS="-lm $LIBS"
16856
16857fi
16858
16859
16860# Checks for header files.
16861ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16862if test "x$ac_cv_type_size_t" = xyes; then :
16863
16864else
16865
16866cat >>confdefs.h <<_ACEOF
16867#define size_t unsigned int
16868_ACEOF
16869
16870fi
16871
16872# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16873# for constant arguments.  Useless!
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16875$as_echo_n "checking for working alloca.h... " >&6; }
16876if ${ac_cv_working_alloca_h+:} false; then :
16877  $as_echo_n "(cached) " >&6
16878else
16879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880/* end confdefs.h.  */
16881#include <alloca.h>
16882int
16883main ()
16884{
16885char *p = (char *) alloca (2 * sizeof (int));
16886			  if (p) return 0;
16887  ;
16888  return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_link "$LINENO"; then :
16892  ac_cv_working_alloca_h=yes
16893else
16894  ac_cv_working_alloca_h=no
16895fi
16896rm -f core conftest.err conftest.$ac_objext \
16897    conftest$ac_exeext conftest.$ac_ext
16898fi
16899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16900$as_echo "$ac_cv_working_alloca_h" >&6; }
16901if test $ac_cv_working_alloca_h = yes; then
16902
16903$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16904
16905fi
16906
16907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16908$as_echo_n "checking for alloca... " >&6; }
16909if ${ac_cv_func_alloca_works+:} false; then :
16910  $as_echo_n "(cached) " >&6
16911else
16912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913/* end confdefs.h.  */
16914#ifdef __GNUC__
16915# define alloca __builtin_alloca
16916#else
16917# ifdef _MSC_VER
16918#  include <malloc.h>
16919#  define alloca _alloca
16920# else
16921#  ifdef HAVE_ALLOCA_H
16922#   include <alloca.h>
16923#  else
16924#   ifdef _AIX
16925 #pragma alloca
16926#   else
16927#    ifndef alloca /* predefined by HP cc +Olibcalls */
16928void *alloca (size_t);
16929#    endif
16930#   endif
16931#  endif
16932# endif
16933#endif
16934
16935int
16936main ()
16937{
16938char *p = (char *) alloca (1);
16939				    if (p) return 0;
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_link "$LINENO"; then :
16945  ac_cv_func_alloca_works=yes
16946else
16947  ac_cv_func_alloca_works=no
16948fi
16949rm -f core conftest.err conftest.$ac_objext \
16950    conftest$ac_exeext conftest.$ac_ext
16951fi
16952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16953$as_echo "$ac_cv_func_alloca_works" >&6; }
16954
16955if test $ac_cv_func_alloca_works = yes; then
16956
16957$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16958
16959else
16960  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16961# that cause trouble.  Some versions do not even contain alloca or
16962# contain a buggy version.  If you still want to use their alloca,
16963# use ar to extract alloca.o from them instead of compiling alloca.c.
16964
16965ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16966
16967$as_echo "#define C_ALLOCA 1" >>confdefs.h
16968
16969
16970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16971$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16972if ${ac_cv_os_cray+:} false; then :
16973  $as_echo_n "(cached) " >&6
16974else
16975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976/* end confdefs.h.  */
16977#if defined CRAY && ! defined CRAY2
16978webecray
16979#else
16980wenotbecray
16981#endif
16982
16983_ACEOF
16984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16985  $EGREP "webecray" >/dev/null 2>&1; then :
16986  ac_cv_os_cray=yes
16987else
16988  ac_cv_os_cray=no
16989fi
16990rm -f conftest*
16991
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16994$as_echo "$ac_cv_os_cray" >&6; }
16995if test $ac_cv_os_cray = yes; then
16996  for ac_func in _getb67 GETB67 getb67; do
16997    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16998ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16999if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17000
17001cat >>confdefs.h <<_ACEOF
17002#define CRAY_STACKSEG_END $ac_func
17003_ACEOF
17004
17005    break
17006fi
17007
17008  done
17009fi
17010
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17012$as_echo_n "checking stack direction for C alloca... " >&6; }
17013if ${ac_cv_c_stack_direction+:} false; then :
17014  $as_echo_n "(cached) " >&6
17015else
17016  if test "$cross_compiling" = yes; then :
17017  ac_cv_c_stack_direction=0
17018else
17019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021$ac_includes_default
17022int
17023find_stack_direction (int *addr, int depth)
17024{
17025  int dir, dummy = 0;
17026  if (! addr)
17027    addr = &dummy;
17028  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17029  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17030  return dir + dummy;
17031}
17032
17033int
17034main (int argc, char **argv)
17035{
17036  return find_stack_direction (0, argc + !argv + 20) < 0;
17037}
17038_ACEOF
17039if ac_fn_c_try_run "$LINENO"; then :
17040  ac_cv_c_stack_direction=1
17041else
17042  ac_cv_c_stack_direction=-1
17043fi
17044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17045  conftest.$ac_objext conftest.beam conftest.$ac_ext
17046fi
17047
17048fi
17049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17050$as_echo "$ac_cv_c_stack_direction" >&6; }
17051cat >>confdefs.h <<_ACEOF
17052#define STACK_DIRECTION $ac_cv_c_stack_direction
17053_ACEOF
17054
17055
17056fi
17057
17058ac_header_dirent=no
17059for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17060  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17062$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17063if eval \${$as_ac_Header+:} false; then :
17064  $as_echo_n "(cached) " >&6
17065else
17066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h.  */
17068#include <sys/types.h>
17069#include <$ac_hdr>
17070
17071int
17072main ()
17073{
17074if ((DIR *) 0)
17075return 0;
17076  ;
17077  return 0;
17078}
17079_ACEOF
17080if ac_fn_c_try_compile "$LINENO"; then :
17081  eval "$as_ac_Header=yes"
17082else
17083  eval "$as_ac_Header=no"
17084fi
17085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086fi
17087eval ac_res=\$$as_ac_Header
17088	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17089$as_echo "$ac_res" >&6; }
17090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17091  cat >>confdefs.h <<_ACEOF
17092#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17093_ACEOF
17094
17095ac_header_dirent=$ac_hdr; break
17096fi
17097
17098done
17099# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17100if test $ac_header_dirent = dirent.h; then
17101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17102$as_echo_n "checking for library containing opendir... " >&6; }
17103if ${ac_cv_search_opendir+:} false; then :
17104  $as_echo_n "(cached) " >&6
17105else
17106  ac_func_search_save_LIBS=$LIBS
17107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h.  */
17109
17110/* Override any GCC internal prototype to avoid an error.
17111   Use char because int might match the return type of a GCC
17112   builtin and then its argument prototype would still apply.  */
17113#ifdef __cplusplus
17114extern "C"
17115#endif
17116char opendir ();
17117int
17118main ()
17119{
17120return opendir ();
17121  ;
17122  return 0;
17123}
17124_ACEOF
17125for ac_lib in '' dir; do
17126  if test -z "$ac_lib"; then
17127    ac_res="none required"
17128  else
17129    ac_res=-l$ac_lib
17130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17131  fi
17132  if ac_fn_c_try_link "$LINENO"; then :
17133  ac_cv_search_opendir=$ac_res
17134fi
17135rm -f core conftest.err conftest.$ac_objext \
17136    conftest$ac_exeext
17137  if ${ac_cv_search_opendir+:} false; then :
17138  break
17139fi
17140done
17141if ${ac_cv_search_opendir+:} false; then :
17142
17143else
17144  ac_cv_search_opendir=no
17145fi
17146rm conftest.$ac_ext
17147LIBS=$ac_func_search_save_LIBS
17148fi
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17150$as_echo "$ac_cv_search_opendir" >&6; }
17151ac_res=$ac_cv_search_opendir
17152if test "$ac_res" != no; then :
17153  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17154
17155fi
17156
17157else
17158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17159$as_echo_n "checking for library containing opendir... " >&6; }
17160if ${ac_cv_search_opendir+:} false; then :
17161  $as_echo_n "(cached) " >&6
17162else
17163  ac_func_search_save_LIBS=$LIBS
17164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165/* end confdefs.h.  */
17166
17167/* Override any GCC internal prototype to avoid an error.
17168   Use char because int might match the return type of a GCC
17169   builtin and then its argument prototype would still apply.  */
17170#ifdef __cplusplus
17171extern "C"
17172#endif
17173char opendir ();
17174int
17175main ()
17176{
17177return opendir ();
17178  ;
17179  return 0;
17180}
17181_ACEOF
17182for ac_lib in '' x; do
17183  if test -z "$ac_lib"; then
17184    ac_res="none required"
17185  else
17186    ac_res=-l$ac_lib
17187    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17188  fi
17189  if ac_fn_c_try_link "$LINENO"; then :
17190  ac_cv_search_opendir=$ac_res
17191fi
17192rm -f core conftest.err conftest.$ac_objext \
17193    conftest$ac_exeext
17194  if ${ac_cv_search_opendir+:} false; then :
17195  break
17196fi
17197done
17198if ${ac_cv_search_opendir+:} false; then :
17199
17200else
17201  ac_cv_search_opendir=no
17202fi
17203rm conftest.$ac_ext
17204LIBS=$ac_func_search_save_LIBS
17205fi
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17207$as_echo "$ac_cv_search_opendir" >&6; }
17208ac_res=$ac_cv_search_opendir
17209if test "$ac_res" != no; then :
17210  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17211
17212fi
17213
17214fi
17215
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17217$as_echo_n "checking for ANSI C header files... " >&6; }
17218if ${ac_cv_header_stdc+:} false; then :
17219  $as_echo_n "(cached) " >&6
17220else
17221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h.  */
17223#include <stdlib.h>
17224#include <stdarg.h>
17225#include <string.h>
17226#include <float.h>
17227
17228int
17229main ()
17230{
17231
17232  ;
17233  return 0;
17234}
17235_ACEOF
17236if ac_fn_c_try_compile "$LINENO"; then :
17237  ac_cv_header_stdc=yes
17238else
17239  ac_cv_header_stdc=no
17240fi
17241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17242
17243if test $ac_cv_header_stdc = yes; then
17244  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h.  */
17247#include <string.h>
17248
17249_ACEOF
17250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17251  $EGREP "memchr" >/dev/null 2>&1; then :
17252
17253else
17254  ac_cv_header_stdc=no
17255fi
17256rm -f conftest*
17257
17258fi
17259
17260if test $ac_cv_header_stdc = yes; then
17261  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263/* end confdefs.h.  */
17264#include <stdlib.h>
17265
17266_ACEOF
17267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17268  $EGREP "free" >/dev/null 2>&1; then :
17269
17270else
17271  ac_cv_header_stdc=no
17272fi
17273rm -f conftest*
17274
17275fi
17276
17277if test $ac_cv_header_stdc = yes; then
17278  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17279  if test "$cross_compiling" = yes; then :
17280  :
17281else
17282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283/* end confdefs.h.  */
17284#include <ctype.h>
17285#include <stdlib.h>
17286#if ((' ' & 0x0FF) == 0x020)
17287# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17288# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17289#else
17290# define ISLOWER(c) \
17291		   (('a' <= (c) && (c) <= 'i') \
17292		     || ('j' <= (c) && (c) <= 'r') \
17293		     || ('s' <= (c) && (c) <= 'z'))
17294# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17295#endif
17296
17297#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17298int
17299main ()
17300{
17301  int i;
17302  for (i = 0; i < 256; i++)
17303    if (XOR (islower (i), ISLOWER (i))
17304	|| toupper (i) != TOUPPER (i))
17305      return 2;
17306  return 0;
17307}
17308_ACEOF
17309if ac_fn_c_try_run "$LINENO"; then :
17310
17311else
17312  ac_cv_header_stdc=no
17313fi
17314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17315  conftest.$ac_objext conftest.beam conftest.$ac_ext
17316fi
17317
17318fi
17319fi
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17321$as_echo "$ac_cv_header_stdc" >&6; }
17322if test $ac_cv_header_stdc = yes; then
17323
17324$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17325
17326fi
17327
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17329$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17330if ${ac_cv_header_sys_wait_h+:} false; then :
17331  $as_echo_n "(cached) " >&6
17332else
17333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335#include <sys/types.h>
17336#include <sys/wait.h>
17337#ifndef WEXITSTATUS
17338# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17339#endif
17340#ifndef WIFEXITED
17341# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17342#endif
17343
17344int
17345main ()
17346{
17347  int s;
17348  wait (&s);
17349  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17350  ;
17351  return 0;
17352}
17353_ACEOF
17354if ac_fn_c_try_compile "$LINENO"; then :
17355  ac_cv_header_sys_wait_h=yes
17356else
17357  ac_cv_header_sys_wait_h=no
17358fi
17359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360fi
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17362$as_echo "$ac_cv_header_sys_wait_h" >&6; }
17363if test $ac_cv_header_sys_wait_h = yes; then
17364
17365$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17366
17367fi
17368
17369
17370for ac_header in errno.h fcntl.h getopt.h inttypes.h libgen.h libintl.h \
17371 limits.h locale.h malloc.h \
17372 netinet/in.h stddef.h stdlib.h string.h sys/file.h sys/param.h sys/select.h \
17373 sys/socket.h sys/systeminfo.h sys/time.h sys/types.h unistd.h io.h math.h
17374do :
17375  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17378  cat >>confdefs.h <<_ACEOF
17379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17380_ACEOF
17381
17382fi
17383
17384done
17385
17386
17387# Checks for typedefs, structures, and compiler characteristics.
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17389$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17390if ${ac_cv_c_bigendian+:} false; then :
17391  $as_echo_n "(cached) " >&6
17392else
17393  ac_cv_c_bigendian=unknown
17394    # See if we're dealing with a universal compiler.
17395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396/* end confdefs.h.  */
17397#ifndef __APPLE_CC__
17398	       not a universal capable compiler
17399	     #endif
17400	     typedef int dummy;
17401
17402_ACEOF
17403if ac_fn_c_try_compile "$LINENO"; then :
17404
17405	# Check for potential -arch flags.  It is not universal unless
17406	# there are at least two -arch flags with different values.
17407	ac_arch=
17408	ac_prev=
17409	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17410	 if test -n "$ac_prev"; then
17411	   case $ac_word in
17412	     i?86 | x86_64 | ppc | ppc64)
17413	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17414		 ac_arch=$ac_word
17415	       else
17416		 ac_cv_c_bigendian=universal
17417		 break
17418	       fi
17419	       ;;
17420	   esac
17421	   ac_prev=
17422	 elif test "x$ac_word" = "x-arch"; then
17423	   ac_prev=arch
17424	 fi
17425       done
17426fi
17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428    if test $ac_cv_c_bigendian = unknown; then
17429      # See if sys/param.h defines the BYTE_ORDER macro.
17430      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431/* end confdefs.h.  */
17432#include <sys/types.h>
17433	     #include <sys/param.h>
17434
17435int
17436main ()
17437{
17438#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17439		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17440		     && LITTLE_ENDIAN)
17441	      bogus endian macros
17442	     #endif
17443
17444  ;
17445  return 0;
17446}
17447_ACEOF
17448if ac_fn_c_try_compile "$LINENO"; then :
17449  # It does; now see whether it defined to BIG_ENDIAN or not.
17450	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451/* end confdefs.h.  */
17452#include <sys/types.h>
17453		#include <sys/param.h>
17454
17455int
17456main ()
17457{
17458#if BYTE_ORDER != BIG_ENDIAN
17459		 not big endian
17460		#endif
17461
17462  ;
17463  return 0;
17464}
17465_ACEOF
17466if ac_fn_c_try_compile "$LINENO"; then :
17467  ac_cv_c_bigendian=yes
17468else
17469  ac_cv_c_bigendian=no
17470fi
17471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472fi
17473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474    fi
17475    if test $ac_cv_c_bigendian = unknown; then
17476      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17477      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478/* end confdefs.h.  */
17479#include <limits.h>
17480
17481int
17482main ()
17483{
17484#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17485	      bogus endian macros
17486	     #endif
17487
17488  ;
17489  return 0;
17490}
17491_ACEOF
17492if ac_fn_c_try_compile "$LINENO"; then :
17493  # It does; now see whether it defined to _BIG_ENDIAN or not.
17494	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495/* end confdefs.h.  */
17496#include <limits.h>
17497
17498int
17499main ()
17500{
17501#ifndef _BIG_ENDIAN
17502		 not big endian
17503		#endif
17504
17505  ;
17506  return 0;
17507}
17508_ACEOF
17509if ac_fn_c_try_compile "$LINENO"; then :
17510  ac_cv_c_bigendian=yes
17511else
17512  ac_cv_c_bigendian=no
17513fi
17514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515fi
17516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517    fi
17518    if test $ac_cv_c_bigendian = unknown; then
17519      # Compile a test program.
17520      if test "$cross_compiling" = yes; then :
17521  # Try to guess by grepping values from an object file.
17522	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523/* end confdefs.h.  */
17524short int ascii_mm[] =
17525		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17526		short int ascii_ii[] =
17527		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17528		int use_ascii (int i) {
17529		  return ascii_mm[i] + ascii_ii[i];
17530		}
17531		short int ebcdic_ii[] =
17532		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17533		short int ebcdic_mm[] =
17534		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17535		int use_ebcdic (int i) {
17536		  return ebcdic_mm[i] + ebcdic_ii[i];
17537		}
17538		extern int foo;
17539
17540int
17541main ()
17542{
17543return use_ascii (foo) == use_ebcdic (foo);
17544  ;
17545  return 0;
17546}
17547_ACEOF
17548if ac_fn_c_try_compile "$LINENO"; then :
17549  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17550	      ac_cv_c_bigendian=yes
17551	    fi
17552	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17553	      if test "$ac_cv_c_bigendian" = unknown; then
17554		ac_cv_c_bigendian=no
17555	      else
17556		# finding both strings is unlikely to happen, but who knows?
17557		ac_cv_c_bigendian=unknown
17558	      fi
17559	    fi
17560fi
17561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562else
17563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h.  */
17565$ac_includes_default
17566int
17567main ()
17568{
17569
17570	     /* Are we little or big endian?  From Harbison&Steele.  */
17571	     union
17572	     {
17573	       long int l;
17574	       char c[sizeof (long int)];
17575	     } u;
17576	     u.l = 1;
17577	     return u.c[sizeof (long int) - 1] == 1;
17578
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_run "$LINENO"; then :
17584  ac_cv_c_bigendian=no
17585else
17586  ac_cv_c_bigendian=yes
17587fi
17588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17589  conftest.$ac_objext conftest.beam conftest.$ac_ext
17590fi
17591
17592    fi
17593fi
17594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17595$as_echo "$ac_cv_c_bigendian" >&6; }
17596 case $ac_cv_c_bigendian in #(
17597   yes)
17598     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17599;; #(
17600   no)
17601      ;; #(
17602   universal)
17603
17604$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17605
17606     ;; #(
17607   *)
17608     as_fn_error $? "unknown endianness
17609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17610 esac
17611
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17613$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17614if ${ac_cv_c_const+:} false; then :
17615  $as_echo_n "(cached) " >&6
17616else
17617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h.  */
17619
17620int
17621main ()
17622{
17623
17624#ifndef __cplusplus
17625  /* Ultrix mips cc rejects this sort of thing.  */
17626  typedef int charset[2];
17627  const charset cs = { 0, 0 };
17628  /* SunOS 4.1.1 cc rejects this.  */
17629  char const *const *pcpcc;
17630  char **ppc;
17631  /* NEC SVR4.0.2 mips cc rejects this.  */
17632  struct point {int x, y;};
17633  static struct point const zero = {0,0};
17634  /* AIX XL C 1.02.0.0 rejects this.
17635     It does not let you subtract one const X* pointer from another in
17636     an arm of an if-expression whose if-part is not a constant
17637     expression */
17638  const char *g = "string";
17639  pcpcc = &g + (g ? g-g : 0);
17640  /* HPUX 7.0 cc rejects these. */
17641  ++pcpcc;
17642  ppc = (char**) pcpcc;
17643  pcpcc = (char const *const *) ppc;
17644  { /* SCO 3.2v4 cc rejects this sort of thing.  */
17645    char tx;
17646    char *t = &tx;
17647    char const *s = 0 ? (char *) 0 : (char const *) 0;
17648
17649    *t++ = 0;
17650    if (s) return 0;
17651  }
17652  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17653    int x[] = {25, 17};
17654    const int *foo = &x[0];
17655    ++foo;
17656  }
17657  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17658    typedef const int *iptr;
17659    iptr p = 0;
17660    ++p;
17661  }
17662  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17663       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17664    struct s { int j; const int *ap[3]; } bx;
17665    struct s *b = &bx; b->j = 5;
17666  }
17667  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17668    const int foo = 10;
17669    if (!foo) return 0;
17670  }
17671  return !cs[0] && !zero.x;
17672#endif
17673
17674  ;
17675  return 0;
17676}
17677_ACEOF
17678if ac_fn_c_try_compile "$LINENO"; then :
17679  ac_cv_c_const=yes
17680else
17681  ac_cv_c_const=no
17682fi
17683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684fi
17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17686$as_echo "$ac_cv_c_const" >&6; }
17687if test $ac_cv_c_const = no; then
17688
17689$as_echo "#define const /**/" >>confdefs.h
17690
17691fi
17692
17693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17694$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17695if ${ac_cv_header_stdbool_h+:} false; then :
17696  $as_echo_n "(cached) " >&6
17697else
17698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699/* end confdefs.h.  */
17700
17701             #include <stdbool.h>
17702             #ifndef bool
17703              "error: bool is not defined"
17704             #endif
17705             #ifndef false
17706              "error: false is not defined"
17707             #endif
17708             #if false
17709              "error: false is not 0"
17710             #endif
17711             #ifndef true
17712              "error: true is not defined"
17713             #endif
17714             #if true != 1
17715              "error: true is not 1"
17716             #endif
17717             #ifndef __bool_true_false_are_defined
17718              "error: __bool_true_false_are_defined is not defined"
17719             #endif
17720
17721             struct s { _Bool s: 1; _Bool t; } s;
17722
17723             char a[true == 1 ? 1 : -1];
17724             char b[false == 0 ? 1 : -1];
17725             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17726             char d[(bool) 0.5 == true ? 1 : -1];
17727             /* See body of main program for 'e'.  */
17728             char f[(_Bool) 0.0 == false ? 1 : -1];
17729             char g[true];
17730             char h[sizeof (_Bool)];
17731             char i[sizeof s.t];
17732             enum { j = false, k = true, l = false * true, m = true * 256 };
17733             /* The following fails for
17734                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17735             _Bool n[m];
17736             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17737             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17738             /* Catch a bug in an HP-UX C compiler.  See
17739                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17740                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17741              */
17742             _Bool q = true;
17743             _Bool *pq = &q;
17744
17745int
17746main ()
17747{
17748
17749             bool e = &s;
17750             *pq |= q;
17751             *pq |= ! q;
17752             /* Refer to every declared value, to avoid compiler optimizations.  */
17753             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17754                     + !m + !n + !o + !p + !q + !pq);
17755
17756  ;
17757  return 0;
17758}
17759_ACEOF
17760if ac_fn_c_try_compile "$LINENO"; then :
17761  ac_cv_header_stdbool_h=yes
17762else
17763  ac_cv_header_stdbool_h=no
17764fi
17765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766fi
17767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17768$as_echo "$ac_cv_header_stdbool_h" >&6; }
17769   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17770if test "x$ac_cv_type__Bool" = xyes; then :
17771
17772cat >>confdefs.h <<_ACEOF
17773#define HAVE__BOOL 1
17774_ACEOF
17775
17776
17777fi
17778
17779
17780if test $ac_cv_header_stdbool_h = yes; then
17781
17782$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17783
17784fi
17785
17786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17787$as_echo_n "checking for inline... " >&6; }
17788if ${ac_cv_c_inline+:} false; then :
17789  $as_echo_n "(cached) " >&6
17790else
17791  ac_cv_c_inline=no
17792for ac_kw in inline __inline__ __inline; do
17793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h.  */
17795#ifndef __cplusplus
17796typedef int foo_t;
17797static $ac_kw foo_t static_foo () {return 0; }
17798$ac_kw foo_t foo () {return 0; }
17799#endif
17800
17801_ACEOF
17802if ac_fn_c_try_compile "$LINENO"; then :
17803  ac_cv_c_inline=$ac_kw
17804fi
17805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806  test "$ac_cv_c_inline" != no && break
17807done
17808
17809fi
17810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17811$as_echo "$ac_cv_c_inline" >&6; }
17812
17813case $ac_cv_c_inline in
17814  inline | yes) ;;
17815  *)
17816    case $ac_cv_c_inline in
17817      no) ac_val=;;
17818      *) ac_val=$ac_cv_c_inline;;
17819    esac
17820    cat >>confdefs.h <<_ACEOF
17821#ifndef __cplusplus
17822#define inline $ac_val
17823#endif
17824_ACEOF
17825    ;;
17826esac
17827
17828ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17829if test "x$ac_cv_type_size_t" = xyes; then :
17830
17831else
17832
17833cat >>confdefs.h <<_ACEOF
17834#define size_t unsigned int
17835_ACEOF
17836
17837fi
17838
17839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17840$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17841if ${ac_cv_header_time+:} false; then :
17842  $as_echo_n "(cached) " >&6
17843else
17844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845/* end confdefs.h.  */
17846#include <sys/types.h>
17847#include <sys/time.h>
17848#include <time.h>
17849
17850int
17851main ()
17852{
17853if ((struct tm *) 0)
17854return 0;
17855  ;
17856  return 0;
17857}
17858_ACEOF
17859if ac_fn_c_try_compile "$LINENO"; then :
17860  ac_cv_header_time=yes
17861else
17862  ac_cv_header_time=no
17863fi
17864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17865fi
17866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17867$as_echo "$ac_cv_header_time" >&6; }
17868if test $ac_cv_header_time = yes; then
17869
17870$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17871
17872fi
17873
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17875$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17876if ${ac_cv_struct_tm+:} false; then :
17877  $as_echo_n "(cached) " >&6
17878else
17879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h.  */
17881#include <sys/types.h>
17882#include <time.h>
17883
17884int
17885main ()
17886{
17887struct tm tm;
17888				     int *p = &tm.tm_sec;
17889				     return !p;
17890  ;
17891  return 0;
17892}
17893_ACEOF
17894if ac_fn_c_try_compile "$LINENO"; then :
17895  ac_cv_struct_tm=time.h
17896else
17897  ac_cv_struct_tm=sys/time.h
17898fi
17899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900fi
17901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17902$as_echo "$ac_cv_struct_tm" >&6; }
17903if test $ac_cv_struct_tm = sys/time.h; then
17904
17905$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17906
17907fi
17908
17909ac_ext=c
17910ac_cpp='$CPP $CPPFLAGS'
17911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI" >&5
17916$as_echo_n "checking for M_PI... " >&6; }
17917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918/* end confdefs.h.  */
17919#if HAVE_MATH_H
17920# include <math.h>
17921#endif
17922
17923int
17924main ()
17925{
17926double blah = M_PI;
17927  ;
17928  return 0;
17929}
17930_ACEOF
17931if ac_fn_c_try_compile "$LINENO"; then :
17932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17933$as_echo "yes" >&6; }
17934
17935$as_echo "#define HAVE_M_PI 1" >>confdefs.h
17936
17937else
17938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17939$as_echo "no" >&6; }
17940fi
17941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942ac_ext=c
17943ac_cpp='$CPP $CPPFLAGS'
17944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17946ac_compiler_gnu=$ac_cv_c_compiler_gnu
17947
17948ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
17949if test "x$ac_cv_type_dev_t" = xyes; then :
17950
17951cat >>confdefs.h <<_ACEOF
17952#define HAVE_DEV_T 1
17953_ACEOF
17954
17955
17956fi
17957ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
17958if test "x$ac_cv_type_ino_t" = xyes; then :
17959
17960cat >>confdefs.h <<_ACEOF
17961#define HAVE_INO_T 1
17962_ACEOF
17963
17964
17965fi
17966ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
17967if test "x$ac_cv_type_time_t" = xyes; then :
17968
17969cat >>confdefs.h <<_ACEOF
17970#define HAVE_TIME_T 1
17971_ACEOF
17972
17973
17974fi
17975
17976# The cast to long int works around a bug in the HP C Compiler
17977# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17978# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17979# This bug is HP SR number 8606223364.
17980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
17981$as_echo_n "checking size of dev_t... " >&6; }
17982if ${ac_cv_sizeof_dev_t+:} false; then :
17983  $as_echo_n "(cached) " >&6
17984else
17985  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t"        "$ac_includes_default"; then :
17986
17987else
17988  if test "$ac_cv_type_dev_t" = yes; then
17989     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17991as_fn_error 77 "cannot compute sizeof (dev_t)
17992See \`config.log' for more details" "$LINENO" 5; }
17993   else
17994     ac_cv_sizeof_dev_t=0
17995   fi
17996fi
17997
17998fi
17999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
18000$as_echo "$ac_cv_sizeof_dev_t" >&6; }
18001
18002
18003
18004cat >>confdefs.h <<_ACEOF
18005#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
18006_ACEOF
18007
18008
18009# The cast to long int works around a bug in the HP C Compiler
18010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18012# This bug is HP SR number 8606223364.
18013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
18014$as_echo_n "checking size of ino_t... " >&6; }
18015if ${ac_cv_sizeof_ino_t+:} false; then :
18016  $as_echo_n "(cached) " >&6
18017else
18018  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t"        "$ac_includes_default"; then :
18019
18020else
18021  if test "$ac_cv_type_ino_t" = yes; then
18022     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18024as_fn_error 77 "cannot compute sizeof (ino_t)
18025See \`config.log' for more details" "$LINENO" 5; }
18026   else
18027     ac_cv_sizeof_ino_t=0
18028   fi
18029fi
18030
18031fi
18032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
18033$as_echo "$ac_cv_sizeof_ino_t" >&6; }
18034
18035
18036
18037cat >>confdefs.h <<_ACEOF
18038#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
18039_ACEOF
18040
18041
18042# The cast to long int works around a bug in the HP C Compiler
18043# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18044# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18045# This bug is HP SR number 8606223364.
18046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18047$as_echo_n "checking size of time_t... " >&6; }
18048if ${ac_cv_sizeof_time_t+:} false; then :
18049  $as_echo_n "(cached) " >&6
18050else
18051  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
18052
18053else
18054  if test "$ac_cv_type_time_t" = yes; then
18055     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18057as_fn_error 77 "cannot compute sizeof (time_t)
18058See \`config.log' for more details" "$LINENO" 5; }
18059   else
18060     ac_cv_sizeof_time_t=0
18061   fi
18062fi
18063
18064fi
18065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18066$as_echo "$ac_cv_sizeof_time_t" >&6; }
18067
18068
18069
18070cat >>confdefs.h <<_ACEOF
18071#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18072_ACEOF
18073
18074
18075# The cast to long int works around a bug in the HP C Compiler
18076# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18077# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18078# This bug is HP SR number 8606223364.
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18080$as_echo_n "checking size of long... " >&6; }
18081if ${ac_cv_sizeof_long+:} false; then :
18082  $as_echo_n "(cached) " >&6
18083else
18084  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18085
18086else
18087  if test "$ac_cv_type_long" = yes; then
18088     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18090as_fn_error 77 "cannot compute sizeof (long)
18091See \`config.log' for more details" "$LINENO" 5; }
18092   else
18093     ac_cv_sizeof_long=0
18094   fi
18095fi
18096
18097fi
18098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18099$as_echo "$ac_cv_sizeof_long" >&6; }
18100
18101
18102
18103cat >>confdefs.h <<_ACEOF
18104#define SIZEOF_LONG $ac_cv_sizeof_long
18105_ACEOF
18106
18107
18108# The cast to long int works around a bug in the HP C Compiler
18109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18111# This bug is HP SR number 8606223364.
18112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18113$as_echo_n "checking size of int... " >&6; }
18114if ${ac_cv_sizeof_int+:} false; then :
18115  $as_echo_n "(cached) " >&6
18116else
18117  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18118
18119else
18120  if test "$ac_cv_type_int" = yes; then
18121     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18123as_fn_error 77 "cannot compute sizeof (int)
18124See \`config.log' for more details" "$LINENO" 5; }
18125   else
18126     ac_cv_sizeof_int=0
18127   fi
18128fi
18129
18130fi
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18132$as_echo "$ac_cv_sizeof_int" >&6; }
18133
18134
18135
18136cat >>confdefs.h <<_ACEOF
18137#define SIZEOF_INT $ac_cv_sizeof_int
18138_ACEOF
18139
18140
18141
18142# Checks for library functions
18143
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
18145$as_echo_n "checking whether closedir returns void... " >&6; }
18146if ${ac_cv_func_closedir_void+:} false; then :
18147  $as_echo_n "(cached) " >&6
18148else
18149  if test "$cross_compiling" = yes; then :
18150  ac_cv_func_closedir_void=yes
18151else
18152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153/* end confdefs.h.  */
18154$ac_includes_default
18155#include <$ac_header_dirent>
18156#ifndef __cplusplus
18157int closedir ();
18158#endif
18159
18160int
18161main ()
18162{
18163return closedir (opendir (".")) != 0;
18164  ;
18165  return 0;
18166}
18167_ACEOF
18168if ac_fn_c_try_run "$LINENO"; then :
18169  ac_cv_func_closedir_void=no
18170else
18171  ac_cv_func_closedir_void=yes
18172fi
18173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18174  conftest.$ac_objext conftest.beam conftest.$ac_ext
18175fi
18176
18177fi
18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
18179$as_echo "$ac_cv_func_closedir_void" >&6; }
18180if test $ac_cv_func_closedir_void = yes; then
18181
18182$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
18183
18184fi
18185
18186ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18187if test "x$ac_cv_type_pid_t" = xyes; then :
18188
18189else
18190
18191cat >>confdefs.h <<_ACEOF
18192#define pid_t int
18193_ACEOF
18194
18195fi
18196
18197for ac_header in vfork.h
18198do :
18199  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18200if test "x$ac_cv_header_vfork_h" = xyes; then :
18201  cat >>confdefs.h <<_ACEOF
18202#define HAVE_VFORK_H 1
18203_ACEOF
18204
18205fi
18206
18207done
18208
18209for ac_func in fork vfork
18210do :
18211  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18212ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18213if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18214  cat >>confdefs.h <<_ACEOF
18215#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18216_ACEOF
18217
18218fi
18219done
18220
18221if test "x$ac_cv_func_fork" = xyes; then
18222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18223$as_echo_n "checking for working fork... " >&6; }
18224if ${ac_cv_func_fork_works+:} false; then :
18225  $as_echo_n "(cached) " >&6
18226else
18227  if test "$cross_compiling" = yes; then :
18228  ac_cv_func_fork_works=cross
18229else
18230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231/* end confdefs.h.  */
18232$ac_includes_default
18233int
18234main ()
18235{
18236
18237	  /* By Ruediger Kuhlmann. */
18238	  return fork () < 0;
18239
18240  ;
18241  return 0;
18242}
18243_ACEOF
18244if ac_fn_c_try_run "$LINENO"; then :
18245  ac_cv_func_fork_works=yes
18246else
18247  ac_cv_func_fork_works=no
18248fi
18249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18250  conftest.$ac_objext conftest.beam conftest.$ac_ext
18251fi
18252
18253fi
18254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18255$as_echo "$ac_cv_func_fork_works" >&6; }
18256
18257else
18258  ac_cv_func_fork_works=$ac_cv_func_fork
18259fi
18260if test "x$ac_cv_func_fork_works" = xcross; then
18261  case $host in
18262    *-*-amigaos* | *-*-msdosdjgpp*)
18263      # Override, as these systems have only a dummy fork() stub
18264      ac_cv_func_fork_works=no
18265      ;;
18266    *)
18267      ac_cv_func_fork_works=yes
18268      ;;
18269  esac
18270  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18271$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18272fi
18273ac_cv_func_vfork_works=$ac_cv_func_vfork
18274if test "x$ac_cv_func_vfork" = xyes; then
18275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18276$as_echo_n "checking for working vfork... " >&6; }
18277if ${ac_cv_func_vfork_works+:} false; then :
18278  $as_echo_n "(cached) " >&6
18279else
18280  if test "$cross_compiling" = yes; then :
18281  ac_cv_func_vfork_works=cross
18282else
18283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284/* end confdefs.h.  */
18285/* Thanks to Paul Eggert for this test.  */
18286$ac_includes_default
18287#include <sys/wait.h>
18288#ifdef HAVE_VFORK_H
18289# include <vfork.h>
18290#endif
18291/* On some sparc systems, changes by the child to local and incoming
18292   argument registers are propagated back to the parent.  The compiler
18293   is told about this with #include <vfork.h>, but some compilers
18294   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
18295   static variable whose address is put into a register that is
18296   clobbered by the vfork.  */
18297static void
18298#ifdef __cplusplus
18299sparc_address_test (int arg)
18300# else
18301sparc_address_test (arg) int arg;
18302#endif
18303{
18304  static pid_t child;
18305  if (!child) {
18306    child = vfork ();
18307    if (child < 0) {
18308      perror ("vfork");
18309      _exit(2);
18310    }
18311    if (!child) {
18312      arg = getpid();
18313      write(-1, "", 0);
18314      _exit (arg);
18315    }
18316  }
18317}
18318
18319int
18320main ()
18321{
18322  pid_t parent = getpid ();
18323  pid_t child;
18324
18325  sparc_address_test (0);
18326
18327  child = vfork ();
18328
18329  if (child == 0) {
18330    /* Here is another test for sparc vfork register problems.  This
18331       test uses lots of local variables, at least as many local
18332       variables as main has allocated so far including compiler
18333       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
18334       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
18335       reuse the register of parent for one of the local variables,
18336       since it will think that parent can't possibly be used any more
18337       in this routine.  Assigning to the local variable will thus
18338       munge parent in the parent process.  */
18339    pid_t
18340      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18341      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18342    /* Convince the compiler that p..p7 are live; otherwise, it might
18343       use the same hardware register for all 8 local variables.  */
18344    if (p != p1 || p != p2 || p != p3 || p != p4
18345	|| p != p5 || p != p6 || p != p7)
18346      _exit(1);
18347
18348    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18349       from child file descriptors.  If the child closes a descriptor
18350       before it execs or exits, this munges the parent's descriptor
18351       as well.  Test for this by closing stdout in the child.  */
18352    _exit(close(fileno(stdout)) != 0);
18353  } else {
18354    int status;
18355    struct stat st;
18356
18357    while (wait(&status) != child)
18358      ;
18359    return (
18360	 /* Was there some problem with vforking?  */
18361	 child < 0
18362
18363	 /* Did the child fail?  (This shouldn't happen.)  */
18364	 || status
18365
18366	 /* Did the vfork/compiler bug occur?  */
18367	 || parent != getpid()
18368
18369	 /* Did the file descriptor bug occur?  */
18370	 || fstat(fileno(stdout), &st) != 0
18371	 );
18372  }
18373}
18374_ACEOF
18375if ac_fn_c_try_run "$LINENO"; then :
18376  ac_cv_func_vfork_works=yes
18377else
18378  ac_cv_func_vfork_works=no
18379fi
18380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18381  conftest.$ac_objext conftest.beam conftest.$ac_ext
18382fi
18383
18384fi
18385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18386$as_echo "$ac_cv_func_vfork_works" >&6; }
18387
18388fi;
18389if test "x$ac_cv_func_fork_works" = xcross; then
18390  ac_cv_func_vfork_works=$ac_cv_func_vfork
18391  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18392$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18393fi
18394
18395if test "x$ac_cv_func_vfork_works" = xyes; then
18396
18397$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18398
18399else
18400
18401$as_echo "#define vfork fork" >>confdefs.h
18402
18403fi
18404if test "x$ac_cv_func_fork_works" = xyes; then
18405
18406$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18407
18408fi
18409
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
18411$as_echo_n "checking for working memcmp... " >&6; }
18412if ${ac_cv_func_memcmp_working+:} false; then :
18413  $as_echo_n "(cached) " >&6
18414else
18415  if test "$cross_compiling" = yes; then :
18416  ac_cv_func_memcmp_working=no
18417else
18418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419/* end confdefs.h.  */
18420$ac_includes_default
18421int
18422main ()
18423{
18424
18425  /* Some versions of memcmp are not 8-bit clean.  */
18426  char c0 = '\100', c1 = '\200', c2 = '\201';
18427  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18428    return 1;
18429
18430  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18431     or more and with at least one buffer not starting on a 4-byte boundary.
18432     William Lewis provided this test program.   */
18433  {
18434    char foo[21];
18435    char bar[21];
18436    int i;
18437    for (i = 0; i < 4; i++)
18438      {
18439	char *a = foo + i;
18440	char *b = bar + i;
18441	strcpy (a, "--------01111111");
18442	strcpy (b, "--------10000000");
18443	if (memcmp (a, b, 16) >= 0)
18444	  return 1;
18445      }
18446    return 0;
18447  }
18448
18449  ;
18450  return 0;
18451}
18452_ACEOF
18453if ac_fn_c_try_run "$LINENO"; then :
18454  ac_cv_func_memcmp_working=yes
18455else
18456  ac_cv_func_memcmp_working=no
18457fi
18458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18459  conftest.$ac_objext conftest.beam conftest.$ac_ext
18460fi
18461
18462fi
18463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18464$as_echo "$ac_cv_func_memcmp_working" >&6; }
18465test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18466  *" memcmp.$ac_objext "* ) ;;
18467  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18468 ;;
18469esac
18470
18471
18472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
18473$as_echo_n "checking for obstacks... " >&6; }
18474if ${ac_cv_func_obstack+:} false; then :
18475  $as_echo_n "(cached) " >&6
18476else
18477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478/* end confdefs.h.  */
18479$ac_includes_default
18480		      #include "obstack.h"
18481int
18482main ()
18483{
18484struct obstack mem;
18485		       #define obstack_chunk_alloc malloc
18486		       #define obstack_chunk_free free
18487		       obstack_init (&mem);
18488		       obstack_free (&mem, 0);
18489  ;
18490  return 0;
18491}
18492_ACEOF
18493if ac_fn_c_try_link "$LINENO"; then :
18494  ac_cv_func_obstack=yes
18495else
18496  ac_cv_func_obstack=no
18497fi
18498rm -f core conftest.err conftest.$ac_objext \
18499    conftest$ac_exeext conftest.$ac_ext
18500fi
18501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
18502$as_echo "$ac_cv_func_obstack" >&6; }
18503if test $ac_cv_func_obstack = yes; then
18504
18505$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
18506
18507else
18508  case " $LIBOBJS " in
18509  *" obstack.$ac_objext "* ) ;;
18510  *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
18511 ;;
18512esac
18513
18514fi
18515
18516#AC_FUNC_MALLOC  It is ok when malloc(0) returns NULL. Why not?
18517#AC_FUNC_REALLOC It is ok when realloc(0, 0) returns NULL. Why not?
18518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
18519$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
18520if ${ac_cv_func_setpgrp_void+:} false; then :
18521  $as_echo_n "(cached) " >&6
18522else
18523  if test "$cross_compiling" = yes; then :
18524  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
18525else
18526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527/* end confdefs.h.  */
18528$ac_includes_default
18529int
18530main ()
18531{
18532/* If this system has a BSD-style setpgrp which takes arguments,
18533  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18534  exit successfully. */
18535  return setpgrp (1,1) != -1;
18536  ;
18537  return 0;
18538}
18539_ACEOF
18540if ac_fn_c_try_run "$LINENO"; then :
18541  ac_cv_func_setpgrp_void=no
18542else
18543  ac_cv_func_setpgrp_void=yes
18544fi
18545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18546  conftest.$ac_objext conftest.beam conftest.$ac_ext
18547fi
18548
18549fi
18550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
18551$as_echo "$ac_cv_func_setpgrp_void" >&6; }
18552if test $ac_cv_func_setpgrp_void = yes; then
18553
18554$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
18555
18556fi
18557
18558if ${ac_cv_func_setvbuf_reversed+:} false; then :
18559  $as_echo_n "(cached) " >&6
18560else
18561  ac_cv_func_setvbuf_reversed=no
18562fi
18563
18564
18565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18566$as_echo_n "checking return type of signal handlers... " >&6; }
18567if ${ac_cv_type_signal+:} false; then :
18568  $as_echo_n "(cached) " >&6
18569else
18570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571/* end confdefs.h.  */
18572#include <sys/types.h>
18573#include <signal.h>
18574
18575int
18576main ()
18577{
18578return *(signal (0, 0)) (0) == 1;
18579  ;
18580  return 0;
18581}
18582_ACEOF
18583if ac_fn_c_try_compile "$LINENO"; then :
18584  ac_cv_type_signal=int
18585else
18586  ac_cv_type_signal=void
18587fi
18588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589fi
18590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18591$as_echo "$ac_cv_type_signal" >&6; }
18592
18593cat >>confdefs.h <<_ACEOF
18594#define RETSIGTYPE $ac_cv_type_signal
18595_ACEOF
18596
18597
18598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18599$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18600if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
18601  $as_echo_n "(cached) " >&6
18602else
18603  rm -f conftest.sym conftest.file
18604echo >conftest.file
18605if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18606  if test "$cross_compiling" = yes; then :
18607  ac_cv_func_lstat_dereferences_slashed_symlink=no
18608else
18609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610/* end confdefs.h.  */
18611$ac_includes_default
18612int
18613main ()
18614{
18615struct stat sbuf;
18616     /* Linux will dereference the symlink and fail, as required by POSIX.
18617	That is better in the sense that it means we will not
18618	have to compile and use the lstat wrapper.  */
18619     return lstat ("conftest.sym/", &sbuf) == 0;
18620  ;
18621  return 0;
18622}
18623_ACEOF
18624if ac_fn_c_try_run "$LINENO"; then :
18625  ac_cv_func_lstat_dereferences_slashed_symlink=yes
18626else
18627  ac_cv_func_lstat_dereferences_slashed_symlink=no
18628fi
18629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18630  conftest.$ac_objext conftest.beam conftest.$ac_ext
18631fi
18632
18633else
18634  # If the `ln -s' command failed, then we probably don't even
18635  # have an lstat function.
18636  ac_cv_func_lstat_dereferences_slashed_symlink=no
18637fi
18638rm -f conftest.sym conftest.file
18639
18640fi
18641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18642$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18643
18644test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18645
18646cat >>confdefs.h <<_ACEOF
18647#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18648_ACEOF
18649
18650
18651if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
18652  case " $LIBOBJS " in
18653  *" lstat.$ac_objext "* ) ;;
18654  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18655 ;;
18656esac
18657
18658fi
18659
18660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
18661$as_echo_n "checking whether stat accepts an empty string... " >&6; }
18662if ${ac_cv_func_stat_empty_string_bug+:} false; then :
18663  $as_echo_n "(cached) " >&6
18664else
18665  if test "$cross_compiling" = yes; then :
18666  ac_cv_func_stat_empty_string_bug=yes
18667else
18668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669/* end confdefs.h.  */
18670$ac_includes_default
18671int
18672main ()
18673{
18674struct stat sbuf;
18675  return stat ("", &sbuf) == 0;
18676  ;
18677  return 0;
18678}
18679_ACEOF
18680if ac_fn_c_try_run "$LINENO"; then :
18681  ac_cv_func_stat_empty_string_bug=no
18682else
18683  ac_cv_func_stat_empty_string_bug=yes
18684fi
18685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18686  conftest.$ac_objext conftest.beam conftest.$ac_ext
18687fi
18688
18689fi
18690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
18691$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
18692if test $ac_cv_func_stat_empty_string_bug = yes; then
18693  case " $LIBOBJS " in
18694  *" stat.$ac_objext "* ) ;;
18695  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
18696 ;;
18697esac
18698
18699
18700cat >>confdefs.h <<_ACEOF
18701#define HAVE_STAT_EMPTY_STRING_BUG 1
18702_ACEOF
18703
18704fi
18705
18706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
18707$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
18708if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
18709  $as_echo_n "(cached) " >&6
18710else
18711  if test "$cross_compiling" = yes; then :
18712  ac_cv_func_lstat_empty_string_bug=yes
18713else
18714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716$ac_includes_default
18717int
18718main ()
18719{
18720struct stat sbuf;
18721  return lstat ("", &sbuf) == 0;
18722  ;
18723  return 0;
18724}
18725_ACEOF
18726if ac_fn_c_try_run "$LINENO"; then :
18727  ac_cv_func_lstat_empty_string_bug=no
18728else
18729  ac_cv_func_lstat_empty_string_bug=yes
18730fi
18731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18732  conftest.$ac_objext conftest.beam conftest.$ac_ext
18733fi
18734
18735fi
18736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
18737$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
18738if test $ac_cv_func_lstat_empty_string_bug = yes; then
18739  case " $LIBOBJS " in
18740  *" lstat.$ac_objext "* ) ;;
18741  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18742 ;;
18743esac
18744
18745
18746cat >>confdefs.h <<_ACEOF
18747#define HAVE_LSTAT_EMPTY_STRING_BUG 1
18748_ACEOF
18749
18750fi
18751
18752#AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
18753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
18754$as_echo_n "checking for working strtod... " >&6; }
18755if ${ac_cv_func_strtod+:} false; then :
18756  $as_echo_n "(cached) " >&6
18757else
18758  if test "$cross_compiling" = yes; then :
18759  ac_cv_func_strtod=no
18760else
18761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764$ac_includes_default
18765#ifndef strtod
18766double strtod ();
18767#endif
18768int
18769main()
18770{
18771  {
18772    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
18773    char *string = " +69";
18774    char *term;
18775    double value;
18776    value = strtod (string, &term);
18777    if (value != 69 || term != (string + 4))
18778      return 1;
18779  }
18780
18781  {
18782    /* Under Solaris 2.4, strtod returns the wrong value for the
18783       terminating character under some conditions.  */
18784    char *string = "NaN";
18785    char *term;
18786    strtod (string, &term);
18787    if (term != string && *(term - 1) == 0)
18788      return 1;
18789  }
18790  return 0;
18791}
18792
18793_ACEOF
18794if ac_fn_c_try_run "$LINENO"; then :
18795  ac_cv_func_strtod=yes
18796else
18797  ac_cv_func_strtod=no
18798fi
18799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18800  conftest.$ac_objext conftest.beam conftest.$ac_ext
18801fi
18802
18803fi
18804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
18805$as_echo "$ac_cv_func_strtod" >&6; }
18806if test $ac_cv_func_strtod = no; then
18807  case " $LIBOBJS " in
18808  *" strtod.$ac_objext "* ) ;;
18809  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
18810 ;;
18811esac
18812
18813ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
18814if test "x$ac_cv_func_pow" = xyes; then :
18815
18816fi
18817
18818if test $ac_cv_func_pow = no; then
18819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
18820$as_echo_n "checking for pow in -lm... " >&6; }
18821if ${ac_cv_lib_m_pow+:} false; then :
18822  $as_echo_n "(cached) " >&6
18823else
18824  ac_check_lib_save_LIBS=$LIBS
18825LIBS="-lm  $LIBS"
18826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827/* end confdefs.h.  */
18828
18829/* Override any GCC internal prototype to avoid an error.
18830   Use char because int might match the return type of a GCC
18831   builtin and then its argument prototype would still apply.  */
18832#ifdef __cplusplus
18833extern "C"
18834#endif
18835char pow ();
18836int
18837main ()
18838{
18839return pow ();
18840  ;
18841  return 0;
18842}
18843_ACEOF
18844if ac_fn_c_try_link "$LINENO"; then :
18845  ac_cv_lib_m_pow=yes
18846else
18847  ac_cv_lib_m_pow=no
18848fi
18849rm -f core conftest.err conftest.$ac_objext \
18850    conftest$ac_exeext conftest.$ac_ext
18851LIBS=$ac_check_lib_save_LIBS
18852fi
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
18854$as_echo "$ac_cv_lib_m_pow" >&6; }
18855if test "x$ac_cv_lib_m_pow" = xyes; then :
18856  POW_LIB=-lm
18857else
18858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
18859$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
18860fi
18861
18862fi
18863
18864fi
18865
18866for ac_func in vprintf
18867do :
18868  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18869if test "x$ac_cv_func_vprintf" = xyes; then :
18870  cat >>confdefs.h <<_ACEOF
18871#define HAVE_VPRINTF 1
18872_ACEOF
18873
18874ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18875if test "x$ac_cv_func__doprnt" = xyes; then :
18876
18877$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
18878
18879fi
18880
18881fi
18882done
18883
18884
18885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
18886$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
18887if ${ac_cv_func_wait3_rusage+:} false; then :
18888  $as_echo_n "(cached) " >&6
18889else
18890  if test "$cross_compiling" = yes; then :
18891  ac_cv_func_wait3_rusage=no
18892else
18893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894/* end confdefs.h.  */
18895$ac_includes_default
18896#include <sys/time.h>
18897#include <sys/resource.h>
18898#include <sys/wait.h>
18899/* HP-UX has wait3 but does not fill in rusage at all.  */
18900int
18901main ()
18902{
18903  struct rusage r;
18904  int i;
18905  /* Use a field that we can force nonzero --
18906     voluntary context switches.
18907     For systems like NeXT and OSF/1 that don't set it,
18908     also use the system CPU time.  And page faults (I/O) for Linux.  */
18909  r.ru_nvcsw = 0;
18910  r.ru_stime.tv_sec = 0;
18911  r.ru_stime.tv_usec = 0;
18912  r.ru_majflt = r.ru_minflt = 0;
18913  switch (fork ())
18914    {
18915    case 0: /* Child.  */
18916      sleep(1); /* Give up the CPU.  */
18917      _exit(0);
18918      break;
18919    case -1: /* What can we do?  */
18920      _exit(0);
18921      break;
18922    default: /* Parent.  */
18923      wait3(&i, 0, &r);
18924      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
18925      sleep(2);
18926      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
18927	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
18928    }
18929}
18930_ACEOF
18931if ac_fn_c_try_run "$LINENO"; then :
18932  ac_cv_func_wait3_rusage=yes
18933else
18934  ac_cv_func_wait3_rusage=no
18935fi
18936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18937  conftest.$ac_objext conftest.beam conftest.$ac_ext
18938fi
18939
18940fi
18941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
18942$as_echo "$ac_cv_func_wait3_rusage" >&6; }
18943if test $ac_cv_func_wait3_rusage = yes; then
18944
18945$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
18946
18947fi
18948
18949for ac_func in fmemopen
18950do :
18951  ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
18952if test "x$ac_cv_func_fmemopen" = xyes; then :
18953  cat >>confdefs.h <<_ACEOF
18954#define HAVE_FMEMOPEN 1
18955_ACEOF
18956 ac_fn_c_check_decl "$LINENO" "fmemopen" "ac_cv_have_decl_fmemopen" "$ac_includes_default"
18957if test "x$ac_cv_have_decl_fmemopen" = xyes; then :
18958  ac_have_decl=1
18959else
18960  ac_have_decl=0
18961fi
18962
18963cat >>confdefs.h <<_ACEOF
18964#define HAVE_DECL_FMEMOPEN $ac_have_decl
18965_ACEOF
18966
18967else
18968  case " $LIBOBJS " in
18969  *" fmemopen.$ac_objext "* ) ;;
18970  *) LIBOBJS="$LIBOBJS fmemopen.$ac_objext"
18971 ;;
18972esac
18973
18974fi
18975done
18976
18977ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh"
18978if test "x$ac_cv_func_acosh" = xyes; then :
18979  $as_echo "#define HAVE_ACOSH 1" >>confdefs.h
18980
18981else
18982  case " $LIBOBJS " in
18983  *" acosh.$ac_objext "* ) ;;
18984  *) LIBOBJS="$LIBOBJS acosh.$ac_objext"
18985 ;;
18986esac
18987
18988fi
18989
18990ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
18991if test "x$ac_cv_func_popen" = xyes; then :
18992  $as_echo "#define HAVE_POPEN 1" >>confdefs.h
18993
18994else
18995  case " $LIBOBJS " in
18996  *" popen.$ac_objext "* ) ;;
18997  *) LIBOBJS="$LIBOBJS popen.$ac_objext"
18998 ;;
18999esac
19000
19001fi
19002
19003ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
19004if test "x$ac_cv_func_putenv" = xyes; then :
19005  $as_echo "#define HAVE_PUTENV 1" >>confdefs.h
19006
19007else
19008  case " $LIBOBJS " in
19009  *" putenv.$ac_objext "* ) ;;
19010  *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
19011 ;;
19012esac
19013
19014fi
19015
19016ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19017if test "x$ac_cv_func_strcasecmp" = xyes; then :
19018  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
19019
19020else
19021  case " $LIBOBJS " in
19022  *" strcasecmp.$ac_objext "* ) ;;
19023  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
19024 ;;
19025esac
19026
19027fi
19028
19029ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19030if test "x$ac_cv_func_strdup" = xyes; then :
19031  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
19032
19033else
19034  case " $LIBOBJS " in
19035  *" strdup.$ac_objext "* ) ;;
19036  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
19037 ;;
19038esac
19039
19040fi
19041
19042ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
19043if test "x$ac_cv_func_strncasecmp" = xyes; then :
19044  $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
19045
19046else
19047  case " $LIBOBJS " in
19048  *" strncasecmp.$ac_objext "* ) ;;
19049  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
19050 ;;
19051esac
19052
19053fi
19054
19055ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19056if test "x$ac_cv_func_lstat" = xyes; then :
19057  $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
19058
19059else
19060  case " $LIBOBJS " in
19061  *" lstat.$ac_objext "* ) ;;
19062  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19063 ;;
19064esac
19065
19066fi
19067
19068ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
19069if test "x$ac_cv_func_stat" = xyes; then :
19070  $as_echo "#define HAVE_STAT 1" >>confdefs.h
19071
19072else
19073  case " $LIBOBJS " in
19074  *" stat.$ac_objext "* ) ;;
19075  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19076 ;;
19077esac
19078
19079fi
19080
19081
19082ac_fn_c_check_decl "$LINENO" "putenv" "ac_cv_have_decl_putenv" "$ac_includes_default"
19083if test "x$ac_cv_have_decl_putenv" = xyes; then :
19084  ac_have_decl=1
19085else
19086  ac_have_decl=0
19087fi
19088
19089cat >>confdefs.h <<_ACEOF
19090#define HAVE_DECL_PUTENV $ac_have_decl
19091_ACEOF
19092ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
19093if test "x$ac_cv_have_decl_strdup" = xyes; then :
19094  ac_have_decl=1
19095else
19096  ac_have_decl=0
19097fi
19098
19099cat >>confdefs.h <<_ACEOF
19100#define HAVE_DECL_STRDUP $ac_have_decl
19101_ACEOF
19102ac_fn_c_check_decl "$LINENO" "acosh" "ac_cv_have_decl_acosh" "$ac_includes_default"
19103if test "x$ac_cv_have_decl_acosh" = xyes; then :
19104  ac_have_decl=1
19105else
19106  ac_have_decl=0
19107fi
19108
19109cat >>confdefs.h <<_ACEOF
19110#define HAVE_DECL_ACOSH $ac_have_decl
19111_ACEOF
19112ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
19113if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
19114  ac_have_decl=1
19115else
19116  ac_have_decl=0
19117fi
19118
19119cat >>confdefs.h <<_ACEOF
19120#define HAVE_DECL_STRCASECMP $ac_have_decl
19121_ACEOF
19122ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
19123if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
19124  ac_have_decl=1
19125else
19126  ac_have_decl=0
19127fi
19128
19129cat >>confdefs.h <<_ACEOF
19130#define HAVE_DECL_STRNCASECMP $ac_have_decl
19131_ACEOF
19132
19133for ac_func in fstat
19134do :
19135  ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
19136if test "x$ac_cv_func_fstat" = xyes; then :
19137  cat >>confdefs.h <<_ACEOF
19138#define HAVE_FSTAT 1
19139_ACEOF
19140
19141fi
19142done
19143
19144for ac_func in vfscanf
19145do :
19146  ac_fn_c_check_func "$LINENO" "vfscanf" "ac_cv_func_vfscanf"
19147if test "x$ac_cv_func_vfscanf" = xyes; then :
19148  cat >>confdefs.h <<_ACEOF
19149#define HAVE_VFSCANF 1
19150_ACEOF
19151
19152fi
19153done
19154
19155for ac_header in sys/select.h sys/socket.h
19156do :
19157  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19158ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19159if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19160  cat >>confdefs.h <<_ACEOF
19161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19162_ACEOF
19163
19164fi
19165
19166done
19167
19168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19169$as_echo_n "checking types of arguments for select... " >&6; }
19170if ${ac_cv_func_select_args+:} false; then :
19171  $as_echo_n "(cached) " >&6
19172else
19173  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19174 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19175  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177/* end confdefs.h.  */
19178$ac_includes_default
19179#ifdef HAVE_SYS_SELECT_H
19180# include <sys/select.h>
19181#endif
19182#ifdef HAVE_SYS_SOCKET_H
19183# include <sys/socket.h>
19184#endif
19185
19186int
19187main ()
19188{
19189extern int select ($ac_arg1,
19190					    $ac_arg234, $ac_arg234, $ac_arg234,
19191					    $ac_arg5);
19192  ;
19193  return 0;
19194}
19195_ACEOF
19196if ac_fn_c_try_compile "$LINENO"; then :
19197  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19198fi
19199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200  done
19201 done
19202done
19203# Provide a safe default value.
19204: "${ac_cv_func_select_args=int,int *,struct timeval *}"
19205
19206fi
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19208$as_echo "$ac_cv_func_select_args" >&6; }
19209ac_save_IFS=$IFS; IFS=','
19210set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19211IFS=$ac_save_IFS
19212shift
19213
19214cat >>confdefs.h <<_ACEOF
19215#define SELECT_TYPE_ARG1 $1
19216_ACEOF
19217
19218
19219cat >>confdefs.h <<_ACEOF
19220#define SELECT_TYPE_ARG234 ($2)
19221_ACEOF
19222
19223
19224cat >>confdefs.h <<_ACEOF
19225#define SELECT_TYPE_ARG5 ($3)
19226_ACEOF
19227
19228rm -f conftest*
19229
19230ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
19231if test "x$ac_cv_func_select" = xyes; then :
19232
19233$as_echo "#define HAVE_SELECT 1" >>confdefs.h
19234
19235ac_fn_c_check_decl "$LINENO" "select" "ac_cv_have_decl_select" "
19236#if HAVE_SYS_SELECT_H
19237# include <sys/select.h>
19238#endif
19239#if HAVE_UNISTD_H
19240# include <unistd.h>
19241#endif
19242#if HAVE_SYS_TIME_H
19243# include <sys/time.h>
19244#endif
19245#if HAVE_SYS_TYPES_H
19246# include <sys/types.h>
19247#endif
19248"
19249if test "x$ac_cv_have_decl_select" = xyes; then :
19250  ac_have_decl=1
19251else
19252  ac_have_decl=0
19253fi
19254
19255cat >>confdefs.h <<_ACEOF
19256#define HAVE_DECL_SELECT $ac_have_decl
19257_ACEOF
19258
19259fi
19260
19261ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
19262#if HAVE_ERRNO_H
19263# include <errno.h>
19264#endif
19265"
19266if test "x$ac_cv_have_decl_errno" = xyes; then :
19267  ac_have_decl=1
19268else
19269  ac_have_decl=0
19270fi
19271
19272cat >>confdefs.h <<_ACEOF
19273#define HAVE_DECL_ERRNO $ac_have_decl
19274_ACEOF
19275
19276ac_gv_save_CPPFLAGS="${CPPFLAGS}"
19277CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
19278for ac_func in lseek64 llseek lseek
19279do :
19280  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19283  cat >>confdefs.h <<_ACEOF
19284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19285_ACEOF
19286
19287fi
19288done
19289
19290ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "$ac_includes_default"
19291if test "x$ac_cv_have_decl_lseek64" = xyes; then :
19292  ac_have_decl=1
19293else
19294  ac_have_decl=0
19295fi
19296
19297cat >>confdefs.h <<_ACEOF
19298#define HAVE_DECL_LSEEK64 $ac_have_decl
19299_ACEOF
19300ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "$ac_includes_default"
19301if test "x$ac_cv_have_decl_llseek" = xyes; then :
19302  ac_have_decl=1
19303else
19304  ac_have_decl=0
19305fi
19306
19307cat >>confdefs.h <<_ACEOF
19308#define HAVE_DECL_LLSEEK $ac_have_decl
19309_ACEOF
19310ac_fn_c_check_decl "$LINENO" "lseek" "ac_cv_have_decl_lseek" "$ac_includes_default"
19311if test "x$ac_cv_have_decl_lseek" = xyes; then :
19312  ac_have_decl=1
19313else
19314  ac_have_decl=0
19315fi
19316
19317cat >>confdefs.h <<_ACEOF
19318#define HAVE_DECL_LSEEK $ac_have_decl
19319_ACEOF
19320
19321ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
19322if test "x$ac_cv_type_off64_t" = xyes; then :
19323
19324cat >>confdefs.h <<_ACEOF
19325#define HAVE_OFF64_T 1
19326_ACEOF
19327
19328
19329fi
19330ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
19331if test "x$ac_cv_type_loff_t" = xyes; then :
19332
19333cat >>confdefs.h <<_ACEOF
19334#define HAVE_LOFF_T 1
19335_ACEOF
19336
19337
19338fi
19339ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19340if test "x$ac_cv_type_off_t" = xyes; then :
19341
19342cat >>confdefs.h <<_ACEOF
19343#define HAVE_OFF_T 1
19344_ACEOF
19345
19346
19347fi
19348
19349CPPFLAGS="${ac_gv_save_CPPFLAGS}"
19350for ac_func in alarm basename bzero bcopy dirname dup2 floor fcntl finite \
19351  gethostname getopt gettimeofday isascii mallinfo memset mkdir pow read rint \
19352  select sqrt strchr strcspn strdup strerror strncasecmp strpbrk \
19353  strrchr strstr strtol strerror sysinfo waitpid wait3 write
19354do :
19355  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19356ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19357if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19358  cat >>confdefs.h <<_ACEOF
19359#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19360_ACEOF
19361
19362fi
19363done
19364
19365ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
19366if test "x$ac_cv_have_decl_getopt" = xyes; then :
19367  ac_have_decl=1
19368else
19369  ac_have_decl=0
19370fi
19371
19372cat >>confdefs.h <<_ACEOF
19373#define HAVE_DECL_GETOPT $ac_have_decl
19374_ACEOF
19375ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
19376if test "x$ac_cv_have_decl_optarg" = xyes; then :
19377  ac_have_decl=1
19378else
19379  ac_have_decl=0
19380fi
19381
19382cat >>confdefs.h <<_ACEOF
19383#define HAVE_DECL_OPTARG $ac_have_decl
19384_ACEOF
19385ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "$ac_includes_default"
19386if test "x$ac_cv_have_decl_optind" = xyes; then :
19387  ac_have_decl=1
19388else
19389  ac_have_decl=0
19390fi
19391
19392cat >>confdefs.h <<_ACEOF
19393#define HAVE_DECL_OPTIND $ac_have_decl
19394_ACEOF
19395ac_fn_c_check_decl "$LINENO" "opterr" "ac_cv_have_decl_opterr" "$ac_includes_default"
19396if test "x$ac_cv_have_decl_opterr" = xyes; then :
19397  ac_have_decl=1
19398else
19399  ac_have_decl=0
19400fi
19401
19402cat >>confdefs.h <<_ACEOF
19403#define HAVE_DECL_OPTERR $ac_have_decl
19404_ACEOF
19405ac_fn_c_check_decl "$LINENO" "optopt" "ac_cv_have_decl_optopt" "$ac_includes_default"
19406if test "x$ac_cv_have_decl_optopt" = xyes; then :
19407  ac_have_decl=1
19408else
19409  ac_have_decl=0
19410fi
19411
19412cat >>confdefs.h <<_ACEOF
19413#define HAVE_DECL_OPTOPT $ac_have_decl
19414_ACEOF
19415
19416for ac_func in setlocale
19417do :
19418  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19419if test "x$ac_cv_func_setlocale" = xyes; then :
19420  cat >>confdefs.h <<_ACEOF
19421#define HAVE_SETLOCALE 1
19422_ACEOF
19423 ac_fn_c_check_decl "$LINENO" "LC_ALL" "ac_cv_have_decl_LC_ALL" "
19424#if HAVE_LOCALE_H
19425# include <locale.h>
19426#endif
19427
19428"
19429if test "x$ac_cv_have_decl_LC_ALL" = xyes; then :
19430  ac_have_decl=1
19431else
19432  ac_have_decl=0
19433fi
19434
19435cat >>confdefs.h <<_ACEOF
19436#define HAVE_DECL_LC_ALL $ac_have_decl
19437_ACEOF
19438
19439fi
19440done
19441
19442
19443#
19444# we can use AC_COMPILE, because we check later for the existence of
19445# socket()
19446#
19447
19448################################################################################
19449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unix domain sockets" >&5
19450$as_echo_n "checking for Unix domain sockets... " >&6; }
19451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452/* end confdefs.h.  */
19453
19454#if HAVE_SYS_SOCKET_H
19455# include <sys/socket.h>
19456#endif
19457
19458int
19459main ()
19460{
19461int s = socket(PF_UNIX, SOCK_STREAM, 0);
19462  ;
19463  return 0;
19464}
19465
19466_ACEOF
19467if ac_fn_c_try_compile "$LINENO"; then :
19468
19469  HAVE_UNIX_SOCKETS=yes
19470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19471$as_echo "yes" >&6; }
19472
19473else
19474
19475  HAVE_UNIX_SOCKETS=no
19476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19477$as_echo "no" >&6; }
19478fi
19479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480################################################################################
19481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
19482$as_echo_n "checking for IPv4 sockets... " >&6; }
19483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484/* end confdefs.h.  */
19485
19486#if HAVE_SYS_SOCKET_H
19487# include <sys/socket.h>
19488#endif
19489
19490int
19491main ()
19492{
19493int s = socket(PF_INET, SOCK_STREAM, 0);
19494  ;
19495  return 0;
19496}
19497
19498_ACEOF
19499if ac_fn_c_try_compile "$LINENO"; then :
19500
19501  HAVE_INET_SOCKETS=yes
19502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19503$as_echo "yes" >&6; }
19504
19505else
19506
19507  HAVE_INET_SOCKETS=no
19508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19509$as_echo "no" >&6; }
19510fi
19511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512################################################################################
19513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
19514$as_echo_n "checking for IPv6 sockets... " >&6; }
19515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516/* end confdefs.h.  */
19517
19518#if HAVE_SYS_SOCKET_H
19519# include <sys/socket.h>
19520#endif
19521
19522int
19523main ()
19524{
19525int s = socket(PF_INET6, SOCK_STREAM, 0);
19526  ;
19527  return 0;
19528}
19529
19530_ACEOF
19531if ac_fn_c_try_compile "$LINENO"; then :
19532
19533  HAVE_INET6_SOCKETS=yes
19534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19535$as_echo "yes" >&6; }
19536
19537else
19538
19539  HAVE_INET6_SOCKETS=no
19540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541$as_echo "no" >&6; }
19542fi
19543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544################################################################################
19545
19546if test "z${HAVE_UNIX_SOCKETS}" != "zno"\
19547 -o "z${HAVE_INET_SOCKETS}" != "zno"\
19548 -o "z${HAVE_INET6_SOCKETS}" != "zno"; then
19549#
19550# Try to figure out how to get at the "socket()" function
19551#
19552  { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether we need to link -lsocket to get socket() ..." >&5
19553$as_echo "$as_me: Checking whether we need to link -lsocket to get socket() ..." >&6;}
19554  for ac_func in socket
19555do :
19556  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
19557if test "x$ac_cv_func_socket" = xyes; then :
19558  cat >>confdefs.h <<_ACEOF
19559#define HAVE_SOCKET 1
19560_ACEOF
19561
19562
19563$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
19564
19565    SOCKETLIBS=
19566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lsocket not needed" >&5
19567$as_echo "-lsocket not needed" >&6; }
19568
19569else
19570
19571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
19572$as_echo_n "checking for socket in -lsocket... " >&6; }
19573if ${ac_cv_lib_socket_socket+:} false; then :
19574  $as_echo_n "(cached) " >&6
19575else
19576  ac_check_lib_save_LIBS=$LIBS
19577LIBS="-lsocket  $LIBS"
19578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579/* end confdefs.h.  */
19580
19581/* Override any GCC internal prototype to avoid an error.
19582   Use char because int might match the return type of a GCC
19583   builtin and then its argument prototype would still apply.  */
19584#ifdef __cplusplus
19585extern "C"
19586#endif
19587char socket ();
19588int
19589main ()
19590{
19591return socket ();
19592  ;
19593  return 0;
19594}
19595_ACEOF
19596if ac_fn_c_try_link "$LINENO"; then :
19597  ac_cv_lib_socket_socket=yes
19598else
19599  ac_cv_lib_socket_socket=no
19600fi
19601rm -f core conftest.err conftest.$ac_objext \
19602    conftest$ac_exeext conftest.$ac_ext
19603LIBS=$ac_check_lib_save_LIBS
19604fi
19605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
19606$as_echo "$ac_cv_lib_socket_socket" >&6; }
19607if test "x$ac_cv_lib_socket_socket" = xyes; then :
19608
19609
19610$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
19611
19612      SOCKETLIBS=-lsocket
19613      { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lsocket is needed" >&5
19614$as_echo "-lsocket is needed" >&6; }
19615
19616else
19617
19618      SOCKETLIBS=
19619      HAVE_UNIX_SOCKETS=no
19620      { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket() not available" >&5
19621$as_echo "socket() not available" >&6; }
19622
19623fi
19624
19625
19626fi
19627done
19628
19629fi # HAVE_UNIX/INET/INET6_SOCKETS=yes
19630
19631ac_save_LIBS="${LIBS}"
19632LIBS="${SOCKETLIBS} ${LIBS}"
19633if test "z${HAVE_UNIX_SOCKETS}" != "zno"; then
19634
19635  for ac_func in accept bind connect listen socket
19636do :
19637  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19638ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19639if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19640  cat >>confdefs.h <<_ACEOF
19641#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19642_ACEOF
19643
19644else
19645
19646    SOCKETLIBS=
19647    HAVE_UNIX_SOCKETS=no
19648fi
19649done
19650
19651fi
19652LIBS="${ac_save_LIBS}"
19653
19654
19655if test "z${HAVE_UNIX_SOCKETS}" != "zno"\
19656 -o "z${HAVE_INET_SOCKETS}" != "zno"\
19657 -o "z${HAVE_INET6_SOCKETS}" != "zno"; then
19658#
19659# Try to figure out what the 3rd argument of accept should be. The
19660# third argument is an integer type, ideally it is "socklent_t". As
19661# the third argument is a pointer, we cannot just check for a
19662# declaration of accept() and leave the rest to the comiler: the size
19663# of the type should match. On little-endian machines we could just
19664# choose the largest integer type available, on big-endian machines
19665# this would not work. Gnah.
19666#
19667  ac_fn_c_check_decl "$LINENO" "accept" "ac_cv_have_decl_accept" "
19668#if HAVE_SYS_SOCKET_H
19669# include <sys/socket.h>
19670#endif
19671
19672"
19673if test "x$ac_cv_have_decl_accept" = xyes; then :
19674  ac_have_decl=1
19675else
19676  ac_have_decl=0
19677fi
19678
19679cat >>confdefs.h <<_ACEOF
19680#define HAVE_DECL_ACCEPT $ac_have_decl
19681_ACEOF
19682
19683  ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19684#if HAVE_SYS_SOCKET_H
19685# include <sys/socket.h>
19686#endif
19687
19688"
19689if test "x$ac_cv_type_socklen_t" = xyes; then :
19690
19691cat >>confdefs.h <<_ACEOF
19692#define HAVE_SOCKLEN_T 1
19693_ACEOF
19694
19695
19696    ACCEPT_ARG3_TYPE=socklen_t
19697
19698else
19699
19700    ACCEPT_ARG3_TYPE=int
19701
19702fi
19703
19704fi # HAVE_UNIX/INET/INET6_SOCKETS=yes
19705
19706
19707if test "z${HAVE_UNIX_SOCKETS}" != "zno"; then
19708
19709$as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
19710
19711fi
19712if test "z${HAVE_INET_SOCKETS}" != "zno"; then
19713
19714$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19715
19716fi
19717if test "z${HAVE_INET6_SOCKETS}" != "zno"; then
19718
19719$as_echo "#define HAVE_INET6_SOCKETS 1" >>confdefs.h
19720
19721fi
19722
19723#
19724# End autoscan stuff.
19725#
19726################################################################################
19727
19728
19729# The following vars contain info about the local system:
19730#   (AC_CANONICAL_TARGET([]) sets them)
19731#       var		value on RedHat 6.1
19732#       ---		-------------------
19733#       build           i686-pc-linux-gnu
19734#       host            i686-pc-linux-gnu
19735#       target          i686-pc-linux-gnu
19736#       build_alias     i686-pc-linux-gnu
19737#       host_alias      i686-pc-linux-gnu
19738#       target_alias    i686-pc-linux-gnu
19739#       build_cpu       i686
19740#       build_vendor    pc
19741#       build_os        linux-gnu
19742#       host_cpu        i686
19743#       host_vendor     pc
19744#       host_os         linux-gnu
19745#       target_cpu      i686
19746#       target_vendor   pc
19747#       target_os       linux-gnu
19748
19749case "$target" in
19750  *linux*) MACHTYPE=`echo ${target}|sed 's/unknown/pc/g'`
19751          ;;
19752  *irix*) MACHTYPE="${target}"
19753
19754$as_echo "#define sgi 1" >>confdefs.h
19755
19756          if test "$CC" = "cc" ; then
19757            CFLAGS="$CFLAGS -float"
19758            LIBS="$LIBS -lmalloc"
19759          fi
19760          ;;
19761  *darwin*) MACHTYPE="${target}"
19762
19763$as_echo "#define unix 1" >>confdefs.h
19764
19765          ;;
19766  *rs6000*) MACHTYPE="${target}"
19767
19768$as_echo "#define AIX 1" >>confdefs.h
19769
19770	  ACCEPT_ARG3_TYPE="unsigned long"
19771
19772$as_echo "#define unix 1" >>confdefs.h
19773
19774	  ;;
19775       *) MACHTYPE="${target}"
19776          ;;
19777esac
19778
19779
19780cat >>confdefs.h <<_ACEOF
19781#define MACHTYPE "$MACHTYPE"
19782_ACEOF
19783
19784
19785
19786
19787cat >>confdefs.h <<_ACEOF
19788#define ACCEPT_ARG3_TYPE $ACCEPT_ARG3_TYPE
19789_ACEOF
19790
19791
19792# Search for necessary programs.
19793
19794
19795# Check whether --with-htmlbrowser was given.
19796if test "${with_htmlbrowser+set}" = set; then :
19797  withval=$with_htmlbrowser; DFLTHTMLBROWSER="${withval}"
19798else
19799  DFLTHTMLBROWSER="firefox"
19800fi
19801
19802
19803cat >>confdefs.h <<_ACEOF
19804#define DFLTHTMLBROWSER "${DFLTHTMLBROWSER}"
19805_ACEOF
19806
19807for ac_prog in ${DFLTHTMLBROWSER}
19808do
19809  # Extract the first word of "$ac_prog", so it can be a program name with args.
19810set dummy $ac_prog; ac_word=$2
19811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19812$as_echo_n "checking for $ac_word... " >&6; }
19813if ${ac_cv_prog_HTMLBROWSER+:} false; then :
19814  $as_echo_n "(cached) " >&6
19815else
19816  if test -n "$HTMLBROWSER"; then
19817  ac_cv_prog_HTMLBROWSER="$HTMLBROWSER" # Let the user override the test.
19818else
19819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820for as_dir in $PATH
19821do
19822  IFS=$as_save_IFS
19823  test -z "$as_dir" && as_dir=.
19824    for ac_exec_ext in '' $ac_executable_extensions; do
19825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19826    ac_cv_prog_HTMLBROWSER="$ac_prog"
19827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19828    break 2
19829  fi
19830done
19831  done
19832IFS=$as_save_IFS
19833
19834fi
19835fi
19836HTMLBROWSER=$ac_cv_prog_HTMLBROWSER
19837if test -n "$HTMLBROWSER"; then
19838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLBROWSER" >&5
19839$as_echo "$HTMLBROWSER" >&6; }
19840else
19841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19842$as_echo "no" >&6; }
19843fi
19844
19845
19846  test -n "$HTMLBROWSER" && break
19847done
19848
19849if ! test "${HTMLBROWSER}" = "${DFLTHTMLBROWSER}"; then
19850  { $as_echo "$as_me:${as_lineno-$LINENO}: HTML browser executable not found, online viewing of the HTML manual will probably not be possible." >&5
19851$as_echo "$as_me: HTML browser executable not found, online viewing of the HTML manual will probably not be possible." >&6;}
19852fi
19853
19854
19855# Check whether --with-pdfviewer was given.
19856if test "${with_pdfviewer+set}" = set; then :
19857  withval=$with_pdfviewer; DFLTPDFVIEWER="${withval}"
19858else
19859  DFLTPDFVIEWER="xpdf"
19860fi
19861
19862
19863cat >>confdefs.h <<_ACEOF
19864#define DFLTPDFVIEWER "${DFLTPDFVIEWER}"
19865_ACEOF
19866
19867for ac_prog in ${DFLTPDFVIEWER}
19868do
19869  # Extract the first word of "$ac_prog", so it can be a program name with args.
19870set dummy $ac_prog; ac_word=$2
19871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19872$as_echo_n "checking for $ac_word... " >&6; }
19873if ${ac_cv_prog_PDFVIEWER+:} false; then :
19874  $as_echo_n "(cached) " >&6
19875else
19876  if test -n "$PDFVIEWER"; then
19877  ac_cv_prog_PDFVIEWER="$PDFVIEWER" # Let the user override the test.
19878else
19879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19880for as_dir in $PATH
19881do
19882  IFS=$as_save_IFS
19883  test -z "$as_dir" && as_dir=.
19884    for ac_exec_ext in '' $ac_executable_extensions; do
19885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19886    ac_cv_prog_PDFVIEWER="$ac_prog"
19887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19888    break 2
19889  fi
19890done
19891  done
19892IFS=$as_save_IFS
19893
19894fi
19895fi
19896PDFVIEWER=$ac_cv_prog_PDFVIEWER
19897if test -n "$PDFVIEWER"; then
19898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFVIEWER" >&5
19899$as_echo "$PDFVIEWER" >&6; }
19900else
19901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19902$as_echo "no" >&6; }
19903fi
19904
19905
19906  test -n "$PDFVIEWER" && break
19907done
19908
19909if ! test "${PDFVIEWER}" = "${DFLTPDFVIEWER}"; then
19910  { $as_echo "$as_me:${as_lineno-$LINENO}: PDF viewr executable not found, online viewing of the PDF manual will probably not be possible." >&5
19911$as_echo "$as_me: PDF viewr executable not found, online viewing of the PDF manual will probably not be possible." >&6;}
19912fi
19913
19914########################################################################
19915########################################################################
19916########################################################################
19917
19918# If --with-motif=DIR was specified, set MOTIF_DIR to DIR
19919
19920# Check whether --with-motif was given.
19921if test "${with_motif+set}" = set; then :
19922  withval=$with_motif; MOTIF_DIR=$withval
19923fi
19924
19925
19926
19927# Check whether --with-opengl was given.
19928if test "${with_opengl+set}" = set; then :
19929  withval=$with_opengl; OPENGL_DIR=$withval
19930fi
19931
19932
19933########################################################################
19934
19935#
19936# Store X library link line in XLIBS
19937#
19938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19939$as_echo_n "checking for X... " >&6; }
19940
19941
19942# Check whether --with-x was given.
19943if test "${with_x+set}" = set; then :
19944  withval=$with_x;
19945fi
19946
19947# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19948if test "x$with_x" = xno; then
19949  # The user explicitly disabled X.
19950  have_x=disabled
19951else
19952  case $x_includes,$x_libraries in #(
19953    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19954    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19955  $as_echo_n "(cached) " >&6
19956else
19957  # One or both of the vars are not set, and there is no cached value.
19958ac_x_includes=no ac_x_libraries=no
19959rm -f -r conftest.dir
19960if mkdir conftest.dir; then
19961  cd conftest.dir
19962  cat >Imakefile <<'_ACEOF'
19963incroot:
19964	@echo incroot='${INCROOT}'
19965usrlibdir:
19966	@echo usrlibdir='${USRLIBDIR}'
19967libdir:
19968	@echo libdir='${LIBDIR}'
19969_ACEOF
19970  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19971    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19972    for ac_var in incroot usrlibdir libdir; do
19973      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19974    done
19975    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19976    for ac_extension in a so sl dylib la dll; do
19977      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19978	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19979	ac_im_usrlibdir=$ac_im_libdir; break
19980      fi
19981    done
19982    # Screen out bogus values from the imake configuration.  They are
19983    # bogus both because they are the default anyway, and because
19984    # using them would break gcc on systems where it needs fixed includes.
19985    case $ac_im_incroot in
19986	/usr/include) ac_x_includes= ;;
19987	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19988    esac
19989    case $ac_im_usrlibdir in
19990	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
19991	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19992    esac
19993  fi
19994  cd ..
19995  rm -f -r conftest.dir
19996fi
19997
19998# Standard set of common directories for X headers.
19999# Check X11 before X11Rn because it is often a symlink to the current release.
20000ac_x_header_dirs='
20001/usr/X11/include
20002/usr/X11R7/include
20003/usr/X11R6/include
20004/usr/X11R5/include
20005/usr/X11R4/include
20006
20007/usr/include/X11
20008/usr/include/X11R7
20009/usr/include/X11R6
20010/usr/include/X11R5
20011/usr/include/X11R4
20012
20013/usr/local/X11/include
20014/usr/local/X11R7/include
20015/usr/local/X11R6/include
20016/usr/local/X11R5/include
20017/usr/local/X11R4/include
20018
20019/usr/local/include/X11
20020/usr/local/include/X11R7
20021/usr/local/include/X11R6
20022/usr/local/include/X11R5
20023/usr/local/include/X11R4
20024
20025/usr/X386/include
20026/usr/x386/include
20027/usr/XFree86/include/X11
20028
20029/usr/include
20030/usr/local/include
20031/usr/unsupported/include
20032/usr/athena/include
20033/usr/local/x11r5/include
20034/usr/lpp/Xamples/include
20035
20036/usr/openwin/include
20037/usr/openwin/share/include'
20038
20039if test "$ac_x_includes" = no; then
20040  # Guess where to find include files, by looking for Xlib.h.
20041  # First, try using that file with no special directory specified.
20042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043/* end confdefs.h.  */
20044#include <X11/Xlib.h>
20045_ACEOF
20046if ac_fn_c_try_cpp "$LINENO"; then :
20047  # We can compile using X headers with no special include directory.
20048ac_x_includes=
20049else
20050  for ac_dir in $ac_x_header_dirs; do
20051  if test -r "$ac_dir/X11/Xlib.h"; then
20052    ac_x_includes=$ac_dir
20053    break
20054  fi
20055done
20056fi
20057rm -f conftest.err conftest.i conftest.$ac_ext
20058fi # $ac_x_includes = no
20059
20060if test "$ac_x_libraries" = no; then
20061  # Check for the libraries.
20062  # See if we find them without any special options.
20063  # Don't add to $LIBS permanently.
20064  ac_save_LIBS=$LIBS
20065  LIBS="-lX11 $LIBS"
20066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067/* end confdefs.h.  */
20068#include <X11/Xlib.h>
20069int
20070main ()
20071{
20072XrmInitialize ()
20073  ;
20074  return 0;
20075}
20076_ACEOF
20077if ac_fn_c_try_link "$LINENO"; then :
20078  LIBS=$ac_save_LIBS
20079# We can link X programs with no special library path.
20080ac_x_libraries=
20081else
20082  LIBS=$ac_save_LIBS
20083for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20084do
20085  # Don't even attempt the hair of trying to link an X program!
20086  for ac_extension in a so sl dylib la dll; do
20087    if test -r "$ac_dir/libX11.$ac_extension"; then
20088      ac_x_libraries=$ac_dir
20089      break 2
20090    fi
20091  done
20092done
20093fi
20094rm -f core conftest.err conftest.$ac_objext \
20095    conftest$ac_exeext conftest.$ac_ext
20096fi # $ac_x_libraries = no
20097
20098case $ac_x_includes,$ac_x_libraries in #(
20099  no,* | *,no | *\'*)
20100    # Didn't find X, or a directory has "'" in its name.
20101    ac_cv_have_x="have_x=no";; #(
20102  *)
20103    # Record where we found X for the cache.
20104    ac_cv_have_x="have_x=yes\
20105	ac_x_includes='$ac_x_includes'\
20106	ac_x_libraries='$ac_x_libraries'"
20107esac
20108fi
20109;; #(
20110    *) have_x=yes;;
20111  esac
20112  eval "$ac_cv_have_x"
20113fi # $with_x != no
20114
20115if test "$have_x" != yes; then
20116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20117$as_echo "$have_x" >&6; }
20118  no_x=yes
20119else
20120  # If each of the values was on the command line, it overrides each guess.
20121  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20122  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20123  # Update the cache value to reflect the command line values.
20124  ac_cv_have_x="have_x=yes\
20125	ac_x_includes='$x_includes'\
20126	ac_x_libraries='$x_libraries'"
20127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20128$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20129fi
20130
20131if test "$no_x" = yes; then
20132  # Not all programs may use this symbol, but it does not hurt to define it.
20133
20134$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20135
20136  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20137else
20138  if test -n "$x_includes"; then
20139    X_CFLAGS="$X_CFLAGS -I$x_includes"
20140  fi
20141
20142  # It would also be nice to do this for all -L options, not just this one.
20143  if test -n "$x_libraries"; then
20144    X_LIBS="$X_LIBS -L$x_libraries"
20145    # For Solaris; some versions of Sun CC require a space after -R and
20146    # others require no space.  Words are not sufficient . . . .
20147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20148$as_echo_n "checking whether -R must be followed by a space... " >&6; }
20149    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20150    ac_xsave_c_werror_flag=$ac_c_werror_flag
20151    ac_c_werror_flag=yes
20152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153/* end confdefs.h.  */
20154
20155int
20156main ()
20157{
20158
20159  ;
20160  return 0;
20161}
20162_ACEOF
20163if ac_fn_c_try_link "$LINENO"; then :
20164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165$as_echo "no" >&6; }
20166       X_LIBS="$X_LIBS -R$x_libraries"
20167else
20168  LIBS="$ac_xsave_LIBS -R $x_libraries"
20169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170/* end confdefs.h.  */
20171
20172int
20173main ()
20174{
20175
20176  ;
20177  return 0;
20178}
20179_ACEOF
20180if ac_fn_c_try_link "$LINENO"; then :
20181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20182$as_echo "yes" >&6; }
20183	  X_LIBS="$X_LIBS -R $x_libraries"
20184else
20185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20186$as_echo "neither works" >&6; }
20187fi
20188rm -f core conftest.err conftest.$ac_objext \
20189    conftest$ac_exeext conftest.$ac_ext
20190fi
20191rm -f core conftest.err conftest.$ac_objext \
20192    conftest$ac_exeext conftest.$ac_ext
20193    ac_c_werror_flag=$ac_xsave_c_werror_flag
20194    LIBS=$ac_xsave_LIBS
20195  fi
20196
20197  # Check for system-dependent libraries X programs must link with.
20198  # Do this before checking for the system-independent R6 libraries
20199  # (-lICE), since we may need -lsocket or whatever for X linking.
20200
20201  if test "$ISC" = yes; then
20202    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20203  else
20204    # Martyn Johnson says this is needed for Ultrix, if the X
20205    # libraries were built with DECnet support.  And Karl Berry says
20206    # the Alpha needs dnet_stub (dnet does not exist).
20207    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20208    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209/* end confdefs.h.  */
20210
20211/* Override any GCC internal prototype to avoid an error.
20212   Use char because int might match the return type of a GCC
20213   builtin and then its argument prototype would still apply.  */
20214#ifdef __cplusplus
20215extern "C"
20216#endif
20217char XOpenDisplay ();
20218int
20219main ()
20220{
20221return XOpenDisplay ();
20222  ;
20223  return 0;
20224}
20225_ACEOF
20226if ac_fn_c_try_link "$LINENO"; then :
20227
20228else
20229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20230$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20231if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20232  $as_echo_n "(cached) " >&6
20233else
20234  ac_check_lib_save_LIBS=$LIBS
20235LIBS="-ldnet  $LIBS"
20236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237/* end confdefs.h.  */
20238
20239/* Override any GCC internal prototype to avoid an error.
20240   Use char because int might match the return type of a GCC
20241   builtin and then its argument prototype would still apply.  */
20242#ifdef __cplusplus
20243extern "C"
20244#endif
20245char dnet_ntoa ();
20246int
20247main ()
20248{
20249return dnet_ntoa ();
20250  ;
20251  return 0;
20252}
20253_ACEOF
20254if ac_fn_c_try_link "$LINENO"; then :
20255  ac_cv_lib_dnet_dnet_ntoa=yes
20256else
20257  ac_cv_lib_dnet_dnet_ntoa=no
20258fi
20259rm -f core conftest.err conftest.$ac_objext \
20260    conftest$ac_exeext conftest.$ac_ext
20261LIBS=$ac_check_lib_save_LIBS
20262fi
20263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20264$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20265if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20266  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20267fi
20268
20269    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20270      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20271$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20272if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20273  $as_echo_n "(cached) " >&6
20274else
20275  ac_check_lib_save_LIBS=$LIBS
20276LIBS="-ldnet_stub  $LIBS"
20277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278/* end confdefs.h.  */
20279
20280/* Override any GCC internal prototype to avoid an error.
20281   Use char because int might match the return type of a GCC
20282   builtin and then its argument prototype would still apply.  */
20283#ifdef __cplusplus
20284extern "C"
20285#endif
20286char dnet_ntoa ();
20287int
20288main ()
20289{
20290return dnet_ntoa ();
20291  ;
20292  return 0;
20293}
20294_ACEOF
20295if ac_fn_c_try_link "$LINENO"; then :
20296  ac_cv_lib_dnet_stub_dnet_ntoa=yes
20297else
20298  ac_cv_lib_dnet_stub_dnet_ntoa=no
20299fi
20300rm -f core conftest.err conftest.$ac_objext \
20301    conftest$ac_exeext conftest.$ac_ext
20302LIBS=$ac_check_lib_save_LIBS
20303fi
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20305$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20306if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20307  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20308fi
20309
20310    fi
20311fi
20312rm -f core conftest.err conftest.$ac_objext \
20313    conftest$ac_exeext conftest.$ac_ext
20314    LIBS="$ac_xsave_LIBS"
20315
20316    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20317    # to get the SysV transport functions.
20318    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20319    # needs -lnsl.
20320    # The nsl library prevents programs from opening the X display
20321    # on Irix 5.2, according to T.E. Dickey.
20322    # The functions gethostbyname, getservbyname, and inet_addr are
20323    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20324    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20325if test "x$ac_cv_func_gethostbyname" = xyes; then :
20326
20327fi
20328
20329    if test $ac_cv_func_gethostbyname = no; then
20330      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20331$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20332if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20333  $as_echo_n "(cached) " >&6
20334else
20335  ac_check_lib_save_LIBS=$LIBS
20336LIBS="-lnsl  $LIBS"
20337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338/* end confdefs.h.  */
20339
20340/* Override any GCC internal prototype to avoid an error.
20341   Use char because int might match the return type of a GCC
20342   builtin and then its argument prototype would still apply.  */
20343#ifdef __cplusplus
20344extern "C"
20345#endif
20346char gethostbyname ();
20347int
20348main ()
20349{
20350return gethostbyname ();
20351  ;
20352  return 0;
20353}
20354_ACEOF
20355if ac_fn_c_try_link "$LINENO"; then :
20356  ac_cv_lib_nsl_gethostbyname=yes
20357else
20358  ac_cv_lib_nsl_gethostbyname=no
20359fi
20360rm -f core conftest.err conftest.$ac_objext \
20361    conftest$ac_exeext conftest.$ac_ext
20362LIBS=$ac_check_lib_save_LIBS
20363fi
20364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20365$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20366if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20367  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20368fi
20369
20370      if test $ac_cv_lib_nsl_gethostbyname = no; then
20371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20372$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20373if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20374  $as_echo_n "(cached) " >&6
20375else
20376  ac_check_lib_save_LIBS=$LIBS
20377LIBS="-lbsd  $LIBS"
20378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20379/* end confdefs.h.  */
20380
20381/* Override any GCC internal prototype to avoid an error.
20382   Use char because int might match the return type of a GCC
20383   builtin and then its argument prototype would still apply.  */
20384#ifdef __cplusplus
20385extern "C"
20386#endif
20387char gethostbyname ();
20388int
20389main ()
20390{
20391return gethostbyname ();
20392  ;
20393  return 0;
20394}
20395_ACEOF
20396if ac_fn_c_try_link "$LINENO"; then :
20397  ac_cv_lib_bsd_gethostbyname=yes
20398else
20399  ac_cv_lib_bsd_gethostbyname=no
20400fi
20401rm -f core conftest.err conftest.$ac_objext \
20402    conftest$ac_exeext conftest.$ac_ext
20403LIBS=$ac_check_lib_save_LIBS
20404fi
20405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20406$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20407if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20408  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20409fi
20410
20411      fi
20412    fi
20413
20414    # lieder@skyler.mavd.honeywell.com says without -lsocket,
20415    # socket/setsockopt and other routines are undefined under SCO ODT
20416    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20417    # on later versions), says Simon Leinen: it contains gethostby*
20418    # variants that don't use the name server (or something).  -lsocket
20419    # must be given before -lnsl if both are needed.  We assume that
20420    # if connect needs -lnsl, so does gethostbyname.
20421    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20422if test "x$ac_cv_func_connect" = xyes; then :
20423
20424fi
20425
20426    if test $ac_cv_func_connect = no; then
20427      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20428$as_echo_n "checking for connect in -lsocket... " >&6; }
20429if ${ac_cv_lib_socket_connect+:} false; then :
20430  $as_echo_n "(cached) " >&6
20431else
20432  ac_check_lib_save_LIBS=$LIBS
20433LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435/* end confdefs.h.  */
20436
20437/* Override any GCC internal prototype to avoid an error.
20438   Use char because int might match the return type of a GCC
20439   builtin and then its argument prototype would still apply.  */
20440#ifdef __cplusplus
20441extern "C"
20442#endif
20443char connect ();
20444int
20445main ()
20446{
20447return connect ();
20448  ;
20449  return 0;
20450}
20451_ACEOF
20452if ac_fn_c_try_link "$LINENO"; then :
20453  ac_cv_lib_socket_connect=yes
20454else
20455  ac_cv_lib_socket_connect=no
20456fi
20457rm -f core conftest.err conftest.$ac_objext \
20458    conftest$ac_exeext conftest.$ac_ext
20459LIBS=$ac_check_lib_save_LIBS
20460fi
20461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20462$as_echo "$ac_cv_lib_socket_connect" >&6; }
20463if test "x$ac_cv_lib_socket_connect" = xyes; then :
20464  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20465fi
20466
20467    fi
20468
20469    # Guillermo Gomez says -lposix is necessary on A/UX.
20470    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20471if test "x$ac_cv_func_remove" = xyes; then :
20472
20473fi
20474
20475    if test $ac_cv_func_remove = no; then
20476      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20477$as_echo_n "checking for remove in -lposix... " >&6; }
20478if ${ac_cv_lib_posix_remove+:} false; then :
20479  $as_echo_n "(cached) " >&6
20480else
20481  ac_check_lib_save_LIBS=$LIBS
20482LIBS="-lposix  $LIBS"
20483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484/* end confdefs.h.  */
20485
20486/* Override any GCC internal prototype to avoid an error.
20487   Use char because int might match the return type of a GCC
20488   builtin and then its argument prototype would still apply.  */
20489#ifdef __cplusplus
20490extern "C"
20491#endif
20492char remove ();
20493int
20494main ()
20495{
20496return remove ();
20497  ;
20498  return 0;
20499}
20500_ACEOF
20501if ac_fn_c_try_link "$LINENO"; then :
20502  ac_cv_lib_posix_remove=yes
20503else
20504  ac_cv_lib_posix_remove=no
20505fi
20506rm -f core conftest.err conftest.$ac_objext \
20507    conftest$ac_exeext conftest.$ac_ext
20508LIBS=$ac_check_lib_save_LIBS
20509fi
20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20511$as_echo "$ac_cv_lib_posix_remove" >&6; }
20512if test "x$ac_cv_lib_posix_remove" = xyes; then :
20513  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20514fi
20515
20516    fi
20517
20518    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20519    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20520if test "x$ac_cv_func_shmat" = xyes; then :
20521
20522fi
20523
20524    if test $ac_cv_func_shmat = no; then
20525      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20526$as_echo_n "checking for shmat in -lipc... " >&6; }
20527if ${ac_cv_lib_ipc_shmat+:} false; then :
20528  $as_echo_n "(cached) " >&6
20529else
20530  ac_check_lib_save_LIBS=$LIBS
20531LIBS="-lipc  $LIBS"
20532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533/* end confdefs.h.  */
20534
20535/* Override any GCC internal prototype to avoid an error.
20536   Use char because int might match the return type of a GCC
20537   builtin and then its argument prototype would still apply.  */
20538#ifdef __cplusplus
20539extern "C"
20540#endif
20541char shmat ();
20542int
20543main ()
20544{
20545return shmat ();
20546  ;
20547  return 0;
20548}
20549_ACEOF
20550if ac_fn_c_try_link "$LINENO"; then :
20551  ac_cv_lib_ipc_shmat=yes
20552else
20553  ac_cv_lib_ipc_shmat=no
20554fi
20555rm -f core conftest.err conftest.$ac_objext \
20556    conftest$ac_exeext conftest.$ac_ext
20557LIBS=$ac_check_lib_save_LIBS
20558fi
20559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20560$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20561if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20562  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20563fi
20564
20565    fi
20566  fi
20567
20568  # Check for libraries that X11R6 Xt/Xaw programs need.
20569  ac_save_LDFLAGS=$LDFLAGS
20570  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20571  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20572  # check for ICE first), but we must link in the order -lSM -lICE or
20573  # we get undefined symbols.  So assume we have SM if we have ICE.
20574  # These have to be linked with before -lX11, unlike the other
20575  # libraries we check for below, so use a different variable.
20576  # John Interrante, Karl Berry
20577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20578$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20579if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20580  $as_echo_n "(cached) " >&6
20581else
20582  ac_check_lib_save_LIBS=$LIBS
20583LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585/* end confdefs.h.  */
20586
20587/* Override any GCC internal prototype to avoid an error.
20588   Use char because int might match the return type of a GCC
20589   builtin and then its argument prototype would still apply.  */
20590#ifdef __cplusplus
20591extern "C"
20592#endif
20593char IceConnectionNumber ();
20594int
20595main ()
20596{
20597return IceConnectionNumber ();
20598  ;
20599  return 0;
20600}
20601_ACEOF
20602if ac_fn_c_try_link "$LINENO"; then :
20603  ac_cv_lib_ICE_IceConnectionNumber=yes
20604else
20605  ac_cv_lib_ICE_IceConnectionNumber=no
20606fi
20607rm -f core conftest.err conftest.$ac_objext \
20608    conftest$ac_exeext conftest.$ac_ext
20609LIBS=$ac_check_lib_save_LIBS
20610fi
20611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20612$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20613if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
20614  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20615fi
20616
20617  LDFLAGS=$ac_save_LDFLAGS
20618
20619fi
20620
20621XLIBS="$X_LIBS $X_PRE_LIBS -lXt -lXext -lX11 $X_EXTRA_LIBS"
20622
20623
20624if ${ac_cv_XLIBS+:} false; then :
20625  $as_echo_n "(cached) " >&6
20626else
20627  ac_cv_XLIBS="XLIBS='$XLIBS'"
20628fi
20629
20630
20631########################################################################
20632
20633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xmu" >&5
20634$as_echo_n "checking for Xmu... " >&6; }
20635
20636result="no"
20637
20638geom_lib=-lXmu
20639geom_func=XmuLookupStandardColormap
20640geom_dirs='"" "$x_libraries" "$MOTIF_DIR/lib"'
20641geom_otherlibs=$XLIBS
20642geom_saved_LIBS=$LIBS
20643#AC_MSG_CHECKING([how to link with $geom_lib])
20644
20645GEOM_L_OPTION=0
20646for geom_z in $geom_dirs ; do
20647  geom_z=`eval echo $geom_z`
20648  geom_l_option=
20649  test -n "$geom_z" && geom_l_option="-L$geom_z"
20650  LIBS="$geom_l_option $geom_lib $geom_otherlibs"
20651  echo "configure:20651: checking for $geom_func with $geom_l_option" >&5
20652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653/* end confdefs.h.  */
20654
20655/* Override any GCC internal prototype to avoid an error.
20656   Use char because int might match the return type of a GCC
20657   builtin and then its argument prototype would still apply.  */
20658#ifdef __cplusplus
20659extern "C"
20660#endif
20661char $geom_func ();
20662int
20663main ()
20664{
20665return $geom_func ();
20666  ;
20667  return 0;
20668}
20669_ACEOF
20670if ac_fn_c_try_link "$LINENO"; then :
20671   GEOM_L_OPTION="$geom_l_option"
20672                     break
20673
20674fi
20675rm -f core conftest.err conftest.$ac_objext \
20676    conftest$ac_exeext conftest.$ac_ext
20677done
20678LIBS=$geom_saved_LIBS
20679#if test "$GEOM_L_OPTION" != "0" ; then
20680#  AC_MSG_RESULT([$geom_l_option $geom_lib])
20681#else
20682#  AC_MSG_RESULT([not found])
20683#fi
20684
20685if test "$GEOM_L_OPTION" != "0" ; then
20686  result="yes"
20687
20688$as_echo "#define HAVE_XMU 1" >>confdefs.h
20689
20690  if test "$GEOM_L_OPTION" != "" ; then
20691    XMULIBS="$GEOM_L_OPTION -lXmu"
20692  else
20693    XMULIBS="-lXmu"
20694  fi
20695fi
20696
20697
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20699$as_echo "$result" >&6; }
20700
20701########################################################################
20702
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for motif" >&5
20704$as_echo_n "checking for motif... " >&6; }
20705
20706if test "$MOTIF_DIR" != "" ; then
20707  USER_MOTIF_DIR="$MOTIF_DIR/include"
20708else
20709  USER_MOTIF_DIR=""
20710fi
20711
20712geom_header=Xm/Xm.h
20713geom_dirs='"$USER_MOTIF_DIR" "" "$x_includes" "/usr/local/include"'
20714geom_saved_CPPFLAGS=$CPPFLAGS
20715GEOM_I_OPTION="0"
20716#AC_MSG_CHECKING([for $geom_header])
20717for geom_z in $geom_dirs ; do
20718  geom_z=`eval echo $geom_z`
20719  geom_i_option=
20720  test -n "$geom_z" && geom_i_option="-I$geom_z"
20721  CPPFLAGS="$geom_i_option $geom_saved_CPPFLAGS"
20722  echo "configure:20722: checking for $geom_header with $geom_i_option" >&5
20723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724/* end confdefs.h.  */
20725 #include <$geom_header>
20726_ACEOF
20727if ac_fn_c_try_cpp "$LINENO"; then :
20728   GEOM_I_OPTION="$geom_i_option"
20729               break
20730
20731fi
20732rm -f conftest.err conftest.i conftest.$ac_ext
20733done
20734CPPFLAGS=$geom_saved_CPPFLAGS
20735#if test "$GEOM_I_OPTION" = "0" ; then
20736#  AC_MSG_RESULT([not found])
20737#else
20738#  if test "$GEOM_I_OPTION" != "" ; then
20739#   AC_MSG_RESULT($GEOM_I_OPTION)
20740#  else
20741#   AC_MSG_RESULT([(found with no -I required)])
20742#  fi
20743#fi
20744
20745if test "$GEOM_I_OPTION" = "0" ; then
20746    as_fn_error $? "
20747
20748Can't find Motif header file Xm/Xm.h.  Geomview requires Motif
20749(or Lesstif).  See the file INSTALL.Geomview for details.
20750
20751" "$LINENO" 5
20752fi
20753
20754MOTIFINCLUDE=$GEOM_I_OPTION
20755
20756
20757########################################################################
20758
20759if test "$MOTIFLIBS" = "" ; then
20760  MOTIFLIBS="-lXm"
20761fi
20762
20763if test "$MOTIF_DIR" != "" ; then
20764  USER_MOTIF_DIR="$MOTIF_DIR/lib"
20765else
20766  USER_MOTIF_DIR=""
20767fi
20768
20769geom_lib=$MOTIFLIBS
20770geom_func=XmCreateForm
20771geom_dirs='"$USER_MOTIF_DIR" "" "$x_libraries" "/usr/local/lib"'
20772geom_otherlibs=$XLIBS
20773
20774geom_saved_LIBS=$LIBS
20775#AC_MSG_CHECKING([how to link with $geom_lib])
20776
20777GEOM_L_OPTION=0
20778for geom_z in $geom_dirs ; do
20779  geom_z=`eval echo $geom_z`
20780  geom_l_option=
20781  test -n "$geom_z" && geom_l_option="-L$geom_z"
20782  LIBS="$geom_l_option $geom_lib $geom_otherlibs"
20783  echo "configure:20783: checking for $geom_func with $geom_l_option" >&5
20784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785/* end confdefs.h.  */
20786
20787/* Override any GCC internal prototype to avoid an error.
20788   Use char because int might match the return type of a GCC
20789   builtin and then its argument prototype would still apply.  */
20790#ifdef __cplusplus
20791extern "C"
20792#endif
20793char $geom_func ();
20794int
20795main ()
20796{
20797return $geom_func ();
20798  ;
20799  return 0;
20800}
20801_ACEOF
20802if ac_fn_c_try_link "$LINENO"; then :
20803   GEOM_L_OPTION="$geom_l_option"
20804                     break
20805
20806fi
20807rm -f core conftest.err conftest.$ac_objext \
20808    conftest$ac_exeext conftest.$ac_ext
20809done
20810LIBS=$geom_saved_LIBS
20811#if test "$GEOM_L_OPTION" != "0" ; then
20812#  AC_MSG_RESULT([$geom_l_option $geom_lib])
20813#else
20814#  AC_MSG_RESULT([not found])
20815#fi
20816
20817if test "$GEOM_L_OPTION" = "0" ; then
20818    as_fn_error $? "
20819
20820Can't find Motif libraries.  Geomview requires Motif
20821(or Lesstif).  See the file INSTALL.Geomview for details.
20822
20823" "$LINENO" 5
20824fi
20825MOTIF_L_OPTION=$GEOM_L_OPTION
20826MOTIFLIBS="$GEOM_L_OPTION $MOTIFLIBS"
20827
20828
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $MOTIFINCLUDE, libraries $MOTIFLIBS" >&5
20830$as_echo "headers $MOTIFINCLUDE, libraries $MOTIFLIBS" >&6; }
20831
20832########################################################################
20833
20834if test "z${OPENGL_DIR}" != "zno"; then
20835
20836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opengl" >&5
20837$as_echo_n "checking for opengl... " >&6; }
20838  if test "$OPENGL_DIR" != "" ; then
20839    USER_OPENGL_DIR="$OPENGL_DIR/include"
20840  else
20841    USER_OPENGL_DIR=""
20842  fi
20843
20844geom_header=GL/gl.h
20845geom_dirs='"$USER_OPENGL_DIR" "" "/usr/local/include"'
20846geom_saved_CPPFLAGS=$CPPFLAGS
20847GEOM_I_OPTION="0"
20848#AC_MSG_CHECKING([for $geom_header])
20849for geom_z in $geom_dirs ; do
20850  geom_z=`eval echo $geom_z`
20851  geom_i_option=
20852  test -n "$geom_z" && geom_i_option="-I$geom_z"
20853  CPPFLAGS="$geom_i_option $geom_saved_CPPFLAGS"
20854  echo "configure:20854: checking for $geom_header with $geom_i_option" >&5
20855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856/* end confdefs.h.  */
20857 #include <$geom_header>
20858_ACEOF
20859if ac_fn_c_try_cpp "$LINENO"; then :
20860   GEOM_I_OPTION="$geom_i_option"
20861               break
20862
20863fi
20864rm -f conftest.err conftest.i conftest.$ac_ext
20865done
20866CPPFLAGS=$geom_saved_CPPFLAGS
20867#if test "$GEOM_I_OPTION" = "0" ; then
20868#  AC_MSG_RESULT([not found])
20869#else
20870#  if test "$GEOM_I_OPTION" != "" ; then
20871#   AC_MSG_RESULT($GEOM_I_OPTION)
20872#  else
20873#   AC_MSG_RESULT([(found with no -I required)])
20874#  fi
20875#fi
20876
20877  if test "$GEOM_I_OPTION" = "0" ; then
20878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20879Can't find OpenGL header file GL/gl.h.  Geomview does not require OpenGL
20880but you will have to live without hardware accellerated rendering.
20881See the file INSTALL.Geomview for details.
20882" >&5
20883$as_echo "$as_me: WARNING:
20884Can't find OpenGL header file GL/gl.h.  Geomview does not require OpenGL
20885but you will have to live without hardware accellerated rendering.
20886See the file INSTALL.Geomview for details.
20887" >&2;}
20888    OPENGLINCLUDE="" # $GEOM_I_OPTION
20889  fi
20890  GL_I_OPTION=$GEOM_I_OPTION
20891
20892  # Geomview does not require OpenGL, _BUT_ an OpenGL implementation
20893  # through the X11 GLX extension; so check for glx.h as well.
20894  #
20895  #
20896
20897geom_header=GL/glx.h
20898geom_dirs='"$USER_OPENGL_DIR" "" "/usr/local/include"'
20899geom_saved_CPPFLAGS=$CPPFLAGS
20900GEOM_I_OPTION="0"
20901#AC_MSG_CHECKING([for $geom_header])
20902for geom_z in $geom_dirs ; do
20903  geom_z=`eval echo $geom_z`
20904  geom_i_option=
20905  test -n "$geom_z" && geom_i_option="-I$geom_z"
20906  CPPFLAGS="$geom_i_option $geom_saved_CPPFLAGS"
20907  echo "configure:20907: checking for $geom_header with $geom_i_option" >&5
20908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h.  */
20910 #include <$geom_header>
20911_ACEOF
20912if ac_fn_c_try_cpp "$LINENO"; then :
20913   GEOM_I_OPTION="$geom_i_option"
20914               break
20915
20916fi
20917rm -f conftest.err conftest.i conftest.$ac_ext
20918done
20919CPPFLAGS=$geom_saved_CPPFLAGS
20920#if test "$GEOM_I_OPTION" = "0" ; then
20921#  AC_MSG_RESULT([not found])
20922#else
20923#  if test "$GEOM_I_OPTION" != "" ; then
20924#   AC_MSG_RESULT($GEOM_I_OPTION)
20925#  else
20926#   AC_MSG_RESULT([(found with no -I required)])
20927#  fi
20928#fi
20929
20930  if test "$GEOM_I_OPTION" = "0" ; then
20931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20932Can't find OpenGL header file GL/glx.h.  Geomview does not require OpenGL
20933but you will have to live without hardware accellerated rendering.
20934See the file INSTALL.Geomview for details.
20935" >&5
20936$as_echo "$as_me: WARNING:
20937Can't find OpenGL header file GL/glx.h.  Geomview does not require OpenGL
20938but you will have to live without hardware accellerated rendering.
20939See the file INSTALL.Geomview for details.
20940" >&2;}
20941    GL_I_OPTION=0
20942  else
20943    GL_I_OPTION="${GL_I_OPTION} ${GEOM_I_OPTION}"
20944    OPENGLINCLUDE="${OPENGLINCLUDE} ${GEOM_I_OPTION}"
20945  fi
20946
20947########################################################################
20948
20949  if test "$OPENGL_DIR" != "" ; then
20950    USER_OPENGL_DIR="$OPENGL_DIR/lib"
20951  else
20952    USER_OPENGL_DIR=""
20953  fi
20954
20955geom_lib=-lGL
20956geom_func=glBegin
20957geom_dirs='"$USER_OPENGL_DIR" "" "$x_libraries" "/usr/local/lib"'
20958geom_otherlibs="$XLIBS -lm"
20959geom_saved_LIBS=$LIBS
20960#AC_MSG_CHECKING([how to link with $geom_lib])
20961
20962GEOM_L_OPTION=0
20963for geom_z in $geom_dirs ; do
20964  geom_z=`eval echo $geom_z`
20965  geom_l_option=
20966  test -n "$geom_z" && geom_l_option="-L$geom_z"
20967  LIBS="$geom_l_option $geom_lib $geom_otherlibs"
20968  echo "configure:20968: checking for $geom_func with $geom_l_option" >&5
20969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970/* end confdefs.h.  */
20971
20972/* Override any GCC internal prototype to avoid an error.
20973   Use char because int might match the return type of a GCC
20974   builtin and then its argument prototype would still apply.  */
20975#ifdef __cplusplus
20976extern "C"
20977#endif
20978char $geom_func ();
20979int
20980main ()
20981{
20982return $geom_func ();
20983  ;
20984  return 0;
20985}
20986_ACEOF
20987if ac_fn_c_try_link "$LINENO"; then :
20988   GEOM_L_OPTION="$geom_l_option"
20989                     break
20990
20991fi
20992rm -f core conftest.err conftest.$ac_objext \
20993    conftest$ac_exeext conftest.$ac_ext
20994done
20995LIBS=$geom_saved_LIBS
20996#if test "$GEOM_L_OPTION" != "0" ; then
20997#  AC_MSG_RESULT([$geom_l_option $geom_lib])
20998#else
20999#  AC_MSG_RESULT([not found])
21000#fi
21001
21002  if test "$GEOM_L_OPTION" = "0" ; then
21003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21004Can't find OpenGL header file GL/gl.h.  Geomview does not require OpenGL
21005but you will have to live without hardware accellerated rendering.
21006See the file INSTALL.Geomview for details.
21007" >&5
21008$as_echo "$as_me: WARNING:
21009Can't find OpenGL header file GL/gl.h.  Geomview does not require OpenGL
21010but you will have to live without hardware accellerated rendering.
21011See the file INSTALL.Geomview for details.
21012" >&2;}
21013  fi
21014  GL_L_OPTION=$GEOM_L_OPTION
21015
21016geom_lib=-lGLU
21017geom_func=gluBeginPolygon
21018geom_dirs='"$USER_OPENGL_DIR" "" "$x_libraries" "/usr/local/lib"'
21019geom_otherlibs="$GL_L_OPTION -lGL $XLIBS -lm"
21020geom_saved_LIBS=$LIBS
21021#AC_MSG_CHECKING([how to link with $geom_lib])
21022
21023GEOM_L_OPTION=0
21024for geom_z in $geom_dirs ; do
21025  geom_z=`eval echo $geom_z`
21026  geom_l_option=
21027  test -n "$geom_z" && geom_l_option="-L$geom_z"
21028  LIBS="$geom_l_option $geom_lib $geom_otherlibs"
21029  echo "configure:21029: checking for $geom_func with $geom_l_option" >&5
21030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031/* end confdefs.h.  */
21032
21033/* Override any GCC internal prototype to avoid an error.
21034   Use char because int might match the return type of a GCC
21035   builtin and then its argument prototype would still apply.  */
21036#ifdef __cplusplus
21037extern "C"
21038#endif
21039char $geom_func ();
21040int
21041main ()
21042{
21043return $geom_func ();
21044  ;
21045  return 0;
21046}
21047_ACEOF
21048if ac_fn_c_try_link "$LINENO"; then :
21049   GEOM_L_OPTION="$geom_l_option"
21050                     break
21051
21052fi
21053rm -f core conftest.err conftest.$ac_objext \
21054    conftest$ac_exeext conftest.$ac_ext
21055done
21056LIBS=$geom_saved_LIBS
21057#if test "$GEOM_L_OPTION" != "0" ; then
21058#  AC_MSG_RESULT([$geom_l_option $geom_lib])
21059#else
21060#  AC_MSG_RESULT([not found])
21061#fi
21062
21063  if test "$GEOM_L_OPTION" != "$GL_L_OPTION" ; then
21064    GLU_L_OPTION=$GEOM_L_OPTION
21065  else
21066    GLU_L_OPTION=""
21067  fi
21068  if test "z${GLU_L_OPTION}" = "z0"; then
21069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: libGLU not found. libGLU is required to render
21070                  non-flat or concave polygons." >&5
21071$as_echo "libGLU not found. libGLU is required to render
21072                  non-flat or concave polygons." >&6; }
21073    OPENGLLIBS="$GL_L_OPTION -lGL"
21074
21075$as_echo "#define HAVE_LIBGLU 0" >>confdefs.h
21076
21077  else
21078    OPENGLLIBS="$GL_L_OPTION -lGL $GLU_L_OPTION -lGLU"
21079
21080$as_echo "#define HAVE_LIBGLU 1" >>confdefs.h
21081
21082  fi
21083
21084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers $OPENGLINCLUDE, libraries $OPENGLLIBS" >&5
21085$as_echo "headers $OPENGLINCLUDE, libraries $OPENGLLIBS" >&6; }
21086
21087  #############################################################################
21088
21089  # Check for the OSMesa library which can be used for high quality
21090  # off-screen snapshots, including texture. This is beneficial over
21091  # making a snapshot of a window, because the latter only works when
21092  # the window is mapped and not obscured by other windows. However,
21093  # this can only work if libGL is indeed based on Mesa because
21094  # libOSMesa overrides the OpenGL API entries.
21095
21096  ###
21097  ### unluckily, this just does not seem to work. Sad story. Disable the
21098  ### stuff. The good news: we can use glXCreateGLXPixmap() and render
21099  ### into that pixmap.
21100  ###
21101
21102#  ac_gv_save_LIBS="${LIBS}"
21103#  LIBS="${OPENGLLIBS} ${XLIBS} ${LIBS}"
21104#  AC_CHECK_FUNCS([glXAllocateMemoryMESA],[MESAGL=1],[MESAGL=0])
21105#  if test "${MESAGL}" = "1"; then
21106#  	AC_CHECK_LIB([OSMesa], [OSMesaCreateContext],
21107#		[OPENGLLIBS="$GL_L_OPTION -lOSMesa -lGL $GLU_L_OPTION -lGLU"],
21108#		[],[${OPENGLLIBS}])
21109#  fi
21110#  LIBS="${ac_gv_save_LIBS}"
21111  MESAGL=0
21112
21113cat >>confdefs.h <<_ACEOF
21114#define MESAGL ${MESAGL}
21115_ACEOF
21116
21117
21118
21119  # Even without libOSMesa it is possible to generate off-screen snapshots
21120  # by using glXCrateGLXPixmap().
21121  ac_gv_save_LIBS="${LIBS}"
21122  LIBS="${OPENGLLIBS} ${XLIBS} ${LIBS}"
21123  for ac_func in glXCreateGLXPixmap
21124do :
21125  ac_fn_c_check_func "$LINENO" "glXCreateGLXPixmap" "ac_cv_func_glXCreateGLXPixmap"
21126if test "x$ac_cv_func_glXCreateGLXPixmap" = xyes; then :
21127  cat >>confdefs.h <<_ACEOF
21128#define HAVE_GLXCREATEGLXPIXMAP 1
21129_ACEOF
21130
21131fi
21132done
21133
21134  LIBS="${ac_gv_save_LIBS}"
21135
21136fi # without-opengl
21137
21138#
21139# substitute, even if empty
21140#
21141
21142
21143
21144#
21145# MGX11 is always defined, does not hurt to include it in the library.
21146#
21147if test "z${GL_I_OPTION}" != "z0" && \
21148   test "z${GL_L_OPTION}" != "z0" && \
21149   test "z${OPENGL_DIR}" != "zno"; then
21150  MGOPENGL=1
21151  MGX11=1
21152else
21153  MGOPENGL=0
21154  MGX11=1
21155fi
21156
21157MGGL=0
21158
21159 if test "${MGOPENGL}" = 1; then
21160  MGOPENGL_TRUE=
21161  MGOPENGL_FALSE='#'
21162else
21163  MGOPENGL_TRUE='#'
21164  MGOPENGL_FALSE=
21165fi
21166
21167
21168cat >>confdefs.h <<_ACEOF
21169#define MGOPENGL ${MGOPENGL}
21170_ACEOF
21171
21172
21173 if test "${MGX11}" = 1; then
21174  MGX11_TRUE=
21175  MGX11_FALSE='#'
21176else
21177  MGX11_TRUE='#'
21178  MGX11_FALSE=
21179fi
21180
21181
21182cat >>confdefs.h <<_ACEOF
21183#define MGX11 ${MGX11}
21184_ACEOF
21185
21186
21187 if test "${MGGL}" = 1; then
21188  MGGL_TRUE=
21189  MGGL_FALSE='#'
21190else
21191  MGGL_TRUE='#'
21192  MGGL_FALSE=
21193fi
21194
21195
21196cat >>confdefs.h <<_ACEOF
21197#define MGGL ${MGGL}
21198_ACEOF
21199
21200
21201########################################################################
21202
21203# Check for zlib (and maybe bzlib? (image compression/decompression))
21204#GEOMVIEW_CHECK_PACKAGE([bz2lib],[bz2],[],[],[bzlib.h],[],[],[optional enabled])
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216# Check whether --with-zlib was given.
21217if test "${with_zlib+set}" = set; then :
21218  withval=$with_zlib; if test -z "$ZLIB_DISABLE"; then
21219	    case "$withval" in
21220		yes)
21221			ZLIB_DISABLE=no
21222			;;
21223		no)
21224			ZLIB_DISABLE=yes
21225			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling \"zlib\"" >&5
21226$as_echo "Disabling \"zlib\"" >&6; }
21227			;;
21228		*)
21229	      as_fn_error $? "\"$withval\" should have been either \"yes\" or \"no\"" "$LINENO" 5
21230			  ;;
21231	    esac
21232	fi
21233else
21234  if test -z "$ZLIB_DISABLE"; then
21235		ZLIB_DISABLE=no
21236	fi
21237fi
21238
21239
21240if test "${ZLIB_DISABLE}" = yes; then
21241	:
21242else
21243
21244DEFAULT_LIBDIR="${libdir}"
21245
21246if test "${DEFAULT_LIBDIR}" = ''
21247then
21248	DEFAULT_LIBDIR="'${libdir}'"
21249fi
21250
21251
21252# Check whether --with-zlib-name was given.
21253if test "${with_zlib_name+set}" = set; then :
21254  withval=$with_zlib_name; case "$withval" in
21255    yes) as_fn_error $? ""option \"--with-zlib-name\" requires an argument"" "$LINENO" 5
21256	;;
21257    no) as_fn_error $? ""option \"--with-zlib-name\" requires an argument"" "$LINENO" 5
21258	;;
21259    *) ZLIB_NAME="$withval"
21260	;;
21261esac
21262else
21263  ZLIB_NAME="z"
21264fi
21265
21266
21267
21268# Check whether --with-zlib-dir was given.
21269if test "${with_zlib_dir+set}" = set; then :
21270  withval=$with_zlib_dir; case "$withval" in
21271    yes) as_fn_error $? ""option \"--with-zlib-dir\" requires an argument"" "$LINENO" 5
21272	;;
21273    no) as_fn_error $? ""option \"--with-zlib-dir\" requires an argument"" "$LINENO" 5
21274	;;
21275    *) ZLIB_LIB_PATH="$withval"
21276       ZLIB_INCLUDE_PATH="$withval"
21277	;;
21278esac
21279fi
21280
21281
21282
21283# Check whether --with-zlib-lib was given.
21284if test "${with_zlib_lib+set}" = set; then :
21285  withval=$with_zlib_lib; case "$withval" in
21286    yes) as_fn_error $? ""option \"--with-zlib-lib\" requires an argument"" "$LINENO" 5
21287	;;
21288    no) as_fn_error $? ""option \"--with-zlib-lib\" requires an argument"" "$LINENO" 5
21289	;;
21290    *) ZLIB_LIB_PATH="$withval"
21291	;;
21292esac
21293else
21294  test -z "`eval eval eval echo ${ZLIB_LIB_PATH}`" && ZLIB_LIB_PATH="${DEFAULT_LIBDIR}"
21295fi
21296
21297DEFAULT_INCDIR="${includedir}"
21298
21299
21300# Check whether --with-zlib-headers was given.
21301if test "${with_zlib_headers+set}" = set; then :
21302  withval=$with_zlib_headers; case "$withval" in
21303    yes) as_fn_error $? ""option \"--with-zlib-headers\" requires an argument"" "$LINENO" 5
21304	;;
21305    no) as_fn_error $? ""option \"--with-zlib-headers\" requires an argument"" "$LINENO" 5
21306	;;
21307    *) ZLIB_INCLUDE_PATH="$withval"
21308	;;
21309esac
21310else
21311  test -z "`eval eval eval echo ${ZLIB_INCLUDE_PATH}`" && ZLIB_INCLUDE_PATH="${DEFAULT_INCDIR}"
21312fi
21313
21314
21315as_ac_Lib=`$as_echo "ac_cv_lib_${ZLIB_NAME}''_main" | $as_tr_sh`
21316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${ZLIB_NAME}" >&5
21317$as_echo_n "checking for main in -l${ZLIB_NAME}... " >&6; }
21318if eval \${$as_ac_Lib+:} false; then :
21319  $as_echo_n "(cached) " >&6
21320else
21321  ac_check_lib_save_LIBS=$LIBS
21322LIBS="-l${ZLIB_NAME} -L`eval eval eval echo ${ZLIB_LIB_PATH}`  $LIBS"
21323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324/* end confdefs.h.  */
21325
21326
21327int
21328main ()
21329{
21330return main ();
21331  ;
21332  return 0;
21333}
21334_ACEOF
21335if ac_fn_c_try_link "$LINENO"; then :
21336  eval "$as_ac_Lib=yes"
21337else
21338  eval "$as_ac_Lib=no"
21339fi
21340rm -f core conftest.err conftest.$ac_objext \
21341    conftest$ac_exeext conftest.$ac_ext
21342LIBS=$ac_check_lib_save_LIBS
21343fi
21344eval ac_res=\$$as_ac_Lib
21345	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21346$as_echo "$ac_res" >&6; }
21347if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21348  ZLIB_LIB="-L${ZLIB_LIB_PATH} -l${ZLIB_NAME}"
21349     ZLIB_ALL_LIB="-L${ZLIB_LIB_PATH} -l${ZLIB_NAME} "
21350else
21351  ZLIB_LIB=""
21352     ZLIB_ALL_LIB=""
21353     ZLIB_LIB_PATH=""
21354     ZLIB_INCLUDE_PATH=""
21355fi
21356
21357
21358if test "x${ZLIB_LIB}" = "x" ; then
21359  case "$host" in
21360	*darwin*)
21361	eval "unset ac_cv_lib_${ZLIB_NAME}___main"
21362as_ac_Lib=`$as_echo "ac_cv_lib_${ZLIB_NAME}''_main" | $as_tr_sh`
21363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -framework ${ZLIB_NAME}" >&5
21364$as_echo_n "checking for main in -framework ${ZLIB_NAME}... " >&6; }
21365if eval \${$as_ac_Lib+:} false; then :
21366  $as_echo_n "(cached) " >&6
21367else
21368  ac_check_lib_save_LIBS=$LIBS
21369LIBS="-framework ${ZLIB_NAME} -F`eval eval eval echo ${ZLIB_LIB_PATH}` `eval eval eval echo ` $LIBS"
21370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21371/* end confdefs.h.  */
21372
21373
21374int
21375main ()
21376{
21377return main ();
21378  ;
21379  return 0;
21380}
21381_ACEOF
21382if ac_fn_c_try_link "$LINENO"; then :
21383  eval "$as_ac_Lib=yes"
21384else
21385  eval "$as_ac_Lib=no"
21386fi
21387rm -f core conftest.err conftest.$ac_objext \
21388    conftest$ac_exeext conftest.$ac_ext
21389LIBS=$ac_check_lib_save_LIBS
21390fi
21391eval ac_res=\$$as_ac_Lib
21392	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21393$as_echo "$ac_res" >&6; }
21394if test `eval 'as_val=${'$as_ac_Lib'};$as_echo "$as_val"'` = yes; then :
21395  ZLIB_LIB="-F${ZLIB_LIB_PATH} -framework ${ZLIB_NAME}"
21396     ZLIB_ALL_LIB="-F${ZLIB_LIB_PATH} -framework ${ZLIB_NAME} "
21397else
21398  ZLIB_LIB=""
21399     ZLIB_ALL_LIB=""
21400     ZLIB_LIB_PATH=""
21401     ZLIB_INCLUDE_PATH=""
21402fi
21403	;;
21404  esac
21405fi
21406
21407if test "x${ZLIB_LIB}" = "x" ; then
21408	:
21409else
21410
21411                gv_ac_ZLIB_save_CPPFLAGS="$CPPFLAGS"
21412
21413    unset gv_ac_zlib_h
21414    for incdir in "${ZLIB_INCLUDE_PATH}"; do
21415      if test -n "`eval eval eval echo ${incdir}`"; then
21416	CPPFLAGS="-I`eval eval eval echo ${incdir}`  ${gv_ac_ZLIB_save_CPPFLAGS}"
21417      fi
21418      for ac_header in zlib.h
21419do :
21420  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21421if test "x$ac_cv_header_zlib_h" = xyes; then :
21422  cat >>confdefs.h <<_ACEOF
21423#define HAVE_ZLIB_H 1
21424_ACEOF
21425 gv_ac_zlib_h="zlib.h"
21426fi
21427
21428done
21429
21430      if ! test "${gv_ac_zlib_h}" = "zlib.h"; then
21431	eval "unset ac_cv_header_zlib_h"
21432      else
21433     	break
21434      fi
21435    done
21436    if ! test "${gv_ac_zlib_h}" = "zlib.h"; then
21437      ZLIB_LIB=""
21438	ZLIB_ALL_LIB=""
21439	ZLIB_LIB_PATH=""
21440	ZLIB_INCLUDE_PATH=""
21441    else
21442      ZLIB_ALL_INCLUDES="-I${incdir} "
21443      ZLIB_INCLUDES="-I${incdir}"
21444      ZLIB_INCLUDE_PATH="${incdir}"
21445    fi
21446    CPPFLAGS="${gv_ac_ZLIB_save_CPPFLAGS}"
21447
21448        if test "x${ZLIB_LIB}" = "x" ; then
21449	:
21450  else
21451
21452$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
21453
21454  fi
21455fi
21456
21457fi
21458 if test -n "$ZLIB_LIB"; then
21459  HAVE_ZLIB_TRUE=
21460  HAVE_ZLIB_FALSE='#'
21461else
21462  HAVE_ZLIB_TRUE='#'
21463  HAVE_ZLIB_FALSE=
21464fi
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474gv_ac_save_LIBS="${LIBS}"
21475LIBS="${LIBS} ${ZLIB_ALL_LIB}"
21476for ac_func in compressBound
21477do :
21478  ac_fn_c_check_func "$LINENO" "compressBound" "ac_cv_func_compressBound"
21479if test "x$ac_cv_func_compressBound" = xyes; then :
21480  cat >>confdefs.h <<_ACEOF
21481#define HAVE_COMPRESSBOUND 1
21482_ACEOF
21483
21484fi
21485done
21486 # pre-1.2 zlib?
21487LIBS="${gv_ac_save_LIBS}"
21488
21489########################################################################
21490
21491OPENGL_LD_LIBRARY_PATH=`expr "$GL_L_OPTION" : '-L\(.*\)'`
21492MOTIF_LD_LIBRARY_PATH=`expr "$MOTIF_L_OPTION" : '-L\(.*\)'`
21493
21494if test "$OPENGL_LD_LIBRARY_PATH" != "0" ; then
21495  LOCAL_LD_LIBRARY_PATH=$OPENGL_LD_LIBRARY_PATH
21496fi
21497if test "$MOTIF_LD_LIBRARY_PATH" != "0" ; then
21498  if test "$LOCAL_LD_LIBRARY_PATH" != "" ; then
21499    LOCAL_LD_LIBRARY_PATH="$LOCAL_LD_LIBRARY_PATH:$MOTIF_LD_LIBRARY_PATH"
21500  else
21501    LOCAL_LD_LIBRARY_PATH="$MOTIF_LD_LIBRARY_PATH"
21502  fi
21503fi
21504if test "$LOCAL_LD_LIBRARY_PATH" != "" ; then
21505  LD_LIBRARY_PATH_SETTINGS="LD_LIBRARY_PATH=$LOCAL_LD_LIBRARY_PATH"
21506
21507fi
21508
21509########################################################################
21510########################################################################
21511########################################################################
21512
21513# Check whether --enable-d1debug was given.
21514if test "${enable_d1debug+set}" = set; then :
21515  enableval=$enable_d1debug;  if test "$enableval" != "no" ; then
21516                  $as_echo "#define D1_DEBUG 1" >>confdefs.h
21517
21518                fi
21519else
21520
21521$as_echo "#define D1_DEBUG 0" >>confdefs.h
21522
21523
21524fi
21525
21526
21527# Check whether --enable-motion-averaging was given.
21528if test "${enable_motion_averaging+set}" = set; then :
21529  enableval=$enable_motion_averaging; if test "$enableval" = "no" ; then
21530
21531$as_echo "#define EXPERIMENTAL_MOTION_AVERAGING 0" >>confdefs.h
21532
21533  else
21534    $as_echo "#define EXPERIMENTAL_MOTION_AVERAGING 1" >>confdefs.h
21535
21536  fi
21537else
21538  $as_echo "#define EXPERIMENTAL_MOTION_AVERAGING 0" >>confdefs.h
21539
21540fi
21541
21542
21543BEZIER_SPHERES=0
21544 if test "${BEZIER_SPHERES}" = 1; then
21545  BEZIER_SPHERES_TRUE=
21546  BEZIER_SPHERES_FALSE='#'
21547else
21548  BEZIER_SPHERES_TRUE='#'
21549  BEZIER_SPHERES_FALSE=
21550fi
21551
21552
21553cat >>confdefs.h <<_ACEOF
21554#define BEZIER_SPHERES ${BEZIER_SPHERES}
21555_ACEOF
21556
21557
21558########################################################################
21559########################################################################
21560########################################################################
21561
21562ac_ext=c
21563ac_cpp='$CPP $CPPFLAGS'
21564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether popen(CMD, MODE) needs/accepts MODE = \"rb\" for binary files" >&5
21569$as_echo_n "checking whether popen(CMD, MODE) needs/accepts MODE = \"rb\" for binary files... " >&6; }
21570if test "$cross_compiling" = yes; then :
21571  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21573as_fn_error $? "cannot run test program while cross compiling
21574See \`config.log' for more details" "$LINENO" 5; }
21575else
21576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21577/* end confdefs.h.  */
21578#include <stdio.h>
21579
21580int
21581main ()
21582{
21583FILE *pipe = popen("${SHELL}", "rb");
21584if (pipe == NULL)
21585  return 1;
21586else
21587  return 0;
21588  ;
21589  return 0;
21590}
21591_ACEOF
21592if ac_fn_c_try_run "$LINENO"; then :
21593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21594$as_echo "yes" >&6; }
21595
21596$as_echo "#define POPEN_ACCEPTS_RB 1" >>confdefs.h
21597
21598else
21599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21600$as_echo "no" >&6; }
21601fi
21602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21603  conftest.$ac_objext conftest.beam conftest.$ac_ext
21604fi
21605
21606ac_ext=c
21607ac_cpp='$CPP $CPPFLAGS'
21608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21610ac_compiler_gnu=$ac_cv_c_compiler_gnu
21611
21612
21613 if test x$HAVE_CXX = xtrue; then
21614  HAVE_CXX_TRUE=
21615  HAVE_CXX_FALSE='#'
21616else
21617  HAVE_CXX_TRUE='#'
21618  HAVE_CXX_FALSE=
21619fi
21620
21621
21622########################################################################
21623
21624
21625
21626cat >>confdefs.h <<_ACEOF
21627#define DOCDIR "`eval eval echo ${docdir}`"
21628_ACEOF
21629
21630
21631moduledir="\$(libexecdir)/geomview"
21632
21633
21634geomdatadir="\$(datadir)/geomview"
21635
21636
21637########################################################################
21638
21639top_geom_builddir='$(top_builddir)'
21640
21641
21642OOGLLIBS="\$(top_geom_builddir)/src/lib/oogl/wa/libwa.la                     \
21643          \$(top_geom_builddir)/src/lib/camera/libcamera.la                  \
21644          \$(top_geom_builddir)/src/lib/color/libcolor.la                    \
21645          \$(top_geom_builddir)/src/lib/fexpr/libfexpr.la                    \
21646          \$(top_geom_builddir)/src/lib/geomutil/bdy/libbdy.la               \
21647          \$(top_geom_builddir)/src/lib/geomutil/crayplutil/libcrayplutil.la \
21648          \$(top_geom_builddir)/src/lib/geomutil/dim/libdim.la               \
21649          \$(top_geom_builddir)/src/lib/geomutil/plutil/libplutil.la         \
21650          \$(top_geom_builddir)/src/lib/gprim/bbox/libbbox.la                \
21651          \$(top_geom_builddir)/src/lib/gprim/bezier/libbezier.la            \
21652          \$(top_geom_builddir)/src/lib/gprim/comment/libcomment.la          \
21653          \$(top_geom_builddir)/src/lib/gprim/discgrp/libdg.la               \
21654          \$(top_geom_builddir)/src/lib/gprim/geom/libgeom.la                \
21655          \$(top_geom_builddir)/src/lib/gprim/inst/libinst.la                \
21656          \$(top_geom_builddir)/src/lib/gprim/lincoln/liblincoln.la          \
21657          \$(top_geom_builddir)/src/lib/gprim/list/liblist.la                \
21658          \$(top_geom_builddir)/src/lib/gprim/mesh/libmesh.la                \
21659          \$(top_geom_builddir)/src/lib/gprim/ndmesh/libndmesh.la            \
21660          \$(top_geom_builddir)/src/lib/gprim/npolylist/libnpolylist.la      \
21661          \$(top_geom_builddir)/src/lib/gprim/polylist/libpolylist.la        \
21662          \$(top_geom_builddir)/src/lib/gprim/quad/libquad.la                \
21663          \$(top_geom_builddir)/src/lib/gprim/skel/libskel.la                \
21664          \$(top_geom_builddir)/src/lib/gprim/sphere/libsphere.la            \
21665          \$(top_geom_builddir)/src/lib/gprim/tlist/libtlist.la              \
21666          \$(top_geom_builddir)/src/lib/gprim/vect/libvect.la                \
21667          \$(top_geom_builddir)/src/lib/mg/buf/liblibmgbuf.la                \
21668          \$(top_geom_builddir)/src/lib/mg/common/libmgcommon.la             \
21669          \$(top_geom_builddir)/src/lib/mg/ps/libmgps.la                     \
21670          \$(top_geom_builddir)/src/lib/mg/rib/libmgrib.la                   \
21671          \$(top_geom_builddir)/src/lib/pointlist/libpointlist.la            \
21672          \$(top_geom_builddir)/src/lib/shade/libshade.la                    \
21673          \$(top_geom_builddir)/src/lib/window/libwindow.la                  \
21674          \$(top_geom_builddir)/src/lib/geometry/cmodel/libcmodel.la         \
21675          \$(top_geom_builddir)/src/lib/geometry/point3/libpoint3.la         \
21676          \$(top_geom_builddir)/src/lib/geometry/transform3/libtransform3.la \
21677          \$(top_geom_builddir)/src/lib/geometry/transformn/libtransformn.la \
21678          \$(top_geom_builddir)/src/lib/geometry/transobj/libtransobj.la     \
21679          \$(top_geom_builddir)/src/lib/geometry/ntransobj/libntransobj.la   \
21680          \$(top_geom_builddir)/src/lib/oogl/lisp/liblisp.la                 \
21681          \$(top_geom_builddir)/src/lib/oogl/refcomm/librefcomm.la           \
21682          \$(top_geom_builddir)/src/lib/oogl/util/libooglutil.la             \
21683          \$(top_geom_builddir)/src/lib/aclib/libacgeomview.la"
21684
21685if test "z${MGOPENGL}" = "z1"; then
21686  OOGLLIBS="${OOGLLIBS} \$(top_geom_builddir)/src/lib/mg/opengl/libmgopengl.la"
21687fi
21688if test "z${MGX11}" = "z1"; then
21689  OOGLLIBS="${OOGLLIBS} \$(top_geom_builddir)/src/lib/mg/x11/libmgx11.la"
21690fi
21691
21692if ${ac_cv_OOGLLIBS+:} false; then :
21693  $as_echo_n "(cached) " >&6
21694else
21695  ac_cv_OOGLLIBS="OOGLLIBS='$OOGLLIBS'"
21696fi
21697
21698
21699
21700OOGLLIB='$(top_geom_builddir)/src/lib/libgeomview.la'
21701if ${ac_cv_OOGLLIB+:} false; then :
21702  $as_echo_n "(cached) " >&6
21703else
21704  ac_cv_OOGLLIB="OOGLLIB='$OOGLLIB'"
21705fi
21706
21707
21708
21709MOTIFUILIB='$(top_geom_builddir)/src/lib/mib/libmib.a'
21710if ${ac_cv_MOTIFUILIB+:} false; then :
21711  $as_echo_n "(cached) " >&6
21712else
21713  ac_cv_MOTIFUILIB="MOTIFUILIB='$MOTIFUILIB'"
21714fi
21715
21716
21717
21718STUBLIB="\$(top_builddir)/src/lib/gprim/stub/libstub.la"
21719
21720
21721########################################################################
21722
21723
21724  # Find out how to link files if we haven't already
21725  if test -z "$LN_S"
21726  then
21727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
21728$as_echo_n "checking whether ln -s works... " >&6; }
21729LN_S=$as_ln_s
21730if test "$LN_S" = "ln -s"; then
21731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21732$as_echo "yes" >&6; }
21733else
21734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
21735$as_echo "no, using $LN_S" >&6; }
21736fi
21737
21738  fi
21739
21740  # Remove the include directory if we haven't done that yet
21741  if test -z "$lf_link_headers"
21742  then
21743    lf_link_headers="we are all Kosh"
21744    rm -rf "$srcdir/include"
21745  fi
21746
21747  # Get the directory from the second argument which is optional
21748  lf_directory="include"
21749#  ${srcdir}/mkinstalldirs "$lf_directory"
21750  mkdir $lf_directory
21751
21752  if test -d "`pwd`/$srcdir"; then
21753    lf_srcdir="`pwd`/$srcdir"
21754  else
21755    lf_srcdir="$srcdir"
21756  fi
21757
21758  # Link them
21759  lf_subdirs="`echo src/lib/aclib			\
21760                src/lib/oogl/lisp		\
21761		src/lib/oogl/refcomm		\
21762		src/lib/oogl/util		\
21763		src/lib/oogl/wa			\
21764		src/lib/geometry/		\
21765		src/lib/geometry/cmodel		\
21766		src/lib/geometry/hpoint3	\
21767		src/lib/geometry/hpointn	\
21768		src/lib/geometry/point3		\
21769		src/lib/geometry/transform3	\
21770		src/lib/geometry/transformn	\
21771		src/lib/geometry/transobj	\
21772		src/lib/geometry/ntransobj	\
21773		src/lib/camera			\
21774		src/lib/color			\
21775		src/lib/fexpr			\
21776		src/lib/geomutil/bdy		\
21777		src/lib/geomutil/crayplutil	\
21778		src/lib/geomutil/dim		\
21779		src/lib/geomutil/plutil		\
21780		src/lib/gprim/bbox		\
21781		src/lib/gprim/bezier		\
21782		src/lib/gprim/comment		\
21783		src/lib/gprim/discgrp		\
21784		src/lib/gprim/geom		\
21785		src/lib/gprim/inst		\
21786		src/lib/gprim/lincoln		\
21787		src/lib/gprim/list		\
21788		src/lib/gprim/mesh		\
21789		src/lib/gprim/polylist		\
21790		src/lib/gprim/ndmesh		\
21791		src/lib/gprim/npolylist		\
21792		src/lib/gprim/quad		\
21793		src/lib/gprim/skel		\
21794		src/lib/gprim/sphere		\
21795		src/lib/gprim/stub		\
21796		src/lib/gprim/tlist		\
21797		src/lib/gprim/vect		\
21798		src/lib/mg/buf			\
21799		src/lib/mg/common		\
21800		src/lib/mg/opengl		\
21801		src/lib/mg/x11			\
21802		src/lib/mg/ps			\
21803		src/lib/mg/rib			\
21804		src/lib/mib			\
21805		src/lib/pointlist		\
21806		src/lib/shade			\
21807		src/lib/window			\
21808		src/lib/forms			\
21809	 	src/bin/geomview/common		\
21810		`"
21811  for lf_dir in $lf_subdirs
21812  do
21813    echo "linking headers from $srcdir/$lf_dir"
21814    # Check if the Headers file exists
21815    if test -f "$srcdir/$lf_dir/Headers"
21816    then
21817      for lf_file in `(cd $srcdir/$lf_dir; cat Headers)`
21818      do
21819        rm -f $lf_directory/$lf_file
21820	if test -f "$lf_srcdir/$lf_dir/$lf_file"; then
21821 	  $LN_S "$lf_srcdir/$lf_dir/$lf_file" "$lf_directory/$lf_file"
21822	else
21823	  # assume it will be located in the build-directory
21824 	  $LN_S "`pwd`/$lf_dir/$lf_file" "$lf_directory/$lf_file"
21825	fi
21826	if echo ${lf_file}|fgrep 'P.h' > /dev/null 2>&1; then
21827	  GEOMVIEWPRIVHDRFILES="${GEOMVIEWPRIVHDRFILES} include/${lf_file}"
21828	else
21829	  GEOMVIEWHDRFILES="${GEOMVIEWHDRFILES} include/${lf_file}"
21830	fi
21831      done
21832    else
21833      echo "Warning: No Headers file for $srcdir/$lf_dir"
21834    fi
21835  done
21836
21837
21838
21839
21840
21841  # See whether to put an entry for the prefix
21842  if test "$prefix" = "/usr" || test "$prefix" = "/usr/local"
21843  then
21844    default_includes=""
21845  else
21846    default_includes="-I\$(prefix) "
21847  fi
21848
21849  # Get the directory list
21850  lf_dirs="`echo `"
21851
21852  # Check whether we have a lib directory. If so put it in
21853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sources have a lib directory" >&5
21854$as_echo_n "checking whether sources have a lib directory... " >&6; }
21855  if test -d "`pwd`/$srcdir/lib"
21856  then
21857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21858$as_echo "yes" >&6; }
21859    default_includes="$default_includes -I\$(top_srcdir)/lib"
21860  else
21861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21862$as_echo "no" >&6; }
21863  fi
21864
21865  # Now add in the directories. If the list is empty then just add include/
21866  # If the list is not empty then add the subdirectories.
21867  if test -z "$lf_dirs"
21868  then
21869    default_includes="$default_includes -I\$(top_builddir)/include"
21870  else
21871    for lf_dir in $lf_dirs
21872    do
21873      default_includes="$default_includes -I\$(top_builddir)/include/$lf_dir"
21874    done
21875  fi
21876
21877  # And that's it
21878
21879
21880
21881ac_config_files="$ac_config_files Makefile data/Makefile data/shaders/Makefile doc/Makefile src/Makefile src/lib/Makefile src/lib/aclib/Makefile src/lib/camera/Makefile src/lib/color/Makefile src/lib/fexpr/Makefile src/lib/oogl/Makefile src/lib/oogl/lisp/Makefile src/lib/oogl/refcomm/Makefile src/lib/oogl/util/Makefile src/lib/oogl/wa/Makefile src/lib/geometry/Makefile src/lib/geometry/cmodel/Makefile src/lib/geometry/hpoint3/Makefile src/lib/geometry/hpointn/Makefile src/lib/geometry/point3/Makefile src/lib/geometry/transform3/Makefile src/lib/geometry/transformn/Makefile src/lib/geometry/transobj/Makefile src/lib/geometry/ntransobj/Makefile src/lib/geomutil/Makefile src/lib/geomutil/bdy/Makefile src/lib/geomutil/crayplutil/Makefile src/lib/geomutil/dim/Makefile src/lib/geomutil/plutil/Makefile src/lib/gprim/Makefile src/lib/gprim/bbox/Makefile src/lib/gprim/bezier/Makefile src/lib/gprim/comment/Makefile src/lib/gprim/discgrp/Makefile src/lib/gprim/geom/Makefile src/lib/gprim/inst/Makefile src/lib/gprim/lincoln/Makefile src/lib/gprim/list/Makefile src/lib/gprim/mesh/Makefile src/lib/gprim/polylist/Makefile src/lib/gprim/ndmesh/Makefile src/lib/gprim/npolylist/Makefile src/lib/gprim/quad/Makefile src/lib/gprim/skel/Makefile src/lib/gprim/sphere/Makefile src/lib/gprim/stub/Makefile src/lib/gprim/tlist/Makefile src/lib/gprim/vect/Makefile src/lib/mg/Makefile src/lib/mg/buf/Makefile src/lib/mg/common/Makefile src/lib/mg/opengl/Makefile src/lib/mg/x11/Makefile src/lib/mg/ps/Makefile src/lib/mg/rib/Makefile src/lib/mib/Makefile src/lib/pointlist/Makefile src/lib/shade/Makefile src/lib/window/Makefile src/lib/forms/Makefile src/bin/Makefile src/bin/geomview/Makefile src/bin/geomview/common/Makefile src/bin/geomview/x11/Makefile src/bin/geomview/x11/bitmaps/Makefile src/bin/geomview/x11/interface/Makefile src/bin/animate/Makefile src/bin/animate/interface/Makefile src/bin/clipboard/Makefile src/bin/gvclock/gvclock src/bin/gvclock/Makefile src/bin/geomutil/Makefile src/bin/geomutil/bdy/Makefile src/bin/geomutil/clip/Makefile src/bin/geomutil/hvectext/Makefile src/bin/geomutil/hvectext/hvectext src/bin/geomutil/maple2oogl/Makefile src/bin/geomutil/math2oogl/Makefile src/bin/geomutil/oogl2rib/Makefile src/bin/geomutil/oogl2vrml/Makefile src/bin/geomutil/plutil/Makefile src/bin/geomutil/ucd/Makefile src/bin/geomutil/vrml2oogl/Makefile src/bin/geomutil/vrml2oogl/lib/Makefile src/bin/nose/Makefile src/bin/togeomview/Makefile"
21882
21883cat >confcache <<\_ACEOF
21884# This file is a shell script that caches the results of configure
21885# tests run on this system so they can be shared between configure
21886# scripts and configure runs, see configure's option --config-cache.
21887# It is not useful on other systems.  If it contains results you don't
21888# want to keep, you may remove or edit it.
21889#
21890# config.status only pays attention to the cache file if you give it
21891# the --recheck option to rerun configure.
21892#
21893# `ac_cv_env_foo' variables (set or unset) will be overridden when
21894# loading this file, other *unset* `ac_cv_foo' will be assigned the
21895# following values.
21896
21897_ACEOF
21898
21899# The following way of writing the cache mishandles newlines in values,
21900# but we know of no workaround that is simple, portable, and efficient.
21901# So, we kill variables containing newlines.
21902# Ultrix sh set writes to stderr and can't be redirected directly,
21903# and sets the high bit in the cache file unless we assign to the vars.
21904(
21905  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21906    eval ac_val=\$$ac_var
21907    case $ac_val in #(
21908    *${as_nl}*)
21909      case $ac_var in #(
21910      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21911$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21912      esac
21913      case $ac_var in #(
21914      _ | IFS | as_nl) ;; #(
21915      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21916      *) { eval $ac_var=; unset $ac_var;} ;;
21917      esac ;;
21918    esac
21919  done
21920
21921  (set) 2>&1 |
21922    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21923    *${as_nl}ac_space=\ *)
21924      # `set' does not quote correctly, so add quotes: double-quote
21925      # substitution turns \\\\ into \\, and sed turns \\ into \.
21926      sed -n \
21927	"s/'/'\\\\''/g;
21928	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21929      ;; #(
21930    *)
21931      # `set' quotes correctly as required by POSIX, so do not add quotes.
21932      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21933      ;;
21934    esac |
21935    sort
21936) |
21937  sed '
21938     /^ac_cv_env_/b end
21939     t clear
21940     :clear
21941     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21942     t end
21943     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21944     :end' >>confcache
21945if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21946  if test -w "$cache_file"; then
21947    if test "x$cache_file" != "x/dev/null"; then
21948      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21949$as_echo "$as_me: updating cache $cache_file" >&6;}
21950      if test ! -f "$cache_file" || test -h "$cache_file"; then
21951	cat confcache >"$cache_file"
21952      else
21953        case $cache_file in #(
21954        */* | ?:*)
21955	  mv -f confcache "$cache_file"$$ &&
21956	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21957        *)
21958	  mv -f confcache "$cache_file" ;;
21959	esac
21960      fi
21961    fi
21962  else
21963    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21964$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21965  fi
21966fi
21967rm -f confcache
21968
21969test "x$prefix" = xNONE && prefix=$ac_default_prefix
21970# Let make expand exec_prefix.
21971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21972
21973DEFS=-DHAVE_CONFIG_H
21974
21975ac_libobjs=
21976ac_ltlibobjs=
21977U=
21978for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21979  # 1. Remove the extension, and $U if already installed.
21980  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21981  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21982  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21983  #    will be set to the directory where LIBOBJS objects are built.
21984  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21985  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21986done
21987LIBOBJS=$ac_libobjs
21988
21989LTLIBOBJS=$ac_ltlibobjs
21990
21991
21992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21993$as_echo_n "checking that generated files are newer than configure... " >&6; }
21994   if test -n "$am_sleep_pid"; then
21995     # Hide warnings about reused PIDs.
21996     wait $am_sleep_pid 2>/dev/null
21997   fi
21998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21999$as_echo "done" >&6; }
22000 if test -n "$EXEEXT"; then
22001  am__EXEEXT_TRUE=
22002  am__EXEEXT_FALSE='#'
22003else
22004  am__EXEEXT_TRUE='#'
22005  am__EXEEXT_FALSE=
22006fi
22007
22008if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22009  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22010Usually this means the macro was only invoked conditionally." "$LINENO" 5
22011fi
22012if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22013  as_fn_error $? "conditional \"AMDEP\" was never defined.
22014Usually this means the macro was only invoked conditionally." "$LINENO" 5
22015fi
22016if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22017  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22018Usually this means the macro was only invoked conditionally." "$LINENO" 5
22019fi
22020if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22021  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22022Usually this means the macro was only invoked conditionally." "$LINENO" 5
22023fi
22024if test -z "${INSTALL_LIBGEOMVIEW_TRUE}" && test -z "${INSTALL_LIBGEOMVIEW_FALSE}"; then
22025  as_fn_error $? "conditional \"INSTALL_LIBGEOMVIEW\" was never defined.
22026Usually this means the macro was only invoked conditionally." "$LINENO" 5
22027fi
22028if test -z "${AQSIS_SHADER_COMPILER_TRUE}" && test -z "${AQSIS_SHADER_COMPILER_FALSE}"; then
22029  as_fn_error $? "conditional \"AQSIS_SHADER_COMPILER\" was never defined.
22030Usually this means the macro was only invoked conditionally." "$LINENO" 5
22031fi
22032if test -z "${PIXIE_SHADER_COMPILER_TRUE}" && test -z "${PIXIE_SHADER_COMPILER_FALSE}"; then
22033  as_fn_error $? "conditional \"PIXIE_SHADER_COMPILER\" was never defined.
22034Usually this means the macro was only invoked conditionally." "$LINENO" 5
22035fi
22036if test -z "${DELIGHT_SHADER_COMPILER_TRUE}" && test -z "${DELIGHT_SHADER_COMPILER_FALSE}"; then
22037  as_fn_error $? "conditional \"DELIGHT_SHADER_COMPILER\" was never defined.
22038Usually this means the macro was only invoked conditionally." "$LINENO" 5
22039fi
22040
22041if test -z "${MGOPENGL_TRUE}" && test -z "${MGOPENGL_FALSE}"; then
22042  as_fn_error $? "conditional \"MGOPENGL\" was never defined.
22043Usually this means the macro was only invoked conditionally." "$LINENO" 5
22044fi
22045if test -z "${MGX11_TRUE}" && test -z "${MGX11_FALSE}"; then
22046  as_fn_error $? "conditional \"MGX11\" was never defined.
22047Usually this means the macro was only invoked conditionally." "$LINENO" 5
22048fi
22049if test -z "${MGGL_TRUE}" && test -z "${MGGL_FALSE}"; then
22050  as_fn_error $? "conditional \"MGGL\" was never defined.
22051Usually this means the macro was only invoked conditionally." "$LINENO" 5
22052fi
22053if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22054  as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
22055Usually this means the macro was only invoked conditionally." "$LINENO" 5
22056fi
22057if test -z "${BEZIER_SPHERES_TRUE}" && test -z "${BEZIER_SPHERES_FALSE}"; then
22058  as_fn_error $? "conditional \"BEZIER_SPHERES\" was never defined.
22059Usually this means the macro was only invoked conditionally." "$LINENO" 5
22060fi
22061if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
22062  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
22063Usually this means the macro was only invoked conditionally." "$LINENO" 5
22064fi
22065
22066: "${CONFIG_STATUS=./config.status}"
22067ac_write_fail=0
22068ac_clean_files_save=$ac_clean_files
22069ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22070{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22071$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22072as_write_fail=0
22073cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22074#! $SHELL
22075# Generated by $as_me.
22076# Run this file to recreate the current configuration.
22077# Compiler output produced by configure, useful for debugging
22078# configure, is in config.log if it exists.
22079
22080debug=false
22081ac_cs_recheck=false
22082ac_cs_silent=false
22083
22084SHELL=\${CONFIG_SHELL-$SHELL}
22085export SHELL
22086_ASEOF
22087cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22088## -------------------- ##
22089## M4sh Initialization. ##
22090## -------------------- ##
22091
22092# Be more Bourne compatible
22093DUALCASE=1; export DUALCASE # for MKS sh
22094if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22095  emulate sh
22096  NULLCMD=:
22097  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22098  # is contrary to our usage.  Disable this feature.
22099  alias -g '${1+"$@"}'='"$@"'
22100  setopt NO_GLOB_SUBST
22101else
22102  case `(set -o) 2>/dev/null` in #(
22103  *posix*) :
22104    set -o posix ;; #(
22105  *) :
22106     ;;
22107esac
22108fi
22109
22110
22111as_nl='
22112'
22113export as_nl
22114# Printing a long string crashes Solaris 7 /usr/bin/printf.
22115as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22116as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22117as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22118# Prefer a ksh shell builtin over an external printf program on Solaris,
22119# but without wasting forks for bash or zsh.
22120if test -z "$BASH_VERSION$ZSH_VERSION" \
22121    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22122  as_echo='print -r --'
22123  as_echo_n='print -rn --'
22124elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22125  as_echo='printf %s\n'
22126  as_echo_n='printf %s'
22127else
22128  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22129    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22130    as_echo_n='/usr/ucb/echo -n'
22131  else
22132    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22133    as_echo_n_body='eval
22134      arg=$1;
22135      case $arg in #(
22136      *"$as_nl"*)
22137	expr "X$arg" : "X\\(.*\\)$as_nl";
22138	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22139      esac;
22140      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22141    '
22142    export as_echo_n_body
22143    as_echo_n='sh -c $as_echo_n_body as_echo'
22144  fi
22145  export as_echo_body
22146  as_echo='sh -c $as_echo_body as_echo'
22147fi
22148
22149# The user is always right.
22150if test "${PATH_SEPARATOR+set}" != set; then
22151  PATH_SEPARATOR=:
22152  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22153    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22154      PATH_SEPARATOR=';'
22155  }
22156fi
22157
22158
22159# IFS
22160# We need space, tab and new line, in precisely that order.  Quoting is
22161# there to prevent editors from complaining about space-tab.
22162# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22163# splitting by setting IFS to empty value.)
22164IFS=" ""	$as_nl"
22165
22166# Find who we are.  Look in the path if we contain no directory separator.
22167as_myself=
22168case $0 in #((
22169  *[\\/]* ) as_myself=$0 ;;
22170  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22171for as_dir in $PATH
22172do
22173  IFS=$as_save_IFS
22174  test -z "$as_dir" && as_dir=.
22175    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22176  done
22177IFS=$as_save_IFS
22178
22179     ;;
22180esac
22181# We did not find ourselves, most probably we were run as `sh COMMAND'
22182# in which case we are not to be found in the path.
22183if test "x$as_myself" = x; then
22184  as_myself=$0
22185fi
22186if test ! -f "$as_myself"; then
22187  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22188  exit 1
22189fi
22190
22191# Unset variables that we do not need and which cause bugs (e.g. in
22192# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22193# suppresses any "Segmentation fault" message there.  '((' could
22194# trigger a bug in pdksh 5.2.14.
22195for as_var in BASH_ENV ENV MAIL MAILPATH
22196do eval test x\${$as_var+set} = xset \
22197  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22198done
22199PS1='$ '
22200PS2='> '
22201PS4='+ '
22202
22203# NLS nuisances.
22204LC_ALL=C
22205export LC_ALL
22206LANGUAGE=C
22207export LANGUAGE
22208
22209# CDPATH.
22210(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22211
22212
22213# as_fn_error STATUS ERROR [LINENO LOG_FD]
22214# ----------------------------------------
22215# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22216# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22217# script with STATUS, using 1 if that was 0.
22218as_fn_error ()
22219{
22220  as_status=$1; test $as_status -eq 0 && as_status=1
22221  if test "$4"; then
22222    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22223    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22224  fi
22225  $as_echo "$as_me: error: $2" >&2
22226  as_fn_exit $as_status
22227} # as_fn_error
22228
22229
22230# as_fn_set_status STATUS
22231# -----------------------
22232# Set $? to STATUS, without forking.
22233as_fn_set_status ()
22234{
22235  return $1
22236} # as_fn_set_status
22237
22238# as_fn_exit STATUS
22239# -----------------
22240# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22241as_fn_exit ()
22242{
22243  set +e
22244  as_fn_set_status $1
22245  exit $1
22246} # as_fn_exit
22247
22248# as_fn_unset VAR
22249# ---------------
22250# Portably unset VAR.
22251as_fn_unset ()
22252{
22253  { eval $1=; unset $1;}
22254}
22255as_unset=as_fn_unset
22256# as_fn_append VAR VALUE
22257# ----------------------
22258# Append the text in VALUE to the end of the definition contained in VAR. Take
22259# advantage of any shell optimizations that allow amortized linear growth over
22260# repeated appends, instead of the typical quadratic growth present in naive
22261# implementations.
22262if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22263  eval 'as_fn_append ()
22264  {
22265    eval $1+=\$2
22266  }'
22267else
22268  as_fn_append ()
22269  {
22270    eval $1=\$$1\$2
22271  }
22272fi # as_fn_append
22273
22274# as_fn_arith ARG...
22275# ------------------
22276# Perform arithmetic evaluation on the ARGs, and store the result in the
22277# global $as_val. Take advantage of shells that can avoid forks. The arguments
22278# must be portable across $(()) and expr.
22279if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22280  eval 'as_fn_arith ()
22281  {
22282    as_val=$(( $* ))
22283  }'
22284else
22285  as_fn_arith ()
22286  {
22287    as_val=`expr "$@" || test $? -eq 1`
22288  }
22289fi # as_fn_arith
22290
22291
22292if expr a : '\(a\)' >/dev/null 2>&1 &&
22293   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22294  as_expr=expr
22295else
22296  as_expr=false
22297fi
22298
22299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22300  as_basename=basename
22301else
22302  as_basename=false
22303fi
22304
22305if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22306  as_dirname=dirname
22307else
22308  as_dirname=false
22309fi
22310
22311as_me=`$as_basename -- "$0" ||
22312$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22313	 X"$0" : 'X\(//\)$' \| \
22314	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22315$as_echo X/"$0" |
22316    sed '/^.*\/\([^/][^/]*\)\/*$/{
22317	    s//\1/
22318	    q
22319	  }
22320	  /^X\/\(\/\/\)$/{
22321	    s//\1/
22322	    q
22323	  }
22324	  /^X\/\(\/\).*/{
22325	    s//\1/
22326	    q
22327	  }
22328	  s/.*/./; q'`
22329
22330# Avoid depending upon Character Ranges.
22331as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22332as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22333as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22334as_cr_digits='0123456789'
22335as_cr_alnum=$as_cr_Letters$as_cr_digits
22336
22337ECHO_C= ECHO_N= ECHO_T=
22338case `echo -n x` in #(((((
22339-n*)
22340  case `echo 'xy\c'` in
22341  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22342  xy)  ECHO_C='\c';;
22343  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22344       ECHO_T='	';;
22345  esac;;
22346*)
22347  ECHO_N='-n';;
22348esac
22349
22350rm -f conf$$ conf$$.exe conf$$.file
22351if test -d conf$$.dir; then
22352  rm -f conf$$.dir/conf$$.file
22353else
22354  rm -f conf$$.dir
22355  mkdir conf$$.dir 2>/dev/null
22356fi
22357if (echo >conf$$.file) 2>/dev/null; then
22358  if ln -s conf$$.file conf$$ 2>/dev/null; then
22359    as_ln_s='ln -s'
22360    # ... but there are two gotchas:
22361    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22362    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22363    # In both cases, we have to default to `cp -pR'.
22364    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22365      as_ln_s='cp -pR'
22366  elif ln conf$$.file conf$$ 2>/dev/null; then
22367    as_ln_s=ln
22368  else
22369    as_ln_s='cp -pR'
22370  fi
22371else
22372  as_ln_s='cp -pR'
22373fi
22374rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22375rmdir conf$$.dir 2>/dev/null
22376
22377
22378# as_fn_mkdir_p
22379# -------------
22380# Create "$as_dir" as a directory, including parents if necessary.
22381as_fn_mkdir_p ()
22382{
22383
22384  case $as_dir in #(
22385  -*) as_dir=./$as_dir;;
22386  esac
22387  test -d "$as_dir" || eval $as_mkdir_p || {
22388    as_dirs=
22389    while :; do
22390      case $as_dir in #(
22391      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22392      *) as_qdir=$as_dir;;
22393      esac
22394      as_dirs="'$as_qdir' $as_dirs"
22395      as_dir=`$as_dirname -- "$as_dir" ||
22396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22397	 X"$as_dir" : 'X\(//\)[^/]' \| \
22398	 X"$as_dir" : 'X\(//\)$' \| \
22399	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22400$as_echo X"$as_dir" |
22401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22402	    s//\1/
22403	    q
22404	  }
22405	  /^X\(\/\/\)[^/].*/{
22406	    s//\1/
22407	    q
22408	  }
22409	  /^X\(\/\/\)$/{
22410	    s//\1/
22411	    q
22412	  }
22413	  /^X\(\/\).*/{
22414	    s//\1/
22415	    q
22416	  }
22417	  s/.*/./; q'`
22418      test -d "$as_dir" && break
22419    done
22420    test -z "$as_dirs" || eval "mkdir $as_dirs"
22421  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22422
22423
22424} # as_fn_mkdir_p
22425if mkdir -p . 2>/dev/null; then
22426  as_mkdir_p='mkdir -p "$as_dir"'
22427else
22428  test -d ./-p && rmdir ./-p
22429  as_mkdir_p=false
22430fi
22431
22432
22433# as_fn_executable_p FILE
22434# -----------------------
22435# Test if FILE is an executable regular file.
22436as_fn_executable_p ()
22437{
22438  test -f "$1" && test -x "$1"
22439} # as_fn_executable_p
22440as_test_x='test -x'
22441as_executable_p=as_fn_executable_p
22442
22443# Sed expression to map a string onto a valid CPP name.
22444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22445
22446# Sed expression to map a string onto a valid variable name.
22447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22448
22449
22450exec 6>&1
22451## ----------------------------------- ##
22452## Main body of $CONFIG_STATUS script. ##
22453## ----------------------------------- ##
22454_ASEOF
22455test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22456
22457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22458# Save the log message, to keep $0 and so on meaningful, and to
22459# report actual input values of CONFIG_FILES etc. instead of their
22460# values after options handling.
22461ac_log="
22462This file was extended by geomview $as_me 1.9.5, which was
22463generated by GNU Autoconf 2.69.  Invocation command line was
22464
22465  CONFIG_FILES    = $CONFIG_FILES
22466  CONFIG_HEADERS  = $CONFIG_HEADERS
22467  CONFIG_LINKS    = $CONFIG_LINKS
22468  CONFIG_COMMANDS = $CONFIG_COMMANDS
22469  $ $0 $@
22470
22471on `(hostname || uname -n) 2>/dev/null | sed 1q`
22472"
22473
22474_ACEOF
22475
22476case $ac_config_files in *"
22477"*) set x $ac_config_files; shift; ac_config_files=$*;;
22478esac
22479
22480case $ac_config_headers in *"
22481"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22482esac
22483
22484
22485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22486# Files that config.status was made for.
22487config_files="$ac_config_files"
22488config_headers="$ac_config_headers"
22489config_commands="$ac_config_commands"
22490
22491_ACEOF
22492
22493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22494ac_cs_usage="\
22495\`$as_me' instantiates files and other configuration actions
22496from templates according to the current configuration.  Unless the files
22497and actions are specified as TAGs, all are instantiated by default.
22498
22499Usage: $0 [OPTION]... [TAG]...
22500
22501  -h, --help       print this help, then exit
22502  -V, --version    print version number and configuration settings, then exit
22503      --config     print configuration, then exit
22504  -q, --quiet, --silent
22505                   do not print progress messages
22506  -d, --debug      don't remove temporary files
22507      --recheck    update $as_me by reconfiguring in the same conditions
22508      --file=FILE[:TEMPLATE]
22509                   instantiate the configuration file FILE
22510      --header=FILE[:TEMPLATE]
22511                   instantiate the configuration header FILE
22512
22513Configuration files:
22514$config_files
22515
22516Configuration headers:
22517$config_headers
22518
22519Configuration commands:
22520$config_commands
22521
22522Report bugs to <Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>>."
22523
22524_ACEOF
22525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22526ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22527ac_cs_version="\\
22528geomview config.status 1.9.5
22529configured by $0, generated by GNU Autoconf 2.69,
22530  with options \\"\$ac_cs_config\\"
22531
22532Copyright (C) 2012 Free Software Foundation, Inc.
22533This config.status script is free software; the Free Software Foundation
22534gives unlimited permission to copy, distribute and modify it."
22535
22536ac_pwd='$ac_pwd'
22537srcdir='$srcdir'
22538INSTALL='$INSTALL'
22539MKDIR_P='$MKDIR_P'
22540AWK='$AWK'
22541test -n "\$AWK" || AWK=awk
22542_ACEOF
22543
22544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22545# The default lists apply if the user does not specify any file.
22546ac_need_defaults=:
22547while test $# != 0
22548do
22549  case $1 in
22550  --*=?*)
22551    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22552    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22553    ac_shift=:
22554    ;;
22555  --*=)
22556    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22557    ac_optarg=
22558    ac_shift=:
22559    ;;
22560  *)
22561    ac_option=$1
22562    ac_optarg=$2
22563    ac_shift=shift
22564    ;;
22565  esac
22566
22567  case $ac_option in
22568  # Handling of the options.
22569  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22570    ac_cs_recheck=: ;;
22571  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22572    $as_echo "$ac_cs_version"; exit ;;
22573  --config | --confi | --conf | --con | --co | --c )
22574    $as_echo "$ac_cs_config"; exit ;;
22575  --debug | --debu | --deb | --de | --d | -d )
22576    debug=: ;;
22577  --file | --fil | --fi | --f )
22578    $ac_shift
22579    case $ac_optarg in
22580    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22581    '') as_fn_error $? "missing file argument" ;;
22582    esac
22583    as_fn_append CONFIG_FILES " '$ac_optarg'"
22584    ac_need_defaults=false;;
22585  --header | --heade | --head | --hea )
22586    $ac_shift
22587    case $ac_optarg in
22588    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22589    esac
22590    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22591    ac_need_defaults=false;;
22592  --he | --h)
22593    # Conflict between --help and --header
22594    as_fn_error $? "ambiguous option: \`$1'
22595Try \`$0 --help' for more information.";;
22596  --help | --hel | -h )
22597    $as_echo "$ac_cs_usage"; exit ;;
22598  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22599  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22600    ac_cs_silent=: ;;
22601
22602  # This is an error.
22603  -*) as_fn_error $? "unrecognized option: \`$1'
22604Try \`$0 --help' for more information." ;;
22605
22606  *) as_fn_append ac_config_targets " $1"
22607     ac_need_defaults=false ;;
22608
22609  esac
22610  shift
22611done
22612
22613ac_configure_extra_args=
22614
22615if $ac_cs_silent; then
22616  exec 6>/dev/null
22617  ac_configure_extra_args="$ac_configure_extra_args --silent"
22618fi
22619
22620_ACEOF
22621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22622if \$ac_cs_recheck; then
22623  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22624  shift
22625  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22626  CONFIG_SHELL='$SHELL'
22627  export CONFIG_SHELL
22628  exec "\$@"
22629fi
22630
22631_ACEOF
22632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22633exec 5>>config.log
22634{
22635  echo
22636  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22637## Running $as_me. ##
22638_ASBOX
22639  $as_echo "$ac_log"
22640} >&5
22641
22642_ACEOF
22643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22644#
22645# INIT-COMMANDS
22646#
22647AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22648
22649
22650# The HP-UX ksh and POSIX shell print the target directory to stdout
22651# if CDPATH is set.
22652(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22653
22654sed_quote_subst='$sed_quote_subst'
22655double_quote_subst='$double_quote_subst'
22656delay_variable_subst='$delay_variable_subst'
22657macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22658macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22659enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22660enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22661pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22662enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22663SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22664ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22665PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22666host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22667host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22668host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22669build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22670build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22671build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22672SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22673Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22674GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22675EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22676FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22677LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22678NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22679LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22680max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22681ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22682exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22683lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22684lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22685lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22686lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22687lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22688reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22689reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22690OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22691deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22692file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22693file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22694want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22695DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22696sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22697AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22698AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22699archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22700STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22701RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22702old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22703old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22704old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22705lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22706CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22707CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22708compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22709GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22710lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22711lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22712lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22713lt_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"`'
22714nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22715lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22716objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22717MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22718lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22719lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22720lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22721lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22722lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22723need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22724MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22725DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22726NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22727LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22728OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22729OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22730libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22731shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22732extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22733archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22734enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22735export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22736whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22737compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22738old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22739old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22740archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22741archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22742module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22743module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22744with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22745allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22746no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22747hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22748hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22749hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22750hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22751hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22752hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22753hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22754inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22755link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22756always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22757export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22758exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22759include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22760prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22761postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22762file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22763variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22764need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22765need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22766version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22767runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22768shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22769shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22770libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22771library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22772soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22773install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22774postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22775postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22776finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22777finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22778hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22779sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22780sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22781hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22782enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22783enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22784enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22785old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22786striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22787compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22788predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22789postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22790predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22791postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22792compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22793LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22794reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22795reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22796old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22797compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22798GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22799lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22800lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22801lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22802lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22803lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22804archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22805enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22806export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22807whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22808compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22809old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22810old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22811archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22812archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22813module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22814module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22815with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22816allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22817no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22818hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22819hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22820hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22821hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22822hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22823hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22824hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22825inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22826link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22827always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22828export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22829exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22830include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22831prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22832postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22833file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22834hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22835compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22836predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22837postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22838predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22839postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22840compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22841
22842LTCC='$LTCC'
22843LTCFLAGS='$LTCFLAGS'
22844compiler='$compiler_DEFAULT'
22845
22846# A function that is used when there is no print builtin or printf.
22847func_fallback_echo ()
22848{
22849  eval 'cat <<_LTECHO_EOF
22850\$1
22851_LTECHO_EOF'
22852}
22853
22854# Quote evaled strings.
22855for var in SHELL \
22856ECHO \
22857PATH_SEPARATOR \
22858SED \
22859GREP \
22860EGREP \
22861FGREP \
22862LD \
22863NM \
22864LN_S \
22865lt_SP2NL \
22866lt_NL2SP \
22867reload_flag \
22868OBJDUMP \
22869deplibs_check_method \
22870file_magic_cmd \
22871file_magic_glob \
22872want_nocaseglob \
22873DLLTOOL \
22874sharedlib_from_linklib_cmd \
22875AR \
22876AR_FLAGS \
22877archiver_list_spec \
22878STRIP \
22879RANLIB \
22880CC \
22881CFLAGS \
22882compiler \
22883lt_cv_sys_global_symbol_pipe \
22884lt_cv_sys_global_symbol_to_cdecl \
22885lt_cv_sys_global_symbol_to_c_name_address \
22886lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22887nm_file_list_spec \
22888lt_prog_compiler_no_builtin_flag \
22889lt_prog_compiler_pic \
22890lt_prog_compiler_wl \
22891lt_prog_compiler_static \
22892lt_cv_prog_compiler_c_o \
22893need_locks \
22894MANIFEST_TOOL \
22895DSYMUTIL \
22896NMEDIT \
22897LIPO \
22898OTOOL \
22899OTOOL64 \
22900shrext_cmds \
22901export_dynamic_flag_spec \
22902whole_archive_flag_spec \
22903compiler_needs_object \
22904with_gnu_ld \
22905allow_undefined_flag \
22906no_undefined_flag \
22907hardcode_libdir_flag_spec \
22908hardcode_libdir_separator \
22909exclude_expsyms \
22910include_expsyms \
22911file_list_spec \
22912variables_saved_for_relink \
22913libname_spec \
22914library_names_spec \
22915soname_spec \
22916install_override_mode \
22917finish_eval \
22918old_striplib \
22919striplib \
22920compiler_lib_search_dirs \
22921predep_objects \
22922postdep_objects \
22923predeps \
22924postdeps \
22925compiler_lib_search_path \
22926LD_CXX \
22927reload_flag_CXX \
22928compiler_CXX \
22929lt_prog_compiler_no_builtin_flag_CXX \
22930lt_prog_compiler_pic_CXX \
22931lt_prog_compiler_wl_CXX \
22932lt_prog_compiler_static_CXX \
22933lt_cv_prog_compiler_c_o_CXX \
22934export_dynamic_flag_spec_CXX \
22935whole_archive_flag_spec_CXX \
22936compiler_needs_object_CXX \
22937with_gnu_ld_CXX \
22938allow_undefined_flag_CXX \
22939no_undefined_flag_CXX \
22940hardcode_libdir_flag_spec_CXX \
22941hardcode_libdir_separator_CXX \
22942exclude_expsyms_CXX \
22943include_expsyms_CXX \
22944file_list_spec_CXX \
22945compiler_lib_search_dirs_CXX \
22946predep_objects_CXX \
22947postdep_objects_CXX \
22948predeps_CXX \
22949postdeps_CXX \
22950compiler_lib_search_path_CXX; do
22951    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22952    *[\\\\\\\`\\"\\\$]*)
22953      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22954      ;;
22955    *)
22956      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22957      ;;
22958    esac
22959done
22960
22961# Double-quote double-evaled strings.
22962for var in reload_cmds \
22963old_postinstall_cmds \
22964old_postuninstall_cmds \
22965old_archive_cmds \
22966extract_expsyms_cmds \
22967old_archive_from_new_cmds \
22968old_archive_from_expsyms_cmds \
22969archive_cmds \
22970archive_expsym_cmds \
22971module_cmds \
22972module_expsym_cmds \
22973export_symbols_cmds \
22974prelink_cmds \
22975postlink_cmds \
22976postinstall_cmds \
22977postuninstall_cmds \
22978finish_cmds \
22979sys_lib_search_path_spec \
22980sys_lib_dlsearch_path_spec \
22981reload_cmds_CXX \
22982old_archive_cmds_CXX \
22983old_archive_from_new_cmds_CXX \
22984old_archive_from_expsyms_cmds_CXX \
22985archive_cmds_CXX \
22986archive_expsym_cmds_CXX \
22987module_cmds_CXX \
22988module_expsym_cmds_CXX \
22989export_symbols_cmds_CXX \
22990prelink_cmds_CXX \
22991postlink_cmds_CXX; do
22992    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22993    *[\\\\\\\`\\"\\\$]*)
22994      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22995      ;;
22996    *)
22997      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22998      ;;
22999    esac
23000done
23001
23002ac_aux_dir='$ac_aux_dir'
23003xsi_shell='$xsi_shell'
23004lt_shell_append='$lt_shell_append'
23005
23006# See if we are running on zsh, and set the options which allow our
23007# commands through without removal of \ escapes INIT.
23008if test -n "\${ZSH_VERSION+set}" ; then
23009   setopt NO_GLOB_SUBST
23010fi
23011
23012
23013    PACKAGE='$PACKAGE'
23014    VERSION='$VERSION'
23015    TIMESTAMP='$TIMESTAMP'
23016    RM='$RM'
23017    ofile='$ofile'
23018
23019
23020
23021
23022
23023
23024_ACEOF
23025
23026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23027
23028# Handling of arguments.
23029for ac_config_target in $ac_config_targets
23030do
23031  case $ac_config_target in
23032    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23033    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23034    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23035    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23036    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23037    "data/shaders/Makefile") CONFIG_FILES="$CONFIG_FILES data/shaders/Makefile" ;;
23038    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23039    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23040    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23041    "src/lib/aclib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/aclib/Makefile" ;;
23042    "src/lib/camera/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/camera/Makefile" ;;
23043    "src/lib/color/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/color/Makefile" ;;
23044    "src/lib/fexpr/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/fexpr/Makefile" ;;
23045    "src/lib/oogl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/oogl/Makefile" ;;
23046    "src/lib/oogl/lisp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/oogl/lisp/Makefile" ;;
23047    "src/lib/oogl/refcomm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/oogl/refcomm/Makefile" ;;
23048    "src/lib/oogl/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/oogl/util/Makefile" ;;
23049    "src/lib/oogl/wa/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/oogl/wa/Makefile" ;;
23050    "src/lib/geometry/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/Makefile" ;;
23051    "src/lib/geometry/cmodel/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/cmodel/Makefile" ;;
23052    "src/lib/geometry/hpoint3/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/hpoint3/Makefile" ;;
23053    "src/lib/geometry/hpointn/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/hpointn/Makefile" ;;
23054    "src/lib/geometry/point3/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/point3/Makefile" ;;
23055    "src/lib/geometry/transform3/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/transform3/Makefile" ;;
23056    "src/lib/geometry/transformn/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/transformn/Makefile" ;;
23057    "src/lib/geometry/transobj/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/transobj/Makefile" ;;
23058    "src/lib/geometry/ntransobj/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geometry/ntransobj/Makefile" ;;
23059    "src/lib/geomutil/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geomutil/Makefile" ;;
23060    "src/lib/geomutil/bdy/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geomutil/bdy/Makefile" ;;
23061    "src/lib/geomutil/crayplutil/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geomutil/crayplutil/Makefile" ;;
23062    "src/lib/geomutil/dim/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geomutil/dim/Makefile" ;;
23063    "src/lib/geomutil/plutil/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/geomutil/plutil/Makefile" ;;
23064    "src/lib/gprim/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/Makefile" ;;
23065    "src/lib/gprim/bbox/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/bbox/Makefile" ;;
23066    "src/lib/gprim/bezier/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/bezier/Makefile" ;;
23067    "src/lib/gprim/comment/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/comment/Makefile" ;;
23068    "src/lib/gprim/discgrp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/discgrp/Makefile" ;;
23069    "src/lib/gprim/geom/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/geom/Makefile" ;;
23070    "src/lib/gprim/inst/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/inst/Makefile" ;;
23071    "src/lib/gprim/lincoln/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/lincoln/Makefile" ;;
23072    "src/lib/gprim/list/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/list/Makefile" ;;
23073    "src/lib/gprim/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/mesh/Makefile" ;;
23074    "src/lib/gprim/polylist/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/polylist/Makefile" ;;
23075    "src/lib/gprim/ndmesh/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/ndmesh/Makefile" ;;
23076    "src/lib/gprim/npolylist/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/npolylist/Makefile" ;;
23077    "src/lib/gprim/quad/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/quad/Makefile" ;;
23078    "src/lib/gprim/skel/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/skel/Makefile" ;;
23079    "src/lib/gprim/sphere/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/sphere/Makefile" ;;
23080    "src/lib/gprim/stub/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/stub/Makefile" ;;
23081    "src/lib/gprim/tlist/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/tlist/Makefile" ;;
23082    "src/lib/gprim/vect/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gprim/vect/Makefile" ;;
23083    "src/lib/mg/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/Makefile" ;;
23084    "src/lib/mg/buf/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/buf/Makefile" ;;
23085    "src/lib/mg/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/common/Makefile" ;;
23086    "src/lib/mg/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/opengl/Makefile" ;;
23087    "src/lib/mg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/x11/Makefile" ;;
23088    "src/lib/mg/ps/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/ps/Makefile" ;;
23089    "src/lib/mg/rib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mg/rib/Makefile" ;;
23090    "src/lib/mib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/mib/Makefile" ;;
23091    "src/lib/pointlist/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pointlist/Makefile" ;;
23092    "src/lib/shade/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/shade/Makefile" ;;
23093    "src/lib/window/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/window/Makefile" ;;
23094    "src/lib/forms/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/forms/Makefile" ;;
23095    "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
23096    "src/bin/geomview/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomview/Makefile" ;;
23097    "src/bin/geomview/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomview/common/Makefile" ;;
23098    "src/bin/geomview/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomview/x11/Makefile" ;;
23099    "src/bin/geomview/x11/bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomview/x11/bitmaps/Makefile" ;;
23100    "src/bin/geomview/x11/interface/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomview/x11/interface/Makefile" ;;
23101    "src/bin/animate/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/animate/Makefile" ;;
23102    "src/bin/animate/interface/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/animate/interface/Makefile" ;;
23103    "src/bin/clipboard/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/clipboard/Makefile" ;;
23104    "src/bin/gvclock/gvclock") CONFIG_FILES="$CONFIG_FILES src/bin/gvclock/gvclock" ;;
23105    "src/bin/gvclock/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/gvclock/Makefile" ;;
23106    "src/bin/geomutil/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/Makefile" ;;
23107    "src/bin/geomutil/bdy/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/bdy/Makefile" ;;
23108    "src/bin/geomutil/clip/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/clip/Makefile" ;;
23109    "src/bin/geomutil/hvectext/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/hvectext/Makefile" ;;
23110    "src/bin/geomutil/hvectext/hvectext") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/hvectext/hvectext" ;;
23111    "src/bin/geomutil/maple2oogl/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/maple2oogl/Makefile" ;;
23112    "src/bin/geomutil/math2oogl/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/math2oogl/Makefile" ;;
23113    "src/bin/geomutil/oogl2rib/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/oogl2rib/Makefile" ;;
23114    "src/bin/geomutil/oogl2vrml/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/oogl2vrml/Makefile" ;;
23115    "src/bin/geomutil/plutil/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/plutil/Makefile" ;;
23116    "src/bin/geomutil/ucd/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/ucd/Makefile" ;;
23117    "src/bin/geomutil/vrml2oogl/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/vrml2oogl/Makefile" ;;
23118    "src/bin/geomutil/vrml2oogl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/geomutil/vrml2oogl/lib/Makefile" ;;
23119    "src/bin/nose/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/nose/Makefile" ;;
23120    "src/bin/togeomview/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/togeomview/Makefile" ;;
23121
23122  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23123  esac
23124done
23125
23126
23127# If the user did not use the arguments to specify the items to instantiate,
23128# then the envvar interface is used.  Set only those that are not.
23129# We use the long form for the default assignment because of an extremely
23130# bizarre bug on SunOS 4.1.3.
23131if $ac_need_defaults; then
23132  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23133  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23134  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23135fi
23136
23137# Have a temporary directory for convenience.  Make it in the build tree
23138# simply because there is no reason against having it here, and in addition,
23139# creating and moving files from /tmp can sometimes cause problems.
23140# Hook for its removal unless debugging.
23141# Note that there is a small window in which the directory will not be cleaned:
23142# after its creation but before its name has been assigned to `$tmp'.
23143$debug ||
23144{
23145  tmp= ac_tmp=
23146  trap 'exit_status=$?
23147  : "${ac_tmp:=$tmp}"
23148  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23149' 0
23150  trap 'as_fn_exit 1' 1 2 13 15
23151}
23152# Create a (secure) tmp directory for tmp files.
23153
23154{
23155  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23156  test -d "$tmp"
23157}  ||
23158{
23159  tmp=./conf$$-$RANDOM
23160  (umask 077 && mkdir "$tmp")
23161} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23162ac_tmp=$tmp
23163
23164# Set up the scripts for CONFIG_FILES section.
23165# No need to generate them if there are no CONFIG_FILES.
23166# This happens for instance with `./config.status config.h'.
23167if test -n "$CONFIG_FILES"; then
23168
23169
23170ac_cr=`echo X | tr X '\015'`
23171# On cygwin, bash can eat \r inside `` if the user requested igncr.
23172# But we know of no other shell where ac_cr would be empty at this
23173# point, so we can use a bashism as a fallback.
23174if test "x$ac_cr" = x; then
23175  eval ac_cr=\$\'\\r\'
23176fi
23177ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23178if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23179  ac_cs_awk_cr='\\r'
23180else
23181  ac_cs_awk_cr=$ac_cr
23182fi
23183
23184echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23185_ACEOF
23186
23187
23188{
23189  echo "cat >conf$$subs.awk <<_ACEOF" &&
23190  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23191  echo "_ACEOF"
23192} >conf$$subs.sh ||
23193  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23194ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23195ac_delim='%!_!# '
23196for ac_last_try in false false false false false :; do
23197  . ./conf$$subs.sh ||
23198    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23199
23200  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23201  if test $ac_delim_n = $ac_delim_num; then
23202    break
23203  elif $ac_last_try; then
23204    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23205  else
23206    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23207  fi
23208done
23209rm -f conf$$subs.sh
23210
23211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23212cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23213_ACEOF
23214sed -n '
23215h
23216s/^/S["/; s/!.*/"]=/
23217p
23218g
23219s/^[^!]*!//
23220:repl
23221t repl
23222s/'"$ac_delim"'$//
23223t delim
23224:nl
23225h
23226s/\(.\{148\}\)..*/\1/
23227t more1
23228s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23229p
23230n
23231b repl
23232:more1
23233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23234p
23235g
23236s/.\{148\}//
23237t nl
23238:delim
23239h
23240s/\(.\{148\}\)..*/\1/
23241t more2
23242s/["\\]/\\&/g; s/^/"/; s/$/"/
23243p
23244b
23245:more2
23246s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23247p
23248g
23249s/.\{148\}//
23250t delim
23251' <conf$$subs.awk | sed '
23252/^[^""]/{
23253  N
23254  s/\n//
23255}
23256' >>$CONFIG_STATUS || ac_write_fail=1
23257rm -f conf$$subs.awk
23258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23259_ACAWK
23260cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23261  for (key in S) S_is_set[key] = 1
23262  FS = ""
23263
23264}
23265{
23266  line = $ 0
23267  nfields = split(line, field, "@")
23268  substed = 0
23269  len = length(field[1])
23270  for (i = 2; i < nfields; i++) {
23271    key = field[i]
23272    keylen = length(key)
23273    if (S_is_set[key]) {
23274      value = S[key]
23275      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23276      len += length(value) + length(field[++i])
23277      substed = 1
23278    } else
23279      len += 1 + keylen
23280  }
23281
23282  print line
23283}
23284
23285_ACAWK
23286_ACEOF
23287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23288if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23289  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23290else
23291  cat
23292fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23293  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23294_ACEOF
23295
23296# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23297# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23298# trailing colons and then remove the whole line if VPATH becomes empty
23299# (actually we leave an empty line to preserve line numbers).
23300if test "x$srcdir" = x.; then
23301  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23302h
23303s///
23304s/^/:/
23305s/[	 ]*$/:/
23306s/:\$(srcdir):/:/g
23307s/:\${srcdir}:/:/g
23308s/:@srcdir@:/:/g
23309s/^:*//
23310s/:*$//
23311x
23312s/\(=[	 ]*\).*/\1/
23313G
23314s/\n//
23315s/^[^=]*=[	 ]*$//
23316}'
23317fi
23318
23319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23320fi # test -n "$CONFIG_FILES"
23321
23322# Set up the scripts for CONFIG_HEADERS section.
23323# No need to generate them if there are no CONFIG_HEADERS.
23324# This happens for instance with `./config.status Makefile'.
23325if test -n "$CONFIG_HEADERS"; then
23326cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23327BEGIN {
23328_ACEOF
23329
23330# Transform confdefs.h into an awk script `defines.awk', embedded as
23331# here-document in config.status, that substitutes the proper values into
23332# config.h.in to produce config.h.
23333
23334# Create a delimiter string that does not exist in confdefs.h, to ease
23335# handling of long lines.
23336ac_delim='%!_!# '
23337for ac_last_try in false false :; do
23338  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23339  if test -z "$ac_tt"; then
23340    break
23341  elif $ac_last_try; then
23342    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23343  else
23344    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23345  fi
23346done
23347
23348# For the awk script, D is an array of macro values keyed by name,
23349# likewise P contains macro parameters if any.  Preserve backslash
23350# newline sequences.
23351
23352ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23353sed -n '
23354s/.\{148\}/&'"$ac_delim"'/g
23355t rset
23356:rset
23357s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23358t def
23359d
23360:def
23361s/\\$//
23362t bsnl
23363s/["\\]/\\&/g
23364s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23365D["\1"]=" \3"/p
23366s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23367d
23368:bsnl
23369s/["\\]/\\&/g
23370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23371D["\1"]=" \3\\\\\\n"\\/p
23372t cont
23373s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23374t cont
23375d
23376:cont
23377n
23378s/.\{148\}/&'"$ac_delim"'/g
23379t clear
23380:clear
23381s/\\$//
23382t bsnlc
23383s/["\\]/\\&/g; s/^/"/; s/$/"/p
23384d
23385:bsnlc
23386s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23387b cont
23388' <confdefs.h | sed '
23389s/'"$ac_delim"'/"\\\
23390"/g' >>$CONFIG_STATUS || ac_write_fail=1
23391
23392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23393  for (key in D) D_is_set[key] = 1
23394  FS = ""
23395}
23396/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23397  line = \$ 0
23398  split(line, arg, " ")
23399  if (arg[1] == "#") {
23400    defundef = arg[2]
23401    mac1 = arg[3]
23402  } else {
23403    defundef = substr(arg[1], 2)
23404    mac1 = arg[2]
23405  }
23406  split(mac1, mac2, "(") #)
23407  macro = mac2[1]
23408  prefix = substr(line, 1, index(line, defundef) - 1)
23409  if (D_is_set[macro]) {
23410    # Preserve the white space surrounding the "#".
23411    print prefix "define", macro P[macro] D[macro]
23412    next
23413  } else {
23414    # Replace #undef with comments.  This is necessary, for example,
23415    # in the case of _POSIX_SOURCE, which is predefined and required
23416    # on some systems where configure will not decide to define it.
23417    if (defundef == "undef") {
23418      print "/*", prefix defundef, macro, "*/"
23419      next
23420    }
23421  }
23422}
23423{ print }
23424_ACAWK
23425_ACEOF
23426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23427  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23428fi # test -n "$CONFIG_HEADERS"
23429
23430
23431eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23432shift
23433for ac_tag
23434do
23435  case $ac_tag in
23436  :[FHLC]) ac_mode=$ac_tag; continue;;
23437  esac
23438  case $ac_mode$ac_tag in
23439  :[FHL]*:*);;
23440  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23441  :[FH]-) ac_tag=-:-;;
23442  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23443  esac
23444  ac_save_IFS=$IFS
23445  IFS=:
23446  set x $ac_tag
23447  IFS=$ac_save_IFS
23448  shift
23449  ac_file=$1
23450  shift
23451
23452  case $ac_mode in
23453  :L) ac_source=$1;;
23454  :[FH])
23455    ac_file_inputs=
23456    for ac_f
23457    do
23458      case $ac_f in
23459      -) ac_f="$ac_tmp/stdin";;
23460      *) # Look for the file first in the build tree, then in the source tree
23461	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23462	 # because $ac_f cannot contain `:'.
23463	 test -f "$ac_f" ||
23464	   case $ac_f in
23465	   [\\/$]*) false;;
23466	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23467	   esac ||
23468	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23469      esac
23470      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23471      as_fn_append ac_file_inputs " '$ac_f'"
23472    done
23473
23474    # Let's still pretend it is `configure' which instantiates (i.e., don't
23475    # use $as_me), people would be surprised to read:
23476    #    /* config.h.  Generated by config.status.  */
23477    configure_input='Generated from '`
23478	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23479	`' by configure.'
23480    if test x"$ac_file" != x-; then
23481      configure_input="$ac_file.  $configure_input"
23482      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23483$as_echo "$as_me: creating $ac_file" >&6;}
23484    fi
23485    # Neutralize special characters interpreted by sed in replacement strings.
23486    case $configure_input in #(
23487    *\&* | *\|* | *\\* )
23488       ac_sed_conf_input=`$as_echo "$configure_input" |
23489       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23490    *) ac_sed_conf_input=$configure_input;;
23491    esac
23492
23493    case $ac_tag in
23494    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23495      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23496    esac
23497    ;;
23498  esac
23499
23500  ac_dir=`$as_dirname -- "$ac_file" ||
23501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23502	 X"$ac_file" : 'X\(//\)[^/]' \| \
23503	 X"$ac_file" : 'X\(//\)$' \| \
23504	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23505$as_echo X"$ac_file" |
23506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23507	    s//\1/
23508	    q
23509	  }
23510	  /^X\(\/\/\)[^/].*/{
23511	    s//\1/
23512	    q
23513	  }
23514	  /^X\(\/\/\)$/{
23515	    s//\1/
23516	    q
23517	  }
23518	  /^X\(\/\).*/{
23519	    s//\1/
23520	    q
23521	  }
23522	  s/.*/./; q'`
23523  as_dir="$ac_dir"; as_fn_mkdir_p
23524  ac_builddir=.
23525
23526case "$ac_dir" in
23527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23528*)
23529  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23530  # A ".." for each directory in $ac_dir_suffix.
23531  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23532  case $ac_top_builddir_sub in
23533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23535  esac ;;
23536esac
23537ac_abs_top_builddir=$ac_pwd
23538ac_abs_builddir=$ac_pwd$ac_dir_suffix
23539# for backward compatibility:
23540ac_top_builddir=$ac_top_build_prefix
23541
23542case $srcdir in
23543  .)  # We are building in place.
23544    ac_srcdir=.
23545    ac_top_srcdir=$ac_top_builddir_sub
23546    ac_abs_top_srcdir=$ac_pwd ;;
23547  [\\/]* | ?:[\\/]* )  # Absolute name.
23548    ac_srcdir=$srcdir$ac_dir_suffix;
23549    ac_top_srcdir=$srcdir
23550    ac_abs_top_srcdir=$srcdir ;;
23551  *) # Relative name.
23552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23553    ac_top_srcdir=$ac_top_build_prefix$srcdir
23554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23555esac
23556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23557
23558
23559  case $ac_mode in
23560  :F)
23561  #
23562  # CONFIG_FILE
23563  #
23564
23565  case $INSTALL in
23566  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23567  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23568  esac
23569  ac_MKDIR_P=$MKDIR_P
23570  case $MKDIR_P in
23571  [\\/$]* | ?:[\\/]* ) ;;
23572  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23573  esac
23574_ACEOF
23575
23576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23577# If the template does not know about datarootdir, expand it.
23578# FIXME: This hack should be removed a few years after 2.60.
23579ac_datarootdir_hack=; ac_datarootdir_seen=
23580ac_sed_dataroot='
23581/datarootdir/ {
23582  p
23583  q
23584}
23585/@datadir@/p
23586/@docdir@/p
23587/@infodir@/p
23588/@localedir@/p
23589/@mandir@/p'
23590case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23591*datarootdir*) ac_datarootdir_seen=yes;;
23592*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23593  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23594$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23595_ACEOF
23596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23597  ac_datarootdir_hack='
23598  s&@datadir@&$datadir&g
23599  s&@docdir@&$docdir&g
23600  s&@infodir@&$infodir&g
23601  s&@localedir@&$localedir&g
23602  s&@mandir@&$mandir&g
23603  s&\\\${datarootdir}&$datarootdir&g' ;;
23604esac
23605_ACEOF
23606
23607# Neutralize VPATH when `$srcdir' = `.'.
23608# Shell code in configure.ac might set extrasub.
23609# FIXME: do we really want to maintain this feature?
23610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23611ac_sed_extra="$ac_vpsub
23612$extrasub
23613_ACEOF
23614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23615:t
23616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23617s|@configure_input@|$ac_sed_conf_input|;t t
23618s&@top_builddir@&$ac_top_builddir_sub&;t t
23619s&@top_build_prefix@&$ac_top_build_prefix&;t t
23620s&@srcdir@&$ac_srcdir&;t t
23621s&@abs_srcdir@&$ac_abs_srcdir&;t t
23622s&@top_srcdir@&$ac_top_srcdir&;t t
23623s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23624s&@builddir@&$ac_builddir&;t t
23625s&@abs_builddir@&$ac_abs_builddir&;t t
23626s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23627s&@INSTALL@&$ac_INSTALL&;t t
23628s&@MKDIR_P@&$ac_MKDIR_P&;t t
23629$ac_datarootdir_hack
23630"
23631eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23632  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23633
23634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23635  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23636  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23637      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23638  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23639which seems to be undefined.  Please make sure it is defined" >&5
23640$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23641which seems to be undefined.  Please make sure it is defined" >&2;}
23642
23643  rm -f "$ac_tmp/stdin"
23644  case $ac_file in
23645  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23646  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23647  esac \
23648  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23649 ;;
23650  :H)
23651  #
23652  # CONFIG_HEADER
23653  #
23654  if test x"$ac_file" != x-; then
23655    {
23656      $as_echo "/* $configure_input  */" \
23657      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23658    } >"$ac_tmp/config.h" \
23659      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23660    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23661      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23662$as_echo "$as_me: $ac_file is unchanged" >&6;}
23663    else
23664      rm -f "$ac_file"
23665      mv "$ac_tmp/config.h" "$ac_file" \
23666	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23667    fi
23668  else
23669    $as_echo "/* $configure_input  */" \
23670      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23671      || as_fn_error $? "could not create -" "$LINENO" 5
23672  fi
23673# Compute "$ac_file"'s index in $config_headers.
23674_am_arg="$ac_file"
23675_am_stamp_count=1
23676for _am_header in $config_headers :; do
23677  case $_am_header in
23678    $_am_arg | $_am_arg:* )
23679      break ;;
23680    * )
23681      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23682  esac
23683done
23684echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23685$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23686	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23687	 X"$_am_arg" : 'X\(//\)$' \| \
23688	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23689$as_echo X"$_am_arg" |
23690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23691	    s//\1/
23692	    q
23693	  }
23694	  /^X\(\/\/\)[^/].*/{
23695	    s//\1/
23696	    q
23697	  }
23698	  /^X\(\/\/\)$/{
23699	    s//\1/
23700	    q
23701	  }
23702	  /^X\(\/\).*/{
23703	    s//\1/
23704	    q
23705	  }
23706	  s/.*/./; q'`/stamp-h$_am_stamp_count
23707 ;;
23708
23709  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23710$as_echo "$as_me: executing $ac_file commands" >&6;}
23711 ;;
23712  esac
23713
23714
23715  case $ac_file$ac_mode in
23716    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23717  # Older Autoconf quotes --file arguments for eval, but not when files
23718  # are listed without --file.  Let's play safe and only enable the eval
23719  # if we detect the quoting.
23720  case $CONFIG_FILES in
23721  *\'*) eval set x "$CONFIG_FILES" ;;
23722  *)   set x $CONFIG_FILES ;;
23723  esac
23724  shift
23725  for mf
23726  do
23727    # Strip MF so we end up with the name of the file.
23728    mf=`echo "$mf" | sed -e 's/:.*$//'`
23729    # Check whether this is an Automake generated Makefile or not.
23730    # We used to match only the files named 'Makefile.in', but
23731    # some people rename them; so instead we look at the file content.
23732    # Grep'ing the first line is not enough: some people post-process
23733    # each Makefile.in and add a new line on top of each file to say so.
23734    # Grep'ing the whole file is not good either: AIX grep has a line
23735    # limit of 2048, but all sed's we know have understand at least 4000.
23736    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23737      dirpart=`$as_dirname -- "$mf" ||
23738$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23739	 X"$mf" : 'X\(//\)[^/]' \| \
23740	 X"$mf" : 'X\(//\)$' \| \
23741	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23742$as_echo X"$mf" |
23743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23744	    s//\1/
23745	    q
23746	  }
23747	  /^X\(\/\/\)[^/].*/{
23748	    s//\1/
23749	    q
23750	  }
23751	  /^X\(\/\/\)$/{
23752	    s//\1/
23753	    q
23754	  }
23755	  /^X\(\/\).*/{
23756	    s//\1/
23757	    q
23758	  }
23759	  s/.*/./; q'`
23760    else
23761      continue
23762    fi
23763    # Extract the definition of DEPDIR, am__include, and am__quote
23764    # from the Makefile without running 'make'.
23765    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23766    test -z "$DEPDIR" && continue
23767    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23768    test -z "$am__include" && continue
23769    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23770    # Find all dependency output files, they are included files with
23771    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23772    # simplest approach to changing $(DEPDIR) to its actual value in the
23773    # expansion.
23774    for file in `sed -n "
23775      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23776	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23777      # Make sure the directory exists.
23778      test -f "$dirpart/$file" && continue
23779      fdir=`$as_dirname -- "$file" ||
23780$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23781	 X"$file" : 'X\(//\)[^/]' \| \
23782	 X"$file" : 'X\(//\)$' \| \
23783	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23784$as_echo X"$file" |
23785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23786	    s//\1/
23787	    q
23788	  }
23789	  /^X\(\/\/\)[^/].*/{
23790	    s//\1/
23791	    q
23792	  }
23793	  /^X\(\/\/\)$/{
23794	    s//\1/
23795	    q
23796	  }
23797	  /^X\(\/\).*/{
23798	    s//\1/
23799	    q
23800	  }
23801	  s/.*/./; q'`
23802      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23803      # echo "creating $dirpart/$file"
23804      echo '# dummy' > "$dirpart/$file"
23805    done
23806  done
23807}
23808 ;;
23809    "libtool":C)
23810
23811    # See if we are running on zsh, and set the options which allow our
23812    # commands through without removal of \ escapes.
23813    if test -n "${ZSH_VERSION+set}" ; then
23814      setopt NO_GLOB_SUBST
23815    fi
23816
23817    cfgfile="${ofile}T"
23818    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23819    $RM "$cfgfile"
23820
23821    cat <<_LT_EOF >> "$cfgfile"
23822#! $SHELL
23823
23824# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23825# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23826# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23827# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23828#
23829#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23830#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23831#                 Foundation, Inc.
23832#   Written by Gordon Matzigkeit, 1996
23833#
23834#   This file is part of GNU Libtool.
23835#
23836# GNU Libtool is free software; you can redistribute it and/or
23837# modify it under the terms of the GNU General Public License as
23838# published by the Free Software Foundation; either version 2 of
23839# the License, or (at your option) any later version.
23840#
23841# As a special exception to the GNU General Public License,
23842# if you distribute this file as part of a program or library that
23843# is built using GNU Libtool, you may include this file under the
23844# same distribution terms that you use for the rest of that program.
23845#
23846# GNU Libtool is distributed in the hope that it will be useful,
23847# but WITHOUT ANY WARRANTY; without even the implied warranty of
23848# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23849# GNU General Public License for more details.
23850#
23851# You should have received a copy of the GNU General Public License
23852# along with GNU Libtool; see the file COPYING.  If not, a copy
23853# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23854# obtained by writing to the Free Software Foundation, Inc.,
23855# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23856
23857
23858# The names of the tagged configurations supported by this script.
23859available_tags="CXX "
23860
23861# ### BEGIN LIBTOOL CONFIG
23862
23863# Which release of libtool.m4 was used?
23864macro_version=$macro_version
23865macro_revision=$macro_revision
23866
23867# Whether or not to build shared libraries.
23868build_libtool_libs=$enable_shared
23869
23870# Whether or not to build static libraries.
23871build_old_libs=$enable_static
23872
23873# What type of objects to build.
23874pic_mode=$pic_mode
23875
23876# Whether or not to optimize for fast installation.
23877fast_install=$enable_fast_install
23878
23879# Shell to use when invoking shell scripts.
23880SHELL=$lt_SHELL
23881
23882# An echo program that protects backslashes.
23883ECHO=$lt_ECHO
23884
23885# The PATH separator for the build system.
23886PATH_SEPARATOR=$lt_PATH_SEPARATOR
23887
23888# The host system.
23889host_alias=$host_alias
23890host=$host
23891host_os=$host_os
23892
23893# The build system.
23894build_alias=$build_alias
23895build=$build
23896build_os=$build_os
23897
23898# A sed program that does not truncate output.
23899SED=$lt_SED
23900
23901# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23902Xsed="\$SED -e 1s/^X//"
23903
23904# A grep program that handles long lines.
23905GREP=$lt_GREP
23906
23907# An ERE matcher.
23908EGREP=$lt_EGREP
23909
23910# A literal string matcher.
23911FGREP=$lt_FGREP
23912
23913# A BSD- or MS-compatible name lister.
23914NM=$lt_NM
23915
23916# Whether we need soft or hard links.
23917LN_S=$lt_LN_S
23918
23919# What is the maximum length of a command?
23920max_cmd_len=$max_cmd_len
23921
23922# Object file suffix (normally "o").
23923objext=$ac_objext
23924
23925# Executable file suffix (normally "").
23926exeext=$exeext
23927
23928# whether the shell understands "unset".
23929lt_unset=$lt_unset
23930
23931# turn spaces into newlines.
23932SP2NL=$lt_lt_SP2NL
23933
23934# turn newlines into spaces.
23935NL2SP=$lt_lt_NL2SP
23936
23937# convert \$build file names to \$host format.
23938to_host_file_cmd=$lt_cv_to_host_file_cmd
23939
23940# convert \$build files to toolchain format.
23941to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23942
23943# An object symbol dumper.
23944OBJDUMP=$lt_OBJDUMP
23945
23946# Method to check whether dependent libraries are shared objects.
23947deplibs_check_method=$lt_deplibs_check_method
23948
23949# Command to use when deplibs_check_method = "file_magic".
23950file_magic_cmd=$lt_file_magic_cmd
23951
23952# How to find potential files when deplibs_check_method = "file_magic".
23953file_magic_glob=$lt_file_magic_glob
23954
23955# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23956want_nocaseglob=$lt_want_nocaseglob
23957
23958# DLL creation program.
23959DLLTOOL=$lt_DLLTOOL
23960
23961# Command to associate shared and link libraries.
23962sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23963
23964# The archiver.
23965AR=$lt_AR
23966
23967# Flags to create an archive.
23968AR_FLAGS=$lt_AR_FLAGS
23969
23970# How to feed a file listing to the archiver.
23971archiver_list_spec=$lt_archiver_list_spec
23972
23973# A symbol stripping program.
23974STRIP=$lt_STRIP
23975
23976# Commands used to install an old-style archive.
23977RANLIB=$lt_RANLIB
23978old_postinstall_cmds=$lt_old_postinstall_cmds
23979old_postuninstall_cmds=$lt_old_postuninstall_cmds
23980
23981# Whether to use a lock for old archive extraction.
23982lock_old_archive_extraction=$lock_old_archive_extraction
23983
23984# A C compiler.
23985LTCC=$lt_CC
23986
23987# LTCC compiler flags.
23988LTCFLAGS=$lt_CFLAGS
23989
23990# Take the output of nm and produce a listing of raw symbols and C names.
23991global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23992
23993# Transform the output of nm in a proper C declaration.
23994global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23995
23996# Transform the output of nm in a C name address pair.
23997global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23998
23999# Transform the output of nm in a C name address pair when lib prefix is needed.
24000global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24001
24002# Specify filename containing input files for \$NM.
24003nm_file_list_spec=$lt_nm_file_list_spec
24004
24005# The root where to search for dependent libraries,and in which our libraries should be installed.
24006lt_sysroot=$lt_sysroot
24007
24008# The name of the directory that contains temporary libtool files.
24009objdir=$objdir
24010
24011# Used to examine libraries when file_magic_cmd begins with "file".
24012MAGIC_CMD=$MAGIC_CMD
24013
24014# Must we lock files when doing compilation?
24015need_locks=$lt_need_locks
24016
24017# Manifest tool.
24018MANIFEST_TOOL=$lt_MANIFEST_TOOL
24019
24020# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24021DSYMUTIL=$lt_DSYMUTIL
24022
24023# Tool to change global to local symbols on Mac OS X.
24024NMEDIT=$lt_NMEDIT
24025
24026# Tool to manipulate fat objects and archives on Mac OS X.
24027LIPO=$lt_LIPO
24028
24029# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24030OTOOL=$lt_OTOOL
24031
24032# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24033OTOOL64=$lt_OTOOL64
24034
24035# Old archive suffix (normally "a").
24036libext=$libext
24037
24038# Shared library suffix (normally ".so").
24039shrext_cmds=$lt_shrext_cmds
24040
24041# The commands to extract the exported symbol list from a shared archive.
24042extract_expsyms_cmds=$lt_extract_expsyms_cmds
24043
24044# Variables whose values should be saved in libtool wrapper scripts and
24045# restored at link time.
24046variables_saved_for_relink=$lt_variables_saved_for_relink
24047
24048# Do we need the "lib" prefix for modules?
24049need_lib_prefix=$need_lib_prefix
24050
24051# Do we need a version for libraries?
24052need_version=$need_version
24053
24054# Library versioning type.
24055version_type=$version_type
24056
24057# Shared library runtime path variable.
24058runpath_var=$runpath_var
24059
24060# Shared library path variable.
24061shlibpath_var=$shlibpath_var
24062
24063# Is shlibpath searched before the hard-coded library search path?
24064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24065
24066# Format of library name prefix.
24067libname_spec=$lt_libname_spec
24068
24069# List of archive names.  First name is the real one, the rest are links.
24070# The last name is the one that the linker finds with -lNAME
24071library_names_spec=$lt_library_names_spec
24072
24073# The coded name of the library, if different from the real name.
24074soname_spec=$lt_soname_spec
24075
24076# Permission mode override for installation of shared libraries.
24077install_override_mode=$lt_install_override_mode
24078
24079# Command to use after installation of a shared archive.
24080postinstall_cmds=$lt_postinstall_cmds
24081
24082# Command to use after uninstallation of a shared archive.
24083postuninstall_cmds=$lt_postuninstall_cmds
24084
24085# Commands used to finish a libtool library installation in a directory.
24086finish_cmds=$lt_finish_cmds
24087
24088# As "finish_cmds", except a single script fragment to be evaled but
24089# not shown.
24090finish_eval=$lt_finish_eval
24091
24092# Whether we should hardcode library paths into libraries.
24093hardcode_into_libs=$hardcode_into_libs
24094
24095# Compile-time system search path for libraries.
24096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24097
24098# Run-time system search path for libraries.
24099sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24100
24101# Whether dlopen is supported.
24102dlopen_support=$enable_dlopen
24103
24104# Whether dlopen of programs is supported.
24105dlopen_self=$enable_dlopen_self
24106
24107# Whether dlopen of statically linked programs is supported.
24108dlopen_self_static=$enable_dlopen_self_static
24109
24110# Commands to strip libraries.
24111old_striplib=$lt_old_striplib
24112striplib=$lt_striplib
24113
24114
24115# The linker used to build libraries.
24116LD=$lt_LD
24117
24118# How to create reloadable object files.
24119reload_flag=$lt_reload_flag
24120reload_cmds=$lt_reload_cmds
24121
24122# Commands used to build an old-style archive.
24123old_archive_cmds=$lt_old_archive_cmds
24124
24125# A language specific compiler.
24126CC=$lt_compiler
24127
24128# Is the compiler the GNU compiler?
24129with_gcc=$GCC
24130
24131# Compiler flag to turn off builtin functions.
24132no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24133
24134# Additional compiler flags for building library objects.
24135pic_flag=$lt_lt_prog_compiler_pic
24136
24137# How to pass a linker flag through the compiler.
24138wl=$lt_lt_prog_compiler_wl
24139
24140# Compiler flag to prevent dynamic linking.
24141link_static_flag=$lt_lt_prog_compiler_static
24142
24143# Does compiler simultaneously support -c and -o options?
24144compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24145
24146# Whether or not to add -lc for building shared libraries.
24147build_libtool_need_lc=$archive_cmds_need_lc
24148
24149# Whether or not to disallow shared libs when runtime libs are static.
24150allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24151
24152# Compiler flag to allow reflexive dlopens.
24153export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24154
24155# Compiler flag to generate shared objects directly from archives.
24156whole_archive_flag_spec=$lt_whole_archive_flag_spec
24157
24158# Whether the compiler copes with passing no objects directly.
24159compiler_needs_object=$lt_compiler_needs_object
24160
24161# Create an old-style archive from a shared archive.
24162old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24163
24164# Create a temporary old-style archive to link instead of a shared archive.
24165old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24166
24167# Commands used to build a shared archive.
24168archive_cmds=$lt_archive_cmds
24169archive_expsym_cmds=$lt_archive_expsym_cmds
24170
24171# Commands used to build a loadable module if different from building
24172# a shared archive.
24173module_cmds=$lt_module_cmds
24174module_expsym_cmds=$lt_module_expsym_cmds
24175
24176# Whether we are building with GNU ld or not.
24177with_gnu_ld=$lt_with_gnu_ld
24178
24179# Flag that allows shared libraries with undefined symbols to be built.
24180allow_undefined_flag=$lt_allow_undefined_flag
24181
24182# Flag that enforces no undefined symbols.
24183no_undefined_flag=$lt_no_undefined_flag
24184
24185# Flag to hardcode \$libdir into a binary during linking.
24186# This must work even if \$libdir does not exist
24187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24188
24189# Whether we need a single "-rpath" flag with a separated argument.
24190hardcode_libdir_separator=$lt_hardcode_libdir_separator
24191
24192# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24193# DIR into the resulting binary.
24194hardcode_direct=$hardcode_direct
24195
24196# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24197# DIR into the resulting binary and the resulting library dependency is
24198# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24199# library is relocated.
24200hardcode_direct_absolute=$hardcode_direct_absolute
24201
24202# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24203# into the resulting binary.
24204hardcode_minus_L=$hardcode_minus_L
24205
24206# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24207# into the resulting binary.
24208hardcode_shlibpath_var=$hardcode_shlibpath_var
24209
24210# Set to "yes" if building a shared library automatically hardcodes DIR
24211# into the library and all subsequent libraries and executables linked
24212# against it.
24213hardcode_automatic=$hardcode_automatic
24214
24215# Set to yes if linker adds runtime paths of dependent libraries
24216# to runtime path list.
24217inherit_rpath=$inherit_rpath
24218
24219# Whether libtool must link a program against all its dependency libraries.
24220link_all_deplibs=$link_all_deplibs
24221
24222# Set to "yes" if exported symbols are required.
24223always_export_symbols=$always_export_symbols
24224
24225# The commands to list exported symbols.
24226export_symbols_cmds=$lt_export_symbols_cmds
24227
24228# Symbols that should not be listed in the preloaded symbols.
24229exclude_expsyms=$lt_exclude_expsyms
24230
24231# Symbols that must always be exported.
24232include_expsyms=$lt_include_expsyms
24233
24234# Commands necessary for linking programs (against libraries) with templates.
24235prelink_cmds=$lt_prelink_cmds
24236
24237# Commands necessary for finishing linking programs.
24238postlink_cmds=$lt_postlink_cmds
24239
24240# Specify filename containing input files.
24241file_list_spec=$lt_file_list_spec
24242
24243# How to hardcode a shared library path into an executable.
24244hardcode_action=$hardcode_action
24245
24246# The directories searched by this compiler when creating a shared library.
24247compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24248
24249# Dependencies to place before and after the objects being linked to
24250# create a shared library.
24251predep_objects=$lt_predep_objects
24252postdep_objects=$lt_postdep_objects
24253predeps=$lt_predeps
24254postdeps=$lt_postdeps
24255
24256# The library search path used internally by the compiler when linking
24257# a shared library.
24258compiler_lib_search_path=$lt_compiler_lib_search_path
24259
24260# ### END LIBTOOL CONFIG
24261
24262_LT_EOF
24263
24264  case $host_os in
24265  aix3*)
24266    cat <<\_LT_EOF >> "$cfgfile"
24267# AIX sometimes has problems with the GCC collect2 program.  For some
24268# reason, if we set the COLLECT_NAMES environment variable, the problems
24269# vanish in a puff of smoke.
24270if test "X${COLLECT_NAMES+set}" != Xset; then
24271  COLLECT_NAMES=
24272  export COLLECT_NAMES
24273fi
24274_LT_EOF
24275    ;;
24276  esac
24277
24278
24279ltmain="$ac_aux_dir/ltmain.sh"
24280
24281
24282  # We use sed instead of cat because bash on DJGPP gets confused if
24283  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24284  # text mode, it properly converts lines to CR/LF.  This bash problem
24285  # is reportedly fixed, but why not run on old versions too?
24286  sed '$q' "$ltmain" >> "$cfgfile" \
24287     || (rm -f "$cfgfile"; exit 1)
24288
24289  if test x"$xsi_shell" = xyes; then
24290  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24291func_dirname ()\
24292{\
24293\    case ${1} in\
24294\      */*) func_dirname_result="${1%/*}${2}" ;;\
24295\      *  ) func_dirname_result="${3}" ;;\
24296\    esac\
24297} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24298  && mv -f "$cfgfile.tmp" "$cfgfile" \
24299    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24300test 0 -eq $? || _lt_function_replace_fail=:
24301
24302
24303  sed -e '/^func_basename ()$/,/^} # func_basename /c\
24304func_basename ()\
24305{\
24306\    func_basename_result="${1##*/}"\
24307} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24308  && mv -f "$cfgfile.tmp" "$cfgfile" \
24309    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24310test 0 -eq $? || _lt_function_replace_fail=:
24311
24312
24313  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24314func_dirname_and_basename ()\
24315{\
24316\    case ${1} in\
24317\      */*) func_dirname_result="${1%/*}${2}" ;;\
24318\      *  ) func_dirname_result="${3}" ;;\
24319\    esac\
24320\    func_basename_result="${1##*/}"\
24321} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24322  && mv -f "$cfgfile.tmp" "$cfgfile" \
24323    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24324test 0 -eq $? || _lt_function_replace_fail=:
24325
24326
24327  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24328func_stripname ()\
24329{\
24330\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24331\    # positional parameters, so assign one to ordinary parameter first.\
24332\    func_stripname_result=${3}\
24333\    func_stripname_result=${func_stripname_result#"${1}"}\
24334\    func_stripname_result=${func_stripname_result%"${2}"}\
24335} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24336  && mv -f "$cfgfile.tmp" "$cfgfile" \
24337    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24338test 0 -eq $? || _lt_function_replace_fail=:
24339
24340
24341  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24342func_split_long_opt ()\
24343{\
24344\    func_split_long_opt_name=${1%%=*}\
24345\    func_split_long_opt_arg=${1#*=}\
24346} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24347  && mv -f "$cfgfile.tmp" "$cfgfile" \
24348    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24349test 0 -eq $? || _lt_function_replace_fail=:
24350
24351
24352  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24353func_split_short_opt ()\
24354{\
24355\    func_split_short_opt_arg=${1#??}\
24356\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24357} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24358  && mv -f "$cfgfile.tmp" "$cfgfile" \
24359    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24360test 0 -eq $? || _lt_function_replace_fail=:
24361
24362
24363  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24364func_lo2o ()\
24365{\
24366\    case ${1} in\
24367\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24368\      *)    func_lo2o_result=${1} ;;\
24369\    esac\
24370} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24371  && mv -f "$cfgfile.tmp" "$cfgfile" \
24372    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24373test 0 -eq $? || _lt_function_replace_fail=:
24374
24375
24376  sed -e '/^func_xform ()$/,/^} # func_xform /c\
24377func_xform ()\
24378{\
24379    func_xform_result=${1%.*}.lo\
24380} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24381  && mv -f "$cfgfile.tmp" "$cfgfile" \
24382    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24383test 0 -eq $? || _lt_function_replace_fail=:
24384
24385
24386  sed -e '/^func_arith ()$/,/^} # func_arith /c\
24387func_arith ()\
24388{\
24389    func_arith_result=$(( $* ))\
24390} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24391  && mv -f "$cfgfile.tmp" "$cfgfile" \
24392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24393test 0 -eq $? || _lt_function_replace_fail=:
24394
24395
24396  sed -e '/^func_len ()$/,/^} # func_len /c\
24397func_len ()\
24398{\
24399    func_len_result=${#1}\
24400} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24401  && mv -f "$cfgfile.tmp" "$cfgfile" \
24402    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24403test 0 -eq $? || _lt_function_replace_fail=:
24404
24405fi
24406
24407if test x"$lt_shell_append" = xyes; then
24408  sed -e '/^func_append ()$/,/^} # func_append /c\
24409func_append ()\
24410{\
24411    eval "${1}+=\\${2}"\
24412} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24413  && mv -f "$cfgfile.tmp" "$cfgfile" \
24414    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24415test 0 -eq $? || _lt_function_replace_fail=:
24416
24417
24418  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24419func_append_quoted ()\
24420{\
24421\    func_quote_for_eval "${2}"\
24422\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24423} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24424  && mv -f "$cfgfile.tmp" "$cfgfile" \
24425    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24426test 0 -eq $? || _lt_function_replace_fail=:
24427
24428
24429  # Save a `func_append' function call where possible by direct use of '+='
24430  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24431    && mv -f "$cfgfile.tmp" "$cfgfile" \
24432      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24433  test 0 -eq $? || _lt_function_replace_fail=:
24434else
24435  # Save a `func_append' function call even when '+=' is not available
24436  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24437    && mv -f "$cfgfile.tmp" "$cfgfile" \
24438      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24439  test 0 -eq $? || _lt_function_replace_fail=:
24440fi
24441
24442if test x"$_lt_function_replace_fail" = x":"; then
24443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24444$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24445fi
24446
24447
24448   mv -f "$cfgfile" "$ofile" ||
24449    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24450  chmod +x "$ofile"
24451
24452
24453    cat <<_LT_EOF >> "$ofile"
24454
24455# ### BEGIN LIBTOOL TAG CONFIG: CXX
24456
24457# The linker used to build libraries.
24458LD=$lt_LD_CXX
24459
24460# How to create reloadable object files.
24461reload_flag=$lt_reload_flag_CXX
24462reload_cmds=$lt_reload_cmds_CXX
24463
24464# Commands used to build an old-style archive.
24465old_archive_cmds=$lt_old_archive_cmds_CXX
24466
24467# A language specific compiler.
24468CC=$lt_compiler_CXX
24469
24470# Is the compiler the GNU compiler?
24471with_gcc=$GCC_CXX
24472
24473# Compiler flag to turn off builtin functions.
24474no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24475
24476# Additional compiler flags for building library objects.
24477pic_flag=$lt_lt_prog_compiler_pic_CXX
24478
24479# How to pass a linker flag through the compiler.
24480wl=$lt_lt_prog_compiler_wl_CXX
24481
24482# Compiler flag to prevent dynamic linking.
24483link_static_flag=$lt_lt_prog_compiler_static_CXX
24484
24485# Does compiler simultaneously support -c and -o options?
24486compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24487
24488# Whether or not to add -lc for building shared libraries.
24489build_libtool_need_lc=$archive_cmds_need_lc_CXX
24490
24491# Whether or not to disallow shared libs when runtime libs are static.
24492allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24493
24494# Compiler flag to allow reflexive dlopens.
24495export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24496
24497# Compiler flag to generate shared objects directly from archives.
24498whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24499
24500# Whether the compiler copes with passing no objects directly.
24501compiler_needs_object=$lt_compiler_needs_object_CXX
24502
24503# Create an old-style archive from a shared archive.
24504old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24505
24506# Create a temporary old-style archive to link instead of a shared archive.
24507old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24508
24509# Commands used to build a shared archive.
24510archive_cmds=$lt_archive_cmds_CXX
24511archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24512
24513# Commands used to build a loadable module if different from building
24514# a shared archive.
24515module_cmds=$lt_module_cmds_CXX
24516module_expsym_cmds=$lt_module_expsym_cmds_CXX
24517
24518# Whether we are building with GNU ld or not.
24519with_gnu_ld=$lt_with_gnu_ld_CXX
24520
24521# Flag that allows shared libraries with undefined symbols to be built.
24522allow_undefined_flag=$lt_allow_undefined_flag_CXX
24523
24524# Flag that enforces no undefined symbols.
24525no_undefined_flag=$lt_no_undefined_flag_CXX
24526
24527# Flag to hardcode \$libdir into a binary during linking.
24528# This must work even if \$libdir does not exist
24529hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24530
24531# Whether we need a single "-rpath" flag with a separated argument.
24532hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24533
24534# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24535# DIR into the resulting binary.
24536hardcode_direct=$hardcode_direct_CXX
24537
24538# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24539# DIR into the resulting binary and the resulting library dependency is
24540# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24541# library is relocated.
24542hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24543
24544# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24545# into the resulting binary.
24546hardcode_minus_L=$hardcode_minus_L_CXX
24547
24548# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24549# into the resulting binary.
24550hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24551
24552# Set to "yes" if building a shared library automatically hardcodes DIR
24553# into the library and all subsequent libraries and executables linked
24554# against it.
24555hardcode_automatic=$hardcode_automatic_CXX
24556
24557# Set to yes if linker adds runtime paths of dependent libraries
24558# to runtime path list.
24559inherit_rpath=$inherit_rpath_CXX
24560
24561# Whether libtool must link a program against all its dependency libraries.
24562link_all_deplibs=$link_all_deplibs_CXX
24563
24564# Set to "yes" if exported symbols are required.
24565always_export_symbols=$always_export_symbols_CXX
24566
24567# The commands to list exported symbols.
24568export_symbols_cmds=$lt_export_symbols_cmds_CXX
24569
24570# Symbols that should not be listed in the preloaded symbols.
24571exclude_expsyms=$lt_exclude_expsyms_CXX
24572
24573# Symbols that must always be exported.
24574include_expsyms=$lt_include_expsyms_CXX
24575
24576# Commands necessary for linking programs (against libraries) with templates.
24577prelink_cmds=$lt_prelink_cmds_CXX
24578
24579# Commands necessary for finishing linking programs.
24580postlink_cmds=$lt_postlink_cmds_CXX
24581
24582# Specify filename containing input files.
24583file_list_spec=$lt_file_list_spec_CXX
24584
24585# How to hardcode a shared library path into an executable.
24586hardcode_action=$hardcode_action_CXX
24587
24588# The directories searched by this compiler when creating a shared library.
24589compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24590
24591# Dependencies to place before and after the objects being linked to
24592# create a shared library.
24593predep_objects=$lt_predep_objects_CXX
24594postdep_objects=$lt_postdep_objects_CXX
24595predeps=$lt_predeps_CXX
24596postdeps=$lt_postdeps_CXX
24597
24598# The library search path used internally by the compiler when linking
24599# a shared library.
24600compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24601
24602# ### END LIBTOOL TAG CONFIG: CXX
24603_LT_EOF
24604
24605 ;;
24606
24607  esac
24608done # for ac_tag
24609
24610
24611as_fn_exit 0
24612_ACEOF
24613ac_clean_files=$ac_clean_files_save
24614
24615test $ac_write_fail = 0 ||
24616  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24617
24618
24619# configure is writing to config.log, and then calls config.status.
24620# config.status does its own redirection, appending to config.log.
24621# Unfortunately, on DOS this fails, as config.log is still kept open
24622# by configure, so config.status won't be able to write to it; its
24623# output is simply discarded.  So we exec the FD to /dev/null,
24624# effectively closing config.log, so it can be properly (re)opened and
24625# appended to by config.status.  When coming back to configure, we
24626# need to make the FD available again.
24627if test "$no_create" != yes; then
24628  ac_cs_success=:
24629  ac_config_status_args=
24630  test "$silent" = yes &&
24631    ac_config_status_args="$ac_config_status_args --quiet"
24632  exec 5>/dev/null
24633  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24634  exec 5>>config.log
24635  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24636  # would make configure fail if this is the last instruction.
24637  $ac_cs_success || as_fn_exit 1
24638fi
24639if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24640  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24641$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24642fi
24643
24644
24645