1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GraphLayout 1.0.
4#
5# Report bugs to <dfs@research.att.com>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: dfs@research.att.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='GraphLayout'
592PACKAGE_TARNAME='graphlayout'
593PACKAGE_VERSION='1.0'
594PACKAGE_STRING='GraphLayout 1.0'
595PACKAGE_BUGREPORT='dfs@research.att.com'
596PACKAGE_URL=''
597
598ac_unique_file="glayout.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_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LIBGVC_LIBS
640LIBGVC_CFLAGS
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646MANIFEST_TOOL
647RANLIB
648ac_ct_AR
649AR
650LN_S
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657LIBTOOL
658OS_WIN32_FALSE
659OS_WIN32_TRUE
660SRC_DEBUG
661GGOBI_FLAGS
662GGOBI_LIBS
663GGOBI_CFLAGS
664PKG_CONFIG_LIBDIR
665PKG_CONFIG_PATH
666PKG_CONFIG
667OBJDUMP
668DLLTOOL
669AS
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678EGREP
679GREP
680CPP
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684am__nodep
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__quote
689am__include
690DEPDIR
691OBJEXT
692EXEEXT
693ac_ct_CC
694CPPFLAGS
695LDFLAGS
696CFLAGS
697CC
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_dependency_tracking
763enable_static
764enable_debug
765with_ggobi
766enable_shared
767with_pic
768enable_fast_install
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772'
773      ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781CPP
782PKG_CONFIG
783PKG_CONFIG_PATH
784PKG_CONFIG_LIBDIR
785GGOBI_CFLAGS
786GGOBI_LIBS
787LIBGVC_CFLAGS
788LIBGVC_LIBS'
789
790
791# Initialize some variables set by options.
792ac_init_help=
793ac_init_version=false
794ac_unrecognized_opts=
795ac_unrecognized_sep=
796# The variables have the same names as the options, with
797# dashes changed to underlines.
798cache_file=/dev/null
799exec_prefix=NONE
800no_create=
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
809verbose=
810x_includes=NONE
811x_libraries=NONE
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
818# (The list follows the same order as the GNU Coding Standards.)
819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
838
839ac_prev=
840ac_dashdash=
841for ac_option
842do
843  # If the previous option needs an argument, assign it.
844  if test -n "$ac_prev"; then
845    eval $ac_prev=\$ac_option
846    ac_prev=
847    continue
848  fi
849
850  case $ac_option in
851  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852  *=)   ac_optarg= ;;
853  *)    ac_optarg=yes ;;
854  esac
855
856  # Accept the important Cygnus configure options, so we can diagnose typos.
857
858  case $ac_dashdash$ac_option in
859  --)
860    ac_dashdash=yes ;;
861
862  -bindir | --bindir | --bindi | --bind | --bin | --bi)
863    ac_prev=bindir ;;
864  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865    bindir=$ac_optarg ;;
866
867  -build | --build | --buil | --bui | --bu)
868    ac_prev=build_alias ;;
869  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870    build_alias=$ac_optarg ;;
871
872  -cache-file | --cache-file | --cache-fil | --cache-fi \
873  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874    ac_prev=cache_file ;;
875  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877    cache_file=$ac_optarg ;;
878
879  --config-cache | -C)
880    cache_file=config.cache ;;
881
882  -datadir | --datadir | --datadi | --datad)
883    ac_prev=datadir ;;
884  -datadir=* | --datadir=* | --datadi=* | --datad=*)
885    datadir=$ac_optarg ;;
886
887  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888  | --dataroo | --dataro | --datar)
889    ac_prev=datarootdir ;;
890  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892    datarootdir=$ac_optarg ;;
893
894  -disable-* | --disable-*)
895    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896    # Reject names that are not valid shell variable names.
897    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898      as_fn_error $? "invalid feature name: $ac_useropt"
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=no ;;
909
910  -docdir | --docdir | --docdi | --doc | --do)
911    ac_prev=docdir ;;
912  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913    docdir=$ac_optarg ;;
914
915  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916    ac_prev=dvidir ;;
917  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918    dvidir=$ac_optarg ;;
919
920  -enable-* | --enable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: $ac_useropt"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=\$ac_optarg ;;
935
936  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938  | --exec | --exe | --ex)
939    ac_prev=exec_prefix ;;
940  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942  | --exec=* | --exe=* | --ex=*)
943    exec_prefix=$ac_optarg ;;
944
945  -gas | --gas | --ga | --g)
946    # Obsolete; use --with-gas.
947    with_gas=yes ;;
948
949  -help | --help | --hel | --he | -h)
950    ac_init_help=long ;;
951  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952    ac_init_help=recursive ;;
953  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954    ac_init_help=short ;;
955
956  -host | --host | --hos | --ho)
957    ac_prev=host_alias ;;
958  -host=* | --host=* | --hos=* | --ho=*)
959    host_alias=$ac_optarg ;;
960
961  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962    ac_prev=htmldir ;;
963  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964  | --ht=*)
965    htmldir=$ac_optarg ;;
966
967  -includedir | --includedir | --includedi | --included | --include \
968  | --includ | --inclu | --incl | --inc)
969    ac_prev=includedir ;;
970  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971  | --includ=* | --inclu=* | --incl=* | --inc=*)
972    includedir=$ac_optarg ;;
973
974  -infodir | --infodir | --infodi | --infod | --info | --inf)
975    ac_prev=infodir ;;
976  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977    infodir=$ac_optarg ;;
978
979  -libdir | --libdir | --libdi | --libd)
980    ac_prev=libdir ;;
981  -libdir=* | --libdir=* | --libdi=* | --libd=*)
982    libdir=$ac_optarg ;;
983
984  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985  | --libexe | --libex | --libe)
986    ac_prev=libexecdir ;;
987  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988  | --libexe=* | --libex=* | --libe=*)
989    libexecdir=$ac_optarg ;;
990
991  -localedir | --localedir | --localedi | --localed | --locale)
992    ac_prev=localedir ;;
993  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994    localedir=$ac_optarg ;;
995
996  -localstatedir | --localstatedir | --localstatedi | --localstated \
997  | --localstate | --localstat | --localsta | --localst | --locals)
998    ac_prev=localstatedir ;;
999  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001    localstatedir=$ac_optarg ;;
1002
1003  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004    ac_prev=mandir ;;
1005  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006    mandir=$ac_optarg ;;
1007
1008  -nfp | --nfp | --nf)
1009    # Obsolete; use --without-fp.
1010    with_fp=no ;;
1011
1012  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013  | --no-cr | --no-c | -n)
1014    no_create=yes ;;
1015
1016  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018    no_recursion=yes ;;
1019
1020  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022  | --oldin | --oldi | --old | --ol | --o)
1023    ac_prev=oldincludedir ;;
1024  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027    oldincludedir=$ac_optarg ;;
1028
1029  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030    ac_prev=prefix ;;
1031  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032    prefix=$ac_optarg ;;
1033
1034  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035  | --program-pre | --program-pr | --program-p)
1036    ac_prev=program_prefix ;;
1037  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039    program_prefix=$ac_optarg ;;
1040
1041  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042  | --program-suf | --program-su | --program-s)
1043    ac_prev=program_suffix ;;
1044  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046    program_suffix=$ac_optarg ;;
1047
1048  -program-transform-name | --program-transform-name \
1049  | --program-transform-nam | --program-transform-na \
1050  | --program-transform-n | --program-transform- \
1051  | --program-transform | --program-transfor \
1052  | --program-transfo | --program-transf \
1053  | --program-trans | --program-tran \
1054  | --progr-tra | --program-tr | --program-t)
1055    ac_prev=program_transform_name ;;
1056  -program-transform-name=* | --program-transform-name=* \
1057  | --program-transform-nam=* | --program-transform-na=* \
1058  | --program-transform-n=* | --program-transform-=* \
1059  | --program-transform=* | --program-transfor=* \
1060  | --program-transfo=* | --program-transf=* \
1061  | --program-trans=* | --program-tran=* \
1062  | --progr-tra=* | --program-tr=* | --program-t=*)
1063    program_transform_name=$ac_optarg ;;
1064
1065  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066    ac_prev=pdfdir ;;
1067  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068    pdfdir=$ac_optarg ;;
1069
1070  -psdir | --psdir | --psdi | --psd | --ps)
1071    ac_prev=psdir ;;
1072  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073    psdir=$ac_optarg ;;
1074
1075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076  | -silent | --silent | --silen | --sile | --sil)
1077    silent=yes ;;
1078
1079  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080    ac_prev=sbindir ;;
1081  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082  | --sbi=* | --sb=*)
1083    sbindir=$ac_optarg ;;
1084
1085  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087  | --sharedst | --shareds | --shared | --share | --shar \
1088  | --sha | --sh)
1089    ac_prev=sharedstatedir ;;
1090  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093  | --sha=* | --sh=*)
1094    sharedstatedir=$ac_optarg ;;
1095
1096  -site | --site | --sit)
1097    ac_prev=site ;;
1098  -site=* | --site=* | --sit=*)
1099    site=$ac_optarg ;;
1100
1101  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102    ac_prev=srcdir ;;
1103  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104    srcdir=$ac_optarg ;;
1105
1106  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107  | --syscon | --sysco | --sysc | --sys | --sy)
1108    ac_prev=sysconfdir ;;
1109  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111    sysconfdir=$ac_optarg ;;
1112
1113  -target | --target | --targe | --targ | --tar | --ta | --t)
1114    ac_prev=target_alias ;;
1115  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116    target_alias=$ac_optarg ;;
1117
1118  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119    verbose=yes ;;
1120
1121  -version | --version | --versio | --versi | --vers | -V)
1122    ac_init_version=: ;;
1123
1124  -with-* | --with-*)
1125    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126    # Reject names that are not valid shell variable names.
1127    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128      as_fn_error $? "invalid package name: $ac_useropt"
1129    ac_useropt_orig=$ac_useropt
1130    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131    case $ac_user_opts in
1132      *"
1133"with_$ac_useropt"
1134"*) ;;
1135      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136	 ac_unrecognized_sep=', ';;
1137    esac
1138    eval with_$ac_useropt=\$ac_optarg ;;
1139
1140  -without-* | --without-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: $ac_useropt"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=no ;;
1155
1156  --x)
1157    # Obsolete; use --with-x.
1158    with_x=yes ;;
1159
1160  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161  | --x-incl | --x-inc | --x-in | --x-i)
1162    ac_prev=x_includes ;;
1163  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165    x_includes=$ac_optarg ;;
1166
1167  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169    ac_prev=x_libraries ;;
1170  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172    x_libraries=$ac_optarg ;;
1173
1174  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175Try \`$0 --help' for more information"
1176    ;;
1177
1178  *=*)
1179    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180    # Reject names that are not valid shell variable names.
1181    case $ac_envvar in #(
1182      '' | [0-9]* | *[!_$as_cr_alnum]* )
1183      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184    esac
1185    eval $ac_envvar=\$ac_optarg
1186    export $ac_envvar ;;
1187
1188  *)
1189    # FIXME: should be removed in autoconf 3.0.
1190    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194    ;;
1195
1196  esac
1197done
1198
1199if test -n "$ac_prev"; then
1200  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201  as_fn_error $? "missing argument to $ac_option"
1202fi
1203
1204if test -n "$ac_unrecognized_opts"; then
1205  case $enable_option_checking in
1206    no) ;;
1207    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209  esac
1210fi
1211
1212# Check all directory arguments for consistency.
1213for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214		datadir sysconfdir sharedstatedir localstatedir includedir \
1215		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216		libdir localedir mandir
1217do
1218  eval ac_val=\$$ac_var
1219  # Remove trailing slashes.
1220  case $ac_val in
1221    */ )
1222      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223      eval $ac_var=\$ac_val;;
1224  esac
1225  # Be sure to have absolute directory names.
1226  case $ac_val in
1227    [\\/$]* | ?:[\\/]* )  continue;;
1228    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229  esac
1230  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231done
1232
1233# There might be people who depend on the old broken behavior: `$host'
1234# used to hold the argument of --host etc.
1235# FIXME: To remove some day.
1236build=$build_alias
1237host=$host_alias
1238target=$target_alias
1239
1240# FIXME: To remove some day.
1241if test "x$host_alias" != x; then
1242  if test "x$build_alias" = x; then
1243    cross_compiling=maybe
1244  elif test "x$build_alias" != "x$host_alias"; then
1245    cross_compiling=yes
1246  fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258  as_fn_error $? "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260  as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265  ac_srcdir_defaulted=yes
1266  # Try the directory containing this script, then the parent directory.
1267  ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269	 X"$as_myself" : 'X\(//\)[^/]' \| \
1270	 X"$as_myself" : 'X\(//\)$' \| \
1271	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)[^/].*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\).*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  s/.*/./; q'`
1290  srcdir=$ac_confdir
1291  if test ! -r "$srcdir/$ac_unique_file"; then
1292    srcdir=..
1293  fi
1294else
1295  ac_srcdir_defaulted=no
1296fi
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304	pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307  srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_env_${ac_var}_value=\$${ac_var}
1318  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326  # Omit some internal or obsolete options to make the list less imposing.
1327  # This message is too long to be a string in the A/UX 3.1 sh.
1328  cat <<_ACEOF
1329\`configure' configures GraphLayout 1.0 to adapt to many kinds of systems.
1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339  -h, --help              display this help and exit
1340      --help=short        display options specific to this package
1341      --help=recursive    display the short help of all the included packages
1342  -V, --version           display version information and exit
1343  -q, --quiet, --silent   do not print \`checking ...' messages
1344      --cache-file=FILE   cache test results in FILE [disabled]
1345  -C, --config-cache      alias for \`--cache-file=config.cache'
1346  -n, --no-create         do not create output files
1347      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349Installation directories:
1350  --prefix=PREFIX         install architecture-independent files in PREFIX
1351                          [$ac_default_prefix]
1352  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                          [PREFIX]
1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
1363  --bindir=DIR            user executables [EPREFIX/bin]
1364  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1365  --libexecdir=DIR        program executables [EPREFIX/libexec]
1366  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1367  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1368  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1369  --libdir=DIR            object code libraries [EPREFIX/lib]
1370  --includedir=DIR        C header files [PREFIX/include]
1371  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374  --infodir=DIR           info documentation [DATAROOTDIR/info]
1375  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376  --mandir=DIR            man documentation [DATAROOTDIR/man]
1377  --docdir=DIR            documentation root [DATAROOTDIR/doc/graphlayout]
1378  --htmldir=DIR           html documentation [DOCDIR]
1379  --dvidir=DIR            dvi documentation [DOCDIR]
1380  --pdfdir=DIR            pdf documentation [DOCDIR]
1381  --psdir=DIR             ps documentation [DOCDIR]
1382_ACEOF
1383
1384  cat <<\_ACEOF
1385
1386Program names:
1387  --program-prefix=PREFIX            prepend PREFIX to installed program names
1388  --program-suffix=SUFFIX            append SUFFIX to installed program names
1389  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391System types:
1392  --build=BUILD     configure for building on BUILD [guessed]
1393  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398  case $ac_init_help in
1399     short | recursive ) echo "Configuration of GraphLayout 1.0:";;
1400   esac
1401  cat <<\_ACEOF
1402
1403Optional Features:
1404  --disable-option-checking  ignore unrecognized --enable/--with options
1405  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407  --disable-dependency-tracking  speeds up one-time build
1408  --enable-dependency-tracking   do not reject slow dependency extractors
1409  --enable-static[=PKGS]  build static libraries [default=no]
1410--enable-debug          Compile with debugging symbols
1411  --enable-shared[=PKGS]  build shared libraries [default=yes]
1412  --enable-fast-install[=PKGS]
1413                          optimize for fast installation [default=yes]
1414  --disable-libtool-lock  avoid locking (might break parallel builds)
1415
1416Optional Packages:
1417  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419--with-ggobi          Compile plugin against the GGobi in a specified directory
1420  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1421                          both]
1422  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1423  --with-sysroot=DIR Search for dependent libraries within DIR
1424                        (or the compiler's sysroot if not specified).
1425
1426Some influential environment variables:
1427  CC          C compiler command
1428  CFLAGS      C compiler flags
1429  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1430              nonstandard directory <lib dir>
1431  LIBS        libraries to pass to the linker, e.g. -l<library>
1432  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433              you have headers in a nonstandard directory <include dir>
1434  CPP         C preprocessor
1435  PKG_CONFIG  path to pkg-config utility
1436  PKG_CONFIG_PATH
1437              directories to add to pkg-config's search path
1438  PKG_CONFIG_LIBDIR
1439              path overriding pkg-config's built-in search path
1440  GGOBI_CFLAGS
1441              C compiler flags for GGOBI, overriding pkg-config
1442  GGOBI_LIBS  linker flags for GGOBI, overriding pkg-config
1443  LIBGVC_CFLAGS
1444              C compiler flags for LIBGVC, overriding pkg-config
1445  LIBGVC_LIBS linker flags for LIBGVC, overriding pkg-config
1446
1447Use these variables to override the choices made by `configure' or to help
1448it to find libraries and programs with nonstandard names/locations.
1449
1450Report bugs to <dfs@research.att.com>.
1451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456  # If there are subdirs, report their specific --help.
1457  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458    test -d "$ac_dir" ||
1459      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460      continue
1461    ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467  # A ".." for each directory in $ac_dir_suffix.
1468  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469  case $ac_top_builddir_sub in
1470  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472  esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480  .)  # We are building in place.
1481    ac_srcdir=.
1482    ac_top_srcdir=$ac_top_builddir_sub
1483    ac_abs_top_srcdir=$ac_pwd ;;
1484  [\\/]* | ?:[\\/]* )  # Absolute name.
1485    ac_srcdir=$srcdir$ac_dir_suffix;
1486    ac_top_srcdir=$srcdir
1487    ac_abs_top_srcdir=$srcdir ;;
1488  *) # Relative name.
1489    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490    ac_top_srcdir=$ac_top_build_prefix$srcdir
1491    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495    cd "$ac_dir" || { ac_status=$?; continue; }
1496    # Check for guested configure.
1497    if test -f "$ac_srcdir/configure.gnu"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500    elif test -f "$ac_srcdir/configure"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure" --help=recursive
1503    else
1504      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505    fi || ac_status=$?
1506    cd "$ac_pwd" || { ac_status=$?; break; }
1507  done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512  cat <<\_ACEOF
1513GraphLayout configure 1.0
1514generated by GNU Autoconf 2.69
1515
1516Copyright (C) 2012 Free Software Foundation, Inc.
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520  exit
1521fi
1522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533  rm -f conftest.$ac_objext
1534  if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537  *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541  (eval "$ac_compile") 2>conftest.err
1542  ac_status=$?
1543  if test -s conftest.err; then
1544    grep -v '^ *+' conftest.err >conftest.er1
1545    cat conftest.er1 >&5
1546    mv -f conftest.er1 conftest.err
1547  fi
1548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549  test $ac_status = 0; } && {
1550	 test -z "$ac_c_werror_flag" ||
1551	 test ! -s conftest.err
1552       } && test -s conftest.$ac_objext; then :
1553  ac_retval=0
1554else
1555  $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558	ac_retval=1
1559fi
1560  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561  as_fn_set_status $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
1565# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1566# -------------------------------------------
1567# Tests whether TYPE exists after having included INCLUDES, setting cache
1568# variable VAR accordingly.
1569ac_fn_c_check_type ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573$as_echo_n "checking for $2... " >&6; }
1574if eval \${$3+:} false; then :
1575  $as_echo_n "(cached) " >&6
1576else
1577  eval "$3=no"
1578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579/* end confdefs.h.  */
1580$4
1581int
1582main ()
1583{
1584if (sizeof ($2))
1585	 return 0;
1586  ;
1587  return 0;
1588}
1589_ACEOF
1590if ac_fn_c_try_compile "$LINENO"; then :
1591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h.  */
1593$4
1594int
1595main ()
1596{
1597if (sizeof (($2)))
1598	    return 0;
1599  ;
1600  return 0;
1601}
1602_ACEOF
1603if ac_fn_c_try_compile "$LINENO"; then :
1604
1605else
1606  eval "$3=yes"
1607fi
1608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609fi
1610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611fi
1612eval ac_res=\$$3
1613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614$as_echo "$ac_res" >&6; }
1615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
1617} # ac_fn_c_check_type
1618
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } > conftest.i && {
1641	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       }; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649    ac_retval=1
1650fi
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674  { { case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_try") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; }; }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: program exited with status $ac_status" >&5
1687       $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690       ac_retval=$ac_status
1691fi
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_run
1697
1698# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699# -------------------------------------------------------
1700# Tests whether HEADER exists and can be compiled using the include files in
1701# INCLUDES, setting the cache variable VAR accordingly.
1702ac_fn_c_check_header_compile ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706$as_echo_n "checking for $2... " >&6; }
1707if eval \${$3+:} false; then :
1708  $as_echo_n "(cached) " >&6
1709else
1710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711/* end confdefs.h.  */
1712$4
1713#include <$2>
1714_ACEOF
1715if ac_fn_c_try_compile "$LINENO"; then :
1716  eval "$3=yes"
1717else
1718  eval "$3=no"
1719fi
1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721fi
1722eval ac_res=\$$3
1723	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724$as_echo "$ac_res" >&6; }
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727} # ac_fn_c_check_header_compile
1728
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  rm -f conftest.$ac_objext conftest$ac_exeext
1736  if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_link") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && {
1752	 test -z "$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       } && test -s conftest$ac_exeext && {
1755	 test "$cross_compiling" = yes ||
1756	 test -x conftest$ac_exeext
1757       }; then :
1758  ac_retval=0
1759else
1760  $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763	ac_retval=1
1764fi
1765  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767  # interfere with the next link command; also delete a directory that is
1768  # left behind by Apple's compiler.  We do this before executing the actions.
1769  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771  as_fn_set_status $ac_retval
1772
1773} # ac_fn_c_try_link
1774
1775# ac_fn_c_check_func LINENO FUNC VAR
1776# ----------------------------------
1777# Tests whether FUNC exists, setting the cache variable VAR accordingly
1778ac_fn_c_check_func ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if eval \${$3+:} false; then :
1784  $as_echo_n "(cached) " >&6
1785else
1786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1790#define $2 innocuous_$2
1791
1792/* System header to define __stub macros and hopefully few prototypes,
1793    which can conflict with char $2 (); below.
1794    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795    <limits.h> exists even on freestanding compilers.  */
1796
1797#ifdef __STDC__
1798# include <limits.h>
1799#else
1800# include <assert.h>
1801#endif
1802
1803#undef $2
1804
1805/* Override any GCC internal prototype to avoid an error.
1806   Use char because int might match the return type of a GCC
1807   builtin and then its argument prototype would still apply.  */
1808#ifdef __cplusplus
1809extern "C"
1810#endif
1811char $2 ();
1812/* The GNU C library defines this for functions which it implements
1813    to always fail with ENOSYS.  Some functions are actually named
1814    something starting with __ and the normal name is an alias.  */
1815#if defined __stub_$2 || defined __stub___$2
1816choke me
1817#endif
1818
1819int
1820main ()
1821{
1822return $2 ();
1823  ;
1824  return 0;
1825}
1826_ACEOF
1827if ac_fn_c_try_link "$LINENO"; then :
1828  eval "$3=yes"
1829else
1830  eval "$3=no"
1831fi
1832rm -f core conftest.err conftest.$ac_objext \
1833    conftest$ac_exeext conftest.$ac_ext
1834fi
1835eval ac_res=\$$3
1836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840} # ac_fn_c_check_func
1841cat >config.log <<_ACEOF
1842This file contains any messages produced by compilers while
1843running configure, to aid debugging if configure makes a mistake.
1844
1845It was created by GraphLayout $as_me 1.0, which was
1846generated by GNU Autoconf 2.69.  Invocation command line was
1847
1848  $ $0 $@
1849
1850_ACEOF
1851exec 5>>config.log
1852{
1853cat <<_ASUNAME
1854## --------- ##
1855## Platform. ##
1856## --------- ##
1857
1858hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1859uname -m = `(uname -m) 2>/dev/null || echo unknown`
1860uname -r = `(uname -r) 2>/dev/null || echo unknown`
1861uname -s = `(uname -s) 2>/dev/null || echo unknown`
1862uname -v = `(uname -v) 2>/dev/null || echo unknown`
1863
1864/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1865/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1866
1867/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1868/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1869/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1870/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1871/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1872/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1873/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1874
1875_ASUNAME
1876
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882    $as_echo "PATH: $as_dir"
1883  done
1884IFS=$as_save_IFS
1885
1886} >&5
1887
1888cat >&5 <<_ACEOF
1889
1890
1891## ----------- ##
1892## Core tests. ##
1893## ----------- ##
1894
1895_ACEOF
1896
1897
1898# Keep a trace of the command line.
1899# Strip out --no-create and --no-recursion so they do not pile up.
1900# Strip out --silent because we don't want to record it for future runs.
1901# Also quote any args containing shell meta-characters.
1902# Make two passes to allow for proper duplicate-argument suppression.
1903ac_configure_args=
1904ac_configure_args0=
1905ac_configure_args1=
1906ac_must_keep_next=false
1907for ac_pass in 1 2
1908do
1909  for ac_arg
1910  do
1911    case $ac_arg in
1912    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1913    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1914    | -silent | --silent | --silen | --sile | --sil)
1915      continue ;;
1916    *\'*)
1917      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918    esac
1919    case $ac_pass in
1920    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1921    2)
1922      as_fn_append ac_configure_args1 " '$ac_arg'"
1923      if test $ac_must_keep_next = true; then
1924	ac_must_keep_next=false # Got value, back to normal.
1925      else
1926	case $ac_arg in
1927	  *=* | --config-cache | -C | -disable-* | --disable-* \
1928	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1929	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1930	  | -with-* | --with-* | -without-* | --without-* | --x)
1931	    case "$ac_configure_args0 " in
1932	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933	    esac
1934	    ;;
1935	  -* ) ac_must_keep_next=true ;;
1936	esac
1937      fi
1938      as_fn_append ac_configure_args " '$ac_arg'"
1939      ;;
1940    esac
1941  done
1942done
1943{ ac_configure_args0=; unset ac_configure_args0;}
1944{ ac_configure_args1=; unset ac_configure_args1;}
1945
1946# When interrupted or exit'd, cleanup temporary files, and complete
1947# config.log.  We remove comments because anyway the quotes in there
1948# would cause problems or look ugly.
1949# WARNING: Use '\'' to represent an apostrophe within the trap.
1950# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1951trap 'exit_status=$?
1952  # Save into config.log some information that might help in debugging.
1953  {
1954    echo
1955
1956    $as_echo "## ---------------- ##
1957## Cache variables. ##
1958## ---------------- ##"
1959    echo
1960    # The following way of writing the cache mishandles newlines in values,
1961(
1962  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963    eval ac_val=\$$ac_var
1964    case $ac_val in #(
1965    *${as_nl}*)
1966      case $ac_var in #(
1967      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1968$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969      esac
1970      case $ac_var in #(
1971      _ | IFS | as_nl) ;; #(
1972      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973      *) { eval $ac_var=; unset $ac_var;} ;;
1974      esac ;;
1975    esac
1976  done
1977  (set) 2>&1 |
1978    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979    *${as_nl}ac_space=\ *)
1980      sed -n \
1981	"s/'\''/'\''\\\\'\'''\''/g;
1982	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983      ;; #(
1984    *)
1985      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986      ;;
1987    esac |
1988    sort
1989)
1990    echo
1991
1992    $as_echo "## ----------------- ##
1993## Output variables. ##
1994## ----------------- ##"
1995    echo
1996    for ac_var in $ac_subst_vars
1997    do
1998      eval ac_val=\$$ac_var
1999      case $ac_val in
2000      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001      esac
2002      $as_echo "$ac_var='\''$ac_val'\''"
2003    done | sort
2004    echo
2005
2006    if test -n "$ac_subst_files"; then
2007      $as_echo "## ------------------- ##
2008## File substitutions. ##
2009## ------------------- ##"
2010      echo
2011      for ac_var in $ac_subst_files
2012      do
2013	eval ac_val=\$$ac_var
2014	case $ac_val in
2015	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016	esac
2017	$as_echo "$ac_var='\''$ac_val'\''"
2018      done | sort
2019      echo
2020    fi
2021
2022    if test -s confdefs.h; then
2023      $as_echo "## ----------- ##
2024## confdefs.h. ##
2025## ----------- ##"
2026      echo
2027      cat confdefs.h
2028      echo
2029    fi
2030    test "$ac_signal" != 0 &&
2031      $as_echo "$as_me: caught signal $ac_signal"
2032    $as_echo "$as_me: exit $exit_status"
2033  } >&5
2034  rm -f core *.core core.conftest.* &&
2035    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2036    exit $exit_status
2037' 0
2038for ac_signal in 1 2 13 15; do
2039  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2040done
2041ac_signal=0
2042
2043# confdefs.h avoids OS command line length limits that DEFS can exceed.
2044rm -f -r conftest* confdefs.h
2045
2046$as_echo "/* confdefs.h */" > confdefs.h
2047
2048# Predefined preprocessor variables.
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_NAME "$PACKAGE_NAME"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_VERSION "$PACKAGE_VERSION"
2060_ACEOF
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_STRING "$PACKAGE_STRING"
2064_ACEOF
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2068_ACEOF
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_URL "$PACKAGE_URL"
2072_ACEOF
2073
2074
2075# Let the site file select an alternate cache file if it wants to.
2076# Prefer an explicitly selected file to automatically selected ones.
2077ac_site_file1=NONE
2078ac_site_file2=NONE
2079if test -n "$CONFIG_SITE"; then
2080  # We do not want a PATH search for config.site.
2081  case $CONFIG_SITE in #((
2082    -*)  ac_site_file1=./$CONFIG_SITE;;
2083    */*) ac_site_file1=$CONFIG_SITE;;
2084    *)   ac_site_file1=./$CONFIG_SITE;;
2085  esac
2086elif test "x$prefix" != xNONE; then
2087  ac_site_file1=$prefix/share/config.site
2088  ac_site_file2=$prefix/etc/config.site
2089else
2090  ac_site_file1=$ac_default_prefix/share/config.site
2091  ac_site_file2=$ac_default_prefix/etc/config.site
2092fi
2093for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2094do
2095  test "x$ac_site_file" = xNONE && continue
2096  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2097    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2098$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2099    sed 's/^/| /' "$ac_site_file" >&5
2100    . "$ac_site_file" \
2101      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2103as_fn_error $? "failed to load site script $ac_site_file
2104See \`config.log' for more details" "$LINENO" 5; }
2105  fi
2106done
2107
2108if test -r "$cache_file"; then
2109  # Some versions of bash will fail to source /dev/null (special files
2110  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2111  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2113$as_echo "$as_me: loading cache $cache_file" >&6;}
2114    case $cache_file in
2115      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2116      *)                      . "./$cache_file";;
2117    esac
2118  fi
2119else
2120  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2121$as_echo "$as_me: creating cache $cache_file" >&6;}
2122  >$cache_file
2123fi
2124
2125# Check that the precious variables saved in the cache have kept the same
2126# value.
2127ac_cache_corrupted=false
2128for ac_var in $ac_precious_vars; do
2129  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2130  eval ac_new_set=\$ac_env_${ac_var}_set
2131  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2132  eval ac_new_val=\$ac_env_${ac_var}_value
2133  case $ac_old_set,$ac_new_set in
2134    set,)
2135      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2136$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2137      ac_cache_corrupted=: ;;
2138    ,set)
2139      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2140$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2141      ac_cache_corrupted=: ;;
2142    ,);;
2143    *)
2144      if test "x$ac_old_val" != "x$ac_new_val"; then
2145	# differences in whitespace do not lead to failure.
2146	ac_old_val_w=`echo x $ac_old_val`
2147	ac_new_val_w=`echo x $ac_new_val`
2148	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2149	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2150$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2151	  ac_cache_corrupted=:
2152	else
2153	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2154$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2155	  eval $ac_var=\$ac_old_val
2156	fi
2157	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2158$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2159	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2160$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2161      fi;;
2162  esac
2163  # Pass precious variables to config.status.
2164  if test "$ac_new_set" = set; then
2165    case $ac_new_val in
2166    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2167    *) ac_arg=$ac_var=$ac_new_val ;;
2168    esac
2169    case " $ac_configure_args " in
2170      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2171      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2172    esac
2173  fi
2174done
2175if $ac_cache_corrupted; then
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2179$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2180  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2181fi
2182## -------------------- ##
2183## Main body of script. ##
2184## -------------------- ##
2185
2186ac_ext=c
2187ac_cpp='$CPP $CPPFLAGS'
2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
2192
2193
2194# Point autoconf to a particular source file.
2195
2196
2197# Put all the extra scripts and stuff in the current directory
2198ac_aux_dir=
2199for ac_dir in . "$srcdir"/.; do
2200  if test -f "$ac_dir/install-sh"; then
2201    ac_aux_dir=$ac_dir
2202    ac_install_sh="$ac_aux_dir/install-sh -c"
2203    break
2204  elif test -f "$ac_dir/install.sh"; then
2205    ac_aux_dir=$ac_dir
2206    ac_install_sh="$ac_aux_dir/install.sh -c"
2207    break
2208  elif test -f "$ac_dir/shtool"; then
2209    ac_aux_dir=$ac_dir
2210    ac_install_sh="$ac_aux_dir/shtool install -c"
2211    break
2212  fi
2213done
2214if test -z "$ac_aux_dir"; then
2215  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2216fi
2217
2218# These three variables are undocumented and unsupported,
2219# and are intended to be withdrawn in a future Autoconf release.
2220# They can cause serious problems if a builder's source tree is in a directory
2221# whose full name contains unusual characters.
2222ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2223ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2224ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2225
2226
2227
2228# Generate config.h
2229ac_config_headers="$ac_config_headers config.h"
2230
2231
2232# Initialize automake
2233am__api_version='1.11'
2234
2235# Find a good install program.  We prefer a C program (faster),
2236# so one script is as good as another.  But avoid the broken or
2237# incompatible versions:
2238# SysV /etc/install, /usr/sbin/install
2239# SunOS /usr/etc/install
2240# IRIX /sbin/install
2241# AIX /bin/install
2242# AmigaOS /C/install, which installs bootblocks on floppy discs
2243# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246# OS/2's system install, which has a completely different semantic
2247# ./install, which can be erroneously created by make from ./install.sh.
2248# Reject install programs that cannot install multiple files.
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250$as_echo_n "checking for a BSD-compatible install... " >&6; }
2251if test -z "$INSTALL"; then
2252if ${ac_cv_path_install+:} false; then :
2253  $as_echo_n "(cached) " >&6
2254else
2255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258  IFS=$as_save_IFS
2259  test -z "$as_dir" && as_dir=.
2260    # Account for people who put trailing slashes in PATH elements.
2261case $as_dir/ in #((
2262  ./ | .// | /[cC]/* | \
2263  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265  /usr/ucb/* ) ;;
2266  *)
2267    # OSF1 and SCO ODT 3.0 have their own names for install.
2268    # Don't use installbsd from OSF since it installs stuff as root
2269    # by default.
2270    for ac_prog in ginstall scoinst install; do
2271      for ac_exec_ext in '' $ac_executable_extensions; do
2272	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2273	  if test $ac_prog = install &&
2274	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275	    # AIX install.  It has an incompatible calling convention.
2276	    :
2277	  elif test $ac_prog = install &&
2278	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279	    # program-specific install script used by HP pwplus--don't use.
2280	    :
2281	  else
2282	    rm -rf conftest.one conftest.two conftest.dir
2283	    echo one > conftest.one
2284	    echo two > conftest.two
2285	    mkdir conftest.dir
2286	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287	      test -s conftest.one && test -s conftest.two &&
2288	      test -s conftest.dir/conftest.one &&
2289	      test -s conftest.dir/conftest.two
2290	    then
2291	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292	      break 3
2293	    fi
2294	  fi
2295	fi
2296      done
2297    done
2298    ;;
2299esac
2300
2301  done
2302IFS=$as_save_IFS
2303
2304rm -rf conftest.one conftest.two conftest.dir
2305
2306fi
2307  if test "${ac_cv_path_install+set}" = set; then
2308    INSTALL=$ac_cv_path_install
2309  else
2310    # As a last resort, use the slow shell script.  Don't cache a
2311    # value for INSTALL within a source directory, because that will
2312    # break other packages using the cache if that directory is
2313    # removed, or if the value is a relative name.
2314    INSTALL=$ac_install_sh
2315  fi
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318$as_echo "$INSTALL" >&6; }
2319
2320# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321# It thinks the first close brace ends the variable substitution.
2322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329$as_echo_n "checking whether build environment is sane... " >&6; }
2330# Just in case
2331sleep 1
2332echo timestamp > conftest.file
2333# Reject unsafe characters in $srcdir or the absolute working directory
2334# name.  Accept space and tab only in the latter.
2335am_lf='
2336'
2337case `pwd` in
2338  *[\\\"\#\$\&\'\`$am_lf]*)
2339    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2340esac
2341case $srcdir in
2342  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2343    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344esac
2345
2346# Do `set' in a subshell so we don't clobber the current shell's
2347# arguments.  Must try -L first in case configure is actually a
2348# symlink; some systems play weird games with the mod time of symlinks
2349# (eg FreeBSD returns the mod time of the symlink's containing
2350# directory).
2351if (
2352   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353   if test "$*" = "X"; then
2354      # -L didn't work.
2355      set X `ls -t "$srcdir/configure" conftest.file`
2356   fi
2357   rm -f conftest.file
2358   if test "$*" != "X $srcdir/configure conftest.file" \
2359      && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361      # If neither matched, then we have a broken ls.  This can happen
2362      # if, for instance, CONFIG_SHELL is bash and it inherits a
2363      # broken ls alias from the environment.  This has actually
2364      # happened.  Such a system could not be considered "sane".
2365      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2366alias in your environment" "$LINENO" 5
2367   fi
2368
2369   test "$2" = conftest.file
2370   )
2371then
2372   # Ok.
2373   :
2374else
2375   as_fn_error $? "newly created file is older than distributed files!
2376Check your system clock" "$LINENO" 5
2377fi
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379$as_echo "yes" >&6; }
2380test "$program_prefix" != NONE &&
2381  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382# Use a double $ so make ignores it.
2383test "$program_suffix" != NONE &&
2384  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385# Double any \ or $.
2386# By default was `s,x,x', remove it if useless.
2387ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390# expand $ac_aux_dir to an absolute path
2391am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393if test x"${MISSING+set}" != xset; then
2394  case $am_aux_dir in
2395  *\ * | *\	*)
2396    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397  *)
2398    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399  esac
2400fi
2401# Use eval to expand $SHELL
2402if eval "$MISSING --run true"; then
2403  am_missing_run="$MISSING --run "
2404else
2405  am_missing_run=
2406  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408fi
2409
2410if test x"${install_sh}" != xset; then
2411  case $am_aux_dir in
2412  *\ * | *\	*)
2413    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414  *)
2415    install_sh="\${SHELL} $am_aux_dir/install-sh"
2416  esac
2417fi
2418
2419# Installed binaries are usually stripped using `strip' when the user
2420# run `make install-strip'.  However `strip' might not be the right
2421# tool to use in cross-compilation environments, therefore Automake
2422# will honor the `STRIP' environment variable to overrule this program.
2423if test "$cross_compiling" != no; then
2424  if test -n "$ac_tool_prefix"; then
2425  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426set dummy ${ac_tool_prefix}strip; ac_word=$2
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
2429if ${ac_cv_prog_STRIP+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  if test -n "$STRIP"; then
2433  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440    for ac_exec_ext in '' $ac_executable_extensions; do
2441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444    break 2
2445  fi
2446done
2447  done
2448IFS=$as_save_IFS
2449
2450fi
2451fi
2452STRIP=$ac_cv_prog_STRIP
2453if test -n "$STRIP"; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455$as_echo "$STRIP" >&6; }
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
2459fi
2460
2461
2462fi
2463if test -z "$ac_cv_prog_STRIP"; then
2464  ac_ct_STRIP=$STRIP
2465  # Extract the first word of "strip", so it can be a program name with args.
2466set dummy strip; ac_word=$2
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468$as_echo_n "checking for $ac_word... " >&6; }
2469if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470  $as_echo_n "(cached) " >&6
2471else
2472  if test -n "$ac_ct_STRIP"; then
2473  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478  IFS=$as_save_IFS
2479  test -z "$as_dir" && as_dir=.
2480    for ac_exec_ext in '' $ac_executable_extensions; do
2481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482    ac_cv_prog_ac_ct_STRIP="strip"
2483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484    break 2
2485  fi
2486done
2487  done
2488IFS=$as_save_IFS
2489
2490fi
2491fi
2492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493if test -n "$ac_ct_STRIP"; then
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495$as_echo "$ac_ct_STRIP" >&6; }
2496else
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
2499fi
2500
2501  if test "x$ac_ct_STRIP" = x; then
2502    STRIP=":"
2503  else
2504    case $cross_compiling:$ac_tool_warned in
2505yes:)
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508ac_tool_warned=yes ;;
2509esac
2510    STRIP=$ac_ct_STRIP
2511  fi
2512else
2513  STRIP="$ac_cv_prog_STRIP"
2514fi
2515
2516fi
2517INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521if test -z "$MKDIR_P"; then
2522  if ${ac_cv_path_mkdir+:} false; then :
2523  $as_echo_n "(cached) " >&6
2524else
2525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_prog in mkdir gmkdir; do
2531	 for ac_exec_ext in '' $ac_executable_extensions; do
2532	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2533	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534	     'mkdir (GNU coreutils) '* | \
2535	     'mkdir (coreutils) '* | \
2536	     'mkdir (fileutils) '4.1*)
2537	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538	       break 3;;
2539	   esac
2540	 done
2541       done
2542  done
2543IFS=$as_save_IFS
2544
2545fi
2546
2547  test -d ./--version && rmdir ./--version
2548  if test "${ac_cv_path_mkdir+set}" = set; then
2549    MKDIR_P="$ac_cv_path_mkdir -p"
2550  else
2551    # As a last resort, use the slow shell script.  Don't cache a
2552    # value for MKDIR_P within a source directory, because that will
2553    # break other packages using the cache if that directory is
2554    # removed, or if the value is a relative name.
2555    MKDIR_P="$ac_install_sh -d"
2556  fi
2557fi
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559$as_echo "$MKDIR_P" >&6; }
2560
2561mkdir_p="$MKDIR_P"
2562case $mkdir_p in
2563  [\\/$]* | ?:[\\/]*) ;;
2564  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565esac
2566
2567for ac_prog in gawk mawk nawk awk
2568do
2569  # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if ${ac_cv_prog_AWK+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$AWK"; then
2577  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    for ac_exec_ext in '' $ac_executable_extensions; do
2585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586    ac_cv_prog_AWK="$ac_prog"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606  test -n "$AWK" && break
2607done
2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611set x ${MAKE-make}
2612ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  cat >conftest.make <<\_ACEOF
2617SHELL = /bin/sh
2618all:
2619	@echo '@@@%%%=$(MAKE)=@@@%%%'
2620_ACEOF
2621# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623  *@@@%%%=?*=@@@%%%*)
2624    eval ac_cv_prog_make_${ac_make}_set=yes;;
2625  *)
2626    eval ac_cv_prog_make_${ac_make}_set=no;;
2627esac
2628rm -f conftest.make
2629fi
2630if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632$as_echo "yes" >&6; }
2633  SET_MAKE=
2634else
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636$as_echo "no" >&6; }
2637  SET_MAKE="MAKE=${MAKE-make}"
2638fi
2639
2640rm -rf .tst 2>/dev/null
2641mkdir .tst 2>/dev/null
2642if test -d .tst; then
2643  am__leading_dot=.
2644else
2645  am__leading_dot=_
2646fi
2647rmdir .tst 2>/dev/null
2648
2649if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651  # is not polluted with repeated "-I."
2652  am__isrc=' -I$(srcdir)'
2653  # test to see if srcdir already configured
2654  if test -f $srcdir/config.status; then
2655    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656  fi
2657fi
2658
2659# test whether we have cygpath
2660if test -z "$CYGPATH_W"; then
2661  if (cygpath --version) >/dev/null 2>/dev/null; then
2662    CYGPATH_W='cygpath -w'
2663  else
2664    CYGPATH_W=echo
2665  fi
2666fi
2667
2668
2669# Define the identity of the package.
2670 PACKAGE='graphlayout'
2671 VERSION='1.0'
2672
2673
2674cat >>confdefs.h <<_ACEOF
2675#define PACKAGE "$PACKAGE"
2676_ACEOF
2677
2678
2679cat >>confdefs.h <<_ACEOF
2680#define VERSION "$VERSION"
2681_ACEOF
2682
2683# Some tools Automake needs.
2684
2685ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699# We need awk for the "check" target.  The system "awk" is bad on
2700# some platforms.
2701# Always define AMTAR for backward compatibility.  Yes, it's still used
2702# in the wild :-(  We should find a proper way to deprecate it ...
2703AMTAR='$${TAR-tar}'
2704
2705am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2706
2707
2708
2709
2710
2711
2712# Use the custom GGobi macro for configuring the plugin. This provides
2713# GGOBI_CFLAGS, GGOBI_LIBS, and SRC_DEBUG variables.
2714DEPDIR="${am__leading_dot}deps"
2715
2716ac_config_commands="$ac_config_commands depfiles"
2717
2718
2719am_make=${MAKE-make}
2720cat > confinc << 'END'
2721am__doit:
2722	@echo this is the am__doit target
2723.PHONY: am__doit
2724END
2725# If we don't find an include directive, just comment out the code.
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2727$as_echo_n "checking for style of include used by $am_make... " >&6; }
2728am__include="#"
2729am__quote=
2730_am_result=none
2731# First try GNU make style include.
2732echo "include confinc" > confmf
2733# Ignore all kinds of additional output from `make'.
2734case `$am_make -s -f confmf 2> /dev/null` in #(
2735*the\ am__doit\ target*)
2736  am__include=include
2737  am__quote=
2738  _am_result=GNU
2739  ;;
2740esac
2741# Now try BSD make style include.
2742if test "$am__include" = "#"; then
2743   echo '.include "confinc"' > confmf
2744   case `$am_make -s -f confmf 2> /dev/null` in #(
2745   *the\ am__doit\ target*)
2746     am__include=.include
2747     am__quote="\""
2748     _am_result=BSD
2749     ;;
2750   esac
2751fi
2752
2753
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2755$as_echo "$_am_result" >&6; }
2756rm -f confinc confmf
2757
2758# Check whether --enable-dependency-tracking was given.
2759if test "${enable_dependency_tracking+set}" = set; then :
2760  enableval=$enable_dependency_tracking;
2761fi
2762
2763if test "x$enable_dependency_tracking" != xno; then
2764  am_depcomp="$ac_aux_dir/depcomp"
2765  AMDEPBACKSLASH='\'
2766  am__nodep='_no'
2767fi
2768 if test "x$enable_dependency_tracking" != xno; then
2769  AMDEP_TRUE=
2770  AMDEP_FALSE='#'
2771else
2772  AMDEP_TRUE='#'
2773  AMDEP_FALSE=
2774fi
2775
2776
2777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782if test -n "$ac_tool_prefix"; then
2783  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_CC+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  if test -n "$CC"; then
2791  ac_cv_prog_CC="$CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810CC=$ac_cv_prog_CC
2811if test -n "$CC"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813$as_echo "$CC" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820fi
2821if test -z "$ac_cv_prog_CC"; then
2822  ac_ct_CC=$CC
2823  # Extract the first word of "gcc", so it can be a program name with args.
2824set dummy gcc; ac_word=$2
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  if test -n "$ac_ct_CC"; then
2831  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838    for ac_exec_ext in '' $ac_executable_extensions; do
2839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840    ac_cv_prog_ac_ct_CC="gcc"
2841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851if test -n "$ac_ct_CC"; then
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853$as_echo "$ac_ct_CC" >&6; }
2854else
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859  if test "x$ac_ct_CC" = x; then
2860    CC=""
2861  else
2862    case $cross_compiling:$ac_tool_warned in
2863yes:)
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866ac_tool_warned=yes ;;
2867esac
2868    CC=$ac_ct_CC
2869  fi
2870else
2871  CC="$ac_cv_prog_CC"
2872fi
2873
2874if test -z "$CC"; then
2875          if test -n "$ac_tool_prefix"; then
2876    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877set dummy ${ac_tool_prefix}cc; ac_word=$2
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if ${ac_cv_prog_CC+:} false; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  if test -n "$CC"; then
2884  ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  test -z "$as_dir" && as_dir=.
2891    for ac_exec_ext in '' $ac_executable_extensions; do
2892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893    ac_cv_prog_CC="${ac_tool_prefix}cc"
2894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895    break 2
2896  fi
2897done
2898  done
2899IFS=$as_save_IFS
2900
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906$as_echo "$CC" >&6; }
2907else
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
2910fi
2911
2912
2913  fi
2914fi
2915if test -z "$CC"; then
2916  # Extract the first word of "cc", so it can be a program name with args.
2917set dummy cc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926  ac_prog_rejected=no
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  test -z "$as_dir" && as_dir=.
2932    for ac_exec_ext in '' $ac_executable_extensions; do
2933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935       ac_prog_rejected=yes
2936       continue
2937     fi
2938    ac_cv_prog_CC="cc"
2939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946if test $ac_prog_rejected = yes; then
2947  # We found a bogon in the path, so make sure we never use it.
2948  set dummy $ac_cv_prog_CC
2949  shift
2950  if test $# != 0; then
2951    # We chose a different compiler from the bogus one.
2952    # However, it has the same basename, so the bogon will be chosen
2953    # first if we set CC to just the basename; use the full file name.
2954    shift
2955    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2956  fi
2957fi
2958fi
2959fi
2960CC=$ac_cv_prog_CC
2961if test -n "$CC"; then
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963$as_echo "$CC" >&6; }
2964else
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966$as_echo "no" >&6; }
2967fi
2968
2969
2970fi
2971if test -z "$CC"; then
2972  if test -n "$ac_tool_prefix"; then
2973  for ac_prog in cl.exe
2974  do
2975    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if ${ac_cv_prog_CC+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990    for ac_exec_ext in '' $ac_executable_extensions; do
2991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002CC=$ac_cv_prog_CC
3003if test -n "$CC"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005$as_echo "$CC" >&6; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011
3012    test -n "$CC" && break
3013  done
3014fi
3015if test -z "$CC"; then
3016  ac_ct_CC=$CC
3017  for ac_prog in cl.exe
3018do
3019  # Extract the first word of "$ac_prog", so it can be a program name with args.
3020set dummy $ac_prog; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$ac_ct_CC"; then
3027  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036    ac_cv_prog_ac_ct_CC="$ac_prog"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047if test -n "$ac_ct_CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049$as_echo "$ac_ct_CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056  test -n "$ac_ct_CC" && break
3057done
3058
3059  if test "x$ac_ct_CC" = x; then
3060    CC=""
3061  else
3062    case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066ac_tool_warned=yes ;;
3067esac
3068    CC=$ac_ct_CC
3069  fi
3070fi
3071
3072fi
3073
3074
3075test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077as_fn_error $? "no acceptable C compiler found in \$PATH
3078See \`config.log' for more details" "$LINENO" 5; }
3079
3080# Provide some information about the compiler.
3081$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3082set X $ac_compile
3083ac_compiler=$2
3084for ac_option in --version -v -V -qversion; do
3085  { { ac_try="$ac_compiler $ac_option >&5"
3086case "(($ac_try" in
3087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088  *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091$as_echo "$ac_try_echo"; } >&5
3092  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093  ac_status=$?
3094  if test -s conftest.err; then
3095    sed '10a\
3096... rest of stderr output deleted ...
3097         10q' conftest.err >conftest.er1
3098    cat conftest.er1 >&5
3099  fi
3100  rm -f conftest.er1 conftest.err
3101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102  test $ac_status = 0; }
3103done
3104
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h.  */
3107
3108int
3109main ()
3110{
3111
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116ac_clean_files_save=$ac_clean_files
3117ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118# Try to create an executable without -o first, disregard a.out.
3119# It will help us diagnose broken compilers, and finding out an intuition
3120# of exeext.
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122$as_echo_n "checking whether the C compiler works... " >&6; }
3123ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3124
3125# The possible output files:
3126ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3127
3128ac_rmfiles=
3129for ac_file in $ac_files
3130do
3131  case $ac_file in
3132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3134  esac
3135done
3136rm -f $ac_rmfiles
3137
3138if { { ac_try="$ac_link_default"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5
3145  (eval "$ac_link_default") 2>&5
3146  ac_status=$?
3147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148  test $ac_status = 0; }; then :
3149  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3150# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3151# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3152# so that the user can short-circuit this test for compilers unknown to
3153# Autoconf.
3154for ac_file in $ac_files ''
3155do
3156  test -f "$ac_file" || continue
3157  case $ac_file in
3158    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3159	;;
3160    [ab].out )
3161	# We found the default executable, but exeext='' is most
3162	# certainly right.
3163	break;;
3164    *.* )
3165	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3166	then :; else
3167	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168	fi
3169	# We set ac_cv_exeext here because the later test for it is not
3170	# safe: cross compilers may not add the suffix if given an `-o'
3171	# argument, so we may need to know it at that point already.
3172	# Even if this section looks crufty: it has the advantage of
3173	# actually working.
3174	break;;
3175    * )
3176	break;;
3177  esac
3178done
3179test "$ac_cv_exeext" = no && ac_cv_exeext=
3180
3181else
3182  ac_file=''
3183fi
3184if test -z "$ac_file"; then :
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187$as_echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error 77 "C compiler cannot create executables
3193See \`config.log' for more details" "$LINENO" 5; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196$as_echo "yes" >&6; }
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199$as_echo_n "checking for C compiler default output file name... " >&6; }
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201$as_echo "$ac_file" >&6; }
3202ac_exeext=$ac_cv_exeext
3203
3204rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205ac_clean_files=$ac_clean_files_save
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207$as_echo_n "checking for suffix of executables... " >&6; }
3208if { { ac_try="$ac_link"
3209case "(($ac_try" in
3210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211  *) ac_try_echo=$ac_try;;
3212esac
3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214$as_echo "$ac_try_echo"; } >&5
3215  (eval "$ac_link") 2>&5
3216  ac_status=$?
3217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218  test $ac_status = 0; }; then :
3219  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3221# work properly (i.e., refer to `conftest.exe'), while it won't with
3222# `rm'.
3223for ac_file in conftest.exe conftest conftest.*; do
3224  test -f "$ac_file" || continue
3225  case $ac_file in
3226    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228	  break;;
3229    * ) break;;
3230  esac
3231done
3232else
3233  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3236See \`config.log' for more details" "$LINENO" 5; }
3237fi
3238rm -f conftest conftest$ac_cv_exeext
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240$as_echo "$ac_cv_exeext" >&6; }
3241
3242rm -f conftest.$ac_ext
3243EXEEXT=$ac_cv_exeext
3244ac_exeext=$EXEEXT
3245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h.  */
3247#include <stdio.h>
3248int
3249main ()
3250{
3251FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3253
3254  ;
3255  return 0;
3256}
3257_ACEOF
3258ac_clean_files="$ac_clean_files conftest.out"
3259# Check that the compiler produces executables we can run.  If not, either
3260# the compiler is broken, or we cross compile.
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262$as_echo_n "checking whether we are cross compiling... " >&6; }
3263if test "$cross_compiling" != yes; then
3264  { { ac_try="$ac_link"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271  (eval "$ac_link") 2>&5
3272  ac_status=$?
3273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }
3275  if { ac_try='./conftest$ac_cv_exeext'
3276  { { case "(($ac_try" in
3277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278  *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282  (eval "$ac_try") 2>&5
3283  ac_status=$?
3284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285  test $ac_status = 0; }; }; then
3286    cross_compiling=no
3287  else
3288    if test "$cross_compiling" = maybe; then
3289	cross_compiling=yes
3290    else
3291	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error $? "cannot run C compiled programs.
3294If you meant to cross compile, use \`--host'.
3295See \`config.log' for more details" "$LINENO" 5; }
3296    fi
3297  fi
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300$as_echo "$cross_compiling" >&6; }
3301
3302rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303ac_clean_files=$ac_clean_files_save
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305$as_echo_n "checking for suffix of object files... " >&6; }
3306if ${ac_cv_objext+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310/* end confdefs.h.  */
3311
3312int
3313main ()
3314{
3315
3316  ;
3317  return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
3321if { { ac_try="$ac_compile"
3322case "(($ac_try" in
3323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324  *) ac_try_echo=$ac_try;;
3325esac
3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
3328  (eval "$ac_compile") 2>&5
3329  ac_status=$?
3330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331  test $ac_status = 0; }; then :
3332  for ac_file in conftest.o conftest.obj conftest.*; do
3333  test -f "$ac_file" || continue;
3334  case $ac_file in
3335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337       break;;
3338  esac
3339done
3340else
3341  $as_echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346as_fn_error $? "cannot compute suffix of object files: cannot compile
3347See \`config.log' for more details" "$LINENO" 5; }
3348fi
3349rm -f conftest.$ac_cv_objext conftest.$ac_ext
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352$as_echo "$ac_cv_objext" >&6; }
3353OBJEXT=$ac_cv_objext
3354ac_objext=$OBJEXT
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357if ${ac_cv_c_compiler_gnu+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366#ifndef __GNUC__
3367       choke me
3368#endif
3369
3370  ;
3371  return 0;
3372}
3373_ACEOF
3374if ac_fn_c_try_compile "$LINENO"; then :
3375  ac_compiler_gnu=yes
3376else
3377  ac_compiler_gnu=no
3378fi
3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385if test $ac_compiler_gnu = yes; then
3386  GCC=yes
3387else
3388  GCC=
3389fi
3390ac_test_CFLAGS=${CFLAGS+set}
3391ac_save_CFLAGS=$CFLAGS
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393$as_echo_n "checking whether $CC accepts -g... " >&6; }
3394if ${ac_cv_prog_cc_g+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  ac_save_c_werror_flag=$ac_c_werror_flag
3398   ac_c_werror_flag=yes
3399   ac_cv_prog_cc_g=no
3400   CFLAGS="-g"
3401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412if ac_fn_c_try_compile "$LINENO"; then :
3413  ac_cv_prog_cc_g=yes
3414else
3415  CFLAGS=""
3416      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h.  */
3418
3419int
3420main ()
3421{
3422
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427if ac_fn_c_try_compile "$LINENO"; then :
3428
3429else
3430  ac_c_werror_flag=$ac_save_c_werror_flag
3431	 CFLAGS="-g"
3432	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443if ac_fn_c_try_compile "$LINENO"; then :
3444  ac_cv_prog_cc_g=yes
3445fi
3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447fi
3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449fi
3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451   ac_c_werror_flag=$ac_save_c_werror_flag
3452fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454$as_echo "$ac_cv_prog_cc_g" >&6; }
3455if test "$ac_test_CFLAGS" = set; then
3456  CFLAGS=$ac_save_CFLAGS
3457elif test $ac_cv_prog_cc_g = yes; then
3458  if test "$GCC" = yes; then
3459    CFLAGS="-g -O2"
3460  else
3461    CFLAGS="-g"
3462  fi
3463else
3464  if test "$GCC" = yes; then
3465    CFLAGS="-O2"
3466  else
3467    CFLAGS=
3468  fi
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472if ${ac_cv_prog_cc_c89+:} false; then :
3473  $as_echo_n "(cached) " >&6
3474else
3475  ac_cv_prog_cc_c89=no
3476ac_save_CC=$CC
3477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479#include <stdarg.h>
3480#include <stdio.h>
3481struct stat;
3482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3483struct buf { int x; };
3484FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485static char *e (p, i)
3486     char **p;
3487     int i;
3488{
3489  return p[i];
3490}
3491static char *f (char * (*g) (char **, int), char **p, ...)
3492{
3493  char *s;
3494  va_list v;
3495  va_start (v,p);
3496  s = g (p, va_arg (v,int));
3497  va_end (v);
3498  return s;
3499}
3500
3501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3502   function prototypes and stuff, but not '\xHH' hex character constants.
3503   These don't provoke an error unfortunately, instead are silently treated
3504   as 'x'.  The following induces an error, until -std is added to get
3505   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3506   array size at least.  It's necessary to write '\x00'==0 to get something
3507   that's true only with -std.  */
3508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509
3510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511   inside strings and character constants.  */
3512#define FOO(x) 'x'
3513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3514
3515int test (int i, double x);
3516struct s1 {int (*f) (int a);};
3517struct s2 {int (*f) (double a);};
3518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3519int argc;
3520char **argv;
3521int
3522main ()
3523{
3524return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531do
3532  CC="$ac_save_CC $ac_arg"
3533  if ac_fn_c_try_compile "$LINENO"; then :
3534  ac_cv_prog_cc_c89=$ac_arg
3535fi
3536rm -f core conftest.err conftest.$ac_objext
3537  test "x$ac_cv_prog_cc_c89" != "xno" && break
3538done
3539rm -f conftest.$ac_ext
3540CC=$ac_save_CC
3541
3542fi
3543# AC_CACHE_VAL
3544case "x$ac_cv_prog_cc_c89" in
3545  x)
3546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3547$as_echo "none needed" >&6; } ;;
3548  xno)
3549    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550$as_echo "unsupported" >&6; } ;;
3551  *)
3552    CC="$CC $ac_cv_prog_cc_c89"
3553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3554$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3555esac
3556if test "x$ac_cv_prog_cc_c89" != xno; then :
3557
3558fi
3559
3560ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566depcc="$CC"   am_compiler_list=
3567
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3569$as_echo_n "checking dependency style of $depcc... " >&6; }
3570if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3571  $as_echo_n "(cached) " >&6
3572else
3573  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3574  # We make a subdir and do the tests there.  Otherwise we can end up
3575  # making bogus files that we don't know about and never remove.  For
3576  # instance it was reported that on HP-UX the gcc test will end up
3577  # making a dummy file named `D' -- because `-MD' means `put the output
3578  # in D'.
3579  rm -rf conftest.dir
3580  mkdir conftest.dir
3581  # Copy depcomp to subdir because otherwise we won't find it if we're
3582  # using a relative directory.
3583  cp "$am_depcomp" conftest.dir
3584  cd conftest.dir
3585  # We will build objects and dependencies in a subdirectory because
3586  # it helps to detect inapplicable dependency modes.  For instance
3587  # both Tru64's cc and ICC support -MD to output dependencies as a
3588  # side effect of compilation, but ICC will put the dependencies in
3589  # the current directory while Tru64 will put them in the object
3590  # directory.
3591  mkdir sub
3592
3593  am_cv_CC_dependencies_compiler_type=none
3594  if test "$am_compiler_list" = ""; then
3595     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596  fi
3597  am__universal=false
3598  case " $depcc " in #(
3599     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3600     esac
3601
3602  for depmode in $am_compiler_list; do
3603    # Setup a source with many dependencies, because some compilers
3604    # like to wrap large dependency lists on column 80 (with \), and
3605    # we should not choose a depcomp mode which is confused by this.
3606    #
3607    # We need to recreate these files for each test, as the compiler may
3608    # overwrite some of them when testing with obscure command lines.
3609    # This happens at least with the AIX C compiler.
3610    : > sub/conftest.c
3611    for i in 1 2 3 4 5 6; do
3612      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614      # Solaris 8's {/usr,}/bin/sh.
3615      touch sub/conftst$i.h
3616    done
3617    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618
3619    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3620    # mode.  It turns out that the SunPro C++ compiler does not properly
3621    # handle `-M -o', and we need to detect this.  Also, some Intel
3622    # versions had trouble with output in subdirs
3623    am__obj=sub/conftest.${OBJEXT-o}
3624    am__minus_obj="-o $am__obj"
3625    case $depmode in
3626    gcc)
3627      # This depmode causes a compiler race in universal mode.
3628      test "$am__universal" = false || continue
3629      ;;
3630    nosideeffect)
3631      # after this tag, mechanisms are not by side-effect, so they'll
3632      # only be used when explicitly requested
3633      if test "x$enable_dependency_tracking" = xyes; then
3634	continue
3635      else
3636	break
3637      fi
3638      ;;
3639    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3640      # This compiler won't grok `-c -o', but also, the minuso test has
3641      # not run yet.  These depmodes are late enough in the game, and
3642      # so weak that their functioning should not be impacted.
3643      am__obj=conftest.${OBJEXT-o}
3644      am__minus_obj=
3645      ;;
3646    none) break ;;
3647    esac
3648    if depmode=$depmode \
3649       source=sub/conftest.c object=$am__obj \
3650       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3651       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3652         >/dev/null 2>conftest.err &&
3653       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3654       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3655       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3656       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3657      # icc doesn't choke on unknown options, it will just issue warnings
3658      # or remarks (even with -Werror).  So we grep stderr for any message
3659      # that says an option was ignored or not supported.
3660      # When given -MP, icc 7.0 and 7.1 complain thusly:
3661      #   icc: Command line warning: ignoring option '-M'; no argument required
3662      # The diagnosis changed in icc 8.0:
3663      #   icc: Command line remark: option '-MP' not supported
3664      if (grep 'ignoring option' conftest.err ||
3665          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3666        am_cv_CC_dependencies_compiler_type=$depmode
3667        break
3668      fi
3669    fi
3670  done
3671
3672  cd ..
3673  rm -rf conftest.dir
3674else
3675  am_cv_CC_dependencies_compiler_type=none
3676fi
3677
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3680$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3681CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3682
3683 if
3684  test "x$enable_dependency_tracking" != xno \
3685  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3686  am__fastdepCC_TRUE=
3687  am__fastdepCC_FALSE='#'
3688else
3689  am__fastdepCC_TRUE='#'
3690  am__fastdepCC_FALSE=
3691fi
3692
3693
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3701$as_echo_n "checking how to run the C preprocessor... " >&6; }
3702# On Suns, sometimes $CPP names a directory.
3703if test -n "$CPP" && test -d "$CPP"; then
3704  CPP=
3705fi
3706if test -z "$CPP"; then
3707  if ${ac_cv_prog_CPP+:} false; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710      # Double quotes because CPP needs to be expanded
3711    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3712    do
3713      ac_preproc_ok=false
3714for ac_c_preproc_warn_flag in '' yes
3715do
3716  # Use a header file that comes with gcc, so configuring glibc
3717  # with a fresh cross-compiler works.
3718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3719  # <limits.h> exists even on freestanding compilers.
3720  # On the NeXT, cc -E runs the code through the compiler's parser,
3721  # not just through cpp. "Syntax error" is here to catch this case.
3722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724#ifdef __STDC__
3725# include <limits.h>
3726#else
3727# include <assert.h>
3728#endif
3729		     Syntax error
3730_ACEOF
3731if ac_fn_c_try_cpp "$LINENO"; then :
3732
3733else
3734  # Broken: fails on valid input.
3735continue
3736fi
3737rm -f conftest.err conftest.i conftest.$ac_ext
3738
3739  # OK, works on sane cases.  Now check whether nonexistent headers
3740  # can be detected and how.
3741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h.  */
3743#include <ac_nonexistent.h>
3744_ACEOF
3745if ac_fn_c_try_cpp "$LINENO"; then :
3746  # Broken: success on invalid input.
3747continue
3748else
3749  # Passes both tests.
3750ac_preproc_ok=:
3751break
3752fi
3753rm -f conftest.err conftest.i conftest.$ac_ext
3754
3755done
3756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757rm -f conftest.i conftest.err conftest.$ac_ext
3758if $ac_preproc_ok; then :
3759  break
3760fi
3761
3762    done
3763    ac_cv_prog_CPP=$CPP
3764
3765fi
3766  CPP=$ac_cv_prog_CPP
3767else
3768  ac_cv_prog_CPP=$CPP
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3771$as_echo "$CPP" >&6; }
3772ac_preproc_ok=false
3773for ac_c_preproc_warn_flag in '' yes
3774do
3775  # Use a header file that comes with gcc, so configuring glibc
3776  # with a fresh cross-compiler works.
3777  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3778  # <limits.h> exists even on freestanding compilers.
3779  # On the NeXT, cc -E runs the code through the compiler's parser,
3780  # not just through cpp. "Syntax error" is here to catch this case.
3781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782/* end confdefs.h.  */
3783#ifdef __STDC__
3784# include <limits.h>
3785#else
3786# include <assert.h>
3787#endif
3788		     Syntax error
3789_ACEOF
3790if ac_fn_c_try_cpp "$LINENO"; then :
3791
3792else
3793  # Broken: fails on valid input.
3794continue
3795fi
3796rm -f conftest.err conftest.i conftest.$ac_ext
3797
3798  # OK, works on sane cases.  Now check whether nonexistent headers
3799  # can be detected and how.
3800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#include <ac_nonexistent.h>
3803_ACEOF
3804if ac_fn_c_try_cpp "$LINENO"; then :
3805  # Broken: success on invalid input.
3806continue
3807else
3808  # Passes both tests.
3809ac_preproc_ok=:
3810break
3811fi
3812rm -f conftest.err conftest.i conftest.$ac_ext
3813
3814done
3815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3816rm -f conftest.i conftest.err conftest.$ac_ext
3817if $ac_preproc_ok; then :
3818
3819else
3820  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3823See \`config.log' for more details" "$LINENO" 5; }
3824fi
3825
3826ac_ext=c
3827ac_cpp='$CPP $CPPFLAGS'
3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3834$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3835if ${ac_cv_path_GREP+:} false; then :
3836  $as_echo_n "(cached) " >&6
3837else
3838  if test -z "$GREP"; then
3839  ac_path_GREP_found=false
3840  # Loop through the user's path and test for each of PROGNAME-LIST
3841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3843do
3844  IFS=$as_save_IFS
3845  test -z "$as_dir" && as_dir=.
3846    for ac_prog in grep ggrep; do
3847    for ac_exec_ext in '' $ac_executable_extensions; do
3848      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3849      as_fn_executable_p "$ac_path_GREP" || continue
3850# Check for GNU ac_path_GREP and select it if it is found.
3851  # Check for GNU $ac_path_GREP
3852case `"$ac_path_GREP" --version 2>&1` in
3853*GNU*)
3854  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3855*)
3856  ac_count=0
3857  $as_echo_n 0123456789 >"conftest.in"
3858  while :
3859  do
3860    cat "conftest.in" "conftest.in" >"conftest.tmp"
3861    mv "conftest.tmp" "conftest.in"
3862    cp "conftest.in" "conftest.nl"
3863    $as_echo 'GREP' >> "conftest.nl"
3864    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3865    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3866    as_fn_arith $ac_count + 1 && ac_count=$as_val
3867    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3868      # Best one so far, save it but keep looking for a better one
3869      ac_cv_path_GREP="$ac_path_GREP"
3870      ac_path_GREP_max=$ac_count
3871    fi
3872    # 10*(2^10) chars as input seems more than enough
3873    test $ac_count -gt 10 && break
3874  done
3875  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876esac
3877
3878      $ac_path_GREP_found && break 3
3879    done
3880  done
3881  done
3882IFS=$as_save_IFS
3883  if test -z "$ac_cv_path_GREP"; then
3884    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3885  fi
3886else
3887  ac_cv_path_GREP=$GREP
3888fi
3889
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3892$as_echo "$ac_cv_path_GREP" >&6; }
3893 GREP="$ac_cv_path_GREP"
3894
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3897$as_echo_n "checking for egrep... " >&6; }
3898if ${ac_cv_path_EGREP+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3902   then ac_cv_path_EGREP="$GREP -E"
3903   else
3904     if test -z "$EGREP"; then
3905  ac_path_EGREP_found=false
3906  # Loop through the user's path and test for each of PROGNAME-LIST
3907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909do
3910  IFS=$as_save_IFS
3911  test -z "$as_dir" && as_dir=.
3912    for ac_prog in egrep; do
3913    for ac_exec_ext in '' $ac_executable_extensions; do
3914      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3915      as_fn_executable_p "$ac_path_EGREP" || continue
3916# Check for GNU ac_path_EGREP and select it if it is found.
3917  # Check for GNU $ac_path_EGREP
3918case `"$ac_path_EGREP" --version 2>&1` in
3919*GNU*)
3920  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3921*)
3922  ac_count=0
3923  $as_echo_n 0123456789 >"conftest.in"
3924  while :
3925  do
3926    cat "conftest.in" "conftest.in" >"conftest.tmp"
3927    mv "conftest.tmp" "conftest.in"
3928    cp "conftest.in" "conftest.nl"
3929    $as_echo 'EGREP' >> "conftest.nl"
3930    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932    as_fn_arith $ac_count + 1 && ac_count=$as_val
3933    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3934      # Best one so far, save it but keep looking for a better one
3935      ac_cv_path_EGREP="$ac_path_EGREP"
3936      ac_path_EGREP_max=$ac_count
3937    fi
3938    # 10*(2^10) chars as input seems more than enough
3939    test $ac_count -gt 10 && break
3940  done
3941  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942esac
3943
3944      $ac_path_EGREP_found && break 3
3945    done
3946  done
3947  done
3948IFS=$as_save_IFS
3949  if test -z "$ac_cv_path_EGREP"; then
3950    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3951  fi
3952else
3953  ac_cv_path_EGREP=$EGREP
3954fi
3955
3956   fi
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3959$as_echo "$ac_cv_path_EGREP" >&6; }
3960 EGREP="$ac_cv_path_EGREP"
3961
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3964$as_echo_n "checking for ANSI C header files... " >&6; }
3965if ${ac_cv_header_stdc+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970#include <stdlib.h>
3971#include <stdarg.h>
3972#include <string.h>
3973#include <float.h>
3974
3975int
3976main ()
3977{
3978
3979  ;
3980  return 0;
3981}
3982_ACEOF
3983if ac_fn_c_try_compile "$LINENO"; then :
3984  ac_cv_header_stdc=yes
3985else
3986  ac_cv_header_stdc=no
3987fi
3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989
3990if test $ac_cv_header_stdc = yes; then
3991  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h.  */
3994#include <string.h>
3995
3996_ACEOF
3997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998  $EGREP "memchr" >/dev/null 2>&1; then :
3999
4000else
4001  ac_cv_header_stdc=no
4002fi
4003rm -f conftest*
4004
4005fi
4006
4007if test $ac_cv_header_stdc = yes; then
4008  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010/* end confdefs.h.  */
4011#include <stdlib.h>
4012
4013_ACEOF
4014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4015  $EGREP "free" >/dev/null 2>&1; then :
4016
4017else
4018  ac_cv_header_stdc=no
4019fi
4020rm -f conftest*
4021
4022fi
4023
4024if test $ac_cv_header_stdc = yes; then
4025  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4026  if test "$cross_compiling" = yes; then :
4027  :
4028else
4029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h.  */
4031#include <ctype.h>
4032#include <stdlib.h>
4033#if ((' ' & 0x0FF) == 0x020)
4034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4036#else
4037# define ISLOWER(c) \
4038		   (('a' <= (c) && (c) <= 'i') \
4039		     || ('j' <= (c) && (c) <= 'r') \
4040		     || ('s' <= (c) && (c) <= 'z'))
4041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4042#endif
4043
4044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4045int
4046main ()
4047{
4048  int i;
4049  for (i = 0; i < 256; i++)
4050    if (XOR (islower (i), ISLOWER (i))
4051	|| toupper (i) != TOUPPER (i))
4052      return 2;
4053  return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_run "$LINENO"; then :
4057
4058else
4059  ac_cv_header_stdc=no
4060fi
4061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4062  conftest.$ac_objext conftest.beam conftest.$ac_ext
4063fi
4064
4065fi
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4068$as_echo "$ac_cv_header_stdc" >&6; }
4069if test $ac_cv_header_stdc = yes; then
4070
4071$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4072
4073fi
4074
4075# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4077		  inttypes.h stdint.h unistd.h
4078do :
4079  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4081"
4082if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4083  cat >>confdefs.h <<_ACEOF
4084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085_ACEOF
4086
4087fi
4088
4089done
4090
4091
4092# Make sure we can run config.sub.
4093$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4094  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4097$as_echo_n "checking build system type... " >&6; }
4098if ${ac_cv_build+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  ac_build_alias=$build_alias
4102test "x$ac_build_alias" = x &&
4103  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4104test "x$ac_build_alias" = x &&
4105  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4107  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4108
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4111$as_echo "$ac_cv_build" >&6; }
4112case $ac_cv_build in
4113*-*-*) ;;
4114*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4115esac
4116build=$ac_cv_build
4117ac_save_IFS=$IFS; IFS='-'
4118set x $ac_cv_build
4119shift
4120build_cpu=$1
4121build_vendor=$2
4122shift; shift
4123# Remember, the first character of IFS is used to create $*,
4124# except with old shells:
4125build_os=$*
4126IFS=$ac_save_IFS
4127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4128
4129
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4131$as_echo_n "checking host system type... " >&6; }
4132if ${ac_cv_host+:} false; then :
4133  $as_echo_n "(cached) " >&6
4134else
4135  if test "x$host_alias" = x; then
4136  ac_cv_host=$ac_cv_build
4137else
4138  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4139    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4140fi
4141
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4144$as_echo "$ac_cv_host" >&6; }
4145case $ac_cv_host in
4146*-*-*) ;;
4147*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4148esac
4149host=$ac_cv_host
4150ac_save_IFS=$IFS; IFS='-'
4151set x $ac_cv_host
4152shift
4153host_cpu=$1
4154host_vendor=$2
4155shift; shift
4156# Remember, the first character of IFS is used to create $*,
4157# except with old shells:
4158host_os=$*
4159IFS=$ac_save_IFS
4160case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4171	if test -n "$ac_tool_prefix"; then
4172  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4173set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if ${ac_cv_path_PKG_CONFIG+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  case $PKG_CONFIG in
4180  [\\/]* | ?:[\\/]*)
4181  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4182  ;;
4183  *)
4184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189    for ac_exec_ext in '' $ac_executable_extensions; do
4190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196  done
4197IFS=$as_save_IFS
4198
4199  ;;
4200esac
4201fi
4202PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4203if test -n "$PKG_CONFIG"; then
4204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4205$as_echo "$PKG_CONFIG" >&6; }
4206else
4207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208$as_echo "no" >&6; }
4209fi
4210
4211
4212fi
4213if test -z "$ac_cv_path_PKG_CONFIG"; then
4214  ac_pt_PKG_CONFIG=$PKG_CONFIG
4215  # Extract the first word of "pkg-config", so it can be a program name with args.
4216set dummy pkg-config; ac_word=$2
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218$as_echo_n "checking for $ac_word... " >&6; }
4219if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4220  $as_echo_n "(cached) " >&6
4221else
4222  case $ac_pt_PKG_CONFIG in
4223  [\\/]* | ?:[\\/]*)
4224  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4225  ;;
4226  *)
4227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230  IFS=$as_save_IFS
4231  test -z "$as_dir" && as_dir=.
4232    for ac_exec_ext in '' $ac_executable_extensions; do
4233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236    break 2
4237  fi
4238done
4239  done
4240IFS=$as_save_IFS
4241
4242  ;;
4243esac
4244fi
4245ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4246if test -n "$ac_pt_PKG_CONFIG"; then
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4248$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4249else
4250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
4252fi
4253
4254  if test "x$ac_pt_PKG_CONFIG" = x; then
4255    PKG_CONFIG=""
4256  else
4257    case $cross_compiling:$ac_tool_warned in
4258yes:)
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261ac_tool_warned=yes ;;
4262esac
4263    PKG_CONFIG=$ac_pt_PKG_CONFIG
4264  fi
4265else
4266  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4267fi
4268
4269fi
4270if test -n "$PKG_CONFIG"; then
4271	_pkg_min_version=0.9.0
4272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4273$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4274	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276$as_echo "yes" >&6; }
4277	else
4278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279$as_echo "no" >&6; }
4280		PKG_CONFIG=""
4281	fi
4282fi
4283
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4285$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4286if ${ac_cv_c_const+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291
4292int
4293main ()
4294{
4295
4296#ifndef __cplusplus
4297  /* Ultrix mips cc rejects this sort of thing.  */
4298  typedef int charset[2];
4299  const charset cs = { 0, 0 };
4300  /* SunOS 4.1.1 cc rejects this.  */
4301  char const *const *pcpcc;
4302  char **ppc;
4303  /* NEC SVR4.0.2 mips cc rejects this.  */
4304  struct point {int x, y;};
4305  static struct point const zero = {0,0};
4306  /* AIX XL C 1.02.0.0 rejects this.
4307     It does not let you subtract one const X* pointer from another in
4308     an arm of an if-expression whose if-part is not a constant
4309     expression */
4310  const char *g = "string";
4311  pcpcc = &g + (g ? g-g : 0);
4312  /* HPUX 7.0 cc rejects these. */
4313  ++pcpcc;
4314  ppc = (char**) pcpcc;
4315  pcpcc = (char const *const *) ppc;
4316  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4317    char tx;
4318    char *t = &tx;
4319    char const *s = 0 ? (char *) 0 : (char const *) 0;
4320
4321    *t++ = 0;
4322    if (s) return 0;
4323  }
4324  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4325    int x[] = {25, 17};
4326    const int *foo = &x[0];
4327    ++foo;
4328  }
4329  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4330    typedef const int *iptr;
4331    iptr p = 0;
4332    ++p;
4333  }
4334  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4335       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4336    struct s { int j; const int *ap[3]; } bx;
4337    struct s *b = &bx; b->j = 5;
4338  }
4339  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4340    const int foo = 10;
4341    if (!foo) return 0;
4342  }
4343  return !cs[0] && !zero.x;
4344#endif
4345
4346  ;
4347  return 0;
4348}
4349_ACEOF
4350if ac_fn_c_try_compile "$LINENO"; then :
4351  ac_cv_c_const=yes
4352else
4353  ac_cv_c_const=no
4354fi
4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4358$as_echo "$ac_cv_c_const" >&6; }
4359if test $ac_cv_c_const = no; then
4360
4361$as_echo "#define const /**/" >>confdefs.h
4362
4363fi
4364
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4366$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4367if ${ac_cv_header_stdbool_h+:} false; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h.  */
4372
4373             #include <stdbool.h>
4374             #ifndef bool
4375              "error: bool is not defined"
4376             #endif
4377             #ifndef false
4378              "error: false is not defined"
4379             #endif
4380             #if false
4381              "error: false is not 0"
4382             #endif
4383             #ifndef true
4384              "error: true is not defined"
4385             #endif
4386             #if true != 1
4387              "error: true is not 1"
4388             #endif
4389             #ifndef __bool_true_false_are_defined
4390              "error: __bool_true_false_are_defined is not defined"
4391             #endif
4392
4393             struct s { _Bool s: 1; _Bool t; } s;
4394
4395             char a[true == 1 ? 1 : -1];
4396             char b[false == 0 ? 1 : -1];
4397             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4398             char d[(bool) 0.5 == true ? 1 : -1];
4399             /* See body of main program for 'e'.  */
4400             char f[(_Bool) 0.0 == false ? 1 : -1];
4401             char g[true];
4402             char h[sizeof (_Bool)];
4403             char i[sizeof s.t];
4404             enum { j = false, k = true, l = false * true, m = true * 256 };
4405             /* The following fails for
4406                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4407             _Bool n[m];
4408             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4409             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4410             /* Catch a bug in an HP-UX C compiler.  See
4411                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4412                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4413              */
4414             _Bool q = true;
4415             _Bool *pq = &q;
4416
4417int
4418main ()
4419{
4420
4421             bool e = &s;
4422             *pq |= q;
4423             *pq |= ! q;
4424             /* Refer to every declared value, to avoid compiler optimizations.  */
4425             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4426                     + !m + !n + !o + !p + !q + !pq);
4427
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_c_try_compile "$LINENO"; then :
4433  ac_cv_header_stdbool_h=yes
4434else
4435  ac_cv_header_stdbool_h=no
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4440$as_echo "$ac_cv_header_stdbool_h" >&6; }
4441   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4442if test "x$ac_cv_type__Bool" = xyes; then :
4443
4444cat >>confdefs.h <<_ACEOF
4445#define HAVE__BOOL 1
4446_ACEOF
4447
4448
4449fi
4450
4451
4452if test $ac_cv_header_stdbool_h = yes; then
4453
4454$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4455
4456fi
4457
4458# Check whether --enable-static was given.
4459if test "${enable_static+set}" = set; then :
4460  enableval=$enable_static; p=${PACKAGE-default}
4461    case $enableval in
4462    yes) enable_static=yes ;;
4463    no) enable_static=no ;;
4464    *)
4465     enable_static=no
4466      # Look at the argument we got.  We use all the common list separators.
4467      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4468      for pkg in $enableval; do
4469	IFS="$lt_save_ifs"
4470	if test "X$pkg" = "X$p"; then
4471	  enable_static=yes
4472	fi
4473      done
4474      IFS="$lt_save_ifs"
4475      ;;
4476    esac
4477else
4478  enable_static=no
4479fi
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489enable_win32_dll=yes
4490
4491case $host in
4492*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4493  if test -n "$ac_tool_prefix"; then
4494  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4495set dummy ${ac_tool_prefix}as; ac_word=$2
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497$as_echo_n "checking for $ac_word... " >&6; }
4498if ${ac_cv_prog_AS+:} false; then :
4499  $as_echo_n "(cached) " >&6
4500else
4501  if test -n "$AS"; then
4502  ac_cv_prog_AS="$AS" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_exec_ext in '' $ac_executable_extensions; do
4510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511    ac_cv_prog_AS="${ac_tool_prefix}as"
4512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516  done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521AS=$ac_cv_prog_AS
4522if test -n "$AS"; then
4523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4524$as_echo "$AS" >&6; }
4525else
4526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527$as_echo "no" >&6; }
4528fi
4529
4530
4531fi
4532if test -z "$ac_cv_prog_AS"; then
4533  ac_ct_AS=$AS
4534  # Extract the first word of "as", so it can be a program name with args.
4535set dummy as; 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_AS+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  if test -n "$ac_ct_AS"; then
4542  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as"
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_AS=$ac_cv_prog_ac_ct_AS
4562if test -n "$ac_ct_AS"; then
4563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4564$as_echo "$ac_ct_AS" >&6; }
4565else
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568fi
4569
4570  if test "x$ac_ct_AS" = x; then
4571    AS="false"
4572  else
4573    case $cross_compiling:$ac_tool_warned in
4574yes:)
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577ac_tool_warned=yes ;;
4578esac
4579    AS=$ac_ct_AS
4580  fi
4581else
4582  AS="$ac_cv_prog_AS"
4583fi
4584
4585  if test -n "$ac_tool_prefix"; then
4586  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4587set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589$as_echo_n "checking for $ac_word... " >&6; }
4590if ${ac_cv_prog_DLLTOOL+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if test -n "$DLLTOOL"; then
4594  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_exec_ext in '' $ac_executable_extensions; do
4602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605    break 2
4606  fi
4607done
4608  done
4609IFS=$as_save_IFS
4610
4611fi
4612fi
4613DLLTOOL=$ac_cv_prog_DLLTOOL
4614if test -n "$DLLTOOL"; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4616$as_echo "$DLLTOOL" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620fi
4621
4622
4623fi
4624if test -z "$ac_cv_prog_DLLTOOL"; then
4625  ac_ct_DLLTOOL=$DLLTOOL
4626  # Extract the first word of "dlltool", so it can be a program name with args.
4627set dummy dlltool; ac_word=$2
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629$as_echo_n "checking for $ac_word... " >&6; }
4630if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633  if test -n "$ac_ct_DLLTOOL"; then
4634  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639  IFS=$as_save_IFS
4640  test -z "$as_dir" && as_dir=.
4641    for ac_exec_ext in '' $ac_executable_extensions; do
4642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645    break 2
4646  fi
4647done
4648  done
4649IFS=$as_save_IFS
4650
4651fi
4652fi
4653ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4654if test -n "$ac_ct_DLLTOOL"; then
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4656$as_echo "$ac_ct_DLLTOOL" >&6; }
4657else
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659$as_echo "no" >&6; }
4660fi
4661
4662  if test "x$ac_ct_DLLTOOL" = x; then
4663    DLLTOOL="false"
4664  else
4665    case $cross_compiling:$ac_tool_warned in
4666yes:)
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4669ac_tool_warned=yes ;;
4670esac
4671    DLLTOOL=$ac_ct_DLLTOOL
4672  fi
4673else
4674  DLLTOOL="$ac_cv_prog_DLLTOOL"
4675fi
4676
4677  if test -n "$ac_tool_prefix"; then
4678  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4679set dummy ${ac_tool_prefix}objdump; ac_word=$2
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681$as_echo_n "checking for $ac_word... " >&6; }
4682if ${ac_cv_prog_OBJDUMP+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  if test -n "$OBJDUMP"; then
4686  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4687else
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691  IFS=$as_save_IFS
4692  test -z "$as_dir" && as_dir=.
4693    for ac_exec_ext in '' $ac_executable_extensions; do
4694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697    break 2
4698  fi
4699done
4700  done
4701IFS=$as_save_IFS
4702
4703fi
4704fi
4705OBJDUMP=$ac_cv_prog_OBJDUMP
4706if test -n "$OBJDUMP"; then
4707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4708$as_echo "$OBJDUMP" >&6; }
4709else
4710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711$as_echo "no" >&6; }
4712fi
4713
4714
4715fi
4716if test -z "$ac_cv_prog_OBJDUMP"; then
4717  ac_ct_OBJDUMP=$OBJDUMP
4718  # Extract the first word of "objdump", so it can be a program name with args.
4719set dummy objdump; ac_word=$2
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721$as_echo_n "checking for $ac_word... " >&6; }
4722if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  if test -n "$ac_ct_OBJDUMP"; then
4726  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4727else
4728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731  IFS=$as_save_IFS
4732  test -z "$as_dir" && as_dir=.
4733    for ac_exec_ext in '' $ac_executable_extensions; do
4734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737    break 2
4738  fi
4739done
4740  done
4741IFS=$as_save_IFS
4742
4743fi
4744fi
4745ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4746if test -n "$ac_ct_OBJDUMP"; then
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4748$as_echo "$ac_ct_OBJDUMP" >&6; }
4749else
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751$as_echo "no" >&6; }
4752fi
4753
4754  if test "x$ac_ct_OBJDUMP" = x; then
4755    OBJDUMP="false"
4756  else
4757    case $cross_compiling:$ac_tool_warned in
4758yes:)
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761ac_tool_warned=yes ;;
4762esac
4763    OBJDUMP=$ac_ct_OBJDUMP
4764  fi
4765else
4766  OBJDUMP="$ac_cv_prog_OBJDUMP"
4767fi
4768
4769  ;;
4770esac
4771
4772test -z "$AS" && AS=as
4773
4774
4775
4776
4777
4778test -z "$DLLTOOL" && DLLTOOL=dlltool
4779
4780
4781
4782
4783
4784test -z "$OBJDUMP" && OBJDUMP=objdump
4785
4786
4787
4788
4789
4790
4791
4792
4793# Check whether --enable-debug was given.
4794if test "${enable_debug+set}" = set; then :
4795  enableval=$enable_debug;
4796fi
4797
4798
4799# Check whether --with-ggobi was given.
4800if test "${with_ggobi+set}" = set; then :
4801  withval=$with_ggobi;
4802fi
4803
4804
4805if test -n "../.."; then
4806  GGOBI_PKG_CONFIG_PATH="../.."
4807fi
4808
4809if test -n "$with_ggobi" && ! test "$with_ggobi" = "no" ;  then
4810  GGOBI_PKG_CONFIG_PATH="$with_ggobi"
4811fi
4812
4813if test -n "$PKG_CONFIG_PATH"; then
4814  PKG_CONFIG_PATH="$GGOBI_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
4815else
4816  PKG_CONFIG_PATH="$GGOBI_PKG_CONFIG_PATH"
4817fi
4818
4819echo "pkgconfig path: ${PKG_CONFIG_PATH}"
4820export PKG_CONFIG_PATH
4821
4822
4823pkg_failed=no
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GGOBI" >&5
4825$as_echo_n "checking for GGOBI... " >&6; }
4826
4827if test -n "$GGOBI_CFLAGS"; then
4828    pkg_cv_GGOBI_CFLAGS="$GGOBI_CFLAGS"
4829 elif test -n "$PKG_CONFIG"; then
4830    if test -n "$PKG_CONFIG" && \
4831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ggobi\""; } >&5
4832  ($PKG_CONFIG --exists --print-errors "ggobi") 2>&5
4833  ac_status=$?
4834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835  test $ac_status = 0; }; then
4836  pkg_cv_GGOBI_CFLAGS=`$PKG_CONFIG --cflags "ggobi" 2>/dev/null`
4837		      test "x$?" != "x0" && pkg_failed=yes
4838else
4839  pkg_failed=yes
4840fi
4841 else
4842    pkg_failed=untried
4843fi
4844if test -n "$GGOBI_LIBS"; then
4845    pkg_cv_GGOBI_LIBS="$GGOBI_LIBS"
4846 elif test -n "$PKG_CONFIG"; then
4847    if test -n "$PKG_CONFIG" && \
4848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ggobi\""; } >&5
4849  ($PKG_CONFIG --exists --print-errors "ggobi") 2>&5
4850  ac_status=$?
4851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4852  test $ac_status = 0; }; then
4853  pkg_cv_GGOBI_LIBS=`$PKG_CONFIG --libs "ggobi" 2>/dev/null`
4854		      test "x$?" != "x0" && pkg_failed=yes
4855else
4856  pkg_failed=yes
4857fi
4858 else
4859    pkg_failed=untried
4860fi
4861
4862
4863
4864if test $pkg_failed = yes; then
4865   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
4867
4868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4869        _pkg_short_errors_supported=yes
4870else
4871        _pkg_short_errors_supported=no
4872fi
4873        if test $_pkg_short_errors_supported = yes; then
4874	        GGOBI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ggobi" 2>&1`
4875        else
4876	        GGOBI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ggobi" 2>&1`
4877        fi
4878	# Put the nasty error message in config.log where it belongs
4879	echo "$GGOBI_PKG_ERRORS" >&5
4880
4881	as_fn_error $? "Package requirements (ggobi) were not met:
4882
4883$GGOBI_PKG_ERRORS
4884
4885Consider adjusting the PKG_CONFIG_PATH environment variable if you
4886installed software in a non-standard prefix.
4887
4888Alternatively, you may set the environment variables GGOBI_CFLAGS
4889and GGOBI_LIBS to avoid the need to call pkg-config.
4890See the pkg-config man page for more details." "$LINENO" 5
4891elif test $pkg_failed = untried; then
4892     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893$as_echo "no" >&6; }
4894	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4896as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4897is in your PATH or set the PKG_CONFIG environment variable to the full
4898path to pkg-config.
4899
4900Alternatively, you may set the environment variables GGOBI_CFLAGS
4901and GGOBI_LIBS to avoid the need to call pkg-config.
4902See the pkg-config man page for more details.
4903
4904To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4905See \`config.log' for more details" "$LINENO" 5; }
4906else
4907	GGOBI_CFLAGS=$pkg_cv_GGOBI_CFLAGS
4908	GGOBI_LIBS=$pkg_cv_GGOBI_LIBS
4909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4910$as_echo "yes" >&6; }
4911
4912fi
4913
4914
4915
4916if test -n "$enable_debug" && ! test "$enable_debug" = "no" ;  then
4917 SRC_DEBUG="-g -Wall"
4918fi
4919
4920
4921
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
4923$as_echo_n "checking for native Win32... " >&6; }
4924case "$host" in
4925  *-*-mingw*)
4926    os_win32=yes
4927    ;;
4928  *)
4929    os_win32=no
4930    ;;
4931esac
4932echo "${os_win32}"
4933 if test "$os_win32" = "yes"; then
4934  OS_WIN32_TRUE=
4935  OS_WIN32_FALSE='#'
4936else
4937  OS_WIN32_TRUE='#'
4938  OS_WIN32_FALSE=
4939fi
4940
4941
4942case `pwd` in
4943  *\ * | *\	*)
4944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4945$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4946esac
4947
4948
4949
4950macro_version='2.4.2'
4951macro_revision='1.3337'
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965ltmain="$ac_aux_dir/ltmain.sh"
4966
4967# Backslashify metacharacters that are still active within
4968# double-quoted strings.
4969sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4970
4971# Same as above, but do not quote variable references.
4972double_quote_subst='s/\(["`\\]\)/\\\1/g'
4973
4974# Sed substitution to delay expansion of an escaped shell variable in a
4975# double_quote_subst'ed string.
4976delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4977
4978# Sed substitution to delay expansion of an escaped single quote.
4979delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4980
4981# Sed substitution to avoid accidental globbing in evaled expressions
4982no_glob_subst='s/\*/\\\*/g'
4983
4984ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4985ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4986ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4989$as_echo_n "checking how to print strings... " >&6; }
4990# Test print first, because it will be a builtin if present.
4991if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4992   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4993  ECHO='print -r --'
4994elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4995  ECHO='printf %s\n'
4996else
4997  # Use this function as a fallback that always works.
4998  func_fallback_echo ()
4999  {
5000    eval 'cat <<_LTECHO_EOF
5001$1
5002_LTECHO_EOF'
5003  }
5004  ECHO='func_fallback_echo'
5005fi
5006
5007# func_echo_all arg...
5008# Invoke $ECHO with all args, space-separated.
5009func_echo_all ()
5010{
5011    $ECHO ""
5012}
5013
5014case "$ECHO" in
5015  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5016$as_echo "printf" >&6; } ;;
5017  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5018$as_echo "print -r" >&6; } ;;
5019  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5020$as_echo "cat" >&6; } ;;
5021esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5037$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5038if ${ac_cv_path_SED+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5042     for ac_i in 1 2 3 4 5 6 7; do
5043       ac_script="$ac_script$as_nl$ac_script"
5044     done
5045     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5046     { ac_script=; unset ac_script;}
5047     if test -z "$SED"; then
5048  ac_path_SED_found=false
5049  # Loop through the user's path and test for each of PROGNAME-LIST
5050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053  IFS=$as_save_IFS
5054  test -z "$as_dir" && as_dir=.
5055    for ac_prog in sed gsed; do
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5058      as_fn_executable_p "$ac_path_SED" || continue
5059# Check for GNU ac_path_SED and select it if it is found.
5060  # Check for GNU $ac_path_SED
5061case `"$ac_path_SED" --version 2>&1` in
5062*GNU*)
5063  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5064*)
5065  ac_count=0
5066  $as_echo_n 0123456789 >"conftest.in"
5067  while :
5068  do
5069    cat "conftest.in" "conftest.in" >"conftest.tmp"
5070    mv "conftest.tmp" "conftest.in"
5071    cp "conftest.in" "conftest.nl"
5072    $as_echo '' >> "conftest.nl"
5073    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075    as_fn_arith $ac_count + 1 && ac_count=$as_val
5076    if test $ac_count -gt ${ac_path_SED_max-0}; then
5077      # Best one so far, save it but keep looking for a better one
5078      ac_cv_path_SED="$ac_path_SED"
5079      ac_path_SED_max=$ac_count
5080    fi
5081    # 10*(2^10) chars as input seems more than enough
5082    test $ac_count -gt 10 && break
5083  done
5084  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085esac
5086
5087      $ac_path_SED_found && break 3
5088    done
5089  done
5090  done
5091IFS=$as_save_IFS
5092  if test -z "$ac_cv_path_SED"; then
5093    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5094  fi
5095else
5096  ac_cv_path_SED=$SED
5097fi
5098
5099fi
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5101$as_echo "$ac_cv_path_SED" >&6; }
5102 SED="$ac_cv_path_SED"
5103  rm -f conftest.sed
5104
5105test -z "$SED" && SED=sed
5106Xsed="$SED -e 1s/^X//"
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5119$as_echo_n "checking for fgrep... " >&6; }
5120if ${ac_cv_path_FGREP+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5124   then ac_cv_path_FGREP="$GREP -F"
5125   else
5126     if test -z "$FGREP"; then
5127  ac_path_FGREP_found=false
5128  # Loop through the user's path and test for each of PROGNAME-LIST
5129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131do
5132  IFS=$as_save_IFS
5133  test -z "$as_dir" && as_dir=.
5134    for ac_prog in fgrep; do
5135    for ac_exec_ext in '' $ac_executable_extensions; do
5136      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5137      as_fn_executable_p "$ac_path_FGREP" || continue
5138# Check for GNU ac_path_FGREP and select it if it is found.
5139  # Check for GNU $ac_path_FGREP
5140case `"$ac_path_FGREP" --version 2>&1` in
5141*GNU*)
5142  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5143*)
5144  ac_count=0
5145  $as_echo_n 0123456789 >"conftest.in"
5146  while :
5147  do
5148    cat "conftest.in" "conftest.in" >"conftest.tmp"
5149    mv "conftest.tmp" "conftest.in"
5150    cp "conftest.in" "conftest.nl"
5151    $as_echo 'FGREP' >> "conftest.nl"
5152    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5154    as_fn_arith $ac_count + 1 && ac_count=$as_val
5155    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5156      # Best one so far, save it but keep looking for a better one
5157      ac_cv_path_FGREP="$ac_path_FGREP"
5158      ac_path_FGREP_max=$ac_count
5159    fi
5160    # 10*(2^10) chars as input seems more than enough
5161    test $ac_count -gt 10 && break
5162  done
5163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164esac
5165
5166      $ac_path_FGREP_found && break 3
5167    done
5168  done
5169  done
5170IFS=$as_save_IFS
5171  if test -z "$ac_cv_path_FGREP"; then
5172    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173  fi
5174else
5175  ac_cv_path_FGREP=$FGREP
5176fi
5177
5178   fi
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5181$as_echo "$ac_cv_path_FGREP" >&6; }
5182 FGREP="$ac_cv_path_FGREP"
5183
5184
5185test -z "$GREP" && GREP=grep
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205# Check whether --with-gnu-ld was given.
5206if test "${with_gnu_ld+set}" = set; then :
5207  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5208else
5209  with_gnu_ld=no
5210fi
5211
5212ac_prog=ld
5213if test "$GCC" = yes; then
5214  # Check if gcc -print-prog-name=ld gives a path.
5215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5216$as_echo_n "checking for ld used by $CC... " >&6; }
5217  case $host in
5218  *-*-mingw*)
5219    # gcc leaves a trailing carriage return which upsets mingw
5220    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5221  *)
5222    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5223  esac
5224  case $ac_prog in
5225    # Accept absolute paths.
5226    [\\/]* | ?:[\\/]*)
5227      re_direlt='/[^/][^/]*/\.\./'
5228      # Canonicalize the pathname of ld
5229      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5230      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5231	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5232      done
5233      test -z "$LD" && LD="$ac_prog"
5234      ;;
5235  "")
5236    # If it fails, then pretend we aren't using GCC.
5237    ac_prog=ld
5238    ;;
5239  *)
5240    # If it is relative, then search for the first ld in PATH.
5241    with_gnu_ld=unknown
5242    ;;
5243  esac
5244elif test "$with_gnu_ld" = yes; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5246$as_echo_n "checking for GNU ld... " >&6; }
5247else
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5249$as_echo_n "checking for non-GNU ld... " >&6; }
5250fi
5251if ${lt_cv_path_LD+:} false; then :
5252  $as_echo_n "(cached) " >&6
5253else
5254  if test -z "$LD"; then
5255  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5256  for ac_dir in $PATH; do
5257    IFS="$lt_save_ifs"
5258    test -z "$ac_dir" && ac_dir=.
5259    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5260      lt_cv_path_LD="$ac_dir/$ac_prog"
5261      # Check to see if the program is GNU ld.  I'd rather use --version,
5262      # but apparently some variants of GNU ld only accept -v.
5263      # Break only if it was the GNU/non-GNU ld that we prefer.
5264      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5265      *GNU* | *'with BFD'*)
5266	test "$with_gnu_ld" != no && break
5267	;;
5268      *)
5269	test "$with_gnu_ld" != yes && break
5270	;;
5271      esac
5272    fi
5273  done
5274  IFS="$lt_save_ifs"
5275else
5276  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5277fi
5278fi
5279
5280LD="$lt_cv_path_LD"
5281if test -n "$LD"; then
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5283$as_echo "$LD" >&6; }
5284else
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
5288test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5290$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5291if ${lt_cv_prog_gnu_ld+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5295case `$LD -v 2>&1 </dev/null` in
5296*GNU* | *'with BFD'*)
5297  lt_cv_prog_gnu_ld=yes
5298  ;;
5299*)
5300  lt_cv_prog_gnu_ld=no
5301  ;;
5302esac
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5305$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5306with_gnu_ld=$lt_cv_prog_gnu_ld
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5317$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5318if ${lt_cv_path_NM+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  if test -n "$NM"; then
5322  # Let the user override the test.
5323  lt_cv_path_NM="$NM"
5324else
5325  lt_nm_to_check="${ac_tool_prefix}nm"
5326  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5327    lt_nm_to_check="$lt_nm_to_check nm"
5328  fi
5329  for lt_tmp_nm in $lt_nm_to_check; do
5330    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5331    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5332      IFS="$lt_save_ifs"
5333      test -z "$ac_dir" && ac_dir=.
5334      tmp_nm="$ac_dir/$lt_tmp_nm"
5335      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5336	# Check to see if the nm accepts a BSD-compat flag.
5337	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5338	#   nm: unknown option "B" ignored
5339	# Tru64's nm complains that /dev/null is an invalid object file
5340	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5341	*/dev/null* | *'Invalid file or object type'*)
5342	  lt_cv_path_NM="$tmp_nm -B"
5343	  break
5344	  ;;
5345	*)
5346	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5347	  */dev/null*)
5348	    lt_cv_path_NM="$tmp_nm -p"
5349	    break
5350	    ;;
5351	  *)
5352	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5353	    continue # so that we can try to find one that supports BSD flags
5354	    ;;
5355	  esac
5356	  ;;
5357	esac
5358      fi
5359    done
5360    IFS="$lt_save_ifs"
5361  done
5362  : ${lt_cv_path_NM=no}
5363fi
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5366$as_echo "$lt_cv_path_NM" >&6; }
5367if test "$lt_cv_path_NM" != "no"; then
5368  NM="$lt_cv_path_NM"
5369else
5370  # Didn't find any BSD compatible name lister, look for dumpbin.
5371  if test -n "$DUMPBIN"; then :
5372    # Let the user override the test.
5373  else
5374    if test -n "$ac_tool_prefix"; then
5375  for ac_prog in dumpbin "link -dump"
5376  do
5377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if ${ac_cv_prog_DUMPBIN+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  if test -n "$DUMPBIN"; then
5385  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399  done
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404DUMPBIN=$ac_cv_prog_DUMPBIN
5405if test -n "$DUMPBIN"; then
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5407$as_echo "$DUMPBIN" >&6; }
5408else
5409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
5411fi
5412
5413
5414    test -n "$DUMPBIN" && break
5415  done
5416fi
5417if test -z "$DUMPBIN"; then
5418  ac_ct_DUMPBIN=$DUMPBIN
5419  for ac_prog in dumpbin "link -dump"
5420do
5421  # Extract the first word of "$ac_prog", so it can be a program name with args.
5422set dummy $ac_prog; ac_word=$2
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424$as_echo_n "checking for $ac_word... " >&6; }
5425if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  if test -n "$ac_ct_DUMPBIN"; then
5429  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436    for ac_exec_ext in '' $ac_executable_extensions; do
5437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440    break 2
5441  fi
5442done
5443  done
5444IFS=$as_save_IFS
5445
5446fi
5447fi
5448ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5449if test -n "$ac_ct_DUMPBIN"; then
5450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5451$as_echo "$ac_ct_DUMPBIN" >&6; }
5452else
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454$as_echo "no" >&6; }
5455fi
5456
5457
5458  test -n "$ac_ct_DUMPBIN" && break
5459done
5460
5461  if test "x$ac_ct_DUMPBIN" = x; then
5462    DUMPBIN=":"
5463  else
5464    case $cross_compiling:$ac_tool_warned in
5465yes:)
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468ac_tool_warned=yes ;;
5469esac
5470    DUMPBIN=$ac_ct_DUMPBIN
5471  fi
5472fi
5473
5474    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5475    *COFF*)
5476      DUMPBIN="$DUMPBIN -symbols"
5477      ;;
5478    *)
5479      DUMPBIN=:
5480      ;;
5481    esac
5482  fi
5483
5484  if test "$DUMPBIN" != ":"; then
5485    NM="$DUMPBIN"
5486  fi
5487fi
5488test -z "$NM" && NM=nm
5489
5490
5491
5492
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5496$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5497if ${lt_cv_nm_interface+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  lt_cv_nm_interface="BSD nm"
5501  echo "int some_variable = 0;" > conftest.$ac_ext
5502  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5503  (eval "$ac_compile" 2>conftest.err)
5504  cat conftest.err >&5
5505  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5506  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5507  cat conftest.err >&5
5508  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5509  cat conftest.out >&5
5510  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5511    lt_cv_nm_interface="MS dumpbin"
5512  fi
5513  rm -f conftest*
5514fi
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5516$as_echo "$lt_cv_nm_interface" >&6; }
5517
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5519$as_echo_n "checking whether ln -s works... " >&6; }
5520LN_S=$as_ln_s
5521if test "$LN_S" = "ln -s"; then
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523$as_echo "yes" >&6; }
5524else
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5526$as_echo "no, using $LN_S" >&6; }
5527fi
5528
5529# find the maximum length of command line arguments
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5531$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5532if ${lt_cv_sys_max_cmd_len+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535    i=0
5536  teststring="ABCD"
5537
5538  case $build_os in
5539  msdosdjgpp*)
5540    # On DJGPP, this test can blow up pretty badly due to problems in libc
5541    # (any single argument exceeding 2000 bytes causes a buffer overrun
5542    # during glob expansion).  Even if it were fixed, the result of this
5543    # check would be larger than it should be.
5544    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5545    ;;
5546
5547  gnu*)
5548    # Under GNU Hurd, this test is not required because there is
5549    # no limit to the length of command line arguments.
5550    # Libtool will interpret -1 as no limit whatsoever
5551    lt_cv_sys_max_cmd_len=-1;
5552    ;;
5553
5554  cygwin* | mingw* | cegcc*)
5555    # On Win9x/ME, this test blows up -- it succeeds, but takes
5556    # about 5 minutes as the teststring grows exponentially.
5557    # Worse, since 9x/ME are not pre-emptively multitasking,
5558    # you end up with a "frozen" computer, even though with patience
5559    # the test eventually succeeds (with a max line length of 256k).
5560    # Instead, let's just punt: use the minimum linelength reported by
5561    # all of the supported platforms: 8192 (on NT/2K/XP).
5562    lt_cv_sys_max_cmd_len=8192;
5563    ;;
5564
5565  mint*)
5566    # On MiNT this can take a long time and run out of memory.
5567    lt_cv_sys_max_cmd_len=8192;
5568    ;;
5569
5570  amigaos*)
5571    # On AmigaOS with pdksh, this test takes hours, literally.
5572    # So we just punt and use a minimum line length of 8192.
5573    lt_cv_sys_max_cmd_len=8192;
5574    ;;
5575
5576  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5577    # This has been around since 386BSD, at least.  Likely further.
5578    if test -x /sbin/sysctl; then
5579      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5580    elif test -x /usr/sbin/sysctl; then
5581      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5582    else
5583      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5584    fi
5585    # And add a safety zone
5586    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5587    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5588    ;;
5589
5590  interix*)
5591    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5592    lt_cv_sys_max_cmd_len=196608
5593    ;;
5594
5595  os2*)
5596    # The test takes a long time on OS/2.
5597    lt_cv_sys_max_cmd_len=8192
5598    ;;
5599
5600  osf*)
5601    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5602    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5603    # nice to cause kernel panics so lets avoid the loop below.
5604    # First set a reasonable default.
5605    lt_cv_sys_max_cmd_len=16384
5606    #
5607    if test -x /sbin/sysconfig; then
5608      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5609        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5610      esac
5611    fi
5612    ;;
5613  sco3.2v5*)
5614    lt_cv_sys_max_cmd_len=102400
5615    ;;
5616  sysv5* | sco5v6* | sysv4.2uw2*)
5617    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5618    if test -n "$kargmax"; then
5619      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5620    else
5621      lt_cv_sys_max_cmd_len=32768
5622    fi
5623    ;;
5624  *)
5625    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5626    if test -n "$lt_cv_sys_max_cmd_len"; then
5627      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629    else
5630      # Make teststring a little bigger before we do anything with it.
5631      # a 1K string should be a reasonable start.
5632      for i in 1 2 3 4 5 6 7 8 ; do
5633        teststring=$teststring$teststring
5634      done
5635      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5636      # If test is not a shell built-in, we'll probably end up computing a
5637      # maximum length that is only half of the actual maximum length, but
5638      # we can't tell.
5639      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5640	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5641	      test $i != 17 # 1/2 MB should be enough
5642      do
5643        i=`expr $i + 1`
5644        teststring=$teststring$teststring
5645      done
5646      # Only check the string length outside the loop.
5647      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5648      teststring=
5649      # Add a significant safety factor because C++ compilers can tack on
5650      # massive amounts of additional arguments before passing them to the
5651      # linker.  It appears as though 1/2 is a usable value.
5652      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653    fi
5654    ;;
5655  esac
5656
5657fi
5658
5659if test -n $lt_cv_sys_max_cmd_len ; then
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5661$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5664$as_echo "none" >&6; }
5665fi
5666max_cmd_len=$lt_cv_sys_max_cmd_len
5667
5668
5669
5670
5671
5672
5673: ${CP="cp -f"}
5674: ${MV="mv -f"}
5675: ${RM="rm -f"}
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5678$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5679# Try some XSI features
5680xsi_shell=no
5681( _lt_dummy="a/b/c"
5682  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5683      = c,a/b,b/c, \
5684    && eval 'test $(( 1 + 1 )) -eq 2 \
5685    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5686  && xsi_shell=yes
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5688$as_echo "$xsi_shell" >&6; }
5689
5690
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5692$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5693lt_shell_append=no
5694( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5695    >/dev/null 2>&1 \
5696  && lt_shell_append=yes
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5698$as_echo "$lt_shell_append" >&6; }
5699
5700
5701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5702  lt_unset=unset
5703else
5704  lt_unset=false
5705fi
5706
5707
5708
5709
5710
5711# test EBCDIC or ASCII
5712case `echo X|tr X '\101'` in
5713 A) # ASCII based system
5714    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5715  lt_SP2NL='tr \040 \012'
5716  lt_NL2SP='tr \015\012 \040\040'
5717  ;;
5718 *) # EBCDIC based system
5719  lt_SP2NL='tr \100 \n'
5720  lt_NL2SP='tr \r\n \100\100'
5721  ;;
5722esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5733$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5734if ${lt_cv_to_host_file_cmd+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  case $host in
5738  *-*-mingw* )
5739    case $build in
5740      *-*-mingw* ) # actually msys
5741        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5742        ;;
5743      *-*-cygwin* )
5744        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5745        ;;
5746      * ) # otherwise, assume *nix
5747        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5748        ;;
5749    esac
5750    ;;
5751  *-*-cygwin* )
5752    case $build in
5753      *-*-mingw* ) # actually msys
5754        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5755        ;;
5756      *-*-cygwin* )
5757        lt_cv_to_host_file_cmd=func_convert_file_noop
5758        ;;
5759      * ) # otherwise, assume *nix
5760        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5761        ;;
5762    esac
5763    ;;
5764  * ) # unhandled hosts (and "normal" native builds)
5765    lt_cv_to_host_file_cmd=func_convert_file_noop
5766    ;;
5767esac
5768
5769fi
5770
5771to_host_file_cmd=$lt_cv_to_host_file_cmd
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5773$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5774
5775
5776
5777
5778
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5780$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5781if ${lt_cv_to_tool_file_cmd+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  #assume ordinary cross tools, or native build.
5785lt_cv_to_tool_file_cmd=func_convert_file_noop
5786case $host in
5787  *-*-mingw* )
5788    case $build in
5789      *-*-mingw* ) # actually msys
5790        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5791        ;;
5792    esac
5793    ;;
5794esac
5795
5796fi
5797
5798to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5800$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5801
5802
5803
5804
5805
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5807$as_echo_n "checking for $LD option to reload object files... " >&6; }
5808if ${lt_cv_ld_reload_flag+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  lt_cv_ld_reload_flag='-r'
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5814$as_echo "$lt_cv_ld_reload_flag" >&6; }
5815reload_flag=$lt_cv_ld_reload_flag
5816case $reload_flag in
5817"" | " "*) ;;
5818*) reload_flag=" $reload_flag" ;;
5819esac
5820reload_cmds='$LD$reload_flag -o $output$reload_objs'
5821case $host_os in
5822  cygwin* | mingw* | pw32* | cegcc*)
5823    if test "$GCC" != yes; then
5824      reload_cmds=false
5825    fi
5826    ;;
5827  darwin*)
5828    if test "$GCC" = yes; then
5829      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5830    else
5831      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5832    fi
5833    ;;
5834esac
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844if test -n "$ac_tool_prefix"; then
5845  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5846set dummy ${ac_tool_prefix}objdump; ac_word=$2
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848$as_echo_n "checking for $ac_word... " >&6; }
5849if ${ac_cv_prog_OBJDUMP+:} false; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  if test -n "$OBJDUMP"; then
5853  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864    break 2
5865  fi
5866done
5867  done
5868IFS=$as_save_IFS
5869
5870fi
5871fi
5872OBJDUMP=$ac_cv_prog_OBJDUMP
5873if test -n "$OBJDUMP"; then
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5875$as_echo "$OBJDUMP" >&6; }
5876else
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881
5882fi
5883if test -z "$ac_cv_prog_OBJDUMP"; then
5884  ac_ct_OBJDUMP=$OBJDUMP
5885  # Extract the first word of "objdump", so it can be a program name with args.
5886set dummy objdump; ac_word=$2
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
5889if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  if test -n "$ac_ct_OBJDUMP"; then
5893  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898  IFS=$as_save_IFS
5899  test -z "$as_dir" && as_dir=.
5900    for ac_exec_ext in '' $ac_executable_extensions; do
5901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904    break 2
5905  fi
5906done
5907  done
5908IFS=$as_save_IFS
5909
5910fi
5911fi
5912ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5913if test -n "$ac_ct_OBJDUMP"; then
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5915$as_echo "$ac_ct_OBJDUMP" >&6; }
5916else
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919fi
5920
5921  if test "x$ac_ct_OBJDUMP" = x; then
5922    OBJDUMP="false"
5923  else
5924    case $cross_compiling:$ac_tool_warned in
5925yes:)
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928ac_tool_warned=yes ;;
5929esac
5930    OBJDUMP=$ac_ct_OBJDUMP
5931  fi
5932else
5933  OBJDUMP="$ac_cv_prog_OBJDUMP"
5934fi
5935
5936test -z "$OBJDUMP" && OBJDUMP=objdump
5937
5938
5939
5940
5941
5942
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5944$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5945if ${lt_cv_deplibs_check_method+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  lt_cv_file_magic_cmd='$MAGIC_CMD'
5949lt_cv_file_magic_test_file=
5950lt_cv_deplibs_check_method='unknown'
5951# Need to set the preceding variable on all platforms that support
5952# interlibrary dependencies.
5953# 'none' -- dependencies not supported.
5954# `unknown' -- same as none, but documents that we really don't know.
5955# 'pass_all' -- all dependencies passed with no checks.
5956# 'test_compile' -- check by making test program.
5957# 'file_magic [[regex]]' -- check by looking for files in library path
5958# which responds to the $file_magic_cmd with a given extended regex.
5959# If you have `file' or equivalent on your system and you're not sure
5960# whether `pass_all' will *always* work, you probably want this one.
5961
5962case $host_os in
5963aix[4-9]*)
5964  lt_cv_deplibs_check_method=pass_all
5965  ;;
5966
5967beos*)
5968  lt_cv_deplibs_check_method=pass_all
5969  ;;
5970
5971bsdi[45]*)
5972  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5973  lt_cv_file_magic_cmd='/usr/bin/file -L'
5974  lt_cv_file_magic_test_file=/shlib/libc.so
5975  ;;
5976
5977cygwin*)
5978  # func_win32_libid is a shell function defined in ltmain.sh
5979  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5980  lt_cv_file_magic_cmd='func_win32_libid'
5981  ;;
5982
5983mingw* | pw32*)
5984  # Base MSYS/MinGW do not provide the 'file' command needed by
5985  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5986  # unless we find 'file', for example because we are cross-compiling.
5987  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5988  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5989    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5990    lt_cv_file_magic_cmd='func_win32_libid'
5991  else
5992    # Keep this pattern in sync with the one in func_win32_libid.
5993    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5994    lt_cv_file_magic_cmd='$OBJDUMP -f'
5995  fi
5996  ;;
5997
5998cegcc*)
5999  # use the weaker test based on 'objdump'. See mingw*.
6000  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6001  lt_cv_file_magic_cmd='$OBJDUMP -f'
6002  ;;
6003
6004darwin* | rhapsody*)
6005  lt_cv_deplibs_check_method=pass_all
6006  ;;
6007
6008freebsd* | dragonfly*)
6009  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6010    case $host_cpu in
6011    i*86 )
6012      # Not sure whether the presence of OpenBSD here was a mistake.
6013      # Let's accept both of them until this is cleared up.
6014      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6015      lt_cv_file_magic_cmd=/usr/bin/file
6016      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6017      ;;
6018    esac
6019  else
6020    lt_cv_deplibs_check_method=pass_all
6021  fi
6022  ;;
6023
6024gnu*)
6025  lt_cv_deplibs_check_method=pass_all
6026  ;;
6027
6028haiku*)
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032hpux10.20* | hpux11*)
6033  lt_cv_file_magic_cmd=/usr/bin/file
6034  case $host_cpu in
6035  ia64*)
6036    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6037    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6038    ;;
6039  hppa*64*)
6040    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]'
6041    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6042    ;;
6043  *)
6044    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6045    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6046    ;;
6047  esac
6048  ;;
6049
6050interix[3-9]*)
6051  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6052  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6053  ;;
6054
6055irix5* | irix6* | nonstopux*)
6056  case $LD in
6057  *-32|*"-32 ") libmagic=32-bit;;
6058  *-n32|*"-n32 ") libmagic=N32;;
6059  *-64|*"-64 ") libmagic=64-bit;;
6060  *) libmagic=never-match;;
6061  esac
6062  lt_cv_deplibs_check_method=pass_all
6063  ;;
6064
6065# This must be glibc/ELF.
6066linux* | k*bsd*-gnu | kopensolaris*-gnu)
6067  lt_cv_deplibs_check_method=pass_all
6068  ;;
6069
6070netbsd*)
6071  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6073  else
6074    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6075  fi
6076  ;;
6077
6078newos6*)
6079  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6080  lt_cv_file_magic_cmd=/usr/bin/file
6081  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6082  ;;
6083
6084*nto* | *qnx*)
6085  lt_cv_deplibs_check_method=pass_all
6086  ;;
6087
6088openbsd*)
6089  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6090    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6091  else
6092    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6093  fi
6094  ;;
6095
6096osf3* | osf4* | osf5*)
6097  lt_cv_deplibs_check_method=pass_all
6098  ;;
6099
6100rdos*)
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104solaris*)
6105  lt_cv_deplibs_check_method=pass_all
6106  ;;
6107
6108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6109  lt_cv_deplibs_check_method=pass_all
6110  ;;
6111
6112sysv4 | sysv4.3*)
6113  case $host_vendor in
6114  motorola)
6115    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]'
6116    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6117    ;;
6118  ncr)
6119    lt_cv_deplibs_check_method=pass_all
6120    ;;
6121  sequent)
6122    lt_cv_file_magic_cmd='/bin/file'
6123    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6124    ;;
6125  sni)
6126    lt_cv_file_magic_cmd='/bin/file'
6127    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6128    lt_cv_file_magic_test_file=/lib/libc.so
6129    ;;
6130  siemens)
6131    lt_cv_deplibs_check_method=pass_all
6132    ;;
6133  pc)
6134    lt_cv_deplibs_check_method=pass_all
6135    ;;
6136  esac
6137  ;;
6138
6139tpf*)
6140  lt_cv_deplibs_check_method=pass_all
6141  ;;
6142esac
6143
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6146$as_echo "$lt_cv_deplibs_check_method" >&6; }
6147
6148file_magic_glob=
6149want_nocaseglob=no
6150if test "$build" = "$host"; then
6151  case $host_os in
6152  mingw* | pw32*)
6153    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6154      want_nocaseglob=yes
6155    else
6156      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6157    fi
6158    ;;
6159  esac
6160fi
6161
6162file_magic_cmd=$lt_cv_file_magic_cmd
6163deplibs_check_method=$lt_cv_deplibs_check_method
6164test -z "$deplibs_check_method" && deplibs_check_method=unknown
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187if test -n "$ac_tool_prefix"; then
6188  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_DLLTOOL+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$DLLTOOL"; then
6196  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215DLLTOOL=$ac_cv_prog_DLLTOOL
6216if test -n "$DLLTOOL"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6218$as_echo "$DLLTOOL" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_DLLTOOL"; then
6227  ac_ct_DLLTOOL=$DLLTOOL
6228  # Extract the first word of "dlltool", so it can be a program name with args.
6229set dummy dlltool; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$ac_ct_DLLTOOL"; then
6236  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6256if test -n "$ac_ct_DLLTOOL"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6258$as_echo "$ac_ct_DLLTOOL" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264  if test "x$ac_ct_DLLTOOL" = x; then
6265    DLLTOOL="false"
6266  else
6267    case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273    DLLTOOL=$ac_ct_DLLTOOL
6274  fi
6275else
6276  DLLTOOL="$ac_cv_prog_DLLTOOL"
6277fi
6278
6279test -z "$DLLTOOL" && DLLTOOL=dlltool
6280
6281
6282
6283
6284
6285
6286
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6288$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6289if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6290  $as_echo_n "(cached) " >&6
6291else
6292  lt_cv_sharedlib_from_linklib_cmd='unknown'
6293
6294case $host_os in
6295cygwin* | mingw* | pw32* | cegcc*)
6296  # two different shell functions defined in ltmain.sh
6297  # decide which to use based on capabilities of $DLLTOOL
6298  case `$DLLTOOL --help 2>&1` in
6299  *--identify-strict*)
6300    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6301    ;;
6302  *)
6303    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6304    ;;
6305  esac
6306  ;;
6307*)
6308  # fallback: assume linklib IS sharedlib
6309  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6310  ;;
6311esac
6312
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6315$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6316sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6317test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6318
6319
6320
6321
6322
6323
6324
6325if test -n "$ac_tool_prefix"; then
6326  for ac_prog in ar
6327  do
6328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
6332if ${ac_cv_prog_AR+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  if test -n "$AR"; then
6336  ac_cv_prog_AR="$AR" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341  IFS=$as_save_IFS
6342  test -z "$as_dir" && as_dir=.
6343    for ac_exec_ext in '' $ac_executable_extensions; do
6344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347    break 2
6348  fi
6349done
6350  done
6351IFS=$as_save_IFS
6352
6353fi
6354fi
6355AR=$ac_cv_prog_AR
6356if test -n "$AR"; then
6357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6358$as_echo "$AR" >&6; }
6359else
6360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
6362fi
6363
6364
6365    test -n "$AR" && break
6366  done
6367fi
6368if test -z "$AR"; then
6369  ac_ct_AR=$AR
6370  for ac_prog in ar
6371do
6372  # Extract the first word of "$ac_prog", so it can be a program name with args.
6373set dummy $ac_prog; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if ${ac_cv_prog_ac_ct_AR+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  if test -n "$ac_ct_AR"; then
6380  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385  IFS=$as_save_IFS
6386  test -z "$as_dir" && as_dir=.
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389    ac_cv_prog_ac_ct_AR="$ac_prog"
6390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391    break 2
6392  fi
6393done
6394  done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399ac_ct_AR=$ac_cv_prog_ac_ct_AR
6400if test -n "$ac_ct_AR"; then
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6402$as_echo "$ac_ct_AR" >&6; }
6403else
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408
6409  test -n "$ac_ct_AR" && break
6410done
6411
6412  if test "x$ac_ct_AR" = x; then
6413    AR="false"
6414  else
6415    case $cross_compiling:$ac_tool_warned in
6416yes:)
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419ac_tool_warned=yes ;;
6420esac
6421    AR=$ac_ct_AR
6422  fi
6423fi
6424
6425: ${AR=ar}
6426: ${AR_FLAGS=cru}
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6439$as_echo_n "checking for archiver @FILE support... " >&6; }
6440if ${lt_cv_ar_at_file+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  lt_cv_ar_at_file=no
6444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446
6447int
6448main ()
6449{
6450
6451  ;
6452  return 0;
6453}
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"; then :
6456  echo conftest.$ac_objext > conftest.lst
6457      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6458      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6459  (eval $lt_ar_try) 2>&5
6460  ac_status=$?
6461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462  test $ac_status = 0; }
6463      if test "$ac_status" -eq 0; then
6464	# Ensure the archiver fails upon bogus file names.
6465	rm -f conftest.$ac_objext libconftest.a
6466	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6467  (eval $lt_ar_try) 2>&5
6468  ac_status=$?
6469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470  test $ac_status = 0; }
6471	if test "$ac_status" -ne 0; then
6472          lt_cv_ar_at_file=@
6473        fi
6474      fi
6475      rm -f conftest.* libconftest.a
6476
6477fi
6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6482$as_echo "$lt_cv_ar_at_file" >&6; }
6483
6484if test "x$lt_cv_ar_at_file" = xno; then
6485  archiver_list_spec=
6486else
6487  archiver_list_spec=$lt_cv_ar_at_file
6488fi
6489
6490
6491
6492
6493
6494
6495
6496if test -n "$ac_tool_prefix"; then
6497  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}strip; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if ${ac_cv_prog_STRIP+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  if test -n "$STRIP"; then
6505  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524STRIP=$ac_cv_prog_STRIP
6525if test -n "$STRIP"; then
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6527$as_echo "$STRIP" >&6; }
6528else
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_STRIP"; then
6536  ac_ct_STRIP=$STRIP
6537  # Extract the first word of "strip", so it can be a program name with args.
6538set dummy strip; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if test -n "$ac_ct_STRIP"; then
6545  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554    ac_cv_prog_ac_ct_STRIP="strip"
6555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6565if test -n "$ac_ct_STRIP"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6567$as_echo "$ac_ct_STRIP" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_STRIP" = x; then
6574    STRIP=":"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    STRIP=$ac_ct_STRIP
6583  fi
6584else
6585  STRIP="$ac_cv_prog_STRIP"
6586fi
6587
6588test -z "$STRIP" && STRIP=:
6589
6590
6591
6592
6593
6594
6595if test -n "$ac_tool_prefix"; then
6596  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if ${ac_cv_prog_RANLIB+:} false; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603  if test -n "$RANLIB"; then
6604  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611    for ac_exec_ext in '' $ac_executable_extensions; do
6612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618  done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623RANLIB=$ac_cv_prog_RANLIB
6624if test -n "$RANLIB"; then
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6626$as_echo "$RANLIB" >&6; }
6627else
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_RANLIB"; then
6635  ac_ct_RANLIB=$RANLIB
6636  # Extract the first word of "ranlib", so it can be a program name with args.
6637set dummy ranlib; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  if test -n "$ac_ct_RANLIB"; then
6644  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651    for ac_exec_ext in '' $ac_executable_extensions; do
6652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653    ac_cv_prog_ac_ct_RANLIB="ranlib"
6654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658  done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6664if test -n "$ac_ct_RANLIB"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6666$as_echo "$ac_ct_RANLIB" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672  if test "x$ac_ct_RANLIB" = x; then
6673    RANLIB=":"
6674  else
6675    case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
6681    RANLIB=$ac_ct_RANLIB
6682  fi
6683else
6684  RANLIB="$ac_cv_prog_RANLIB"
6685fi
6686
6687test -z "$RANLIB" && RANLIB=:
6688
6689
6690
6691
6692
6693
6694# Determine commands to create old-style static archives.
6695old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6696old_postinstall_cmds='chmod 644 $oldlib'
6697old_postuninstall_cmds=
6698
6699if test -n "$RANLIB"; then
6700  case $host_os in
6701  openbsd*)
6702    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6703    ;;
6704  *)
6705    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6706    ;;
6707  esac
6708  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6709fi
6710
6711case $host_os in
6712  darwin*)
6713    lock_old_archive_extraction=yes ;;
6714  *)
6715    lock_old_archive_extraction=no ;;
6716esac
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756# If no C compiler was specified, use CC.
6757LTCC=${LTCC-"$CC"}
6758
6759# If no C compiler flags were specified, use CFLAGS.
6760LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6761
6762# Allow CC to be a program name with arguments.
6763compiler=$CC
6764
6765
6766# Check for command to grab the raw symbol name followed by C symbol from nm.
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6768$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6769if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772
6773# These are sane defaults that work on at least a few old systems.
6774# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6775
6776# Character class describing NM global symbol codes.
6777symcode='[BCDEGRST]'
6778
6779# Regexp to match symbols that can be accessed directly from C.
6780sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6781
6782# Define system-specific variables.
6783case $host_os in
6784aix*)
6785  symcode='[BCDT]'
6786  ;;
6787cygwin* | mingw* | pw32* | cegcc*)
6788  symcode='[ABCDGISTW]'
6789  ;;
6790hpux*)
6791  if test "$host_cpu" = ia64; then
6792    symcode='[ABCDEGRST]'
6793  fi
6794  ;;
6795irix* | nonstopux*)
6796  symcode='[BCDEGRST]'
6797  ;;
6798osf*)
6799  symcode='[BCDEGQRST]'
6800  ;;
6801solaris*)
6802  symcode='[BDRT]'
6803  ;;
6804sco3.2v5*)
6805  symcode='[DT]'
6806  ;;
6807sysv4.2uw2*)
6808  symcode='[DT]'
6809  ;;
6810sysv5* | sco5v6* | unixware* | OpenUNIX*)
6811  symcode='[ABDT]'
6812  ;;
6813sysv4)
6814  symcode='[DFNSTU]'
6815  ;;
6816esac
6817
6818# If we're using GNU nm, then use its standard symbol codes.
6819case `$NM -V 2>&1` in
6820*GNU* | *'with BFD'*)
6821  symcode='[ABCDGIRSTW]' ;;
6822esac
6823
6824# Transform an extracted symbol line into a proper C declaration.
6825# Some systems (esp. on ia64) link data and code symbols differently,
6826# so use this general approach.
6827lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6828
6829# Transform an extracted symbol line into symbol name and symbol address
6830lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6831lt_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'"
6832
6833# Handle CRLF in mingw tool chain
6834opt_cr=
6835case $build_os in
6836mingw*)
6837  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6838  ;;
6839esac
6840
6841# Try without a prefix underscore, then with it.
6842for ac_symprfx in "" "_"; do
6843
6844  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6845  symxfrm="\\1 $ac_symprfx\\2 \\2"
6846
6847  # Write the raw and C identifiers.
6848  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6849    # Fake it for dumpbin and say T for any non-static function
6850    # and D for any global variable.
6851    # Also find C++ and __fastcall symbols from MSVC++,
6852    # which start with @ or ?.
6853    lt_cv_sys_global_symbol_pipe="$AWK '"\
6854"     {last_section=section; section=\$ 3};"\
6855"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6856"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6857"     \$ 0!~/External *\|/{next};"\
6858"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6859"     {if(hide[section]) next};"\
6860"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6861"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6862"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6863"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6864"     ' prfx=^$ac_symprfx"
6865  else
6866    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6867  fi
6868  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6869
6870  # Check to see that the pipe works correctly.
6871  pipe_works=no
6872
6873  rm -f conftest*
6874  cat > conftest.$ac_ext <<_LT_EOF
6875#ifdef __cplusplus
6876extern "C" {
6877#endif
6878char nm_test_var;
6879void nm_test_func(void);
6880void nm_test_func(void){}
6881#ifdef __cplusplus
6882}
6883#endif
6884int main(){nm_test_var='a';nm_test_func();return(0);}
6885_LT_EOF
6886
6887  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888  (eval $ac_compile) 2>&5
6889  ac_status=$?
6890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891  test $ac_status = 0; }; then
6892    # Now try to grab the symbols.
6893    nlist=conftest.nm
6894    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6895  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6896  ac_status=$?
6897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898  test $ac_status = 0; } && test -s "$nlist"; then
6899      # Try sorting and uniquifying the output.
6900      if sort "$nlist" | uniq > "$nlist"T; then
6901	mv -f "$nlist"T "$nlist"
6902      else
6903	rm -f "$nlist"T
6904      fi
6905
6906      # Make sure that we snagged all the symbols we need.
6907      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6908	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6909	  cat <<_LT_EOF > conftest.$ac_ext
6910/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6911#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6912/* DATA imports from DLLs on WIN32 con't be const, because runtime
6913   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6914# define LT_DLSYM_CONST
6915#elif defined(__osf__)
6916/* This system does not cope well with relocations in const data.  */
6917# define LT_DLSYM_CONST
6918#else
6919# define LT_DLSYM_CONST const
6920#endif
6921
6922#ifdef __cplusplus
6923extern "C" {
6924#endif
6925
6926_LT_EOF
6927	  # Now generate the symbol file.
6928	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6929
6930	  cat <<_LT_EOF >> conftest.$ac_ext
6931
6932/* The mapping between symbol names and symbols.  */
6933LT_DLSYM_CONST struct {
6934  const char *name;
6935  void       *address;
6936}
6937lt__PROGRAM__LTX_preloaded_symbols[] =
6938{
6939  { "@PROGRAM@", (void *) 0 },
6940_LT_EOF
6941	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6942	  cat <<\_LT_EOF >> conftest.$ac_ext
6943  {0, (void *) 0}
6944};
6945
6946/* This works around a problem in FreeBSD linker */
6947#ifdef FREEBSD_WORKAROUND
6948static const void *lt_preloaded_setup() {
6949  return lt__PROGRAM__LTX_preloaded_symbols;
6950}
6951#endif
6952
6953#ifdef __cplusplus
6954}
6955#endif
6956_LT_EOF
6957	  # Now try linking the two files.
6958	  mv conftest.$ac_objext conftstm.$ac_objext
6959	  lt_globsym_save_LIBS=$LIBS
6960	  lt_globsym_save_CFLAGS=$CFLAGS
6961	  LIBS="conftstm.$ac_objext"
6962	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6963	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6964  (eval $ac_link) 2>&5
6965  ac_status=$?
6966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6967  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6968	    pipe_works=yes
6969	  fi
6970	  LIBS=$lt_globsym_save_LIBS
6971	  CFLAGS=$lt_globsym_save_CFLAGS
6972	else
6973	  echo "cannot find nm_test_func in $nlist" >&5
6974	fi
6975      else
6976	echo "cannot find nm_test_var in $nlist" >&5
6977      fi
6978    else
6979      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6980    fi
6981  else
6982    echo "$progname: failed program was:" >&5
6983    cat conftest.$ac_ext >&5
6984  fi
6985  rm -rf conftest* conftst*
6986
6987  # Do not use the global_symbol_pipe unless it works.
6988  if test "$pipe_works" = yes; then
6989    break
6990  else
6991    lt_cv_sys_global_symbol_pipe=
6992  fi
6993done
6994
6995fi
6996
6997if test -z "$lt_cv_sys_global_symbol_pipe"; then
6998  lt_cv_sys_global_symbol_to_cdecl=
6999fi
7000if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7002$as_echo "failed" >&6; }
7003else
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7005$as_echo "ok" >&6; }
7006fi
7007
7008# Response file support.
7009if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010  nm_file_list_spec='@'
7011elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7012  nm_file_list_spec='@'
7013fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7042$as_echo_n "checking for sysroot... " >&6; }
7043
7044# Check whether --with-sysroot was given.
7045if test "${with_sysroot+set}" = set; then :
7046  withval=$with_sysroot;
7047else
7048  with_sysroot=no
7049fi
7050
7051
7052lt_sysroot=
7053case ${with_sysroot} in #(
7054 yes)
7055   if test "$GCC" = yes; then
7056     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7057   fi
7058   ;; #(
7059 /*)
7060   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7061   ;; #(
7062 no|'')
7063   ;; #(
7064 *)
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7066$as_echo "${with_sysroot}" >&6; }
7067   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7068   ;;
7069esac
7070
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7072$as_echo "${lt_sysroot:-no}" >&6; }
7073
7074
7075
7076
7077
7078# Check whether --enable-libtool-lock was given.
7079if test "${enable_libtool_lock+set}" = set; then :
7080  enableval=$enable_libtool_lock;
7081fi
7082
7083test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7084
7085# Some flags need to be propagated to the compiler or linker for good
7086# libtool support.
7087case $host in
7088ia64-*-hpux*)
7089  # Find out which ABI we are using.
7090  echo 'int i;' > conftest.$ac_ext
7091  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092  (eval $ac_compile) 2>&5
7093  ac_status=$?
7094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095  test $ac_status = 0; }; then
7096    case `/usr/bin/file conftest.$ac_objext` in
7097      *ELF-32*)
7098	HPUX_IA64_MODE="32"
7099	;;
7100      *ELF-64*)
7101	HPUX_IA64_MODE="64"
7102	;;
7103    esac
7104  fi
7105  rm -rf conftest*
7106  ;;
7107*-*-irix6*)
7108  # Find out which ABI we are using.
7109  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7110  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7111  (eval $ac_compile) 2>&5
7112  ac_status=$?
7113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114  test $ac_status = 0; }; then
7115    if test "$lt_cv_prog_gnu_ld" = yes; then
7116      case `/usr/bin/file conftest.$ac_objext` in
7117	*32-bit*)
7118	  LD="${LD-ld} -melf32bsmip"
7119	  ;;
7120	*N32*)
7121	  LD="${LD-ld} -melf32bmipn32"
7122	  ;;
7123	*64-bit*)
7124	  LD="${LD-ld} -melf64bmip"
7125	;;
7126      esac
7127    else
7128      case `/usr/bin/file conftest.$ac_objext` in
7129	*32-bit*)
7130	  LD="${LD-ld} -32"
7131	  ;;
7132	*N32*)
7133	  LD="${LD-ld} -n32"
7134	  ;;
7135	*64-bit*)
7136	  LD="${LD-ld} -64"
7137	  ;;
7138      esac
7139    fi
7140  fi
7141  rm -rf conftest*
7142  ;;
7143
7144x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7145s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7146  # Find out which ABI we are using.
7147  echo 'int i;' > conftest.$ac_ext
7148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149  (eval $ac_compile) 2>&5
7150  ac_status=$?
7151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152  test $ac_status = 0; }; then
7153    case `/usr/bin/file conftest.o` in
7154      *32-bit*)
7155	case $host in
7156	  x86_64-*kfreebsd*-gnu)
7157	    LD="${LD-ld} -m elf_i386_fbsd"
7158	    ;;
7159	  x86_64-*linux*)
7160	    LD="${LD-ld} -m elf_i386"
7161	    ;;
7162	  ppc64-*linux*|powerpc64-*linux*)
7163	    LD="${LD-ld} -m elf32ppclinux"
7164	    ;;
7165	  s390x-*linux*)
7166	    LD="${LD-ld} -m elf_s390"
7167	    ;;
7168	  sparc64-*linux*)
7169	    LD="${LD-ld} -m elf32_sparc"
7170	    ;;
7171	esac
7172	;;
7173      *64-bit*)
7174	case $host in
7175	  x86_64-*kfreebsd*-gnu)
7176	    LD="${LD-ld} -m elf_x86_64_fbsd"
7177	    ;;
7178	  x86_64-*linux*)
7179	    LD="${LD-ld} -m elf_x86_64"
7180	    ;;
7181	  ppc*-*linux*|powerpc*-*linux*)
7182	    LD="${LD-ld} -m elf64ppc"
7183	    ;;
7184	  s390*-*linux*|s390*-*tpf*)
7185	    LD="${LD-ld} -m elf64_s390"
7186	    ;;
7187	  sparc*-*linux*)
7188	    LD="${LD-ld} -m elf64_sparc"
7189	    ;;
7190	esac
7191	;;
7192    esac
7193  fi
7194  rm -rf conftest*
7195  ;;
7196
7197*-*-sco3.2v5*)
7198  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7199  SAVE_CFLAGS="$CFLAGS"
7200  CFLAGS="$CFLAGS -belf"
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7202$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7203if ${lt_cv_cc_needs_belf+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  ac_ext=c
7207ac_cpp='$CPP $CPPFLAGS'
7208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211
7212     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214
7215int
7216main ()
7217{
7218
7219  ;
7220  return 0;
7221}
7222_ACEOF
7223if ac_fn_c_try_link "$LINENO"; then :
7224  lt_cv_cc_needs_belf=yes
7225else
7226  lt_cv_cc_needs_belf=no
7227fi
7228rm -f core conftest.err conftest.$ac_objext \
7229    conftest$ac_exeext conftest.$ac_ext
7230     ac_ext=c
7231ac_cpp='$CPP $CPPFLAGS'
7232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234ac_compiler_gnu=$ac_cv_c_compiler_gnu
7235
7236fi
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7238$as_echo "$lt_cv_cc_needs_belf" >&6; }
7239  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7240    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7241    CFLAGS="$SAVE_CFLAGS"
7242  fi
7243  ;;
7244*-*solaris*)
7245  # Find out which ABI we are using.
7246  echo 'int i;' > conftest.$ac_ext
7247  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7248  (eval $ac_compile) 2>&5
7249  ac_status=$?
7250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251  test $ac_status = 0; }; then
7252    case `/usr/bin/file conftest.o` in
7253    *64-bit*)
7254      case $lt_cv_prog_gnu_ld in
7255      yes*)
7256        case $host in
7257        i?86-*-solaris*)
7258          LD="${LD-ld} -m elf_x86_64"
7259          ;;
7260        sparc*-*-solaris*)
7261          LD="${LD-ld} -m elf64_sparc"
7262          ;;
7263        esac
7264        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7265        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7266          LD="${LD-ld}_sol2"
7267        fi
7268        ;;
7269      *)
7270	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7271	  LD="${LD-ld} -64"
7272	fi
7273	;;
7274      esac
7275      ;;
7276    esac
7277  fi
7278  rm -rf conftest*
7279  ;;
7280esac
7281
7282need_locks="$enable_libtool_lock"
7283
7284if test -n "$ac_tool_prefix"; then
7285  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7286set dummy ${ac_tool_prefix}mt; ac_word=$2
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288$as_echo_n "checking for $ac_word... " >&6; }
7289if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  if test -n "$MANIFEST_TOOL"; then
7293  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7313if test -n "$MANIFEST_TOOL"; then
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7315$as_echo "$MANIFEST_TOOL" >&6; }
7316else
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318$as_echo "no" >&6; }
7319fi
7320
7321
7322fi
7323if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7324  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7325  # Extract the first word of "mt", so it can be a program name with args.
7326set dummy mt; ac_word=$2
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  if test -n "$ac_ct_MANIFEST_TOOL"; then
7333  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7334else
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340    for ac_exec_ext in '' $ac_executable_extensions; do
7341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344    break 2
7345  fi
7346done
7347  done
7348IFS=$as_save_IFS
7349
7350fi
7351fi
7352ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7353if test -n "$ac_ct_MANIFEST_TOOL"; then
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7355$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7356else
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7362    MANIFEST_TOOL=":"
7363  else
7364    case $cross_compiling:$ac_tool_warned in
7365yes:)
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368ac_tool_warned=yes ;;
7369esac
7370    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7371  fi
7372else
7373  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7374fi
7375
7376test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7378$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7379if ${lt_cv_path_mainfest_tool+:} false; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382  lt_cv_path_mainfest_tool=no
7383  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7384  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7385  cat conftest.err >&5
7386  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7387    lt_cv_path_mainfest_tool=yes
7388  fi
7389  rm -f conftest*
7390fi
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7392$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7393if test "x$lt_cv_path_mainfest_tool" != xyes; then
7394  MANIFEST_TOOL=:
7395fi
7396
7397
7398
7399
7400
7401
7402  case $host_os in
7403    rhapsody* | darwin*)
7404    if test -n "$ac_tool_prefix"; then
7405  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7406set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408$as_echo_n "checking for $ac_word... " >&6; }
7409if ${ac_cv_prog_DSYMUTIL+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  if test -n "$DSYMUTIL"; then
7413  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7414else
7415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH
7417do
7418  IFS=$as_save_IFS
7419  test -z "$as_dir" && as_dir=.
7420    for ac_exec_ext in '' $ac_executable_extensions; do
7421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424    break 2
7425  fi
7426done
7427  done
7428IFS=$as_save_IFS
7429
7430fi
7431fi
7432DSYMUTIL=$ac_cv_prog_DSYMUTIL
7433if test -n "$DSYMUTIL"; then
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7435$as_echo "$DSYMUTIL" >&6; }
7436else
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438$as_echo "no" >&6; }
7439fi
7440
7441
7442fi
7443if test -z "$ac_cv_prog_DSYMUTIL"; then
7444  ac_ct_DSYMUTIL=$DSYMUTIL
7445  # Extract the first word of "dsymutil", so it can be a program name with args.
7446set dummy dsymutil; ac_word=$2
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448$as_echo_n "checking for $ac_word... " >&6; }
7449if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  if test -n "$ac_ct_DSYMUTIL"; then
7453  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460    for ac_exec_ext in '' $ac_executable_extensions; do
7461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467  done
7468IFS=$as_save_IFS
7469
7470fi
7471fi
7472ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7473if test -n "$ac_ct_DSYMUTIL"; then
7474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7475$as_echo "$ac_ct_DSYMUTIL" >&6; }
7476else
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480
7481  if test "x$ac_ct_DSYMUTIL" = x; then
7482    DSYMUTIL=":"
7483  else
7484    case $cross_compiling:$ac_tool_warned in
7485yes:)
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488ac_tool_warned=yes ;;
7489esac
7490    DSYMUTIL=$ac_ct_DSYMUTIL
7491  fi
7492else
7493  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7494fi
7495
7496    if test -n "$ac_tool_prefix"; then
7497  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7498set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500$as_echo_n "checking for $ac_word... " >&6; }
7501if ${ac_cv_prog_NMEDIT+:} false; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  if test -n "$NMEDIT"; then
7505  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7506else
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510  IFS=$as_save_IFS
7511  test -z "$as_dir" && as_dir=.
7512    for ac_exec_ext in '' $ac_executable_extensions; do
7513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516    break 2
7517  fi
7518done
7519  done
7520IFS=$as_save_IFS
7521
7522fi
7523fi
7524NMEDIT=$ac_cv_prog_NMEDIT
7525if test -n "$NMEDIT"; then
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7527$as_echo "$NMEDIT" >&6; }
7528else
7529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530$as_echo "no" >&6; }
7531fi
7532
7533
7534fi
7535if test -z "$ac_cv_prog_NMEDIT"; then
7536  ac_ct_NMEDIT=$NMEDIT
7537  # Extract the first word of "nmedit", so it can be a program name with args.
7538set dummy nmedit; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  if test -n "$ac_ct_NMEDIT"; then
7545  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552    for ac_exec_ext in '' $ac_executable_extensions; do
7553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559  done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7565if test -n "$ac_ct_NMEDIT"; then
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7567$as_echo "$ac_ct_NMEDIT" >&6; }
7568else
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573  if test "x$ac_ct_NMEDIT" = x; then
7574    NMEDIT=":"
7575  else
7576    case $cross_compiling:$ac_tool_warned in
7577yes:)
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580ac_tool_warned=yes ;;
7581esac
7582    NMEDIT=$ac_ct_NMEDIT
7583  fi
7584else
7585  NMEDIT="$ac_cv_prog_NMEDIT"
7586fi
7587
7588    if test -n "$ac_tool_prefix"; then
7589  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7590set dummy ${ac_tool_prefix}lipo; ac_word=$2
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if ${ac_cv_prog_LIPO+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  if test -n "$LIPO"; then
7597  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  test -z "$as_dir" && as_dir=.
7604    for ac_exec_ext in '' $ac_executable_extensions; do
7605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611  done
7612IFS=$as_save_IFS
7613
7614fi
7615fi
7616LIPO=$ac_cv_prog_LIPO
7617if test -n "$LIPO"; then
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7619$as_echo "$LIPO" >&6; }
7620else
7621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
7624
7625
7626fi
7627if test -z "$ac_cv_prog_LIPO"; then
7628  ac_ct_LIPO=$LIPO
7629  # Extract the first word of "lipo", so it can be a program name with args.
7630set dummy lipo; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$ac_ct_LIPO"; then
7637  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_ac_ct_LIPO="lipo"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7657if test -n "$ac_ct_LIPO"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7659$as_echo "$ac_ct_LIPO" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665  if test "x$ac_ct_LIPO" = x; then
7666    LIPO=":"
7667  else
7668    case $cross_compiling:$ac_tool_warned in
7669yes:)
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672ac_tool_warned=yes ;;
7673esac
7674    LIPO=$ac_ct_LIPO
7675  fi
7676else
7677  LIPO="$ac_cv_prog_LIPO"
7678fi
7679
7680    if test -n "$ac_tool_prefix"; then
7681  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7682set dummy ${ac_tool_prefix}otool; ac_word=$2
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684$as_echo_n "checking for $ac_word... " >&6; }
7685if ${ac_cv_prog_OTOOL+:} false; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  if test -n "$OTOOL"; then
7689  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7690else
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694  IFS=$as_save_IFS
7695  test -z "$as_dir" && as_dir=.
7696    for ac_exec_ext in '' $ac_executable_extensions; do
7697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700    break 2
7701  fi
7702done
7703  done
7704IFS=$as_save_IFS
7705
7706fi
7707fi
7708OTOOL=$ac_cv_prog_OTOOL
7709if test -n "$OTOOL"; then
7710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7711$as_echo "$OTOOL" >&6; }
7712else
7713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714$as_echo "no" >&6; }
7715fi
7716
7717
7718fi
7719if test -z "$ac_cv_prog_OTOOL"; then
7720  ac_ct_OTOOL=$OTOOL
7721  # Extract the first word of "otool", so it can be a program name with args.
7722set dummy otool; ac_word=$2
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  if test -n "$ac_ct_OTOOL"; then
7729  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734  IFS=$as_save_IFS
7735  test -z "$as_dir" && as_dir=.
7736    for ac_exec_ext in '' $ac_executable_extensions; do
7737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738    ac_cv_prog_ac_ct_OTOOL="otool"
7739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740    break 2
7741  fi
7742done
7743  done
7744IFS=$as_save_IFS
7745
7746fi
7747fi
7748ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7749if test -n "$ac_ct_OTOOL"; then
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7751$as_echo "$ac_ct_OTOOL" >&6; }
7752else
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755fi
7756
7757  if test "x$ac_ct_OTOOL" = x; then
7758    OTOOL=":"
7759  else
7760    case $cross_compiling:$ac_tool_warned in
7761yes:)
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764ac_tool_warned=yes ;;
7765esac
7766    OTOOL=$ac_ct_OTOOL
7767  fi
7768else
7769  OTOOL="$ac_cv_prog_OTOOL"
7770fi
7771
7772    if test -n "$ac_tool_prefix"; then
7773  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7774set dummy ${ac_tool_prefix}otool64; ac_word=$2
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if ${ac_cv_prog_OTOOL64+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  if test -n "$OTOOL64"; then
7781  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786  IFS=$as_save_IFS
7787  test -z "$as_dir" && as_dir=.
7788    for ac_exec_ext in '' $ac_executable_extensions; do
7789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792    break 2
7793  fi
7794done
7795  done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800OTOOL64=$ac_cv_prog_OTOOL64
7801if test -n "$OTOOL64"; then
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7803$as_echo "$OTOOL64" >&6; }
7804else
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809
7810fi
7811if test -z "$ac_cv_prog_OTOOL64"; then
7812  ac_ct_OTOOL64=$OTOOL64
7813  # Extract the first word of "otool64", so it can be a program name with args.
7814set dummy otool64; ac_word=$2
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816$as_echo_n "checking for $ac_word... " >&6; }
7817if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  if test -n "$ac_ct_OTOOL64"; then
7821  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7822else
7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826  IFS=$as_save_IFS
7827  test -z "$as_dir" && as_dir=.
7828    for ac_exec_ext in '' $ac_executable_extensions; do
7829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830    ac_cv_prog_ac_ct_OTOOL64="otool64"
7831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832    break 2
7833  fi
7834done
7835  done
7836IFS=$as_save_IFS
7837
7838fi
7839fi
7840ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7841if test -n "$ac_ct_OTOOL64"; then
7842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7843$as_echo "$ac_ct_OTOOL64" >&6; }
7844else
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846$as_echo "no" >&6; }
7847fi
7848
7849  if test "x$ac_ct_OTOOL64" = x; then
7850    OTOOL64=":"
7851  else
7852    case $cross_compiling:$ac_tool_warned in
7853yes:)
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856ac_tool_warned=yes ;;
7857esac
7858    OTOOL64=$ac_ct_OTOOL64
7859  fi
7860else
7861  OTOOL64="$ac_cv_prog_OTOOL64"
7862fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7891$as_echo_n "checking for -single_module linker flag... " >&6; }
7892if ${lt_cv_apple_cc_single_mod+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  lt_cv_apple_cc_single_mod=no
7896      if test -z "${LT_MULTI_MODULE}"; then
7897	# By default we will add the -single_module flag. You can override
7898	# by either setting the environment variable LT_MULTI_MODULE
7899	# non-empty at configure time, or by adding -multi_module to the
7900	# link flags.
7901	rm -rf libconftest.dylib*
7902	echo "int foo(void){return 1;}" > conftest.c
7903	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7904-dynamiclib -Wl,-single_module conftest.c" >&5
7905	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7906	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7907        _lt_result=$?
7908	# If there is a non-empty error log, and "single_module"
7909	# appears in it, assume the flag caused a linker warning
7910        if test -s conftest.err && $GREP single_module conftest.err; then
7911	  cat conftest.err >&5
7912	# Otherwise, if the output was created with a 0 exit code from
7913	# the compiler, it worked.
7914	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7915	  lt_cv_apple_cc_single_mod=yes
7916	else
7917	  cat conftest.err >&5
7918	fi
7919	rm -rf libconftest.dylib*
7920	rm -f conftest.*
7921      fi
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7924$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7925
7926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7927$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7928if ${lt_cv_ld_exported_symbols_list+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  lt_cv_ld_exported_symbols_list=no
7932      save_LDFLAGS=$LDFLAGS
7933      echo "_main" > conftest.sym
7934      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7935      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937
7938int
7939main ()
7940{
7941
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946if ac_fn_c_try_link "$LINENO"; then :
7947  lt_cv_ld_exported_symbols_list=yes
7948else
7949  lt_cv_ld_exported_symbols_list=no
7950fi
7951rm -f core conftest.err conftest.$ac_objext \
7952    conftest$ac_exeext conftest.$ac_ext
7953	LDFLAGS="$save_LDFLAGS"
7954
7955fi
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7957$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7958
7959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7960$as_echo_n "checking for -force_load linker flag... " >&6; }
7961if ${lt_cv_ld_force_load+:} false; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_ld_force_load=no
7965      cat > conftest.c << _LT_EOF
7966int forced_loaded() { return 2;}
7967_LT_EOF
7968      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7969      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7970      echo "$AR cru libconftest.a conftest.o" >&5
7971      $AR cru libconftest.a conftest.o 2>&5
7972      echo "$RANLIB libconftest.a" >&5
7973      $RANLIB libconftest.a 2>&5
7974      cat > conftest.c << _LT_EOF
7975int main() { return 0;}
7976_LT_EOF
7977      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7978      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7979      _lt_result=$?
7980      if test -s conftest.err && $GREP force_load conftest.err; then
7981	cat conftest.err >&5
7982      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7983	lt_cv_ld_force_load=yes
7984      else
7985	cat conftest.err >&5
7986      fi
7987        rm -f conftest.err libconftest.a conftest conftest.c
7988        rm -rf conftest.dSYM
7989
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7992$as_echo "$lt_cv_ld_force_load" >&6; }
7993    case $host_os in
7994    rhapsody* | darwin1.[012])
7995      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7996    darwin1.*)
7997      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7998    darwin*) # darwin 5.x on
7999      # if running on 10.5 or later, the deployment target defaults
8000      # to the OS version, if on x86, and 10.4, the deployment
8001      # target defaults to 10.4. Don't you love it?
8002      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8003	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8004	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8005	10.[012]*)
8006	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8007	10.*)
8008	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8009      esac
8010    ;;
8011  esac
8012    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8013      _lt_dar_single_mod='$single_module'
8014    fi
8015    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8016      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8017    else
8018      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8019    fi
8020    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8021      _lt_dsymutil='~$DSYMUTIL $lib || :'
8022    else
8023      _lt_dsymutil=
8024    fi
8025    ;;
8026  esac
8027
8028for ac_header in dlfcn.h
8029do :
8030  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8031"
8032if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8033  cat >>confdefs.h <<_ACEOF
8034#define HAVE_DLFCN_H 1
8035_ACEOF
8036
8037fi
8038
8039done
8040
8041
8042
8043
8044
8045# Set options
8046
8047
8048
8049        enable_dlopen=no
8050
8051
8052
8053            # Check whether --enable-shared was given.
8054if test "${enable_shared+set}" = set; then :
8055  enableval=$enable_shared; p=${PACKAGE-default}
8056    case $enableval in
8057    yes) enable_shared=yes ;;
8058    no) enable_shared=no ;;
8059    *)
8060      enable_shared=no
8061      # Look at the argument we got.  We use all the common list separators.
8062      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063      for pkg in $enableval; do
8064	IFS="$lt_save_ifs"
8065	if test "X$pkg" = "X$p"; then
8066	  enable_shared=yes
8067	fi
8068      done
8069      IFS="$lt_save_ifs"
8070      ;;
8071    esac
8072else
8073  enable_shared=yes
8074fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086# Check whether --with-pic was given.
8087if test "${with_pic+set}" = set; then :
8088  withval=$with_pic; lt_p=${PACKAGE-default}
8089    case $withval in
8090    yes|no) pic_mode=$withval ;;
8091    *)
8092      pic_mode=default
8093      # Look at the argument we got.  We use all the common list separators.
8094      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8095      for lt_pkg in $withval; do
8096	IFS="$lt_save_ifs"
8097	if test "X$lt_pkg" = "X$lt_p"; then
8098	  pic_mode=yes
8099	fi
8100      done
8101      IFS="$lt_save_ifs"
8102      ;;
8103    esac
8104else
8105  pic_mode=default
8106fi
8107
8108
8109test -z "$pic_mode" && pic_mode=default
8110
8111
8112
8113
8114
8115
8116
8117  # Check whether --enable-fast-install was given.
8118if test "${enable_fast_install+set}" = set; then :
8119  enableval=$enable_fast_install; p=${PACKAGE-default}
8120    case $enableval in
8121    yes) enable_fast_install=yes ;;
8122    no) enable_fast_install=no ;;
8123    *)
8124      enable_fast_install=no
8125      # Look at the argument we got.  We use all the common list separators.
8126      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8127      for pkg in $enableval; do
8128	IFS="$lt_save_ifs"
8129	if test "X$pkg" = "X$p"; then
8130	  enable_fast_install=yes
8131	fi
8132      done
8133      IFS="$lt_save_ifs"
8134      ;;
8135    esac
8136else
8137  enable_fast_install=yes
8138fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150# This can be used to rebuild libtool when needed
8151LIBTOOL_DEPS="$ltmain"
8152
8153# Always use our own libtool.
8154LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185test -z "$LN_S" && LN_S="ln -s"
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200if test -n "${ZSH_VERSION+set}" ; then
8201   setopt NO_GLOB_SUBST
8202fi
8203
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8205$as_echo_n "checking for objdir... " >&6; }
8206if ${lt_cv_objdir+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  rm -f .libs 2>/dev/null
8210mkdir .libs 2>/dev/null
8211if test -d .libs; then
8212  lt_cv_objdir=.libs
8213else
8214  # MS-DOS does not allow filenames that begin with a dot.
8215  lt_cv_objdir=_libs
8216fi
8217rmdir .libs 2>/dev/null
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8220$as_echo "$lt_cv_objdir" >&6; }
8221objdir=$lt_cv_objdir
8222
8223
8224
8225
8226
8227cat >>confdefs.h <<_ACEOF
8228#define LT_OBJDIR "$lt_cv_objdir/"
8229_ACEOF
8230
8231
8232
8233
8234case $host_os in
8235aix3*)
8236  # AIX sometimes has problems with the GCC collect2 program.  For some
8237  # reason, if we set the COLLECT_NAMES environment variable, the problems
8238  # vanish in a puff of smoke.
8239  if test "X${COLLECT_NAMES+set}" != Xset; then
8240    COLLECT_NAMES=
8241    export COLLECT_NAMES
8242  fi
8243  ;;
8244esac
8245
8246# Global variables:
8247ofile=libtool
8248can_build_shared=yes
8249
8250# All known linkers require a `.a' archive for static linking (except MSVC,
8251# which needs '.lib').
8252libext=a
8253
8254with_gnu_ld="$lt_cv_prog_gnu_ld"
8255
8256old_CC="$CC"
8257old_CFLAGS="$CFLAGS"
8258
8259# Set sane defaults for various variables
8260test -z "$CC" && CC=cc
8261test -z "$LTCC" && LTCC=$CC
8262test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8263test -z "$LD" && LD=ld
8264test -z "$ac_objext" && ac_objext=o
8265
8266for cc_temp in $compiler""; do
8267  case $cc_temp in
8268    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8269    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8270    \-*) ;;
8271    *) break;;
8272  esac
8273done
8274cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8275
8276
8277# Only perform the check for file, if the check method requires it
8278test -z "$MAGIC_CMD" && MAGIC_CMD=file
8279case $deplibs_check_method in
8280file_magic*)
8281  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8283$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8284if ${lt_cv_path_MAGIC_CMD+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  case $MAGIC_CMD in
8288[\\/*] |  ?:[\\/]*)
8289  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290  ;;
8291*)
8292  lt_save_MAGIC_CMD="$MAGIC_CMD"
8293  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295  for ac_dir in $ac_dummy; do
8296    IFS="$lt_save_ifs"
8297    test -z "$ac_dir" && ac_dir=.
8298    if test -f $ac_dir/${ac_tool_prefix}file; then
8299      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8300      if test -n "$file_magic_test_file"; then
8301	case $deplibs_check_method in
8302	"file_magic "*)
8303	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306	    $EGREP "$file_magic_regex" > /dev/null; then
8307	    :
8308	  else
8309	    cat <<_LT_EOF 1>&2
8310
8311*** Warning: the command libtool uses to detect shared libraries,
8312*** $file_magic_cmd, produces output that libtool cannot recognize.
8313*** The result is that libtool may fail to recognize shared libraries
8314*** as such.  This will affect the creation of libtool libraries that
8315*** depend on shared libraries, but programs linked with such libtool
8316*** libraries will work regardless of this problem.  Nevertheless, you
8317*** may want to report the problem to your system manager and/or to
8318*** bug-libtool@gnu.org
8319
8320_LT_EOF
8321	  fi ;;
8322	esac
8323      fi
8324      break
8325    fi
8326  done
8327  IFS="$lt_save_ifs"
8328  MAGIC_CMD="$lt_save_MAGIC_CMD"
8329  ;;
8330esac
8331fi
8332
8333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334if test -n "$MAGIC_CMD"; then
8335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8336$as_echo "$MAGIC_CMD" >&6; }
8337else
8338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339$as_echo "no" >&6; }
8340fi
8341
8342
8343
8344
8345
8346if test -z "$lt_cv_path_MAGIC_CMD"; then
8347  if test -n "$ac_tool_prefix"; then
8348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8349$as_echo_n "checking for file... " >&6; }
8350if ${lt_cv_path_MAGIC_CMD+:} false; then :
8351  $as_echo_n "(cached) " >&6
8352else
8353  case $MAGIC_CMD in
8354[\\/*] |  ?:[\\/]*)
8355  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8356  ;;
8357*)
8358  lt_save_MAGIC_CMD="$MAGIC_CMD"
8359  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8360  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8361  for ac_dir in $ac_dummy; do
8362    IFS="$lt_save_ifs"
8363    test -z "$ac_dir" && ac_dir=.
8364    if test -f $ac_dir/file; then
8365      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8366      if test -n "$file_magic_test_file"; then
8367	case $deplibs_check_method in
8368	"file_magic "*)
8369	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8370	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8371	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8372	    $EGREP "$file_magic_regex" > /dev/null; then
8373	    :
8374	  else
8375	    cat <<_LT_EOF 1>&2
8376
8377*** Warning: the command libtool uses to detect shared libraries,
8378*** $file_magic_cmd, produces output that libtool cannot recognize.
8379*** The result is that libtool may fail to recognize shared libraries
8380*** as such.  This will affect the creation of libtool libraries that
8381*** depend on shared libraries, but programs linked with such libtool
8382*** libraries will work regardless of this problem.  Nevertheless, you
8383*** may want to report the problem to your system manager and/or to
8384*** bug-libtool@gnu.org
8385
8386_LT_EOF
8387	  fi ;;
8388	esac
8389      fi
8390      break
8391    fi
8392  done
8393  IFS="$lt_save_ifs"
8394  MAGIC_CMD="$lt_save_MAGIC_CMD"
8395  ;;
8396esac
8397fi
8398
8399MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8400if test -n "$MAGIC_CMD"; then
8401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8402$as_echo "$MAGIC_CMD" >&6; }
8403else
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
8406fi
8407
8408
8409  else
8410    MAGIC_CMD=:
8411  fi
8412fi
8413
8414  fi
8415  ;;
8416esac
8417
8418# Use C for the default configuration in the libtool script
8419
8420lt_save_CC="$CC"
8421ac_ext=c
8422ac_cpp='$CPP $CPPFLAGS'
8423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426
8427
8428# Source file extension for C test sources.
8429ac_ext=c
8430
8431# Object file extension for compiled C test sources.
8432objext=o
8433objext=$objext
8434
8435# Code to be used in simple compile tests
8436lt_simple_compile_test_code="int some_variable = 0;"
8437
8438# Code to be used in simple link tests
8439lt_simple_link_test_code='int main(){return(0);}'
8440
8441
8442
8443
8444
8445
8446
8447# If no C compiler was specified, use CC.
8448LTCC=${LTCC-"$CC"}
8449
8450# If no C compiler flags were specified, use CFLAGS.
8451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8452
8453# Allow CC to be a program name with arguments.
8454compiler=$CC
8455
8456# Save the default compiler, since it gets overwritten when the other
8457# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8458compiler_DEFAULT=$CC
8459
8460# save warnings/boilerplate of simple test code
8461ac_outfile=conftest.$ac_objext
8462echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8463eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8464_lt_compiler_boilerplate=`cat conftest.err`
8465$RM conftest*
8466
8467ac_outfile=conftest.$ac_objext
8468echo "$lt_simple_link_test_code" >conftest.$ac_ext
8469eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8470_lt_linker_boilerplate=`cat conftest.err`
8471$RM -r conftest*
8472
8473
8474## CAVEAT EMPTOR:
8475## There is no encapsulation within the following macros, do not change
8476## the running order or otherwise move them around unless you know exactly
8477## what you are doing...
8478if test -n "$compiler"; then
8479
8480lt_prog_compiler_no_builtin_flag=
8481
8482if test "$GCC" = yes; then
8483  case $cc_basename in
8484  nvcc*)
8485    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8486  *)
8487    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8488  esac
8489
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8491$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8492if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  lt_cv_prog_compiler_rtti_exceptions=no
8496   ac_outfile=conftest.$ac_objext
8497   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8498   lt_compiler_flag="-fno-rtti -fno-exceptions"
8499   # Insert the option either (1) after the last *FLAGS variable, or
8500   # (2) before a word containing "conftest.", or (3) at the end.
8501   # Note that $ac_compile itself does not contain backslashes and begins
8502   # with a dollar sign (not a hyphen), so the echo should work correctly.
8503   # The option is referenced via a variable to avoid confusing sed.
8504   lt_compile=`echo "$ac_compile" | $SED \
8505   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507   -e 's:$: $lt_compiler_flag:'`
8508   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8509   (eval "$lt_compile" 2>conftest.err)
8510   ac_status=$?
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   if (exit $ac_status) && test -s "$ac_outfile"; then
8514     # The compiler can only warn and ignore the option if not recognized
8515     # So say no if there are warnings other than the usual output.
8516     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8517     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8518     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8519       lt_cv_prog_compiler_rtti_exceptions=yes
8520     fi
8521   fi
8522   $RM conftest*
8523
8524fi
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8526$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8527
8528if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8529    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8530else
8531    :
8532fi
8533
8534fi
8535
8536
8537
8538
8539
8540
8541  lt_prog_compiler_wl=
8542lt_prog_compiler_pic=
8543lt_prog_compiler_static=
8544
8545
8546  if test "$GCC" = yes; then
8547    lt_prog_compiler_wl='-Wl,'
8548    lt_prog_compiler_static='-static'
8549
8550    case $host_os in
8551      aix*)
8552      # All AIX code is PIC.
8553      if test "$host_cpu" = ia64; then
8554	# AIX 5 now supports IA64 processor
8555	lt_prog_compiler_static='-Bstatic'
8556      fi
8557      ;;
8558
8559    amigaos*)
8560      case $host_cpu in
8561      powerpc)
8562            # see comment about AmigaOS4 .so support
8563            lt_prog_compiler_pic='-fPIC'
8564        ;;
8565      m68k)
8566            # FIXME: we need at least 68020 code to build shared libraries, but
8567            # adding the `-m68020' flag to GCC prevents building anything better,
8568            # like `-m68040'.
8569            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8570        ;;
8571      esac
8572      ;;
8573
8574    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8575      # PIC is the default for these OSes.
8576      ;;
8577
8578    mingw* | cygwin* | pw32* | os2* | cegcc*)
8579      # This hack is so that the source file can tell whether it is being
8580      # built for inclusion in a dll (and should export symbols for example).
8581      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8582      # (--disable-auto-import) libraries
8583      lt_prog_compiler_pic='-DDLL_EXPORT'
8584      ;;
8585
8586    darwin* | rhapsody*)
8587      # PIC is the default on this platform
8588      # Common symbols not allowed in MH_DYLIB files
8589      lt_prog_compiler_pic='-fno-common'
8590      ;;
8591
8592    haiku*)
8593      # PIC is the default for Haiku.
8594      # The "-static" flag exists, but is broken.
8595      lt_prog_compiler_static=
8596      ;;
8597
8598    hpux*)
8599      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8600      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8601      # sets the default TLS model and affects inlining.
8602      case $host_cpu in
8603      hppa*64*)
8604	# +Z the default
8605	;;
8606      *)
8607	lt_prog_compiler_pic='-fPIC'
8608	;;
8609      esac
8610      ;;
8611
8612    interix[3-9]*)
8613      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8614      # Instead, we relocate shared libraries at runtime.
8615      ;;
8616
8617    msdosdjgpp*)
8618      # Just because we use GCC doesn't mean we suddenly get shared libraries
8619      # on systems that don't support them.
8620      lt_prog_compiler_can_build_shared=no
8621      enable_shared=no
8622      ;;
8623
8624    *nto* | *qnx*)
8625      # QNX uses GNU C++, but need to define -shared option too, otherwise
8626      # it will coredump.
8627      lt_prog_compiler_pic='-fPIC -shared'
8628      ;;
8629
8630    sysv4*MP*)
8631      if test -d /usr/nec; then
8632	lt_prog_compiler_pic=-Kconform_pic
8633      fi
8634      ;;
8635
8636    *)
8637      lt_prog_compiler_pic='-fPIC'
8638      ;;
8639    esac
8640
8641    case $cc_basename in
8642    nvcc*) # Cuda Compiler Driver 2.2
8643      lt_prog_compiler_wl='-Xlinker '
8644      if test -n "$lt_prog_compiler_pic"; then
8645        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8646      fi
8647      ;;
8648    esac
8649  else
8650    # PORTME Check for flag to pass linker flags through the system compiler.
8651    case $host_os in
8652    aix*)
8653      lt_prog_compiler_wl='-Wl,'
8654      if test "$host_cpu" = ia64; then
8655	# AIX 5 now supports IA64 processor
8656	lt_prog_compiler_static='-Bstatic'
8657      else
8658	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8659      fi
8660      ;;
8661
8662    mingw* | cygwin* | pw32* | os2* | cegcc*)
8663      # This hack is so that the source file can tell whether it is being
8664      # built for inclusion in a dll (and should export symbols for example).
8665      lt_prog_compiler_pic='-DDLL_EXPORT'
8666      ;;
8667
8668    hpux9* | hpux10* | hpux11*)
8669      lt_prog_compiler_wl='-Wl,'
8670      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8671      # not for PA HP-UX.
8672      case $host_cpu in
8673      hppa*64*|ia64*)
8674	# +Z the default
8675	;;
8676      *)
8677	lt_prog_compiler_pic='+Z'
8678	;;
8679      esac
8680      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8681      lt_prog_compiler_static='${wl}-a ${wl}archive'
8682      ;;
8683
8684    irix5* | irix6* | nonstopux*)
8685      lt_prog_compiler_wl='-Wl,'
8686      # PIC (with -KPIC) is the default.
8687      lt_prog_compiler_static='-non_shared'
8688      ;;
8689
8690    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8691      case $cc_basename in
8692      # old Intel for x86_64 which still supported -KPIC.
8693      ecc*)
8694	lt_prog_compiler_wl='-Wl,'
8695	lt_prog_compiler_pic='-KPIC'
8696	lt_prog_compiler_static='-static'
8697        ;;
8698      # icc used to be incompatible with GCC.
8699      # ICC 10 doesn't accept -KPIC any more.
8700      icc* | ifort*)
8701	lt_prog_compiler_wl='-Wl,'
8702	lt_prog_compiler_pic='-fPIC'
8703	lt_prog_compiler_static='-static'
8704        ;;
8705      # Lahey Fortran 8.1.
8706      lf95*)
8707	lt_prog_compiler_wl='-Wl,'
8708	lt_prog_compiler_pic='--shared'
8709	lt_prog_compiler_static='--static'
8710	;;
8711      nagfor*)
8712	# NAG Fortran compiler
8713	lt_prog_compiler_wl='-Wl,-Wl,,'
8714	lt_prog_compiler_pic='-PIC'
8715	lt_prog_compiler_static='-Bstatic'
8716	;;
8717      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8718        # Portland Group compilers (*not* the Pentium gcc compiler,
8719	# which looks to be a dead project)
8720	lt_prog_compiler_wl='-Wl,'
8721	lt_prog_compiler_pic='-fpic'
8722	lt_prog_compiler_static='-Bstatic'
8723        ;;
8724      ccc*)
8725        lt_prog_compiler_wl='-Wl,'
8726        # All Alpha code is PIC.
8727        lt_prog_compiler_static='-non_shared'
8728        ;;
8729      xl* | bgxl* | bgf* | mpixl*)
8730	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8731	lt_prog_compiler_wl='-Wl,'
8732	lt_prog_compiler_pic='-qpic'
8733	lt_prog_compiler_static='-qstaticlink'
8734	;;
8735      *)
8736	case `$CC -V 2>&1 | sed 5q` in
8737	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8738	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8739	  lt_prog_compiler_pic='-KPIC'
8740	  lt_prog_compiler_static='-Bstatic'
8741	  lt_prog_compiler_wl=''
8742	  ;;
8743	*Sun\ F* | *Sun*Fortran*)
8744	  lt_prog_compiler_pic='-KPIC'
8745	  lt_prog_compiler_static='-Bstatic'
8746	  lt_prog_compiler_wl='-Qoption ld '
8747	  ;;
8748	*Sun\ C*)
8749	  # Sun C 5.9
8750	  lt_prog_compiler_pic='-KPIC'
8751	  lt_prog_compiler_static='-Bstatic'
8752	  lt_prog_compiler_wl='-Wl,'
8753	  ;;
8754        *Intel*\ [CF]*Compiler*)
8755	  lt_prog_compiler_wl='-Wl,'
8756	  lt_prog_compiler_pic='-fPIC'
8757	  lt_prog_compiler_static='-static'
8758	  ;;
8759	*Portland\ Group*)
8760	  lt_prog_compiler_wl='-Wl,'
8761	  lt_prog_compiler_pic='-fpic'
8762	  lt_prog_compiler_static='-Bstatic'
8763	  ;;
8764	esac
8765	;;
8766      esac
8767      ;;
8768
8769    newsos6)
8770      lt_prog_compiler_pic='-KPIC'
8771      lt_prog_compiler_static='-Bstatic'
8772      ;;
8773
8774    *nto* | *qnx*)
8775      # QNX uses GNU C++, but need to define -shared option too, otherwise
8776      # it will coredump.
8777      lt_prog_compiler_pic='-fPIC -shared'
8778      ;;
8779
8780    osf3* | osf4* | osf5*)
8781      lt_prog_compiler_wl='-Wl,'
8782      # All OSF/1 code is PIC.
8783      lt_prog_compiler_static='-non_shared'
8784      ;;
8785
8786    rdos*)
8787      lt_prog_compiler_static='-non_shared'
8788      ;;
8789
8790    solaris*)
8791      lt_prog_compiler_pic='-KPIC'
8792      lt_prog_compiler_static='-Bstatic'
8793      case $cc_basename in
8794      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8795	lt_prog_compiler_wl='-Qoption ld ';;
8796      *)
8797	lt_prog_compiler_wl='-Wl,';;
8798      esac
8799      ;;
8800
8801    sunos4*)
8802      lt_prog_compiler_wl='-Qoption ld '
8803      lt_prog_compiler_pic='-PIC'
8804      lt_prog_compiler_static='-Bstatic'
8805      ;;
8806
8807    sysv4 | sysv4.2uw2* | sysv4.3*)
8808      lt_prog_compiler_wl='-Wl,'
8809      lt_prog_compiler_pic='-KPIC'
8810      lt_prog_compiler_static='-Bstatic'
8811      ;;
8812
8813    sysv4*MP*)
8814      if test -d /usr/nec ;then
8815	lt_prog_compiler_pic='-Kconform_pic'
8816	lt_prog_compiler_static='-Bstatic'
8817      fi
8818      ;;
8819
8820    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8821      lt_prog_compiler_wl='-Wl,'
8822      lt_prog_compiler_pic='-KPIC'
8823      lt_prog_compiler_static='-Bstatic'
8824      ;;
8825
8826    unicos*)
8827      lt_prog_compiler_wl='-Wl,'
8828      lt_prog_compiler_can_build_shared=no
8829      ;;
8830
8831    uts4*)
8832      lt_prog_compiler_pic='-pic'
8833      lt_prog_compiler_static='-Bstatic'
8834      ;;
8835
8836    *)
8837      lt_prog_compiler_can_build_shared=no
8838      ;;
8839    esac
8840  fi
8841
8842case $host_os in
8843  # For platforms which do not support PIC, -DPIC is meaningless:
8844  *djgpp*)
8845    lt_prog_compiler_pic=
8846    ;;
8847  *)
8848    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8849    ;;
8850esac
8851
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8853$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8854if ${lt_cv_prog_compiler_pic+:} false; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8860$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8861lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8862
8863#
8864# Check to make sure the PIC flag actually works.
8865#
8866if test -n "$lt_prog_compiler_pic"; then
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8868$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8869if ${lt_cv_prog_compiler_pic_works+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  lt_cv_prog_compiler_pic_works=no
8873   ac_outfile=conftest.$ac_objext
8874   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8876   # Insert the option either (1) after the last *FLAGS variable, or
8877   # (2) before a word containing "conftest.", or (3) at the end.
8878   # Note that $ac_compile itself does not contain backslashes and begins
8879   # with a dollar sign (not a hyphen), so the echo should work correctly.
8880   # The option is referenced via a variable to avoid confusing sed.
8881   lt_compile=`echo "$ac_compile" | $SED \
8882   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884   -e 's:$: $lt_compiler_flag:'`
8885   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8886   (eval "$lt_compile" 2>conftest.err)
8887   ac_status=$?
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   if (exit $ac_status) && test -s "$ac_outfile"; then
8891     # The compiler can only warn and ignore the option if not recognized
8892     # So say no if there are warnings other than the usual output.
8893     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8894     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8895     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8896       lt_cv_prog_compiler_pic_works=yes
8897     fi
8898   fi
8899   $RM conftest*
8900
8901fi
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8903$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8904
8905if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8906    case $lt_prog_compiler_pic in
8907     "" | " "*) ;;
8908     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8909     esac
8910else
8911    lt_prog_compiler_pic=
8912     lt_prog_compiler_can_build_shared=no
8913fi
8914
8915fi
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927#
8928# Check to make sure the static flag actually works.
8929#
8930wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8932$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8933if ${lt_cv_prog_compiler_static_works+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  lt_cv_prog_compiler_static_works=no
8937   save_LDFLAGS="$LDFLAGS"
8938   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8939   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8940   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8941     # The linker can only warn and ignore the option if not recognized
8942     # So say no if there are warnings
8943     if test -s conftest.err; then
8944       # Append any errors to the config.log.
8945       cat conftest.err 1>&5
8946       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8947       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8948       if diff conftest.exp conftest.er2 >/dev/null; then
8949         lt_cv_prog_compiler_static_works=yes
8950       fi
8951     else
8952       lt_cv_prog_compiler_static_works=yes
8953     fi
8954   fi
8955   $RM -r conftest*
8956   LDFLAGS="$save_LDFLAGS"
8957
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8960$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8961
8962if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8963    :
8964else
8965    lt_prog_compiler_static=
8966fi
8967
8968
8969
8970
8971
8972
8973
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8975$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8976if ${lt_cv_prog_compiler_c_o+:} false; then :
8977  $as_echo_n "(cached) " >&6
8978else
8979  lt_cv_prog_compiler_c_o=no
8980   $RM -r conftest 2>/dev/null
8981   mkdir conftest
8982   cd conftest
8983   mkdir out
8984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985
8986   lt_compiler_flag="-o out/conftest2.$ac_objext"
8987   # Insert the option either (1) after the last *FLAGS variable, or
8988   # (2) before a word containing "conftest.", or (3) at the end.
8989   # Note that $ac_compile itself does not contain backslashes and begins
8990   # with a dollar sign (not a hyphen), so the echo should work correctly.
8991   lt_compile=`echo "$ac_compile" | $SED \
8992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994   -e 's:$: $lt_compiler_flag:'`
8995   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8996   (eval "$lt_compile" 2>out/conftest.err)
8997   ac_status=$?
8998   cat out/conftest.err >&5
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9001   then
9002     # The compiler can only warn and ignore the option if not recognized
9003     # So say no if there are warnings
9004     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9005     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9006     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9007       lt_cv_prog_compiler_c_o=yes
9008     fi
9009   fi
9010   chmod u+w . 2>&5
9011   $RM conftest*
9012   # SGI C++ compiler will create directory out/ii_files/ for
9013   # template instantiation
9014   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9015   $RM out/* && rmdir out
9016   cd ..
9017   $RM -r conftest
9018   $RM conftest*
9019
9020fi
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9022$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9023
9024
9025
9026
9027
9028
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9031if ${lt_cv_prog_compiler_c_o+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  lt_cv_prog_compiler_c_o=no
9035   $RM -r conftest 2>/dev/null
9036   mkdir conftest
9037   cd conftest
9038   mkdir out
9039   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9040
9041   lt_compiler_flag="-o out/conftest2.$ac_objext"
9042   # Insert the option either (1) after the last *FLAGS variable, or
9043   # (2) before a word containing "conftest.", or (3) at the end.
9044   # Note that $ac_compile itself does not contain backslashes and begins
9045   # with a dollar sign (not a hyphen), so the echo should work correctly.
9046   lt_compile=`echo "$ac_compile" | $SED \
9047   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9049   -e 's:$: $lt_compiler_flag:'`
9050   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9051   (eval "$lt_compile" 2>out/conftest.err)
9052   ac_status=$?
9053   cat out/conftest.err >&5
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9056   then
9057     # The compiler can only warn and ignore the option if not recognized
9058     # So say no if there are warnings
9059     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9060     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9061     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9062       lt_cv_prog_compiler_c_o=yes
9063     fi
9064   fi
9065   chmod u+w . 2>&5
9066   $RM conftest*
9067   # SGI C++ compiler will create directory out/ii_files/ for
9068   # template instantiation
9069   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9070   $RM out/* && rmdir out
9071   cd ..
9072   $RM -r conftest
9073   $RM conftest*
9074
9075fi
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9077$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9078
9079
9080
9081
9082hard_links="nottested"
9083if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9084  # do not overwrite the value of need_locks provided by the user
9085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9086$as_echo_n "checking if we can lock with hard links... " >&6; }
9087  hard_links=yes
9088  $RM conftest*
9089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9090  touch conftest.a
9091  ln conftest.a conftest.b 2>&5 || hard_links=no
9092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9094$as_echo "$hard_links" >&6; }
9095  if test "$hard_links" = no; then
9096    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9097$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9098    need_locks=warn
9099  fi
9100else
9101  need_locks=no
9102fi
9103
9104
9105
9106
9107
9108
9109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9110$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9111
9112  runpath_var=
9113  allow_undefined_flag=
9114  always_export_symbols=no
9115  archive_cmds=
9116  archive_expsym_cmds=
9117  compiler_needs_object=no
9118  enable_shared_with_static_runtimes=no
9119  export_dynamic_flag_spec=
9120  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9121  hardcode_automatic=no
9122  hardcode_direct=no
9123  hardcode_direct_absolute=no
9124  hardcode_libdir_flag_spec=
9125  hardcode_libdir_separator=
9126  hardcode_minus_L=no
9127  hardcode_shlibpath_var=unsupported
9128  inherit_rpath=no
9129  link_all_deplibs=unknown
9130  module_cmds=
9131  module_expsym_cmds=
9132  old_archive_from_new_cmds=
9133  old_archive_from_expsyms_cmds=
9134  thread_safe_flag_spec=
9135  whole_archive_flag_spec=
9136  # include_expsyms should be a list of space-separated symbols to be *always*
9137  # included in the symbol list
9138  include_expsyms=
9139  # exclude_expsyms can be an extended regexp of symbols to exclude
9140  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9141  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9142  # as well as any symbol that contains `d'.
9143  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9144  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9145  # platforms (ab)use it in PIC code, but their linkers get confused if
9146  # the symbol is explicitly referenced.  Since portable code cannot
9147  # rely on this symbol name, it's probably fine to never include it in
9148  # preloaded symbol tables.
9149  # Exclude shared library initialization/finalization symbols.
9150  extract_expsyms_cmds=
9151
9152  case $host_os in
9153  cygwin* | mingw* | pw32* | cegcc*)
9154    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9155    # When not using gcc, we currently assume that we are using
9156    # Microsoft Visual C++.
9157    if test "$GCC" != yes; then
9158      with_gnu_ld=no
9159    fi
9160    ;;
9161  interix*)
9162    # we just hope/assume this is gcc and not c89 (= MSVC++)
9163    with_gnu_ld=yes
9164    ;;
9165  openbsd*)
9166    with_gnu_ld=no
9167    ;;
9168  esac
9169
9170  ld_shlibs=yes
9171
9172  # On some targets, GNU ld is compatible enough with the native linker
9173  # that we're better off using the native interface for both.
9174  lt_use_gnu_ld_interface=no
9175  if test "$with_gnu_ld" = yes; then
9176    case $host_os in
9177      aix*)
9178	# The AIX port of GNU ld has always aspired to compatibility
9179	# with the native linker.  However, as the warning in the GNU ld
9180	# block says, versions before 2.19.5* couldn't really create working
9181	# shared libraries, regardless of the interface used.
9182	case `$LD -v 2>&1` in
9183	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9184	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9185	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9186	  *)
9187	    lt_use_gnu_ld_interface=yes
9188	    ;;
9189	esac
9190	;;
9191      *)
9192	lt_use_gnu_ld_interface=yes
9193	;;
9194    esac
9195  fi
9196
9197  if test "$lt_use_gnu_ld_interface" = yes; then
9198    # If archive_cmds runs LD, not CC, wlarc should be empty
9199    wlarc='${wl}'
9200
9201    # Set some defaults for GNU ld with shared library support. These
9202    # are reset later if shared libraries are not supported. Putting them
9203    # here allows them to be overridden if necessary.
9204    runpath_var=LD_RUN_PATH
9205    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9206    export_dynamic_flag_spec='${wl}--export-dynamic'
9207    # ancient GNU ld didn't support --whole-archive et. al.
9208    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9209      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9210    else
9211      whole_archive_flag_spec=
9212    fi
9213    supports_anon_versioning=no
9214    case `$LD -v 2>&1` in
9215      *GNU\ gold*) supports_anon_versioning=yes ;;
9216      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9217      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9218      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9219      *\ 2.11.*) ;; # other 2.11 versions
9220      *) supports_anon_versioning=yes ;;
9221    esac
9222
9223    # See if GNU ld supports shared libraries.
9224    case $host_os in
9225    aix[3-9]*)
9226      # On AIX/PPC, the GNU linker is very broken
9227      if test "$host_cpu" != ia64; then
9228	ld_shlibs=no
9229	cat <<_LT_EOF 1>&2
9230
9231*** Warning: the GNU linker, at least up to release 2.19, is reported
9232*** to be unable to reliably create shared libraries on AIX.
9233*** Therefore, libtool is disabling shared libraries support.  If you
9234*** really care for shared libraries, you may want to install binutils
9235*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9236*** You will then need to restart the configuration process.
9237
9238_LT_EOF
9239      fi
9240      ;;
9241
9242    amigaos*)
9243      case $host_cpu in
9244      powerpc)
9245            # see comment about AmigaOS4 .so support
9246            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247            archive_expsym_cmds=''
9248        ;;
9249      m68k)
9250            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)'
9251            hardcode_libdir_flag_spec='-L$libdir'
9252            hardcode_minus_L=yes
9253        ;;
9254      esac
9255      ;;
9256
9257    beos*)
9258      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9259	allow_undefined_flag=unsupported
9260	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9261	# support --undefined.  This deserves some investigation.  FIXME
9262	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263      else
9264	ld_shlibs=no
9265      fi
9266      ;;
9267
9268    cygwin* | mingw* | pw32* | cegcc*)
9269      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9270      # as there is no search path for DLLs.
9271      hardcode_libdir_flag_spec='-L$libdir'
9272      export_dynamic_flag_spec='${wl}--export-all-symbols'
9273      allow_undefined_flag=unsupported
9274      always_export_symbols=no
9275      enable_shared_with_static_runtimes=yes
9276      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'
9277      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9278
9279      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9280        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9281	# If the export-symbols file already is a .def file (1st line
9282	# is EXPORTS), use it as is; otherwise, prepend...
9283	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9284	  cp $export_symbols $output_objdir/$soname.def;
9285	else
9286	  echo EXPORTS > $output_objdir/$soname.def;
9287	  cat $export_symbols >> $output_objdir/$soname.def;
9288	fi~
9289	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9290      else
9291	ld_shlibs=no
9292      fi
9293      ;;
9294
9295    haiku*)
9296      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9297      link_all_deplibs=yes
9298      ;;
9299
9300    interix[3-9]*)
9301      hardcode_direct=no
9302      hardcode_shlibpath_var=no
9303      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9304      export_dynamic_flag_spec='${wl}-E'
9305      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9306      # Instead, shared libraries are loaded at an image base (0x10000000 by
9307      # default) and relocated if they conflict, which is a slow very memory
9308      # consuming and fragmenting process.  To avoid this, we pick a random,
9309      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9310      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9311      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9312      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'
9313      ;;
9314
9315    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9316      tmp_diet=no
9317      if test "$host_os" = linux-dietlibc; then
9318	case $cc_basename in
9319	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9320	esac
9321      fi
9322      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9323	 && test "$tmp_diet" = no
9324      then
9325	tmp_addflag=' $pic_flag'
9326	tmp_sharedflag='-shared'
9327	case $cc_basename,$host_cpu in
9328        pgcc*)				# Portland Group C compiler
9329	  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'
9330	  tmp_addflag=' $pic_flag'
9331	  ;;
9332	pgf77* | pgf90* | pgf95* | pgfortran*)
9333					# Portland Group f77 and f90 compilers
9334	  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'
9335	  tmp_addflag=' $pic_flag -Mnomain' ;;
9336	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9337	  tmp_addflag=' -i_dynamic' ;;
9338	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9339	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9340	ifc* | ifort*)			# Intel Fortran compiler
9341	  tmp_addflag=' -nofor_main' ;;
9342	lf95*)				# Lahey Fortran 8.1
9343	  whole_archive_flag_spec=
9344	  tmp_sharedflag='--shared' ;;
9345	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9346	  tmp_sharedflag='-qmkshrobj'
9347	  tmp_addflag= ;;
9348	nvcc*)	# Cuda Compiler Driver 2.2
9349	  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'
9350	  compiler_needs_object=yes
9351	  ;;
9352	esac
9353	case `$CC -V 2>&1 | sed 5q` in
9354	*Sun\ C*)			# Sun C 5.9
9355	  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'
9356	  compiler_needs_object=yes
9357	  tmp_sharedflag='-G' ;;
9358	*Sun\ F*)			# Sun Fortran 8.3
9359	  tmp_sharedflag='-G' ;;
9360	esac
9361	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362
9363        if test "x$supports_anon_versioning" = xyes; then
9364          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9365	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9366	    echo "local: *; };" >> $output_objdir/$libname.ver~
9367	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9368        fi
9369
9370	case $cc_basename in
9371	xlf* | bgf* | bgxlf* | mpixlf*)
9372	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9373	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9374	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9376	  if test "x$supports_anon_versioning" = xyes; then
9377	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9378	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9379	      echo "local: *; };" >> $output_objdir/$libname.ver~
9380	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9381	  fi
9382	  ;;
9383	esac
9384      else
9385        ld_shlibs=no
9386      fi
9387      ;;
9388
9389    netbsd*)
9390      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9391	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9392	wlarc=
9393      else
9394	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9396      fi
9397      ;;
9398
9399    solaris*)
9400      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9401	ld_shlibs=no
9402	cat <<_LT_EOF 1>&2
9403
9404*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9405*** create shared libraries on Solaris systems.  Therefore, libtool
9406*** is disabling shared libraries support.  We urge you to upgrade GNU
9407*** binutils to release 2.9.1 or newer.  Another option is to modify
9408*** your PATH or compiler configuration so that the native linker is
9409*** used, and then restart.
9410
9411_LT_EOF
9412      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9413	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9415      else
9416	ld_shlibs=no
9417      fi
9418      ;;
9419
9420    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9421      case `$LD -v 2>&1` in
9422        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9423	ld_shlibs=no
9424	cat <<_LT_EOF 1>&2
9425
9426*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9427*** reliably create shared libraries on SCO systems.  Therefore, libtool
9428*** is disabling shared libraries support.  We urge you to upgrade GNU
9429*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9430*** your PATH or compiler configuration so that the native linker is
9431*** used, and then restart.
9432
9433_LT_EOF
9434	;;
9435	*)
9436	  # For security reasons, it is highly recommended that you always
9437	  # use absolute paths for naming shared libraries, and exclude the
9438	  # DT_RUNPATH tag from executables and libraries.  But doing so
9439	  # requires that you compile everything twice, which is a pain.
9440	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9441	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9442	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9444	  else
9445	    ld_shlibs=no
9446	  fi
9447	;;
9448      esac
9449      ;;
9450
9451    sunos4*)
9452      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9453      wlarc=
9454      hardcode_direct=yes
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    *)
9459      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9460	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9462      else
9463	ld_shlibs=no
9464      fi
9465      ;;
9466    esac
9467
9468    if test "$ld_shlibs" = no; then
9469      runpath_var=
9470      hardcode_libdir_flag_spec=
9471      export_dynamic_flag_spec=
9472      whole_archive_flag_spec=
9473    fi
9474  else
9475    # PORTME fill in a description of your system's linker (not GNU ld)
9476    case $host_os in
9477    aix3*)
9478      allow_undefined_flag=unsupported
9479      always_export_symbols=yes
9480      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'
9481      # Note: this linker hardcodes the directories in LIBPATH if there
9482      # are no directories specified by -L.
9483      hardcode_minus_L=yes
9484      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9485	# Neither direct hardcoding nor static linking is supported with a
9486	# broken collect2.
9487	hardcode_direct=unsupported
9488      fi
9489      ;;
9490
9491    aix[4-9]*)
9492      if test "$host_cpu" = ia64; then
9493	# On IA64, the linker does run time linking by default, so we don't
9494	# have to do anything special.
9495	aix_use_runtimelinking=no
9496	exp_sym_flag='-Bexport'
9497	no_entry_flag=""
9498      else
9499	# If we're using GNU nm, then we don't want the "-C" option.
9500	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9501	# Also, AIX nm treats weak defined symbols like other global
9502	# defined symbols, whereas GNU nm marks them as "W".
9503	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9504	  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'
9505	else
9506	  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'
9507	fi
9508	aix_use_runtimelinking=no
9509
9510	# Test if we are trying to use run time linking or normal
9511	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9512	# need to do runtime linking.
9513	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9514	  for ld_flag in $LDFLAGS; do
9515	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9516	    aix_use_runtimelinking=yes
9517	    break
9518	  fi
9519	  done
9520	  ;;
9521	esac
9522
9523	exp_sym_flag='-bexport'
9524	no_entry_flag='-bnoentry'
9525      fi
9526
9527      # When large executables or shared objects are built, AIX ld can
9528      # have problems creating the table of contents.  If linking a library
9529      # or program results in "error TOC overflow" add -mminimal-toc to
9530      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9531      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9532
9533      archive_cmds=''
9534      hardcode_direct=yes
9535      hardcode_direct_absolute=yes
9536      hardcode_libdir_separator=':'
9537      link_all_deplibs=yes
9538      file_list_spec='${wl}-f,'
9539
9540      if test "$GCC" = yes; then
9541	case $host_os in aix4.[012]|aix4.[012].*)
9542	# We only want to do this on AIX 4.2 and lower, the check
9543	# below for broken collect2 doesn't work under 4.3+
9544	  collect2name=`${CC} -print-prog-name=collect2`
9545	  if test -f "$collect2name" &&
9546	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9547	  then
9548	  # We have reworked collect2
9549	  :
9550	  else
9551	  # We have old collect2
9552	  hardcode_direct=unsupported
9553	  # It fails to find uninstalled libraries when the uninstalled
9554	  # path is not listed in the libpath.  Setting hardcode_minus_L
9555	  # to unsupported forces relinking
9556	  hardcode_minus_L=yes
9557	  hardcode_libdir_flag_spec='-L$libdir'
9558	  hardcode_libdir_separator=
9559	  fi
9560	  ;;
9561	esac
9562	shared_flag='-shared'
9563	if test "$aix_use_runtimelinking" = yes; then
9564	  shared_flag="$shared_flag "'${wl}-G'
9565	fi
9566      else
9567	# not using gcc
9568	if test "$host_cpu" = ia64; then
9569	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9570	# chokes on -Wl,-G. The following line is correct:
9571	  shared_flag='-G'
9572	else
9573	  if test "$aix_use_runtimelinking" = yes; then
9574	    shared_flag='${wl}-G'
9575	  else
9576	    shared_flag='${wl}-bM:SRE'
9577	  fi
9578	fi
9579      fi
9580
9581      export_dynamic_flag_spec='${wl}-bexpall'
9582      # It seems that -bexpall does not export symbols beginning with
9583      # underscore (_), so it is better to generate a list of symbols to export.
9584      always_export_symbols=yes
9585      if test "$aix_use_runtimelinking" = yes; then
9586	# Warning - without using the other runtime loading flags (-brtl),
9587	# -berok will link without error, but may produce a broken library.
9588	allow_undefined_flag='-berok'
9589        # Determine the default libpath from the value encoded in an
9590        # empty executable.
9591        if test "${lt_cv_aix_libpath+set}" = set; then
9592  aix_libpath=$lt_cv_aix_libpath
9593else
9594  if ${lt_cv_aix_libpath_+:} false; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599
9600int
9601main ()
9602{
9603
9604  ;
9605  return 0;
9606}
9607_ACEOF
9608if ac_fn_c_try_link "$LINENO"; then :
9609
9610  lt_aix_libpath_sed='
9611      /Import File Strings/,/^$/ {
9612	  /^0/ {
9613	      s/^0  *\([^ ]*\) *$/\1/
9614	      p
9615	  }
9616      }'
9617  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618  # Check for a 64-bit object if we didn't find anything.
9619  if test -z "$lt_cv_aix_libpath_"; then
9620    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621  fi
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624    conftest$ac_exeext conftest.$ac_ext
9625  if test -z "$lt_cv_aix_libpath_"; then
9626    lt_cv_aix_libpath_="/usr/lib:/lib"
9627  fi
9628
9629fi
9630
9631  aix_libpath=$lt_cv_aix_libpath_
9632fi
9633
9634        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9635        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"
9636      else
9637	if test "$host_cpu" = ia64; then
9638	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9639	  allow_undefined_flag="-z nodefs"
9640	  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"
9641	else
9642	 # Determine the default libpath from the value encoded in an
9643	 # empty executable.
9644	 if test "${lt_cv_aix_libpath+set}" = set; then
9645  aix_libpath=$lt_cv_aix_libpath
9646else
9647  if ${lt_cv_aix_libpath_+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652
9653int
9654main ()
9655{
9656
9657  ;
9658  return 0;
9659}
9660_ACEOF
9661if ac_fn_c_try_link "$LINENO"; then :
9662
9663  lt_aix_libpath_sed='
9664      /Import File Strings/,/^$/ {
9665	  /^0/ {
9666	      s/^0  *\([^ ]*\) *$/\1/
9667	      p
9668	  }
9669      }'
9670  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9671  # Check for a 64-bit object if we didn't find anything.
9672  if test -z "$lt_cv_aix_libpath_"; then
9673    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674  fi
9675fi
9676rm -f core conftest.err conftest.$ac_objext \
9677    conftest$ac_exeext conftest.$ac_ext
9678  if test -z "$lt_cv_aix_libpath_"; then
9679    lt_cv_aix_libpath_="/usr/lib:/lib"
9680  fi
9681
9682fi
9683
9684  aix_libpath=$lt_cv_aix_libpath_
9685fi
9686
9687	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9688	  # Warning - without using the other run time loading flags,
9689	  # -berok will link without error, but may produce a broken library.
9690	  no_undefined_flag=' ${wl}-bernotok'
9691	  allow_undefined_flag=' ${wl}-berok'
9692	  if test "$with_gnu_ld" = yes; then
9693	    # We only use this code for GNU lds that support --whole-archive.
9694	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9695	  else
9696	    # Exported symbols can be pulled into shared objects from archives
9697	    whole_archive_flag_spec='$convenience'
9698	  fi
9699	  archive_cmds_need_lc=yes
9700	  # This is similar to how AIX traditionally builds its shared libraries.
9701	  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'
9702	fi
9703      fi
9704      ;;
9705
9706    amigaos*)
9707      case $host_cpu in
9708      powerpc)
9709            # see comment about AmigaOS4 .so support
9710            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711            archive_expsym_cmds=''
9712        ;;
9713      m68k)
9714            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)'
9715            hardcode_libdir_flag_spec='-L$libdir'
9716            hardcode_minus_L=yes
9717        ;;
9718      esac
9719      ;;
9720
9721    bsdi[45]*)
9722      export_dynamic_flag_spec=-rdynamic
9723      ;;
9724
9725    cygwin* | mingw* | pw32* | cegcc*)
9726      # When not using gcc, we currently assume that we are using
9727      # Microsoft Visual C++.
9728      # hardcode_libdir_flag_spec is actually meaningless, as there is
9729      # no search path for DLLs.
9730      case $cc_basename in
9731      cl*)
9732	# Native MSVC
9733	hardcode_libdir_flag_spec=' '
9734	allow_undefined_flag=unsupported
9735	always_export_symbols=yes
9736	file_list_spec='@'
9737	# Tell ltmain to make .lib files, not .a files.
9738	libext=lib
9739	# Tell ltmain to make .dll files, not .so files.
9740	shrext_cmds=".dll"
9741	# FIXME: Setting linknames here is a bad hack.
9742	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9743	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9744	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9745	  else
9746	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9747	  fi~
9748	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9749	  linknames='
9750	# The linker will not automatically build a static lib if we build a DLL.
9751	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9752	enable_shared_with_static_runtimes=yes
9753	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9754	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9755	# Don't use ranlib
9756	old_postinstall_cmds='chmod 644 $oldlib'
9757	postlink_cmds='lt_outputfile="@OUTPUT@"~
9758	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9759	  case $lt_outputfile in
9760	    *.exe|*.EXE) ;;
9761	    *)
9762	      lt_outputfile="$lt_outputfile.exe"
9763	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9764	      ;;
9765	  esac~
9766	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9767	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9768	    $RM "$lt_outputfile.manifest";
9769	  fi'
9770	;;
9771      *)
9772	# Assume MSVC wrapper
9773	hardcode_libdir_flag_spec=' '
9774	allow_undefined_flag=unsupported
9775	# Tell ltmain to make .lib files, not .a files.
9776	libext=lib
9777	# Tell ltmain to make .dll files, not .so files.
9778	shrext_cmds=".dll"
9779	# FIXME: Setting linknames here is a bad hack.
9780	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9781	# The linker will automatically build a .lib file if we build a DLL.
9782	old_archive_from_new_cmds='true'
9783	# FIXME: Should let the user specify the lib program.
9784	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9785	enable_shared_with_static_runtimes=yes
9786	;;
9787      esac
9788      ;;
9789
9790    darwin* | rhapsody*)
9791
9792
9793  archive_cmds_need_lc=no
9794  hardcode_direct=no
9795  hardcode_automatic=yes
9796  hardcode_shlibpath_var=unsupported
9797  if test "$lt_cv_ld_force_load" = "yes"; then
9798    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\"`'
9799
9800  else
9801    whole_archive_flag_spec=''
9802  fi
9803  link_all_deplibs=yes
9804  allow_undefined_flag="$_lt_dar_allow_undefined"
9805  case $cc_basename in
9806     ifort*) _lt_dar_can_shared=yes ;;
9807     *) _lt_dar_can_shared=$GCC ;;
9808  esac
9809  if test "$_lt_dar_can_shared" = "yes"; then
9810    output_verbose_link_cmd=func_echo_all
9811    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9812    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9813    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}"
9814    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}"
9815
9816  else
9817  ld_shlibs=no
9818  fi
9819
9820      ;;
9821
9822    dgux*)
9823      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824      hardcode_libdir_flag_spec='-L$libdir'
9825      hardcode_shlibpath_var=no
9826      ;;
9827
9828    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9829    # support.  Future versions do this automatically, but an explicit c++rt0.o
9830    # does not break anything, and helps significantly (at the cost of a little
9831    # extra space).
9832    freebsd2.2*)
9833      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9834      hardcode_libdir_flag_spec='-R$libdir'
9835      hardcode_direct=yes
9836      hardcode_shlibpath_var=no
9837      ;;
9838
9839    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9840    freebsd2.*)
9841      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842      hardcode_direct=yes
9843      hardcode_minus_L=yes
9844      hardcode_shlibpath_var=no
9845      ;;
9846
9847    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9848    freebsd* | dragonfly*)
9849      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9850      hardcode_libdir_flag_spec='-R$libdir'
9851      hardcode_direct=yes
9852      hardcode_shlibpath_var=no
9853      ;;
9854
9855    hpux9*)
9856      if test "$GCC" = yes; then
9857	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'
9858      else
9859	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'
9860      fi
9861      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9862      hardcode_libdir_separator=:
9863      hardcode_direct=yes
9864
9865      # hardcode_minus_L: Not really in the search PATH,
9866      # but as the default location of the library.
9867      hardcode_minus_L=yes
9868      export_dynamic_flag_spec='${wl}-E'
9869      ;;
9870
9871    hpux10*)
9872      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9873	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9874      else
9875	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9876      fi
9877      if test "$with_gnu_ld" = no; then
9878	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9879	hardcode_libdir_separator=:
9880	hardcode_direct=yes
9881	hardcode_direct_absolute=yes
9882	export_dynamic_flag_spec='${wl}-E'
9883	# hardcode_minus_L: Not really in the search PATH,
9884	# but as the default location of the library.
9885	hardcode_minus_L=yes
9886      fi
9887      ;;
9888
9889    hpux11*)
9890      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9891	case $host_cpu in
9892	hppa*64*)
9893	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894	  ;;
9895	ia64*)
9896	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9897	  ;;
9898	*)
9899	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900	  ;;
9901	esac
9902      else
9903	case $host_cpu in
9904	hppa*64*)
9905	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9906	  ;;
9907	ia64*)
9908	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9909	  ;;
9910	*)
9911
9912	  # Older versions of the 11.00 compiler do not understand -b yet
9913	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9914	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9915$as_echo_n "checking if $CC understands -b... " >&6; }
9916if ${lt_cv_prog_compiler__b+:} false; then :
9917  $as_echo_n "(cached) " >&6
9918else
9919  lt_cv_prog_compiler__b=no
9920   save_LDFLAGS="$LDFLAGS"
9921   LDFLAGS="$LDFLAGS -b"
9922   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9923   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9924     # The linker can only warn and ignore the option if not recognized
9925     # So say no if there are warnings
9926     if test -s conftest.err; then
9927       # Append any errors to the config.log.
9928       cat conftest.err 1>&5
9929       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9930       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9931       if diff conftest.exp conftest.er2 >/dev/null; then
9932         lt_cv_prog_compiler__b=yes
9933       fi
9934     else
9935       lt_cv_prog_compiler__b=yes
9936     fi
9937   fi
9938   $RM -r conftest*
9939   LDFLAGS="$save_LDFLAGS"
9940
9941fi
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9943$as_echo "$lt_cv_prog_compiler__b" >&6; }
9944
9945if test x"$lt_cv_prog_compiler__b" = xyes; then
9946    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9947else
9948    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9949fi
9950
9951	  ;;
9952	esac
9953      fi
9954      if test "$with_gnu_ld" = no; then
9955	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9956	hardcode_libdir_separator=:
9957
9958	case $host_cpu in
9959	hppa*64*|ia64*)
9960	  hardcode_direct=no
9961	  hardcode_shlibpath_var=no
9962	  ;;
9963	*)
9964	  hardcode_direct=yes
9965	  hardcode_direct_absolute=yes
9966	  export_dynamic_flag_spec='${wl}-E'
9967
9968	  # hardcode_minus_L: Not really in the search PATH,
9969	  # but as the default location of the library.
9970	  hardcode_minus_L=yes
9971	  ;;
9972	esac
9973      fi
9974      ;;
9975
9976    irix5* | irix6* | nonstopux*)
9977      if test "$GCC" = yes; then
9978	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'
9979	# Try to use the -exported_symbol ld option, if it does not
9980	# work, assume that -exports_file does not work either and
9981	# implicitly export all symbols.
9982	# This should be the same for all languages, so no per-tag cache variable.
9983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9984$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9985if ${lt_cv_irix_exported_symbol+:} false; then :
9986  $as_echo_n "(cached) " >&6
9987else
9988  save_LDFLAGS="$LDFLAGS"
9989	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9990	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991/* end confdefs.h.  */
9992int foo (void) { return 0; }
9993_ACEOF
9994if ac_fn_c_try_link "$LINENO"; then :
9995  lt_cv_irix_exported_symbol=yes
9996else
9997  lt_cv_irix_exported_symbol=no
9998fi
9999rm -f core conftest.err conftest.$ac_objext \
10000    conftest$ac_exeext conftest.$ac_ext
10001           LDFLAGS="$save_LDFLAGS"
10002fi
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10004$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10005	if test "$lt_cv_irix_exported_symbol" = yes; then
10006          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'
10007	fi
10008      else
10009	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'
10010	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'
10011      fi
10012      archive_cmds_need_lc='no'
10013      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014      hardcode_libdir_separator=:
10015      inherit_rpath=yes
10016      link_all_deplibs=yes
10017      ;;
10018
10019    netbsd*)
10020      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10021	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10022      else
10023	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10024      fi
10025      hardcode_libdir_flag_spec='-R$libdir'
10026      hardcode_direct=yes
10027      hardcode_shlibpath_var=no
10028      ;;
10029
10030    newsos6)
10031      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032      hardcode_direct=yes
10033      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034      hardcode_libdir_separator=:
10035      hardcode_shlibpath_var=no
10036      ;;
10037
10038    *nto* | *qnx*)
10039      ;;
10040
10041    openbsd*)
10042      if test -f /usr/libexec/ld.so; then
10043	hardcode_direct=yes
10044	hardcode_shlibpath_var=no
10045	hardcode_direct_absolute=yes
10046	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10047	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10048	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10049	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10050	  export_dynamic_flag_spec='${wl}-E'
10051	else
10052	  case $host_os in
10053	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10054	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10055	     hardcode_libdir_flag_spec='-R$libdir'
10056	     ;;
10057	   *)
10058	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10059	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10060	     ;;
10061	  esac
10062	fi
10063      else
10064	ld_shlibs=no
10065      fi
10066      ;;
10067
10068    os2*)
10069      hardcode_libdir_flag_spec='-L$libdir'
10070      hardcode_minus_L=yes
10071      allow_undefined_flag=unsupported
10072      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'
10073      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10074      ;;
10075
10076    osf3*)
10077      if test "$GCC" = yes; then
10078	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10079	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'
10080      else
10081	allow_undefined_flag=' -expect_unresolved \*'
10082	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'
10083      fi
10084      archive_cmds_need_lc='no'
10085      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10086      hardcode_libdir_separator=:
10087      ;;
10088
10089    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10090      if test "$GCC" = yes; then
10091	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10092	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'
10093	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094      else
10095	allow_undefined_flag=' -expect_unresolved \*'
10096	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'
10097	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~
10098	$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'
10099
10100	# Both c and cxx compiler support -rpath directly
10101	hardcode_libdir_flag_spec='-rpath $libdir'
10102      fi
10103      archive_cmds_need_lc='no'
10104      hardcode_libdir_separator=:
10105      ;;
10106
10107    solaris*)
10108      no_undefined_flag=' -z defs'
10109      if test "$GCC" = yes; then
10110	wlarc='${wl}'
10111	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10112	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10113	  $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'
10114      else
10115	case `$CC -V 2>&1` in
10116	*"Compilers 5.0"*)
10117	  wlarc=''
10118	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10120	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10121	  ;;
10122	*)
10123	  wlarc='${wl}'
10124	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10125	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10126	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10127	  ;;
10128	esac
10129      fi
10130      hardcode_libdir_flag_spec='-R$libdir'
10131      hardcode_shlibpath_var=no
10132      case $host_os in
10133      solaris2.[0-5] | solaris2.[0-5].*) ;;
10134      *)
10135	# The compiler driver will combine and reorder linker options,
10136	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10137	# but is careful enough not to reorder.
10138	# Supported since Solaris 2.6 (maybe 2.5.1?)
10139	if test "$GCC" = yes; then
10140	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10141	else
10142	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10143	fi
10144	;;
10145      esac
10146      link_all_deplibs=yes
10147      ;;
10148
10149    sunos4*)
10150      if test "x$host_vendor" = xsequent; then
10151	# Use $CC to link under sequent, because it throws in some extra .o
10152	# files that make .init and .fini sections work.
10153	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10154      else
10155	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10156      fi
10157      hardcode_libdir_flag_spec='-L$libdir'
10158      hardcode_direct=yes
10159      hardcode_minus_L=yes
10160      hardcode_shlibpath_var=no
10161      ;;
10162
10163    sysv4)
10164      case $host_vendor in
10165	sni)
10166	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167	  hardcode_direct=yes # is this really true???
10168	;;
10169	siemens)
10170	  ## LD is ld it makes a PLAMLIB
10171	  ## CC just makes a GrossModule.
10172	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10173	  reload_cmds='$CC -r -o $output$reload_objs'
10174	  hardcode_direct=no
10175        ;;
10176	motorola)
10177	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10179	;;
10180      esac
10181      runpath_var='LD_RUN_PATH'
10182      hardcode_shlibpath_var=no
10183      ;;
10184
10185    sysv4.3*)
10186      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187      hardcode_shlibpath_var=no
10188      export_dynamic_flag_spec='-Bexport'
10189      ;;
10190
10191    sysv4*MP*)
10192      if test -d /usr/nec; then
10193	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194	hardcode_shlibpath_var=no
10195	runpath_var=LD_RUN_PATH
10196	hardcode_runpath_var=yes
10197	ld_shlibs=yes
10198      fi
10199      ;;
10200
10201    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10202      no_undefined_flag='${wl}-z,text'
10203      archive_cmds_need_lc=no
10204      hardcode_shlibpath_var=no
10205      runpath_var='LD_RUN_PATH'
10206
10207      if test "$GCC" = yes; then
10208	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210      else
10211	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213      fi
10214      ;;
10215
10216    sysv5* | sco3.2v5* | sco5v6*)
10217      # Note: We can NOT use -z defs as we might desire, because we do not
10218      # link with -lc, and that would cause any symbols used from libc to
10219      # always be unresolved, which means just about no library would
10220      # ever link correctly.  If we're not using GNU ld we use -z text
10221      # though, which does catch some bad symbols but isn't as heavy-handed
10222      # as -z defs.
10223      no_undefined_flag='${wl}-z,text'
10224      allow_undefined_flag='${wl}-z,nodefs'
10225      archive_cmds_need_lc=no
10226      hardcode_shlibpath_var=no
10227      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10228      hardcode_libdir_separator=':'
10229      link_all_deplibs=yes
10230      export_dynamic_flag_spec='${wl}-Bexport'
10231      runpath_var='LD_RUN_PATH'
10232
10233      if test "$GCC" = yes; then
10234	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236      else
10237	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239      fi
10240      ;;
10241
10242    uts4*)
10243      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244      hardcode_libdir_flag_spec='-L$libdir'
10245      hardcode_shlibpath_var=no
10246      ;;
10247
10248    *)
10249      ld_shlibs=no
10250      ;;
10251    esac
10252
10253    if test x$host_vendor = xsni; then
10254      case $host in
10255      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10256	export_dynamic_flag_spec='${wl}-Blargedynsym'
10257	;;
10258      esac
10259    fi
10260  fi
10261
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10263$as_echo "$ld_shlibs" >&6; }
10264test "$ld_shlibs" = no && can_build_shared=no
10265
10266with_gnu_ld=$with_gnu_ld
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282#
10283# Do we need to explicitly link libc?
10284#
10285case "x$archive_cmds_need_lc" in
10286x|xyes)
10287  # Assume -lc should be added
10288  archive_cmds_need_lc=yes
10289
10290  if test "$enable_shared" = yes && test "$GCC" = yes; then
10291    case $archive_cmds in
10292    *'~'*)
10293      # FIXME: we may have to deal with multi-command sequences.
10294      ;;
10295    '$CC '*)
10296      # Test whether the compiler implicitly links with -lc since on some
10297      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10298      # to ld, don't add -lc before -lgcc.
10299      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10300$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10301if ${lt_cv_archive_cmds_need_lc+:} false; then :
10302  $as_echo_n "(cached) " >&6
10303else
10304  $RM conftest*
10305	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10306
10307	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10308  (eval $ac_compile) 2>&5
10309  ac_status=$?
10310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311  test $ac_status = 0; } 2>conftest.err; then
10312	  soname=conftest
10313	  lib=conftest
10314	  libobjs=conftest.$ac_objext
10315	  deplibs=
10316	  wl=$lt_prog_compiler_wl
10317	  pic_flag=$lt_prog_compiler_pic
10318	  compiler_flags=-v
10319	  linker_flags=-v
10320	  verstring=
10321	  output_objdir=.
10322	  libname=conftest
10323	  lt_save_allow_undefined_flag=$allow_undefined_flag
10324	  allow_undefined_flag=
10325	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10326  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10327  ac_status=$?
10328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10329  test $ac_status = 0; }
10330	  then
10331	    lt_cv_archive_cmds_need_lc=no
10332	  else
10333	    lt_cv_archive_cmds_need_lc=yes
10334	  fi
10335	  allow_undefined_flag=$lt_save_allow_undefined_flag
10336	else
10337	  cat conftest.err 1>&5
10338	fi
10339	$RM conftest*
10340
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10343$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10344      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10345      ;;
10346    esac
10347  fi
10348  ;;
10349esac
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10503$as_echo_n "checking dynamic linker characteristics... " >&6; }
10504
10505if test "$GCC" = yes; then
10506  case $host_os in
10507    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10508    *) lt_awk_arg="/^libraries:/" ;;
10509  esac
10510  case $host_os in
10511    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10512    *) lt_sed_strip_eq="s,=/,/,g" ;;
10513  esac
10514  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10515  case $lt_search_path_spec in
10516  *\;*)
10517    # if the path contains ";" then we assume it to be the separator
10518    # otherwise default to the standard path separator (i.e. ":") - it is
10519    # assumed that no part of a normal pathname contains ";" but that should
10520    # okay in the real world where ";" in dirpaths is itself problematic.
10521    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10522    ;;
10523  *)
10524    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10525    ;;
10526  esac
10527  # Ok, now we have the path, separated by spaces, we can step through it
10528  # and add multilib dir if necessary.
10529  lt_tmp_lt_search_path_spec=
10530  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10531  for lt_sys_path in $lt_search_path_spec; do
10532    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10533      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10534    else
10535      test -d "$lt_sys_path" && \
10536	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10537    fi
10538  done
10539  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10540BEGIN {RS=" "; FS="/|\n";} {
10541  lt_foo="";
10542  lt_count=0;
10543  for (lt_i = NF; lt_i > 0; lt_i--) {
10544    if ($lt_i != "" && $lt_i != ".") {
10545      if ($lt_i == "..") {
10546        lt_count++;
10547      } else {
10548        if (lt_count == 0) {
10549          lt_foo="/" $lt_i lt_foo;
10550        } else {
10551          lt_count--;
10552        }
10553      }
10554    }
10555  }
10556  if (lt_foo != "") { lt_freq[lt_foo]++; }
10557  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10558}'`
10559  # AWK program above erroneously prepends '/' to C:/dos/paths
10560  # for these hosts.
10561  case $host_os in
10562    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10563      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10564  esac
10565  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10566else
10567  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10568fi
10569library_names_spec=
10570libname_spec='lib$name'
10571soname_spec=
10572shrext_cmds=".so"
10573postinstall_cmds=
10574postuninstall_cmds=
10575finish_cmds=
10576finish_eval=
10577shlibpath_var=
10578shlibpath_overrides_runpath=unknown
10579version_type=none
10580dynamic_linker="$host_os ld.so"
10581sys_lib_dlsearch_path_spec="/lib /usr/lib"
10582need_lib_prefix=unknown
10583hardcode_into_libs=no
10584
10585# when you set need_version to no, make sure it does not cause -set_version
10586# flags to be left without arguments
10587need_version=unknown
10588
10589case $host_os in
10590aix3*)
10591  version_type=linux # correct to gnu/linux during the next big refactor
10592  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10593  shlibpath_var=LIBPATH
10594
10595  # AIX 3 has no versioning support, so we append a major version to the name.
10596  soname_spec='${libname}${release}${shared_ext}$major'
10597  ;;
10598
10599aix[4-9]*)
10600  version_type=linux # correct to gnu/linux during the next big refactor
10601  need_lib_prefix=no
10602  need_version=no
10603  hardcode_into_libs=yes
10604  if test "$host_cpu" = ia64; then
10605    # AIX 5 supports IA64
10606    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10607    shlibpath_var=LD_LIBRARY_PATH
10608  else
10609    # With GCC up to 2.95.x, collect2 would create an import file
10610    # for dependence libraries.  The import file would start with
10611    # the line `#! .'.  This would cause the generated library to
10612    # depend on `.', always an invalid library.  This was fixed in
10613    # development snapshots of GCC prior to 3.0.
10614    case $host_os in
10615      aix4 | aix4.[01] | aix4.[01].*)
10616      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10617	   echo ' yes '
10618	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10619	:
10620      else
10621	can_build_shared=no
10622      fi
10623      ;;
10624    esac
10625    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10626    # soname into executable. Probably we can add versioning support to
10627    # collect2, so additional links can be useful in future.
10628    if test "$aix_use_runtimelinking" = yes; then
10629      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10630      # instead of lib<name>.a to let people know that these are not
10631      # typical AIX shared libraries.
10632      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633    else
10634      # We preserve .a as extension for shared libraries through AIX4.2
10635      # and later when we are not doing run time linking.
10636      library_names_spec='${libname}${release}.a $libname.a'
10637      soname_spec='${libname}${release}${shared_ext}$major'
10638    fi
10639    shlibpath_var=LIBPATH
10640  fi
10641  ;;
10642
10643amigaos*)
10644  case $host_cpu in
10645  powerpc)
10646    # Since July 2007 AmigaOS4 officially supports .so libraries.
10647    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649    ;;
10650  m68k)
10651    library_names_spec='$libname.ixlibrary $libname.a'
10652    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10653    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'
10654    ;;
10655  esac
10656  ;;
10657
10658beos*)
10659  library_names_spec='${libname}${shared_ext}'
10660  dynamic_linker="$host_os ld.so"
10661  shlibpath_var=LIBRARY_PATH
10662  ;;
10663
10664bsdi[45]*)
10665  version_type=linux # correct to gnu/linux during the next big refactor
10666  need_version=no
10667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668  soname_spec='${libname}${release}${shared_ext}$major'
10669  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10670  shlibpath_var=LD_LIBRARY_PATH
10671  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10672  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10673  # the default ld.so.conf also contains /usr/contrib/lib and
10674  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10675  # libtool to hard-code these into programs
10676  ;;
10677
10678cygwin* | mingw* | pw32* | cegcc*)
10679  version_type=windows
10680  shrext_cmds=".dll"
10681  need_version=no
10682  need_lib_prefix=no
10683
10684  case $GCC,$cc_basename in
10685  yes,*)
10686    # gcc
10687    library_names_spec='$libname.dll.a'
10688    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10689    postinstall_cmds='base_file=`basename \${file}`~
10690      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10691      dldir=$destdir/`dirname \$dlpath`~
10692      test -d \$dldir || mkdir -p \$dldir~
10693      $install_prog $dir/$dlname \$dldir/$dlname~
10694      chmod a+x \$dldir/$dlname~
10695      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10696        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10697      fi'
10698    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10699      dlpath=$dir/\$dldll~
10700       $RM \$dlpath'
10701    shlibpath_overrides_runpath=yes
10702
10703    case $host_os in
10704    cygwin*)
10705      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10706      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10707
10708      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10709      ;;
10710    mingw* | cegcc*)
10711      # MinGW DLLs use traditional 'lib' prefix
10712      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10713      ;;
10714    pw32*)
10715      # pw32 DLLs use 'pw' prefix rather than 'lib'
10716      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717      ;;
10718    esac
10719    dynamic_linker='Win32 ld.exe'
10720    ;;
10721
10722  *,cl*)
10723    # Native MSVC
10724    libname_spec='$name'
10725    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726    library_names_spec='${libname}.dll.lib'
10727
10728    case $build_os in
10729    mingw*)
10730      sys_lib_search_path_spec=
10731      lt_save_ifs=$IFS
10732      IFS=';'
10733      for lt_path in $LIB
10734      do
10735        IFS=$lt_save_ifs
10736        # Let DOS variable expansion print the short 8.3 style file name.
10737        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10738        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10739      done
10740      IFS=$lt_save_ifs
10741      # Convert to MSYS style.
10742      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10743      ;;
10744    cygwin*)
10745      # Convert to unix form, then to dos form, then back to unix form
10746      # but this time dos style (no spaces!) so that the unix form looks
10747      # like /cygdrive/c/PROGRA~1:/cygdr...
10748      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10749      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10750      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10751      ;;
10752    *)
10753      sys_lib_search_path_spec="$LIB"
10754      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10755        # It is most probably a Windows format PATH.
10756        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10757      else
10758        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10759      fi
10760      # FIXME: find the short name or the path components, as spaces are
10761      # common. (e.g. "Program Files" -> "PROGRA~1")
10762      ;;
10763    esac
10764
10765    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10766    postinstall_cmds='base_file=`basename \${file}`~
10767      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10768      dldir=$destdir/`dirname \$dlpath`~
10769      test -d \$dldir || mkdir -p \$dldir~
10770      $install_prog $dir/$dlname \$dldir/$dlname'
10771    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10772      dlpath=$dir/\$dldll~
10773       $RM \$dlpath'
10774    shlibpath_overrides_runpath=yes
10775    dynamic_linker='Win32 link.exe'
10776    ;;
10777
10778  *)
10779    # Assume MSVC wrapper
10780    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10781    dynamic_linker='Win32 ld.exe'
10782    ;;
10783  esac
10784  # FIXME: first we should search . and the directory the executable is in
10785  shlibpath_var=PATH
10786  ;;
10787
10788darwin* | rhapsody*)
10789  dynamic_linker="$host_os dyld"
10790  version_type=darwin
10791  need_lib_prefix=no
10792  need_version=no
10793  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10794  soname_spec='${libname}${release}${major}$shared_ext'
10795  shlibpath_overrides_runpath=yes
10796  shlibpath_var=DYLD_LIBRARY_PATH
10797  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10798
10799  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10800  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10801  ;;
10802
10803dgux*)
10804  version_type=linux # correct to gnu/linux during the next big refactor
10805  need_lib_prefix=no
10806  need_version=no
10807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10808  soname_spec='${libname}${release}${shared_ext}$major'
10809  shlibpath_var=LD_LIBRARY_PATH
10810  ;;
10811
10812freebsd* | dragonfly*)
10813  # DragonFly does not have aout.  When/if they implement a new
10814  # versioning mechanism, adjust this.
10815  if test -x /usr/bin/objformat; then
10816    objformat=`/usr/bin/objformat`
10817  else
10818    case $host_os in
10819    freebsd[23].*) objformat=aout ;;
10820    *) objformat=elf ;;
10821    esac
10822  fi
10823  # Handle Gentoo/FreeBSD as it was Linux
10824  case $host_vendor in
10825    gentoo)
10826      version_type=linux ;;
10827    *)
10828      version_type=freebsd-$objformat ;;
10829  esac
10830
10831  case $version_type in
10832    freebsd-elf*)
10833      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10834      need_version=no
10835      need_lib_prefix=no
10836      ;;
10837    freebsd-*)
10838      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10839      need_version=yes
10840      ;;
10841    linux)
10842      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10843      soname_spec='${libname}${release}${shared_ext}$major'
10844      need_lib_prefix=no
10845      need_version=no
10846      ;;
10847  esac
10848  shlibpath_var=LD_LIBRARY_PATH
10849  case $host_os in
10850  freebsd2.*)
10851    shlibpath_overrides_runpath=yes
10852    ;;
10853  freebsd3.[01]* | freebsdelf3.[01]*)
10854    shlibpath_overrides_runpath=yes
10855    hardcode_into_libs=yes
10856    ;;
10857  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10858  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10859    shlibpath_overrides_runpath=no
10860    hardcode_into_libs=yes
10861    ;;
10862  *) # from 4.6 on, and DragonFly
10863    shlibpath_overrides_runpath=yes
10864    hardcode_into_libs=yes
10865    ;;
10866  esac
10867  ;;
10868
10869gnu*)
10870  version_type=linux # correct to gnu/linux during the next big refactor
10871  need_lib_prefix=no
10872  need_version=no
10873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10874  soname_spec='${libname}${release}${shared_ext}$major'
10875  shlibpath_var=LD_LIBRARY_PATH
10876  shlibpath_overrides_runpath=no
10877  hardcode_into_libs=yes
10878  ;;
10879
10880haiku*)
10881  version_type=linux # correct to gnu/linux during the next big refactor
10882  need_lib_prefix=no
10883  need_version=no
10884  dynamic_linker="$host_os runtime_loader"
10885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10886  soname_spec='${libname}${release}${shared_ext}$major'
10887  shlibpath_var=LIBRARY_PATH
10888  shlibpath_overrides_runpath=yes
10889  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10890  hardcode_into_libs=yes
10891  ;;
10892
10893hpux9* | hpux10* | hpux11*)
10894  # Give a soname corresponding to the major version so that dld.sl refuses to
10895  # link against other versions.
10896  version_type=sunos
10897  need_lib_prefix=no
10898  need_version=no
10899  case $host_cpu in
10900  ia64*)
10901    shrext_cmds='.so'
10902    hardcode_into_libs=yes
10903    dynamic_linker="$host_os dld.so"
10904    shlibpath_var=LD_LIBRARY_PATH
10905    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907    soname_spec='${libname}${release}${shared_ext}$major'
10908    if test "X$HPUX_IA64_MODE" = X32; then
10909      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10910    else
10911      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10912    fi
10913    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10914    ;;
10915  hppa*64*)
10916    shrext_cmds='.sl'
10917    hardcode_into_libs=yes
10918    dynamic_linker="$host_os dld.sl"
10919    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922    soname_spec='${libname}${release}${shared_ext}$major'
10923    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10924    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10925    ;;
10926  *)
10927    shrext_cmds='.sl'
10928    dynamic_linker="$host_os dld.sl"
10929    shlibpath_var=SHLIB_PATH
10930    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932    soname_spec='${libname}${release}${shared_ext}$major'
10933    ;;
10934  esac
10935  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10936  postinstall_cmds='chmod 555 $lib'
10937  # or fails outright, so override atomically:
10938  install_override_mode=555
10939  ;;
10940
10941interix[3-9]*)
10942  version_type=linux # correct to gnu/linux during the next big refactor
10943  need_lib_prefix=no
10944  need_version=no
10945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10946  soname_spec='${libname}${release}${shared_ext}$major'
10947  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10948  shlibpath_var=LD_LIBRARY_PATH
10949  shlibpath_overrides_runpath=no
10950  hardcode_into_libs=yes
10951  ;;
10952
10953irix5* | irix6* | nonstopux*)
10954  case $host_os in
10955    nonstopux*) version_type=nonstopux ;;
10956    *)
10957	if test "$lt_cv_prog_gnu_ld" = yes; then
10958		version_type=linux # correct to gnu/linux during the next big refactor
10959	else
10960		version_type=irix
10961	fi ;;
10962  esac
10963  need_lib_prefix=no
10964  need_version=no
10965  soname_spec='${libname}${release}${shared_ext}$major'
10966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10967  case $host_os in
10968  irix5* | nonstopux*)
10969    libsuff= shlibsuff=
10970    ;;
10971  *)
10972    case $LD in # libtool.m4 will add one of these switches to LD
10973    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10974      libsuff= shlibsuff= libmagic=32-bit;;
10975    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10976      libsuff=32 shlibsuff=N32 libmagic=N32;;
10977    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10978      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10979    *) libsuff= shlibsuff= libmagic=never-match;;
10980    esac
10981    ;;
10982  esac
10983  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10984  shlibpath_overrides_runpath=no
10985  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10986  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10987  hardcode_into_libs=yes
10988  ;;
10989
10990# No shared lib support for Linux oldld, aout, or coff.
10991linux*oldld* | linux*aout* | linux*coff*)
10992  dynamic_linker=no
10993  ;;
10994
10995# This must be glibc/ELF.
10996linux* | k*bsd*-gnu | kopensolaris*-gnu)
10997  version_type=linux # correct to gnu/linux during the next big refactor
10998  need_lib_prefix=no
10999  need_version=no
11000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001  soname_spec='${libname}${release}${shared_ext}$major'
11002  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11003  shlibpath_var=LD_LIBRARY_PATH
11004  shlibpath_overrides_runpath=no
11005
11006  # Some binutils ld are patched to set DT_RUNPATH
11007  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  lt_cv_shlibpath_overrides_runpath=no
11011    save_LDFLAGS=$LDFLAGS
11012    save_libdir=$libdir
11013    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11014	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017
11018int
11019main ()
11020{
11021
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"; then :
11027  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11028  lt_cv_shlibpath_overrides_runpath=yes
11029fi
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032    conftest$ac_exeext conftest.$ac_ext
11033    LDFLAGS=$save_LDFLAGS
11034    libdir=$save_libdir
11035
11036fi
11037
11038  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11039
11040  # This implies no fast_install, which is unacceptable.
11041  # Some rework will be needed to allow for fast_install
11042  # before this can be enabled.
11043  hardcode_into_libs=yes
11044
11045  # Append ld.so.conf contents to the search path
11046  if test -f /etc/ld.so.conf; then
11047    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' ' '`
11048    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11049  fi
11050
11051  # We used to test for /lib/ld.so.1 and disable shared libraries on
11052  # powerpc, because MkLinux only supported shared libraries with the
11053  # GNU dynamic linker.  Since this was broken with cross compilers,
11054  # most powerpc-linux boxes support dynamic linking these days and
11055  # people can always --disable-shared, the test was removed, and we
11056  # assume the GNU/Linux dynamic linker is in use.
11057  dynamic_linker='GNU/Linux ld.so'
11058  ;;
11059
11060netbsd*)
11061  version_type=sunos
11062  need_lib_prefix=no
11063  need_version=no
11064  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11065    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11067    dynamic_linker='NetBSD (a.out) ld.so'
11068  else
11069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11070    soname_spec='${libname}${release}${shared_ext}$major'
11071    dynamic_linker='NetBSD ld.elf_so'
11072  fi
11073  shlibpath_var=LD_LIBRARY_PATH
11074  shlibpath_overrides_runpath=yes
11075  hardcode_into_libs=yes
11076  ;;
11077
11078newsos6)
11079  version_type=linux # correct to gnu/linux during the next big refactor
11080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081  shlibpath_var=LD_LIBRARY_PATH
11082  shlibpath_overrides_runpath=yes
11083  ;;
11084
11085*nto* | *qnx*)
11086  version_type=qnx
11087  need_lib_prefix=no
11088  need_version=no
11089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090  soname_spec='${libname}${release}${shared_ext}$major'
11091  shlibpath_var=LD_LIBRARY_PATH
11092  shlibpath_overrides_runpath=no
11093  hardcode_into_libs=yes
11094  dynamic_linker='ldqnx.so'
11095  ;;
11096
11097openbsd*)
11098  version_type=sunos
11099  sys_lib_dlsearch_path_spec="/usr/lib"
11100  need_lib_prefix=no
11101  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11102  case $host_os in
11103    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11104    *)				need_version=no  ;;
11105  esac
11106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108  shlibpath_var=LD_LIBRARY_PATH
11109  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11110    case $host_os in
11111      openbsd2.[89] | openbsd2.[89].*)
11112	shlibpath_overrides_runpath=no
11113	;;
11114      *)
11115	shlibpath_overrides_runpath=yes
11116	;;
11117      esac
11118  else
11119    shlibpath_overrides_runpath=yes
11120  fi
11121  ;;
11122
11123os2*)
11124  libname_spec='$name'
11125  shrext_cmds=".dll"
11126  need_lib_prefix=no
11127  library_names_spec='$libname${shared_ext} $libname.a'
11128  dynamic_linker='OS/2 ld.exe'
11129  shlibpath_var=LIBPATH
11130  ;;
11131
11132osf3* | osf4* | osf5*)
11133  version_type=osf
11134  need_lib_prefix=no
11135  need_version=no
11136  soname_spec='${libname}${release}${shared_ext}$major'
11137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138  shlibpath_var=LD_LIBRARY_PATH
11139  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11140  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11141  ;;
11142
11143rdos*)
11144  dynamic_linker=no
11145  ;;
11146
11147solaris*)
11148  version_type=linux # correct to gnu/linux during the next big refactor
11149  need_lib_prefix=no
11150  need_version=no
11151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152  soname_spec='${libname}${release}${shared_ext}$major'
11153  shlibpath_var=LD_LIBRARY_PATH
11154  shlibpath_overrides_runpath=yes
11155  hardcode_into_libs=yes
11156  # ldd complains unless libraries are executable
11157  postinstall_cmds='chmod +x $lib'
11158  ;;
11159
11160sunos4*)
11161  version_type=sunos
11162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11164  shlibpath_var=LD_LIBRARY_PATH
11165  shlibpath_overrides_runpath=yes
11166  if test "$with_gnu_ld" = yes; then
11167    need_lib_prefix=no
11168  fi
11169  need_version=yes
11170  ;;
11171
11172sysv4 | sysv4.3*)
11173  version_type=linux # correct to gnu/linux during the next big refactor
11174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175  soname_spec='${libname}${release}${shared_ext}$major'
11176  shlibpath_var=LD_LIBRARY_PATH
11177  case $host_vendor in
11178    sni)
11179      shlibpath_overrides_runpath=no
11180      need_lib_prefix=no
11181      runpath_var=LD_RUN_PATH
11182      ;;
11183    siemens)
11184      need_lib_prefix=no
11185      ;;
11186    motorola)
11187      need_lib_prefix=no
11188      need_version=no
11189      shlibpath_overrides_runpath=no
11190      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11191      ;;
11192  esac
11193  ;;
11194
11195sysv4*MP*)
11196  if test -d /usr/nec ;then
11197    version_type=linux # correct to gnu/linux during the next big refactor
11198    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11199    soname_spec='$libname${shared_ext}.$major'
11200    shlibpath_var=LD_LIBRARY_PATH
11201  fi
11202  ;;
11203
11204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11205  version_type=freebsd-elf
11206  need_lib_prefix=no
11207  need_version=no
11208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11209  soname_spec='${libname}${release}${shared_ext}$major'
11210  shlibpath_var=LD_LIBRARY_PATH
11211  shlibpath_overrides_runpath=yes
11212  hardcode_into_libs=yes
11213  if test "$with_gnu_ld" = yes; then
11214    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11215  else
11216    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11217    case $host_os in
11218      sco3.2v5*)
11219        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11220	;;
11221    esac
11222  fi
11223  sys_lib_dlsearch_path_spec='/usr/lib'
11224  ;;
11225
11226tpf*)
11227  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11228  version_type=linux # correct to gnu/linux during the next big refactor
11229  need_lib_prefix=no
11230  need_version=no
11231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232  shlibpath_var=LD_LIBRARY_PATH
11233  shlibpath_overrides_runpath=no
11234  hardcode_into_libs=yes
11235  ;;
11236
11237uts4*)
11238  version_type=linux # correct to gnu/linux during the next big refactor
11239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240  soname_spec='${libname}${release}${shared_ext}$major'
11241  shlibpath_var=LD_LIBRARY_PATH
11242  ;;
11243
11244*)
11245  dynamic_linker=no
11246  ;;
11247esac
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11249$as_echo "$dynamic_linker" >&6; }
11250test "$dynamic_linker" = no && can_build_shared=no
11251
11252variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11253if test "$GCC" = yes; then
11254  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11255fi
11256
11257if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11258  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11259fi
11260if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11261  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11262fi
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
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11356$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11357hardcode_action=
11358if test -n "$hardcode_libdir_flag_spec" ||
11359   test -n "$runpath_var" ||
11360   test "X$hardcode_automatic" = "Xyes" ; then
11361
11362  # We can hardcode non-existent directories.
11363  if test "$hardcode_direct" != no &&
11364     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11365     # have to relink, otherwise we might link with an installed library
11366     # when we should be linking with a yet-to-be-installed one
11367     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11368     test "$hardcode_minus_L" != no; then
11369    # Linking always hardcodes the temporary library directory.
11370    hardcode_action=relink
11371  else
11372    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11373    hardcode_action=immediate
11374  fi
11375else
11376  # We cannot hardcode anything, or else we can only hardcode existing
11377  # directories.
11378  hardcode_action=unsupported
11379fi
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11381$as_echo "$hardcode_action" >&6; }
11382
11383if test "$hardcode_action" = relink ||
11384   test "$inherit_rpath" = yes; then
11385  # Fast installation is not supported
11386  enable_fast_install=no
11387elif test "$shlibpath_overrides_runpath" = yes ||
11388     test "$enable_shared" = no; then
11389  # Fast installation is not necessary
11390  enable_fast_install=needless
11391fi
11392
11393
11394
11395
11396
11397
11398  if test "x$enable_dlopen" != xyes; then
11399  enable_dlopen=unknown
11400  enable_dlopen_self=unknown
11401  enable_dlopen_self_static=unknown
11402else
11403  lt_cv_dlopen=no
11404  lt_cv_dlopen_libs=
11405
11406  case $host_os in
11407  beos*)
11408    lt_cv_dlopen="load_add_on"
11409    lt_cv_dlopen_libs=
11410    lt_cv_dlopen_self=yes
11411    ;;
11412
11413  mingw* | pw32* | cegcc*)
11414    lt_cv_dlopen="LoadLibrary"
11415    lt_cv_dlopen_libs=
11416    ;;
11417
11418  cygwin*)
11419    lt_cv_dlopen="dlopen"
11420    lt_cv_dlopen_libs=
11421    ;;
11422
11423  darwin*)
11424  # if libdl is installed we need to link against it
11425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11426$as_echo_n "checking for dlopen in -ldl... " >&6; }
11427if ${ac_cv_lib_dl_dlopen+:} false; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  ac_check_lib_save_LIBS=$LIBS
11431LIBS="-ldl  $LIBS"
11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h.  */
11434
11435/* Override any GCC internal prototype to avoid an error.
11436   Use char because int might match the return type of a GCC
11437   builtin and then its argument prototype would still apply.  */
11438#ifdef __cplusplus
11439extern "C"
11440#endif
11441char dlopen ();
11442int
11443main ()
11444{
11445return dlopen ();
11446  ;
11447  return 0;
11448}
11449_ACEOF
11450if ac_fn_c_try_link "$LINENO"; then :
11451  ac_cv_lib_dl_dlopen=yes
11452else
11453  ac_cv_lib_dl_dlopen=no
11454fi
11455rm -f core conftest.err conftest.$ac_objext \
11456    conftest$ac_exeext conftest.$ac_ext
11457LIBS=$ac_check_lib_save_LIBS
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11460$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11461if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11462  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11463else
11464
11465    lt_cv_dlopen="dyld"
11466    lt_cv_dlopen_libs=
11467    lt_cv_dlopen_self=yes
11468
11469fi
11470
11471    ;;
11472
11473  *)
11474    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11475if test "x$ac_cv_func_shl_load" = xyes; then :
11476  lt_cv_dlopen="shl_load"
11477else
11478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11479$as_echo_n "checking for shl_load in -ldld... " >&6; }
11480if ${ac_cv_lib_dld_shl_load+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  ac_check_lib_save_LIBS=$LIBS
11484LIBS="-ldld  $LIBS"
11485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486/* end confdefs.h.  */
11487
11488/* Override any GCC internal prototype to avoid an error.
11489   Use char because int might match the return type of a GCC
11490   builtin and then its argument prototype would still apply.  */
11491#ifdef __cplusplus
11492extern "C"
11493#endif
11494char shl_load ();
11495int
11496main ()
11497{
11498return shl_load ();
11499  ;
11500  return 0;
11501}
11502_ACEOF
11503if ac_fn_c_try_link "$LINENO"; then :
11504  ac_cv_lib_dld_shl_load=yes
11505else
11506  ac_cv_lib_dld_shl_load=no
11507fi
11508rm -f core conftest.err conftest.$ac_objext \
11509    conftest$ac_exeext conftest.$ac_ext
11510LIBS=$ac_check_lib_save_LIBS
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11513$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11514if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11515  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11516else
11517  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11518if test "x$ac_cv_func_dlopen" = xyes; then :
11519  lt_cv_dlopen="dlopen"
11520else
11521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11522$as_echo_n "checking for dlopen in -ldl... " >&6; }
11523if ${ac_cv_lib_dl_dlopen+:} false; then :
11524  $as_echo_n "(cached) " >&6
11525else
11526  ac_check_lib_save_LIBS=$LIBS
11527LIBS="-ldl  $LIBS"
11528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529/* end confdefs.h.  */
11530
11531/* Override any GCC internal prototype to avoid an error.
11532   Use char because int might match the return type of a GCC
11533   builtin and then its argument prototype would still apply.  */
11534#ifdef __cplusplus
11535extern "C"
11536#endif
11537char dlopen ();
11538int
11539main ()
11540{
11541return dlopen ();
11542  ;
11543  return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_link "$LINENO"; then :
11547  ac_cv_lib_dl_dlopen=yes
11548else
11549  ac_cv_lib_dl_dlopen=no
11550fi
11551rm -f core conftest.err conftest.$ac_objext \
11552    conftest$ac_exeext conftest.$ac_ext
11553LIBS=$ac_check_lib_save_LIBS
11554fi
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11556$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11557if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11558  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11559else
11560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11561$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11562if ${ac_cv_lib_svld_dlopen+:} false; then :
11563  $as_echo_n "(cached) " >&6
11564else
11565  ac_check_lib_save_LIBS=$LIBS
11566LIBS="-lsvld  $LIBS"
11567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568/* end confdefs.h.  */
11569
11570/* Override any GCC internal prototype to avoid an error.
11571   Use char because int might match the return type of a GCC
11572   builtin and then its argument prototype would still apply.  */
11573#ifdef __cplusplus
11574extern "C"
11575#endif
11576char dlopen ();
11577int
11578main ()
11579{
11580return dlopen ();
11581  ;
11582  return 0;
11583}
11584_ACEOF
11585if ac_fn_c_try_link "$LINENO"; then :
11586  ac_cv_lib_svld_dlopen=yes
11587else
11588  ac_cv_lib_svld_dlopen=no
11589fi
11590rm -f core conftest.err conftest.$ac_objext \
11591    conftest$ac_exeext conftest.$ac_ext
11592LIBS=$ac_check_lib_save_LIBS
11593fi
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11595$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11596if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11597  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11598else
11599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11600$as_echo_n "checking for dld_link in -ldld... " >&6; }
11601if ${ac_cv_lib_dld_dld_link+:} false; then :
11602  $as_echo_n "(cached) " >&6
11603else
11604  ac_check_lib_save_LIBS=$LIBS
11605LIBS="-ldld  $LIBS"
11606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607/* end confdefs.h.  */
11608
11609/* Override any GCC internal prototype to avoid an error.
11610   Use char because int might match the return type of a GCC
11611   builtin and then its argument prototype would still apply.  */
11612#ifdef __cplusplus
11613extern "C"
11614#endif
11615char dld_link ();
11616int
11617main ()
11618{
11619return dld_link ();
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624if ac_fn_c_try_link "$LINENO"; then :
11625  ac_cv_lib_dld_dld_link=yes
11626else
11627  ac_cv_lib_dld_dld_link=no
11628fi
11629rm -f core conftest.err conftest.$ac_objext \
11630    conftest$ac_exeext conftest.$ac_ext
11631LIBS=$ac_check_lib_save_LIBS
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11634$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11635if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11636  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11637fi
11638
11639
11640fi
11641
11642
11643fi
11644
11645
11646fi
11647
11648
11649fi
11650
11651
11652fi
11653
11654    ;;
11655  esac
11656
11657  if test "x$lt_cv_dlopen" != xno; then
11658    enable_dlopen=yes
11659  else
11660    enable_dlopen=no
11661  fi
11662
11663  case $lt_cv_dlopen in
11664  dlopen)
11665    save_CPPFLAGS="$CPPFLAGS"
11666    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11667
11668    save_LDFLAGS="$LDFLAGS"
11669    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11670
11671    save_LIBS="$LIBS"
11672    LIBS="$lt_cv_dlopen_libs $LIBS"
11673
11674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11675$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11676if ${lt_cv_dlopen_self+:} false; then :
11677  $as_echo_n "(cached) " >&6
11678else
11679  	  if test "$cross_compiling" = yes; then :
11680  lt_cv_dlopen_self=cross
11681else
11682  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11683  lt_status=$lt_dlunknown
11684  cat > conftest.$ac_ext <<_LT_EOF
11685#line $LINENO "configure"
11686#include "confdefs.h"
11687
11688#if HAVE_DLFCN_H
11689#include <dlfcn.h>
11690#endif
11691
11692#include <stdio.h>
11693
11694#ifdef RTLD_GLOBAL
11695#  define LT_DLGLOBAL		RTLD_GLOBAL
11696#else
11697#  ifdef DL_GLOBAL
11698#    define LT_DLGLOBAL		DL_GLOBAL
11699#  else
11700#    define LT_DLGLOBAL		0
11701#  endif
11702#endif
11703
11704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11705   find out it does not work in some platform. */
11706#ifndef LT_DLLAZY_OR_NOW
11707#  ifdef RTLD_LAZY
11708#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11709#  else
11710#    ifdef DL_LAZY
11711#      define LT_DLLAZY_OR_NOW		DL_LAZY
11712#    else
11713#      ifdef RTLD_NOW
11714#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11715#      else
11716#        ifdef DL_NOW
11717#          define LT_DLLAZY_OR_NOW	DL_NOW
11718#        else
11719#          define LT_DLLAZY_OR_NOW	0
11720#        endif
11721#      endif
11722#    endif
11723#  endif
11724#endif
11725
11726/* When -fvisbility=hidden is used, assume the code has been annotated
11727   correspondingly for the symbols needed.  */
11728#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11729int fnord () __attribute__((visibility("default")));
11730#endif
11731
11732int fnord () { return 42; }
11733int main ()
11734{
11735  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11736  int status = $lt_dlunknown;
11737
11738  if (self)
11739    {
11740      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11741      else
11742        {
11743	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11744          else puts (dlerror ());
11745	}
11746      /* dlclose (self); */
11747    }
11748  else
11749    puts (dlerror ());
11750
11751  return status;
11752}
11753_LT_EOF
11754  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11755  (eval $ac_link) 2>&5
11756  ac_status=$?
11757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11759    (./conftest; exit; ) >&5 2>/dev/null
11760    lt_status=$?
11761    case x$lt_status in
11762      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11763      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11764      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11765    esac
11766  else :
11767    # compilation failed
11768    lt_cv_dlopen_self=no
11769  fi
11770fi
11771rm -fr conftest*
11772
11773
11774fi
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11776$as_echo "$lt_cv_dlopen_self" >&6; }
11777
11778    if test "x$lt_cv_dlopen_self" = xyes; then
11779      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11780      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11781$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11782if ${lt_cv_dlopen_self_static+:} false; then :
11783  $as_echo_n "(cached) " >&6
11784else
11785  	  if test "$cross_compiling" = yes; then :
11786  lt_cv_dlopen_self_static=cross
11787else
11788  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11789  lt_status=$lt_dlunknown
11790  cat > conftest.$ac_ext <<_LT_EOF
11791#line $LINENO "configure"
11792#include "confdefs.h"
11793
11794#if HAVE_DLFCN_H
11795#include <dlfcn.h>
11796#endif
11797
11798#include <stdio.h>
11799
11800#ifdef RTLD_GLOBAL
11801#  define LT_DLGLOBAL		RTLD_GLOBAL
11802#else
11803#  ifdef DL_GLOBAL
11804#    define LT_DLGLOBAL		DL_GLOBAL
11805#  else
11806#    define LT_DLGLOBAL		0
11807#  endif
11808#endif
11809
11810/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11811   find out it does not work in some platform. */
11812#ifndef LT_DLLAZY_OR_NOW
11813#  ifdef RTLD_LAZY
11814#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11815#  else
11816#    ifdef DL_LAZY
11817#      define LT_DLLAZY_OR_NOW		DL_LAZY
11818#    else
11819#      ifdef RTLD_NOW
11820#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11821#      else
11822#        ifdef DL_NOW
11823#          define LT_DLLAZY_OR_NOW	DL_NOW
11824#        else
11825#          define LT_DLLAZY_OR_NOW	0
11826#        endif
11827#      endif
11828#    endif
11829#  endif
11830#endif
11831
11832/* When -fvisbility=hidden is used, assume the code has been annotated
11833   correspondingly for the symbols needed.  */
11834#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11835int fnord () __attribute__((visibility("default")));
11836#endif
11837
11838int fnord () { return 42; }
11839int main ()
11840{
11841  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11842  int status = $lt_dlunknown;
11843
11844  if (self)
11845    {
11846      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11847      else
11848        {
11849	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11850          else puts (dlerror ());
11851	}
11852      /* dlclose (self); */
11853    }
11854  else
11855    puts (dlerror ());
11856
11857  return status;
11858}
11859_LT_EOF
11860  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11861  (eval $ac_link) 2>&5
11862  ac_status=$?
11863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11864  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11865    (./conftest; exit; ) >&5 2>/dev/null
11866    lt_status=$?
11867    case x$lt_status in
11868      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11869      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11870      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11871    esac
11872  else :
11873    # compilation failed
11874    lt_cv_dlopen_self_static=no
11875  fi
11876fi
11877rm -fr conftest*
11878
11879
11880fi
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11882$as_echo "$lt_cv_dlopen_self_static" >&6; }
11883    fi
11884
11885    CPPFLAGS="$save_CPPFLAGS"
11886    LDFLAGS="$save_LDFLAGS"
11887    LIBS="$save_LIBS"
11888    ;;
11889  esac
11890
11891  case $lt_cv_dlopen_self in
11892  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11893  *) enable_dlopen_self=unknown ;;
11894  esac
11895
11896  case $lt_cv_dlopen_self_static in
11897  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11898  *) enable_dlopen_self_static=unknown ;;
11899  esac
11900fi
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918striplib=
11919old_striplib=
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11921$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11922if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11923  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11924  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926$as_echo "yes" >&6; }
11927else
11928# FIXME - insert some real tests, host_os isn't really good enough
11929  case $host_os in
11930  darwin*)
11931    if test -n "$STRIP" ; then
11932      striplib="$STRIP -x"
11933      old_striplib="$STRIP -S"
11934      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11935$as_echo "yes" >&6; }
11936    else
11937      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
11939    fi
11940    ;;
11941  *)
11942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
11944    ;;
11945  esac
11946fi
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959  # Report which library types will actually be built
11960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11961$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11963$as_echo "$can_build_shared" >&6; }
11964
11965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11966$as_echo_n "checking whether to build shared libraries... " >&6; }
11967  test "$can_build_shared" = "no" && enable_shared=no
11968
11969  # On AIX, shared libraries and static libraries use the same namespace, and
11970  # are all built from PIC.
11971  case $host_os in
11972  aix3*)
11973    test "$enable_shared" = yes && enable_static=no
11974    if test -n "$RANLIB"; then
11975      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11976      postinstall_cmds='$RANLIB $lib'
11977    fi
11978    ;;
11979
11980  aix[4-9]*)
11981    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11982      test "$enable_shared" = yes && enable_static=no
11983    fi
11984    ;;
11985  esac
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11987$as_echo "$enable_shared" >&6; }
11988
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11990$as_echo_n "checking whether to build static libraries... " >&6; }
11991  # Make sure either enable_shared or enable_static is yes.
11992  test "$enable_shared" = yes || enable_static=yes
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11994$as_echo "$enable_static" >&6; }
11995
11996
11997
11998
11999fi
12000ac_ext=c
12001ac_cpp='$CPP $CPPFLAGS'
12002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004ac_compiler_gnu=$ac_cv_c_compiler_gnu
12005
12006CC="$lt_save_CC"
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022        ac_config_commands="$ac_config_commands libtool"
12023
12024
12025
12026
12027# Only expand once:
12028
12029
12030
12031
12032pkg_failed=no
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGVC" >&5
12034$as_echo_n "checking for LIBGVC... " >&6; }
12035
12036if test -n "$LIBGVC_CFLAGS"; then
12037    pkg_cv_LIBGVC_CFLAGS="$LIBGVC_CFLAGS"
12038 elif test -n "$PKG_CONFIG"; then
12039    if test -n "$PKG_CONFIG" && \
12040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc\""; } >&5
12041  ($PKG_CONFIG --exists --print-errors "libgvc") 2>&5
12042  ac_status=$?
12043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12044  test $ac_status = 0; }; then
12045  pkg_cv_LIBGVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc" 2>/dev/null`
12046		      test "x$?" != "x0" && pkg_failed=yes
12047else
12048  pkg_failed=yes
12049fi
12050 else
12051    pkg_failed=untried
12052fi
12053if test -n "$LIBGVC_LIBS"; then
12054    pkg_cv_LIBGVC_LIBS="$LIBGVC_LIBS"
12055 elif test -n "$PKG_CONFIG"; then
12056    if test -n "$PKG_CONFIG" && \
12057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc\""; } >&5
12058  ($PKG_CONFIG --exists --print-errors "libgvc") 2>&5
12059  ac_status=$?
12060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12061  test $ac_status = 0; }; then
12062  pkg_cv_LIBGVC_LIBS=`$PKG_CONFIG --libs "libgvc" 2>/dev/null`
12063		      test "x$?" != "x0" && pkg_failed=yes
12064else
12065  pkg_failed=yes
12066fi
12067 else
12068    pkg_failed=untried
12069fi
12070
12071
12072
12073if test $pkg_failed = yes; then
12074   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
12076
12077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12078        _pkg_short_errors_supported=yes
12079else
12080        _pkg_short_errors_supported=no
12081fi
12082        if test $_pkg_short_errors_supported = yes; then
12083	        LIBGVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc" 2>&1`
12084        else
12085	        LIBGVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc" 2>&1`
12086        fi
12087	# Put the nasty error message in config.log where it belongs
12088	echo "$LIBGVC_PKG_ERRORS" >&5
12089
12090	HAVE_LIBGVC=0
12091elif test $pkg_failed = untried; then
12092     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
12094	HAVE_LIBGVC=0
12095else
12096	LIBGVC_CFLAGS=$pkg_cv_LIBGVC_CFLAGS
12097	LIBGVC_LIBS=$pkg_cv_LIBGVC_LIBS
12098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099$as_echo "yes" >&6; }
12100
12101cat >>confdefs.h <<_ACEOF
12102#define HAVE_LIBGVC 1
12103_ACEOF
12104
12105fi
12106
12107
12108
12109# Check for 'bool' type to avoid graphviz logic.h issue
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bool" >&5
12111$as_echo_n "checking for bool... " >&6; }
12112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113/* end confdefs.h.  */
12114
12115    #ifdef HAVE_STDBOOL_H>
12116    #include <stdbool.h>
12117    #endif
12118
12119int
12120main ()
12121{
12122
12123    bool foo = true, bar = false;
12124
12125  ;
12126  return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_compile "$LINENO"; then :
12130
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132$as_echo "yes" >&6; }
12133
12134$as_echo "#define HAVE_BOOL 1" >>confdefs.h
12135
12136
12137else
12138
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
12141fi
12142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Graphviz API is based on cgraph" >&5
12145$as_echo_n "checking whether Graphviz API is based on cgraph... " >&6; }
12146CFLAGS=$LIBGVC_CFLAGS
12147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148/* end confdefs.h.  */
12149
12150   #include <gvc.h>
12151   int main() {
12152     Agraph_t *graph;
12153     graph = agopen ("BrowserCanvasLayout", Agdirected, NULL);
12154     return 0;
12155   }
12156
12157_ACEOF
12158if ac_fn_c_try_compile "$LINENO"; then :
12159  graphviz_new_api=yes
12160else
12161  graphviz_new_api=no
12162fi
12163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $graphviz_new_api" >&5
12165$as_echo "$graphviz_new_api" >&6; }
12166if test "$graphviz_new_api" = "yes"; then
12167
12168$as_echo "#define HAVE_CGRAPH 1" >>confdefs.h
12169
12170fi
12171
12172# Finally, output the configuration
12173ac_config_files="$ac_config_files Makefile"
12174
12175cat >confcache <<\_ACEOF
12176# This file is a shell script that caches the results of configure
12177# tests run on this system so they can be shared between configure
12178# scripts and configure runs, see configure's option --config-cache.
12179# It is not useful on other systems.  If it contains results you don't
12180# want to keep, you may remove or edit it.
12181#
12182# config.status only pays attention to the cache file if you give it
12183# the --recheck option to rerun configure.
12184#
12185# `ac_cv_env_foo' variables (set or unset) will be overridden when
12186# loading this file, other *unset* `ac_cv_foo' will be assigned the
12187# following values.
12188
12189_ACEOF
12190
12191# The following way of writing the cache mishandles newlines in values,
12192# but we know of no workaround that is simple, portable, and efficient.
12193# So, we kill variables containing newlines.
12194# Ultrix sh set writes to stderr and can't be redirected directly,
12195# and sets the high bit in the cache file unless we assign to the vars.
12196(
12197  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12198    eval ac_val=\$$ac_var
12199    case $ac_val in #(
12200    *${as_nl}*)
12201      case $ac_var in #(
12202      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12204      esac
12205      case $ac_var in #(
12206      _ | IFS | as_nl) ;; #(
12207      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12208      *) { eval $ac_var=; unset $ac_var;} ;;
12209      esac ;;
12210    esac
12211  done
12212
12213  (set) 2>&1 |
12214    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12215    *${as_nl}ac_space=\ *)
12216      # `set' does not quote correctly, so add quotes: double-quote
12217      # substitution turns \\\\ into \\, and sed turns \\ into \.
12218      sed -n \
12219	"s/'/'\\\\''/g;
12220	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12221      ;; #(
12222    *)
12223      # `set' quotes correctly as required by POSIX, so do not add quotes.
12224      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12225      ;;
12226    esac |
12227    sort
12228) |
12229  sed '
12230     /^ac_cv_env_/b end
12231     t clear
12232     :clear
12233     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12234     t end
12235     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12236     :end' >>confcache
12237if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12238  if test -w "$cache_file"; then
12239    if test "x$cache_file" != "x/dev/null"; then
12240      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12241$as_echo "$as_me: updating cache $cache_file" >&6;}
12242      if test ! -f "$cache_file" || test -h "$cache_file"; then
12243	cat confcache >"$cache_file"
12244      else
12245        case $cache_file in #(
12246        */* | ?:*)
12247	  mv -f confcache "$cache_file"$$ &&
12248	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12249        *)
12250	  mv -f confcache "$cache_file" ;;
12251	esac
12252      fi
12253    fi
12254  else
12255    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12256$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12257  fi
12258fi
12259rm -f confcache
12260
12261test "x$prefix" = xNONE && prefix=$ac_default_prefix
12262# Let make expand exec_prefix.
12263test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12264
12265DEFS=-DHAVE_CONFIG_H
12266
12267ac_libobjs=
12268ac_ltlibobjs=
12269U=
12270for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12271  # 1. Remove the extension, and $U if already installed.
12272  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12273  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12274  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12275  #    will be set to the directory where LIBOBJS objects are built.
12276  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12277  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12278done
12279LIBOBJS=$ac_libobjs
12280
12281LTLIBOBJS=$ac_ltlibobjs
12282
12283
12284 if test -n "$EXEEXT"; then
12285  am__EXEEXT_TRUE=
12286  am__EXEEXT_FALSE='#'
12287else
12288  am__EXEEXT_TRUE='#'
12289  am__EXEEXT_FALSE=
12290fi
12291
12292if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12293  as_fn_error $? "conditional \"AMDEP\" was never defined.
12294Usually this means the macro was only invoked conditionally." "$LINENO" 5
12295fi
12296if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12297  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12298Usually this means the macro was only invoked conditionally." "$LINENO" 5
12299fi
12300if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
12301  as_fn_error $? "conditional \"OS_WIN32\" was never defined.
12302Usually this means the macro was only invoked conditionally." "$LINENO" 5
12303fi
12304
12305: "${CONFIG_STATUS=./config.status}"
12306ac_write_fail=0
12307ac_clean_files_save=$ac_clean_files
12308ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12310$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12311as_write_fail=0
12312cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12313#! $SHELL
12314# Generated by $as_me.
12315# Run this file to recreate the current configuration.
12316# Compiler output produced by configure, useful for debugging
12317# configure, is in config.log if it exists.
12318
12319debug=false
12320ac_cs_recheck=false
12321ac_cs_silent=false
12322
12323SHELL=\${CONFIG_SHELL-$SHELL}
12324export SHELL
12325_ASEOF
12326cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12327## -------------------- ##
12328## M4sh Initialization. ##
12329## -------------------- ##
12330
12331# Be more Bourne compatible
12332DUALCASE=1; export DUALCASE # for MKS sh
12333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12334  emulate sh
12335  NULLCMD=:
12336  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12337  # is contrary to our usage.  Disable this feature.
12338  alias -g '${1+"$@"}'='"$@"'
12339  setopt NO_GLOB_SUBST
12340else
12341  case `(set -o) 2>/dev/null` in #(
12342  *posix*) :
12343    set -o posix ;; #(
12344  *) :
12345     ;;
12346esac
12347fi
12348
12349
12350as_nl='
12351'
12352export as_nl
12353# Printing a long string crashes Solaris 7 /usr/bin/printf.
12354as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12356as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12357# Prefer a ksh shell builtin over an external printf program on Solaris,
12358# but without wasting forks for bash or zsh.
12359if test -z "$BASH_VERSION$ZSH_VERSION" \
12360    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12361  as_echo='print -r --'
12362  as_echo_n='print -rn --'
12363elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12364  as_echo='printf %s\n'
12365  as_echo_n='printf %s'
12366else
12367  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12368    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12369    as_echo_n='/usr/ucb/echo -n'
12370  else
12371    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12372    as_echo_n_body='eval
12373      arg=$1;
12374      case $arg in #(
12375      *"$as_nl"*)
12376	expr "X$arg" : "X\\(.*\\)$as_nl";
12377	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12378      esac;
12379      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12380    '
12381    export as_echo_n_body
12382    as_echo_n='sh -c $as_echo_n_body as_echo'
12383  fi
12384  export as_echo_body
12385  as_echo='sh -c $as_echo_body as_echo'
12386fi
12387
12388# The user is always right.
12389if test "${PATH_SEPARATOR+set}" != set; then
12390  PATH_SEPARATOR=:
12391  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12392    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12393      PATH_SEPARATOR=';'
12394  }
12395fi
12396
12397
12398# IFS
12399# We need space, tab and new line, in precisely that order.  Quoting is
12400# there to prevent editors from complaining about space-tab.
12401# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12402# splitting by setting IFS to empty value.)
12403IFS=" ""	$as_nl"
12404
12405# Find who we are.  Look in the path if we contain no directory separator.
12406as_myself=
12407case $0 in #((
12408  *[\\/]* ) as_myself=$0 ;;
12409  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $PATH
12411do
12412  IFS=$as_save_IFS
12413  test -z "$as_dir" && as_dir=.
12414    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12415  done
12416IFS=$as_save_IFS
12417
12418     ;;
12419esac
12420# We did not find ourselves, most probably we were run as `sh COMMAND'
12421# in which case we are not to be found in the path.
12422if test "x$as_myself" = x; then
12423  as_myself=$0
12424fi
12425if test ! -f "$as_myself"; then
12426  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12427  exit 1
12428fi
12429
12430# Unset variables that we do not need and which cause bugs (e.g. in
12431# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12432# suppresses any "Segmentation fault" message there.  '((' could
12433# trigger a bug in pdksh 5.2.14.
12434for as_var in BASH_ENV ENV MAIL MAILPATH
12435do eval test x\${$as_var+set} = xset \
12436  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12437done
12438PS1='$ '
12439PS2='> '
12440PS4='+ '
12441
12442# NLS nuisances.
12443LC_ALL=C
12444export LC_ALL
12445LANGUAGE=C
12446export LANGUAGE
12447
12448# CDPATH.
12449(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12450
12451
12452# as_fn_error STATUS ERROR [LINENO LOG_FD]
12453# ----------------------------------------
12454# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12455# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12456# script with STATUS, using 1 if that was 0.
12457as_fn_error ()
12458{
12459  as_status=$1; test $as_status -eq 0 && as_status=1
12460  if test "$4"; then
12461    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12462    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12463  fi
12464  $as_echo "$as_me: error: $2" >&2
12465  as_fn_exit $as_status
12466} # as_fn_error
12467
12468
12469# as_fn_set_status STATUS
12470# -----------------------
12471# Set $? to STATUS, without forking.
12472as_fn_set_status ()
12473{
12474  return $1
12475} # as_fn_set_status
12476
12477# as_fn_exit STATUS
12478# -----------------
12479# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12480as_fn_exit ()
12481{
12482  set +e
12483  as_fn_set_status $1
12484  exit $1
12485} # as_fn_exit
12486
12487# as_fn_unset VAR
12488# ---------------
12489# Portably unset VAR.
12490as_fn_unset ()
12491{
12492  { eval $1=; unset $1;}
12493}
12494as_unset=as_fn_unset
12495# as_fn_append VAR VALUE
12496# ----------------------
12497# Append the text in VALUE to the end of the definition contained in VAR. Take
12498# advantage of any shell optimizations that allow amortized linear growth over
12499# repeated appends, instead of the typical quadratic growth present in naive
12500# implementations.
12501if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12502  eval 'as_fn_append ()
12503  {
12504    eval $1+=\$2
12505  }'
12506else
12507  as_fn_append ()
12508  {
12509    eval $1=\$$1\$2
12510  }
12511fi # as_fn_append
12512
12513# as_fn_arith ARG...
12514# ------------------
12515# Perform arithmetic evaluation on the ARGs, and store the result in the
12516# global $as_val. Take advantage of shells that can avoid forks. The arguments
12517# must be portable across $(()) and expr.
12518if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12519  eval 'as_fn_arith ()
12520  {
12521    as_val=$(( $* ))
12522  }'
12523else
12524  as_fn_arith ()
12525  {
12526    as_val=`expr "$@" || test $? -eq 1`
12527  }
12528fi # as_fn_arith
12529
12530
12531if expr a : '\(a\)' >/dev/null 2>&1 &&
12532   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12533  as_expr=expr
12534else
12535  as_expr=false
12536fi
12537
12538if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12539  as_basename=basename
12540else
12541  as_basename=false
12542fi
12543
12544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12545  as_dirname=dirname
12546else
12547  as_dirname=false
12548fi
12549
12550as_me=`$as_basename -- "$0" ||
12551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12552	 X"$0" : 'X\(//\)$' \| \
12553	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12554$as_echo X/"$0" |
12555    sed '/^.*\/\([^/][^/]*\)\/*$/{
12556	    s//\1/
12557	    q
12558	  }
12559	  /^X\/\(\/\/\)$/{
12560	    s//\1/
12561	    q
12562	  }
12563	  /^X\/\(\/\).*/{
12564	    s//\1/
12565	    q
12566	  }
12567	  s/.*/./; q'`
12568
12569# Avoid depending upon Character Ranges.
12570as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12571as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12572as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12573as_cr_digits='0123456789'
12574as_cr_alnum=$as_cr_Letters$as_cr_digits
12575
12576ECHO_C= ECHO_N= ECHO_T=
12577case `echo -n x` in #(((((
12578-n*)
12579  case `echo 'xy\c'` in
12580  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12581  xy)  ECHO_C='\c';;
12582  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12583       ECHO_T='	';;
12584  esac;;
12585*)
12586  ECHO_N='-n';;
12587esac
12588
12589rm -f conf$$ conf$$.exe conf$$.file
12590if test -d conf$$.dir; then
12591  rm -f conf$$.dir/conf$$.file
12592else
12593  rm -f conf$$.dir
12594  mkdir conf$$.dir 2>/dev/null
12595fi
12596if (echo >conf$$.file) 2>/dev/null; then
12597  if ln -s conf$$.file conf$$ 2>/dev/null; then
12598    as_ln_s='ln -s'
12599    # ... but there are two gotchas:
12600    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12601    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12602    # In both cases, we have to default to `cp -pR'.
12603    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12604      as_ln_s='cp -pR'
12605  elif ln conf$$.file conf$$ 2>/dev/null; then
12606    as_ln_s=ln
12607  else
12608    as_ln_s='cp -pR'
12609  fi
12610else
12611  as_ln_s='cp -pR'
12612fi
12613rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12614rmdir conf$$.dir 2>/dev/null
12615
12616
12617# as_fn_mkdir_p
12618# -------------
12619# Create "$as_dir" as a directory, including parents if necessary.
12620as_fn_mkdir_p ()
12621{
12622
12623  case $as_dir in #(
12624  -*) as_dir=./$as_dir;;
12625  esac
12626  test -d "$as_dir" || eval $as_mkdir_p || {
12627    as_dirs=
12628    while :; do
12629      case $as_dir in #(
12630      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12631      *) as_qdir=$as_dir;;
12632      esac
12633      as_dirs="'$as_qdir' $as_dirs"
12634      as_dir=`$as_dirname -- "$as_dir" ||
12635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12636	 X"$as_dir" : 'X\(//\)[^/]' \| \
12637	 X"$as_dir" : 'X\(//\)$' \| \
12638	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12639$as_echo X"$as_dir" |
12640    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12641	    s//\1/
12642	    q
12643	  }
12644	  /^X\(\/\/\)[^/].*/{
12645	    s//\1/
12646	    q
12647	  }
12648	  /^X\(\/\/\)$/{
12649	    s//\1/
12650	    q
12651	  }
12652	  /^X\(\/\).*/{
12653	    s//\1/
12654	    q
12655	  }
12656	  s/.*/./; q'`
12657      test -d "$as_dir" && break
12658    done
12659    test -z "$as_dirs" || eval "mkdir $as_dirs"
12660  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12661
12662
12663} # as_fn_mkdir_p
12664if mkdir -p . 2>/dev/null; then
12665  as_mkdir_p='mkdir -p "$as_dir"'
12666else
12667  test -d ./-p && rmdir ./-p
12668  as_mkdir_p=false
12669fi
12670
12671
12672# as_fn_executable_p FILE
12673# -----------------------
12674# Test if FILE is an executable regular file.
12675as_fn_executable_p ()
12676{
12677  test -f "$1" && test -x "$1"
12678} # as_fn_executable_p
12679as_test_x='test -x'
12680as_executable_p=as_fn_executable_p
12681
12682# Sed expression to map a string onto a valid CPP name.
12683as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12684
12685# Sed expression to map a string onto a valid variable name.
12686as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12687
12688
12689exec 6>&1
12690## ----------------------------------- ##
12691## Main body of $CONFIG_STATUS script. ##
12692## ----------------------------------- ##
12693_ASEOF
12694test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12695
12696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12697# Save the log message, to keep $0 and so on meaningful, and to
12698# report actual input values of CONFIG_FILES etc. instead of their
12699# values after options handling.
12700ac_log="
12701This file was extended by GraphLayout $as_me 1.0, which was
12702generated by GNU Autoconf 2.69.  Invocation command line was
12703
12704  CONFIG_FILES    = $CONFIG_FILES
12705  CONFIG_HEADERS  = $CONFIG_HEADERS
12706  CONFIG_LINKS    = $CONFIG_LINKS
12707  CONFIG_COMMANDS = $CONFIG_COMMANDS
12708  $ $0 $@
12709
12710on `(hostname || uname -n) 2>/dev/null | sed 1q`
12711"
12712
12713_ACEOF
12714
12715case $ac_config_files in *"
12716"*) set x $ac_config_files; shift; ac_config_files=$*;;
12717esac
12718
12719case $ac_config_headers in *"
12720"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12721esac
12722
12723
12724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12725# Files that config.status was made for.
12726config_files="$ac_config_files"
12727config_headers="$ac_config_headers"
12728config_commands="$ac_config_commands"
12729
12730_ACEOF
12731
12732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733ac_cs_usage="\
12734\`$as_me' instantiates files and other configuration actions
12735from templates according to the current configuration.  Unless the files
12736and actions are specified as TAGs, all are instantiated by default.
12737
12738Usage: $0 [OPTION]... [TAG]...
12739
12740  -h, --help       print this help, then exit
12741  -V, --version    print version number and configuration settings, then exit
12742      --config     print configuration, then exit
12743  -q, --quiet, --silent
12744                   do not print progress messages
12745  -d, --debug      don't remove temporary files
12746      --recheck    update $as_me by reconfiguring in the same conditions
12747      --file=FILE[:TEMPLATE]
12748                   instantiate the configuration file FILE
12749      --header=FILE[:TEMPLATE]
12750                   instantiate the configuration header FILE
12751
12752Configuration files:
12753$config_files
12754
12755Configuration headers:
12756$config_headers
12757
12758Configuration commands:
12759$config_commands
12760
12761Report bugs to <dfs@research.att.com>."
12762
12763_ACEOF
12764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12765ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12766ac_cs_version="\\
12767GraphLayout config.status 1.0
12768configured by $0, generated by GNU Autoconf 2.69,
12769  with options \\"\$ac_cs_config\\"
12770
12771Copyright (C) 2012 Free Software Foundation, Inc.
12772This config.status script is free software; the Free Software Foundation
12773gives unlimited permission to copy, distribute and modify it."
12774
12775ac_pwd='$ac_pwd'
12776srcdir='$srcdir'
12777INSTALL='$INSTALL'
12778MKDIR_P='$MKDIR_P'
12779AWK='$AWK'
12780test -n "\$AWK" || AWK=awk
12781_ACEOF
12782
12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784# The default lists apply if the user does not specify any file.
12785ac_need_defaults=:
12786while test $# != 0
12787do
12788  case $1 in
12789  --*=?*)
12790    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12791    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12792    ac_shift=:
12793    ;;
12794  --*=)
12795    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12796    ac_optarg=
12797    ac_shift=:
12798    ;;
12799  *)
12800    ac_option=$1
12801    ac_optarg=$2
12802    ac_shift=shift
12803    ;;
12804  esac
12805
12806  case $ac_option in
12807  # Handling of the options.
12808  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12809    ac_cs_recheck=: ;;
12810  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12811    $as_echo "$ac_cs_version"; exit ;;
12812  --config | --confi | --conf | --con | --co | --c )
12813    $as_echo "$ac_cs_config"; exit ;;
12814  --debug | --debu | --deb | --de | --d | -d )
12815    debug=: ;;
12816  --file | --fil | --fi | --f )
12817    $ac_shift
12818    case $ac_optarg in
12819    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12820    '') as_fn_error $? "missing file argument" ;;
12821    esac
12822    as_fn_append CONFIG_FILES " '$ac_optarg'"
12823    ac_need_defaults=false;;
12824  --header | --heade | --head | --hea )
12825    $ac_shift
12826    case $ac_optarg in
12827    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12828    esac
12829    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12830    ac_need_defaults=false;;
12831  --he | --h)
12832    # Conflict between --help and --header
12833    as_fn_error $? "ambiguous option: \`$1'
12834Try \`$0 --help' for more information.";;
12835  --help | --hel | -h )
12836    $as_echo "$ac_cs_usage"; exit ;;
12837  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12838  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12839    ac_cs_silent=: ;;
12840
12841  # This is an error.
12842  -*) as_fn_error $? "unrecognized option: \`$1'
12843Try \`$0 --help' for more information." ;;
12844
12845  *) as_fn_append ac_config_targets " $1"
12846     ac_need_defaults=false ;;
12847
12848  esac
12849  shift
12850done
12851
12852ac_configure_extra_args=
12853
12854if $ac_cs_silent; then
12855  exec 6>/dev/null
12856  ac_configure_extra_args="$ac_configure_extra_args --silent"
12857fi
12858
12859_ACEOF
12860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12861if \$ac_cs_recheck; then
12862  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12863  shift
12864  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12865  CONFIG_SHELL='$SHELL'
12866  export CONFIG_SHELL
12867  exec "\$@"
12868fi
12869
12870_ACEOF
12871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12872exec 5>>config.log
12873{
12874  echo
12875  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12876## Running $as_me. ##
12877_ASBOX
12878  $as_echo "$ac_log"
12879} >&5
12880
12881_ACEOF
12882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12883#
12884# INIT-COMMANDS
12885#
12886AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12887
12888
12889# The HP-UX ksh and POSIX shell print the target directory to stdout
12890# if CDPATH is set.
12891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12892
12893sed_quote_subst='$sed_quote_subst'
12894double_quote_subst='$double_quote_subst'
12895delay_variable_subst='$delay_variable_subst'
12896enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12897AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12898DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12899OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12900macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12901macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12902enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12903pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12904enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12905SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12906ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12907PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12908host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12909host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12910host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12911build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12912build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12913build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12914SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12915Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12916GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12917EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12918FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12919LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12920NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12921LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12922max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12923ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12924exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12925lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12926lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12927lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12928lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12929lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12930reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12931reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12932deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12933file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12934file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12935want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12936sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12937AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12938AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12939archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12940STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12941RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12942old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12943old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12944old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12945lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12946CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12947CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12948compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12949GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12950lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12951lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12952lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12953lt_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"`'
12954nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12955lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12956objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12957MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12958lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12959lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12960lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12961lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12962lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12963need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12964MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12965DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12966NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12967LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12968OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12969OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12970libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12971shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12972extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12973archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12974enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12975export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12976whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12977compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12978old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12979old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12980archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12981archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12982module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12983module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12984with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12985allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12986no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12987hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12988hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12989hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12990hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12991hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12992hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12993hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12994inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12995link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12996always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12997export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12998exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12999include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13000prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13001postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13002file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13003variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13004need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13005need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13006version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13007runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13008shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13009shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13010libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13011library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13012soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13013install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13014postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13015postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13016finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13017finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13018hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13019sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13020sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13021hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13022enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13023enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13024enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13025old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13026striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13027
13028LTCC='$LTCC'
13029LTCFLAGS='$LTCFLAGS'
13030compiler='$compiler_DEFAULT'
13031
13032# A function that is used when there is no print builtin or printf.
13033func_fallback_echo ()
13034{
13035  eval 'cat <<_LTECHO_EOF
13036\$1
13037_LTECHO_EOF'
13038}
13039
13040# Quote evaled strings.
13041for var in AS \
13042DLLTOOL \
13043OBJDUMP \
13044SHELL \
13045ECHO \
13046PATH_SEPARATOR \
13047SED \
13048GREP \
13049EGREP \
13050FGREP \
13051LD \
13052NM \
13053LN_S \
13054lt_SP2NL \
13055lt_NL2SP \
13056reload_flag \
13057deplibs_check_method \
13058file_magic_cmd \
13059file_magic_glob \
13060want_nocaseglob \
13061sharedlib_from_linklib_cmd \
13062AR \
13063AR_FLAGS \
13064archiver_list_spec \
13065STRIP \
13066RANLIB \
13067CC \
13068CFLAGS \
13069compiler \
13070lt_cv_sys_global_symbol_pipe \
13071lt_cv_sys_global_symbol_to_cdecl \
13072lt_cv_sys_global_symbol_to_c_name_address \
13073lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13074nm_file_list_spec \
13075lt_prog_compiler_no_builtin_flag \
13076lt_prog_compiler_pic \
13077lt_prog_compiler_wl \
13078lt_prog_compiler_static \
13079lt_cv_prog_compiler_c_o \
13080need_locks \
13081MANIFEST_TOOL \
13082DSYMUTIL \
13083NMEDIT \
13084LIPO \
13085OTOOL \
13086OTOOL64 \
13087shrext_cmds \
13088export_dynamic_flag_spec \
13089whole_archive_flag_spec \
13090compiler_needs_object \
13091with_gnu_ld \
13092allow_undefined_flag \
13093no_undefined_flag \
13094hardcode_libdir_flag_spec \
13095hardcode_libdir_separator \
13096exclude_expsyms \
13097include_expsyms \
13098file_list_spec \
13099variables_saved_for_relink \
13100libname_spec \
13101library_names_spec \
13102soname_spec \
13103install_override_mode \
13104finish_eval \
13105old_striplib \
13106striplib; do
13107    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13108    *[\\\\\\\`\\"\\\$]*)
13109      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13110      ;;
13111    *)
13112      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13113      ;;
13114    esac
13115done
13116
13117# Double-quote double-evaled strings.
13118for var in reload_cmds \
13119old_postinstall_cmds \
13120old_postuninstall_cmds \
13121old_archive_cmds \
13122extract_expsyms_cmds \
13123old_archive_from_new_cmds \
13124old_archive_from_expsyms_cmds \
13125archive_cmds \
13126archive_expsym_cmds \
13127module_cmds \
13128module_expsym_cmds \
13129export_symbols_cmds \
13130prelink_cmds \
13131postlink_cmds \
13132postinstall_cmds \
13133postuninstall_cmds \
13134finish_cmds \
13135sys_lib_search_path_spec \
13136sys_lib_dlsearch_path_spec; do
13137    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13138    *[\\\\\\\`\\"\\\$]*)
13139      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13140      ;;
13141    *)
13142      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13143      ;;
13144    esac
13145done
13146
13147ac_aux_dir='$ac_aux_dir'
13148xsi_shell='$xsi_shell'
13149lt_shell_append='$lt_shell_append'
13150
13151# See if we are running on zsh, and set the options which allow our
13152# commands through without removal of \ escapes INIT.
13153if test -n "\${ZSH_VERSION+set}" ; then
13154   setopt NO_GLOB_SUBST
13155fi
13156
13157
13158    PACKAGE='$PACKAGE'
13159    VERSION='$VERSION'
13160    TIMESTAMP='$TIMESTAMP'
13161    RM='$RM'
13162    ofile='$ofile'
13163
13164
13165
13166
13167_ACEOF
13168
13169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13170
13171# Handling of arguments.
13172for ac_config_target in $ac_config_targets
13173do
13174  case $ac_config_target in
13175    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13176    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13177    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13178    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13179
13180  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13181  esac
13182done
13183
13184
13185# If the user did not use the arguments to specify the items to instantiate,
13186# then the envvar interface is used.  Set only those that are not.
13187# We use the long form for the default assignment because of an extremely
13188# bizarre bug on SunOS 4.1.3.
13189if $ac_need_defaults; then
13190  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13191  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13192  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13193fi
13194
13195# Have a temporary directory for convenience.  Make it in the build tree
13196# simply because there is no reason against having it here, and in addition,
13197# creating and moving files from /tmp can sometimes cause problems.
13198# Hook for its removal unless debugging.
13199# Note that there is a small window in which the directory will not be cleaned:
13200# after its creation but before its name has been assigned to `$tmp'.
13201$debug ||
13202{
13203  tmp= ac_tmp=
13204  trap 'exit_status=$?
13205  : "${ac_tmp:=$tmp}"
13206  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13207' 0
13208  trap 'as_fn_exit 1' 1 2 13 15
13209}
13210# Create a (secure) tmp directory for tmp files.
13211
13212{
13213  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13214  test -d "$tmp"
13215}  ||
13216{
13217  tmp=./conf$$-$RANDOM
13218  (umask 077 && mkdir "$tmp")
13219} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13220ac_tmp=$tmp
13221
13222# Set up the scripts for CONFIG_FILES section.
13223# No need to generate them if there are no CONFIG_FILES.
13224# This happens for instance with `./config.status config.h'.
13225if test -n "$CONFIG_FILES"; then
13226
13227
13228ac_cr=`echo X | tr X '\015'`
13229# On cygwin, bash can eat \r inside `` if the user requested igncr.
13230# But we know of no other shell where ac_cr would be empty at this
13231# point, so we can use a bashism as a fallback.
13232if test "x$ac_cr" = x; then
13233  eval ac_cr=\$\'\\r\'
13234fi
13235ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13236if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13237  ac_cs_awk_cr='\\r'
13238else
13239  ac_cs_awk_cr=$ac_cr
13240fi
13241
13242echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13243_ACEOF
13244
13245
13246{
13247  echo "cat >conf$$subs.awk <<_ACEOF" &&
13248  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13249  echo "_ACEOF"
13250} >conf$$subs.sh ||
13251  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13252ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13253ac_delim='%!_!# '
13254for ac_last_try in false false false false false :; do
13255  . ./conf$$subs.sh ||
13256    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13257
13258  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13259  if test $ac_delim_n = $ac_delim_num; then
13260    break
13261  elif $ac_last_try; then
13262    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13263  else
13264    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13265  fi
13266done
13267rm -f conf$$subs.sh
13268
13269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13270cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13271_ACEOF
13272sed -n '
13273h
13274s/^/S["/; s/!.*/"]=/
13275p
13276g
13277s/^[^!]*!//
13278:repl
13279t repl
13280s/'"$ac_delim"'$//
13281t delim
13282:nl
13283h
13284s/\(.\{148\}\)..*/\1/
13285t more1
13286s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13287p
13288n
13289b repl
13290:more1
13291s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13292p
13293g
13294s/.\{148\}//
13295t nl
13296:delim
13297h
13298s/\(.\{148\}\)..*/\1/
13299t more2
13300s/["\\]/\\&/g; s/^/"/; s/$/"/
13301p
13302b
13303:more2
13304s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13305p
13306g
13307s/.\{148\}//
13308t delim
13309' <conf$$subs.awk | sed '
13310/^[^""]/{
13311  N
13312  s/\n//
13313}
13314' >>$CONFIG_STATUS || ac_write_fail=1
13315rm -f conf$$subs.awk
13316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13317_ACAWK
13318cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13319  for (key in S) S_is_set[key] = 1
13320  FS = ""
13321
13322}
13323{
13324  line = $ 0
13325  nfields = split(line, field, "@")
13326  substed = 0
13327  len = length(field[1])
13328  for (i = 2; i < nfields; i++) {
13329    key = field[i]
13330    keylen = length(key)
13331    if (S_is_set[key]) {
13332      value = S[key]
13333      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13334      len += length(value) + length(field[++i])
13335      substed = 1
13336    } else
13337      len += 1 + keylen
13338  }
13339
13340  print line
13341}
13342
13343_ACAWK
13344_ACEOF
13345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13346if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13347  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13348else
13349  cat
13350fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13351  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13352_ACEOF
13353
13354# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13355# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13356# trailing colons and then remove the whole line if VPATH becomes empty
13357# (actually we leave an empty line to preserve line numbers).
13358if test "x$srcdir" = x.; then
13359  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13360h
13361s///
13362s/^/:/
13363s/[	 ]*$/:/
13364s/:\$(srcdir):/:/g
13365s/:\${srcdir}:/:/g
13366s/:@srcdir@:/:/g
13367s/^:*//
13368s/:*$//
13369x
13370s/\(=[	 ]*\).*/\1/
13371G
13372s/\n//
13373s/^[^=]*=[	 ]*$//
13374}'
13375fi
13376
13377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13378fi # test -n "$CONFIG_FILES"
13379
13380# Set up the scripts for CONFIG_HEADERS section.
13381# No need to generate them if there are no CONFIG_HEADERS.
13382# This happens for instance with `./config.status Makefile'.
13383if test -n "$CONFIG_HEADERS"; then
13384cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13385BEGIN {
13386_ACEOF
13387
13388# Transform confdefs.h into an awk script `defines.awk', embedded as
13389# here-document in config.status, that substitutes the proper values into
13390# config.h.in to produce config.h.
13391
13392# Create a delimiter string that does not exist in confdefs.h, to ease
13393# handling of long lines.
13394ac_delim='%!_!# '
13395for ac_last_try in false false :; do
13396  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13397  if test -z "$ac_tt"; then
13398    break
13399  elif $ac_last_try; then
13400    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13401  else
13402    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13403  fi
13404done
13405
13406# For the awk script, D is an array of macro values keyed by name,
13407# likewise P contains macro parameters if any.  Preserve backslash
13408# newline sequences.
13409
13410ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13411sed -n '
13412s/.\{148\}/&'"$ac_delim"'/g
13413t rset
13414:rset
13415s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13416t def
13417d
13418:def
13419s/\\$//
13420t bsnl
13421s/["\\]/\\&/g
13422s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13423D["\1"]=" \3"/p
13424s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13425d
13426:bsnl
13427s/["\\]/\\&/g
13428s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13429D["\1"]=" \3\\\\\\n"\\/p
13430t cont
13431s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13432t cont
13433d
13434:cont
13435n
13436s/.\{148\}/&'"$ac_delim"'/g
13437t clear
13438:clear
13439s/\\$//
13440t bsnlc
13441s/["\\]/\\&/g; s/^/"/; s/$/"/p
13442d
13443:bsnlc
13444s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13445b cont
13446' <confdefs.h | sed '
13447s/'"$ac_delim"'/"\\\
13448"/g' >>$CONFIG_STATUS || ac_write_fail=1
13449
13450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13451  for (key in D) D_is_set[key] = 1
13452  FS = ""
13453}
13454/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13455  line = \$ 0
13456  split(line, arg, " ")
13457  if (arg[1] == "#") {
13458    defundef = arg[2]
13459    mac1 = arg[3]
13460  } else {
13461    defundef = substr(arg[1], 2)
13462    mac1 = arg[2]
13463  }
13464  split(mac1, mac2, "(") #)
13465  macro = mac2[1]
13466  prefix = substr(line, 1, index(line, defundef) - 1)
13467  if (D_is_set[macro]) {
13468    # Preserve the white space surrounding the "#".
13469    print prefix "define", macro P[macro] D[macro]
13470    next
13471  } else {
13472    # Replace #undef with comments.  This is necessary, for example,
13473    # in the case of _POSIX_SOURCE, which is predefined and required
13474    # on some systems where configure will not decide to define it.
13475    if (defundef == "undef") {
13476      print "/*", prefix defundef, macro, "*/"
13477      next
13478    }
13479  }
13480}
13481{ print }
13482_ACAWK
13483_ACEOF
13484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13485  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13486fi # test -n "$CONFIG_HEADERS"
13487
13488
13489eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13490shift
13491for ac_tag
13492do
13493  case $ac_tag in
13494  :[FHLC]) ac_mode=$ac_tag; continue;;
13495  esac
13496  case $ac_mode$ac_tag in
13497  :[FHL]*:*);;
13498  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13499  :[FH]-) ac_tag=-:-;;
13500  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13501  esac
13502  ac_save_IFS=$IFS
13503  IFS=:
13504  set x $ac_tag
13505  IFS=$ac_save_IFS
13506  shift
13507  ac_file=$1
13508  shift
13509
13510  case $ac_mode in
13511  :L) ac_source=$1;;
13512  :[FH])
13513    ac_file_inputs=
13514    for ac_f
13515    do
13516      case $ac_f in
13517      -) ac_f="$ac_tmp/stdin";;
13518      *) # Look for the file first in the build tree, then in the source tree
13519	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13520	 # because $ac_f cannot contain `:'.
13521	 test -f "$ac_f" ||
13522	   case $ac_f in
13523	   [\\/$]*) false;;
13524	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13525	   esac ||
13526	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13527      esac
13528      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13529      as_fn_append ac_file_inputs " '$ac_f'"
13530    done
13531
13532    # Let's still pretend it is `configure' which instantiates (i.e., don't
13533    # use $as_me), people would be surprised to read:
13534    #    /* config.h.  Generated by config.status.  */
13535    configure_input='Generated from '`
13536	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13537	`' by configure.'
13538    if test x"$ac_file" != x-; then
13539      configure_input="$ac_file.  $configure_input"
13540      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13541$as_echo "$as_me: creating $ac_file" >&6;}
13542    fi
13543    # Neutralize special characters interpreted by sed in replacement strings.
13544    case $configure_input in #(
13545    *\&* | *\|* | *\\* )
13546       ac_sed_conf_input=`$as_echo "$configure_input" |
13547       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13548    *) ac_sed_conf_input=$configure_input;;
13549    esac
13550
13551    case $ac_tag in
13552    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13553      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13554    esac
13555    ;;
13556  esac
13557
13558  ac_dir=`$as_dirname -- "$ac_file" ||
13559$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13560	 X"$ac_file" : 'X\(//\)[^/]' \| \
13561	 X"$ac_file" : 'X\(//\)$' \| \
13562	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13563$as_echo X"$ac_file" |
13564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13565	    s//\1/
13566	    q
13567	  }
13568	  /^X\(\/\/\)[^/].*/{
13569	    s//\1/
13570	    q
13571	  }
13572	  /^X\(\/\/\)$/{
13573	    s//\1/
13574	    q
13575	  }
13576	  /^X\(\/\).*/{
13577	    s//\1/
13578	    q
13579	  }
13580	  s/.*/./; q'`
13581  as_dir="$ac_dir"; as_fn_mkdir_p
13582  ac_builddir=.
13583
13584case "$ac_dir" in
13585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13586*)
13587  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13588  # A ".." for each directory in $ac_dir_suffix.
13589  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13590  case $ac_top_builddir_sub in
13591  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13592  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13593  esac ;;
13594esac
13595ac_abs_top_builddir=$ac_pwd
13596ac_abs_builddir=$ac_pwd$ac_dir_suffix
13597# for backward compatibility:
13598ac_top_builddir=$ac_top_build_prefix
13599
13600case $srcdir in
13601  .)  # We are building in place.
13602    ac_srcdir=.
13603    ac_top_srcdir=$ac_top_builddir_sub
13604    ac_abs_top_srcdir=$ac_pwd ;;
13605  [\\/]* | ?:[\\/]* )  # Absolute name.
13606    ac_srcdir=$srcdir$ac_dir_suffix;
13607    ac_top_srcdir=$srcdir
13608    ac_abs_top_srcdir=$srcdir ;;
13609  *) # Relative name.
13610    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13611    ac_top_srcdir=$ac_top_build_prefix$srcdir
13612    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13613esac
13614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13615
13616
13617  case $ac_mode in
13618  :F)
13619  #
13620  # CONFIG_FILE
13621  #
13622
13623  case $INSTALL in
13624  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13625  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13626  esac
13627  ac_MKDIR_P=$MKDIR_P
13628  case $MKDIR_P in
13629  [\\/$]* | ?:[\\/]* ) ;;
13630  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13631  esac
13632_ACEOF
13633
13634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13635# If the template does not know about datarootdir, expand it.
13636# FIXME: This hack should be removed a few years after 2.60.
13637ac_datarootdir_hack=; ac_datarootdir_seen=
13638ac_sed_dataroot='
13639/datarootdir/ {
13640  p
13641  q
13642}
13643/@datadir@/p
13644/@docdir@/p
13645/@infodir@/p
13646/@localedir@/p
13647/@mandir@/p'
13648case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13649*datarootdir*) ac_datarootdir_seen=yes;;
13650*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13651  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13652$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13653_ACEOF
13654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655  ac_datarootdir_hack='
13656  s&@datadir@&$datadir&g
13657  s&@docdir@&$docdir&g
13658  s&@infodir@&$infodir&g
13659  s&@localedir@&$localedir&g
13660  s&@mandir@&$mandir&g
13661  s&\\\${datarootdir}&$datarootdir&g' ;;
13662esac
13663_ACEOF
13664
13665# Neutralize VPATH when `$srcdir' = `.'.
13666# Shell code in configure.ac might set extrasub.
13667# FIXME: do we really want to maintain this feature?
13668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13669ac_sed_extra="$ac_vpsub
13670$extrasub
13671_ACEOF
13672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13673:t
13674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13675s|@configure_input@|$ac_sed_conf_input|;t t
13676s&@top_builddir@&$ac_top_builddir_sub&;t t
13677s&@top_build_prefix@&$ac_top_build_prefix&;t t
13678s&@srcdir@&$ac_srcdir&;t t
13679s&@abs_srcdir@&$ac_abs_srcdir&;t t
13680s&@top_srcdir@&$ac_top_srcdir&;t t
13681s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13682s&@builddir@&$ac_builddir&;t t
13683s&@abs_builddir@&$ac_abs_builddir&;t t
13684s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13685s&@INSTALL@&$ac_INSTALL&;t t
13686s&@MKDIR_P@&$ac_MKDIR_P&;t t
13687$ac_datarootdir_hack
13688"
13689eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13690  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13691
13692test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13693  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13694  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13695      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13696  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13697which seems to be undefined.  Please make sure it is defined" >&5
13698$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13699which seems to be undefined.  Please make sure it is defined" >&2;}
13700
13701  rm -f "$ac_tmp/stdin"
13702  case $ac_file in
13703  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13704  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13705  esac \
13706  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13707 ;;
13708  :H)
13709  #
13710  # CONFIG_HEADER
13711  #
13712  if test x"$ac_file" != x-; then
13713    {
13714      $as_echo "/* $configure_input  */" \
13715      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13716    } >"$ac_tmp/config.h" \
13717      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13718    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13719      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13720$as_echo "$as_me: $ac_file is unchanged" >&6;}
13721    else
13722      rm -f "$ac_file"
13723      mv "$ac_tmp/config.h" "$ac_file" \
13724	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13725    fi
13726  else
13727    $as_echo "/* $configure_input  */" \
13728      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13729      || as_fn_error $? "could not create -" "$LINENO" 5
13730  fi
13731# Compute "$ac_file"'s index in $config_headers.
13732_am_arg="$ac_file"
13733_am_stamp_count=1
13734for _am_header in $config_headers :; do
13735  case $_am_header in
13736    $_am_arg | $_am_arg:* )
13737      break ;;
13738    * )
13739      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13740  esac
13741done
13742echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13743$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13744	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13745	 X"$_am_arg" : 'X\(//\)$' \| \
13746	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13747$as_echo X"$_am_arg" |
13748    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13749	    s//\1/
13750	    q
13751	  }
13752	  /^X\(\/\/\)[^/].*/{
13753	    s//\1/
13754	    q
13755	  }
13756	  /^X\(\/\/\)$/{
13757	    s//\1/
13758	    q
13759	  }
13760	  /^X\(\/\).*/{
13761	    s//\1/
13762	    q
13763	  }
13764	  s/.*/./; q'`/stamp-h$_am_stamp_count
13765 ;;
13766
13767  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13768$as_echo "$as_me: executing $ac_file commands" >&6;}
13769 ;;
13770  esac
13771
13772
13773  case $ac_file$ac_mode in
13774    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13775  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13776  # are listed without --file.  Let's play safe and only enable the eval
13777  # if we detect the quoting.
13778  case $CONFIG_FILES in
13779  *\'*) eval set x "$CONFIG_FILES" ;;
13780  *)   set x $CONFIG_FILES ;;
13781  esac
13782  shift
13783  for mf
13784  do
13785    # Strip MF so we end up with the name of the file.
13786    mf=`echo "$mf" | sed -e 's/:.*$//'`
13787    # Check whether this is an Automake generated Makefile or not.
13788    # We used to match only the files named `Makefile.in', but
13789    # some people rename them; so instead we look at the file content.
13790    # Grep'ing the first line is not enough: some people post-process
13791    # each Makefile.in and add a new line on top of each file to say so.
13792    # Grep'ing the whole file is not good either: AIX grep has a line
13793    # limit of 2048, but all sed's we know have understand at least 4000.
13794    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13795      dirpart=`$as_dirname -- "$mf" ||
13796$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13797	 X"$mf" : 'X\(//\)[^/]' \| \
13798	 X"$mf" : 'X\(//\)$' \| \
13799	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13800$as_echo X"$mf" |
13801    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13802	    s//\1/
13803	    q
13804	  }
13805	  /^X\(\/\/\)[^/].*/{
13806	    s//\1/
13807	    q
13808	  }
13809	  /^X\(\/\/\)$/{
13810	    s//\1/
13811	    q
13812	  }
13813	  /^X\(\/\).*/{
13814	    s//\1/
13815	    q
13816	  }
13817	  s/.*/./; q'`
13818    else
13819      continue
13820    fi
13821    # Extract the definition of DEPDIR, am__include, and am__quote
13822    # from the Makefile without running `make'.
13823    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13824    test -z "$DEPDIR" && continue
13825    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13826    test -z "am__include" && continue
13827    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13828    # When using ansi2knr, U may be empty or an underscore; expand it
13829    U=`sed -n 's/^U = //p' < "$mf"`
13830    # Find all dependency output files, they are included files with
13831    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13832    # simplest approach to changing $(DEPDIR) to its actual value in the
13833    # expansion.
13834    for file in `sed -n "
13835      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13836	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13837      # Make sure the directory exists.
13838      test -f "$dirpart/$file" && continue
13839      fdir=`$as_dirname -- "$file" ||
13840$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13841	 X"$file" : 'X\(//\)[^/]' \| \
13842	 X"$file" : 'X\(//\)$' \| \
13843	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13844$as_echo X"$file" |
13845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13846	    s//\1/
13847	    q
13848	  }
13849	  /^X\(\/\/\)[^/].*/{
13850	    s//\1/
13851	    q
13852	  }
13853	  /^X\(\/\/\)$/{
13854	    s//\1/
13855	    q
13856	  }
13857	  /^X\(\/\).*/{
13858	    s//\1/
13859	    q
13860	  }
13861	  s/.*/./; q'`
13862      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13863      # echo "creating $dirpart/$file"
13864      echo '# dummy' > "$dirpart/$file"
13865    done
13866  done
13867}
13868 ;;
13869    "libtool":C)
13870
13871    # See if we are running on zsh, and set the options which allow our
13872    # commands through without removal of \ escapes.
13873    if test -n "${ZSH_VERSION+set}" ; then
13874      setopt NO_GLOB_SUBST
13875    fi
13876
13877    cfgfile="${ofile}T"
13878    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13879    $RM "$cfgfile"
13880
13881    cat <<_LT_EOF >> "$cfgfile"
13882#! $SHELL
13883
13884# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13885# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13886# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13887# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13888#
13889#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13890#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13891#                 Foundation, Inc.
13892#   Written by Gordon Matzigkeit, 1996
13893#
13894#   This file is part of GNU Libtool.
13895#
13896# GNU Libtool is free software; you can redistribute it and/or
13897# modify it under the terms of the GNU General Public License as
13898# published by the Free Software Foundation; either version 2 of
13899# the License, or (at your option) any later version.
13900#
13901# As a special exception to the GNU General Public License,
13902# if you distribute this file as part of a program or library that
13903# is built using GNU Libtool, you may include this file under the
13904# same distribution terms that you use for the rest of that program.
13905#
13906# GNU Libtool is distributed in the hope that it will be useful,
13907# but WITHOUT ANY WARRANTY; without even the implied warranty of
13908# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13909# GNU General Public License for more details.
13910#
13911# You should have received a copy of the GNU General Public License
13912# along with GNU Libtool; see the file COPYING.  If not, a copy
13913# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13914# obtained by writing to the Free Software Foundation, Inc.,
13915# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13916
13917
13918# The names of the tagged configurations supported by this script.
13919available_tags=""
13920
13921# ### BEGIN LIBTOOL CONFIG
13922
13923# Whether or not to build static libraries.
13924build_old_libs=$enable_static
13925
13926# Assembler program.
13927AS=$lt_AS
13928
13929# DLL creation program.
13930DLLTOOL=$lt_DLLTOOL
13931
13932# Object dumper program.
13933OBJDUMP=$lt_OBJDUMP
13934
13935# Which release of libtool.m4 was used?
13936macro_version=$macro_version
13937macro_revision=$macro_revision
13938
13939# Whether or not to build shared libraries.
13940build_libtool_libs=$enable_shared
13941
13942# What type of objects to build.
13943pic_mode=$pic_mode
13944
13945# Whether or not to optimize for fast installation.
13946fast_install=$enable_fast_install
13947
13948# Shell to use when invoking shell scripts.
13949SHELL=$lt_SHELL
13950
13951# An echo program that protects backslashes.
13952ECHO=$lt_ECHO
13953
13954# The PATH separator for the build system.
13955PATH_SEPARATOR=$lt_PATH_SEPARATOR
13956
13957# The host system.
13958host_alias=$host_alias
13959host=$host
13960host_os=$host_os
13961
13962# The build system.
13963build_alias=$build_alias
13964build=$build
13965build_os=$build_os
13966
13967# A sed program that does not truncate output.
13968SED=$lt_SED
13969
13970# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13971Xsed="\$SED -e 1s/^X//"
13972
13973# A grep program that handles long lines.
13974GREP=$lt_GREP
13975
13976# An ERE matcher.
13977EGREP=$lt_EGREP
13978
13979# A literal string matcher.
13980FGREP=$lt_FGREP
13981
13982# A BSD- or MS-compatible name lister.
13983NM=$lt_NM
13984
13985# Whether we need soft or hard links.
13986LN_S=$lt_LN_S
13987
13988# What is the maximum length of a command?
13989max_cmd_len=$max_cmd_len
13990
13991# Object file suffix (normally "o").
13992objext=$ac_objext
13993
13994# Executable file suffix (normally "").
13995exeext=$exeext
13996
13997# whether the shell understands "unset".
13998lt_unset=$lt_unset
13999
14000# turn spaces into newlines.
14001SP2NL=$lt_lt_SP2NL
14002
14003# turn newlines into spaces.
14004NL2SP=$lt_lt_NL2SP
14005
14006# convert \$build file names to \$host format.
14007to_host_file_cmd=$lt_cv_to_host_file_cmd
14008
14009# convert \$build files to toolchain format.
14010to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14011
14012# Method to check whether dependent libraries are shared objects.
14013deplibs_check_method=$lt_deplibs_check_method
14014
14015# Command to use when deplibs_check_method = "file_magic".
14016file_magic_cmd=$lt_file_magic_cmd
14017
14018# How to find potential files when deplibs_check_method = "file_magic".
14019file_magic_glob=$lt_file_magic_glob
14020
14021# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14022want_nocaseglob=$lt_want_nocaseglob
14023
14024# Command to associate shared and link libraries.
14025sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14026
14027# The archiver.
14028AR=$lt_AR
14029
14030# Flags to create an archive.
14031AR_FLAGS=$lt_AR_FLAGS
14032
14033# How to feed a file listing to the archiver.
14034archiver_list_spec=$lt_archiver_list_spec
14035
14036# A symbol stripping program.
14037STRIP=$lt_STRIP
14038
14039# Commands used to install an old-style archive.
14040RANLIB=$lt_RANLIB
14041old_postinstall_cmds=$lt_old_postinstall_cmds
14042old_postuninstall_cmds=$lt_old_postuninstall_cmds
14043
14044# Whether to use a lock for old archive extraction.
14045lock_old_archive_extraction=$lock_old_archive_extraction
14046
14047# A C compiler.
14048LTCC=$lt_CC
14049
14050# LTCC compiler flags.
14051LTCFLAGS=$lt_CFLAGS
14052
14053# Take the output of nm and produce a listing of raw symbols and C names.
14054global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14055
14056# Transform the output of nm in a proper C declaration.
14057global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14058
14059# Transform the output of nm in a C name address pair.
14060global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14061
14062# Transform the output of nm in a C name address pair when lib prefix is needed.
14063global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14064
14065# Specify filename containing input files for \$NM.
14066nm_file_list_spec=$lt_nm_file_list_spec
14067
14068# The root where to search for dependent libraries,and in which our libraries should be installed.
14069lt_sysroot=$lt_sysroot
14070
14071# The name of the directory that contains temporary libtool files.
14072objdir=$objdir
14073
14074# Used to examine libraries when file_magic_cmd begins with "file".
14075MAGIC_CMD=$MAGIC_CMD
14076
14077# Must we lock files when doing compilation?
14078need_locks=$lt_need_locks
14079
14080# Manifest tool.
14081MANIFEST_TOOL=$lt_MANIFEST_TOOL
14082
14083# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14084DSYMUTIL=$lt_DSYMUTIL
14085
14086# Tool to change global to local symbols on Mac OS X.
14087NMEDIT=$lt_NMEDIT
14088
14089# Tool to manipulate fat objects and archives on Mac OS X.
14090LIPO=$lt_LIPO
14091
14092# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14093OTOOL=$lt_OTOOL
14094
14095# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14096OTOOL64=$lt_OTOOL64
14097
14098# Old archive suffix (normally "a").
14099libext=$libext
14100
14101# Shared library suffix (normally ".so").
14102shrext_cmds=$lt_shrext_cmds
14103
14104# The commands to extract the exported symbol list from a shared archive.
14105extract_expsyms_cmds=$lt_extract_expsyms_cmds
14106
14107# Variables whose values should be saved in libtool wrapper scripts and
14108# restored at link time.
14109variables_saved_for_relink=$lt_variables_saved_for_relink
14110
14111# Do we need the "lib" prefix for modules?
14112need_lib_prefix=$need_lib_prefix
14113
14114# Do we need a version for libraries?
14115need_version=$need_version
14116
14117# Library versioning type.
14118version_type=$version_type
14119
14120# Shared library runtime path variable.
14121runpath_var=$runpath_var
14122
14123# Shared library path variable.
14124shlibpath_var=$shlibpath_var
14125
14126# Is shlibpath searched before the hard-coded library search path?
14127shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14128
14129# Format of library name prefix.
14130libname_spec=$lt_libname_spec
14131
14132# List of archive names.  First name is the real one, the rest are links.
14133# The last name is the one that the linker finds with -lNAME
14134library_names_spec=$lt_library_names_spec
14135
14136# The coded name of the library, if different from the real name.
14137soname_spec=$lt_soname_spec
14138
14139# Permission mode override for installation of shared libraries.
14140install_override_mode=$lt_install_override_mode
14141
14142# Command to use after installation of a shared archive.
14143postinstall_cmds=$lt_postinstall_cmds
14144
14145# Command to use after uninstallation of a shared archive.
14146postuninstall_cmds=$lt_postuninstall_cmds
14147
14148# Commands used to finish a libtool library installation in a directory.
14149finish_cmds=$lt_finish_cmds
14150
14151# As "finish_cmds", except a single script fragment to be evaled but
14152# not shown.
14153finish_eval=$lt_finish_eval
14154
14155# Whether we should hardcode library paths into libraries.
14156hardcode_into_libs=$hardcode_into_libs
14157
14158# Compile-time system search path for libraries.
14159sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14160
14161# Run-time system search path for libraries.
14162sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14163
14164# Whether dlopen is supported.
14165dlopen_support=$enable_dlopen
14166
14167# Whether dlopen of programs is supported.
14168dlopen_self=$enable_dlopen_self
14169
14170# Whether dlopen of statically linked programs is supported.
14171dlopen_self_static=$enable_dlopen_self_static
14172
14173# Commands to strip libraries.
14174old_striplib=$lt_old_striplib
14175striplib=$lt_striplib
14176
14177
14178# The linker used to build libraries.
14179LD=$lt_LD
14180
14181# How to create reloadable object files.
14182reload_flag=$lt_reload_flag
14183reload_cmds=$lt_reload_cmds
14184
14185# Commands used to build an old-style archive.
14186old_archive_cmds=$lt_old_archive_cmds
14187
14188# A language specific compiler.
14189CC=$lt_compiler
14190
14191# Is the compiler the GNU compiler?
14192with_gcc=$GCC
14193
14194# Compiler flag to turn off builtin functions.
14195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14196
14197# Additional compiler flags for building library objects.
14198pic_flag=$lt_lt_prog_compiler_pic
14199
14200# How to pass a linker flag through the compiler.
14201wl=$lt_lt_prog_compiler_wl
14202
14203# Compiler flag to prevent dynamic linking.
14204link_static_flag=$lt_lt_prog_compiler_static
14205
14206# Does compiler simultaneously support -c and -o options?
14207compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14208
14209# Whether or not to add -lc for building shared libraries.
14210build_libtool_need_lc=$archive_cmds_need_lc
14211
14212# Whether or not to disallow shared libs when runtime libs are static.
14213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14214
14215# Compiler flag to allow reflexive dlopens.
14216export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14217
14218# Compiler flag to generate shared objects directly from archives.
14219whole_archive_flag_spec=$lt_whole_archive_flag_spec
14220
14221# Whether the compiler copes with passing no objects directly.
14222compiler_needs_object=$lt_compiler_needs_object
14223
14224# Create an old-style archive from a shared archive.
14225old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14226
14227# Create a temporary old-style archive to link instead of a shared archive.
14228old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14229
14230# Commands used to build a shared archive.
14231archive_cmds=$lt_archive_cmds
14232archive_expsym_cmds=$lt_archive_expsym_cmds
14233
14234# Commands used to build a loadable module if different from building
14235# a shared archive.
14236module_cmds=$lt_module_cmds
14237module_expsym_cmds=$lt_module_expsym_cmds
14238
14239# Whether we are building with GNU ld or not.
14240with_gnu_ld=$lt_with_gnu_ld
14241
14242# Flag that allows shared libraries with undefined symbols to be built.
14243allow_undefined_flag=$lt_allow_undefined_flag
14244
14245# Flag that enforces no undefined symbols.
14246no_undefined_flag=$lt_no_undefined_flag
14247
14248# Flag to hardcode \$libdir into a binary during linking.
14249# This must work even if \$libdir does not exist
14250hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14251
14252# Whether we need a single "-rpath" flag with a separated argument.
14253hardcode_libdir_separator=$lt_hardcode_libdir_separator
14254
14255# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14256# DIR into the resulting binary.
14257hardcode_direct=$hardcode_direct
14258
14259# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14260# DIR into the resulting binary and the resulting library dependency is
14261# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14262# library is relocated.
14263hardcode_direct_absolute=$hardcode_direct_absolute
14264
14265# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14266# into the resulting binary.
14267hardcode_minus_L=$hardcode_minus_L
14268
14269# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14270# into the resulting binary.
14271hardcode_shlibpath_var=$hardcode_shlibpath_var
14272
14273# Set to "yes" if building a shared library automatically hardcodes DIR
14274# into the library and all subsequent libraries and executables linked
14275# against it.
14276hardcode_automatic=$hardcode_automatic
14277
14278# Set to yes if linker adds runtime paths of dependent libraries
14279# to runtime path list.
14280inherit_rpath=$inherit_rpath
14281
14282# Whether libtool must link a program against all its dependency libraries.
14283link_all_deplibs=$link_all_deplibs
14284
14285# Set to "yes" if exported symbols are required.
14286always_export_symbols=$always_export_symbols
14287
14288# The commands to list exported symbols.
14289export_symbols_cmds=$lt_export_symbols_cmds
14290
14291# Symbols that should not be listed in the preloaded symbols.
14292exclude_expsyms=$lt_exclude_expsyms
14293
14294# Symbols that must always be exported.
14295include_expsyms=$lt_include_expsyms
14296
14297# Commands necessary for linking programs (against libraries) with templates.
14298prelink_cmds=$lt_prelink_cmds
14299
14300# Commands necessary for finishing linking programs.
14301postlink_cmds=$lt_postlink_cmds
14302
14303# Specify filename containing input files.
14304file_list_spec=$lt_file_list_spec
14305
14306# How to hardcode a shared library path into an executable.
14307hardcode_action=$hardcode_action
14308
14309# ### END LIBTOOL CONFIG
14310
14311_LT_EOF
14312
14313  case $host_os in
14314  aix3*)
14315    cat <<\_LT_EOF >> "$cfgfile"
14316# AIX sometimes has problems with the GCC collect2 program.  For some
14317# reason, if we set the COLLECT_NAMES environment variable, the problems
14318# vanish in a puff of smoke.
14319if test "X${COLLECT_NAMES+set}" != Xset; then
14320  COLLECT_NAMES=
14321  export COLLECT_NAMES
14322fi
14323_LT_EOF
14324    ;;
14325  esac
14326
14327
14328ltmain="$ac_aux_dir/ltmain.sh"
14329
14330
14331  # We use sed instead of cat because bash on DJGPP gets confused if
14332  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14333  # text mode, it properly converts lines to CR/LF.  This bash problem
14334  # is reportedly fixed, but why not run on old versions too?
14335  sed '$q' "$ltmain" >> "$cfgfile" \
14336     || (rm -f "$cfgfile"; exit 1)
14337
14338  if test x"$xsi_shell" = xyes; then
14339  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14340func_dirname ()\
14341{\
14342\    case ${1} in\
14343\      */*) func_dirname_result="${1%/*}${2}" ;;\
14344\      *  ) func_dirname_result="${3}" ;;\
14345\    esac\
14346} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14347  && mv -f "$cfgfile.tmp" "$cfgfile" \
14348    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14349test 0 -eq $? || _lt_function_replace_fail=:
14350
14351
14352  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14353func_basename ()\
14354{\
14355\    func_basename_result="${1##*/}"\
14356} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14357  && mv -f "$cfgfile.tmp" "$cfgfile" \
14358    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14359test 0 -eq $? || _lt_function_replace_fail=:
14360
14361
14362  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14363func_dirname_and_basename ()\
14364{\
14365\    case ${1} in\
14366\      */*) func_dirname_result="${1%/*}${2}" ;;\
14367\      *  ) func_dirname_result="${3}" ;;\
14368\    esac\
14369\    func_basename_result="${1##*/}"\
14370} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14371  && mv -f "$cfgfile.tmp" "$cfgfile" \
14372    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14373test 0 -eq $? || _lt_function_replace_fail=:
14374
14375
14376  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14377func_stripname ()\
14378{\
14379\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14380\    # positional parameters, so assign one to ordinary parameter first.\
14381\    func_stripname_result=${3}\
14382\    func_stripname_result=${func_stripname_result#"${1}"}\
14383\    func_stripname_result=${func_stripname_result%"${2}"}\
14384} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14385  && mv -f "$cfgfile.tmp" "$cfgfile" \
14386    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14387test 0 -eq $? || _lt_function_replace_fail=:
14388
14389
14390  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14391func_split_long_opt ()\
14392{\
14393\    func_split_long_opt_name=${1%%=*}\
14394\    func_split_long_opt_arg=${1#*=}\
14395} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14396  && mv -f "$cfgfile.tmp" "$cfgfile" \
14397    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14398test 0 -eq $? || _lt_function_replace_fail=:
14399
14400
14401  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14402func_split_short_opt ()\
14403{\
14404\    func_split_short_opt_arg=${1#??}\
14405\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14406} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14407  && mv -f "$cfgfile.tmp" "$cfgfile" \
14408    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409test 0 -eq $? || _lt_function_replace_fail=:
14410
14411
14412  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14413func_lo2o ()\
14414{\
14415\    case ${1} in\
14416\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14417\      *)    func_lo2o_result=${1} ;;\
14418\    esac\
14419} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14420  && mv -f "$cfgfile.tmp" "$cfgfile" \
14421    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14422test 0 -eq $? || _lt_function_replace_fail=:
14423
14424
14425  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14426func_xform ()\
14427{\
14428    func_xform_result=${1%.*}.lo\
14429} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14430  && mv -f "$cfgfile.tmp" "$cfgfile" \
14431    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14432test 0 -eq $? || _lt_function_replace_fail=:
14433
14434
14435  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14436func_arith ()\
14437{\
14438    func_arith_result=$(( $* ))\
14439} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14440  && mv -f "$cfgfile.tmp" "$cfgfile" \
14441    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14442test 0 -eq $? || _lt_function_replace_fail=:
14443
14444
14445  sed -e '/^func_len ()$/,/^} # func_len /c\
14446func_len ()\
14447{\
14448    func_len_result=${#1}\
14449} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14450  && mv -f "$cfgfile.tmp" "$cfgfile" \
14451    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14452test 0 -eq $? || _lt_function_replace_fail=:
14453
14454fi
14455
14456if test x"$lt_shell_append" = xyes; then
14457  sed -e '/^func_append ()$/,/^} # func_append /c\
14458func_append ()\
14459{\
14460    eval "${1}+=\\${2}"\
14461} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14462  && mv -f "$cfgfile.tmp" "$cfgfile" \
14463    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14464test 0 -eq $? || _lt_function_replace_fail=:
14465
14466
14467  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14468func_append_quoted ()\
14469{\
14470\    func_quote_for_eval "${2}"\
14471\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14472} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14473  && mv -f "$cfgfile.tmp" "$cfgfile" \
14474    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14475test 0 -eq $? || _lt_function_replace_fail=:
14476
14477
14478  # Save a `func_append' function call where possible by direct use of '+='
14479  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14480    && mv -f "$cfgfile.tmp" "$cfgfile" \
14481      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14482  test 0 -eq $? || _lt_function_replace_fail=:
14483else
14484  # Save a `func_append' function call even when '+=' is not available
14485  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14486    && mv -f "$cfgfile.tmp" "$cfgfile" \
14487      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14488  test 0 -eq $? || _lt_function_replace_fail=:
14489fi
14490
14491if test x"$_lt_function_replace_fail" = x":"; then
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14493$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14494fi
14495
14496
14497   mv -f "$cfgfile" "$ofile" ||
14498    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14499  chmod +x "$ofile"
14500
14501 ;;
14502
14503  esac
14504done # for ac_tag
14505
14506
14507as_fn_exit 0
14508_ACEOF
14509ac_clean_files=$ac_clean_files_save
14510
14511test $ac_write_fail = 0 ||
14512  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14513
14514
14515# configure is writing to config.log, and then calls config.status.
14516# config.status does its own redirection, appending to config.log.
14517# Unfortunately, on DOS this fails, as config.log is still kept open
14518# by configure, so config.status won't be able to write to it; its
14519# output is simply discarded.  So we exec the FD to /dev/null,
14520# effectively closing config.log, so it can be properly (re)opened and
14521# appended to by config.status.  When coming back to configure, we
14522# need to make the FD available again.
14523if test "$no_create" != yes; then
14524  ac_cs_success=:
14525  ac_config_status_args=
14526  test "$silent" = yes &&
14527    ac_config_status_args="$ac_config_status_args --quiet"
14528  exec 5>/dev/null
14529  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14530  exec 5>>config.log
14531  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14532  # would make configure fail if this is the last instruction.
14533  $ac_cs_success || as_fn_exit 1
14534fi
14535if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14536  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14537$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14538fi
14539
14540
14541